vendor: 14,377 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-DVc8C-J4.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-BZjJHVRy.js","assets/fortran-free-form-D22FLkUw.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-C8NyazO9.js","assets/r-DiinP2Uv.js","assets/latex-BUKiar2Z.js","assets/tex-Cppo0RY3.js","assets/liquid-DYVedYrR.js","assets/marko-CPi9NSCl.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-WgofotgN.js","assets/csharp-CX12Zw3r.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-3Dk4HxPD.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-CCoi5OLL.js","assets/vue-html-DAAvJJDi.js","assets/vue-vine-_Ih-lPRR.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]); 2function wz(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();var x5e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function x5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ly={exports:{}},vm={};/** 3 * @license React 4 * react-jsx-runtime.production.js 5 * 6 * Copyright (c) Meta Platforms, Inc. and affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var OE;function Sz(){if(OE)return vm;OE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var i=null;if(s!==void 0&&(i=""+s),a.key!==void 0&&(i=""+a.key),"key"in a){s={};for(var o in a)o!=="key"&&(s[o]=a[o])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:i,ref:a!==void 0?a:null,props:s}}return vm.Fragment=t,vm.jsx=n,vm.jsxs=n,vm}var PE;function Ez(){return PE||(PE=1,Ly.exports=Sz()),Ly.exports}var h=Ez(),vh=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},kz=class extends vh{#t;#e;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},D6=new kz,_z={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Tz=class{#t=_z;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},eh=new Tz;function Cz(e){setTimeout(e,0)}var Nz=typeof window>"u"||"Deno"in globalThis;function Ys(){}function Az(e,t){return typeof e=="function"?e(t):e}function Rv(e){return typeof e=="number"&&e>=0&&e!==1/0}function kA(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Yd(e,t){return typeof e=="function"?e(t):e}function go(e,t){return typeof e=="function"?e(t):e}function jE(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:s,queryKey:i,stale:o}=e;if(i){if(r){if(t.queryHash!==I6(i,t.options))return!1}else if(!h1(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||a&&a!==t.state.fetchStatus||s&&!s(t))}function DE(e,t){const{exact:n,status:r,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Kd(t.options.mutationKey)!==Kd(s))return!1}else if(!h1(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function I6(e,t){return(t?.queryKeyHashFn||Kd)(e)}function Kd(e){return JSON.stringify(e,(t,n)=>Ov(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function h1(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>h1(e[n],t[n])):!1}var Lz=Object.prototype.hasOwnProperty;function B6(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=IE(e)&&IE(t);if(!r&&!(Ov(e)&&Ov(t)))return t;const s=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),o=i.length,c=r?new Array(o):{};let d=0;for(let f=0;f<o;f++){const m=r?f:i[f],b=e[m],g=t[m];if(b===g){c[m]=b,(r?f<s:Lz.call(e,m))&&d++;continue}if(b===null||g===null||typeof b!="object"||typeof g!="object"){c[m]=g;continue}const v=B6(b,g,n+1);c[m]=v,v===b&&d++}return s===o&&d===s?e:c}function f1(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function IE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ov(e){if(!BE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!BE(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function BE(e){return Object.prototype.toString.call(e)==="[object Object]"}function Mz(e){return new Promise(t=>{eh.setTimeout(t,e)})}function Pv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?B6(e,t):t}function Rz(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Oz(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var bo=Symbol();function _A(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===bo?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function F6(e,t){return typeof e=="function"?e(...t):!!e}function Pz(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var p1=(()=>{let e=()=>Nz;return{isServer(){return e()},setIsServer(t){e=t}}})();function jv(){let e,t;const n=new Promise((a,s)=>{e=a,t=s});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var jz=Cz;function Dz(){let e=[],t=0,n=o=>{o()},r=o=>{o()},a=jz;const s=o=>{t?e.push(o):a(()=>{n(o)})},i=()=>{const o=e;e=[],o.length&&a(()=>{r(()=>{o.forEach(c=>{n(c)})})})};return{batch:o=>{let c;t++;try{c=o()}finally{t--,t||i()}return c},batchCalls:o=>(...c)=>{s(()=>{o(...c)})},schedule:s,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{a=o}}}var Aa=Dz(),Iz=class extends vh{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},wx=new Iz;function Bz(e){return Math.min(1e3*2**e,3e4)}function TA(e){return(e??"online")==="online"?wx.isOnline():!0}var Dv=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function CA(e){let t=!1,n=0,r;const a=jv(),s=()=>a.status!=="pending",i=E=>{if(!s()){const T=new Dv(E);b(T),e.onCancel?.(T)}},o=()=>{t=!0},c=()=>{t=!1},d=()=>D6.isFocused()&&(e.networkMode==="always"||wx.isOnline())&&e.canRun(),f=()=>TA(e.networkMode)&&e.canRun(),m=E=>{s()||(r?.(),a.resolve(E))},b=E=>{s()||(r?.(),a.reject(E))},g=()=>new Promise(E=>{r=T=>{(s()||d())&&E(T)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),v=()=>{if(s())return;let E;const T=n===0?e.initialPromise:void 0;try{E=T??e.fn()}catch(_){E=Promise.reject(_)}Promise.resolve(E).then(m).catch(_=>{if(s())return;const A=e.retry??(p1.isServer()?0:3),R=e.retryDelay??Bz,P=typeof R=="function"?R(n,_):R,V=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,_);if(t||!V){b(_);return}n++,e.onFail?.(n,_),Mz(P).then(()=>d()?void 0:g()).then(()=>{t?b(_):v()})})};return{promise:a,status:()=>a.status,cancel:i,continue:()=>(r?.(),a),cancelRetry:o,continueRetry:c,canStart:f,start:()=>(f()?v():g().then(v),a)}}var NA=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rv(this.gcTime)&&(this.#t=eh.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(p1.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(eh.clearTimeout(this.#t),this.#t=void 0)}};function Fz(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let o={pages:[],pageParams:[]},c=0;const d=async()=>{let f=!1;const m=v=>{Pz(v,()=>t.signal,()=>f=!0)},b=_A(t.options,t.fetchOptions),g=async(v,E,T)=>{if(f)return Promise.reject(t.signal.reason);if(E==null&&v.pages.length)return Promise.resolve(v);const A=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:E,direction:T?"backward":"forward",meta:t.options.meta};return m(U),U})(),R=await b(A),{maxPages:P}=t.options,V=T?Oz:Rz;return{pages:V(v.pages,R,P),pageParams:V(v.pageParams,E,P)}};if(a&&s.length){const v=a==="backward",E=v?AA:Iv,T={pages:s,pageParams:i},_=E(r,T);o=await g(T,_,v)}else{const v=e??s.length;do{const E=c===0?i[0]??r.initialPageParam:Iv(r,o);if(c>0&&E==null)break;o=await g(o,E),c++}while(c<v)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function Iv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function AA(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function zz(e,t){return t?Iv(e,t)!=null:!1}function Hz(e,t){return!t||!e.getPreviousPageParam?!1:AA(e,t)!=null}var Uz=class extends NA{#t;#e;#n;#r;#a;#s;#o;#i;constructor(e){super(),this.#i=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#r=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=zE(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#t=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=zE(this.options);t.data!==void 0&&(this.setState(FE(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const n=Pv(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:"setState",state:e})}cancel(e){const t=this.#s?.promise;
10return this.#s?.cancel(e),t?t.then(Ys).catch(Ys):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>go(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===bo||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Yd(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!kA(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#s&&(this.#i||this.#u()?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(d=>d.options.queryFn);c&&this.setOptions(c.options)}const n=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#i=!0,n.signal)})},a=()=>{const c=_A(this.options,t),f=(()=>{const m={client:this.#a,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#i=!1,this.options.persister?this.options.persister(c,f,this):c(f)},i=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:a};return r(c),c})();(this.#t==="infinite"?Fz(this.options.pages):this.options.behavior)?.onFetch(i,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==i.fetchOptions?.meta)&&this.#l({type:"fetch",meta:i.fetchOptions?.meta}),this.#s=CA({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:c=>{c instanceof Dv&&c.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(c,d)=>{this.#l({type:"failed",failureCount:c,error:d})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const c=await this.#s.start();if(c===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#r.config.onSuccess?.(c,this),this.#r.config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof Dv){if(c.silent)return this.#s.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#l({type:"error",error:c}),this.#r.config.onError?.(c,this),this.#r.config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}#l(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...LA(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...FE(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const a=e.error;
vendor: 6,580 bytes, line 10
10return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Aa.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function LA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:TA(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function FE(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function zE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var z1=class extends vh{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#o=jv(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#s;#o;#i;#u;#l;#f;#d;#p;#c;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),HE(this.#e,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bv(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bv(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof go(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!f1(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&UE(this.#e,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#e!==n||go(this.options.enabled,this.#e)!==go(t.enabled,this.#e)||Yd(this.options.staleTime,this.#e)!==Yd(t.staleTime,this.#e))&&this.#g();const a=this.#x();r&&(this.#e!==n||go(this.options.enabled,this.#e)!==go(t.enabled,this.#e)||a!==this.#c)&&this.#b(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return Vz(this,n)&&(this.#r=n,this.#s=this.options,this.#a=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ys)),t}#g(){this.#v();const e=Yd(this.options.staleTime,this.#e);if(p1.isServer()||this.#r.isStale||!Rv(e))return;const n=kA(this.#r.dataUpdatedAt,e)+1;this.#d=eh.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#b(e){this.#w(),this.#c=e,!(p1.isServer()||go(this.options.enabled,this.#e)===!1||!Rv(this.#c)||this.#c===0)&&(this.#p=eh.setInterval(()=>{(this.options.refetchIntervalInBackground||D6.isFocused())&&this.#h()},this.#c))}#y(){this.#g(),this.#b(this.#x())}#v(){this.#d!==void 0&&(eh.clearTimeout(this.#d),this.#d=void 0)}#w(){this.#p!==void 0&&(eh.clearInterval(this.#p),this.#p=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#r,s=this.#a,i=this.#s,c=e!==n?e.state:this.#n,{state:d}=e;let f={...d},m=!1,b;if(t._optimisticResults){const H=this.hasListeners(),q=!H&&HE(e,t),W=H&&UE(e,n,t,r);(q||W)&&(f={...f,...LA(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:v,status:E}=f;b=f.data;let T=!1;if(t.placeholderData!==void 0&&b===void 0&&E==="pending"){let H;a?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(H=a.data,T=!0):H=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,H!==void 0&&(E="success",b=Pv(a?.data,H,t),m=!0)}if(t.select&&b!==void 0&&!T)if(a&&b===s?.data&&t.select===this.#u)b=this.#l;else try{this.#u=t.select,b=t.select(b),b=Pv(a?.data,b,t),this.#l=b,this.#i=null}catch(H){this.#i=H}this.#i&&(g=this.#i,b=this.#l,v=Date.now(),E="error");const _=f.fetchStatus==="fetching",A=E==="pending",R=E==="error",P=A&&_,V=b!==void 0,D={status:E,fetchStatus:f.fetchStatus,isPending:A,isSuccess:E==="success",isError:R,isInitialLoading:P,isLoading:P,data:b,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:v,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:_,isRefetching:_&&!A,isLoadingError:R&&!V,isPaused:f.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:R&&V,isStale:z6(e,t),refetch:this.refetch,promise:this.#o,isEnabled:go(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const H=D.data!==void 0,q=D.status==="error"&&!H,W=ae=>{q?ae.reject(D.error):H&&ae.resolve(D.data)},z=()=>{const ae=this.#o=D.promise=jv();W(ae)},$=this.#o;switch($.status){case"pending":e.queryHash===n.queryHash&&W($);break;case"fulfilled":(q||D.data!==$.value)&&z();break;case"rejected":(!q||D.error!==$.reason)&&z();break}}return D}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#s=this.options,this.#a.data!==void 0&&(this.#f=this.#e),f1(t,e))return;this.#r=t;const n=()=>
10{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#m.size)return!0;const s=new Set(a??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#r).some(i=>{const o=i;return this.#r[o]!==e[o]&&s.has(o)})};this.#E({listeners:n()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#E(e){Aa.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function qz(e,t){return go(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&go(t.retryOnMount,e)===!1)}function HE(e,t){return qz(e,t)||e.state.data!==void 0&&Bv(e,t,t.refetchOnMount)}function Bv(e,t,n){if(go(t.enabled,e)!==!1&&Yd(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&z6(e,t)}return!1}function UE(e,t,n,r){return(e!==t||go(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&z6(e,n)}function z6(e,t){return go(t.enabled,e)!==!1&&e.isStaleByTime(Yd(t.staleTime,e))}function Vz(e,t){return!f1(e.getCurrentResult(),t)}var MA=class extends z1{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,r=super.createResult(e,t),{isFetching:a,isRefetching:s,isError:i,isRefetchError:o}=r,c=n.fetchMeta?.fetchMore?.direction,d=i&&c==="forward",f=a&&c==="forward",m=i&&c==="backward",b=a&&c==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:zz(t,n.data),hasPreviousPage:Hz(t,n.data),isFetchNextPageError:d,isFetchingNextPage:f,isFetchPreviousPageError:m,isFetchingPreviousPage:b,isRefetchError:o&&!d&&!m,isRefetching:s&&!f&&!b}}},Gz=class extends NA{#t;#e;#n;#r;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||RA(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#a({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=CA({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,i)=>{this.#a({type:"failed",failureCount:s,error:i})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#r.canStart();try{if(r)t();else{this.#a({type:"pending",variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const i=await this.options.onMutate?.(e,n);i!==this.state.context&&this.#a({type:"pending",context:i,variables:e,isPaused:a})}const s=await this.#r.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#a({type:"success",data:s}),s}catch(s){try{await this.#n.config.onError?.(s,e,this.state.context,this,n)}catch(i){Promise.reject(i)}try{await this.options.onError?.(s,e,this.state.context,n)}catch(i){Promise.reject(i)}try{await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n)}catch(i){Promise.reject(i)}try{await this.options.onSettled?.(void 0,s,e,this.state.context,n)}catch(i){Promise.reject(i)}throw this.#a({type:"error",error:s}),s}finally{this.#n.runNext(this)}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};
vendor: 1,577 bytes, line 10
10case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Aa.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function RA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $z=class extends vh{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new Gz({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=n2(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=n2(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=n2(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=n2(e);return typeof t=="string"?this.#e.get(t)?.find(r=>
10r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Aa.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>DE(t,n))}findAll(e={}){return this.getAll().filter(t=>DE(e,t))}notify(e){Aa.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Aa.batch(()=>Promise.all(e.map(t=>t.continue().catch(Ys))))}};function n2(e){return e.options.scope?.id}var Wz=class extends vh{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),f1(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Kd(n.mutationKey)!==Kd(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#s(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#s()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#a(){const t=this.#n?.state??RA();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#s(t){Aa.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context,a={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#r.onSuccess?.(t.data,n,r,a)}catch(s){Promise.reject(s)}
10try{this.#r.onSettled?.(t.data,null,n,r,a)}catch(s){Promise.reject(s)}}else if(t?.type==="error"){try{this.#r.onError?.(t.error,n,r,a)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(void 0,t.error,n,r,a)}catch(s){Promise.reject(s)}}}this.listeners.forEach(n=>{n(this.#e)})})}};function qE(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function Yz(e,t,n){const r=e.slice(0);return r[t]=n,r}var Qz=class extends vh{#t;#e;#n;#r;#a;#s;#o;#i;#u;#l=[];constructor(e,t,n){super(),this.#t=e,this.#r=n,this.#n=[],this.#a=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#a.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,Aa.batch(()=>{const n=this.#a,r=this.#c(this.#n);r.forEach(f=>f.observer.setOptions(f.defaultedQueryOptions));const a=r.map(f=>f.observer),s=a.map(f=>f.getCurrentResult()),i=n.length!==a.length,o=a.some((f,m)=>f!==n[m]),c=i||o,d=c?!0:s.some((f,m)=>{const b=this.#e[m];return!b||!f1(f,b)});!c&&!d||(c&&(this.#l=r,this.#a=a),this.#e=s,this.hasListeners()&&(c&&(qE(n,a).forEach(f=>{f.destroy()}),qE(a,n).forEach(f=>{f.subscribe(m=>{this.#m(f,m)})})),this.#h()))})}getCurrentResult(){return this.#e}getQueries(){return this.#a.map(e=>e.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(e,t){const n=this.#c(e),r=n.map(s=>s.observer.getOptimisticResult(s.defaultedQueryOptions)),a=n.map(s=>s.defaultedQueryOptions.queryHash);return[r,s=>this.#d(s??r,t,a),()=>this.#f(r,n)]}#f(e,t){return t.map((n,r)=>{const a=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,s=>{t.forEach(i=>{i.observer.trackProp(s)})})})}#d(e,t,n){if(t){const r=this.#u,a=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((s,i)=>s!==r[i]));return(!this.#s||this.#e!==this.#i||a||t!==this.#o)&&(this.#o=t,this.#i=this.#e,n!==void 0&&(this.#u=n),this.#s=B6(this.#s,t(e))),this.#s}return e}#p(){return this.#r?.combine!==void 0&&this.#a.some((e,t)=>e.options.suspense&&this.#e[t]?.data===void 0)}#c(e){const t=new Map;this.#a.forEach(r=>{const a=r.options.queryHash;if(!a)return;const s=t.get(a);s?s.push(r):t.set(a,[r])});const n=[];return e.forEach(r=>{const a=this.#t.defaultQueryOptions(r),i=t.get(a.queryHash)?.shift()??new z1(this.#t,a);n.push({defaultedQueryOptions:a,observer:i})}),n}#m(e,t){const n=this.#a.indexOf(e);n!==-1&&(this.#e=Yz(this.#e,n,t),this.#h())}#h(){if(this.hasListeners()){const e=this.#f(this.#e,this.#l),t=this.#p(),n=this.#s,r=t?n:this.#d(e,this.#r?.combine);(t||n!==r)&&Aa.batch(()=>{this.listeners.forEach(a=>{a(this.#e)})})}}},Xz=class extends vh{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??I6(r,t);let s=this.get(a);return s||(s=new Uz({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Aa.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>jE(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>jE(e,n)):t}notify(e){Aa.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Aa.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Aa.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Kz=class{#t;#e;#n;#r;#a;#s;#o;#i;constructor(e={}){this.#t=e.queryCache||new Xz,this.#e=e.mutationCache||new $z,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=D6.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=wx.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Yd(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#t.get(r.queryHash)?.state.data,i=Az(t,s);if(i!==void 0)return this.#t.build(this,r).setData(i,{...n,manual:!0})}
vendor: 12,248 bytes, lines 10-18
10setQueriesData(e,t,n){return Aa.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Aa.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return Aa.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Aa.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Ys).catch(Ys)}invalidateQueries(e,t={}){return Aa.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Aa.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,n);return n.throwOnError||(s=s.catch(Ys)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Ys)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Yd(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ys).catch(Ys)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ys).catch(Ys)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return wx.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Kd(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{h1(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(Kd(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{h1(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=I6(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===bo&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},My={exports:{}},_n={};/** 11 * @license React 12 * react.production.js 13 * 14 * Copyright (c) Meta Platforms, Inc. and affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var VE;function Jz(){if(VE)return _n;VE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),b=Symbol.iterator;function g(ne){return ne===null||typeof ne!="object"?null:(ne=b&&ne[b]||ne["@@iterator"],typeof ne=="function"?ne:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function _(ne,B,O){this.props=ne,this.context=B,this.refs=T,this.updater=O||v}_.prototype.isReactComponent={},_.prototype.setState=function(ne,B){if(typeof ne!="object"&&typeof ne!="function"&&ne!=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,ne,B,"setState")},_.prototype.forceUpdate=function(ne){this.updater.enqueueForceUpdate(this,ne,"forceUpdate")};function A(){}A.prototype=_.prototype;function R(ne,B,O){this.props=ne,this.context=B,this.refs=T,this.updater=O||v}var P=R.prototype=new A;P.constructor=R,E(P,_.prototype),P.isPureReactComponent=!0;var V=Array.isArray;function U(){}var D={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function q(ne,B,O){var K=O.ref;return{$$typeof:e,type:ne,key:B,ref:K!==void 0?K:null,props:O}}function W(ne,B){return q(ne.type,B,ne.props)}function z(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===e}function $(ne){var B={"=":"=0",":":"=2"};return"$"+ne.replace(/[=:]/g,function(O){return B[O]})}var ae=/\/+/g;function J(ne,B){return typeof ne=="object"&&ne!==null&&ne.key!=null?$(""+ne.key):B.toString(36)}function xe(ne){switch(ne.status){case"fulfilled":return ne.value;case"rejected":throw ne.reason;default:switch(typeof ne.status=="string"?ne.then(U,U):(ne.status="pending",ne.then(function(B){ne.status==="pending"&&(ne.status="fulfilled",ne.value=B)},function(B){ne.status==="pending"&&(ne.status="rejected",ne.reason=B)})),ne.status){case"fulfilled":return ne.value;case"rejected":throw ne.reason}}throw ne}function ee(ne,B,O,K,he){var we=typeof ne;(we==="undefined"||we==="boolean")&&(ne=null);var Ee=!1;if(ne===null)Ee=!0;else switch(we){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(ne.$$typeof){case e:case t:Ee=!0;break;case f:return Ee=ne._init,ee(Ee(ne._payload),B,O,K,he)}}if(Ee)return he=he(ne),Ee=K===""?"."+J(ne,0):K,V(he)?(O="",Ee!=null&&(O=Ee.replace(ae,"$&/")+"/"),ee(he,B,O,"",function(Ie){return Ie})):he!=null&&(z(he)&&(he=W(he,O+(he.key==null||ne&&ne.key===he.key?"":(""+he.key).replace(ae,"$&/")+"/")+Ee)),B.push(he)),1;Ee=0;var ue=K===""?".":K+":";if(V(ne))for(var Ae=0;Ae<ne.length;Ae++)K=ne[Ae],we=ue+J(K,Ae),Ee+=ee(K,B,O,we,he);else if(Ae=g(ne),typeof Ae=="function")for(ne=Ae.call(ne),Ae=0;!(K=ne.next()).done;)K=K.value,we=ue+J(K,Ae++),Ee+=ee(K,B,O,we,he);else if(we==="object"){if(typeof ne.then=="function")return ee(xe(ne),B,O,K,he);throw B=String(ne),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(ne).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function ce(ne,B,O){if(ne==null)return ne;var K=[],he=0;return ee(ne,K,"","",function(we){return B.call(O,we,he++)}),K}function se(ne){if(ne._status===-1){var B=ne._result;B=B(),B.then(function(O){(ne._status===0||ne._status===-1)&&(ne._status=1,ne._result=O)},function(O){(ne._status===0||ne._status===-1)&&(ne._status=2,ne._result=O)}),ne._status===-1&&(ne._status=0,ne._result=B)}if(ne._status===1)return ne._result.default;throw ne._result}var be=typeof reportError=="function"?reportError:function(ne){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof ne=="object"&&ne!==null&&typeof ne.message=="string"?String(ne.message):String(ne),error:ne});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",ne);return}console.error(ne)},Z={map:ce,forEach:function(ne,B,O){ce(ne,function(){B.apply(this,arguments)},O)},count:function(ne){var B=0;return ce(ne,function(){B++}),B},toArray:function(ne){return ce(ne,function(B){return B})||[]},only:function(ne){if(!z(ne))throw Error("React.Children.only expected to receive a single React element child.");return ne}};return _n.Activity=m,_n.Children=Z,_n.Component=_,_n.Fragment=n,_n.Profiler=a,_n.PureComponent=R,_n.StrictMode=r,_n.Suspense=c,_n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,_n.__COMPILER_RUNTIME={__proto__:null,c:function(ne){return D.H.useMemoCache(ne)}},_n.cache=function(ne){return function(){return ne.apply(null,arguments)}},_n.cacheSignal=function(){return null},_n.cloneElement=function(ne,B,O){if(ne==null)throw Error("The argument must be a React element, but you passed "+ne+".");var K=E({},ne.props),he=ne.key;if(B!=null)for(we in B.key!==void 0&&(he=""+B.key),B)!H.call(B,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&B.ref===void 0||(K[we]=B[we]);var we=arguments.length-2;if(we===1)K.children=O;else if(1<we){for(var Ee=Array(we),ue=0;ue<we;ue++)Ee[ue]=arguments[ue+2];K.children=Ee}return q(ne.type,he,K)},_n.createContext=function(ne){return ne={$$typeof:i,_currentValue:ne,_currentValue2:ne,_threadCount:0,Provider:null,Consumer:null},ne.Provider=ne,ne.Consumer={$$typeof:s,_context:ne},ne},_n.createElement=function(ne,B,O){var K,he={},we=null;if(B!=null)for(K in B.key!==void 0&&(we=""+B.key),B)H.call(B,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(he[K]=B[K]);var Ee=arguments.length-2;if(Ee===1)he.children=O;else if(1<Ee){for(var ue=Array(Ee),Ae=0;Ae<Ee;Ae++)ue[Ae]=arguments[Ae+2];he.children=ue}if(ne&&ne.defaultProps)for(K in Ee=ne.defaultProps,Ee)he[K]===void 0&&(he[K]=Ee[K]);return q(ne,we,he)},_n.createRef=function(){return{current:null}},_n.forwardRef=function(ne){return{$$typeof:o,render:ne}},_n.isValidElement=z,_n.lazy=function(ne){return{$$typeof:f,_payload:{_status:-1,_result:ne},_init:se}},_n.memo=function(ne,B){return{$$typeof:d,type:ne,compare:B===void 0?null:B}},_n.startTransition=function(ne){var B=D.T,O={};D.T=O;try{var K=ne(),he=D.S;he!==null&&he(O,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(U,be)}catch(we){be(we)}finally{B!==null&&O.types!==null&&(B.types=O.types),D.T=B}},_n.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},_n.use=function(ne){return D.H.use(ne)},_n.useActionState=function(ne,B,O){return D.H.useActionState(ne,B,O)},_n.useCallback=function(ne,B){return D.H.useCallback(ne,B)},_n.useContext=function(ne){return D.H.useContext(ne)},_n.useDebugValue=function(){},_n.useDeferredValue=function(ne,B){return D.H.useDeferredValue(ne,B)},_n.useEffect=function(ne,B){return D.H.useEffect(ne,B)},_n.useEffectEvent=function(ne){return D.H.useEffectEvent(ne)},_n.useId=function(){return D.H.useId()},_n.useImperativeHandle=function(ne,B,O){return D.H.useImperativeHandle(ne,B,O)},_n.useInsertionEffect=function(ne,B){return D.H.useInsertionEffect(ne,B)},_n.useLayoutEffect=function(ne,B){return D.H.useLayoutEffect(ne,B)},_n.useMemo=function(ne,B){return D.H.useMemo(ne,B)},_n.useOptimistic=function(ne,B){return D.H.useOptimistic(ne,B)},_n.useReducer=function(ne,B,O){return D.H.useReducer(ne,B,O)},_n.useRef=function(ne){return D.H.useRef(ne)},_n.useState=function(ne){return D.H.useState(ne)},_n.useSyncExternalStore=function(ne,B,O){return D.H.useSyncExternalStore(ne,B,O)},_n.useTransition=function(){return D.H.useTransition()},_n.version="19.2.1",_n}var GE;function b5(){return GE||(GE=1,My.exports=Jz()),My.exports}var G=b5();const St=x5(G),OA=wz({__proto__:null,default:St},[G]);var PA=G.createContext(void 0),H1=e=>{const t=G.useContext(PA);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Zz=({client:e,children:t})=>(G.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(PA.Provider,{value:e,children:t})),jA=G.createContext(!1),DA=()=>G.useContext(jA);jA.Provider;function eH(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var tH=G.createContext(eH()),IA=()=>G.useContext(tH),BA=(e,t,n)=>{const r=n?.state.error&&typeof e.throwOnError=="function"?F6(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},FA=e=>{G.useEffect(()=>{e.clearReset()},[e])},zA=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||F6(n,[e.error,r])),H6=(e,t)=>t.state.data===void 0,HA=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},nH=(e,t)=>e.isLoading&&e.isFetching&&!t,Fv=(e,t)=>
18e?.suspense&&t.isPending,zv=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function UA({queries:e,...t},n){const r=H1(n),a=DA(),s=IA(),i=G.useMemo(()=>e.map(E=>{const T=r.defaultQueryOptions(E);return T._optimisticResults=a?"isRestoring":"optimistic",T}),[e,r,a]);i.forEach(E=>{HA(E);const T=r.getQueryCache().get(E.queryHash);BA(E,s,T)}),FA(s);const[o]=G.useState(()=>new Qz(r,i,t)),[c,d,f]=o.getOptimisticResult(i,t.combine),m=!a&&t.subscribed!==!1;G.useSyncExternalStore(G.useCallback(E=>m?o.subscribe(Aa.batchCalls(E)):Ys,[o,m]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),G.useEffect(()=>{o.setQueries(i,t)},[i,t,o]);const g=c.some((E,T)=>Fv(i[T],E))?c.flatMap((E,T)=>{const _=i[T];if(_&&Fv(_,E)){const A=new z1(r,_);return zv(_,A,s)}return[]}):[];if(g.length>0)throw Promise.all(g);const v=c.find((E,T)=>{const _=i[T];return _&&zA({result:E,errorResetBoundary:s,throwOnError:_.throwOnError,query:r.getQueryCache().get(_.queryHash),suspense:_.suspense})});if(v?.error)throw v.error;return d(f())}function y5(e,t,n){const r=DA(),a=IA(),s=H1(n),i=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(i);const o=s.getQueryCache().get(i.queryHash),c=e.subscribed!==!1;i._optimisticResults=r?"isRestoring":c?"optimistic":void 0,HA(i),BA(i,a,o),FA(a);const d=!s.getQueryCache().get(i.queryHash),[f]=G.useState(()=>new t(s,i)),m=f.getOptimisticResult(i),b=!r&&c;if(G.useSyncExternalStore(G.useCallback(g=>{const v=b?f.subscribe(Aa.batchCalls(g)):Ys;return f.updateResult(),v},[f,b]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),G.useEffect(()=>{f.setOptions(i)},[i,f]),Fv(i,m))throw zv(i,f,a);if(zA({result:m,errorResetBoundary:a,throwOnError:i.throwOnError,query:o,suspense:i.suspense}))throw m.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(i,m),i.experimental_prefetchInRender&&!p1.isServer()&&nH(m,r)&&(d?zv(i,f,a):o?.promise)?.catch(Ys).finally(()=>{f.updateResult()}),i.notifyOnChangeProps?m:f.trackResult(m)}function rH(e,t){return y5(e,z1,t)}function aH(e,t){return y5({...e,enabled:!0,suspense:!0,throwOnError:H6,placeholderData:void 0},z1,t)}function sH(e,t){return y5({...e,enabled:!0,suspense:!0,throwOnError:H6},MA,t)}function iH(e,t){return UA({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:H6,enabled:!0,placeholderData:void 0}))},t)}function oH(e,t){const n=H1(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function lH(e,t){const n=H1(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function cH(e,t){const n=H1(t),[r]=G.useState(()=>new Wz(n,e));G.useEffect(()=>{r.setOptions(e)},[r,e]);const a=G.useSyncExternalStore(G.useCallback(i=>r.subscribe(Aa.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=G.useCallback((i,o)=>{r.mutate(i,o).catch(Ys)},[r]);if(a.error&&F6(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}function uH(e,t){return y5(e,MA,t)}function dh(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function dH(){return Object.create(null)}const hH=typeof Symbol=="function"&&!!Symbol.asyncIterator;function qA(e){return hH&&dh(e)&&Symbol.asyncIterator in e}var fH=Object.create,VA=Object.defineProperty,pH=Object.getOwnPropertyDescriptor,GA=Object.getOwnPropertyNames,mH=Object.getPrototypeOf,gH=Object.prototype.hasOwnProperty,U1=(e,t)=>function(){return t||(0,e[GA(e)[0]])((t={exports:{}}).exports,t),t.exports},xH=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=GA(t),s=0,i=a.length,o;s<i;s++)o=a[s],!gH.call(e,o)&&o!==n&&VA(e,o,{get:(c=>t[c]).bind(null,o),enumerable:!(r=pH(t,o))||r.enumerable});return e},v5=(e,t,n)=>(n=e!=null?fH(mH(e)):{},xH(VA(n,"default",{value:e,enumerable:!0}),e));const $A=()=>{},$E=e=>{Object.freeze&&Object.freeze(e)};function WA(e,t,n){var r;const a=t.join(".");return(r=n[a])!==null&&r!==void 0||(n[a]=new Proxy($A,{get(s,i){if(!(typeof i!="string"||i==="then"))return WA(e,[...t,i],n)},apply(s,i,o){const c=t[t.length-1];if(c==="valueOf"||c==="toString"||c==="toJSON")return`tRPC.proxy(${t.slice(0,-1).join(".")})`;let d={args:o,path:t};return c==="call"?d={args:o.length>=2?[o[1]]:[],path:t.slice(0,-1)}:c==="apply"&&(d={args:o.length>=2?o[1]:[],path:t.slice(0,-1)}),$E(d.args),$E(d.path),e(d)}})),n[a]}const w5=e=>WA(e,[],dH()),U6=e=>new Proxy($A,{get(t,n){if(n!=="then")return e(n)}});var YA=U1({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a}
18,t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),bH=U1({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=YA().default;function r(a,s){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,s||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),yH=U1({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=YA().default,r=bH();function a(s){var i=r(s,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),QA=U1({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=yH();function r(a,s,i){return(s=n(s))in a?Object.defineProperty(a,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[s]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),q6=U1({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=QA();function r(s,i){var o=Object.keys(s);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);i&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(s,d).enumerable})),o.push.apply(o,c)}return o}function a(s){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(c){n(s,c,o[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(c){Object.defineProperty(s,c,Object.getOwnPropertyDescriptor(o,c))})}return s}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});v5(q6());v5(QA());var r2=v5(q6());function vH(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,r2.default)((0,r2.default)({},e),{},{error:r})}}return{ok:!0,result:(0,r2.default)((0,r2.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var Ry=class extends Error{constructor(){super("Unable to transform response from server")}};function wH(e,t){let n;try{n=vH(e,t)}catch{throw new Ry}if(!n.ok&&(!dh(n.error.error)||typeof n.error.error.code!="number"))throw new Ry;if(n.ok&&!dh(n.result))throw new Ry;return n}v5(q6());function S5(e){const t={subscribe(n){let r=null,a=!1,s=!1,i=!1;function o(){if(r===null){i=!0;return}s||(s=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(c){var d;a||(d=n.next)===null||d===void 0||d.call(n,c)},error(c){var d;a||(a=!0,(d=n.error)===null||d===void 0||d.call(n,c),o())},complete(){var c;a||(a=!0,(c=n.complete)===null||c===void 0||c.call(n),o())}}),i&&o(),{unsubscribe:o}},pipe(...n){return n.reduce(SH,t)}};return t}function SH(e,t){return t(e)}function EH(e){const t=new AbortController;return new Promise((r,a)=>{let s=!1;function i(){s||(s=!0,o.unsubscribe())}t.signal.addEventListener("abort",()=>{a(t.signal.reason)});const o=e.subscribe({next(c){s=!0,r(c),i()},error(c){a(c)},complete(){t.abort(),i()}})})}var kH=Object.create,XA=Object.defineProperty,_H=Object.getOwnPropertyDescriptor,KA=Object.getOwnPropertyNames,TH=Object.getPrototypeOf,CH=Object.prototype.hasOwnProperty,o0=(e,t)=>function(){return t||(0,e[KA(e)[0]])((t={exports:{}}).exports,t),t.exports},NH=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=KA(t),s=0,i=a.length,o;s<i;s++)o=a[s],!CH.call(e,o)&&o!==n&&XA(e,o,{get:(c=>t[c]).bind(null,o),enumerable:!(r=_H(t,o))||r.enumerable});return e},wh=(e,t,n)=>(n=e!=null?kH(TH(e)):{},NH(t||!e||!e.__esModule?XA(n,"default",{value:e,enumerable:!0}):n,e)),AH=o0({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,a){if(r==null)return{};var s={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(a.includes(i))continue;s[i]=r[i]}return s}
18t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),LH=o0({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=AH();function r(a,s){if(a==null)return{};var i,o,c=n(a,s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);for(o=0;o<d.length;o++)i=d[o],s.includes(i)||{}.propertyIsEnumerable.call(a,i)&&(c[i]=a[i])}return c}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),JA=o0({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),MH=o0({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=JA().default;function r(a,s){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,s||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),RH=o0({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=JA().default,r=MH();function a(s){var i=r(s,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),OH=o0({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=RH();function r(a,s,i){return(s=n(s))in a?Object.defineProperty(a,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[s]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),q1=o0({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=OH();function r(s,i){var o=Object.keys(s);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);i&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(s,d).enumerable})),o.push.apply(o,c)}return o}function a(s){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(c){n(s,c,o[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(c){Object.defineProperty(s,c,Object.getOwnPropertyDescriptor(o,c))})}return s}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),PH=wh(LH(),1),WE=wh(q1(),1);const jH=["cursor","direction"];function yc(e,t,n){const r=e.flatMap(a=>a.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&dh(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:s}=t,i=(0,PH.default)(t,jH);return[r,{input:i,type:"infinite"}]}return[r,(0,WE.default)((0,WE.default)({},typeof t<"u"&&t!==bo&&{input:t}),n&&n!=="any"&&{type:n})]}function K2(e){return yc(e,void 0,"any")}var DH=Object.create,ZA=Object.defineProperty,IH=Object.getOwnPropertyDescriptor,eL=Object.getOwnPropertyNames,BH=Object.getPrototypeOf,FH=Object.prototype.hasOwnProperty,Oc=(e,t)=>function(){return t||(0,e[eL(e)[0]])((t={exports:{}}).exports,t),t.exports},zH=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=eL(t),s=0,i=a.length,o;s<i;s++)o=a[s],!FH.call(e,o)&&o!==n&&ZA(e,o,{get:(c=>t[c]).bind(null,o),enumerable:!(r=IH(t,o))||r.enumerable});return e},Va=(e,t,n)=>(n=e!=null?DH(BH(e)):{},zH(t||!e||!e.__esModule?ZA(n,"default",{value:e,enumerable:!0}):n,e)),tL=Oc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a}
18,t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),HH=Oc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=tL().default;function r(a,s){if(n(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,s||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),UH=Oc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=tL().default,r=HH();function a(s){var i=r(s,"string");return n(i)=="symbol"?i:i+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Sh=Oc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=UH();function r(a,s,i){return(s=n(s))in a?Object.defineProperty(a,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[s]=i,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ol=Oc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Sh();function r(s,i){var o=Object.keys(s);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);i&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(s,d).enumerable})),o.push.apply(o,c)}return o}function a(s){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(c){n(s,c,o[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(c){Object.defineProperty(s,c,Object.getOwnPropertyDescriptor(o,c))})}return s}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function qH(e){return t=>{let n=0,r=null;const a=[];function s(){r||(r=t.subscribe({next(o){for(const d of a){var c;(c=d.next)===null||c===void 0||c.call(d,o)}},error(o){for(const d of a){var c;(c=d.error)===null||c===void 0||c.call(d,o)}},complete(){for(const c of a){var o;(o=c.complete)===null||o===void 0||o.call(c)}}}))}function i(){if(n===0&&r){const o=r;r=null,o.unsubscribe()}}return S5(o=>(n++,a.push(o),s(),{unsubscribe(){n--,i();const c=a.findIndex(d=>d===o);c>-1&&a.splice(c,1)}}))}}function VH(e){let t=e;const n=[],r=i=>{t!==void 0&&i.next(t),n.push(i)},a=i=>{n.splice(n.indexOf(i),1)},s=S5(i=>(r(i),()=>{a(i)}));return s.next=i=>{if(t!==i){t=i;for(const o of n)o.next(i)}},s.get=()=>t,s}function GH(e){return S5(t=>{function n(a=0,s=e.op){const i=e.links[a];if(!i)throw new Error("No more links to execute - did you forget to add an ending link?");return i({op:s,next(c){return n(a+1,c)}})}return n().subscribe(t)})}var a2=Va(Sh(),1),yf=Va(Ol(),1);function $H(e){return e instanceof ep}function WH(e){return dh(e)&&dh(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function YH(e,t){return typeof e=="string"?e:dh(e)&&typeof e.message=="string"?e.message:t}var ep=class J2 extends Error{constructor(t,n){var r,a;const s=n?.cause;super(t,{cause:s}),(0,a2.default)(this,"cause",void 0),(0,a2.default)(this,"shape",void 0),(0,a2.default)(this,"data",void 0),(0,a2.default)(this,"meta",void 0),this.meta=n?.meta,this.cause=s,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(a=n.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,J2.prototype)}static from(t,n={}){const r=t;return $H(r)?(n.meta&&(r.meta=(0,yf.default)((0,yf.default)({},r.meta),n.meta)),r):WH(r)?new J2(r.error.message,(0,yf.default)((0,yf.default)({},n),{},{result:r,cause:n.cause})):new J2(YH(r,"Unknown error"),(0,yf.default)((0,yf.default)({},n),{},{cause:r}))}};function QH(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const YE=e=>typeof e=="function";function XH(e){if(e)return e;if(typeof window<"u"&&YE(window.fetch))return window.fetch;if(typeof globalThis<"u"&&YE(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Vm=Va(Ol());function KH(e){return{url:e.url.toString(),fetch:e.fetch,transformer:QH(e.transformer),methodOverride:e.methodOverride}}function JH(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const ZH={query:"GET",mutation:"POST",subscription:"PATCH"};function nL(e){return"input"in e?e.transformer.input.serialize(e.input):JH(e.inputs.map(t=>e.transformer.input.serialize(t)))}const rL=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const a=[];if(t[1]&&a.push(t[1]),"inputs"in e&&a.push("batch=1"),e.type==="query"||e.type==="subscription"){const s=nL(e);s!==void 0&&e.methodOverride!=="POST"&&a.push(`input=${encodeURIComponent(JSON.stringify(s))}`)}return a.length&&(r+="?"+a.join("&")),r},eU=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=nL(e);return t!==void 0?JSON.stringify(t):void 0},tU=e=>sU((0,Vm.default)((0,Vm.default)({},e),{},{contentTypeHeader:"application/json",getUrl:rL,getBody:eU}));
18var nU=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const rU=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new nU};async function aU(e){var t,n;rU(e.signal);const r=e.getUrl(e),a=e.getBody(e),s=(t=e.methodOverride)!==null&&t!==void 0?t:ZH[e.type],i=await(async()=>{const c=await e.headers();return Symbol.iterator in c?Object.fromEntries(c):c})(),o=(0,Vm.default)((0,Vm.default)((0,Vm.default)({},e.contentTypeHeader&&s!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{[(n=e.trpcAcceptHeaderKey)!==null&&n!==void 0?n:"trpc-accept"]:e.trpcAcceptHeader}:void 0),i);return XH(e.fetch)(r,{method:s,signal:e.signal,body:a,headers:o})}async function sU(e){const t={},n=await aU(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}Va(Ol(),1);const QE=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function XE(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function a(o){const c=[[]];let d=0;for(;;){const b=o[d];if(!b)break;const g=c[c.length-1];if(b.aborted){var f;(f=b.reject)===null||f===void 0||f.call(b,new Error("Aborted")),d++;continue}if(e.validate(g.concat(b).map(E=>E.key))){g.push(b),d++;continue}if(g.length===0){var m;(m=b.reject)===null||m===void 0||m.call(b,new Error("Input is too big for a single dispatch")),d++;continue}c.push([])}return c}function s(){const o=a(t);r();for(const c of o){if(!c.length)continue;const d={items:c};for(const m of c)m.batch=d;e.fetch(d.items.map(m=>m.key)).then(async m=>{await Promise.all(m.map(async(g,v)=>{const E=d.items[v];try{var T;const A=await Promise.resolve(g);(T=E.resolve)===null||T===void 0||T.call(E,A)}catch(A){var _;(_=E.reject)===null||_===void 0||_.call(E,A)}E.batch=null,E.reject=null,E.resolve=null}));for(const g of d.items){var b;(b=g.reject)===null||b===void 0||b.call(g,new Error("Missing result")),g.batch=null}}).catch(m=>{for(const g of d.items){var b;(b=g.reject)===null||b===void 0||b.call(g,m),g.batch=null}})}}function i(o){var c;const d={aborted:!1,key:o,batch:null,resolve:QE,reject:QE},f=new Promise((m,b)=>{var g;d.reject=b,d.resolve=m,(g=t)!==null&&g!==void 0||(t=[]),t.push(d)});return(c=n)!==null&&c!==void 0||(n=setTimeout(s)),f}return{load:i}}function iU(...e){const t=new AbortController,n=e.length;let r=0;const a=()=>{++r===n&&t.abort()};for(const s of e)s?.aborted?a():s?.addEventListener("abort",a,{once:!0});return t.signal}var s2=Va(Ol(),1);function oU(e){var t,n;const r=KH(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,s=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const i=f=>({validate(m){if(a===1/0&&s===1/0)return!0;if(m.length>s)return!1;const b=m.map(E=>E.path).join(","),g=m.map(E=>E.input);return rL((0,s2.default)((0,s2.default)({},r),{},{type:f,path:b,inputs:g,signal:null})).length<=a},async fetch(m){const b=m.map(A=>A.path).join(","),g=m.map(A=>A.input),v=iU(...m.map(A=>A.signal)),E=await tU((0,s2.default)((0,s2.default)({},r),{},{path:b,inputs:g,type:f,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:m}):e.headers:{}},signal:v}));return(Array.isArray(E.json)?E.json:m.map(()=>E.json)).map(A=>({meta:E.meta,json:A}))}}),o=XE(i("query")),c=XE(i("mutation")),d={query:o,mutation:c};return({op:f})=>S5(m=>{/* istanbul ignore if -- @preserve */if(f.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const g=d[f.type].load(f);let v;return g.then(E=>{v=E;const T=wH(E.json,r.transformer.output);if(!T.ok){m.error(ep.from(T.error,{meta:E.meta}));return}m.next({context:E.meta,result:T.result}),m.complete()}).catch(E=>{m.error(ep.from(E,{meta:v?.meta}))}),()=>{}})}}Va(Ol(),1);const aL=(e,...t)=>typeof e=="function"?e(...t):e;Va(Sh(),1);function lU(){let e,t;return{promise:new Promise((r,a)=>{e=r,t=a}),resolve:e,reject:t}}async function cU(e){const t=await aL(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function uU(e,t){const n={method:"connectionParams",data:await aL(e)};return t.encode(n)}Va(Sh(),1);var Bd=Va(Sh(),1);function dU(e){const{promise:t,resolve:n,reject:r}=lU();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function hU(e,{intervalMs:t,pongTimeoutMs:n}){let r,a;function s(){r=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},n)},t)}function i(){clearTimeout(r),s()}function o(){clearTimeout(a),i()}e.addEventListener("open",s),e.addEventListener("message",({data:c})=>{clearTimeout(r),s(),c==="PONG"&&o()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(a)})}var fU=class Hv{constructor(t){var n;if((0,Bd.default)(this,"id",++Hv.connectCount),(0,Bd.default)(this,"WebSocketPonyfill",void 0),(0,Bd.default)(this,"urlOptions",void 0),(0,Bd.default)(this,"keepAliveOpts",void 0),(0,Bd.default)(this,"encoder",void 0),(0,Bd.default)(this,"wsObservable",VH(null)),(0,Bd.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive,this.encoder=t.encoder}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++Hv.connectCount;const n=cU(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.binaryType="arraybuffer",r.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&hU(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await dU(r),t.urlOptions.connectionParams&&r.send(await uU(t.urlOptions.connectionParams,t.encoder))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Bd.default)(fU,"connectCount",0);Va(Sh(),1);Va(Ol(),1);var Oy=Va(Sh(),1),KE=Va(Ol(),1),E5=class{constructor(e){(0,Oy.default)(this,"links",void 0),(0,Oy.default)(this,"runtime",void 0),(0,Oy.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return GH({links:this.links,op:(0,KE.default)((0,KE.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(qH())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await EH(n)).result.data}catch(n){throw ep.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(a){switch(a.result.type){case"state":{var s;(s=n.onConnectionStateChange)===null||s===void 0||s.call(n,a.result);break}case"started":{var i;(i=n.onStarted)===null||i===void 0||i.call(n,{context:a.context});break}case"stopped":{var o;(o=n.onStopped)===null||o===void 0||o.call(n);break}case"data":case void 0:{var c;
18(c=n.onData)===null||c===void 0||c.call(n,a.result.data);break}}},error(a){var s;(s=n.onError)===null||s===void 0||s.call(n,a)},complete(){var a;(a=n.onComplete)===null||a===void 0||a.call(n)}})}};const sL=Symbol.for("trpc_untypedClient"),pU={query:"query",mutate:"mutation",subscribe:"subscription"},mU=e=>pU[e];function iL(e){const t=w5(({path:n,args:r})=>{const a=[...n],s=mU(a.pop()),i=a.join(".");return e[s](i,...r)});return U6(n=>n===sL?e:t[n])}function gU(e){const t=new E5(e);return iL(t)}function V6(e){return e[sL]}Va(Ol(),1);Va(Ol(),1);var xU=Oc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var s,i,o,c=2;for(typeof Symbol<"u"&&(i=Symbol.asyncIterator,o=Symbol.iterator);c--;){if(i&&(s=a[i])!=null)return s.call(a);if(o&&(s=a[o])!=null)return new r(s.call(a));i="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function s(i){if(Object(i)!==i)return Promise.reject(new TypeError(i+" is not an object."));var o=i.done;return Promise.resolve(i.value).then(function(c){return{value:c,done:o}})}return r=function(o){this.s=o,this.n=o.next},r.prototype={s:null,n:null,next:function(){return s(this.n.apply(this.s,arguments))},return:function(o){var c=this.s.return;return c===void 0?Promise.resolve({value:o,done:!0}):s(c.apply(this.s,arguments))},throw:function(o){var c=this.s.return;return c===void 0?Promise.reject(o):s(c.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});Va(xU(),1);Va(Ol(),1);var bU=Oc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(o,c){var d=Error();return d.name="SuppressedError",d.error=o,d.suppressed=c,d},a={},s=[];function i(o,c){if(c!=null){if(Object(c)!==c)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(o)var d=c[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(d===void 0&&(d=c[Symbol.dispose||Symbol.for("Symbol.dispose")],o))var f=d;if(typeof d!="function")throw new TypeError("Object is not disposable.");f&&(d=function(){try{f.call(c)}catch(b){return Promise.reject(b)}}),s.push({v:c,d,a:o})}else o&&s.push({d:c,a:o});return c}return{e:a,u:i.bind(null,!1),a:i.bind(null,!0),d:function(){var c,d=this.e,f=0;function m(){for(;c=s.pop();)try{if(!c.a&&f===1)return f=0,s.push(c),Promise.resolve().then(m);if(c.d){var g=c.d.call(c.v);if(c.a)return f|=2,Promise.resolve(g).then(m,b)}else f|=1}catch(v){return b(v)}if(f===1)return d!==a?Promise.reject(d):Promise.resolve();if(d!==a)throw d}function b(g){return d=d!==a?new r(g,d):g,m()}return m()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),oL=Oc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,a){this.v=r,this.k=a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),yU=Oc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=oL();function r(a){return new n(a,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),vU=Oc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=oL();function r(s){return function(){return new a(s.apply(this,arguments))}}function a(s){var i,o;function c(f,m){try{var b=s[f](m),g=b.value,v=g instanceof n;Promise.resolve(v?g.v:g).then(function(E){if(v){var T=f==="return"?"return":"next";if(!g.k||E.done)return c(T,E);E=s[T](E).value}d(b.done?"return":"normal",E)},function(E){c("throw",E)})}catch(E){d("throw",E)}}function d(f,m){switch(f){case"return":i.resolve({value:m,done:!0});break;case"throw":i.reject(m);break;default:i.resolve({value:m,done:!1})}(i=i.next)?c(i.key,i.arg):o=null}this._invoke=function(f,m){return new Promise(function(b,g){var v={key:f,arg:m,resolve:b,reject:g,next:null};o?o=o.next=v:(i=o=v,c(f,m))})},typeof s.return!="function"&&(this.return=void 0)}a.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(s){return this._invoke("next",s)},a.prototype.throw=function(s){return this._invoke("throw",s)},a.prototype.return=function(s){return this._invoke("return",s)}
18,t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Va(bU(),1);Va(yU(),1);Va(vU(),1);Va(Ol(),1);function wU(e){return w5(({path:t,args:n})=>{var r;const a=[...t],s=a.pop();if(s==="useMutation")return e[s](a,...n);if(s==="_def")return{path:a};const[i,...o]=n,c=(r=o[0])!==null&&r!==void 0?r:{};return e[s](a,i,c)})}var Py;const SU=["client","ssrContext","ssrState","abortOnUnmount"],EU=(Py=G.createContext)===null||Py===void 0?void 0:Py.call(OA,null),kU=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function _U(e){return w5(t=>{const n=[...t.path],r=n.pop(),a=[...t.args],s=a.shift(),i=kU(r),o=yc(n,s,i);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,o,a[0]),queryOptions:()=>e.queryOptions(n,o,...a),fetch:()=>e.fetchQuery(o,...a),fetchInfinite:()=>e.fetchInfiniteQuery(o,a[0]),prefetch:()=>e.prefetchQuery(o,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(o,a[0]),ensureData:()=>e.ensureQueryData(o,...a),invalidate:()=>e.invalidateQueries(o,...a),reset:()=>e.resetQueries(o,...a),refetch:()=>e.refetchQueries(o,...a),cancel:()=>e.cancelQuery(o,...a),setData:()=>{e.setQueryData(o,a[0],a[1])},setQueriesData:()=>e.setQueriesData(o,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(o,a[0],a[1])},getData:()=>e.getQueryData(o),getInfiniteData:()=>e.getInfiniteQueryData(o),setMutationDefaults:()=>e.setMutationDefaults(K2(n),s),getMutationDefaults:()=>e.getMutationDefaults(K2(n)),isMutating:()=>e.isMutating({mutationKey:K2(n)})}[r]()})}function TU(e){const t=iL(e.client),n=_U(e);return U6(r=>{const a=r;return a==="client"?t:SU.includes(a)?e[a]:n[r]})}var CU=wh(q1(),1);function JE(e){const t=e instanceof E5?e:V6(e);return w5(n=>{const r=n.path,a=r.join("."),[s,i]=n.args;return(0,CU.default)({queryKey:yc(r,s,"query"),queryFn:()=>t.query(a,s,i?.trpc)},i)})}var jy=wh(q1(),1);function hi(e,t,n){var r;const a=e[0];let s=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var i;s=(0,jy.default)((0,jy.default)((0,jy.default)({},(i=s)!==null&&i!==void 0?i:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[a.join("."),s,t?.trpc]}var NU=o0({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var s,i,o,c=2;for(typeof Symbol<"u"&&(i=Symbol.asyncIterator,o=Symbol.iterator);c--;){if(i&&(s=a[i])!=null)return s.call(a);if(o&&(s=a[o])!=null)return new r(s.call(a));i="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function s(i){if(Object(i)!==i)return Promise.reject(new TypeError(i+" is not an object."));var o=i.done;return Promise.resolve(i.value).then(function(c){return{value:c,done:o}})}return r=function(o){this.s=o,this.n=o.next},r.prototype={s:null,n:null,next:function(){return s(this.n.apply(this.s,arguments))},return:function(o){var c=this.s.return;return c===void 0?Promise.resolve({value:o,done:!0}):s(c.apply(this.s,arguments))},throw:function(o){var c=this.s.return;return c===void 0?Promise.reject(o):s(c.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),AU=wh(NU(),1);function Uv(e){return{path:e.path.join(".")}}function wm(e){const t=Uv(e);return G.useMemo(()=>t,[t])}async function lL(e,t,n){const a=t.getQueryCache().build(t,{queryKey:n});a.setState({data:[],status:"success"});const s=[];var i=!1,o=!1,c;try{for(var d=(0,AU.default)(e),f;i=!(f=await d.next()).done;i=!1){const m=f.value;s.push(m),a.setState({data:[...s]})}}catch(m){o=!0,c=m}finally{try{i&&d.return!=null&&await d.return()}finally{if(o)throw c}}return s}var or=wh(q1(),1);function LU(e){const{client:t,queryClient:n}=e,r=t instanceof E5?t:V6(t);return{infiniteQueryOptions:(a,s,i)=>{var o,c;const d=((o=s[1])===null||o===void 0?void 0:o.input)===bo,f=async m=>{var b;const g=(0,or.default)((0,or.default)({},i),{},{trpc:(0,or.default)((0,or.default)({},i?.trpc),!(i==null||(b=i.trpc)===null||b===void 0)&&b.abortOnUnmount?{signal:m.signal}:{signal:null})});return await r.query(...hi(s,g,{direction:m.direction,pageParam:m.pageParam}))};return Object.assign((0,or.default)((0,or.default)({},i),{},{initialData:i?.initialData,queryKey:s,queryFn:d?bo:f,initialPageParam:(c=i?.initialCursor)!==null&&c!==void 0?c:null}),{trpc:Uv({path:a})})},queryOptions:(a,s,i)=>{var o;const c=((o=s[1])===null||o===void 0?void 0:o.input)===bo,d=async f=>{var m;const b=(0,or.default)((0,or.default)({},i),{},{trpc:(0,or.default)((0,or.default)({},i?.trpc),!(i==null||(m=i.trpc)===null||m===void 0)&&m.abortOnUnmount?{signal:f.
18signal}:{signal:null})}),g=await r.query(...hi(s,b));return qA(g)?lL(g,n,s):g};return Object.assign((0,or.default)((0,or.default)({},i),{},{initialData:i?.initialData,queryKey:s,queryFn:c?bo:d}),{trpc:Uv({path:a})})},fetchQuery:(a,s)=>n.fetchQuery((0,or.default)((0,or.default)({},s),{},{queryKey:a,queryFn:()=>r.query(...hi(a,s))})),fetchInfiniteQuery:(a,s)=>{var i;return n.fetchInfiniteQuery((0,or.default)((0,or.default)({},s),{},{queryKey:a,queryFn:({pageParam:o,direction:c})=>r.query(...hi(a,s,{pageParam:o,direction:c})),initialPageParam:(i=s?.initialCursor)!==null&&i!==void 0?i:null}))},prefetchQuery:(a,s)=>n.prefetchQuery((0,or.default)((0,or.default)({},s),{},{queryKey:a,queryFn:()=>r.query(...hi(a,s))})),prefetchInfiniteQuery:(a,s)=>{var i;return n.prefetchInfiniteQuery((0,or.default)((0,or.default)({},s),{},{queryKey:a,queryFn:({pageParam:o,direction:c})=>r.query(...hi(a,s,{pageParam:o,direction:c})),initialPageParam:(i=s?.initialCursor)!==null&&i!==void 0?i:null}))},ensureQueryData:(a,s)=>n.ensureQueryData((0,or.default)((0,or.default)({},s),{},{queryKey:a,queryFn:()=>r.query(...hi(a,s))})),invalidateQueries:(a,s,i)=>n.invalidateQueries((0,or.default)((0,or.default)({},s),{},{queryKey:a}),i),resetQueries:(a,s,i)=>n.resetQueries((0,or.default)((0,or.default)({},s),{},{queryKey:a}),i),refetchQueries:(a,s,i)=>n.refetchQueries((0,or.default)((0,or.default)({},s),{},{queryKey:a}),i),cancelQuery:(a,s)=>n.cancelQueries({queryKey:a},s),setQueryData:(a,s,i)=>n.setQueryData(a,s,i),setQueriesData:(a,s,i,o)=>n.setQueriesData((0,or.default)((0,or.default)({},s),{},{queryKey:a}),i,o),getQueryData:a=>n.getQueryData(a),setInfiniteQueryData:(a,s,i)=>n.setQueryData(a,s,i),getInfiniteQueryData:a=>n.getQueryData(a),setMutationDefaults:(a,s)=>{const i=a[0],o=c=>r.mutation(...hi([i,{input:c}],e));return n.setMutationDefaults(a,typeof s=="function"?s({canonicalMutationFn:o}):s)},getMutationDefaults:a=>n.getMutationDefaults(a),isMutating:a=>n.isMutating((0,or.default)((0,or.default)({},a),{},{exact:!0}))}}var Mt=wh(q1());const ZE=(e,t)=>new Proxy(e,{get(r,a){return t(a),r[a]}});function MU(e){var t,n;const r=(t=void 0)!==null&&t!==void 0?t:V=>V.originalFn(),a=(n=void 0)!==null&&n!==void 0?n:EU,s=gU,i=V=>{var U;const{abortOnUnmount:D=!1,queryClient:H,ssrContext:q}=V,[W,z]=G.useState((U=V.ssrState)!==null&&U!==void 0?U:!1),$=V.client instanceof E5?V.client:V6(V.client),ae=G.useMemo(()=>LU({client:$,queryClient:H}),[$,H]),J=G.useMemo(()=>(0,Mt.default)({abortOnUnmount:D,queryClient:H,client:$,ssrContext:q??null,ssrState:W},ae),[D,$,ae,H,q,W]);return G.useEffect(()=>
18{z(xe=>xe?"mounted":!1)},[]),h.jsx(a.Provider,{value:J,children:V.children})};function o(){const V=G.useContext(a);if(!V)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return V}function c(V,U){var D;const{queryClient:H,ssrState:q}=o();return q&&q!=="mounted"&&((D=H.getQueryCache().find({queryKey:V}))===null||D===void 0?void 0:D.state.status)==="error"?(0,Mt.default)({retryOnMount:!1},U):U}function d(V,U,D){var H,q,W,z,$;const ae=o(),{abortOnUnmount:J,client:xe,ssrState:ee,queryClient:ce,prefetchQuery:se}=ae,be=yc(V,U,"query"),Z=ce.getQueryDefaults(be),ne=U===bo;typeof window>"u"&&ee==="prepass"&&(D==null||(H=D.trpc)===null||H===void 0?void 0:H.ssr)!==!1&&((q=D?.enabled)!==null&&q!==void 0?q:Z?.enabled)!==!1&&!ne&&!ce.getQueryCache().find({queryKey:be})&&se(be,D);const B=c(be,(0,Mt.default)((0,Mt.default)({},Z),D)),O=(W=(z=D==null||($=D.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&z!==void 0?z:void 0)!==null&&W!==void 0?W:J,K=rH((0,Mt.default)((0,Mt.default)({},B),{},{queryKey:be,queryFn:ne?U:async he=>{const we=(0,Mt.default)((0,Mt.default)({},B),{},{trpc:(0,Mt.default)((0,Mt.default)({},B?.trpc),O?{signal:he.signal}:{signal:null})}),Ee=await xe.query(...hi(be,we));return qA(Ee)?lL(Ee,ce,be):Ee}}),ce);return K.trpc=wm({path:V}),K}function f(V,U,D){var H,q,W;const z=o(),$=yc(V,U,"query"),ae=U===bo,J=(H=(q=D==null||(W=D.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&q!==void 0?q:void 0)!==null&&H!==void 0?H:z.abortOnUnmount;oH((0,Mt.default)((0,Mt.default)({},D),{},{queryKey:$,queryFn:ae?U:xe=>{const ee={trpc:(0,Mt.default)((0,Mt.default)({},D?.trpc),J?{signal:xe.signal}:{})};return z.client.query(...hi($,ee))}}))}function m(V,U,D){var H,q,W;const z=o(),$=yc(V,U,"query"),ae=(H=(q=D==null||(W=D.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&q!==void 0?q:void 0)!==null&&H!==void 0?H:z.abortOnUnmount,J=aH((0,Mt.default)((0,Mt.default)({},D),{},{queryKey:$,queryFn:xe=>{const ee=(0,Mt.default)((0,Mt.default)({},D),{},{trpc:(0,Mt.default)((0,Mt.default)({},D?.trpc),ae?{signal:xe.signal}:{signal:null})});return z.client.query(...hi($,ee))}}),z.queryClient);return J.trpc=wm({path:V}),[J.data,J]}function b(V,U){const{client:D,queryClient:H}=o(),q=K2(V),W=H.defaultMutationOptions(H.getMutationDefaults(q)),z=cH((0,Mt.default)((0,Mt.default)({},U),{},{mutationKey:q,mutationFn:$=>D.mutation(...hi([V,{input:$}],U)),onSuccess(...$){var ae,J;return r({originalFn:()=>{var ee,ce,se;return(ee=U==null||(ce=U.onSuccess)===null||ce===void 0?void 0:ce.call(U,...$))!==null&&ee!==void 0?ee:W==null||(se=W.onSuccess)===null||se===void 0?void 0:se.call(W,...$)},queryClient:H,meta:(ae=(J=U?.meta)!==null&&J!==void 0?J:W?.meta)!==null&&ae!==void 0?ae:{}})}}),H);return z.trpc=wm({path:V}),z}const g={data:void 0,error:null,status:"idle"},v={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function E(V,U,D){var H;const q=(H=D?.enabled)!==null&&H!==void 0?H:U!==bo,W=Kd(yc(V,U,"any")),{client:z}=o(),$=G.useRef(D);G.useEffect(()=>{$.current=D});const[ae]=G.useState(new Set([])),J=G.useCallback(ne=>{ae.add(ne)},[ae]),xe=G.useRef(null),ee=G.useCallback(ne=>{const B=se.current,O=se.current=ne(B);let K=!1;for(const he of ae)if(B[he]!==O[he]){K=!0;break}K&&Z(ZE(O,J))},[J,ae]),ce=G.useCallback(()=>{var ne;if((ne=xe.current)===null||ne===void 0||ne.unsubscribe(),!q){ee(()=>(0,Mt.default)((0,Mt.default)({},g),{},{reset:ce}));return}ee(()=>(0,Mt.default)((0,Mt.default)({},v),{},{reset:ce}));const B=z.subscription(V.join("."),U??void 0,{onStarted:()=>{var O,K;(O=(K=$.current).onStarted)===null||O===void 0||O.call(K),ee(he=>(0,Mt.default)((0,Mt.default)({},he),{},{status:"pending",error:null}))},onData:O=>{var K,he;(K=(he=$.current).onData)===null||K===void 0||K.call(he,O),ee(we=>(0,Mt.default)((0,Mt.default)({},we),{},{status:"pending",data:O,error:null}))},onError:O=>{var K,he;(K=(he=$.current).onError)===null||K===void 0||K.call(he,O),ee(we=>(0,Mt.default)((0,Mt.default)({},we),{},{status:"error",error:O}))},onConnectionStateChange:O=>{ee(K=>{switch(O.state){case"idle":return(0,Mt.default)((0,Mt.default)({},K),{},{status:O.state,error:null,data:void 0});case"connecting":return(0,Mt.default)((0,Mt.default)({},K),{},{error:O.error,status:O.state});
18case"pending":return K}})},onComplete:()=>{var O,K;(O=(K=$.current).onComplete)===null||O===void 0||O.call(K),ee(he=>(0,Mt.default)((0,Mt.default)({},he),{},{status:"idle",error:null,data:void 0}))}});xe.current=B},[z,W,q,ee]);G.useEffect(()=>(ce(),()=>{var ne;(ne=xe.current)===null||ne===void 0||ne.unsubscribe()}),[ce]);const se=G.useRef(q?(0,Mt.default)((0,Mt.default)({},v),{},{reset:ce}):(0,Mt.default)((0,Mt.default)({},g),{},{reset:ce})),[be,Z]=G.useState(ZE(se.current,J));return be}function T(V,U,D){var H,q,W,z,$;const{client:ae,ssrState:J,prefetchInfiniteQuery:xe,queryClient:ee,abortOnUnmount:ce}=o(),se=yc(V,U,"infinite"),be=ee.getQueryDefaults(se),Z=U===bo;typeof window>"u"&&J==="prepass"&&(D==null||(H=D.trpc)===null||H===void 0?void 0:H.ssr)!==!1&&((q=D?.enabled)!==null&&q!==void 0?q:be?.enabled)!==!1&&!Z&&!ee.getQueryCache().find({queryKey:se})&&xe(se,(0,Mt.default)((0,Mt.default)({},be),D));const ne=c(se,(0,Mt.default)((0,Mt.default)({},be),D)),B=(W=D==null||(z=D.trpc)===null||z===void 0?void 0:z.abortOnUnmount)!==null&&W!==void 0?W:ce,O=uH((0,Mt.default)((0,Mt.default)({},ne),{},{initialPageParam:($=D.initialCursor)!==null&&$!==void 0?$:null,persister:D.persister,queryKey:se,queryFn:Z?U:K=>{var he;const we=(0,Mt.default)((0,Mt.default)({},ne),{},{trpc:(0,Mt.default)((0,Mt.default)({},ne?.trpc),B?{signal:K.signal}:{signal:null})});return ae.query(...hi(se,we,{pageParam:(he=K.pageParam)!==null&&he!==void 0?he:D.initialCursor,direction:K.direction}))}}),ee);return O.trpc=wm({path:V}),O}function _(V,U,D){var H,q,W;const z=o(),$=yc(V,U,"infinite"),ae=z.queryClient.getQueryDefaults($),J=U===bo,xe=c($,(0,Mt.default)((0,Mt.default)({},ae),D)),ee=(H=D==null||(q=D.trpc)===null||q===void 0?void 0:q.abortOnUnmount)!==null&&H!==void 0?H:z.abortOnUnmount;lH((0,Mt.default)((0,Mt.default)({},D),{},{initialPageParam:(W=D.initialCursor)!==null&&W!==void 0?W:null,queryKey:$,queryFn:J?U:ce=>{var se;const be=(0,Mt.default)((0,Mt.default)({},xe),{},{trpc:(0,Mt.default)((0,Mt.default)({},xe?.trpc),ee?{signal:ce.signal}:{})});return z.client.query(...hi($,be,{pageParam:(se=ce.pageParam)!==null&&se!==void 0?se:D.initialCursor,direction:ce.direction}))}}))}function A(V,U,D){var H,q,W;const z=o(),$=yc(V,U,"infinite"),ae=z.queryClient.getQueryDefaults($),J=c($,(0,Mt.default)((0,Mt.default)({},ae),D)),xe=(H=D==null||(q=D.trpc)===null||q===void 0?void 0:q.abortOnUnmount)!==null&&H!==void 0?H:z.abortOnUnmount,ee=sH((0,Mt.default)((0,Mt.default)({},D),{},{initialPageParam:(W=D.initialCursor)!==null&&W!==void 0?W:null,queryKey:$,queryFn:ce=>{var se;const be=(0,Mt.default)((0,Mt.default)({},J),{},{trpc:(0,Mt.default)((0,Mt.default)({},J?.trpc),xe?{signal:ce.signal}:{})});return z.client.query(...hi($,be,{pageParam:(se=ce.pageParam)!==null&&se!==void 0?se:D.initialCursor,direction:ce.direction}))}}),z.queryClient);return ee.trpc=wm({path:V}),[ee.data,ee]}return{Provider:i,createClient:s,useContext:o,useUtils:o,useQuery:d,usePrefetchQuery:f,useSuspenseQuery:m,useQueries:(V,U)=>{const{ssrState:D,queryClient:H,prefetchQuery:q,client:W}=o(),z=JE(W),$=V(z);if(typeof window>"u"&&D==="prepass")for(const J of $){var ae;const xe=J;((ae=xe.trpc)===null||ae===void 0?void 0:ae.ssr)!==!1&&!H.getQueryCache().find({queryKey:xe.queryKey})&&q(xe.queryKey,xe)}return UA({queries:$.map(J=>(0,Mt.default)((0,Mt.default)({},J),{},{queryKey:J.queryKey})),combine:U?.combine},H)},useSuspenseQueries:V=>{const{queryClient:U,client:D}=o(),H=JE(D),q=V(H),W=iH({queries:q.map(z=>(0,Mt.default)((0,Mt.default)({},z),{},{queryFn:z.queryFn,queryKey:z.queryKey}))},U);return[W.map(z=>z.data),W]},useMutation:b,useSubscription:E,useInfiniteQuery:T,usePrefetchInfiniteQuery:_,useSuspenseInfiniteQuery:A}}function RU(e){const t=wU(e);return U6(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return G.useMemo(()=>TU(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function OU(e){const t=MU();return RU(t)}const Tr=OU(),PU="app_session_id",jU="Please login (10001)";var Dy={exports:{}},Sm={},Iy={exports:{}},By={};/** 19 * @license React 20 * scheduler.production.js 21 * 22 * Copyright (c) Meta Platforms, Inc. and affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */var ek;function DU(){return ek||(ek=1,(function(e){function t(ee,ce){var se=ee.length;ee.push(ce);e:for(;0<se;){var be=se-1>>>1,Z=ee[be];
vendor: 9,236 bytes, lines 26-42
26if(0<a(Z,ce))ee[be]=ce,ee[se]=Z,se=be;else break e}}function n(ee){return ee.length===0?null:ee[0]}function r(ee){if(ee.length===0)return null;var ce=ee[0],se=ee.pop();if(se!==ce){ee[0]=se;e:for(var be=0,Z=ee.length,ne=Z>>>1;be<ne;){var B=2*(be+1)-1,O=ee[B],K=B+1,he=ee[K];if(0>a(O,se))K<Z&&0>a(he,O)?(ee[be]=he,ee[K]=se,be=K):(ee[be]=O,ee[B]=se,be=B);else if(K<Z&&0>a(he,se))ee[be]=he,ee[K]=se,be=K;else break e}}return ce}function a(ee,ce){var se=ee.sortIndex-ce.sortIndex;return se!==0?se:ee.id-ce.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var c=[],d=[],f=1,m=null,b=3,g=!1,v=!1,E=!1,T=!1,_=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function P(ee){for(var ce=n(d);ce!==null;){if(ce.callback===null)r(d);else if(ce.startTime<=ee)r(d),ce.sortIndex=ce.expirationTime,t(c,ce);else break;ce=n(d)}}function V(ee){if(E=!1,P(ee),!v)if(n(c)!==null)v=!0,U||(U=!0,$());else{var ce=n(d);ce!==null&&xe(V,ce.startTime-ee)}}var U=!1,D=-1,H=5,q=-1;function W(){return T?!0:!(e.unstable_now()-q<H)}function z(){if(T=!1,U){var ee=e.unstable_now();q=ee;var ce=!0;try{e:{v=!1,E&&(E=!1,A(D),D=-1),g=!0;var se=b;try{t:{for(P(ee),m=n(c);m!==null&&!(m.expirationTime>ee&&W());){var be=m.callback;if(typeof be=="function"){m.callback=null,b=m.priorityLevel;var Z=be(m.expirationTime<=ee);if(ee=e.unstable_now(),typeof Z=="function"){m.callback=Z,P(ee),ce=!0;break t}m===n(c)&&r(c),P(ee)}else r(c);m=n(c)}if(m!==null)ce=!0;else{var ne=n(d);ne!==null&&xe(V,ne.startTime-ee),ce=!1}}break e}finally{m=null,b=se,g=!1}ce=void 0}}finally{ce?$():U=!1}}}var $;if(typeof R=="function")$=function(){R(z)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,J=ae.port2;ae.port1.onmessage=z,$=function(){J.postMessage(null)}}else $=function(){_(z,0)};function xe(ee,ce){D=_(function(){ee(e.unstable_now())},ce)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ee){ee.callback=null},e.unstable_forceFrameRate=function(ee){0>ee||125<ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<ee?Math.floor(1e3/ee):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(ee){switch(b){case 1:case 2:case 3:var ce=3;break;default:ce=b}var se=b;b=ce;try{return ee()}finally{b=se}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(ee,ce){switch(ee){case 1:case 2:case 3:case 4:case 5:break;default:ee=3}var se=b;b=ee;try{return ce()}finally{b=se}},e.unstable_scheduleCallback=function(ee,ce,se){var be=e.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?be+se:be):se=be,ee){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=se+Z,ee={id:f++,callback:ce,priorityLevel:ee,startTime:se,expirationTime:Z,sortIndex:-1},se>be?(ee.sortIndex=se,t(d,ee),n(c)===null&&ee===n(d)&&(E?(A(D),D=-1):E=!0,xe(V,se-be))):(ee.sortIndex=Z,t(c,ee),v||g||(v=!0,U||(U=!0,$()))),ee},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(ee){var ce=b;return function(){var se=b;b=ce;try{return ee.apply(this,arguments)}finally{b=se}}}})(By)),By}var tk;function IU(){return tk||(tk=1,Iy.exports=DU()),Iy.exports}var Fy={exports:{}},Us={};/** 27 * @license React 28 * react-dom.production.js 29 * 30 * Copyright (c) Meta Platforms, Inc. and affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var nk;function BU(){if(nk)return Us;nk=1;var e=b5();function t(c){var d="https://react.dev/errors/"+c;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)d+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+c+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(c,d,f){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:m==null?null:""+m,children:c,containerInfo:d,implementation:f}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(c,d){if(c==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Us.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Us.createPortal=function(c,d){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(c,d,null,f)},Us.flushSync=function(c){var d=i.T,f=r.p;try{if(i.T=null,r.p=2,c)return c()}finally{i.T=d,r.p=f,r.d.f()}},Us.preconnect=function(c,d){typeof c=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(c,d))},Us.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},Us.preinit=function(c,d){if(typeof c=="string"&&d&&typeof d.as=="string"){var f=d.as,m=o(f,d.crossOrigin),b=typeof d.integrity=="string"?d.integrity:void 0,g=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;f==="style"?r.d.S(c,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:m,integrity:b,fetchPriority:g}):f==="script"&&r.d.X(c,{crossOrigin:m,integrity:b,fetchPriority:g,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Us.preinitModule=function(c,d){if(typeof c=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var f=o(d.as,d.crossOrigin);r.d.M(c,{crossOrigin:f,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(c)},Us.preload=function(c,d){if(typeof c=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var f=d.as,m=o(f,d.crossOrigin);r.d.L(c,f,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Us.preloadModule=function(c,d){if(typeof c=="string")if(d){var f=o(d.as,d.crossOrigin);r.d.m(c,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:f,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(c)},Us.requestFormReset=function(c){r.d.r(c)},Us.unstable_batchedUpdates=function(c,d){return c(d)},Us.useFormState=function(c,d,f){return i.H.useFormState(c,d,f)},Us.useFormStatus=function(){return i.H.useHostTransitionStatus()},Us.version="19.2.1",Us}var rk;function cL(){if(rk)return Fy.exports;rk=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Fy.exports=BU(),Fy.exports}/** 35 * @license React 36 * react-dom-client.production.js 37 * 38 * Copyright (c) Meta Platforms, Inc. and affiliates. 39 * 40 * This source code is licensed under the MIT license found in the 41 * LICENSE file in the root directory of this source tree. 42 */var ak;function FU(){if(ak)return Sm;ak=1;var e=IU(),t=b5(),n=cL();function r(l){var u="https://react.dev/errors/"+l;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)u+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function s(l){var u=l,p=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,(u.flags&4098)!==0&&(p=u.return),l=u.return;while(l)}return u.tag===3?p:null}function i(l){if(l.tag===13){var u=l.memoizedState;if(u===null&&(l=l.alternate,l!==null&&(u=l.memoizedState)),u!==null)return u.dehydrated}return null}function o(l){if(l.tag===31){var u=l.memoizedState;if(u===null&&(l=l.alternate,l!==null&&(u=l.memoizedState)),u!==null)return u.dehydrated}return null}function c(l){if(s(l)!==l)throw Error(r(188))}function d(l){var u=l.alternate;if(!u){if(u=s(l),u===null)throw Error(r(188));return u!==l?null:l}for(var p=l,x=u;;){var w=p.return;if(w===null)break;var k=w.alternate;if(k===null){if(x=w.return,x!==null){p=x;continue}break}if(w.child===k.child){for(k=w.child;k;){if(k===p)return c(w),l;if(k===x)return c(w),u;k=k.sibling}throw Error(r(188))}if(p.return!==x.return)p=w,x=k;else{for(var F=!1,ie=w.child;ie;){if(ie===p){F=!0,p=w,x=k;break}if(ie===x){F=!0,x=w,p=k;break}ie=ie.sibling}
vendor: 10,010 bytes, lines 42-49
42if(!F){for(ie=k.child;ie;){if(ie===p){F=!0,p=k,x=w;break}if(ie===x){F=!0,x=k,p=w;break}ie=ie.sibling}if(!F)throw Error(r(189))}}if(p.alternate!==x)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?l:u}function f(l){var u=l.tag;if(u===5||u===26||u===27||u===6)return l;for(l=l.child;l!==null;){if(u=f(l),u!==null)return u;l=l.sibling}return null}var m=Object.assign,b=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),R=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function $(l){return l===null||typeof l!="object"?null:(l=z&&l[z]||l["@@iterator"],typeof l=="function"?l:null)}var ae=Symbol.for("react.client.reference");function J(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===ae?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case E:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case V:return"Suspense";case U:return"SuspenseList";case q:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case v:return"Portal";case R:return l.displayName||"Context";case A:return(l._context.displayName||"Context")+".Consumer";case P:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case D:return u=l.displayName||null,u!==null?u:J(l.type)||"Memo";case H:u=l._payload,l=l._init;try{return J(l(u))}catch{}}return null}var xe=Array.isArray,ee=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},be=[],Z=-1;function ne(l){return{current:l}}function B(l){0>Z||(l.current=be[Z],be[Z]=null,Z--)}function O(l,u){Z++,be[Z]=l.current,l.current=u}var K=ne(null),he=ne(null),we=ne(null),Ee=ne(null);function ue(l,u){switch(O(we,u),O(he,l),O(K,null),u.nodeType){case 9:case 11:l=(l=u.documentElement)&&(l=l.namespaceURI)?nE(l):0;break;default:if(l=u.tagName,u=u.namespaceURI)u=nE(u),l=rE(u,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}B(K),O(K,l)}function Ae(){B(K),B(he),B(we)}function Ie(l){l.memoizedState!==null&&O(Ee,l);var u=K.current,p=rE(u,l.type);u!==p&&(O(he,l),O(K,p))}function We(l){he.current===l&&(B(K),B(he)),Ee.current===l&&(B(Ee),gm._currentValue=se)}var st,mt;function _t(l){if(st===void 0)try{throw Error()}catch(p){var u=p.stack.trim().match(/\n( *(at )?)/);st=u&&u[1]||"",mt=-1<p.stack.indexOf(` 43 at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return` 44`+st+l+mt}var fe=!1;function yt(l,u){if(!l||fe)return"";fe=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var x={DetermineComponentFrameRoot:function(){try{if(u){var at=function(){throw Error()};if(Object.defineProperty(at.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(at,[])}catch($e){var Ge=$e}Reflect.construct(l,[],at)}else{try{at.call()}catch($e){Ge=$e}l.call(at.prototype)}}else{try{throw Error()}catch($e){Ge=$e}(at=l())&&typeof at.catch=="function"&&at.catch(function(){})}}catch($e){if($e&&Ge&&typeof $e.stack=="string")return[$e.stack,Ge.stack]}return[null,null]}};x.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var w=Object.getOwnPropertyDescriptor(x.DetermineComponentFrameRoot,"name");w&&w.configurable&&Object.defineProperty(x.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var k=x.DetermineComponentFrameRoot(),F=k[0],ie=k[1];if(F&&ie){var Ce=F.split(` 45`),Ve=ie.split(` 46`);for(w=x=0;x<Ce.length&&!Ce[x].includes("DetermineComponentFrameRoot");)x++;for(;w<Ve.length&&!Ve[w].includes("DetermineComponentFrameRoot");)w++;if(x===Ce.length||w===Ve.length)for(x=Ce.length-1,w=Ve.length-1;1<=x&&0<=w&&Ce[x]!==Ve[w];)w--;for(;1<=x&&0<=w;x--,w--)if(Ce[x]!==Ve[w]){if(x!==1||w!==1)do if(x--,w--,0>w||Ce[x]!==Ve[w]){var Ze=` 47`+Ce[x].replace(" at new "," at ");return l.displayName&&Ze.includes("<anonymous>")&&(Ze=Ze.replace("<anonymous>",l.displayName)),Ze}while(1<=x&&0<=w);break}}}finally{fe=!1,Error.prepareStackTrace=p}return(p=l?l.displayName||l.name:"")?_t(p):""}function rn(l,u){switch(l.tag){case 26:case 27:case 5:return _t(l.type);case 16:return _t("Lazy");case 13:return l.child!==u&&u!==null?_t("Suspense Fallback"):_t("Suspense");case 19:return _t("SuspenseList");case 0:case 15:return yt(l.type,!1);case 11:return yt(l.type.render,!1);case 1:return yt(l.type,!0);case 31:return _t("Activity");default:return""}}function Ht(l){try{var u="",p=null;do u+=rn(l,p),p=l,l=l.return;while(l);return u}catch(x){return` 48Error generating stack: `+x.message+` 49`+x.stack}}var tt=Object.prototype.hasOwnProperty,Kt=e.unstable_scheduleCallback,Lt=e.unstable_cancelCallback,Rt=e.unstable_shouldYield,Bt=e.unstable_requestPaint,mn=e.unstable_now,An=e.unstable_getCurrentPriorityLevel,Be=e.unstable_ImmediatePriority,nt=e.unstable_UserBlockingPriority,bt=e.unstable_NormalPriority,ut=e.unstable_LowPriority,Et=e.unstable_IdlePriority,Ct=e.log,In=e.unstable_setDisableYieldValue,hn=null,Yt=null;function tn(l){if(typeof Ct=="function"&&In(l),Yt&&typeof Yt.setStrictMode=="function")try{Yt.setStrictMode(hn,l)}catch{}}var an=Math.clz32?Math.clz32:Jt,Ut=Math.log,Ln=Math.LN2;function Jt(l){return l>>>=0,l===0?32:31-(Ut(l)/Ln|0)|0}var pn=256,ur=262144,wn=4194304;function Qt(l){var u=l&42;if(u!==0)return u;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Tt(l,u,p){var x=l.pendingLanes;if(x===0)return 0;var w=0,k=l.suspendedLanes,F=l.pingedLanes;l=l.warmLanes;var ie=x&134217727;return ie!==0?(x=ie&~k,x!==0?w=Qt(x):(F&=ie,F!==0?w=Qt(F):p||(p=ie&~l,p!==0&&(w=Qt(p))))):(ie=x&~k,ie!==0?w=Qt(ie):F!==0?w=Qt(F):p||(p=x&~l,p!==0&&(w=Qt(p)))),w===0?0:u!==0&&u!==w&&(u&k)===0&&(k=w&-w,p=u&-u,k>=p||k===32&&(p&4194048)!==0)?u:w}function ar(l,u){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&u)===0}function Qn(l,u){switch(l){case 1:case 2:case 4:case 8:case 64:return u+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ur(){var l=wn;return wn<<=1,(wn&62914560)===0&&(wn=4194304),l}function Za(l){for(var u=[],p=0;31>p;p++)u.push(l);return u}function Nt(l,u){l.pendingLanes|=u,u!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function ea(l,u,p,x,w,k){var F=l.pendingLanes;l.pendingLanes=p,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=p,l.entangledLanes&=p,l.errorRecoveryDisabledLanes&=p,l.shellSuspendCounter=0;var ie=l.entanglements,Ce=l.expirationTimes,Ve=l.hiddenUpdates;for(p=F&~p;0<p;){var Ze=31-an(p),at=1<<Ze;ie[Ze]=0,Ce[Ze]=-1;var Ge=Ve[Ze];if(Ge!==null)for(Ve[Ze]=null,Ze=0;Ze<Ge.length;Ze++){var $e=Ge[Ze];$e!==null&&($e.lane&=-536870913)}p&=~at}x!==0&&Ms(l,x,0),k!==0&&w===0&&l.tag!==0&&(l.suspendedLanes|=k&~(F&~u))}function Ms(l,u,p){l.pendingLanes|=u,l.suspendedLanes&=~u;var x=31-an(u);l.entangledLanes|=u,l.entanglements[x]=l.entanglements[x]|1073741824|p&261930}function Rr(l,u){var p=l.entangledLanes|=u;for(l=l.entanglements;p;){var x=31-an(p),w=1<<x;w&u|l[x]&u&&(l[x]|=u),p&=~w}}function Or(l,u){var p=u&-u;return p=(p&42)!==0?1:yr(p),(p&(l.suspendedLanes|u))!==0?0:p}function yr(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function pr(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function Ra(){var l=ce.p;return l!==0?l:(l=window.event,l===void 0?32:TE(l.type))}function Il(l,u){var p=ce.p;try{return ce.p=l,u()}finally{ce.p=p}}var Rs=Math.random().toString(36).slice(2),vr="__reactFiber$"+Rs,$r="__reactProps$"+Rs,ps="__reactContainer$"+Rs,ri="__reactEvents$"+Rs,bi="__reactListeners$"+Rs,Uc="__reactHandles$"+Rs,Wi="__reactResources$"+Rs,Yi="__reactMarker$"+Rs;function Bl(l){delete l[vr],delete l[$r],delete l[ri],delete l[bi],delete l[Uc]}function Qi(l){var u=l[vr];if(u)return u;for(var p=l.parentNode;p;){if(u=p[ps]||p[vr]){if(p=u.alternate,u.child!==null||p!==null&&p.child!==null)for(l=uE(l);l!==null;){if(p=l[vr])return p;l=uE(l)}return u}l=p,p=l.parentNode}return null}function Xi(l){if(l=l[vr]||l[ps]){var u=l.tag;if(u===5||u===6||u===13||u===31||u===26||u===27||u===3)return l}return null}function qc(l){var u=l.tag;if(u===5||u===26||u===27||u===6)return l.stateNode;throw Error(r(33))}function To(l){var u=l[Wi];return u||(u=l[Wi]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function da(l){l[Yi]=!0}var h0=new Set,ai={};function Ki(l,u){el(l,u),el(l+"Capture",u)}function el(l,u){for(ai[l]=u,l=0;l<u.length;l++)h0.add(u[l])}var f0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
49037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),p0={},m0={};function Mh(l){return tt.call(m0,l)?!0:tt.call(p0,l)?!1:f0.test(l)?m0[l]=!0:(p0[l]=!0,!1)}function si(l,u,p){if(Mh(u))if(p===null)l.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":l.removeAttribute(u);return;case"boolean":var x=u.toLowerCase().slice(0,5);if(x!=="data-"&&x!=="aria-"){l.removeAttribute(u);return}}l.setAttribute(u,""+p)}}function tl(l,u,p){if(p===null)l.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(u);return}l.setAttribute(u,""+p)}}function Ji(l,u,p,x){if(x===null)l.removeAttribute(p);else{switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(p);return}l.setAttributeNS(u,p,""+x)}}function er(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function g0(l){var u=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Co(l,u,p){var x=Object.getOwnPropertyDescriptor(l.constructor.prototype,u);if(!l.hasOwnProperty(u)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var w=x.get,k=x.set;return Object.defineProperty(l,u,{configurable:!0,get:function(){return w.call(this)},set:function(F){p=""+F,k.call(this,F)}}),Object.defineProperty(l,u,{enumerable:x.enumerable}),{getValue:function(){return p},setValue:function(F){p=""+F},stopTracking:function(){l._valueTracker=null,delete l[u]}}}}function Fl(l){if(!l._valueTracker){var u=g0(l)?"checked":"value";l._valueTracker=Co(l,u,""+l[u])}}function Xu(l){if(!l)return!1;var u=l._valueTracker;if(!u)return!0;var p=u.getValue(),x="";return l&&(x=g0(l)?l.checked?"true":"false":l.value),l=x,l!==p?(u.setValue(l),!0):!1}function ms(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var Ku=/[\n"\\]/g;function xa(l){return l.replace(Ku,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function Oa(l,u,p,x,w,k,F,ie){l.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?l.type=F:l.removeAttribute("type"),u!=null?F==="number"?(u===0&&l.value===""||l.value!=u)&&(l.value=""+er(u)):l.value!==""+er(u)&&(l.value=""+er(u)):F!=="submit"&&F!=="reset"||l.removeAttribute("value"),u!=null?b0(l,F,er(u)):p!=null?b0(l,F,er(p)):x!=null&&l.removeAttribute("value"),w==null&&k!=null&&(l.defaultChecked=!!k),w!=null&&(l.checked=w&&typeof w!="function"&&typeof w!="symbol"),ie!=null&&typeof ie!="function"&&typeof ie!="symbol"&&typeof ie!="boolean"?l.name=""+er(ie):l.removeAttribute("name")}function x0(l,u,p,x,w,k,F,ie){if(k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(l.type=k),u!=null||p!=null){if(!(k!=="submit"&&k!=="reset"||u!=null)){Fl(l);return}p=p!=null?""+er(p):"",u=u!=null?""+er(u):p,ie||u===l.value||(l.value=u),l.defaultValue=u}x=x??w,x=typeof x!="function"&&typeof x!="symbol"&&!!x,l.checked=ie?l.checked:!!x,l.defaultChecked=!!x,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(l.name=F),Fl(l)}function b0(l,u,p){u==="number"&&ms(l.ownerDocument)===l||l.defaultValue===""+p||(l.defaultValue=""+p)}function zl(l,u,p,x){if(l=l.options,u){u={};for(var w=0;w<p.length;w++)u["$"+p[w]]=!0;for(p=0;p<l.length;p++)w=u.hasOwnProperty("$"+l[p].value),l[p].selected!==w&&(l[p].selected=w),w&&x&&(l[p].defaultSelected=!0)}else{for(p=""+er(p),u=null,w=0;w<l.length;w++){if(l[w].value===p){l[w].selected=!0,x&&(l[w].defaultSelected=!0);return}u!==null||l[w].disabled||(u=l[w])}u!==null&&(u.selected=!0)}}function Rh(l,u,p){if(u!=null&&(u=""+er(u),u!==l.value&&(l.value=u),p==null)){l.defaultValue!==u&&(l.defaultValue=u);return}l.defaultValue=p!=null?""+er(p):""}function Zi(l,u,p,x){if(u==null){if(x!=null){if(p!=null)throw Error(r(92));if(xe(x)){if(1<x.length)throw Error(r(93));x=x[0]}p=x}p==null&&(p=""),u=p}p=er(u),l.defaultValue=p,x=l.textContent,x===p&&x!==""&&x!==null&&(l.value=x),Fl(l)}function nl(l,u){if(u){var p=l.firstChild;
vendor: 4,140 bytes, line 49
49if(p&&p===l.lastChild&&p.nodeType===3){p.nodeValue=u;return}}l.textContent=u}var Ju=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Vc(l,u,p){var x=u.indexOf("--")===0;p==null||typeof p=="boolean"||p===""?x?l.setProperty(u,""):u==="float"?l.cssFloat="":l[u]="":x?l.setProperty(u,p):typeof p!="number"||p===0||Ju.has(u)?u==="float"?l.cssFloat=p:l[u]=(""+p).trim():l[u]=p+"px"}function Zu(l,u,p){if(u!=null&&typeof u!="object")throw Error(r(62));if(l=l.style,p!=null){for(var x in p)!p.hasOwnProperty(x)||u!=null&&u.hasOwnProperty(x)||(x.indexOf("--")===0?l.setProperty(x,""):x==="float"?l.cssFloat="":l[x]="");for(var w in u)x=u[w],u.hasOwnProperty(w)&&p[w]!==x&&Vc(l,w,x)}else for(var k in u)u.hasOwnProperty(k)&&Vc(l,k,u[k])}function y0(l){if(l.indexOf("-")===-1)return!1;switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ip=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
49-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Bp=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function eo(l){return Bp.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function yi(){}var No=null;function v0(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var vi=null,ln=null;function Oh(l){var u=Xi(l);if(u&&(l=u.stateNode)){var p=l[$r]||null;e:switch(l=u.stateNode,u.type){case"input":if(Oa(l,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),u=p.name,p.type==="radio"&&u!=null){for(p=l;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll('input[name="'+xa(""+u)+'"][type="radio"]'),u=0;u<p.length;u++){var x=p[u];if(x!==l&&x.form===l.form){var w=x[$r]||null;if(!w)throw Error(r(90));Oa(x,w.value,w.defaultValue,w.defaultValue,w.checked,w.defaultChecked,w.type,w.name)}}for(u=0;u<p.length;u++)x=p[u],x.form===l.form&&Xu(x)}break e;case"textarea":Rh(l,p.value,p.defaultValue);break e;case"select":u=p.value,u!=null&&zl(l,!!p.multiple,u,!1)}}}var w0=!1;function Ph(l,u,p){if(w0)return l(u,p);w0=!0;try{var x=l(u);return x}finally{if(w0=!1,(vi!==null||ln!==null)&&(Pg(),vi&&(u=vi,l=ln,ln=vi=null,Oh(u),l)))for(u=0;u<l.length;u++)Oh(l[u])}}function Gc(l,u){var p=l.stateNode;if(p===null)return null;var x=p[$r]||null;if(x===null)return null;p=x[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(l=l.type,x=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!x;break e;default:l=!1}if(l)return null;if(p&&typeof p!="function")throw Error(r(231,u,typeof p));return p}var to=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),no=!1;if(to)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){no=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{no=!1}var Ao=null,S0=null,rl=null;function ed(){if(rl)return rl;var l,u=S0,p=u.length,x,w="value"in Ao?Ao.value:Ao.textContent,k=w.length;for(l=0;l<p&&u[l]===w[l];l++);var F=p-l;for(x=1;x<=F&&u[p-x]===w[k-x];x++);return rl=w.slice(l,1<x?1-x:void 0)}function oi(l){var u=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&u===13&&(l=13)):l=u,l===10&&(l=13),32<=l||l===13?l:0}function td(){return!0}function $c(){return!1}function gs(l){function u(p,x,w,k,F){this._reactName=p,this._targetInst=w,this.type=x,this.nativeEvent=k,this.target=F,this.currentTarget=null;for(var ie in l)l.hasOwnProperty(ie)&&(p=l[ie],this[ie]=p?p(k):k[ie]);return this.isDefaultPrevented=(k.defaultPrevented!=null?k.defaultPrevented:k.returnValue===!1)?td:$c,this.isPropagationStopped=$c,this}return m(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=td)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=td)},persist:function(){},isPersistent:td}),u}var ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ao=gs(ro),al=m({},ro,{view:0,detail:0}),Wc=gs(al),Yc,Hl,sl,il=m({},al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dt,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==sl&&(sl&&l.type==="mousemove"?(Yc=l.screenX-sl.screenX,Hl=l.screenY-sl.screenY):Hl=Yc=0,sl=l),Yc)},movementY:function(l){return"movementY"in l?l.movementY:Hl}}),E0=gs(il),ol=m({},il,{dataTransfer:0}),ll=gs(ol),jh=m({},al,{relatedTarget:0}),nd=gs(jh),Dh=m({},ro,{animationName:0,elapsedTime:0,pseudoElement:0}),Qc=gs(Dh),Ih=m({},ro,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),N=gs(Ih),Y=m({},ro,{data:0}),ge=gs(Y),Ne={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pe={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ke={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ot(l){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(l):(l=Ke[l])?!!u[l]:!1}function Dt(){return ot}var Ft=m({},al,{key:function(l){if(l.key){var u=Ne[l.key]||l.key;if(u!=="Unidentified")return u}
vendor: 5,186 bytes, line 49
49return l.type==="keypress"?(l=oi(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?Pe[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dt,charCode:function(l){return l.type==="keypress"?oi(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?oi(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),bn=gs(Ft),Sn=m({},il,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hn=gs(Sn),ba=m({},al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dt}),wr=gs(ba),mr=m({},ro,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pr=gs(mr),Wr=m({},il,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),Yr=gs(Wr),xs=m({},ro,{newState:0,oldState:0}),cl=gs(xs),k0=[9,13,27,32],ul=to&&"CompositionEvent"in window,so=null;to&&"documentMode"in document&&(so=document.documentMode);var Ul=to&&"TextEvent"in window&&!so,ql=to&&(!ul||so&&8<so&&11>=so),Xc=" ",Kc=!1;function es(l,u){switch(l){case"keyup":return k0.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vl(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var wi=!1;function _0(l,u){switch(l){case"compositionend":return Vl(u);case"keypress":return u.which!==32?null:(Kc=!0,Xc);case"textInput":return l=u.data,l===Xc&&Kc?null:l;default:return null}}function Lo(l,u){if(wi)return l==="compositionend"||!ul&&es(l,u)?(l=ed(),rl=S0=Ao=null,wi=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return ql&&u.locale!=="ko"?null:u.data;default:return null}}var Os={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function T0(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u==="input"?!!Os[l.type]:u==="textarea"}function Jc(l,u,p,x){vi?ln?ln.push(x):ln=[x]:vi=x,u=Hg(u,"onChange"),0<u.length&&(p=new ao("onChange","change",null,p,x),l.push({event:p,listeners:u}))}var Gl=null,bs=null;function Zc(l){XS(l,0)}function $l(l){var u=qc(l);if(Xu(u))return l}function eu(l,u){if(l==="change")return u}var Wl=!1;if(to){var tu;if(to){var ts="oninput"in document;if(!ts){var Ps=document.createElement("div");Ps.setAttribute("oninput","return;"),ts=typeof Ps.oninput=="function"}tu=ts}else tu=!1;Wl=tu&&(!document.documentMode||9<document.documentMode)}function nu(){Gl&&(Gl.detachEvent("onpropertychange",dl),bs=Gl=null)}function dl(l){if(l.propertyName==="value"&&$l(bs)){var u=[];Jc(u,bs,l,v0(l)),Ph(Zc,u)}}function Yl(l,u,p){l==="focusin"?(nu(),Gl=u,bs=p,Gl.attachEvent("onpropertychange",dl)):l==="focusout"&&nu()}function rd(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return $l(bs)}function ru(l,u){if(l==="click")return $l(u)}function ya(l,u){if(l==="input"||l==="change")return $l(u)}function Fp(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var ta=typeof Object.is=="function"?Object.is:Fp;function js(l,u){if(ta(l,u))return!0;if(typeof l!="object"||l===null||typeof u!="object"||u===null)return!1;var p=Object.keys(l),x=Object.keys(u);if(p.length!==x.length)return!1;for(x=0;x<p.length;x++){var w=p[x];if(!tt.call(u,w)||!ta(l[w],u[w]))return!1}return!0}function Ql(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function ad(l,u){var p=Ql(l);l=0;for(var x;p;){if(p.nodeType===3){if(x=l+p.textContent.length,l<=u&&x>=u)return{node:p,offset:u-l};l=x}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Ql(p)}}function sd(l,u){return l&&u?l===u?!0:l&&l.nodeType===3?!1:u&&u.nodeType===3?sd(l,u.parentNode):"contains"in l?l.contains(u):l.compareDocumentPosition?!!(l.compareDocumentPosition(u)&16):!1:!1}function au(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var u=ms(l.document);u instanceof l.HTMLIFrameElement;){try{var p=typeof u.contentWindow.location.href=="string"}catch{p=!1}if(p)l=u.contentWindow;else break;u=ms(l.document)}return u}function hl(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u&&(u==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||u==="textarea"||l.contentEditable==="true")}var su=to&&"documentMode"in document&&11>=document.documentMode,li=null,io=null,Si=null,Xl=!1;function ns(l,u,p){var x=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Xl||li==null||li!==ms(x)||(x=li,"selectionStart"in x&&hl(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focu
vendor: 18,869 bytes, line 49
49sNode:x.focusNode,focusOffset:x.focusOffset}),Si&&js(Si,x)||(Si=x,x=Hg(io,"onSelect"),0<x.length&&(u=new ao("onSelect","select",null,u,p),l.push({event:u,listeners:x}),u.target=li)))}function ys(l,u){var p={};return p[l.toLowerCase()]=u.toLowerCase(),p["Webkit"+l]="webkit"+u,p["Moz"+l]="moz"+u,p}var tr={animationend:ys("Animation","AnimationEnd"),animationiteration:ys("Animation","AnimationIteration"),animationstart:ys("Animation","AnimationStart"),transitionrun:ys("Transition","TransitionRun"),transitionstart:ys("Transition","TransitionStart"),transitioncancel:ys("Transition","TransitionCancel"),transitionend:ys("Transition","TransitionEnd")},gr={},na={};to&&(na=document.createElement("div").style,"AnimationEvent"in window||(delete tr.animationend.animation,delete tr.animationiteration.animation,delete tr.animationstart.animation),"TransitionEvent"in window||delete tr.transitionend.transition);function jr(l){if(gr[l])return gr[l];if(!tr[l])return l;var u=tr[l],p;for(p in u)if(u.hasOwnProperty(p)&&p in na)return gr[l]=u[p];return l}var Mo=jr("animationend"),id=jr("animationiteration"),iu=jr("animationstart"),Bh=jr("transitionrun"),dg=jr("transitionstart"),hg=jr("transitioncancel"),zp=jr("transitionend"),Hp=new Map,ou="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ou.push("scrollEnd");function Ei(l,u){Hp.set(l,u),Ki(u,[l])}var C0=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},ci=[],lu=0,Fh=0;function N0(){for(var l=lu,u=Fh=lu=0;u<l;){var p=ci[u];ci[u++]=null;var x=ci[u];ci[u++]=null;var w=ci[u];ci[u++]=null;var k=ci[u];if(ci[u++]=null,x!==null&&w!==null){var F=x.pending;F===null?w.next=w:(w.next=F.next,F.next=w),x.pending=w}k!==0&&L0(p,w,k)}}function A0(l,u,p,x){ci[lu++]=l,ci[lu++]=u,ci[lu++]=p,ci[lu++]=x,Fh|=x,l.lanes|=x,l=l.alternate,l!==null&&(l.lanes|=x)}function zh(l,u,p,x){return A0(l,u,p,x),vs(l)}function fl(l,u){return A0(l,null,null,u),vs(l)}function L0(l,u,p){l.lanes|=p;var x=l.alternate;x!==null&&(x.lanes|=p);for(var w=!1,k=l.return;k!==null;)k.childLanes|=p,x=k.alternate,x!==null&&(x.childLanes|=p),k.tag===22&&(l=k.stateNode,l===null||l._visibility&1||(w=!0)),l=k,k=k.return;return l.tag===3?(k=l.stateNode,w&&u!==null&&(w=31-an(p),l=k.hiddenUpdates,x=l[w],x===null?l[w]=[u]:x.push(u),u.lane=p|536870912),k):null}function vs(l){if(50<cm)throw cm=0,ey=null,Error(r(185));for(var u=l.return;u!==null;)l=u,u=l.return;return l.tag===3?l.stateNode:null}var rs={};function Hh(l,u,p,x){this.tag=l,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ws(l,u,p,x){return new Hh(l,u,p,x)}function Uh(l){return l=l.prototype,!(!l||!l.isReactComponent)}function ki(l,u){var p=l.alternate;return p===null?(p=ws(l.tag,u,l.key,l.mode),p.elementType=l.elementType,p.type=l.type,p.stateNode=l.stateNode,p.alternate=l,l.alternate=p):(p.pendingProps=u,p.type=l.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=l.flags&65011712,p.childLanes=l.childLanes,p.lanes=l.lanes,p.child=l.child,p.memoizedProps=l.memoizedProps,p.memoizedState=l.memoizedState,p.updateQueue=l.updateQueue,u=l.dependencies,p.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},p.sibling=l.sibling,p.index=l.index,p.ref=l.ref,p.refCleanup=l.refCleanup,p}function M0(l,u){l.flags&=65011714;var p=l.alternate;return p===null?(l.childLanes=0,l.lanes=u,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=p.childLanes,l.lanes=p.lanes,l.child=p.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=p.memoizedProps,l.memoizedState=p.memoizedState,l.updateQueue=p.updateQueue,l.type=p.type,u=p.dependencies,l.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),l}function od(l,u,p,x,w,k){var F=0;if(x=l,typeof l=="function")Uh(l)&&(F=1);else if(typeof l=="string")F=cz(l,p,K.current)?26:l==="html"||l==="head"||l==="body"?27:5;else e:switch(l){case q:return l=ws(31,p,u,w),l.elementType=q,l.lanes=k,l;case E:return Kl(p.children,w,k,u);case T:F=8,w|=24;break;case _:return l=ws(12,p,u,w|2),l.elementType=_,l.lanes=k,l;case V:return l=ws(13,p,u,w),l.elementType=V,l.lanes=k,l;case U:return l=ws(19,p,u,w),l.elementType=U,l.lanes=k,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case R:F=10;break e;case A:F=9;break e;case P:F=11;break e;case D:F=14;break e;case H:F=16,x=null;break e}F=29,p=Error(r(130,l===null?"null":typeof l,"")),x=null}return u=ws(F,p,u,w),u.elementType=l,u.type=x,u.lanes=k,u}function Kl(l,u,p,x){return l=ws(7,l,x,u),l.lanes=p,l}function R0(l,u,p){return l=ws(6,l,null,u),l.lanes=p,l}function qh(l){var u=ws(18,null,null,0);return u.stateNode=l,u}function ld(l,u,p){return u=ws(4,l.children!==null?l.children:[],l.key,u),u.lanes=p,u.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},u}var Vh=new WeakMap;function _i(l,u){if(typeof l=="object"&&l!==null){var p=Vh.get(l);return p!==void 0?p:(u={value:l,source:u,stack:Ht(u)},Vh.set(l,u),u)}return{value:l,source:u,stack:Ht(u)}}var cd=[],cu=0,Gh=null,O0=0,Ti=[],Ci=0,Jl=null,Ni=1,Ai="";function ui(l,u){cd[cu++]=O0,cd[cu++]=Gh,Gh=l,O0=u}function fg(l,u,p){Ti[Ci++]=Ni,Ti[Ci++]=Ai,Ti[Ci++]=Jl,Jl=l;var x=Ni;l=Ai;var w=32-an(x)-1;x&=~(1<<w),p+=1;var k=32-an(u)+w;if(30<k){var F=w-w%5;k=(x&(1<<F)-1).toString(32),x>>=F,w-=F,Ni=1<<32-an(u)+w|p<<w|x,Ai=k+l}else Ni=1<<k|p<<w|x,Ai=l}function Up(l){l.return!==null&&(ui(l,1),fg(l,1,0))}function $h(l){for(;l===Gh;)Gh=cd[--cu],cd[cu]=null,O0=cd[--cu],cd[cu]=null;for(;l===Jl;)Jl=Ti[--Ci],Ti[Ci]=null,Ai=Ti[--Ci],Ti[Ci]=null,Ni=Ti[--Ci],Ti[Ci]=null}function pg(l,u){Ti[Ci++]=Ni,Ti[Ci++]=Ai,Ti[Ci++]=Jl,Ni=u.id,Ai=u.overflow,Jl=l}var as=null,Dr=null,Un=!1,Ds=null,ra=!1,oo=Error(r(519));function Zl(l){var u=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ud(_i(u,l)),oo}function qp(l){var u=l.stateNode,p=l.type,x=l.memoizedProps;switch(u[vr]=l,u[$r]=x,p){case"dialog":Vn("cancel",u),Vn("close",u);break;case"iframe":case"object":case"embed":Vn("load",u);break;case"video":case"audio":for(p=0;p<dm.length;p++)Vn(dm[p],u);break;case"source":Vn("error",u);break;case"img":case"image":case"link":Vn("error",u),Vn("load",u);break;case"details":Vn("toggle",u);break;case"input":Vn("invalid",u),x0(u,x.value,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name,!0);break;case"select":Vn("invalid",u);break;case"textarea":Vn("invalid",u),Zi(u,x.value,x.defaultValue,x.children)}p=x.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||u.textContent===""+p||x.suppressHydrationWarning===!0||eE(u.textContent,p)?(x.popover!=null&&(Vn("beforetoggle",u),Vn("toggle",u)),x.onScroll!=null&&Vn("scroll",u),x.onScrollEnd!=null&&Vn("scrollend",u),x.onClick!=null&&(u.onclick=yi),u=!0):u=!1,u||Zl(l,!0)}function pl(l){for(as=l.return;as;)switch(as.tag){case 5:case 31:case 13:ra=!1;return;case 27:case 3:ra=!0;return;default:as=as.return}}function ss(l){if(l!==as)return!1;if(!Un)return pl(l),Un=!0,!1;var u=l.tag,p;if((p=u!==3&&u!==27)&&((p=u===5)&&(p=l.type,p=!(p!=="form"&&p!=="button")||my(l.type,l.memoizedProps)),p=!p),p&&Dr&&Zl(l),pl(l),u===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));Dr=cE(l)}else if(u===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));Dr=cE(l)}else u===27?(u=Dr,kd(l.type)?(l=vy,vy=null,Dr=l):Dr=u):Dr=as?jo(l.stateNode.nextSibling):null;return!0}function uu(){Dr=as=null,Un=!1}function Vp(){var l=Ds;return l!==null&&(ji===null?ji=l:ji.push.apply(ji,l),Ds=null),l}function ud(l){Ds===null?Ds=[l]:Ds.push(l)}var Wh=ne(null),ec=null,Ro=null;function tc(l,u,p){O(Wh,u._currentValue),u._currentValue=p}function Li(l){l._currentValue=Wh.current,B(Wh)}function dd(l,u,p){for(;l!==null;){var x=l.alternate;if((l.childLanes&u)!==u?(l.childLanes|=u,x!==null&&(x.childLanes|=u)):x!==null&&(x.childLanes&u)!==u&&(x.childLanes|=u),l===p)break;l=l.return}}function du(l,u,p,x){var w=l.child;for(w!==null&&(w.return=l);w!==null;){var k=w.dependencies;if(k!==null){var F=w.child;k=k.firstContext;e:for(;k!==null;){var ie=k;k=w;for(var Ce=0;Ce<u.length;Ce++)if(ie.context===u[Ce]){k.lanes|=p,ie=k.alternate,ie!==null&&(ie.lanes|=p),dd(k.return,p,l),x||(F=null);break e}k=ie.next}}else if(w.tag===18){if(F=w.return,F===null)throw Error(r(341));F.lanes|=p,k=F.alternate,k!==null&&(k.lanes|=p),dd(F,p,l),F=null}else F=w.child;if(F!==null)F.return=w;else for(F=w;F!==null;){if(F===l){F=null;break}if(w=F.sibling,w!==null){w.return=F.return,F=w;break}F=F.return}w=F}}function nc(l,u,p,x){l=null;for(var w=u,k=!1;w!==null;){if(!k){if((w.flags&524288)!==0)k=!0;else if((w.flags&262144)!==0)break}if(w.tag===10){var F=w.alternate;if(F===null)throw Error(r(387));if(F=F.memoizedProps,F!==null){var ie=w.type;ta(w.pendingProps.value,F.value)||(l!==null?l.push(ie):l=[ie])}}else if(w===Ee.current){if(F=w.alternate,F===null)throw Error(r(387));F.memoizedState.memoizedState!==w.memoizedState.memoizedState&&(l!==null?l.push(gm):l=[gm])}w=w.return}l!==null&&du(u,l,p,x),u.flags|=262144}function Yh(l){for(l=l.firstContext;l!==null;){if(!ta(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function rc(l){ec=l,Ro=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function is(l){return mg(ec,l)}function Qh(l,u){return ec===null&&rc(l),mg(l,u)}function mg(l,u){var p=u._currentValue;if(u={context:u,memoizedValue:p,next:null},Ro===null){if(l===null)throw Error(r(308));Ro=u,l.dependencies={lanes:0,firstContext:u},l.flags|=524288}else Ro=Ro.next=u;return p}var yb=typeof AbortController<"u"?AbortController:function(){var l=[],u=this.signal={aborted:!1,addEventListener:function(p,x){l.push(x)}};this.abort=function(){u.aborted=!0,l.forEach(function(p){return p()})}},vb=e.unstable_scheduleCallback,wb=e.unstable_NormalPriority,ha={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hd(){return{controller:new yb,data:new Map,refCount:0}}function P0(l){l.refCount--,l.refCount===0&&vb(wb,function(){l.controller.abort()})}var j0=null,Xh=0,y=0,S=null;function L(l,u){if(j0===null){var p=j0=[];Xh=0,y=iy(),S={status:"pending",value:void 0,then:function(x){p.push(x)}}}return Xh++,u.then(I,I),u}function I(){if(--Xh===0&&j0!==null){S!==null&&(S.status="fulfilled");var l=j0;j0=null,y=0,S=null;for(var u=0;u<l.length;u++)(0,l[u])()}}function Q(l,u){var p=[],x={status:"pending",value:null,reason:null,then:function(w){p.push(w)}};return l.then(function(){x.status="fulfilled",x.value=u;for(var w=0;w<p.length;w++)(0,p[w])(u)},function(w){for(x.status="rejected",x.reason=w,w=0;w<p.length;w++)(0,p[w])(void 0)}),x}var te=ee.S;ee.S=function(l,u){kS=mn(),typeof u=="object"&&u!==null&&typeof u.then=="function"&&L(l,u),te!==null&&te(l,u)};var re=ne(null);function le(){var l=re.current;return l!==null?l:Br.pooledCache}function de(l,u){u===null?O(re,re.current):O(re,u.pool)}function ve(){var l=le();return l===null?null:{parent:ha._currentValue,pool:l}}var Le=Error(r(460)),He=Error(r(474)),ye=Error(r(542)),Oe={then:function(){}};function De(l){return l=l.status,l==="fulfilled"||l==="rejected"}function Xe(l,u,p){switch(p=l[p],p===void 0?l.push(u):p!==u&&(u.then(yi,yi),u=p),u.status){case"fulfilled":return u.value;case"rejected":throw l=u.reason,dt(l),l;default:if(typeof u.status=="string")u.then(yi,yi);else{if(l=Br,l!==null&&100<l.shellSuspendCounter)throw Error(r(482));l=u,l.status="pending",l.then(function(x){if(u.status==="pending"){var w=u;w.status="fulfilled",w.value=x}},function(x){if(u.status==="pending"){var w=u;w.status="rejected",w.reason=x}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw l=u.reason,dt(l),l}throw Qe=u,Le}}function Fe(l){try{var u=l._init;return u(l._payload)}catch(p){throw p!==null&&typeof p=="object"&&typeof p.then=="function"?(Qe=p,Le):p}}var Qe=null;function et(){if(Qe===null)throw Error(r(459));var l=Qe;return Qe=null,l}function dt(l){if(l===Le||l===ye)throw Error(r(483))}var it=null,qt=0;function Ot(l){var u=qt;return qt+=1,it===null&&(it=[]),Xe(it,l,u)}function yn(l,u){u=u.props.ref,l.ref=u!==void 0?u:null}function It(l,u){throw u.$$typeof===b?Error(r(525)):(l=Object.prototype.toString.call(u),Error(r(31,l==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":l)))}function Bn(l){function u(je,Me){if(l){var Ue=je.deletions;Ue===null?(je.deletions=[Me],je.flags|=16):Ue.push(Me)}}function p(je,Me){if(!l)return null;for(;Me!==null;)u(je,Me),Me=Me.sibling;return null}function x(je){for(var Me=new Map;je!==null;)je.key!==null?Me.set(je.key,je):Me.set(je.index,je),je=je.sibling;return Me}function w(je,Me){return je=ki(je,Me),je.index=0,je.sibling=null,je}function k(je,Me,Ue){return je.index=Ue,l?(Ue=je.alternate,Ue!==null?(Ue=Ue.index,Ue<Me?(je.flags|=67108866,Me):Ue):(je.flags|=67108866,Me)):(je.flags|=1048576,Me)}function F(je){return l&&je.alternate===null&&(je.flags|=67108866),je}function ie(je,Me,Ue,rt){return Me===null||Me.tag!==6?(Me=R0(Ue,je.mode,rt),Me.return=je,Me):(Me=w(Me,Ue),Me.return=je,Me)}function Ce(je,Me,Ue,rt){var on=Ue.type;return on===E?Ze(je,Me,Ue.props.children,rt,Ue.key):Me!==null&&(Me.elementType===on||typeof on=="object"&&on!==null&&on.$$typeof===H&&Fe(on)===Me.type)?(Me=w(Me,Ue.props),yn(Me,Ue),Me.return=je,Me):(Me=od(Ue.type,Ue.key,Ue.props,null,je.mode,rt),yn(Me,Ue),Me.return=je,Me)}function Ve(je,Me,Ue,rt){return Me===null||Me.tag!==4||Me.stateNode.containerInfo!==Ue.containerInfo||Me.stateNode.implementation!==Ue.implementation?(Me=ld(Ue,je.mode,rt),Me.return=je,Me):(Me=w(Me,Ue.children||[]),Me.return=je,Me)}function Ze(je,Me,Ue,rt,on){return Me===null||Me.tag!==7?(Me=Kl(Ue,je.mode,rt,on),Me.return=je,Me):(Me=w(Me,Ue),Me.return=je,Me)}function at(je,Me,Ue){if(typeof Me=="string"&&Me!==""||typeof Me=="number"||typeof Me=="bigint")return Me=R0(""+Me,je.mode,Ue),Me.return=je,Me;if(typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case g:return Ue=od(Me.type,Me.key,Me.props,null,je.mode,Ue),yn(Ue,Me),Ue.return=je,Ue;case v:return Me=ld(Me,je.mode,Ue),Me.return=je,Me;case H:return Me=Fe(Me),at(je,Me,Ue)}if(xe(Me)||$(Me))return Me=Kl(Me,je.mode,Ue,null),Me.return=je,Me;if(typeof Me.then=="function")return at(je,Ot(Me),Ue);if(Me.$$typeof===R)return at(je,Qh(je,Me),Ue);It(je,Me)}return null}function Ge(je,Me,Ue,rt){var on=Me!==null?Me.key:null;if(typeof Ue=="string"&&Ue!==""||typeof Ue=="number"||typeof Ue=="bigint")return on!==null?null:ie(je,Me,""+Ue,rt);if(typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case g:return Ue.key===on?Ce(je,Me,Ue,rt):null;case v:return Ue.key===on?Ve(je,Me,Ue,rt):null;case H:return Ue=Fe(Ue),Ge(je,Me,Ue,rt)}if(xe(Ue)||$(Ue))return on!==null?null:Ze(je,Me,Ue,rt,null);if(typeof Ue.then=="function")return Ge(je,Me,Ot(Ue),rt);if(Ue.$$typeof===R)return Ge(je,Me,Qh(je,Ue),rt);It(je,Ue)}return null}function $e(je,Me,Ue,rt,on){if(typeof rt=="string"&&rt!==""||typeof rt=="number"||typeof rt=="bigint")return je=je.get(Ue)||null,ie(Me,je,""+rt,on);if(typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case g:return je=je.get(rt.key===null?Ue:rt.key)||null,Ce(Me,je,rt,on);case v:return je=je.get(rt.key===null?Ue:rt.key)||null,Ve(Me,je,rt,on);case H:return rt=Fe(rt),$e(je,Me,Ue,rt,on)}if(xe(rt)||$(rt))return je=je.get(Ue)||null,Ze(Me,je,rt,on,null);if(typeof rt.then=="function")return $e(je,Me,Ue,Ot(rt),on);if(rt.$$typeof===R)return $e(je,Me,Ue,Qh(Me,rt),on);It(Me,rt)}return null}function zt(je,Me,Ue,rt){for(var on=null,sr=null,Xt=Me,Rn=Me=0,Wn=null;Xt!==null&&Rn<Ue.length;Rn++){Xt.index>Rn?(Wn=Xt,Xt=null):Wn=Xt.sibling;var ir=Ge(je,Xt,Ue[Rn],rt);if(ir===null){Xt===null&&(Xt=Wn);break}l&&Xt&&ir.alternate===null&&u(je,Xt),Me=k(ir,Me,Rn),sr===null?on=ir:sr.sibling=ir,sr=ir,Xt=Wn}if(Rn===Ue.length)return p(je,Xt),Un&&ui(je,Rn),on;if(Xt===null){for(;Rn<Ue.length;Rn++)Xt=at(je,Ue[Rn],rt),Xt!==null&&(Me=k(Xt,Me,Rn),sr===null?on=Xt:sr.sibling=Xt,sr=Xt);return Un&&ui(je,Rn),on}for(Xt=x(Xt);Rn<Ue.length;Rn++)Wn=$e(Xt,je,Rn,Ue[Rn],rt),Wn!==null&&(l&&Wn.alternate!==null&&Xt.delete(Wn.key===null?Rn:Wn.key),Me=k(Wn,Me,Rn),sr===null?on=Wn:sr.sibling=Wn,sr=Wn);return l&&Xt.forEach(function(Ad){return u(je,Ad)}),Un&&ui(je,Rn),on}function fn(je,Me,Ue,rt){if(Ue==null)throw Error(r(151));for(var on=null,sr=null,Xt=Me,Rn=Me=0,Wn=null,ir=Ue.next();Xt!==null&&!ir.done;Rn++,ir=Ue.next()){Xt.index>Rn?(Wn=Xt,Xt=null):Wn=Xt.sibling;var Ad=Ge(je,Xt,ir.value,rt);if(Ad===null){Xt===null&&(Xt=Wn);break}l&&Xt&&Ad.alternate===null&&u(je,Xt),Me=k(Ad,Me,Rn),sr===null?on=Ad:sr.sibling=Ad,sr=Ad,Xt=Wn}if(ir.done)return p(je,Xt),Un&&ui(je,Rn),on;if(Xt===null){for(;!ir.done;Rn++,ir=Ue.next())ir=at(je,ir.value,rt),ir!==null&&(Me=k(ir,Me,Rn),sr===null?on=ir:sr.sibling=ir,sr=ir);return Un&&ui(je,Rn),on}for(Xt=x(Xt);!ir.done;Rn++,ir=Ue.next())ir=$e(Xt,je,Rn,ir.value,rt),ir!==null&&(l&&ir.alternate!==null&&Xt.delete(ir.key===null?Rn:ir.key),Me=k(ir,Me,Rn),sr===null?on=ir:sr.sibling=ir,sr=ir);return l&&Xt.forEach(function(vz){return u(je,vz)}),Un&&ui(je,Rn),on}function Lr(je,Me,Ue,rt){if(typeof Ue=="object"&&Ue!==null&&Ue.type===E&&Ue.key===null&&(Ue=Ue.props.children),typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case g:e:{for(var on=Ue.key;Me!==null;){if(Me.key===on){if(on=Ue.type,on===E){if(Me.tag===7){p(je,Me.sibling),rt=w(Me,Ue.props.children),rt.return=je,je=rt;break e}}else if(Me.elementType===on||typeof on=="object"&&on!==null&&on.$$typeof===H&&Fe(on)===Me.type){p(je,Me.sibling),rt=w(Me,Ue.props),yn(rt,Ue),rt.return=je,je=rt;break e}p(je,Me);break}else u(je,Me);Me=Me.sibling}Ue.type===E?(rt=Kl(Ue.props.children,je.mode,rt,Ue.key),rt.return=je,je=rt):(rt=od(Ue.type,Ue.key,Ue.props,null,
vendor: 4,695 bytes, line 49
49je.mode,rt),yn(rt,Ue),rt.return=je,je=rt)}return F(je);case v:e:{for(on=Ue.key;Me!==null;){if(Me.key===on)if(Me.tag===4&&Me.stateNode.containerInfo===Ue.containerInfo&&Me.stateNode.implementation===Ue.implementation){p(je,Me.sibling),rt=w(Me,Ue.children||[]),rt.return=je,je=rt;break e}else{p(je,Me);break}else u(je,Me);Me=Me.sibling}rt=ld(Ue,je.mode,rt),rt.return=je,je=rt}return F(je);case H:return Ue=Fe(Ue),Lr(je,Me,Ue,rt)}if(xe(Ue))return zt(je,Me,Ue,rt);if($(Ue)){if(on=$(Ue),typeof on!="function")throw Error(r(150));return Ue=on.call(Ue),fn(je,Me,Ue,rt)}if(typeof Ue.then=="function")return Lr(je,Me,Ot(Ue),rt);if(Ue.$$typeof===R)return Lr(je,Me,Qh(je,Ue),rt);It(je,Ue)}return typeof Ue=="string"&&Ue!==""||typeof Ue=="number"||typeof Ue=="bigint"?(Ue=""+Ue,Me!==null&&Me.tag===6?(p(je,Me.sibling),rt=w(Me,Ue),rt.return=je,je=rt):(p(je,Me),rt=R0(Ue,je.mode,rt),rt.return=je,je=rt),F(je)):p(je,Me)}return function(je,Me,Ue,rt){try{qt=0;var on=Lr(je,Me,Ue,rt);return it=null,on}catch(Xt){if(Xt===Le||Xt===ye)throw Xt;var sr=ws(29,Xt,null,je.mode);return sr.lanes=rt,sr.return=je,sr}finally{}}}var Ir=Bn(!0),kn=Bn(!1),Pt=!1;function vt(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qr(l,u){l=l.updateQueue,u.updateQueue===l&&(u.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function cn(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Cn(l,u,p){var x=l.updateQueue;if(x===null)return null;if(x=x.shared,(fr&2)!==0){var w=x.pending;return w===null?u.next=u:(u.next=w.next,w.next=u),x.pending=u,u=vs(l),L0(l,null,p),u}return A0(l,x,u,p),vs(l)}function dr(l,u,p){if(u=u.updateQueue,u!==null&&(u=u.shared,(p&4194048)!==0)){var x=u.lanes;x&=l.pendingLanes,p|=x,u.lanes=p,Rr(l,p)}}function Pa(l,u){var p=l.updateQueue,x=l.alternate;if(x!==null&&(x=x.updateQueue,p===x)){var w=null,k=null;if(p=p.firstBaseUpdate,p!==null){do{var F={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};k===null?w=k=F:k=k.next=F,p=p.next}while(p!==null);k===null?w=k=u:k=k.next=u}else w=k=u;p={baseState:x.baseState,firstBaseUpdate:w,lastBaseUpdate:k,shared:x.shared,callbacks:x.callbacks},l.updateQueue=p;return}l=p.lastBaseUpdate,l===null?p.firstBaseUpdate=u:l.next=u,p.lastBaseUpdate=u}var os=!1;function Cr(){if(os){var l=S;if(l!==null)throw l}}function va(l,u,p,x){os=!1;var w=l.updateQueue;Pt=!1;var k=w.firstBaseUpdate,F=w.lastBaseUpdate,ie=w.shared.pending;if(ie!==null){w.shared.pending=null;var Ce=ie,Ve=Ce.next;Ce.next=null,F===null?k=Ve:F.next=Ve,F=Ce;var Ze=l.alternate;Ze!==null&&(Ze=Ze.updateQueue,ie=Ze.lastBaseUpdate,ie!==F&&(ie===null?Ze.firstBaseUpdate=Ve:ie.next=Ve,Ze.lastBaseUpdate=Ce))}if(k!==null){var at=w.baseState;F=0,Ze=Ve=Ce=null,ie=k;do{var Ge=ie.lane&-536870913,$e=Ge!==ie.lane;if($e?($n&Ge)===Ge:(x&Ge)===Ge){Ge!==0&&Ge===y&&(os=!0),Ze!==null&&(Ze=Ze.next={lane:0,tag:ie.tag,payload:ie.payload,callback:null,next:null});e:{var zt=l,fn=ie;Ge=u;var Lr=p;switch(fn.tag){case 1:if(zt=fn.payload,typeof zt=="function"){at=zt.call(Lr,at,Ge);break e}at=zt;break e;case 3:zt.flags=zt.flags&-65537|128;case 0:if(zt=fn.payload,Ge=typeof zt=="function"?zt.call(Lr,at,Ge):zt,Ge==null)break e;at=m({},at,Ge);break e;case 2:Pt=!0}}Ge=ie.callback,Ge!==null&&(l.flags|=64,$e&&(l.flags|=8192),$e=w.callbacks,$e===null?w.callbacks=[Ge]:$e.push(Ge))}else $e={lane:Ge,tag:ie.tag,payload:ie.payload,callback:ie.callback,next:null},Ze===null?(Ve=Ze=$e,Ce=at):Ze=Ze.next=$e,F|=Ge;if(ie=ie.next,ie===null){if(ie=w.shared.pending,ie===null)break;$e=ie,ie=$e.next,$e.next=null,w.lastBaseUpdate=$e,w.shared.pending=null}}while(!0);Ze===null&&(Ce=at),w.baseState=Ce,w.firstBaseUpdate=Ve,w.lastBaseUpdate=Ze,k===null&&(w.shared.lanes=0),yd|=F,l.lanes=F,l.memoizedState=at}}function Ss(l,u){if(typeof l!="function")throw Error(r(191,l));l.call(u)}function wa(l,u){var p=l.callbacks;if(p!==null)for(l.callbacks=null,l=0;l<p.length;l++)Ss(p[l],u)}var jn=ne(null),Kn=ne(0);function Xr(l,u){l=wu,O(Kn,l),O(jn,u),wu=l|u.baseLanes}function nr(){O(Kn,wu),O(jn,jn.current)}function ja(){wu=Kn.current,B(jn),B(Kn)}var Kr=ne(null),Jn=null;function fa(l){var u=l.alternate;O(Xn,Xn.current&1),O(Kr,l),Jn===null&&(u===null||jn.current!==null||u.memoizedState!==null)&&(Jn=l)}function hr(l){O(Xn,Xn.current),O(Kr,l),Jn===null&&(Jn=l)}function Sa(l){l.tag===22?(O(Xn,Xn.current),O(Kr,l),Jn===null&&(Jn=l)):Ea()}function Ea(){O(Xn,Xn.current),O(Kr,Kr.current)}function Sr(l){B(Kr),Jn===l&&(Jn=null),B(Xn)}var Xn=ne(0);function Es(l){for(var u=l;u!==null;){if(u.tag===13){var p=u.memoizedState;
vendor: 20,794 bytes, line 49
49if(p!==null&&(p=p.dehydrated,p===null||by(p)||yy(p)))return u}else if(u.tag===19&&(u.memoizedProps.revealOrder==="forwards"||u.memoizedProps.revealOrder==="backwards"||u.memoizedProps.revealOrder==="unstable_legacy-backwards"||u.memoizedProps.revealOrder==="together")){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var aa=0,nn=null,sn=null,Zn=null,Hs=!1,Mi=!1,Is=!1,ka=0,ac=0,sc=null,Kh=0;function Nr(){throw Error(r(321))}function Gp(l,u){if(u===null)return!1;for(var p=0;p<u.length&&p<l.length;p++)if(!ta(l[p],u[p]))return!1;return!0}function $p(l,u,p,x,w,k){return aa=k,nn=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,ee.H=l===null||l.memoizedState===null?j7:Ab,Is=!1,k=p(x,w),Is=!1,Mi&&(k=ml(u,p,x,w)),Jh(l),k}function Jh(l){ee.H=em;var u=sn!==null&&sn.next!==null;if(aa=0,Zn=sn=nn=null,Hs=!1,ac=0,sc=null,u)throw Error(r(300));l===null||$a||(l=l.dependencies,l!==null&&Yh(l)&&($a=!0))}function ml(l,u,p,x){nn=l;var w=0;do{if(Mi&&(sc=null),ac=0,Mi=!1,25<=w)throw Error(r(301));if(w+=1,Zn=sn=null,l.updateQueue!=null){var k=l.updateQueue;k.lastEffect=null,k.events=null,k.stores=null,k.memoCache!=null&&(k.memoCache.index=0)}ee.H=D7,k=u(p,x)}while(Mi);return k}function Sb(){var l=ee.H,u=l.useState()[0];return u=typeof u.then=="function"?ic(u):u,l=l.useState()[0],(sn!==null?sn.memoizedState:null)!==l&&(nn.flags|=1024),u}function Wp(){var l=ka!==0;return ka=0,l}function Yp(l,u,p){u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~p}function Zh(l){if(Hs){for(l=l.memoizedState;l!==null;){var u=l.queue;u!==null&&(u.pending=null),l=l.next}Hs=!1}aa=0,Zn=sn=nn=null,Mi=!1,ac=ka=0,sc=null}function Ga(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zn===null?nn.memoizedState=Zn=l:Zn=Zn.next=l,Zn}function sa(){if(sn===null){var l=nn.alternate;l=l!==null?l.memoizedState:null}else l=sn.next;var u=Zn===null?nn.memoizedState:Zn.next;if(u!==null)Zn=u,sn=l;else{if(l===null)throw nn.alternate===null?Error(r(467)):Error(r(310));sn=l,l={memoizedState:sn.memoizedState,baseState:sn.baseState,baseQueue:sn.baseQueue,queue:sn.queue,next:null},Zn===null?nn.memoizedState=Zn=l:Zn=Zn.next=l}return Zn}function D0(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ic(l){var u=ac;return ac+=1,sc===null&&(sc=[]),l=Xe(sc,l,u),u=nn,(Zn===null?u.memoizedState:Zn.next)===null&&(u=u.alternate,ee.H=u===null||u.memoizedState===null?j7:Ab),l}function fd(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return ic(l);if(l.$$typeof===R)return is(l)}throw Error(r(438,String(l)))}function hu(l){var u=null,p=nn.updateQueue;if(p!==null&&(u=p.memoCache),u==null){var x=nn.alternate;x!==null&&(x=x.updateQueue,x!==null&&(x=x.memoCache,x!=null&&(u={data:x.data.map(function(w){return w.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),p===null&&(p=D0(),nn.updateQueue=p),p.memoCache=u,p=u.data[u.index],p===void 0)for(p=u.data[u.index]=Array(l),x=0;x<l;x++)p[x]=W;return u.index++,p}function Oo(l,u){return typeof u=="function"?u(l):u}function ef(l){var u=sa();return pd(u,sn,l)}function pd(l,u,p){var x=l.queue;if(x===null)throw Error(r(311));x.lastRenderedReducer=p;var w=l.baseQueue,k=x.pending;if(k!==null){if(w!==null){var F=w.next;w.next=k.next,k.next=F}u.baseQueue=w=k,x.pending=null}if(k=l.baseState,w===null)l.memoizedState=k;else{u=w.next;var ie=F=null,Ce=null,Ve=u,Ze=!1;do{var at=Ve.lane&-536870913;if(at!==Ve.lane?($n&at)===at:(aa&at)===at){var Ge=Ve.revertLane;if(Ge===0)Ce!==null&&(Ce=Ce.next={lane:0,revertLane:0,gesture:null,action:Ve.action,hasEagerState:Ve.hasEagerState,eagerState:Ve.eagerState,next:null}),at===y&&(Ze=!0);else if((aa&Ge)===Ge){Ve=Ve.next,Ge===y&&(Ze=!0);continue}else at={lane:0,revertLane:Ve.revertLane,gesture:null,action:Ve.action,hasEagerState:Ve.hasEagerState,eagerState:Ve.eagerState,next:null},Ce===null?(ie=Ce=at,F=k):Ce=Ce.next=at,nn.lanes|=Ge,yd|=Ge;at=Ve.action,Is&&p(k,at),k=Ve.hasEagerState?Ve.eagerState:p(k,at)}else Ge={lane:at,revertLane:Ve.revertLane,gesture:Ve.gesture,action:Ve.action,hasEagerState:Ve.hasEagerState,eagerState:Ve.eagerState,next:null},Ce===null?(ie=Ce=Ge,F=k):Ce=Ce.next=Ge,nn.lanes|=at,yd|=at;Ve=Ve.next}while(Ve!==null&&Ve!==u);if(Ce===null?F=k:Ce.next=ie,!ta(k,l.memoizedState)&&($a=!0,Ze&&(p=S,p!==null)))throw p;l.memoizedState=k,l.baseState=F,l.baseQueue=Ce,x.lastRenderedState=k}return w===null&&(x.lanes=0),[l.memoizedState,x.dispatch]}function tf(l){var u=sa(),p=u.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=l;var x=p.dispatch,w=p.pending,k=u.memoizedState;if(w!==null){p.pending=null;var F=w=w.next;do k=l(k,F.action),F=F.next;while(F!==w);ta(k,u.memoizedState)||($a=!0),u.memoizedState=k,u.baseQueue===null&&(u.baseState=k),p.lastRenderedState=k}return[k,x]}function nf(l,u,p){var x=nn,w=sa(),k=Un;if(k){if(p===void 0)throw Error(r(407));p=p()}else p=u();var F=!ta((sn||w).memoizedState,p);if(F&&(w.memoizedState=p,$a=!0),w=w.queue,Eb(Xp.bind(null,x,w,l),[l]),w.getSnapshot!==u||F||Zn!==null&&Zn.memoizedState.tag&1){if(x.flags|=2048,pu(9,{destroy:void 0},Qp.bind(null,x,w,p,u),null),Br===null)throw Error(r(349));k||(aa&127)!==0||gl(x,u,p)}return p}function gl(l,u,p){l.flags|=16384,l={getSnapshot:u,value:p},u=nn.updateQueue,u===null?(u=D0(),nn.updateQueue=u,u.stores=[l]):(p=u.stores,p===null?u.stores=[l]:p.push(l))}function Qp(l,u,p,x){u.value=p,u.getSnapshot=x,gg(u)&&Kp(l)}function Xp(l,u,p){return p(function(){gg(u)&&Kp(l)})}function gg(l){var u=l.getSnapshot;l=l.value;try{var p=u();return!ta(l,p)}catch{return!0}}function Kp(l){var u=fl(l,2);u!==null&&Di(u,l,2)}function oc(l){var u=Ga();if(typeof l=="function"){var p=l;if(l=p(),Is){tn(!0);try{p()}finally{tn(!1)}}}return u.memoizedState=u.baseState=l,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:l},u}function xg(l,u,p,x){return l.baseState=p,pd(l,sn,typeof x=="function"?x:Oo)}function bg(l,u,p,x,w){if(Sg(l))throw Error(r(485));if(l=u.action,l!==null){var k={payload:w,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(F){k.listeners.push(F)}};ee.T!==null?p(!0):k.isTransition=!1,x(k),p=u.pending,p===null?(k.next=u.pending=k,yg(u,k)):(k.next=p.next,u.pending=p.next=k)}}function yg(l,u){var p=u.action,x=u.payload,w=l.state;if(u.isTransition){var k=ee.T,F={};ee.T=F;try{var ie=p(w,x),Ce=ee.S;Ce!==null&&Ce(F,ie),Jp(l,u,ie)}catch(Ve){fu(l,u,Ve)}finally{k!==null&&F.types!==null&&(k.types=F.types),ee.T=k}}else try{k=p(w,x),Jp(l,u,k)}catch(Ve){fu(l,u,Ve)}}function Jp(l,u,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(x){vg(l,u,x)},function(x){return fu(l,u,x)}):vg(l,u,p)}function vg(l,u,p){u.status="fulfilled",u.value=p,rf(u),l.state=p,u=l.pending,u!==null&&(p=u.next,p===u?l.pending=null:(p=p.next,u.next=p,yg(l,p)))}function fu(l,u,p){var x=l.pending;if(l.pending=null,x!==null){x=x.next;do u.status="rejected",u.reason=p,rf(u),u=u.next;while(u!==x)}l.action=null}function rf(l){l=l.listeners;for(var u=0;u<l.length;u++)(0,l[u])()}function I0(l,u){return u}function Po(l,u){if(Un){var p=Br.formState;if(p!==null){e:{var x=nn;if(Un){if(Dr){t:{for(var w=Dr,k=ra;w.nodeType!==8;){if(!k){w=null;break t}if(w=jo(w.nextSibling),w===null){w=null;break t}}k=w.data,w=k==="F!"||k==="F"?w:null}if(w){Dr=jo(w.nextSibling),x=w.data==="F!";break e}}Zl(x)}x=!1}x&&(u=p[0])}}return p=Ga(),p.memoizedState=p.baseState=u,x={pending:null,lanes:0,dispatch:null,lastRenderedReducer:I0,lastRenderedState:u},p.queue=x,p=R7.bind(null,nn,x),x.dispatch=p,x=oc(!1),k=Nb.bind(null,nn,!1,x.queue),x=Ga(),w={state:u,dispatch:null,action:l,pending:null},x.queue=w,p=bg.bind(null,nn,w,k,p),w.dispatch=p,x.memoizedState=l,[u,p,!1]}function xl(l){var u=sa();return bl(u,sn,l)}function bl(l,u,p){if(u=pd(l,u,I0)[0],l=ef(Oo)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var x=ic(u)}catch(F){throw F===Le?ye:F}else x=u;u=sa();var w=u.queue,k=w.dispatch;return p!==u.memoizedState&&(nn.flags|=2048,pu(9,{destroy:void 0},af.bind(null,w,p),null)),[x,k,l]}function af(l,u){l.action=u}function sf(l){var u=sa(),p=sn;if(p!==null)return bl(u,p,l);sa(),u=u.memoizedState,p=sa();var x=p.queue.dispatch;return p.memoizedState=l,[u,x,!1]}function pu(l,u,p,x){return l={tag:l,create:p,deps:x,inst:u,next:null},u=nn.updateQueue,u===null&&(u=D0(),nn.updateQueue=u),p=u.lastEffect,p===null?u.lastEffect=l.next=l:(x=p.next,p.next=l,l.next=x,u.lastEffect=l),l}function wg(){return sa().memoizedState}function md(l,u,p,x){var w=Ga();nn.flags|=l,w.memoizedState=pu(1|u,{destroy:void 0},p,x===void 0?null:x)}function gd(l,u,p,x){var w=sa();x=x===void 0?null:x;var k=w.memoizedState.inst;sn!==null&&x!==null&&Gp(x,sn.memoizedState.deps)?w.memoizedState=pu(u,k,p,x):(nn.flags|=l,w.memoizedState=pu(1|u,k,p,x))}function b7(l,u){md(8390656,8,l,u)}function Eb(l,u){gd(2048,8,l,u)}function pF(l){nn.flags|=4;var u=nn.updateQueue;if(u===null)u=D0(),nn.updateQueue=u,u.events=[l];else{var p=u.events;p===null?u.events=[l]:p.push(l)}}function y7(l){var u=sa().memoizedState;return pF({ref:u,nextImpl:l}),function(){if((fr&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}function v7(l,u){return gd(4,2,l,u)}function w7(l,u){return gd(4,4,l,u)}function S7(l,u){if(typeof u=="function"){l=l();var p=u(l);return function(){typeof p=="function"?p():u(null)}}if(u!=null)return l=l(),u.current=l,function(){u.current=null}}function E7(l,u,p){p=p!=null?p.concat([l]):null,gd(4,4,S7.bind(null,u,l),p)}function kb(){}function k7(l,u){var p=sa();u=u===void 0?null:u;var x=p.memoizedState;return u!==null&&Gp(u,x[1])?x[0]:(p.memoizedState=[l,u],l)}function _7(l,u){var p=sa();u=u===void 0?null:u;var x=p.memoizedState;if(u!==null&&Gp(u,x[1]))return x[0];if(x=l(),Is){tn(!0);try{l()}finally{tn(!1)}}return p.memoizedState=[x,u],x}function _b(l,u,p){return p===void 0||(aa&1073741824)!==0&&($n&261930)===0?l.memoizedState=u:(l.memoizedState=p,l=TS(),nn.lanes|=l,yd|=l,p)}function T7(l,u,p,x){return ta(p,u)?p:jn.current!==null?(l=_b(l,p,x),ta(l,u)||($a=!0),l):(aa&42)===0||(aa&1073741824)!==0&&($n&261930)===0?($a=!0,l.memoizedState=p):(l=TS(),nn.lanes|=l,yd|=l,u)}function C7(l,u,p,x,w){var k=ce.p;ce.p=k!==0&&8>k?k:8;var F=ee.T,ie={};ee.T=ie,Nb(l,!1,u,p);try{var Ce=w(),Ve=ee.S;if(Ve!==null&&Ve(ie,Ce),Ce!==null&&typeof Ce=="object"&&typeof Ce.then=="function"){var Ze=Q(Ce,x);Zp(l,u,Ze,uo(l))}else Zp(l,u,x,uo(l))}catch(at){Zp(l,u,{then:function(){},status:"rejected",reason:at},uo())}finally{ce.p=k,F!==null&&ie.types!==null&&(F.types=ie.types),ee.T=F}}function mF(){}function Tb(l,u,p,x){if(l.tag!==5)throw Error(r(476));var w=N7(l).queue;C7(l,w,u,se,p===null?mF:function(){return A7(l),p(x)})}function N7(l){var u=l.memoizedState;if(u!==null)return u;u={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:se},next:null};var p={};return u.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:p},next:null},l.memoizedState=u,l=l.alternate,l!==null&&(l.memoizedState=u),u}function A7(l){var u=N7(l);u.next===null&&(u=l.alternate.memoizedState),Zp(l,u.next.queue,{},uo())}function Cb(){return is(gm)}function L7(){return sa().memoizedState}function M7(){return sa().memoizedState}function gF(l){for(var u=l.return;u!==null;){switch(u.tag){case 24:case 3:var p=uo();l=cn(p);var x=Cn(u,l,p);x!==null&&(Di(x,u,p),dr(x,u,p)),u={cache:hd()},l.payload=u;return}u=u.return}}function xF(l,u,p){var x=uo();p={lane:x,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},Sg(l)?O7(u,p):(p=zh(l,u,p,x),p!==null&&(Di(p,l,x),P7(p,u,x)))}function R7(l,u,p){var x=uo();Zp(l,u,p,x)}function Zp(l,u,p,x){var w={lane:x,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};if(Sg(l))O7(u,w);else{var k=l.alternate;if(l.lanes===0&&(k===null||k.lanes===0)&&(k=u.lastRenderedReducer,k!==null))try{var F=u.lastRenderedState,ie=k(F,p);if(w.hasEagerState=!0,w.eagerState=ie,ta(ie,F))return A0(l,u,w,0),Br===null&&N0(),!1}catch{}finally{}if(p=zh(l,u,w,x),p!==null)return Di(p,l,x),P7(p,u,x),!0}return!1}function Nb(l,u,p,x){if(x={lane:2,revertLane:iy(),gesture:null,action:x,hasEagerState:!1,eagerState:null,next:null},Sg(l)){if(u)throw Error(r(479))}else u=zh(l,p,x,2),u!==null&&Di(u,l,2)}function Sg(l){var u=l.alternate;return l===nn||u!==null&&u===nn}function O7(l,u){Mi=Hs=!0;var p=l.pending;p===null?u.next=u:(u.next=p.next,p.next=u),l.pending=u}function P7(l,u,p){if((p&4194048)!==0){var x=u.lanes;x&=l.pendingLanes,p|=x,u.lanes=p,Rr(l,p)}}var em={readContext:is,use:fd,useCallback:Nr,useContext:Nr,useEffect:Nr,useImperativeHandle:Nr,useLayoutEffect:Nr,useInsertionEffect:Nr,useMemo:Nr,useReducer:Nr,useRef:Nr,useState:Nr,useDebugValue:Nr,useDeferredValue:Nr,useTransition:Nr,useSyncExternalStore:Nr,useId:Nr,useHostTransitionStatus:Nr,useFormState:Nr,useActionState:Nr,useOptimistic:Nr,useMemoCache:Nr,useCacheRefresh:Nr};em.useEffectEvent=Nr;var j7={readContext:is,use:fd,useCallback:function(l,u){return Ga().memoizedState=[l,u===void 0?null:u],l},useContext:is,useEffect:b7,useImperativeHandle:function(l,u,p){p=p!=null?p.concat([l]):null,md(4194308,4,S7.bind(null,u,l),p)},useLayoutEffect:function(l,u){return md(4194308,4,l,u)},useInsertionEffect:function(l,u){md(4,2,l,u)},useMemo:function(l,u){var p=Ga();u=u===void 0?null:u;var x=l();if(Is){tn(!0);try{l()}finally{tn(!1)}}return p.memoizedState=[x,u],x},useReducer:function(l,u,p){var x=Ga();if(p!==void 0){var w=p(u);if(Is){tn(!0);try{p(u)}finally{tn(!1)}}}else w=u;return x.memoizedState=x.baseState=w,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:w},x.queue=l,l=l.dispatch=xF.bind(null,nn,l),[x.memoizedState,l]},useRef:function(l){var u=Ga();return l={current:l},u.memoizedState=l},useState:function(l){l=oc(l);var u=l.queue,p=R7.bind(null,nn,u);return u.dispatch=p,[l.memoizedState,p]},useDebugValue:kb,useDeferredValue:function(l,u){var p=Ga();return _b(p,l,u)},useTransition:function(){var l=oc(!1);return l=C7.bind(null,nn,l.queue,!0,!1),Ga().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,u,p){var x=nn,w=Ga();if(Un){if(p===void 0)throw Error(r(407));p=p()}else{if(p=u(),Br===null)throw Error(r(349));($n&127)!==0||gl(x,u,p)}w.memoizedState=p;var k={value:p,getSnapshot:u};return w.queue=k,b7(Xp.bind(null,x,k,l),[l]),x.flags|=2048,pu(9,{destroy:void 0},Qp.bind(null,x,k,p,u),null),p},useId:function(){var l=Ga(),u=Br.identifierPrefix;if(Un){var p=Ai,x=Ni;p=(x&~(1<<32-an(x)-1)).toString(32)+p,u="_"+u+"R_"+p,p=ka++,0<p&&(u+="H"+p.toString(32)),u+="_"}else p=Kh++,u="_"+u+"r_"+p.toString(32)+"_";return l.memoizedState=u},useHostTransitionStatus:Cb,useFormState:Po,useActionState:Po,useOptimistic:function(l){var u=Ga();u.memoizedState=u.baseState=l;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=p,u=Nb.bind(null,nn,!0,p),p.dispatch=u,[l,u]},useMemoCache:hu,useCacheRefresh:function(){return Ga().memoizedState=gF.bind(null,nn)},useEffectEvent:function(l){var u=Ga(),p={impl:l};return u.memoizedState=p,function(){if((fr&2)!==0)throw Error(r(440));return p.impl.apply(void 0,arguments)}}},Ab={readContext:is,use:fd,useCallback:k7,useContext:is,useEffect:Eb,useImperativeHandle:E7,useInsertionEffect:v7,useLayoutEffect:w7,useMemo:_7,useReducer:ef,useRef:wg,useState:function(){return ef(Oo)},useDebugValue:kb,useDeferredValue:function(l,u){var p=sa();return T7(p,sn.memoizedState,l,u)},useTransition:function(){var l=ef(Oo)[0],u=sa().memoizedState;return[typeof l=="boolean"?l:ic(l),u]},useSyncExternalStore:nf,useId:L7,useHostTransitionStatus:Cb,useFormState:xl,useActionState:xl,useOptimistic:function(l,u){var p=sa();return xg(p,sn,l,u)},useMemoCache:hu,useCacheRefresh:M7};Ab.useEffectEvent=y7;var D7={readContext:is,use:fd,useCallback:k7,useContext:is,useEffect:Eb,useImperativeHandle:E7,useInsertionEffect:v7,useLayoutEffect:w7,useMemo:_7,useReducer:tf,useRef:wg,useState:function(){return tf(Oo)},useDebugValue:kb,useDeferredValue:function(l,u){var p=sa();return sn===null?_b(p,l,u):T7(p,sn.memoizedState,l,u)},useTransition:function(){var l=tf(Oo)[0],u=sa().memoizedState;return[typeof l=="boolean"?l:ic(l),u]},useSyncExternalStore:nf,useId:L7,useHostTransitionStatus:Cb,useFormState:sf,useActionState:sf,useOptimistic:function(l,u){var p=sa();return sn!==null?xg(p,sn,l,u):(p.baseState=l,[l,p.queue.dispatch])},useMemoCache:hu,useCacheRefresh:M7};D7.useEffectEvent=y7;function Lb(l,u,p,x){u=l.memoizedState,p=p(x,u),p=p==null?u:m({},u,p),l.memoizedState=p,l.lanes===0&&(l.updateQueue.baseState=p)}var Mb={enqueueSetState:function(l,u,p){l=l._reactInternals;var x=uo(),w=cn(x);w.payload=u,p!=null&&(w.callback=p),u=Cn(l,w,x),u!==null&&(Di(u,l,x),dr(u,l,x))},enqueueReplaceState:function(l,u,p){l=l._reactInternals;var x=uo(),w=cn(x);w.tag=1,w.payload=u,p!=null&&(w.callback=p),u=Cn(l,w,x),u!==null&&(Di(u,l,x),dr(u,l,x))},enqueueForceUpdate:function(l,u){l=l._reactInternals;var p=uo(),x=cn(p);x.tag=2,u!=null&&(x.callback=u),u=Cn(l,x,p),u!==null&&(Di(u,l,p),dr(u,l,p))}};function I7(l,u,p,x,w,k,F){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(x,k,F):u.prototype&&u.prototype.isPureReactComponent?!js(p,x)||!js(w,k):!0}function B7(l,u,p,x){l=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(p,x),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(p,x),u.state!==l&&Mb.enqueueReplaceState(u,u.state,null)}function B0(l,u){var p=u;if("ref"in u){p={};for(var x in u)x!=="ref"&&(p[x]=u[x])}if(l=l.defaultProps){p===u&&(p=m({},p));for(var w in l)p[w]===void 0&&(p[w]=l[w])}return p}function F7(l){C0(l)}function z7(l){console.error(l)}function H7(l){C0(l)}function Eg(l,u){try{var p=l.onUncaughtError;p(u.value,{componentStack:u.stack})}catch(x){setTimeout(function(){throw x})}}function U7(l,u,p){try{var x=l.onCaughtError;x(p.value,{componentStack:p.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(w){setTimeout(function(){throw w})}}function Rb(l,u,p){return p=cn(p),p.tag=3,p.payload={element:null},p.callback=function(){Eg(l,u)},p}function q7(l){return l=cn(l),l.tag=3,l}function V7(l,u,p,x){var w=p.type.getDerivedStateFromError;if(typeof w=="function"){var k=x.value;l.payload=function(){return w(k)},l.callback=function(){U7(u,p,x)}}var F=p.stateNode;F!==null&&typeof F.componentDidCatch=="function"&&(l.callback=function(){U7(u,p,x),typeof w!="function"&&(vd===null?vd=new Set([this]):vd.add(this));var ie=x.stack;this.componentDidCatch(x.value,{componentStack:ie!==null?ie:""})})}function bF(l,u,p,x,w){if(p.flags|=32768,x!==null&&typeof x=="object"&&typeof x.then=="function"){if(u=p.alternate,u!==null&&nc(u,p,w,!0),p=Kr.current,p!==null){switch(p.tag){case 31:case 13:return Jn===null?jg():p.alternate===null&&_a===0&&(_a=3),p.flags&=-257,p.flags|=65536,p.lanes=w,x===Oe?p.flags|=16384:(u=p.updateQueue,u===null?p.updateQueue=new Set([x]):u.add(x),ry(l,x,w)),!1;case 22:return p.flags|=65536,x===Oe?p.flags|=16384:(u=p.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([x])},p.updateQueue=u):(p=u.retryQueue,p===null?u.retryQueue=new Set([x]):p.add(x)),ry(l,x,w)),!1}throw Error(r(435,p.tag))}return ry(l,x,w),jg(),!1}if(Un)return u=Kr.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=w,x!==oo&&(l=Error(r(422),{cause:x}),ud(_i(l,p)))):(x!==oo&&(u=Error(r(423),{cause:x}),ud(_i(u,p))),l=l.current.alternate,l.flags|=65536,w&=-w,l.lanes|=w,x=_i(x,p),w=Rb(l.stateNode,x,w),Pa(l,w),_a!==4&&(_a=2)),!1;var k=Error(r(520),{cause:x});if(k=_i(k,p),lm===null?lm=[k]:lm.push(k),_a!==4&&(_a=2),u===null)return!0;x=_i(x,p),p=u;do{switch(p.tag){case 3:return p.flags|=65536,l=w&-w,p.lanes|=l,l=Rb(p.stateNode,x,l),Pa(p,l),!1;case 1:if(u=p.type,k=p.stateNode,(p.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(vd===null||!vd.has(k))))return p.flags|=65536,w&=-w,p.lanes|=w,w=q7(w),V7(w,l,p,x),Pa(p,w),!1}p=p.return}while(p!==null);return!1}var Ob=Error(r(461)),$a=!1;function Bs(l,u,p,x){u.child=l===null?kn(u,null,p,x):Ir(u,l.child,p,x)}function G7(l,u,p,x,w){p=p.render;var k=u.ref;if("ref"in x){var F={};for(var ie in x)ie!=="ref"&&(F[ie]=x[ie])}else F=x;return rc(u),x=$p(l,u,p,F,k,w),ie=Wp(),l!==null&&!$a?(Yp(l,u,w),mu(l,u,w)):(Un&&ie&&Up(u),u.flags|=1,Bs(l,u,x,w),u.child)}function $7(l,u,p,x,w){if(l===null){var k=p.type;return typeof k=="function"&&!Uh(k)&&k.defaultProps===void 0&&p.compare===null?(u.tag=15,u.type=k,W7(l,u,k,x,w)):(l=od(p.type,null,x,u,u.mode,w
vendor: 11,545 bytes, line 49
49),l.ref=u.ref,l.return=u,u.child=l)}if(k=l.child,!Hb(l,w)){var F=k.memoizedProps;if(p=p.compare,p=p!==null?p:js,p(F,x)&&l.ref===u.ref)return mu(l,u,w)}return u.flags|=1,l=ki(k,x),l.ref=u.ref,l.return=u,u.child=l}function W7(l,u,p,x,w){if(l!==null){var k=l.memoizedProps;if(js(k,x)&&l.ref===u.ref)if($a=!1,u.pendingProps=x=k,Hb(l,w))(l.flags&131072)!==0&&($a=!0);else return u.lanes=l.lanes,mu(l,u,w)}return Pb(l,u,p,x,w)}function Y7(l,u,p,x){var w=x.children,k=l!==null?l.memoizedState:null;if(l===null&&u.stateNode===null&&(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),x.mode==="hidden"){if((u.flags&128)!==0){if(k=k!==null?k.baseLanes|p:p,l!==null){for(x=u.child=l.child,w=0;x!==null;)w=w|x.lanes|x.childLanes,x=x.sibling;x=w&~k}else x=0,u.child=null;return Q7(l,u,k,p,x)}if((p&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},l!==null&&de(u,k!==null?k.cachePool:null),k!==null?Xr(u,k):nr(),Sa(u);else return x=u.lanes=536870912,Q7(l,u,k!==null?k.baseLanes|p:p,p,x)}else k!==null?(de(u,k.cachePool),Xr(u,k),Ea(),u.memoizedState=null):(l!==null&&de(u,null),nr(),Ea());return Bs(l,u,w,p),u.child}function tm(l,u){return l!==null&&l.tag===22||u.stateNode!==null||(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.sibling}function Q7(l,u,p,x,w){var k=le();return k=k===null?null:{parent:ha._currentValue,pool:k},u.memoizedState={baseLanes:p,cachePool:k},l!==null&&de(u,null),nr(),Sa(u),l!==null&&nc(l,u,x,!0),u.childLanes=w,null}function kg(l,u){return u=Tg({mode:u.mode,children:u.children},l.mode),u.ref=l.ref,l.child=u,u.return=l,u}function X7(l,u,p){return Ir(u,l.child,null,p),l=kg(u,u.pendingProps),l.flags|=2,Sr(u),u.memoizedState=null,l}function yF(l,u,p){var x=u.pendingProps,w=(u.flags&128)!==0;if(u.flags&=-129,l===null){if(Un){if(x.mode==="hidden")return l=kg(u,x),u.lanes=536870912,tm(null,l);if(hr(u),(l=Dr)?(l=lE(l,ra),l=l!==null&&l.data==="&"?l:null,l!==null&&(u.memoizedState={dehydrated:l,treeContext:Jl!==null?{id:Ni,overflow:Ai}:null,retryLane:536870912,hydrationErrors:null},p=qh(l),p.return=u,u.child=p,as=u,Dr=null)):l=null,l===null)throw Zl(u);return u.lanes=536870912,null}return kg(u,x)}var k=l.memoizedState;if(k!==null){var F=k.dehydrated;if(hr(u),w)if(u.flags&256)u.flags&=-257,u=X7(l,u,p);else if(u.memoizedState!==null)u.child=l.child,u.flags|=128,u=null;else throw Error(r(558));else if($a||nc(l,u,p,!1),w=(p&l.childLanes)!==0,$a||w){if(x=Br,x!==null&&(F=Or(x,p),F!==0&&F!==k.retryLane))throw k.retryLane=F,fl(l,F),Di(x,l,F),Ob;jg(),u=X7(l,u,p)}else l=k.treeContext,Dr=jo(F.nextSibling),as=u,Un=!0,Ds=null,ra=!1,l!==null&&pg(u,l),u=kg(u,x),u.flags|=4096;return u}return l=ki(l.child,{mode:x.mode,children:x.children}),l.ref=u.ref,u.child=l,l.return=u,l}function _g(l,u){var p=u.ref;if(p===null)l!==null&&l.ref!==null&&(u.flags|=4194816);else{if(typeof p!="function"&&typeof p!="object")throw Error(r(284));(l===null||l.ref!==p)&&(u.flags|=4194816)}}function Pb(l,u,p,x,w){return rc(u),p=$p(l,u,p,x,void 0,w),x=Wp(),l!==null&&!$a?(Yp(l,u,w),mu(l,u,w)):(Un&&x&&Up(u),u.flags|=1,Bs(l,u,p,w),u.child)}function K7(l,u,p,x,w,k){return rc(u),u.updateQueue=null,p=ml(u,x,p,w),Jh(l),x=Wp(),l!==null&&!$a?(Yp(l,u,k),mu(l,u,k)):(Un&&x&&Up(u),u.flags|=1,Bs(l,u,p,k),u.child)}function J7(l,u,p,x,w){if(rc(u),u.stateNode===null){var k=rs,F=p.contextType;typeof F=="object"&&F!==null&&(k=is(F)),k=new p(x,k),u.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,k.updater=Mb,u.stateNode=k,k._reactInternals=u,k=u.stateNode,k.props=x,k.state=u.memoizedState,k.refs={},vt(u),F=p.contextType,k.context=typeof F=="object"&&F!==null?is(F):rs,k.state=u.memoizedState,F=p.getDerivedStateFromProps,typeof F=="function"&&(Lb(u,p,F,x),k.state=u.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof k.getSnapshotBeforeUpdate=="function"||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(F=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),F!==k.state&&Mb.enqueueReplaceState(k,k.state,null),va(u,x,k,w),Cr(),k.state=u.memoizedState),typeof k.componentDidMount=="function"&&(u.flags|=4194308),x=!0}else if(l===null){k=u.stateNode;var ie=u.memoizedProps,Ce=B0(p,ie);k.props=Ce;var Ve=k.context,Ze=p.contextType;F=rs,typeof Ze=="object"&&Ze!==null&&(F=is(Ze));var at=p.getDerivedStateFromProps;Ze=typeof at=="function"||typeof k.getSnapshotBeforeUpdate=="function",ie=u.pendingProps!==ie,Ze||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(ie||Ve!==F)&&B7(u,k,x,F),Pt=!1;var Ge=u.memoizedState;k.state=Ge,va(u,x,k,w),Cr(),Ve=u.memoizedState,ie||Ge!==Ve||Pt?(typeof at=="function"&&(Lb(u,p,at,x),Ve=u.memoizedState),(Ce=Pt||I7(u,p,Ce,x,Ge,Ve,F))?(Ze||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(u.flags|=4194308)):(typeof k.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=x,u.memoizedState=Ve),k.props=x,k.state=Ve,k.context=F,x=Ce):(typeof k.componentDidMount=="function"&&(u.flags|=4194308),x=!1)}else{k=u.stateNode,Qr(l,u),F=u.memoizedProps,Ze=B0(p,F),k.props=Ze,at=u.pendingProps,Ge=k.context,Ve=p.contextType,Ce=rs,typeof Ve=="object"&&Ve!==null&&(Ce=is(Ve)),ie=p.getDerivedStateFromProps,(Ve=typeof ie=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(F!==at||Ge!==Ce)&&B7(u,k,x,Ce),Pt=!1,Ge=u.memoizedState,k.state=Ge,va(u,x,k,w),Cr();var $e=u.memoizedState;F!==at||Ge!==$e||Pt||l!==null&&l.dependencies!==null&&Yh(l.dependencies)?(typeof ie=="function"&&(Lb(u,p,ie,x),$e=u.memoizedState),(Ze=Pt||I7(u,p,Ze,x,Ge,$e,Ce)||l!==null&&l.dependencies!==null&&Yh(l.dependencies))?(Ve||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(x,$e,Ce),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(x,$e,Ce)),typeof k.componentDidUpdate=="function"&&(u.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof k.componentDidUpdate!="function"||F===l.memoizedProps&&Ge===l.memoizedState||(u.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||F===l.memoizedProps&&Ge===l.memoizedState||(u.flags|=1024),u.memoizedProps=x,u.memoizedState=$e),k.props=x,k.state=$e,k.context=Ce,x=Ze):(typeof k.componentDidUpdate!="function"||F===l.memoizedProps&&Ge===l.memoizedState||(u.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||F===l.memoizedProps&&Ge===l.memoizedState||(u.flags|=1024),x=!1)}return k=x,_g(l,u),x=(u.flags&128)!==0,k||x?(k=u.stateNode,p=x&&typeof p.getDerivedStateFromError!="function"?null:k.render(),u.flags|=1,l!==null&&x?(u.child=Ir(u,l.child,null,w),u.child=Ir(u,null,p,w)):Bs(l,u,p,w),u.memoizedState=k.state,l=u.child):l=mu(l,u,w),l}function Z7(l,u,p,x){return uu(),u.flags|=256,Bs(l,u,p,x),u.child}var jb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Db(l){return{baseLanes:l,cachePool:ve()}}function Ib(l,u,p){return l=l!==null?l.childLanes&~p:0,u&&(l|=co),l}function eS(l,u,p){var x=u.pendingProps,w=!1,k=(u.flags&128)!==0,F;if((F=k)||(F=l!==null&&l.memoizedState===null?!1:(Xn.current&2)!==0),F&&(w=!0,u.flags&=-129),F=(u.flags&32)!==0,u.flags&=-33,l===null){if(Un){if(w?fa(u):Ea(),(l=Dr)?(l=lE(l,ra),l=l!==null&&l.data!=="&"?l:null,l!==null&&(u.memoizedState={dehydrated:l,treeContext:Jl!==null?{id:Ni,overflow:Ai}:null,retryLane:536870912,hydrationErrors:null},p=qh(l),p.return=u,u.child=p,as=u,Dr=null)):l=null,l===null)throw Zl(u);return yy(l)?u.lanes=32:u.lanes=536870912,null}var ie=x.children;return x=x.fallback,w?(Ea(),w=u.mode,ie=Tg({mode:"hidden",children:ie},w),x=Kl(x,w,p,null),ie.return=u,x.return=u,ie.sibling=x,u.child=ie,x=u.child,x.memoizedState=Db(p),x.childLanes=Ib(l,F,p),u.memoizedState=jb,tm(null,x)):(fa(u),Bb(u,ie))}var Ce=l.memoizedState;if(Ce!==null&&(ie=Ce.dehydrated,ie!==null)){if(k)u.flags&256?(fa(u),u.flags&=-257,u=Fb(l,u,p)):u.memoizedState!==null?(Ea(),u.child=l.child,u.flags|=128,u=null):(Ea(),ie=x.fallback,w=u.mode,x=Tg({mode:"visible",children:x.children},w),ie=Kl(ie,w,p,null),ie.flags|=2,x.return=u,ie.return=u,x.sibling=ie,u.child=x,Ir(u,l.child,null,p),x=u.child,x.memoizedState=Db(p),x.childLanes=Ib(l,F,p),u.memoizedState=jb,u=tm(null,x));else if(fa(u),yy(ie)){if(F=ie.nextSibling&&ie.nextSibling.dataset,F)var Ve=F.dgst;F=Ve,x=Error(r(419)),x.stack="",x.digest=F,ud({value:x,source:null,stack:null}),u=Fb(l,u,p)}else if($a||nc(l,u,p,!1),F=(p&l.childLanes)!==0,$a||F){if(F=Br,F!==null&&(x=Or(F,p),x!==0&&x!==Ce.retryLane))throw Ce.retryLane=x,fl(l,x),Di(F,l,x),Ob;by(ie)||jg(),u=Fb(l,u,p)}else by(ie)?(u.flags|=192,u.child=l.child,u=null):(l=Ce.treeContext,Dr=jo(ie.nextSibling),as=u,Un=!0,Ds=null,ra=!1,l!==null&&pg(u,l),u=Bb(u,x.children),u.flags|=4096);return u}return w?(Ea(),ie=x.fallback,w=u.mode,Ce=l.child,Ve=Ce.sibling,x=ki(Ce,{mode:"hidden",children:x.children}),x.subtreeFlags=Ce.subtreeFlags&65011712,Ve!==null?ie=ki(Ve,ie):(ie=Kl(ie,w,p,null),ie.flags|=2),ie.return=u,x.return=u,x.sibling=ie,u.child=x,tm(null,x),x=u.child,ie=l.child.memoizedState,ie===null?ie=Db(p):(w=ie.cachePool,w!==null?(Ce=ha._currentValue,w=w.parent!==Ce?{parent:Ce,pool:Ce}:w):w=ve(),ie={baseLanes:ie.baseLanes|p,cachePool:w}),x.memoizedState=ie,x.childLanes=Ib(l,F,p),u.memoizedState=jb,tm(l.child,x)):(fa(u),p=l.child,l=p.sibling,p=ki(p,{mode:"visible",children:x.children}),p.return=u,p.sibling=null,l!==null&&(F=u.deletions,F===null?(u.deletions=[l],u.flags|=16):F.push(l)),u.child=p,u.memoizedState=null,p)}function Bb(l,u){return u=Tg({mode:"visible",children:u},l.mode),u.return=l,l.child=u}function Tg(l,u){return l=ws(22,l,null,u),l.lanes=0,l}function Fb(l,u,p){return Ir(u,l.child,null,p),l=Bb(u,u.pendingProps.children),l.flags|=2,u.memoizedState=null,l}function tS(l,u,p){l.lanes|=u;var x=l.alternate;x!==null&&(x.lanes|=u),dd(l.return,u,p)}function zb(l,u,p,x,w,k){var F=l.memoizedState;F===null?l.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:x,tail:p,tailMode:w,treeForkCount:k}:(F.isBackwards=u,F.rendering=null,F.renderingStartTime=0,F.last=x,F.tail=p,F.tailMode=w,F.treeForkCount=k)}function nS(l,u,p){var x=u.pendingProps,w=x.revealOrder,k=x.tail;x=x.children;var F=Xn.current,ie=(F&2)!==0;if(ie?(F=F&1|2,u.flags|=128):F&=1,O(Xn,F),Bs(l,u,x,p),x=Un?O0:0,!ie&&l!==null&&(l.flags&128)!==0)e:for(l=u.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&tS(l,p,u);else if(l.tag===19)tS(l,p,u);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===u)break e;for(;l.sibling===null;){if(l.return===null||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(w){case"forwards":for(p=u.child,w=null;p!==null;)l=p.alternate,l!==null&&Es(l)===null&&(w=p),p=p.sibling;p=w,p===null?(w=u.child,u.child=null):(w=p.sibling,p.sibling=null),zb(u,!1,w,p,k,x);break;case"backwards":case"unstable_legacy-backwards":for(p=null,w=u.child,u.child=null;w!==null;){if(l=w.alternate,l!==null&&Es(l)===null){u.child=w;break}l=w.sibling,w.sibling=p,p=w,w=l}zb(u,!0,p,null,k,x);break;case"together":zb(u,!1,null,null,void 0,x);break;default:u.memoizedState=null}return u.child}
vendor: 4,079 bytes, line 49
49function mu(l,u,p){if(l!==null&&(u.dependencies=l.dependencies),yd|=u.lanes,(p&u.childLanes)===0)if(l!==null){if(nc(l,u,p,!1),(p&u.childLanes)===0)return null}else return null;if(l!==null&&u.child!==l.child)throw Error(r(153));if(u.child!==null){for(l=u.child,p=ki(l,l.pendingProps),u.child=p,p.return=u;l.sibling!==null;)l=l.sibling,p=p.sibling=ki(l,l.pendingProps),p.return=u;p.sibling=null}return u.child}function Hb(l,u){return(l.lanes&u)!==0?!0:(l=l.dependencies,!!(l!==null&&Yh(l)))}function vF(l,u,p){switch(u.tag){case 3:ue(u,u.stateNode.containerInfo),tc(u,ha,l.memoizedState.cache),uu();break;case 27:case 5:Ie(u);break;case 4:ue(u,u.stateNode.containerInfo);break;case 10:tc(u,u.type,u.memoizedProps.value);break;case 31:if(u.memoizedState!==null)return u.flags|=128,hr(u),null;break;case 13:var x=u.memoizedState;if(x!==null)return x.dehydrated!==null?(fa(u),u.flags|=128,null):(p&u.child.childLanes)!==0?eS(l,u,p):(fa(u),l=mu(l,u,p),l!==null?l.sibling:null);fa(u);break;case 19:var w=(l.flags&128)!==0;if(x=(p&u.childLanes)!==0,x||(nc(l,u,p,!1),x=(p&u.childLanes)!==0),w){if(x)return nS(l,u,p);u.flags|=128}if(w=u.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),O(Xn,Xn.current),x)break;return null;case 22:return u.lanes=0,Y7(l,u,p,u.pendingProps);case 24:tc(u,ha,l.memoizedState.cache)}return mu(l,u,p)}function rS(l,u,p){if(l!==null)if(l.memoizedProps!==u.pendingProps)$a=!0;else{if(!Hb(l,p)&&(u.flags&128)===0)return $a=!1,vF(l,u,p);$a=(l.flags&131072)!==0}else $a=!1,Un&&(u.flags&1048576)!==0&&fg(u,O0,u.index);switch(u.lanes=0,u.tag){case 16:e:{var x=u.pendingProps;if(l=Fe(u.elementType),u.type=l,typeof l=="function")Uh(l)?(x=B0(l,x),u.tag=1,u=J7(null,u,l,x,p)):(u.tag=0,u=Pb(null,u,l,x,p));else{if(l!=null){var w=l.$$typeof;if(w===P){u.tag=11,u=G7(null,u,l,x,p);break e}else if(w===D){u.tag=14,u=$7(null,u,l,x,p);break e}}throw u=J(l)||l,Error(r(306,u,""))}}return u;case 0:return Pb(l,u,u.type,u.pendingProps,p);case 1:return x=u.type,w=B0(x,u.pendingProps),J7(l,u,x,w,p);case 3:e:{if(ue(u,u.stateNode.containerInfo),l===null)throw Error(r(387));x=u.pendingProps;var k=u.memoizedState;w=k.element,Qr(l,u),va(u,x,null,p);var F=u.memoizedState;if(x=F.cache,tc(u,ha,x),x!==k.cache&&du(u,[ha],p,!0),Cr(),x=F.element,k.isDehydrated)if(k={element:x,isDehydrated:!1,cache:F.cache},u.updateQueue.baseState=k,u.memoizedState=k,u.flags&256){u=Z7(l,u,x,p);break e}else if(x!==w){w=_i(Error(r(424)),u),ud(w),u=Z7(l,u,x,p);break e}else{switch(l=u.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(Dr=jo(l.firstChild),as=u,Un=!0,Ds=null,ra=!0,p=kn(u,null,x,p),u.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(uu(),x===w){u=mu(l,u,p);break e}Bs(l,u,x,p)}u=u.child}return u;case 26:return _g(l,u),l===null?(p=pE(u.type,null,u.pendingProps,null))?u.memoizedState=p:Un||(p=u.type,l=u.pendingProps,x=Ug(we.current).createElement(p),x[vr]=u,x[$r]=l,Fs(x,p,l),da(x),u.stateNode=x):u.memoizedState=pE(u.type,l.memoizedProps,u.pendingProps,l.memoizedState),null;case 27:return Ie(u),l===null&&Un&&(x=u.stateNode=dE(u.type,u.pendingProps,we.current),as=u,ra=!0,w=Dr,kd(u.type)?(vy=w,Dr=jo(x.firstChild)):Dr=w),Bs(l,u,u.pendingProps.children,p),_g(l,u),l===null&&(u.flags|=4194304),u.child;case 5:return l===null&&Un&&((w=x=Dr)&&(x=XF(x,u.type,u.pendingProps,ra),x!==null?(u.stateNode=x,as=u,Dr=jo(x.firstChild),ra=!1,w=!0):w=!1),w||Zl(u)),Ie(u),w=u.type,k=u.pendingProps,F=l!==null?l.memoizedProps:null,x=k.children,my(w,k)?x=null:F!==null&&my(w,F)&&(u.flags|=32),u.memoizedState!==null&&(w=$p(l,u,Sb,null,null,p),gm._currentValue=w),_g(l,u),Bs(l,u,x,p),u.child;case 6:return l===null&&Un&&((l=p=Dr)&&(p=KF(p,u.pendingProps,ra),p!==null?(u.stateNode=p,as=u,Dr=null,l=!0):l=!1),l||Zl(u)),null;case 13:return eS(l,u,p);case 4:return ue(u,u.stateNode.containerInfo),x=u.pendingProps,l===null?u.child=Ir(u,null,x,p):Bs(l,u,x,p),u.child;case 11:return G7(l,u,u.type,u.pendingProps,p);case 7:return Bs(l,u,u.pendingProps,p),u.child;case 8:return Bs(l,u,u.pendingProps.children,p),u.child;
vendor: 8,093 bytes, line 49
49case 12:return Bs(l,u,u.pendingProps.children,p),u.child;case 10:return x=u.pendingProps,tc(u,u.type,x.value),Bs(l,u,x.children,p),u.child;case 9:return w=u.type._context,x=u.pendingProps.children,rc(u),w=is(w),x=x(w),u.flags|=1,Bs(l,u,x,p),u.child;case 14:return $7(l,u,u.type,u.pendingProps,p);case 15:return W7(l,u,u.type,u.pendingProps,p);case 19:return nS(l,u,p);case 31:return yF(l,u,p);case 22:return Y7(l,u,p,u.pendingProps);case 24:return rc(u),x=is(ha),l===null?(w=le(),w===null&&(w=Br,k=hd(),w.pooledCache=k,k.refCount++,k!==null&&(w.pooledCacheLanes|=p),w=k),u.memoizedState={parent:x,cache:w},vt(u),tc(u,ha,w)):((l.lanes&p)!==0&&(Qr(l,u),va(u,null,null,p),Cr()),w=l.memoizedState,k=u.memoizedState,w.parent!==x?(w={parent:x,cache:x},u.memoizedState=w,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=w),tc(u,ha,x)):(x=k.cache,tc(u,ha,x),x!==w.cache&&du(u,[ha],p,!0))),Bs(l,u,u.pendingProps.children,p),u.child;case 29:throw u.pendingProps}throw Error(r(156,u.tag))}function gu(l){l.flags|=4}function Ub(l,u,p,x,w){if((u=(l.mode&32)!==0)&&(u=!1),u){if(l.flags|=16777216,(w&335544128)===w)if(l.stateNode.complete)l.flags|=8192;else if(LS())l.flags|=8192;else throw Qe=Oe,He}else l.flags&=-16777217}function aS(l,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!yE(u))if(LS())l.flags|=8192;else throw Qe=Oe,He}function Cg(l,u){u!==null&&(l.flags|=4),l.flags&16384&&(u=l.tag!==22?Ur():536870912,l.lanes|=u,uf|=u)}function nm(l,u){if(!Un)switch(l.tailMode){case"hidden":u=l.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?l.tail=null:p.sibling=null;break;case"collapsed":p=l.tail;for(var x=null;p!==null;)p.alternate!==null&&(x=p),p=p.sibling;x===null?u||l.tail===null?l.tail=null:l.tail.sibling=null:x.sibling=null}}function Jr(l){var u=l.alternate!==null&&l.alternate.child===l.child,p=0,x=0;if(u)for(var w=l.child;w!==null;)p|=w.lanes|w.childLanes,x|=w.subtreeFlags&65011712,x|=w.flags&65011712,w.return=l,w=w.sibling;else for(w=l.child;w!==null;)p|=w.lanes|w.childLanes,x|=w.subtreeFlags,x|=w.flags,w.return=l,w=w.sibling;return l.subtreeFlags|=x,l.childLanes=p,u}function wF(l,u,p){var x=u.pendingProps;switch($h(u),u.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jr(u),null;case 1:return Jr(u),null;case 3:return p=u.stateNode,x=null,l!==null&&(x=l.memoizedState.cache),u.memoizedState.cache!==x&&(u.flags|=2048),Li(ha),Ae(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(l===null||l.child===null)&&(ss(u)?gu(u):l===null||l.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Vp())),Jr(u),null;case 26:var w=u.type,k=u.memoizedState;return l===null?(gu(u),k!==null?(Jr(u),aS(u,k)):(Jr(u),Ub(u,w,null,x,p))):k?k!==l.memoizedState?(gu(u),Jr(u),aS(u,k)):(Jr(u),u.flags&=-16777217):(l=l.memoizedProps,l!==x&&gu(u),Jr(u),Ub(u,w,l,x,p)),null;case 27:if(We(u),p=we.current,w=u.type,l!==null&&u.stateNode!=null)l.memoizedProps!==x&&gu(u);else{if(!x){if(u.stateNode===null)throw Error(r(166));return Jr(u),null}l=K.current,ss(u)?qp(u):(l=dE(w,x,p),u.stateNode=l,gu(u))}return Jr(u),null;case 5:if(We(u),w=u.type,l!==null&&u.stateNode!=null)l.memoizedProps!==x&&gu(u);else{if(!x){if(u.stateNode===null)throw Error(r(166));return Jr(u),null}if(k=K.current,ss(u))qp(u);else{var F=Ug(we.current);switch(k){case 1:k=F.createElementNS("http://www.w3.org/2000/svg",w);break;case 2:k=F.createElementNS("http://www.w3.org/1998/Math/MathML",w);break;default:switch(w){case"svg":k=F.createElementNS("http://www.w3.org/2000/svg",w);break;case"math":k=F.createElementNS("http://www.w3.org/1998/Math/MathML",w);break;case"script":k=F.createElement("div"),k.innerHTML="<script><\/script>",k=k.removeChild(k.firstChild);break;case"select":k=typeof x.is=="string"?F.createElement("select",{is:x.is}):F.createElement("select"),x.multiple?k.multiple=!0:x.size&&(k.size=x.size);break;default:k=typeof x.is=="string"?F.createElement(w,{is:x.is}):F.createElement(w)}}k[vr]=u,k[$r]=x;e:for(F=u.child;F!==null;){if(F.tag===5||F.tag===6)k.appendChild(F.stateNode);else if(F.tag!==4&&F.tag!==27&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===u)break e;for(;F.sibling===null;){if(F.return===null||F.return===u)break e;F=F.return}F.sibling.return=F.return,F=F.sibling}u.stateNode=k;e:switch(Fs(k,w,x),w){case"button":case"input":case"select":case"textarea":x=!!x.autoFocus;break e;case"img":x=!0;break e;default:x=!1}x&&gu(u)}}return Jr(u),Ub(u,u.type,l===null?null:l.memoizedProps,u.pendingProps,p),null;case 6:if(l&&u.stateNode!=null)l.memoizedProps!==x&&gu(u);else{if(typeof x!="string"&&u.stateNode===null)throw Error(r(166));if(l=we.current,ss(u)){if(l=u.stateNode,p=u.memoizedProps,x=null,w=as,w!==null)switch(w.tag){case 27:case 5:x=w.memoizedProps}l[vr]=u,l=!!(l.nodeValue===p||x!==null&&x.suppressHydrationWarning===!0||eE(l.nodeValue,p)),l||Zl(u,!0)}else l=Ug(l).createTextNode(x),l[vr]=u,u.stateNode=l}return Jr(u),null;case 31:if(p=u.memoizedState,l===null||l.memoizedState!==null){if(x=ss(u),p!==null){if(l===null){if(!x)throw Error(r(318));if(l=u.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(557));l[vr]=u}else uu(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Jr(u),l=!1}else p=Vp(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=p),l=!0;if(!l)return u.flags&256?(Sr(u),u):(Sr(u),null);if((u.flags&128)!==0)throw Error(r(558))}return Jr(u),null;case 13:if(x=u.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(w=ss(u),x!==null&&x.dehydrated!==null){if(l===null){if(!w)throw Error(r(318));if(w=u.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(r(317));w[vr]=u}else uu(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Jr(u),w=!1}else w=Vp(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=w),w=!0;if(!w)return u.flags&256?(Sr(u),u):(Sr(u),null)}return Sr(u),(u.flags&128)!==0?(u.lanes=p,u):(p=x!==null,l=l!==null&&l.memoizedState!==null,p&&(x=u.child,w=null,x.alternate!==null&&x.alternate.memoizedState!==null&&x.alternate.memoizedState.cachePool!==null&&(w=x.alternate.memoizedState.cachePool.pool),k=null,x.memoizedState!==null&&x.memoizedState.cachePool!==null&&(k=x.memoizedState.cachePool.pool),k!==w&&(x.flags|=2048)),p!==l&&p&&(u.child.flags|=8192),Cg(u,u.updateQueue),Jr(u),null);case 4:return Ae(),l===null&&uy(u.stateNode.containerInfo),Jr(u),null;case 10:return Li(u.type),Jr(u),null;case 19:if(B(Xn),x=u.memoizedState,x===null)return Jr(u),null;if(w=(u.flags&128)!==0,k=x.rendering,k===null)if(w)nm(x,!1);else{if(_a!==0||l!==null&&(l.flags&128)!==0)for(l=u.child;l!==null;){if(k=Es(l),k!==null){for(u.flags|=128,nm(x,!1),l=k.updateQueue,u.updateQueue=l,Cg(u,l),u.subtreeFlags=0,l=p,p=u.child;p!==null;)M0(p,l),p=p.sibling;return O(Xn,Xn.current&1|2),Un&&ui(u,x.treeForkCount),u.child}l=l.sibling}x.tail!==null&&mn()>Rg&&(u.flags|=128,w=!0,nm(x,!1),u.lanes=4194304)}else{if(!w)if(l=Es(k),l!==null){if(u.flags|=128,w=!0,l=l.updateQueue,u.updateQueue=l,Cg(u,l),nm(x,!0),x.tail===null&&x.tailMode==="hidden"&&!k.alternate&&!Un)return Jr(u),null}else 2*mn()-x.renderingStartTime>Rg&&p!==536870912&&(u.flags|=128,w=!0,nm(x,!1),u.lanes=4194304);x.isBackwards?(k.sibling=u.child,u.child=k):(l=x.last,l!==null?l.sibling=k:u.child=k,x.last=k)}return x.tail!==null?(l=x.tail,x.rendering=l,x.tail=l.sibling,x.renderingStartTime=mn(),l.sibling=null,p=Xn.current,O(Xn,w?p&1|2:p&1),Un&&ui(u,x.treeForkCount),l):(Jr(u),null);case 22:case 23:return Sr(u),ja(),x=u.memoizedState!==null,l!==null?l.memoizedState!==null!==x&&(u.flags|=8192):x&&(u.flags|=8192),x?(p&536870912)!==0&&(u.flags&128)===0&&(Jr(u),u.subtreeFlags&6&&(u.flags|=8192)):Jr(u),p=u.updateQueue,p!==null&&Cg(u,p.retryQueue),p=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),x=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(x=u.memoizedState.cachePool.pool),x!==p&&(u.flags|=2048),l!==null&&B(re),null;case 24:return p=null,l!==null&&(p=l.memoizedState.cache),u.memoizedState.cache!==p&&
vendor: 19,828 bytes, line 49
49(u.flags|=2048),Li(ha),Jr(u),null;case 25:return null;case 30:return null}throw Error(r(156,u.tag))}function SF(l,u){switch($h(u),u.tag){case 1:return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 3:return Li(ha),Ae(),l=u.flags,(l&65536)!==0&&(l&128)===0?(u.flags=l&-65537|128,u):null;case 26:case 27:case 5:return We(u),null;case 31:if(u.memoizedState!==null){if(Sr(u),u.alternate===null)throw Error(r(340));uu()}return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 13:if(Sr(u),l=u.memoizedState,l!==null&&l.dehydrated!==null){if(u.alternate===null)throw Error(r(340));uu()}return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 19:return B(Xn),null;case 4:return Ae(),null;case 10:return Li(u.type),null;case 22:case 23:return Sr(u),ja(),l!==null&&B(re),l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 24:return Li(ha),null;case 25:return null;default:return null}}function sS(l,u){switch($h(u),u.tag){case 3:Li(ha),Ae();break;case 26:case 27:case 5:We(u);break;case 4:Ae();break;case 31:u.memoizedState!==null&&Sr(u);break;case 13:Sr(u);break;case 19:B(Xn);break;case 10:Li(u.type);break;case 22:case 23:Sr(u),ja(),l!==null&&B(re);break;case 24:Li(ha)}}function rm(l,u){try{var p=u.updateQueue,x=p!==null?p.lastEffect:null;if(x!==null){var w=x.next;p=w;do{if((p.tag&l)===l){x=void 0;var k=p.create,F=p.inst;x=k(),F.destroy=x}p=p.next}while(p!==w)}}catch(ie){kr(u,u.return,ie)}}function xd(l,u,p){try{var x=u.updateQueue,w=x!==null?x.lastEffect:null;if(w!==null){var k=w.next;x=k;do{if((x.tag&l)===l){var F=x.inst,ie=F.destroy;if(ie!==void 0){F.destroy=void 0,w=u;var Ce=p,Ve=ie;try{Ve()}catch(Ze){kr(w,Ce,Ze)}}}x=x.next}while(x!==k)}}catch(Ze){kr(u,u.return,Ze)}}function iS(l){var u=l.updateQueue;if(u!==null){var p=l.stateNode;try{wa(u,p)}catch(x){kr(l,l.return,x)}}}function oS(l,u,p){p.props=B0(l.type,l.memoizedProps),p.state=l.memoizedState;try{p.componentWillUnmount()}catch(x){kr(l,u,x)}}function am(l,u){try{var p=l.ref;if(p!==null){switch(l.tag){case 26:case 27:case 5:var x=l.stateNode;break;case 30:x=l.stateNode;break;default:x=l.stateNode}typeof p=="function"?l.refCleanup=p(x):p.current=x}}catch(w){kr(l,u,w)}}function lc(l,u){var p=l.ref,x=l.refCleanup;if(p!==null)if(typeof x=="function")try{x()}catch(w){kr(l,u,w)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(w){kr(l,u,w)}else p.current=null}function lS(l){var u=l.type,p=l.memoizedProps,x=l.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":p.autoFocus&&x.focus();break e;case"img":p.src?x.src=p.src:p.srcSet&&(x.srcset=p.srcSet)}}catch(w){kr(l,l.return,w)}}function qb(l,u,p){try{var x=l.stateNode;VF(x,l.type,p,u),x[$r]=u}catch(w){kr(l,l.return,w)}}function cS(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&kd(l.type)||l.tag===4}function Vb(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||cS(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&kd(l.type)||l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Gb(l,u,p){var x=l.tag;if(x===5||x===6)l=l.stateNode,u?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(l,u):(u=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,u.appendChild(l),p=p._reactRootContainer,p!=null||u.onclick!==null||(u.onclick=yi));else if(x!==4&&(x===27&&kd(l.type)&&(p=l.stateNode,u=null),l=l.child,l!==null))for(Gb(l,u,p),l=l.sibling;l!==null;)Gb(l,u,p),l=l.sibling}function Ng(l,u,p){var x=l.tag;if(x===5||x===6)l=l.stateNode,u?p.insertBefore(l,u):p.appendChild(l);else if(x!==4&&(x===27&&kd(l.type)&&(p=l.stateNode),l=l.child,l!==null))for(Ng(l,u,p),l=l.sibling;l!==null;)Ng(l,u,p),l=l.sibling}function uS(l){var u=l.stateNode,p=l.memoizedProps;try{for(var x=l.type,w=u.attributes;w.length;)u.removeAttributeNode(w[0]);Fs(u,x,p),u[vr]=l,u[$r]=p}catch(k){kr(l,l.return,k)}}var xu=!1,Wa=!1,$b=!1,dS=typeof WeakSet=="function"?WeakSet:Set,ks=null;function EF(l,u){if(l=l.containerInfo,fy=Qg,l=au(l),hl(l)){if("selectionStart"in l)var p={start:l.selectionStart,end:l.selectionEnd};else e:{p=(p=l.ownerDocument)&&p.defaultView||window;var x=p.getSelection&&p.getSelection();if(x&&x.rangeCount!==0){p=x.anchorNode;var w=x.anchorOffset,k=x.focusNode;x=x.focusOffset;try{p.nodeType,k.nodeType}catch{p=null;break e}var F=0,ie=-1,Ce=-1,Ve=0,Ze=0,at=l,Ge=null;t:for(;;){for(var $e;at!==p||w!==0&&at.nodeType!==3||(ie=F+w),at!==k||x!==0&&at.nodeType!==3||(Ce=F+x),at.nodeType===3&&(F+=at.nodeValue.length),($e=at.firstChild)!==null;)Ge=at,at=$e;for(;;){if(at===l)break t;if(Ge===p&&++Ve===w&&(ie=F),Ge===k&&++Ze===x&&(Ce=F),($e=at.nextSibling)!==null)break;at=Ge,Ge=at.parentNode}at=$e}p=ie===-1||Ce===-1?null:{start:ie,end:Ce}}else p=null}p=p||{start:0,end:0}}else p=null;for(py={focusedElem:l,selectionRange:p},Qg=!1,ks=u;ks!==null;)if(u=ks,l=u.child,(u.subtreeFlags&1028)!==0&&l!==null)l.return=u,ks=l;else for(;ks!==null;){switch(u=ks,k=u.alternate,l=u.flags,u.tag){case 0:if((l&4)!==0&&(l=u.updateQueue,l=l!==null?l.events:null,l!==null))for(p=0;p<l.length;p++)w=l[p],w.ref.impl=w.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&k!==null){l=void 0,p=u,w=k.memoizedProps,k=k.memoizedState,x=p.stateNode;try{var zt=B0(p.type,w);l=x.getSnapshotBeforeUpdate(zt,k),x.__reactInternalSnapshotBeforeUpdate=l}catch(fn){kr(p,p.return,fn)}}break;case 3:if((l&1024)!==0){if(l=u.stateNode.containerInfo,p=l.nodeType,p===9)xy(l);else if(p===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":xy(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(r(163))}if(l=u.sibling,l!==null){l.return=u.return,ks=l;break}ks=u.return}}function hS(l,u,p){var x=p.flags;switch(p.tag){case 0:case 11:case 15:yu(l,p),x&4&&rm(5,p);break;case 1:if(yu(l,p),x&4)if(l=p.stateNode,u===null)try{l.componentDidMount()}catch(F){kr(p,p.return,F)}else{var w=B0(p.type,u.memoizedProps);u=u.memoizedState;try{l.componentDidUpdate(w,u,l.__reactInternalSnapshotBeforeUpdate)}catch(F){kr(p,p.return,F)}}x&64&&iS(p),x&512&&am(p,p.return);break;case 3:if(yu(l,p),x&64&&(l=p.updateQueue,l!==null)){if(u=null,p.child!==null)switch(p.child.tag){case 27:case 5:u=p.child.stateNode;break;case 1:u=p.child.stateNode}try{wa(l,u)}catch(F){kr(p,p.return,F)}}break;case 27:u===null&&x&4&&uS(p);case 26:case 5:yu(l,p),u===null&&x&4&&lS(p),x&512&&am(p,p.return);break;case 12:yu(l,p);break;case 31:yu(l,p),x&4&&mS(l,p);break;case 13:yu(l,p),x&4&&gS(l,p),x&64&&(l=p.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(p=RF.bind(null,p),JF(l,p))));break;case 22:if(x=p.memoizedState!==null||xu,!x){u=u!==null&&u.memoizedState!==null||Wa,w=xu;var k=Wa;xu=x,(Wa=u)&&!k?vu(l,p,(p.subtreeFlags&8772)!==0):yu(l,p),xu=w,Wa=k}break;case 30:break;default:yu(l,p)}}function fS(l){var u=l.alternate;u!==null&&(l.alternate=null,fS(u)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(u=l.stateNode,u!==null&&Bl(u)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var ia=null,Ri=!1;function bu(l,u,p){for(p=p.child;p!==null;)pS(l,u,p),p=p.sibling}function pS(l,u,p){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(hn,p)}catch{}switch(p.tag){case 26:Wa||lc(p,u),bu(l,u,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:Wa||lc(p,u);var x=ia,w=Ri;kd(p.type)&&(ia=p.stateNode,Ri=!1),bu(l,u,p),fm(p.stateNode),ia=x,Ri=w;break;case 5:Wa||lc(p,u);case 6:if(x=ia,w=Ri,ia=null,bu(l,u,p),ia=x,Ri=w,ia!==null)if(Ri)try{(ia.nodeType===9?ia.body:ia.nodeName==="HTML"?ia.ownerDocument.body:ia).removeChild(p.stateNode)}catch(k){kr(p,u,k)}else try{ia.removeChild(p.stateNode)}catch(k){kr(p,u,k)}break;case 18:ia!==null&&(Ri?(l=ia,iE(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,p.stateNode),bf(l)):iE(ia,p.stateNode));break;case 4:x=ia,w=Ri,ia=p.stateNode.containerInfo,Ri=!0,bu(l,u,p),ia=x,Ri=w;break;case 0:case 11:case 14:case 15:xd(2,p,u),Wa||xd(4,p,u),bu(l,u,p);break;case 1:Wa||(lc(p,u),x=p.stateNode,typeof x.componentWillUnmount=="function"&&oS(p,u,x)),bu(l,u,p);break;case 21:bu(l,u,p);break;case 22:Wa=(x=Wa)||p.memoizedState!==null,bu(l,u,p),Wa=x;break;default:bu(l,u,p)}}function mS(l,u){if(u.memoizedState===null&&(l=u.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{bf(l)}catch(p){kr(u,u.return,p)}}}function gS(l,u){if(u.memoizedState===null&&(l=u.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{bf(l)}catch(p){kr(u,u.return,p)}}function kF(l){switch(l.tag){case 31:case 13:case 19:var u=l.stateNode;return u===null&&(u=l.stateNode=new dS),u;case 22:return l=l.stateNode,u=l._retryCache,u===null&&(u=l._retryCache=new dS),u;default:throw Error(r(435,l.tag))}}function Ag(l,u){var p=kF(l);u.forEach(function(x){if(!p.has(x)){p.add(x);var w=OF.bind(null,l,x);x.then(w,w)}})}function Oi(l,u){var p=u.deletions;if(p!==null)for(var x=0;x<p.length;x++){var w=p[x],k=l,F=u,ie=F;e:for(;ie!==null;){switch(ie.tag){case 27:if(kd(ie.type)){ia=ie.stateNode,Ri=!1;break e}break;case 5:ia=ie.stateNode,Ri=!1;break e;case 3:case 4:ia=ie.stateNode.containerInfo,Ri=!0;break e}ie=ie.return}if(ia===null)throw Error(r(160));pS(k,F,w),ia=null,Ri=!1,k=w.alternate,k!==null&&(k.return=null),w.return=null}if(u.subtreeFlags&13886)for(u=u.child;u!==null;)xS(u,l),u=u.sibling}var yl=null;function xS(l,u){var p=l.alternate,x=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:Oi(u,l),Pi(l),x&4&&(xd(3,l,l.return),rm(3,l),xd(5,l,l.return));break;case 1:Oi(u,l),Pi(l),x&512&&(Wa||p===null||lc(p,p.return)),x&64&&xu&&(l=l.updateQueue,l!==null&&(x=l.callbacks,x!==null&&(p=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=p===null?x:p.concat(x))));break;case 26:var w=yl;if(Oi(u,l),Pi(l),x&512&&(Wa||p===null||lc(p,p.return)),x&4){var k=p!==null?p.memoizedState:null;if(x=l.memoizedState,p===null)if(x===null)if(l.stateNode===null){e:{x=l.type,p=l.memoizedProps,w=w.ownerDocument||w;t:switch(x){case"title":k=w.getElementsByTagName("title")[0],(!k||k[Yi]||k[vr]||k.namespaceURI==="http://www.w3.org/2000/svg"||k.hasAttribute("itemprop"))&&(k=w.createElement(x),w.head.insertBefore(k,w.querySelector("head > title"))),Fs(k,x,p),k[vr]=l,da(k),x=k;break e;case"link":var F=xE("link","href",w).get(x+(p.href||""));if(F){for(var ie=0;ie<F.length;ie++)if(k=F[ie],k.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&k.getAttribute("rel")===(p.rel==null?null:p.rel)&&k.getAttribute("title")===(p.title==null?null:p.title)&&k.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){F.splice(ie,1);break t}}k=w.createElement(x),Fs(k,x,p),w.head.appendChild(k);break;case"meta":if(F=xE("meta","content",w).get(x+(p.content||""))){for(ie=0;ie<F.length;ie++)if(k=F[ie],k.getAttribute("content")===(p.content==null?null:""+p.content)&&k.getAttribute("name")===(p.name==null?null:p.name)&&k.getAttribute("property")===(p.property==null?null:p.property)&&k.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&k.getAttribute("charset")===(p.charSet==null?null:p.charSet)){F.splice(ie,1);break t}}k=w.createElement(x),Fs(k,x,p),w.head.appendChild(k);break;default:throw Error(r(468,x))}k[vr]=l,da(k),x=k}l.stateNode=x}else bE(w,l.type,l.stateNode);else l.stateNode=gE(w,x,l.memoizedProps);else k!==x?(k===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):k.count--,x===null?bE(w,l.type,l.stateNode):gE(w,x,l.memoizedProps)):x===null&&l.stateNode!==null&&qb(l,l.memoizedProps,p.memoizedProps)}break;case 27:Oi(u,l),Pi(l),x&512&&(Wa||p===null||lc(p,p.return)),p!==null&&x&4&&qb(l,l.memoizedProps,p.memoizedProps);break;case 5:if(Oi(u,l),Pi(l),x&512&&(Wa||p===null||lc(p,p.return)),l.flags&32){w=l.stateNode;try{nl(w,"")}catch(zt){kr(l,l.return,zt)}}x&4&&l.stateNode!=null&&(w=l.memoizedProps,qb(l,w,p!==null?p.memoizedProps:w)),x&1024&&($b=!0);break;case 6:if(Oi(u,l),Pi(l),x&4){if(l.stateNode===null)throw Error(r(162));x=l.memoizedProps,p=l.stateNode;try{p.nodeValue=x}catch(zt){kr(l,l.return,zt)}}break;case 3:if(Gg=null,w=yl,yl=qg(u.containerInfo),Oi(u,l),yl=w,Pi(l),x&4&&p!==null&&p.memoizedState.isDehydrated)try{bf(u.containerInfo)}catch(zt){kr(l,l.return,zt)}$b&&($b=!1,bS(l));break;case 4:x=yl,yl=qg(l.stateNode.containerInfo),Oi(u,l),Pi(l),yl=x;break;case 12:Oi(u,l),Pi(l);break;case 31:Oi(u,l),Pi(l),x&4&&(x=l.updateQueue,x!==null&&(l.updateQueue=null,Ag(l,x)));break;case 13:Oi(u,l),Pi(l),l.child.flags&8192&&l.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(Mg=mn()),x&4&&(x=l.updateQueue,x!==null&&(l.updateQueue=null,Ag(l,x)));break;case 22:w=l.memoizedState!==null;var Ce=p!==null&&p.memoizedState!==null,Ve=xu,Ze=Wa;if(xu=Ve||w,Wa=Ze||Ce,Oi(u,l),Wa=Ze,xu=Ve,Pi(l),x&8192)e:for(u=l.stateNode,u._visibility=w?u._visibility&-2:u._visibility|1,w&&(p===null||Ce||xu||Wa||F0(l)),p=null,u=l;;){if(u.tag===5||u.tag===26){if(p===null){Ce=p=u;try{if(k=Ce.stateNode,w)F=k.style,typeof F.setProperty=="function"?F.setProperty("display","none","important"):F.display="none";else{ie=Ce.stateNode;var at=Ce.memoizedProps.style,Ge=at!=null&&at.hasOwnProperty("display")?at.display:null;ie.style.display=Ge==null||typeof Ge=="boolean"?"":(""+Ge).trim()}}catch(zt){kr(Ce,Ce.return,zt)}}}else if(u.tag===6){if(p===null){Ce=u;try{Ce.stateNode.nodeValue=w?"":Ce.memoizedProps}catch(zt){kr(Ce,Ce.return,zt)}}}else if(u.tag===18){if(p===null){Ce=u;try{var $e=Ce.stateNode;w?oE($e,!0):oE(Ce.stateNode,!1)}catch(zt){kr(Ce,Ce.return,zt)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===l)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break e;for(;u.sibling===null;){if(u.return===null||u.return===l)break e;p===u&&(p=null),u=u.return}p===u&&(p=null),u.sibling.return=u.return,u=u.sibling}x&4&&(x=l.updateQueue,x!==null&&(p=x.retryQueue,p!==null&&(x.retryQueue=null,Ag(l,p))));break;case 19:Oi(u,l),Pi(l),x&4&&(x=l.updateQueue,x!==null&&(l.updateQueue=null,Ag(l,x)));break;case 30:break;case 21:break;default:Oi(u,l),Pi(l)}}function Pi(l){var u=l.flags;if(u&2){try{for(var p,x=l.return;x!==null;){if(cS(x)){p=x;break}x=x.return}if(p==null)throw Error(r(160));switch(p.tag){case 27:var w=p.stateNode,k=Vb(l);Ng(l,k,w);break;case 5:var F=p.stateNode;p.flags&32&&(nl(F,""),p.flags&=-33);var ie=Vb(l);Ng(l,ie,F);break;case 3:case 4:var Ce=p.stateNode.containerInfo,Ve=Vb(l);Gb(l,Ve,Ce);break;default:throw Error(r(161))}}catch(Ze){kr(l,l.return,Ze)}l.flags&=-3}u&4096&&(l.flags&=-4097)}function bS(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var u=l;bS(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),l=l.sibling}}function yu(l,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)hS(l,u.alternate,u),u=u.sibling}function F0(l){for(l=l.child;l!==null;){var u=l;switch(u.tag){case 0:case 11:case 14:case 15:xd(4,u,u.return),F0(u);break;case 1:lc(u,u.return);var p=u.stateNode;typeof p.componentWillUnmount=="function"&&oS(u,u.return,p),F0(u);break;case 27:fm(u.stateNode);case 26:case 5:lc(u,u.return),F0(u);break;case 22:u.memoizedState===null&&F0(u);break;case 30:F0(u);break;default:F0(u)}l=l.sibling}}function vu(l,u,p){for(p=p&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var x=u.alternate,w=l,k=u,F=k.flags;switch(k.tag){case 0:case 11:case 15:vu(w,k,p),rm(4,k);break;case 1:if(vu(w,k,p),x=k,w=x.stateNode,typeof w.componentDidMount=="function")try{w.componentDidMount()}catch(Ve){kr(x,x.return,Ve)}if(x=k,w=x.updateQueue,w!==null){var ie=x.stateNode;try{var Ce=w.shared.hiddenCallbacks;if(Ce!==null)for(w.shared.hiddenCallbacks=null,w=0;w<Ce.length;w++)Ss(Ce[w],ie)}catch(Ve){kr(x,x.return,Ve)}}p&&F&64&&iS(k),am(k,k.return);break;case 27:uS(k);case 26:case 5:vu(w,k,p),p&&x===null&&F&4&&lS(k),am(k,k.return);break;case 12:vu(w,k,p);break;case 31:vu(w,k,p),p&&F&4&&mS(w,k);break;case 13:vu(w,k,p),p&&F&4&&gS(w,k);break;case 22:k.memoizedState===null&&vu(w,k,p),am(k,k.return);break;case 30:break;default:vu(w,k,p)}u=u.sibling}}function Wb(l,u){var p=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),l=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(l=u.memoizedState.cachePool.pool),l!==p&&(l!=null&&l.refCount++,p!=null&&P0(p))}function Yb(l,u){l=null,u.alternate!==null&&(l=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==l&&(u.refCount++,l!=null&&P0(l))}function vl(l,u,p,x){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)yS(l,u,p,x),u=u.sibling}function yS(l,u,p,x){var w=u.flags;switch(u.tag){case 0:case 11:case 15:vl(l,u,p,x),w&2048&&rm(9,u);break;case 1:vl(l,u,p,x);break;case 3:vl(l,u,p,x),w&2048&&(l=null,u.alternate!==null&&(l=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==l&&(u.refCount++,l!=null&&P0(l)));break;case 12:if(w&2048){vl(l,u,p,x),l=u.stateNode;try{var k=u.memoizedProps,F=k.id,ie=k.onPostCommit;typeof ie=="function"&&ie(F,u.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(Ce){kr(u,u.return,Ce)}}else vl(l,u,p,x);break;case 31:vl(l,u,p,x);break;case 13:vl(l,u,p,x);break;case 23:break;case 22:k=u.stateNode,F=u.alternate,u.memoizedState!==null?k._visibility&2?vl(l,u,p,x):sm(l,u):k._visibility&2?vl(l,u,p,x):(k._visibility|=2,of(l,u,p,x,(u.subtreeFlags&10256)!==0||!1)),w&2048&&Wb(F,u);break;case 24:vl(l,u,p,x),w&2048&&Yb(u.alternate,u);break;default:vl(l,u,p,x)}}function of(l,u,p,x,w){for(w=w&&((u.subtreeFlags&10256)!==0||!1),u=u.child;u!==null;){var k=l,F=u,ie=p,Ce=x,Ve=F.flags;switch(F.tag){case 0:case 11:case 15:of(k,F,ie,Ce,w),rm(8,F);break;case 23:break;case 22:var Ze=F.stateNode;F.memoizedState!==null?Ze._visibility&2?of(k,F,ie,Ce,w):sm(k,F):(Ze._visibility|=2,of(k,F,ie,Ce,w)),w&&Ve&2048&&Wb(F.alternate,F);break;case 24:of(k,F,ie,Ce,w),w&&Ve&2048&&Yb(F.alternate,F);break;default:of(k,F,ie,Ce,w)}u=u.sibling}}function sm(l,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var p=l,x=u,w=x.flags;switch(x.tag){case 22:sm(p,x),w&2048&&Wb(x.alternate,x);break;case 24:sm(p,x),w&2048&&Yb(x.alternate,x);break;default:sm(p,x)}u=u.sibling}}var im=8192;function lf(l,u,p){if(l.subtreeFlags&im)for(l=l.child;l!==null;)vS(l,u,p),l=l.sibling}function vS(l,u,p){switch(l.tag){case 26:lf(l,u,p),l.flags&im&&l.memoizedState!==null&&uz(p,yl,l.memoizedState,l.memoizedProps);break;case 5:lf(l,u,p);break;case 3:case 4:var x=yl;yl=qg(l.stateNode.containerInfo),lf(l,u,p),yl=x;break;case 22:l.memoizedState===null&&(x=l.alternate,x!==null&&x.memoizedState!==null?(x=im,im=16777216,lf(l,u,p),im=x):lf(l,u,p));break;default:lf(l,u,p)}}function wS(l){var u=l.alternate;if(u!==null&&(l=u.child,l!==null)){u.child=null;do u=l.sibling,l.sibling=null,l=u;while(l!==null)}}function om(l){var u=l.deletions;if((l.flags&16)!==0){if(u!==null)for(var p=0;p<u.length;p++){var x=u[p];ks=x,ES(x,l)}wS(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)SS(l),l=l.sibling}function SS(l){switch(l.tag){case 0:case 11:case 15:om(l),l.flags&2048&&xd(9,l,l.return);break;case 3:om(l);break;case 12:om(l);break;case 22:var u=l.stateNode;l.memoizedState!==null&&u._visibility&2&&(l.return===null||l.return.tag!==13)?(u._visibility&=-3,Lg(l)):om(l);break;default:om(l)}}function Lg(l){var u=l.deletions;if((l.flags&16)!==0){if(u!==null)for(var p=0;p<u.length;p++){var x=u[p];ks=x,ES(x,l)}wS(l)}for(l=l.child;l!==null;){switch(u=l,u.tag){case 0:case 11:case 15:xd(8,u,u.return),Lg(u);break;case 22:p=u.stateNode,p._visibility&2&&(p._visibility&=-3,Lg(u));break;default:Lg(u)}l=l.sibling}}function ES(l,u){for(;ks!==null;){var p=ks;switch(p.tag){case 0:case 11:case 15:xd(8,p,u);break;case 23:case 22:if(p.memoizedState!==null&&p.memoizedState.cachePool!==null){var x=p.memoizedState.cachePool.pool;x!=null&&x.refCount++}break;
vendor: 22,976 bytes, lines 49-50
49case 24:P0(p.memoizedState.cache)}if(x=p.child,x!==null)x.return=p,ks=x;else e:for(p=l;ks!==null;){x=ks;var w=x.sibling,k=x.return;if(fS(x),x===p){ks=null;break e}if(w!==null){w.return=k,ks=w;break e}ks=k}}}var _F={getCacheForType:function(l){var u=is(ha),p=u.data.get(l);return p===void 0&&(p=l(),u.data.set(l,p)),p},cacheSignal:function(){return is(ha).controller.signal}},TF=typeof WeakMap=="function"?WeakMap:Map,fr=0,Br=null,qn=null,$n=0,Er=0,lo=null,bd=!1,cf=!1,Qb=!1,wu=0,_a=0,yd=0,z0=0,Xb=0,co=0,uf=0,lm=null,ji=null,Kb=!1,Mg=0,kS=0,Rg=1/0,Og=null,vd=null,ls=0,wd=null,df=null,Su=0,Jb=0,Zb=null,_S=null,cm=0,ey=null;function uo(){return(fr&2)!==0&&$n!==0?$n&-$n:ee.T!==null?iy():Ra()}function TS(){if(co===0)if(($n&536870912)===0||Un){var l=ur;ur<<=1,(ur&3932160)===0&&(ur=262144),co=l}else co=536870912;return l=Kr.current,l!==null&&(l.flags|=32),co}function Di(l,u,p){(l===Br&&(Er===2||Er===9)||l.cancelPendingCommit!==null)&&(hf(l,0),Sd(l,$n,co,!1)),Nt(l,p),((fr&2)===0||l!==Br)&&(l===Br&&((fr&2)===0&&(z0|=p),_a===4&&Sd(l,$n,co,!1)),cc(l))}function CS(l,u,p){if((fr&6)!==0)throw Error(r(327));var x=!p&&(u&127)===0&&(u&l.expiredLanes)===0||ar(l,u),w=x?AF(l,u):ny(l,u,!0),k=x;do{if(w===0){cf&&!x&&Sd(l,u,0,!1);break}else{if(p=l.current.alternate,k&&!CF(p)){w=ny(l,u,!1),k=!1;continue}if(w===2){if(k=u,l.errorRecoveryDisabledLanes&k)var F=0;else F=l.pendingLanes&-536870913,F=F!==0?F:F&536870912?536870912:0;if(F!==0){u=F;e:{var ie=l;w=lm;var Ce=ie.current.memoizedState.isDehydrated;if(Ce&&(hf(ie,F).flags|=256),F=ny(ie,F,!1),F!==2){if(Qb&&!Ce){ie.errorRecoveryDisabledLanes|=k,z0|=k,w=4;break e}k=ji,ji=w,k!==null&&(ji===null?ji=k:ji.push.apply(ji,k))}w=F}if(k=!1,w!==2)continue}}if(w===1){hf(l,0),Sd(l,u,0,!0);break}e:{switch(x=l,k=w,k){case 0:case 1:throw Error(r(345));case 4:if((u&4194048)!==u)break;case 6:Sd(x,u,co,!bd);break e;case 2:ji=null;break;case 3:case 5:break;default:throw Error(r(329))}if((u&62914560)===u&&(w=Mg+300-mn(),10<w)){if(Sd(x,u,co,!bd),Tt(x,0,!0)!==0)break e;Su=u,x.timeoutHandle=aE(NS.bind(null,x,p,ji,Og,Kb,u,co,z0,uf,bd,k,"Throttled",-0,0),w);break e}NS(x,p,ji,Og,Kb,u,co,z0,uf,bd,k,null,-0,0)}}break}while(!0);cc(l)}function NS(l,u,p,x,w,k,F,ie,Ce,Ve,Ze,at,Ge,$e){if(l.timeoutHandle=-1,at=u.subtreeFlags,at&8192||(at&16785408)===16785408){at={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yi},vS(u,k,at);var zt=(k&62914560)===k?Mg-mn():(k&4194048)===k?kS-mn():0;if(zt=dz(at,zt),zt!==null){Su=k,l.cancelPendingCommit=zt(DS.bind(null,l,u,k,p,x,w,F,ie,Ce,Ze,at,null,Ge,$e)),Sd(l,k,F,!Ve);return}}DS(l,u,k,p,x,w,F,ie,Ce)}function CF(l){for(var u=l;;){var p=u.tag;if((p===0||p===11||p===15)&&u.flags&16384&&(p=u.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var x=0;x<p.length;x++){var w=p[x],k=w.getSnapshot;w=w.value;try{if(!ta(k(),w))return!1}catch{return!1}}if(p=u.child,u.subtreeFlags&16384&&p!==null)p.return=u,u=p;else{if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function Sd(l,u,p,x){u&=~Xb,u&=~z0,l.suspendedLanes|=u,l.pingedLanes&=~u,x&&(l.warmLanes|=u),x=l.expirationTimes;for(var w=u;0<w;){var k=31-an(w),F=1<<k;x[k]=-1,w&=~F}p!==0&&Ms(l,p,u)}function Pg(){return(fr&6)===0?(um(0),!1):!0}function ty(){if(qn!==null){if(Er===0)var l=qn.return;else l=qn,Ro=ec=null,Zh(l),it=null,qt=0,l=qn;for(;l!==null;)sS(l.alternate,l),l=l.return;qn=null}}function hf(l,u){var p=l.timeoutHandle;p!==-1&&(l.timeoutHandle=-1,WF(p)),p=l.cancelPendingCommit,p!==null&&(l.cancelPendingCommit=null,p()),Su=0,ty(),Br=l,qn=p=ki(l.current,null),$n=u,Er=0,lo=null,bd=!1,cf=ar(l,u),Qb=!1,uf=co=Xb=z0=yd=_a=0,ji=lm=null,Kb=!1,(u&8)!==0&&(u|=u&32);var x=l.entangledLanes;if(x!==0)for(l=l.entanglements,x&=u;0<x;){var w=31-an(x),k=1<<w;u|=l[w],x&=~k}return wu=u,N0(),p}function AS(l,u){nn=null,ee.H=em,u===Le||u===ye?(u=et(),Er=3):u===He?(u=et(),Er=4):Er=u===Ob?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,lo=u,qn===null&&(_a=1,Eg(l,_i(u,l.current)))}function LS(){var l=Kr.current;return l===null?!0:($n&4194048)===$n?Jn===null:($n&62914560)===$n||($n&536870912)!==0?l===Jn:!1}function MS(){var l=ee.H;return ee.H=em,l===null?em:l}function RS(){var l=ee.A;return ee.A=_F,l}function jg(){_a=4,bd||($n&4194048)!==$n&&Kr.current!==null||(cf=!0),(yd&134217727)===0&&(z0&134217727)===0||Br===null||Sd(Br,$n,co,!1)}function ny(l,u,p){var x=fr;fr|=2;var w=MS(),k=RS();(Br!==l||$n!==u)&&(Og=null,hf(l,u)),u=!1;var F=_a;e:do try{if(Er!==0&&qn!==null){var ie=qn,Ce=lo;switch(Er){case 8:ty(),F=6;break e;case 3:case 2:case 9:case 6:Kr.current===null&&(u=!0);var Ve=Er;if(Er=0,lo=null,ff(l,ie,Ce,Ve),p&&cf){F=0;break e}break;default:Ve=Er,Er=0,lo=null,ff(l,ie,Ce,Ve)}}NF(),F=_a;break}catch(Ze){AS(l,Ze)}while(!0);return u&&l.shellSuspendCounter++,Ro=ec=null,fr=x,ee.H=w,ee.A=k,qn===null&&(Br=null,$n=0,N0()),F}function NF(){for(;qn!==null;)OS(qn)}function AF(l,u){var p=fr;fr|=2;var x=MS(),w=RS();Br!==l||$n!==u?(Og=null,Rg=mn()+500,hf(l,u)):cf=ar(l,u);e:do try{if(Er!==0&&qn!==null){u=qn;var k=lo;t:switch(Er){case 1:Er=0,lo=null,ff(l,u,k,1);break;case 2:case 9:if(De(k)){Er=0,lo=null,PS(u);break}u=function(){Er!==2&&Er!==9||Br!==l||(Er=7),cc(l)},k.then(u,u);break e;case 3:Er=7;break e;case 4:Er=5;break e;case 7:De(k)?(Er=0,lo=null,PS(u)):(Er=0,lo=null,ff(l,u,k,7));break;case 5:var F=null;switch(qn.tag){case 26:F=qn.memoizedState;case 5:case 27:var ie=qn;if(F?yE(F):ie.stateNode.complete){Er=0,lo=null;var Ce=ie.sibling;if(Ce!==null)qn=Ce;else{var Ve=ie.return;Ve!==null?(qn=Ve,Dg(Ve)):qn=null}break t}}Er=0,lo=null,ff(l,u,k,5);break;case 6:Er=0,lo=null,ff(l,u,k,6);break;case 8:ty(),_a=6;break e;default:throw Error(r(462))}}LF();break}catch(Ze){AS(l,Ze)}while(!0);return Ro=ec=null,ee.H=x,ee.A=w,fr=p,qn!==null?0:(Br=null,$n=0,N0(),_a)}function LF(){for(;qn!==null&&!Rt();)OS(qn)}function OS(l){var u=rS(l.alternate,l,wu);l.memoizedProps=l.pendingProps,u===null?Dg(l):qn=u}function PS(l){var u=l,p=u.alternate;switch(u.tag){case 15:case 0:u=K7(p,u,u.pendingProps,u.type,void 0,$n);break;case 11:u=K7(p,u,u.pendingProps,u.type.render,u.ref,$n);break;case 5:Zh(u);default:sS(p,u),u=qn=M0(u,wu),u=rS(p,u,wu)}l.memoizedProps=l.pendingProps,u===null?Dg(l):qn=u}function ff(l,u,p,x){Ro=ec=null,Zh(u),it=null,qt=0;var w=u.return;try{if(bF(l,w,u,p,$n)){_a=1,Eg(l,_i(p,l.current)),qn=null;return}}catch(k){if(w!==null)throw qn=w,k;_a=1,Eg(l,_i(p,l.current)),qn=null;return}u.flags&32768?(Un||x===1?l=!0:cf||($n&536870912)!==0?l=!1:(bd=l=!0,(x===2||x===9||x===3||x===6)&&(x=Kr.current,x!==null&&x.tag===13&&(x.flags|=16384))),jS(u,l)):Dg(u)}function Dg(l){var u=l;do{if((u.flags&32768)!==0){jS(u,bd);return}l=u.return;var p=wF(u.alternate,u,wu);if(p!==null){qn=p;return}if(u=u.sibling,u!==null){qn=u;return}qn=u=l}while(u!==null);_a===0&&(_a=5)}function jS(l,u){do{var p=SF(l.alternate,l);if(p!==null){p.flags&=32767,qn=p;return}if(p=l.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!u&&(l=l.sibling,l!==null)){qn=l;return}qn=l=p}while(l!==null);_a=6,qn=null}function DS(l,u,p,x,w,k,F,ie,Ce){l.cancelPendingCommit=null;do Ig();while(ls!==0);if((fr&6)!==0)throw Error(r(327));if(u!==null){if(u===l.current)throw Error(r(177));if(k=u.lanes|u.childLanes,k|=Fh,ea(l,p,k,F,ie,Ce),l===Br&&(qn=Br=null,$n=0),df=u,wd=l,Su=p,Jb=k,Zb=w,_S=x,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,PF(bt,function(){return HS(),null})):(l.callbackNode=null,l.callbackPriority=0),x=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||x){x=ee.T,ee.T=null,w=ce.p,ce.p=2,F=fr,fr|=4;try{EF(l,u,p)}finally{fr=F,ce.p=w,ee.T=x}}ls=1,IS(),BS(),FS()}}function IS(){if(ls===1){ls=0;var l=wd,u=df,p=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||p){p=ee.T,ee.T=null;var x=ce.p;ce.p=2;var w=fr;fr|=4;try{xS(u,l);var k=py,F=au(l.containerInfo),ie=k.focusedElem,Ce=k.selectionRange;if(F!==ie&&ie&&ie.ownerDocument&&sd(ie.ownerDocument.documentElement,ie)){if(Ce!==null&&hl(ie)){var Ve=Ce.start,Ze=Ce.end;if(Ze===void 0&&(Ze=Ve),"selectionStart"in ie)ie.selectionStart=Ve,ie.selectionEnd=Math.min(Ze,ie.value.length);else{var at=ie.ownerDocument||document,Ge=at&&at.defaultView||window;if(Ge.getSelection){var $e=Ge.getSelection(),zt=ie.textContent.length,fn=Math.min(Ce.start,zt),Lr=Ce.end===void 0?fn:Math.min(Ce.end,zt);!$e.extend&&fn>Lr&&(F=Lr,Lr=fn,fn=F);var je=ad(ie,fn),Me=ad(ie,Lr);if(je&&Me&&($e.rangeCount!==1||$e.anchorNode!==je.node||$e.anchorOffset!==je.offset||$e.focusNode!==Me.node||$e.focusOffset!==Me.offset)){var Ue=at.createRange();Ue.setStart(je.node,je.offset),$e.removeAllRanges(),fn>Lr?($e.addRange(Ue),$e.extend(Me.node,Me.offset)):(Ue.setEnd(Me.node,Me.offset),$e.addRange(Ue))}}}}for(at=[],$e=ie;$e=$e.parentNode;)$e.nodeType===1&&at.push({element:$e,left:$e.scrollLeft,top:$e.scrollTop});for(typeof ie.focus=="function"&&ie.focus(),ie=0;ie<at.length;ie++){var rt=at[ie];rt.element.scrollLeft=rt.left,rt.element.scrollTop=rt.top}}Qg=!!fy,py=fy=null}finally{fr=w,ce.p=x,ee.T=p}}l.current=u,ls=2}}function BS(){if(ls===2){ls=0;var l=wd,u=df,p=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||p){p=ee.T,ee.T=null;var x=ce.p;ce.p=2;var w=fr;fr|=4;try{hS(l,u.alternate,u)}finally{fr=w,ce.p=x,ee.T=p}}ls=3}}function FS(){if(ls===4||ls===3){ls=0,Bt();var l=wd,u=df,p=Su,x=_S;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?ls=5:(ls=0,df=wd=null,zS(l,l.pendingLanes));var w=l.pendingLanes;if(w===0&&(vd=null),pr(p),u=u.stateNode,Yt&&typeof Yt.onCommitFiberRoot=="function")try{Yt.onCommitFiberRoot(hn,u,void 0,(u.current.flags&128)===128)}catch{}if(x!==null){u=ee.T,w=ce.p,ce.p=2,ee.T=null;try{for(var k=l.onRecoverableError,F=0;F<x.length;F++){var ie=x[F];k(ie.value,{componentStack:ie.stack})}}finally{ee.T=u,ce.p=w}}(Su&3)!==0&&Ig(),cc(l),w=l.pendingLanes,(p&261930)!==0&&(w&42)!==0?l===ey?cm++:(cm=0,ey=l):cm=0,um(0)}}function zS(l,u){(l.pooledCacheLanes&=u)===0&&(u=l.pooledCache,u!=null&&(l.pooledCache=null,P0(u)))}function Ig(){return IS(),BS(),FS(),HS()}function HS(){if(ls!==5)return!1;var l=wd,u=Jb;Jb=0;var p=pr(Su),x=ee.T,w=ce.p;try{ce.p=32>p?32:p,ee.T=null,p=Zb,Zb=null;var k=wd,F=Su;if(ls=0,df=wd=null,Su=0,(fr&6)!==0)throw Error(r(331));var ie=fr;if(fr|=4,SS(k.current),yS(k,k.current,F,p),fr=ie,um(0,!1),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(hn,k)}catch{}return!0}finally{ce.p=w,ee.T=x,zS(l,u)}}function US(l,u,p){u=_i(p,u),u=Rb(l.stateNode,u,2),l=Cn(l,u,2),l!==null&&(Nt(l,2),cc(l))}function kr(l,u,p){if(l.tag===3)US(l,l,p);else for(;u!==null;){if(u.tag===3){US(u,l,p);break}else if(u.tag===1){var x=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(vd===null||!vd.has(x))){l=_i(p,l),p=q7(2),x=Cn(u,p,2),x!==null&&(V7(p,x,u,l),Nt(x,2),cc(x));break}}u=u.return}}function ry(l,u,p){var x=l.pingCache;if(x===null){x=l.pingCache=new TF;var w=new Set;x.set(u,w)}else w=x.get(u),w===void 0&&(w=new Set,x.set(u,w));w.has(p)||(Qb=!0,w.add(p),l=MF.bind(null,l,u,p),u.then(l,l))}function MF(l,u,p){var x=l.pingCache;x!==null&&x.delete(u),l.pingedLanes|=l.suspendedLanes&p,l.warmLanes&=~p,Br===l&&($n&p)===p&&(_a===4||_a===3&&($n&62914560)===$n&&300>mn()-Mg?(fr&2)===0&&hf(l,0):Xb|=p,uf===$n&&(uf=0)),cc(l)}function qS(l,u){u===0&&(u=Ur()),l=fl(l,u),l!==null&&(Nt(l,u),cc(l))}function RF(l){var u=l.memoizedState,p=0;u!==null&&(p=u.retryLane),qS(l,p)}function OF(l,u){var p=0;switch(l.tag){case 31:case 13:var x=l.stateNode,w=l.memoizedState;w!==null&&(p=w.retryLane);break;case 19:x=l.stateNode;break;case 22:x=l.stateNode._retryCache;break;default:throw Error(r(314))}x!==null&&x.delete(u),qS(l,p)}function PF(l,u){return Kt(l,u)}var Bg=null,pf=null,ay=!1,Fg=!1,sy=!1,Ed=0;function cc(l){l!==pf&&l.next===null&&(pf===null?Bg=pf=l:pf=pf.next=l),Fg=!0,ay||(ay=!0,DF())}function um(l,u){if(!sy&&Fg){sy=!0;do for(var p=!1,x=Bg;x!==null;){if(l!==0){var w=x.pendingLanes;if(w===0)var k=0;else{var F=x.suspendedLanes,ie=x.pingedLanes;k=(1<<31-an(42|l)+1)-1,k&=w&~(F&~ie),k=k&201326741?k&201326741|1:k?k|2:0}k!==0&&(p=!0,WS(x,k))}else k=$n,k=Tt(x,x===Br?k:0,x.cancelPendingCommit!==null||x.timeoutHandle!==-1),(k&3)===0||ar(x,k)||(p=!0,WS(x,k));x=x.next}while(p);sy=!1}}function jF(){VS()}function VS(){Fg=ay=!1;var l=0;Ed!==0&&$F()&&(l=Ed);for(var u=mn(),p=null,x=Bg;x!==null;){var w=x.next,k=GS(x,u);k===0?(x.next=null,p===null?Bg=w:p.next=w,w===null&&(pf=p)):(p=x,(l!==0||(k&3)!==0)&&(Fg=!0)),x=w}ls!==0&&ls!==5||um(l),Ed!==0&&(Ed=0)}function GS(l,u){for(var p=l.suspendedLanes,x=l.pingedLanes,w=l.expirationTimes,k=l.pendingLanes&-62914561;0<k;){var F=31-an(k),ie=1<<F,Ce=w[F];Ce===-1?((ie&p)===0||(ie&x)!==0)&&(w[F]=Qn(ie,u)):Ce<=u&&(l.expiredLanes|=ie),k&=~ie}if(u=Br,p=$n,p=Tt(l,l===u?p:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),x=l.callbackNode,p===0||l===u&&(Er===2||Er===9)||l.cancelPendingCommit!==null)return x!==null&&x!==null&&Lt(x),l.callbackNode=null,l.callbackPriority=0;if((p&3)===0||ar(l,p)){if(u=p&-p,u===l.callbackPriority)return u;switch(x!==null&&Lt(x),pr(p)){case 2:case 8:p=nt;break;case 32:p=bt;break;case 268435456:p=Et;break;default:p=bt}return x=$S.bind(null,l),p=Kt(p,x),l.callbackPriority=u,l.callbackNode=p,u}return x!==null&&x!==null&&Lt(x),l.callbackPriority=2,l.callbackNode=null,2}function $S(l,u){if(ls!==0&&ls!==5)return l.callbackNode=null,l.callbackPriority=0,null;var p=l.callbackNode;if(Ig()&&l.callbackNode!==p)return null;var x=$n;return x=Tt(l,l===Br?x:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),x===0?null:(CS(l,x,u),GS(l,mn()),l.callbackNode!=null&&l.callbackNode===p?$S.bind(null,l):null)}function WS(l,u){if(Ig())return null;CS(l,u,!0)}function DF(){YF(function(){(fr&6)!==0?Kt(Be,jF):VS()})}function iy(){if(Ed===0){var l=y;l===0&&(l=pn,pn<<=1,(pn&261888)===0&&(pn=256)),Ed=l}return Ed}function YS(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:eo(""+l)}function QS(l,u){var p=u.ownerDocument.createElement("input");return p.name=u.name,p.value=u.value,l.id&&p.setAttribute("form",l.id),u.parentNode.insertBefore(p,u),l=new FormData(l),p.parentNode.removeChild(p),l}function IF(l,u,p,x,w){if(u==="submit"&&p&&p.stateNode===w){var k=YS((w[$r]||null).action),F=x.submitter;F&&(u=(u=F[$r]||null)?YS(u.formAction):F.getAttribute("formAction"),u!==null&&(k=u,F=null));var ie=new ao("action","action",null,x,w);l.push({event:ie,listeners:[{instance:null,listener:function(){if(x.defaultPrevented){if(Ed!==0){var Ce=F?QS(w,F):new FormData(w);Tb(p,{pending:!0,data:Ce,method:w.method,action:k},null,Ce)}}else typeof k=="function"&&(ie.preventDefault(),Ce=F?QS(w,F):new FormData(w),Tb(p,{pending:!0,data:Ce,method:w.method,action:k},k,Ce))},currentTarget:w}]})}}for(var oy=0;oy<ou.length;oy++){var ly=ou[oy],BF=ly.toLowerCase(),FF=ly[0].toUpperCase()+ly.slice(1);Ei(BF,"on"+FF)}Ei(Mo,"onAnimationEnd"),Ei(id,"onAnimationIteration"),Ei(iu,"onAnimationStart"),Ei("dblclick","onDoubleClick"),Ei("focusin","onFocus"),Ei("focusout","onBlur"),Ei(Bh,"onTransitionRun"),Ei(dg,"onTransitionStart"),Ei(hg,"onTransitionCancel"),Ei(zp,"onTransitionEnd"),el("onMouseEnter",["mouseout","mouseover"]),el("onMouseLeave",["mouseout","mouseover"]),el("onPointerEnter",["pointerout","pointerover"]),el("onPointerLeave",["pointerout","pointerover"]),Ki("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ki("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ki("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ki("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ki("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ki("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dm="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(dm));function XS(l,u){u=(u&4)!==0;for(var p=0;p<l.length;p++){var x=l[p],w=x.event;x=x.listeners;e:{var k=void 0;if(u)for(var F=x.length-1;0<=F;F--){var ie=x[F],Ce=ie.instance,Ve=ie.currentTarget;if(ie=ie.listener,Ce!==k&&w.isPropagationStopped())break e;k=ie,w.currentTarget=Ve;try{k(w)}catch(Ze){C0(Ze)}w.currentTarget=null,k=Ce}else for(F=0;F<x.length;F++){if(ie=x[F],Ce=ie.instance,Ve=ie.currentTarget,ie=ie.listener,Ce!==k&&w.isPropagationStopped())break e;k=ie,w.currentTarget=Ve;try{k(w)}catch(Ze){C0(Ze)}w.currentTarget=null,k=Ce}}}}function Vn(l,u){var p=u[ri];p===void 0&&(p=u[ri]=new Set);var x=l+"__bubble";p.has(x)||(KS(u,l,2,!1),p.add(x))}function cy(l,u,p){var x=0;u&&(x|=4),KS(p,l,x,u)}var zg="_reactListening"+Math.random().toString(36).slice(2);function uy(l){if(!l[zg]){l[zg]=!0,h0.forEach(function(p){p!=="selectionchange"&&(zF.has(p)||cy(p,!1,l),cy(p,!0,l))});var u=l.nodeType===9?l:l.ownerDocument;u===null||u[zg]||(u[zg]=!0,cy("selectionchange",!1,u))}}function KS(l,u,p,x){switch(TE(u)){case 2:var w=pz;break;case 8:w=mz;break;default:w=_y}p=w.bind(null,u,p,l),w=void 0,!no||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(w=!0),x?w!==void 0?l.addEventListener(u,p,{capture:!0,passive:w}):l.addEventListener(u,p,!0):w!==void 0?l.addEventListener(u,p,{passive:w}):l.addEventListener(u,p,!1)}function dy(l,u,p,x,w){var k=x;if((u&1)===0&&(u&2)===0&&x!==null)e:for(;;){if(x===null)return;var F=x.tag;if(F===3||F===4){var ie=x.stateNode.containerInfo;if(ie===w)break;if(F===4)for(F=x.return;F!==null;){var Ce=F.tag;if((Ce===3||Ce===4)&&F.stateNode.containerInfo===w)return;F=F.return}for(;ie!==null;){if(F=Qi(ie),F===null)return;if(Ce=F.tag,Ce===5||Ce===6||Ce===26||Ce===27){x=k=F;continue e}ie=ie.parentNode}}x=x.return}Ph(function(){var Ve=k,Ze=v0(p),at=[];e:{var Ge=Hp.get(l);if(Ge!==void 0){var $e=ao,zt=l;switch(l){case"keypress":if(oi(p)===0)break e;case"keydown":case"keyup":$e=bn;break;case"focusin":zt="focus",$e=nd;break;case"focusout":zt="blur",$e=nd;break;case"beforeblur":case"afterblur":$e=nd;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$e=E0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$e=ll;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$e=wr;break;case Mo:case id:case iu:$e=Qc;break;case zp:$e=Pr;break;case"scroll":case"scrollend":$e=Wc;break;case"wheel":$e=Yr;break;case"copy":case"cut":case"paste":$e=N;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$e=Hn;break;case"toggle":case"beforetoggle":$e=cl}var fn=(u&4)!==0,Lr=!fn&&(l==="scroll"||l==="scrollend"),je=fn?Ge!==null?Ge+"Capture":null:Ge;fn=[];for(var Me=Ve,Ue;Me!==null;){var rt=Me;if(Ue=rt.stateNode,rt=rt.tag,rt!==5&&rt!==26&&rt!==27||Ue===null||je===null||(rt=Gc(Me,je),rt!=null&&fn.push(hm(Me,rt,Ue))),Lr)break;Me=Me.return}0<fn.length&&(Ge=new $e(Ge,zt,null,p,Ze),at.push({event:Ge,listeners:fn}))}}if((u&7)===0){e:{if(Ge=l==="mouseover"||l==="pointerover",$e=l==="mouseout"||l==="pointerout",Ge&&p!==No&&(zt=p.relatedTarget||p.fromElement)&&(Qi(zt)||zt[ps]))break e;if(($e||Ge)&&(Ge=Ze.window===Ze?Ze:(Ge=Ze.ownerDocument)?Ge.defaultView||Ge.parentWindow:window,$e?(zt=p.relatedTarget||p.toElement,$e=Ve,zt=zt?Qi(zt):null,zt!==null&&(Lr=s(zt),fn=zt.tag,zt!==Lr||fn!==5&&fn!==27&&fn!==6)&&(zt=null)):($e=null,zt=Ve),$e!==zt)){if(fn=E0,rt="onMouseLeave",je="onMouseEnter",Me="mouse",(l==="pointerout"||l==="pointerover")&&(fn=Hn,rt="onPointerLeave",je="onPointerEnter",Me="pointer"),Lr=$e==null?Ge:qc($e),Ue=zt==null?Ge:qc(zt),Ge=new fn(rt,Me+"leave",$e,p,Ze),Ge.target=Lr,Ge.relatedTarget=Ue,rt=null,Qi(Ze)===Ve&&(fn=new fn(je,Me+"enter",zt,p,Ze),fn.target=Ue,fn.relatedTarget=Lr,rt=fn),Lr=rt,$e&&zt)t:{for(fn=HF,je=$e,Me=zt,Ue=0,rt=je;rt;rt=fn(rt))Ue++;rt=0;for(var on=Me;on;on=fn(on))rt++;for(;0<Ue-rt;)je=fn(je),Ue--;for(;0<rt-Ue;)Me=fn(Me),rt--;for(;Ue--;){if(je===Me||Me!==null&&je===Me.alternate){fn=je;break t}je=fn(je),Me=fn(Me)}fn=null}else fn=null;$e!==null&&JS(at,Ge,$e,fn,!1),zt!==null&&Lr!==null&&JS(at,Lr,zt,fn,!0)}}e:{if(Ge=Ve?qc(Ve):window,$e=Ge.nodeName&&Ge.nodeName.toLowerCase(),$e==="select"||$e==="input"&&Ge.type==="file")var sr=eu;else if(T0(Ge))if(Wl)sr=ya;else{sr=rd;var Xt=Yl}else $e=Ge.nodeName,!$e||$e.toLowerCase()!=="input"||Ge.type!=="checkbox"&&Ge.type!=="radio"?Ve&&y0(Ve.elementType)&&(sr=eu):sr=ru;if(sr&&(sr=sr(l,Ve))){Jc(at,sr,p,Ze);break e}Xt&&Xt(l,Ge,Ve),l==="focusout"&&Ve&&Ge.type==="number"&&Ve.memoizedProps.value!=null&&b0(Ge,"number",Ge.value)}switch(Xt=Ve?qc(Ve):window,l){case"focusin":(T0(Xt)||Xt.contentEditable==="true")&&(li=Xt,io=Ve,Si=null);break;case"focusout":Si=io=li=null;break;case"mousedown":Xl=!0;break;case"contextmenu":case"mouseup":case"dragend":Xl=!1,ns(at,p,Ze);break;case"selectionchange":if(su)break;case"keydown":case"keyup":ns(at,p,Ze)}var Rn;if(ul)e:{switch(l){case"compositionstart":var Wn="onCompositionStart";break e;case"compositionend":Wn="onCompositionEnd";break e;case"compositionupdate":Wn="onCompositionUpdate";break e}Wn=void 0}else wi?es(l,p)&&(Wn="onCompositionEnd"):l==="keydown"&&p.keyCode===229&&(Wn="onCompositionStart");Wn&&(ql&&p.locale!=="ko"&&(wi||Wn!=="onCompositionStart"?Wn==="onCompositionEnd"&&wi&&(Rn=ed()):(Ao=Ze,S0="value"in Ao?Ao.value:Ao.textContent,wi=!0)),Xt=Hg(Ve,Wn),0<Xt.length&&(Wn=new ge(Wn,l,null,p,Ze),at.push({event:Wn,listeners:Xt}),Rn?Wn.data=Rn:(Rn=Vl(p),Rn!==null&&(Wn.data=Rn)))),(Rn=Ul?_0(l,p):Lo(l,p))&&(Wn=Hg(Ve,"onBeforeInput"),0<Wn.length&&(Xt=new ge("onBeforeInput","beforeinput",null,p,Ze),at.push({event:Xt,listeners:Wn}),Xt.data=Rn)),IF(at,l,Ve,p,Ze)}XS(at,u)})}function hm(l,u,p){return{instance:l,listener:u,currentTarget:p}}function Hg(l,u){for(var p=u+"Capture",x=[];l!==null;){var w=l,k=w.stateNode;if(w=w.tag,w!==5&&w!==26&&w!==27||k===null||(w=Gc(l,p),w!=null&&x.unshift(hm(l,w,k)),w=Gc(l,u),w!=null&&x.push(hm(l,w,k))),l.tag===3)return x;l=l.return}return[]}function HF(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function JS(l,u,p,x,w){for(var k=u._reactName,F=[];p!==null&&p!==x;){var ie=p,Ce=ie.alternate,Ve=ie.stateNode;if(ie=ie.tag,Ce!==null&&Ce===x)break;ie!==5&&ie!==26&&ie!==27||Ve===null||(Ce=Ve,w?(Ve=Gc(p,k),Ve!=null&&F.unshift(hm(p,Ve,Ce))):w||(Ve=Gc(p,k),Ve!=null&&F.push(hm(p,Ve,Ce)))),p=p.return}F.length!==0&&l.push({event:u,listeners:F})}var UF=/\r\n?/g,qF=/\u0000|\uFFFD/g;function ZS(l){return(typeof l=="string"?l:""+l).replace(UF,` 50`).replace(qF,"")}function eE(l,u){return u=ZS(u),ZS(l)===u}function Ar(l,u,p,x,w,k){switch(p){case"children":typeof x=="str
50ing"?u==="body"||u==="textarea"&&x===""||nl(l,x):(typeof x=="number"||typeof x=="bigint")&&u!=="body"&&nl(l,""+x);break;case"className":tl(l,"class",x);break;case"tabIndex":tl(l,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":tl(l,p,x);break;case"style":Zu(l,x,k);break;case"data":if(u!=="object"){tl(l,"data",x);break}case"src":case"href":if(x===""&&(u!=="a"||p!=="href")){l.removeAttribute(p);break}if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean"){l.removeAttribute(p);break}x=eo(""+x),l.setAttribute(p,x);break;case"action":case"formAction":if(typeof x=="function"){l.setAttribute(p,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof k=="function"&&(p==="formAction"?(u!=="input"&&Ar(l,u,"name",w.name,w,null),Ar(l,u,"formEncType",w.formEncType,w,null),Ar(l,u,"formMethod",w.formMethod,w,null),Ar(l,u,"formTarget",w.formTarget,w,null)):(Ar(l,u,"encType",w.encType,w,null),Ar(l,u,"method",w.method,w,null),Ar(l,u,"target",w.target,w,null)));if(x==null||typeof x=="symbol"||typeof x=="boolean"){l.removeAttribute(p);break}x=eo(""+x),l.setAttribute(p,x);break;case"onClick":x!=null&&(l.onclick=yi);break;case"onScroll":x!=null&&Vn("scroll",l);break;case"onScrollEnd":x!=null&&Vn("scrollend",l);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(r(61));if(p=x.__html,p!=null){if(w.children!=null)throw Error(r(60));l.innerHTML=p}}break;case"multiple":l.multiple=x&&typeof x!="function"&&typeof x!="symbol";break;case"muted":l.muted=x&&typeof x!="function"&&typeof x!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(x==null||typeof x=="function"||typeof x=="boolean"||typeof x=="symbol"){l.removeAttribute("xlink:href");break}p=eo(""+x),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":x!=null&&typeof x!="function"&&typeof x!="symbol"?l.setAttribute(p,""+x):l.removeAttribute(p);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":x&&typeof x!="function"&&typeof x!="symbol"?l.setAttribute(p,""):l.removeAttribute(p);break;case"capture":case"download":x===!0?l.setAttribute(p,""):x!==!1&&x!=null&&typeof x!="function"&&typeof x!="symbol"?l.setAttribute(p,x):l.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":x!=null&&typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x?l.setAttribute(p,x):l.removeAttribute(p);break;case"rowSpan":case"start":x==null||typeof x=="function"||typeof x=="symbol"||isNaN(x)?l.removeAttribute(p):l.setAttribute(p,x);break;case"popover":Vn("beforetoggle",l),Vn("toggle",l),si(l,"popover",x);break;case"xlinkActuate":Ji(l,"http://www.w3.org/1999/xlink","xlink:actuate",x);break;case"xlinkArcrole":Ji(l,"http://www.w3.org/1999/xlink","xlink:arcrole",x);break;case"xlinkRole":Ji(l,"http://www.w3.org/1999/xlink","xlink:role",x);break;case"xlinkShow":Ji(l,"http://www.w3.org/1999/xlink","xlink:show",x);break;case"xlinkTitle":Ji(l,"http://www.w3.org/1999/xlink","xlink:title",x);break;case"xlinkType":Ji(l,"http://www.w3.org/1999/xlink","xlink:type",x);break;case"xmlBase":Ji(l,"http://www.w3.org/XML/1998/namespace","xml:base",x);break;case"xmlLang":Ji(l,"http://www.w3.org/XML/1998/namespace","xml:lang",x);break;case"xmlSpace":Ji(l,"http://www.w3.org/XML/1998/namespace","xml:space",x);break;case"is":si(l,"is",x);break;case"innerText":case"textContent":break;default:(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=Ip.get(p)||p,si(l,p,x))}}function hy(l,u,p,x,w,k){switch(p){case"style":Zu(l,x,k);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(r(61));if(p=x.__html,p!=null){if(w.children!=null)throw Error(r(60));l.innerHTML=p}}break;
vendor: 9,749 bytes, line 50
50case"children":typeof x=="string"?nl(l,x):(typeof x=="number"||typeof x=="bigint")&&nl(l,""+x);break;case"onScroll":x!=null&&Vn("scroll",l);break;case"onScrollEnd":x!=null&&Vn("scrollend",l);break;case"onClick":x!=null&&(l.onclick=yi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ai.hasOwnProperty(p))e:{if(p[0]==="o"&&p[1]==="n"&&(w=p.endsWith("Capture"),u=p.slice(2,w?p.length-7:void 0),k=l[$r]||null,k=k!=null?k[p]:null,typeof k=="function"&&l.removeEventListener(u,k,w),typeof x=="function")){typeof k!="function"&&k!==null&&(p in l?l[p]=null:l.hasAttribute(p)&&l.removeAttribute(p)),l.addEventListener(u,x,w);break e}p in l?l[p]=x:x===!0?l.setAttribute(p,""):si(l,p,x)}}}function Fs(l,u,p){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Vn("error",l),Vn("load",l);var x=!1,w=!1,k;for(k in p)if(p.hasOwnProperty(k)){var F=p[k];if(F!=null)switch(k){case"src":x=!0;break;case"srcSet":w=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:Ar(l,u,k,F,p,null)}}w&&Ar(l,u,"srcSet",p.srcSet,p,null),x&&Ar(l,u,"src",p.src,p,null);return;case"input":Vn("invalid",l);var ie=k=F=w=null,Ce=null,Ve=null;for(x in p)if(p.hasOwnProperty(x)){var Ze=p[x];if(Ze!=null)switch(x){case"name":w=Ze;break;case"type":F=Ze;break;case"checked":Ce=Ze;break;case"defaultChecked":Ve=Ze;break;case"value":k=Ze;break;case"defaultValue":ie=Ze;break;case"children":case"dangerouslySetInnerHTML":if(Ze!=null)throw Error(r(137,u));break;default:Ar(l,u,x,Ze,p,null)}}x0(l,k,ie,Ce,Ve,F,w,!1);return;case"select":Vn("invalid",l),x=F=k=null;for(w in p)if(p.hasOwnProperty(w)&&(ie=p[w],ie!=null))switch(w){case"value":k=ie;break;case"defaultValue":F=ie;break;case"multiple":x=ie;default:Ar(l,u,w,ie,p,null)}u=k,p=F,l.multiple=!!x,u!=null?zl(l,!!x,u,!1):p!=null&&zl(l,!!x,p,!0);return;case"textarea":Vn("invalid",l),k=w=x=null;for(F in p)if(p.hasOwnProperty(F)&&(ie=p[F],ie!=null))switch(F){case"value":x=ie;break;case"defaultValue":w=ie;break;case"children":k=ie;break;case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(91));break;default:Ar(l,u,F,ie,p,null)}Zi(l,x,w,k);return;case"option":for(Ce in p)if(p.hasOwnProperty(Ce)&&(x=p[Ce],x!=null))switch(Ce){case"selected":l.selected=x&&typeof x!="function"&&typeof x!="symbol";break;default:Ar(l,u,Ce,x,p,null)}return;case"dialog":Vn("beforetoggle",l),Vn("toggle",l),Vn("cancel",l),Vn("close",l);break;case"iframe":case"object":Vn("load",l);break;case"video":case"audio":for(x=0;x<dm.length;x++)Vn(dm[x],l);break;case"image":Vn("error",l),Vn("load",l);break;case"details":Vn("toggle",l);break;case"embed":case"source":case"link":Vn("error",l),Vn("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ve in p)if(p.hasOwnProperty(Ve)&&(x=p[Ve],x!=null))switch(Ve){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:Ar(l,u,Ve,x,p,null)}return;default:if(y0(u)){for(Ze in p)p.hasOwnProperty(Ze)&&(x=p[Ze],x!==void 0&&hy(l,u,Ze,x,p,void 0));return}}for(ie in p)p.hasOwnProperty(ie)&&(x=p[ie],x!=null&&Ar(l,u,ie,x,p,null))}function VF(l,u,p,x){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var w=null,k=null,F=null,ie=null,Ce=null,Ve=null,Ze=null;for($e in p){var at=p[$e];if(p.hasOwnProperty($e)&&at!=null)switch($e){case"checked":break;case"value":break;case"defaultValue":Ce=at;default:x.hasOwnProperty($e)||Ar(l,u,$e,null,x,at)}}for(var Ge in x){var $e=x[Ge];if(at=p[Ge],x.hasOwnProperty(Ge)&&($e!=null||at!=null))switch(Ge){case"type":k=$e;break;case"name":w=$e;break;case"checked":Ve=$e;break;case"defaultChecked":Ze=$e;break;case"value":F=$e;break;case"defaultValue":ie=$e;break;case"children":case"dangerouslySetInnerHTML":if($e!=null)throw Error(r(137,u));break;default:$e!==at&&Ar(l,u,Ge,$e,x,at)}}Oa(l,F,ie,Ce,Ve,Ze,k,w);return;case"select":$e=F=ie=Ge=null;for(k in p)if(Ce=p[k],p.hasOwnProperty(k)&&Ce!=null)switch(k){case"value":break;case"multiple":$e=Ce;default:x.hasOwnProperty(k)||Ar(l,u,k,null,x,Ce)}for(w in x)if(k=x[w],Ce=p[w],x.hasOwnProperty(w)&&(k!=null||Ce!=null))switch(w){case"value":Ge=k;break;case"defaultValue":ie=k;break;case"multiple":F=k;default:k!==Ce&&Ar(l,u,w,k,x,Ce)}u=ie,p=F,x=$e,Ge!=null?zl(l,!!p,Ge,!1):!!x!=!!p&&(u!=null?zl(l,!!p,u,!0):zl(l,!!p,p?[]:"",!1));return;case"textarea":$e=Ge=null;for(ie in p)if(w=p[ie],p.hasOwnProperty(ie)&&w!=null&&!x.hasOwnProperty(ie))switch(ie){case"value":break;case"children":break;default:Ar(l,u,ie,null,x,w)}for(F in x)if(w=x[F],k=p[F],x.hasOwnProperty(F)&&(w!=null||k!=null))switch(F){case"value":Ge=w;break;case"defaultValue":$e=w;break;case"children":break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(91));break;default:w!==k&&Ar(l,u,F,w,x,k)}Rh(l,Ge,$e);return;case"option":for(var zt in p)if(Ge=p[zt],p.hasOwnProperty(zt)&&Ge!=null&&!x.hasOwnProperty(zt))switch(zt){case"selected":l.selected=!1;break;default:Ar(l,u,zt,null,x,Ge)}for(Ce in x)if(Ge=x[Ce],$e=p[Ce],x.hasOwnProperty(Ce)&&Ge!==$e&&(Ge!=null||$e!=null))switch(Ce){case"selected":l.selected=Ge&&typeof Ge!="function"&&typeof Ge!="symbol";break;default:Ar(l,u,Ce,Ge,x,$e)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fn in p)Ge=p[fn],p.hasOwnProperty(fn)&&Ge!=null&&!x.hasOwnProperty(fn)&&Ar(l,u,fn,null,x,Ge);for(Ve in x)if(Ge=x[Ve],$e=p[Ve],x.hasOwnProperty(Ve)&&Ge!==$e&&(Ge!=null||$e!=null))switch(Ve){case"children":case"dangerouslySetInnerHTML":if(Ge!=null)throw Error(r(137,u));break;default:Ar(l,u,Ve,Ge,x,$e)}return;default:if(y0(u)){for(var Lr in p)Ge=p[Lr],p.hasOwnProperty(Lr)&&Ge!==void 0&&!x.hasOwnProperty(Lr)&&hy(l,u,Lr,void 0,x,Ge);for(Ze in x)Ge=x[Ze],$e=p[Ze],!x.hasOwnProperty(Ze)||Ge===$e||Ge===void 0&&$e===void 0||hy(l,u,Ze,Ge,x,$e);return}}for(var je in p)Ge=p[je],p.hasOwnProperty(je)&&Ge!=null&&!x.hasOwnProperty(je)&&Ar(l,u,je,null,x,Ge);for(at in x)Ge=x[at],$e=p[at],!x.hasOwnProperty(at)||Ge===$e||Ge==null&&$e==null||Ar(l,u,at,Ge,x,$e)}function tE(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function GF(){if(typeof performance.getEntriesByType=="function"){for(var l=0,u=0,p=performance.getEntriesByType("resource"),x=0;x<p.length;x++){var w=p[x],k=w.transferSize,F=w.initiatorType,ie=w.duration;if(k&&ie&&tE(F)){for(F=0,ie=w.responseEnd,x+=1;x<p.length;x++){var Ce=p[x],Ve=Ce.startTime;if(Ve>ie)break;var Ze=Ce.transferSize,at=Ce.initiatorType;Ze&&tE(at)&&(Ce=Ce.responseEnd,F+=Ze*(Ce<ie?1:(ie-Ve)/(Ce-Ve)))}if(--x,u+=8*(k+F)/(w.duration/1e3),l++,10<l)break}}if(0<l)return u/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var fy=null,py=null;function Ug(l){return l.nodeType===9?l:l.ownerDocument}function nE(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function rE(l,u){if(l===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&u==="foreignObject"?0:l}function my(l,u){return l==="textarea"||l==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var gy=null;function $F(){var l=window.event;return l&&l.type==="popstate"?l===gy?!1:(gy=l,!0):(gy=null,!1)}var aE=typeof setTimeout=="function"?setTimeout:void 0,WF=typeof clearTimeout=="function"?clearTimeout:void 0,sE=typeof Promise=="function"?Promise:void 0,YF=typeof queueMicrotask=="function"?queueMicrotask:typeof sE<"u"?function(l){return sE.resolve(null).then(l).catch(QF)}:aE;function QF(l){setTimeout(function(){throw l})}function kd(l){return l==="head"}function iE(l,u){var p=u,x=0;do{var w=p.nextSibling;if(l.removeChild(p),w&&w.nodeType===8)if(p=w.data,p==="/$"||p==="/&"){if(x===0){l.removeChild(w),bf(u);return}x--}else if(p==="$"||p==="$?"||p==="$~"||p==="$!"||p==="&")x++;else if(p==="html")fm(l.ownerDocument.documentElement);else if(p==="head"){p=l.ownerDocument.head,fm(p);for(var k=p.firstChild;k;){var F=k.nextSibling,ie=k.nodeName;k[Yi]||ie==="SCRIPT"||ie==="STYLE"||ie==="LINK"&&k.rel.toLowerCase()==="stylesheet"||p.removeChild(k),k=F}}else p==="body"&&fm(l.ownerDocument.body);p=w}while(p);bf(u)}function oE(l,u){var p=l;l=0;do{var x=p.nextSibling;if(p.nodeType===1?u?(p._stashedDisplay=p.style.display,p.style.display="none"):(p.style.display=p._stashedDisplay||"",p.getAttribute("style")===""&&p.removeAttribute("style")):p.nodeType===3&&(u?(p._stashedText=p.nodeValue,p.nodeValue=""):p.nodeValue=p._stashedText||""),x&&x.nodeType===8)if(p=x.data,p==="/$"){if(l===0)break;l--}else p!=="$"&&p!=="$?"&&p!=="$~"&&p!=="$!"||l++;p=x}while(p)}function xy(l){var u=l.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var p=u;switch(u=u.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":xy(p),Bl(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}l.removeChild(p)}}function XF(l,u,p,x){for(;l.nodeType===1;){var w=p;if(l.nodeName.toLowerCase()!==u.toLowerCase()){if(!x&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(x){if(!l[Yi])switch(u){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(k=l.getAttribute("rel"),k==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(k!==w.rel||l.getAttribute("href")!==(w.href==null||w.href===""?null:w.href)||l.getAttribute("crossorigin")!==(w.
vendor: 11,265 bytes, line 50
50crossOrigin==null?null:w.crossOrigin)||l.getAttribute("title")!==(w.title==null?null:w.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(k=l.getAttribute("src"),(k!==(w.src==null?null:w.src)||l.getAttribute("type")!==(w.type==null?null:w.type)||l.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin))&&k&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(u==="input"&&l.type==="hidden"){var k=w.name==null?null:""+w.name;if(w.type==="hidden"&&l.getAttribute("name")===k)return l}else return l;if(l=jo(l.nextSibling),l===null)break}return null}function KF(l,u,p){if(u==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!p||(l=jo(l.nextSibling),l===null))return null;return l}function lE(l,u){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!u||(l=jo(l.nextSibling),l===null))return null;return l}function by(l){return l.data==="$?"||l.data==="$~"}function yy(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function JF(l,u){var p=l.ownerDocument;if(l.data==="$~")l._reactRetry=u;else if(l.data!=="$?"||p.readyState!=="loading")u();else{var x=function(){u(),p.removeEventListener("DOMContentLoaded",x)};p.addEventListener("DOMContentLoaded",x),l._reactRetry=x}}function jo(l){for(;l!=null;l=l.nextSibling){var u=l.nodeType;if(u===1||u===3)break;if(u===8){if(u=l.data,u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"||u==="F!"||u==="F")break;if(u==="/$"||u==="/&")return null}}return l}var vy=null;function cE(l){l=l.nextSibling;for(var u=0;l;){if(l.nodeType===8){var p=l.data;if(p==="/$"||p==="/&"){if(u===0)return jo(l.nextSibling);u--}else p!=="$"&&p!=="$!"&&p!=="$?"&&p!=="$~"&&p!=="&"||u++}l=l.nextSibling}return null}function uE(l){l=l.previousSibling;for(var u=0;l;){if(l.nodeType===8){var p=l.data;if(p==="$"||p==="$!"||p==="$?"||p==="$~"||p==="&"){if(u===0)return l;u--}else p!=="/$"&&p!=="/&"||u++}l=l.previousSibling}return null}function dE(l,u,p){switch(u=Ug(p),l){case"html":if(l=u.documentElement,!l)throw Error(r(452));return l;case"head":if(l=u.head,!l)throw Error(r(453));return l;case"body":if(l=u.body,!l)throw Error(r(454));return l;default:throw Error(r(451))}}function fm(l){for(var u=l.attributes;u.length;)l.removeAttributeNode(u[0]);Bl(l)}var Do=new Map,hE=new Set;function qg(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var Eu=ce.d;ce.d={f:ZF,r:ez,D:tz,C:nz,L:rz,m:az,X:iz,S:sz,M:oz};function ZF(){var l=Eu.f(),u=Pg();return l||u}function ez(l){var u=Xi(l);u!==null&&u.tag===5&&u.type==="form"?A7(u):Eu.r(l)}var mf=typeof document>"u"?null:document;function fE(l,u,p){var x=mf;if(x&&typeof u=="string"&&u){var w=xa(u);w='link[rel="'+l+'"][href="'+w+'"]',typeof p=="string"&&(w+='[crossorigin="'+p+'"]'),hE.has(w)||(hE.add(w),l={rel:l,crossOrigin:p,href:u},x.querySelector(w)===null&&(u=x.createElement("link"),Fs(u,"link",l),da(u),x.head.appendChild(u)))}}function tz(l){Eu.D(l),fE("dns-prefetch",l,null)}function nz(l,u){Eu.C(l,u),fE("preconnect",l,u)}function rz(l,u,p){Eu.L(l,u,p);var x=mf;if(x&&l&&u){var w='link[rel="preload"][as="'+xa(u)+'"]';u==="image"&&p&&p.imageSrcSet?(w+='[imagesrcset="'+xa(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(w+='[imagesizes="'+xa(p.imageSizes)+'"]')):w+='[href="'+xa(l)+'"]';var k=w;switch(u){case"style":k=gf(l);break;case"script":k=xf(l)}Do.has(k)||(l=m({rel:"preload",href:u==="image"&&p&&p.imageSrcSet?void 0:l,as:u},p),Do.set(k,l),x.querySelector(w)!==null||u==="style"&&x.querySelector(pm(k))||u==="script"&&x.querySelector(mm(k))||(u=x.createElement("link"),Fs(u,"link",l),da(u),x.head.appendChild(u)))}}function az(l,u){Eu.m(l,u);var p=mf;if(p&&l){var x=u&&typeof u.as=="string"?u.as:"script",w='link[rel="modulepreload"][as="'+xa(x)+'"][href="'+xa(l)+'"]',k=w;switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":k=xf(l)}if(!Do.has(k)&&(l=m({rel:"modulepreload",href:l},u),Do.set(k,l),p.querySelector(w)===null)){switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(mm(k)))return}x=p.createElement("link"),Fs(x,"link",l),da(x),p.head.appendChild(x)}}}function sz(l,u,p){Eu.S(l,u,p);var x=mf;if(x&&l){var w=To(x).hoistableStyles,k=gf(l);u=u||"default";var F=w.get(k);if(!F){var ie={loading:0,preload:null};if(F=x.querySelector(pm(k)))ie.loading=5;else{l=m({rel:"stylesheet",href:l,"data-precedence":u},p),(p=Do.get(k))&&wy(l,p);var Ce=F=x.createElement("link");da(Ce),Fs(Ce,"link",l),Ce._p=new Promise(function(Ve,Ze){Ce.onload=Ve,Ce.onerror=Ze}),Ce.addEventListener("load",function(){ie.loading|=1}),Ce.addEventListener("error",function(){ie.loading|=2}),ie.loading|=4,Vg(F,u,x)}F={type:"stylesheet",instance:F,count:1,state:ie},w.set(k,F)}}}function iz(l,u){Eu.X(l,u);var p=mf;if(p&&l){var x=To(p).hoistableScripts,w=xf(l),k=x.get(w);k||(k=p.querySelector(mm(w)),k||(l=m({src:l,async:!0},u),(u=Do.get(w))&&Sy(l,u),k=p.createElement("script"),da(k),Fs(k,"link",l),p.head.appendChild(k)),k={type:"script",instance:k,count:1,state:null},x.set(w,k))}}function oz(l,u){Eu.M(l,u);var p=mf;if(p&&l){var x=To(p).hoistableScripts,w=xf(l),k=x.get(w);k||(k=p.querySelector(mm(w)),k||(l=m({src:l,async:!0,type:"module"},u),(u=Do.get(w))&&Sy(l,u),k=p.createElement("script"),da(k),Fs(k,"link",l),p.head.appendChild(k)),k={type:"script",instance:k,count:1,state:null},x.set(w,k))}}function pE(l,u,p,x){var w=(w=we.current)?qg(w):null;if(!w)throw Error(r(446));switch(l){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(u=gf(p.href),p=To(w).hoistableStyles,x=p.get(u),x||(x={type:"style",instance:null,count:0,state:null},p.set(u,x)),x):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){l=gf(p.href);var k=To(w).hoistableStyles,F=k.get(l);if(F||(w=w.ownerDocument||w,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},k.set(l,F),(k=w.querySelector(pm(l)))&&!k._p&&(F.instance=k,F.state.loading=5),Do.has(l)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},Do.set(l,p),k||lz(w,l,p,F.state))),u&&x===null)throw Error(r(528,""));return F}if(u&&x!==null)throw Error(r(529,""));return null;case"script":return u=p.async,p=p.src,typeof p=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=xf(p),p=To(w).hoistableScripts,x=p.get(u),x||(x={type:"script",instance:null,count:0,state:null},p.set(u,x)),x):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,l))}}function gf(l){return'href="'+xa(l)+'"'}function pm(l){return'link[rel="stylesheet"]['+l+"]"}function mE(l){return m({},l,{"data-precedence":l.precedence,precedence:null})}function lz(l,u,p,x){l.querySelector('link[rel="preload"][as="style"]['+u+"]")?x.loading=1:(u=l.createElement("link"),x.preload=u,u.addEventListener("load",function(){return x.loading|=1}),u.addEventListener("error",function(){return x.loading|=2}),Fs(u,"link",p),da(u),l.head.appendChild(u))}function xf(l){return'[src="'+xa(l)+'"]'}function mm(l){return"script[async]"+l}function gE(l,u,p){if(u.count++,u.instance===null)switch(u.type){case"style":var x=l.querySelector('style[data-href~="'+xa(p.href)+'"]');if(x)return u.instance=x,da(x),x;var w=m({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return x=(l.ownerDocument||l).createElement("style"),da(x),Fs(x,"style",w),Vg(x,p.precedence,l),u.instance=x;case"stylesheet":w=gf(p.href);var k=l.querySelector(pm(w));if(k)return u.state.loading|=4,u.instance=k,da(k),k;x=mE(p),(w=Do.get(w))&&wy(x,w),k=(l.ownerDocument||l).createElement("link"),da(k);var F=k;return F._p=new Promise(function(ie,Ce){F.onload=ie,F.onerror=Ce}),Fs(k,"link",x),u.state.loading|=4,Vg(k,p.precedence,l),u.instance=k;case"script":return k=xf(p.src),(w=l.querySelector(mm(k)))?(u.instance=w,da(w),w):(x=p,(w=Do.get(k))&&(x=m({},p),Sy(x,w)),l=l.ownerDocument||l,w=l.createElement("script"),da(w),Fs(w,"link",x),l.head.appendChild(w),u.instance=w);case"void":return null;default:throw Error(r(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(x=u.instance,u.state.loading|=4,Vg(x,p.precedence,l));return u.instance}function Vg(l,u,p){for(var x=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),w=x.length?x[x.length-1]:null,k=w,F=0;F<x.length;F++){var ie=x[F];if(ie.dataset.precedence===u)k=ie;else if(k!==w)break}k?k.parentNode.insertBefore(l,k.nextSibling):(u=p.nodeType===9?p.head:p,u.insertBefore(l,u.firstChild))}function wy(l,u){l.crossOrigin==null&&(l.crossOrigin=u.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=u.referrerPolicy),l.title==null&&(l.title=u.title)}function Sy(l,u){l.crossOrigin==null&&(l.crossOrigin=u.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=u.referrerPolicy),l.integrity==null&&(l.integrity=u.integrity)}var Gg=null;function xE(l,u,p){if(Gg===null){var x=new Map,w=Gg=new Map;w.set(p,x)}else w=Gg,x=w.get(p),x||(x=new Map,w.set(p,x));if(x.has(l))return x;for(x.set(l,null),p=p.getElementsByTagName(l),w=0;w<p.length;w++){var k=p[w];if(!(k[Yi]||k[vr]||l==="link"&&k.getAttribute("rel")==="stylesheet")&&k.namespaceURI!=="http://www.w3.org/2000/svg"){var F=k.getAttribute(u)||"";F=l+F;var ie=x.get(F);ie?ie.push(k):x.set(F,[k])}}return x}function bE(l,u,p){l=l.ownerDocument||l,l.head.insertBefore(p,u==="title"?l.querySelector("head > title"):null)}function cz(l,u,p){if(p===1||u.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return l=u.disabled,typeof u.precedence=="string"&&l==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function yE(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function uz(l,u,p,x){if(p.type==="stylesheet"&&(typeof x.media!="string"||matchMedia(x.media).matches!==!1)&&(p.state.loading&4)===0){if(p.instance===null){var w=gf(x.href),k=u.querySelector(pm(w));if(k){u=k._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(l.count++,l=$g.bind(l),u.then(l,l)),p.state.loading|=4,p.instance=k,da(k);return}k=u.ownerDocument||u,x=mE(x),(w=Do.get(w))&&wy(x,w),k=k.createElement("link"),da(k);var F=k;F._p=new Promise(function(ie,Ce){F.onload=ie,F.onerror=Ce}),Fs(k,"link",x),p.instance=k}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(p,u),(u=p.state.preload)&&(p.state.loading&3)===0&&(l.count++,p=$g.bind(l),u.addEventListener("load",p),u.addEventListener("error",p))}}var Ey=0;function dz(l,u){return l.stylesheets&&l.count===0&&Yg(l,l.stylesheets),0<l.count||0<l.imgCount?function(p){var x=setTimeout(function(){if(l.stylesheets&&Yg(l,l.stylesheets),l.unsu
vendor: 4,305 bytes, line 50
50spend){var k=l.unsuspend;l.unsuspend=null,k()}},6e4+u);0<l.imgBytes&&Ey===0&&(Ey=62500*GF());var w=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&Yg(l,l.stylesheets),l.unsuspend)){var k=l.unsuspend;l.unsuspend=null,k()}},(l.imgBytes>Ey?50:800)+u);return l.unsuspend=p,function(){l.unsuspend=null,clearTimeout(x),clearTimeout(w)}}:null}function $g(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yg(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Wg=null;function Yg(l,u){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Wg=new Map,u.forEach(hz,l),Wg=null,$g.call(l))}function hz(l,u){if(!(u.state.loading&4)){var p=Wg.get(l);if(p)var x=p.get(null);else{p=new Map,Wg.set(l,p);for(var w=l.querySelectorAll("link[data-precedence],style[data-precedence]"),k=0;k<w.length;k++){var F=w[k];(F.nodeName==="LINK"||F.getAttribute("media")!=="not all")&&(p.set(F.dataset.precedence,F),x=F)}x&&p.set(null,x)}w=u.instance,F=w.getAttribute("data-precedence"),k=p.get(F)||x,k===x&&p.set(null,w),p.set(F,w),this.count++,x=$g.bind(this),w.addEventListener("load",x),w.addEventListener("error",x),k?k.parentNode.insertBefore(w,k.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(w,l.firstChild)),u.state.loading|=4}}var gm={$$typeof:R,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function fz(l,u,p,x,w,k,F,ie,Ce){this.tag=1,this.containerInfo=l,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Za(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Za(0),this.hiddenUpdates=Za(null),this.identifierPrefix=x,this.onUncaughtError=w,this.onCaughtError=k,this.onRecoverableError=F,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Ce,this.incompleteTransitions=new Map}function vE(l,u,p,x,w,k,F,ie,Ce,Ve,Ze,at){return l=new fz(l,u,p,F,Ce,Ve,Ze,at,ie),u=1,k===!0&&(u|=24),k=ws(3,null,null,u),l.current=k,k.stateNode=l,u=hd(),u.refCount++,l.pooledCache=u,u.refCount++,k.memoizedState={element:x,isDehydrated:p,cache:u},vt(k),l}function wE(l){return l?(l=rs,l):rs}function SE(l,u,p,x,w,k){w=wE(w),x.context===null?x.context=w:x.pendingContext=w,x=cn(u),x.payload={element:p},k=k===void 0?null:k,k!==null&&(x.callback=k),p=Cn(l,x,u),p!==null&&(Di(p,l,u),dr(p,l,u))}function EE(l,u){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var p=l.retryLane;l.retryLane=p!==0&&p<u?p:u}}function ky(l,u){EE(l,u),(l=l.alternate)&&EE(l,u)}function kE(l){if(l.tag===13||l.tag===31){var u=fl(l,67108864);u!==null&&Di(u,l,67108864),ky(l,67108864)}}function _E(l){if(l.tag===13||l.tag===31){var u=uo();u=yr(u);var p=fl(l,u);p!==null&&Di(p,l,u),ky(l,u)}}var Qg=!0;function pz(l,u,p,x){var w=ee.T;ee.T=null;var k=ce.p;try{ce.p=2,_y(l,u,p,x)}finally{ce.p=k,ee.T=w}}function mz(l,u,p,x){var w=ee.T;ee.T=null;var k=ce.p;try{ce.p=8,_y(l,u,p,x)}finally{ce.p=k,ee.T=w}}function _y(l,u,p,x){if(Qg){var w=Ty(x);if(w===null)dy(l,u,x,Xg,p),CE(l,x);else if(xz(w,l,u,p,x))x.stopPropagation();else if(CE(l,x),u&4&&-1<gz.indexOf(l)){for(;w!==null;){var k=Xi(w);if(k!==null)switch(k.tag){case 3:if(k=k.stateNode,k.current.memoizedState.isDehydrated){var F=Qt(k.pendingLanes);if(F!==0){var ie=k;for(ie.pendingLanes|=2,ie.entangledLanes|=2;F;){var Ce=1<<31-an(F);ie.entanglements[1]|=Ce,F&=~Ce}cc(k),(fr&6)===0&&(Rg=mn()+500,um(0))}}break;case 31:case 13:ie=fl(k,2),ie!==null&&Di(ie,k,2),Pg(),ky(k,2)}if(k=Ty(x),k===null&&dy(l,u,x,Xg,p),k===w)break;w=k}w!==null&&x.stopPropagation()}else dy(l,u,x,null,p)}}function Ty(l){return l=v0(l),Cy(l)}var Xg=null;function Cy(l){if(Xg=null,l=Qi(l),l!==null){var u=s(l);if(u===null)l=null;else{var p=u.tag;if(p===13){if(l=i(u),l!==null)return l;l=null}else if(p===31){if(l=o(u),l!==null)return l;l=null}else if(p===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;l=null}else u!==l&&(l=null)}}return Xg=l,null}function TE(l){switch(l){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 4,359 bytes, line 50
50:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(An()){case Be:return 2;case nt:return 8;case bt:case ut:return 32;case Et:return 268435456;default:return 32}default:return 32}}var Ny=!1,_d=null,Td=null,Cd=null,xm=new Map,bm=new Map,Nd=[],gz="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function CE(l,u){switch(l){case"focusin":case"focusout":_d=null;break;case"dragenter":case"dragleave":Td=null;break;case"mouseover":case"mouseout":Cd=null;break;case"pointerover":case"pointerout":xm.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":bm.delete(u.pointerId)}}function ym(l,u,p,x,w,k){return l===null||l.nativeEvent!==k?(l={blockedOn:u,domEventName:p,eventSystemFlags:x,nativeEvent:k,targetContainers:[w]},u!==null&&(u=Xi(u),u!==null&&kE(u)),l):(l.eventSystemFlags|=x,u=l.targetContainers,w!==null&&u.indexOf(w)===-1&&u.push(w),l)}function xz(l,u,p,x,w){switch(u){case"focusin":return _d=ym(_d,l,u,p,x,w),!0;case"dragenter":return Td=ym(Td,l,u,p,x,w),!0;case"mouseover":return Cd=ym(Cd,l,u,p,x,w),!0;case"pointerover":var k=w.pointerId;return xm.set(k,ym(xm.get(k)||null,l,u,p,x,w)),!0;case"gotpointercapture":return k=w.pointerId,bm.set(k,ym(bm.get(k)||null,l,u,p,x,w)),!0}return!1}function NE(l){var u=Qi(l.target);if(u!==null){var p=s(u);if(p!==null){if(u=p.tag,u===13){if(u=i(p),u!==null){l.blockedOn=u,Il(l.priority,function(){_E(p)});return}}else if(u===31){if(u=o(p),u!==null){l.blockedOn=u,Il(l.priority,function(){_E(p)});return}}else if(u===3&&p.stateNode.current.memoizedState.isDehydrated){l.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Kg(l){if(l.blockedOn!==null)return!1;for(var u=l.targetContainers;0<u.length;){var p=Ty(l.nativeEvent);if(p===null){p=l.nativeEvent;var x=new p.constructor(p.type,p);No=x,p.target.dispatchEvent(x),No=null}else return u=Xi(p),u!==null&&kE(u),l.blockedOn=p,!1;u.shift()}return!0}function AE(l,u,p){Kg(l)&&p.delete(u)}function bz(){Ny=!1,_d!==null&&Kg(_d)&&(_d=null),Td!==null&&Kg(Td)&&(Td=null),Cd!==null&&Kg(Cd)&&(Cd=null),xm.forEach(AE),bm.forEach(AE)}function Jg(l,u){l.blockedOn===u&&(l.blockedOn=null,Ny||(Ny=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,bz)))}var Zg=null;function LE(l){Zg!==l&&(Zg=l,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Zg===l&&(Zg=null);for(var u=0;u<l.length;u+=3){var p=l[u],x=l[u+1],w=l[u+2];if(typeof x!="function"){if(Cy(x||p)===null)continue;break}var k=Xi(p);k!==null&&(l.splice(u,3),u-=3,Tb(k,{pending:!0,data:w,method:p.method,action:x},x,w))}}))}function bf(l){function u(Ce){return Jg(Ce,l)}_d!==null&&Jg(_d,l),Td!==null&&Jg(Td,l),Cd!==null&&Jg(Cd,l),xm.forEach(u),bm.forEach(u);for(var p=0;p<Nd.length;p++){var x=Nd[p];x.blockedOn===l&&(x.blockedOn=null)}for(;0<Nd.length&&(p=Nd[0],p.blockedOn===null);)NE(p),p.blockedOn===null&&Nd.shift();if(p=(l.ownerDocument||l).$$reactFormReplay,p!=null)for(x=0;x<p.length;x+=3){var w=p[x],k=p[x+1],F=w[$r]||null;if(typeof k=="function")F||LE(p);else if(F){var ie=null;if(k&&k.hasAttribute("formAction")){if(w=k,F=k[$r]||null)ie=F.formAction;else if(Cy(w)!==null)continue}else ie=F.action;
vendor: 4,537 bytes, line 50
50typeof ie=="function"?p[x+1]=ie:(p.splice(x,3),x-=3),LE(p)}}}function ME(){function l(k){k.canIntercept&&k.info==="react-transition"&&k.intercept({handler:function(){return new Promise(function(F){return w=F})},focusReset:"manual",scroll:"manual"})}function u(){w!==null&&(w(),w=null),x||setTimeout(p,20)}function p(){if(!x&&!navigation.transition){var k=navigation.currentEntry;k&&k.url!=null&&navigation.navigate(k.url,{state:k.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var x=!1,w=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",u),navigation.addEventListener("navigateerror",u),setTimeout(p,100),function(){x=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",u),navigation.removeEventListener("navigateerror",u),w!==null&&(w(),w=null)}}}function Ay(l){this._internalRoot=l}e2.prototype.render=Ay.prototype.render=function(l){var u=this._internalRoot;if(u===null)throw Error(r(409));var p=u.current,x=uo();SE(p,x,l,u,null,null)},e2.prototype.unmount=Ay.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var u=l.containerInfo;SE(l.current,2,null,l,null,null),Pg(),u[ps]=null}};function e2(l){this._internalRoot=l}e2.prototype.unstable_scheduleHydration=function(l){if(l){var u=Ra();l={blockedOn:null,target:l,priority:u};for(var p=0;p<Nd.length&&u!==0&&u<Nd[p].priority;p++);Nd.splice(p,0,l),p===0&&NE(l)}};var RE=t.version;if(RE!=="19.2.1")throw Error(r(527,RE,"19.2.1"));ce.findDOMNode=function(l){var u=l._reactInternals;if(u===void 0)throw typeof l.render=="function"?Error(r(188)):(l=Object.keys(l).join(","),Error(r(268,l)));return l=d(u),l=l!==null?f(l):null,l=l===null?null:l.stateNode,l};var yz={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:ee,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var t2=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t2.isDisabled&&t2.supportsFiber)try{hn=t2.inject(yz),Yt=t2}catch{}}return Sm.createRoot=function(l,u){if(!a(l))throw Error(r(299));var p=!1,x="",w=F7,k=z7,F=H7;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(x=u.identifierPrefix),u.onUncaughtError!==void 0&&(w=u.onUncaughtError),u.onCaughtError!==void 0&&(k=u.onCaughtError),u.onRecoverableError!==void 0&&(F=u.onRecoverableError)),u=vE(l,1,!1,null,null,p,x,null,w,k,F,ME),l[ps]=u.current,uy(l),new Ay(u)},Sm.hydrateRoot=function(l,u,p){if(!a(l))throw Error(r(299));var x=!1,w="",k=F7,F=z7,ie=H7,Ce=null;return p!=null&&(p.unstable_strictMode===!0&&(x=!0),p.identifierPrefix!==void 0&&(w=p.identifierPrefix),p.onUncaughtError!==void 0&&(k=p.onUncaughtError),p.onCaughtError!==void 0&&(F=p.onCaughtError),p.onRecoverableError!==void 0&&(ie=p.onRecoverableError),p.formState!==void 0&&(Ce=p.formState)),u=vE(l,1,!0,u,p??null,x,w,Ce,k,F,ie,ME),u.context=wE(null),p=u.current,x=uo(),x=yr(x),w=cn(x),w.callback=null,Cn(p,w,x),p=x,u.current.lanes=p,Nt(u,p),cc(u),l[ps]=u.current,uy(l),new e2(u)},Sm.version="19.2.1",Sm}var sk;function zU(){if(sk)return Dy.exports;sk=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Dy.exports=FU(),Dy.exports}var HU=zU(),UU=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,n){this.keyToValue.set(t,n),this.valueToKey.set(n,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),uL=(function(){function e(t){this.generateIdentifier=t,this.kv=new UU}return e.prototype.register=function(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),qU=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(r[s]=a[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}
50t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),VU=(function(e){qU(t,e);function t(){var n=e.call(this,function(r){return r.name})||this;return n.classToAllowedProps=new Map,n}return t.prototype.register=function(n,r){typeof r=="object"?(r.allowProps&&this.classToAllowedProps.set(n,r.allowProps),e.prototype.register.call(this,n,r.identifier)):e.prototype.register.call(this,n,r)},t.prototype.getAllowedProps=function(n){return this.classToAllowedProps.get(n)},t})(uL),GU=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,s=[],i;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)s.push(a.value)}catch(o){i={error:o}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s};function $U(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function WU(e,t){var n=$U(e);if("find"in n)return n.find(t);for(var r=n,a=0;a<r.length;a++){var s=r[a];if(t(s))return s}}function tp(e,t){Object.entries(e).forEach(function(n){var r=GU(n,2),a=r[0],s=r[1];return t(s,a)})}function Z2(e,t){return e.indexOf(t)!==-1}function ik(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var YU=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return WU(this.transfomers,function(n){return n.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),QU=function(e){return Object.prototype.toString.call(e).slice(8,-1)},dL=function(e){return typeof e>"u"}
50,XU=function(e){return e===null},m1=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},qv=function(e){return m1(e)&&Object.keys(e).length===0},Jd=function(e){return Array.isArray(e)},KU=function(e){return typeof e=="string"},JU=function(e){return typeof e=="number"&&!isNaN(e)},ZU=function(e){return typeof e=="boolean"},eq=function(e){return e instanceof RegExp},g1=function(e){return e instanceof Map},x1=function(e){return e instanceof Set},hL=function(e){return QU(e)==="Symbol"},tq=function(e){return e instanceof Date&&!isNaN(e.valueOf())},nq=function(e){return e instanceof Error},ok=function(e){return typeof e=="number"&&isNaN(e)},rq=function(e){return ZU(e)||XU(e)||dL(e)||JU(e)||KU(e)||hL(e)},aq=function(e){return typeof e=="bigint"},sq=function(e){return e===1/0||e===-1/0},iq=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},oq=function(e){return e instanceof URL},fL=function(e){return e.replace(/\./g,"\\.")},zy=function(e){return e.map(String).map(fL).join(".")},Gm=function(e){for(var t=[],n="",r=0;r<e.length;r++){var a=e.charAt(r),s=a==="\\"&&e.charAt(r+1)===".";if(s){n+=".",r++;continue}var i=a===".";if(i){t.push(n),n="";continue}n+=a}var o=n;return t.push(o),t},Vv=function(){return Vv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Vv.apply(this,arguments)},Gv=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,s=[],i;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)s.push(a.value)}catch(o){i={error:o}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s},$v=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};function uc(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var pL=[uc(dL,"undefined",function(){return null},function(){}),uc(aq,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),uc(tq,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),uc(nq,"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n}),uc(eq,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),uc(x1,"set",function(e){return $v([],Gv(e.values()))},function(e){return new Set(e)}),uc(g1,"map",function(e){return $v([],Gv(e.entries()))},function(e){return new Map(e)}),uc(function(e){return ok(e)||sq(e)},"number",function(e){return ok(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),uc(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),uc(oq,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function k5(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var mL=k5(function(e,t){if(hL(e)){var n=!!t.symbolRegistry.getIdentifier(e);return n}return!1},function(e,t){var n=t.symbolRegistry.getIdentifier(e);return["symbol",n]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),lq=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),gL=k5(iq,function(e){return["typed-array",e.constructor.name]},function(e){return $v([],Gv(e))},function(e,t){var n=lq[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function xL(e,t){if(e?.constructor){var n=!!t.classRegistry.getIdentifier(e.constructor);return n}return!1}var bL=k5(xL,function(e,t){var n=t.classRegistry.getIdentifier(e.constructor);return["class",n]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return Vv({},e);var r={};
50return n.forEach(function(a){r[a]=e[a]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),yL=k5(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return["custom",n.name]},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return n.serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),cq=[bL,mL,yL,gL],lk=function(e,t){var n=ik(cq,function(a){return a.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=ik(pL,function(a){return a.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},vL={};pL.forEach(function(e){vL[e.annotation]=e});var uq=function(e,t,n){if(Jd(t))switch(t[0]){case"symbol":return mL.untransform(e,t,n);case"class":return bL.untransform(e,t,n);case"custom":return yL.untransform(e,t,n);case"typed-array":return gL.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{var r=vL[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},Pf=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function wL(e){if(Z2(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Z2(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Z2(e,"constructor"))throw new Error("constructor is not allowed as a property")}var dq=function(e,t){wL(t);for(var n=0;n<t.length;n++){var r=t[n];if(x1(e))e=Pf(e,+r);else if(g1(e)){var a=+r,s=+t[++n]==0?"key":"value",i=Pf(e,a);switch(s){case"key":e=i;break;case"value":e=e.get(i);break}}else e=e[r]}return e},Wv=function(e,t,n){if(wL(t),t.length===0)return n(e);for(var r=e,a=0;a<t.length-1;a++){var s=t[a];if(Jd(r)){var i=+s;r=r[i]}else if(m1(r))r=r[s];else if(x1(r)){var o=+s;r=Pf(r,o)}else if(g1(r)){var c=a===t.length-2;if(c)break;var o=+s,d=+t[++a]==0?"key":"value",f=Pf(r,o);switch(d){case"key":r=f;break;case"value":r=r.get(f);break}}}var m=t[t.length-1];if(Jd(r)?r[+m]=n(r[+m]):m1(r)&&(r[m]=n(r[m])),x1(r)){var b=Pf(r,+m),g=n(b);b!==g&&(r.delete(b),r.add(g))}if(g1(r)){var o=+t[t.length-2],v=Pf(r,o),d=+m==0?"key":"value";switch(d){case"key":{var E=n(v);r.set(E,r.get(v)),E!==v&&r.delete(v);break}case"value":{r.set(v,n(r.get(v)));break}}}return e},Ru=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,s=[],i;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)s.push(a.value)}catch(o){i={error:o}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s},Vd=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};function Yv(e,t,n){if(n===void 0&&(n=[]),!!e){if(!Jd(e)){tp(e,function(i,o){return Yv(i,t,Vd(Vd([],Ru(n)),Ru(Gm(o))))});return}var r=Ru(e,2),a=r[0],s=r[1];s&&tp(s,function(i,o){Yv(i,t,Vd(Vd([],Ru(n)),Ru(Gm(o))))}),t(a,n)}}function hq(e,t,n){return Yv(t,function(r,a){e=Wv(e,a,function(s){return uq(s,r,n)})}),e}function fq(e,t){function n(i,o){var c=dq(e,Gm(o));i.map(Gm).forEach(function(d){e=Wv(e,d,function(){return c})})}if(Jd(t)){var r=Ru(t,2),a=r[0],s=r[1];a.forEach(function(i){e=Wv(e,Gm(i),function(){return e})}),s&&tp(s,n)}else tp(t,n);return e}var pq=function(e,t){return m1(e)||Jd(e)||g1(e)||x1(e)||xL(e,t)};function mq(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}function gq(e,t){var n={},r=void 0;return e.forEach(function(a){if(!(a.length<=1)){t||(a=a.map(function(c){return c.map(String)}).sort(function(c,d){return c.length-d.length}));var s=Ru(a),i=s[0],o=s.slice(1);i.length===0?r=o.map(zy):n[zy(i)]=o.map(zy)}}),r?qv(n)?[r]:[r,n]:qv(n)?void 0:n}var SL=function(e,t,n,r,a,s,i){var o;a===void 0&&(a=[]),s===void 0&&(s=[]),i===void 0&&(i=new Map);var c=rq(e);if(!c){mq(e,a,t);var d=i.get(e);if(d)return r?{transformedValue:null}:d}
50if(!pq(e,n)){var f=lk(e,n),m=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:e};return c||i.set(e,m),m}if(Z2(s,e))return{transformedValue:null};var b=lk(e,n),g=(o=b?.value)!==null&&o!==void 0?o:e,v=Jd(g)?[]:{},E={};tp(g,function(_,A){var R=SL(_,t,n,r,Vd(Vd([],Ru(a)),[A]),Vd(Vd([],Ru(s)),[e]),i);v[A]=R.transformedValue,Jd(R.annotations)?E[A]=R.annotations:m1(R.annotations)&&tp(R.annotations,function(P,V){E[fL(A)+"."+V]=P})});var T=qv(E)?{transformedValue:v,annotations:b?[b.type]:void 0}:{transformedValue:v,annotations:b?[b.type,E]:E};return c||i.set(e,T),T};function EL(e){return Object.prototype.toString.call(e).slice(8,-1)}function ck(e){return EL(e)==="Array"}function xq(e){if(EL(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function bq(e,t,n,r,a){const s={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";s==="enumerable"&&(e[t]=n),a&&s==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function Qv(e,t={}){if(ck(e))return e.map(a=>Qv(a,t));if(!xq(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((a,s)=>{if(ck(t.props)&&!t.props.includes(s))return a;const i=e[s],o=Qv(i,t);return bq(a,s,o,e,t.nonenumerable),a},{})}var K0=function(){return K0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},K0.apply(this,arguments)},yq=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,s=[],i;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)s.push(a.value)}catch(o){i={error:o}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s},vq=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},Wu=(function(){function e(t){var n=t===void 0?{}:t,r=n.dedupe,a=r===void 0?!1:r;this.classRegistry=new VU,this.symbolRegistry=new uL(function(s){var i;return(i=s.description)!==null&&i!==void 0?i:""}),this.customTransformerRegistry=new YU,this.allowedErrorProps=[],this.dedupe=a}return e.prototype.serialize=function(t){var n=new Map,r=SL(t,n,this,this.dedupe),a={json:r.transformedValue};r.annotations&&(a.meta=K0(K0({},a.meta),{values:r.annotations}));var s=gq(n,this.dedupe);return s&&(a.meta=K0(K0({},a.meta),{referentialEqualities:s})),a},e.prototype.deserialize=function(t){var n=t.json,r=t.meta,a=Qv(n);return r?.values&&(a=hq(a,r.values,this)),r?.referentialEqualities&&(a=fq(a,r.referentialEqualities)),a},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,n){this.classRegistry.register(t,n)},e.prototype.registerSymbol=function(t,n){this.symbolRegistry.register(t,n)},e.prototype.registerCustom=function(t,n){this.customTransformerRegistry.register(K0({name:n},t))},e.prototype.allowErrorProps=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];(t=this.allowedErrorProps).push.apply(t,vq([],yq(n)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();Wu.serialize;Wu.deserialize;Wu.stringify;Wu.parse;Wu.registerClass;Wu.registerCustom;Wu.registerSymbol;Wu.allowErrorProps;var wq=(e,t,n,r,a,s,i,o)=>{let c=document.documentElement,d=["light","dark"];function f(g){(Array.isArray(e)?e:[e]).forEach(v=>{let E=v==="class",T=E&&s?a.map(_=>s[_]||_):a;E?(c.classList.remove(...T),c.classList.add(s&&s[g]?s[g]:g)):c.setAttribute(v,g)}),m(g)}function m(g){o&&d.includes(g)&&(c.style.colorScheme=g)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
50k":"light"}if(r)f(r);else try{let g=localStorage.getItem(t)||n,v=i&&g==="system"?b():g;f(v)}catch{}},Sq=G.createContext(void 0),Eq={setTheme:e=>{},themes:[]},kq=()=>{var e;return(e=G.useContext(Sq))!=null?e:Eq};G.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:s,value:i,themes:o,nonce:c,scriptProps:d})=>{let f=JSON.stringify([n,t,s,e,o,i,r,a]).slice(1,-1);return G.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(${wq.toString()})(${f})`}})});var G6=cL();const _q=x5(G6);function Tq(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Cq=e=>{switch(e){case"success":return Lq;case"info":return Rq;case"warning":return Mq;case"error":return Oq;default:return null}},Nq=Array(12).fill(0),Aq=({visible:e,className:t})=>St.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},St.createElement("div",{className:"sonner-spinner"},Nq.map((n,r)=>St.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Lq=St.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},St.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Mq=St.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},St.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Rq=St.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},St.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Oq=St.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},St.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Pq=St.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},St.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),St.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),jq=()=>{const[e,t]=St.useState(document.hidden);return St.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Xv=1;class Dq{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,s=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Xv++,i=this.toasts.find(c=>c.id===s),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(c=>c.id===s?(this.publish({...c,...t,id:s,title:r}),{...c,...t,id:s,dismissible:o,title:r}):c):this.addToast({title:r,...a,dismissible:o,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>
vendor: 3,006 bytes, line 50
50this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,i;const o=a.then(async d=>{if(i=["resolve",d],St.isValidElement(d))s=!1,this.create({id:r,type:"default",message:d});else if(Bq(d)&&!d.ok){s=!1;const m=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,b=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,v=typeof m=="object"&&!St.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:b,...v})}else if(d instanceof Error){s=!1;const m=typeof n.error=="function"?await n.error(d):n.error,b=typeof n.description=="function"?await n.description(d):n.description,v=typeof m=="object"&&!St.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:b,...v})}else if(n.success!==void 0){s=!1;const m=typeof n.success=="function"?await n.success(d):n.success,b=typeof n.description=="function"?await n.description(d):n.description,v=typeof m=="object"&&!St.isValidElement(m)?m:{message:m};this.create({id:r,type:"success",description:b,...v})}}).catch(async d=>{if(i=["reject",d],n.error!==void 0){s=!1;const f=typeof n.error=="function"?await n.error(d):n.error,m=typeof n.description=="function"?await n.description(d):n.description,g=typeof f=="object"&&!St.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:m,...g})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),c=()=>new Promise((d,f)=>o.then(()=>i[0]==="reject"?f(i[1]):d(i[1])).catch(f));return typeof r!="string"&&typeof r!="number"?{unwrap:c}:Object.assign(r,{unwrap:c})},this.custom=(t,n)=>{const r=n?.id||Xv++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const zi=new Dq,Iq=(e,t)=>{const n=t?.id||Xv++;return zi.addToast({title:e,...t,id:n}),n},Bq=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Fq=Iq,zq=()=>zi.toasts,Hq=()=>zi.getActiveToasts(),br=Object.assign(Fq,{success:zi.success,info:zi.info,warning:zi.warning,error:zi.error,custom:zi.custom,message:zi.message,promise:zi.promise,dismiss:zi.dismiss,loading:zi.loading},{getHistory:zq,getToasts:Hq});Tq
vendor: 14,873 bytes, line 50
50("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function
vendor: 2,453 bytes, line 50
50i2(e){return e.label!==void 0}const Uq=3,qq="24px",Vq="16px",uk=4e3,Gq=356,$q=14,Wq=45,Yq=200;function dc(...e){return e.filter(Boolean).join(" ")}function Qq(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Xq=e=>{var t,n,r,a,s,i,o,c,d;const{invert:f,toast:m,unstyled:b,interacting:g,setHeights:v,visibleToasts:E,heights:T,index:_,toasts:A,expanded:R,removeToast:P,defaultRichColors:V,closeButton:U,style:D,cancelButtonStyle:H,actionButtonStyle:q,className:W="",descriptionClassName:z="",duration:$,position:ae,gap:J,expandByDefault:xe,classNames:ee,icons:ce,closeButtonAriaLabel:se="Close toast"}=e,[be,Z]=St.useState(null),[ne,B]=St.useState(null),[O,K]=St.useState(!1),[he,we]=St.useState(!1),[Ee,ue]=St.useState(!1),[Ae,Ie]=St.useState(!1),[We,st]=St.useState(!1),[mt,_t]=St.useState(0),[fe,yt]=St.useState(0),rn=St.useRef(m.duration||$||uk),Ht=St.useRef(null),tt=St.useRef(null),Kt=_===0,Lt=_+1<=E,Rt=m.type,Bt=m.dismissible!==!1,mn=m.className||"",An=m.descriptionClassName||"",Be=St.useMemo(()=>T.findIndex(Tt=>Tt.toastId===m.id)||0,[T,m.id]),nt=St.useMemo(()=>{var Tt;return(Tt=m.closeButton)!=null?Tt:U},[m.closeButton,U]),bt=St.useMemo(()=>m.duration||$||uk,[m.duration,$]),ut=St.useRef(0),Et=St.useRef(0),Ct=St.useRef(0),In=St.useRef(null),[hn,Yt]=ae.split("-"),tn=St.useMemo(()=>T.reduce((Tt,ar,Qn)=>Qn>=Be?Tt:Tt+ar.height,0),[T,Be]),an=jq(),Ut=m.invert||f,Ln=Rt==="loading";Et.current=St.useMemo(()=>Be*J+tn,[Be,tn]),St.useEffect(()=>{rn.current=bt},[bt]),St.useEffect(()=>{K(!0)},[]),St.useEffect(()=>{const Tt=tt.current;if(Tt){const ar=Tt.getBoundingClientRect().height;return yt(ar),v(Qn=>[{toastId:m.id,height:ar,position:m.position},...Qn]),()=>v(Qn=>Qn.filter(Ur=>Ur.toastId!==m.id))}},[v,m.id]),St.useLayoutEffect(()=>{if(!O)return;const Tt=tt.current,ar=Tt.style.height;Tt.style.height="auto";const Qn=Tt.getBoundingClientRect().height;Tt.style.height=ar,yt(Qn),v(Ur=>Ur.find(Nt=>Nt.toastId===m.id)?Ur.map(Nt=>Nt.toastId===m.id?{...Nt,height:Qn}:Nt):[{toastId:m.id,height:Qn,position:m.position},...Ur])},[O,m.title,m.description,v,m.id,m.jsx,m.action,m.cancel]);const Jt=St.useCallback(()=>{we(!0),_t(Et.current),v(Tt=>Tt.filter(ar=>ar.toastId!==m.id)),setTimeout(()=>{P(m)},Yq)},[m,P,v,Et]);St.useEffect(()=>{if(m.promise&&Rt==="loading"||m.duration===1/0||m.type==="loading")return;let Tt;return R||g||an?(()=>{if(Ct.current<ut.current){const Ur=new Date().getTime()-ut.current;rn.current=rn.current-Ur}
vendor: 6,556 bytes, line 50
50Ct.current=new Date().getTime()})():(()=>{rn.current!==1/0&&(ut.current=new Date().getTime(),Tt=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),Jt()},rn.current))})(),()=>clearTimeout(Tt)},[R,g,m,Rt,an,Jt]),St.useEffect(()=>{m.delete&&(Jt(),m.onDismiss==null||m.onDismiss.call(m,m))},[Jt,m.delete]);function pn(){var Tt;if(ce?.loading){var ar;return St.createElement("div",{className:dc(ee?.loader,m==null||(ar=m.classNames)==null?void 0:ar.loader,"sonner-loader"),"data-visible":Rt==="loading"},ce.loading)}return St.createElement(Aq,{className:dc(ee?.loader,m==null||(Tt=m.classNames)==null?void 0:Tt.loader),visible:Rt==="loading"})}const ur=m.icon||ce?.[Rt]||Cq(Rt);var wn,Qt;return St.createElement("li",{tabIndex:0,ref:tt,className:dc(W,mn,ee?.toast,m==null||(t=m.classNames)==null?void 0:t.toast,ee?.default,ee?.[Rt],m==null||(n=m.classNames)==null?void 0:n[Rt]),"data-sonner-toast":"","data-rich-colors":(wn=m.richColors)!=null?wn:V,"data-styled":!(m.jsx||m.unstyled||b),"data-mounted":O,"data-promise":!!m.promise,"data-swiped":We,"data-removed":he,"data-visible":Lt,"data-y-position":hn,"data-x-position":Yt,"data-index":_,"data-front":Kt,"data-swiping":Ee,"data-dismissible":Bt,"data-type":Rt,"data-invert":Ut,"data-swipe-out":Ae,"data-swipe-direction":ne,"data-expanded":!!(R||xe&&O),"data-testid":m.testId,style:{"--index":_,"--toasts-before":_,"--z-index":A.length-_,"--offset":`${he?mt:Et.current}px`,"--initial-height":xe?"auto":`${fe}px`,...D,...m.style},onDragEnd:()=>{ue(!1),Z(null),In.current=null},onPointerDown:Tt=>{Tt.button!==2&&(Ln||!Bt||(Ht.current=new Date,_t(Et.current),Tt.target.setPointerCapture(Tt.pointerId),Tt.target.tagName!=="BUTTON"&&(ue(!0),In.current={x:Tt.clientX,y:Tt.clientY})))},onPointerUp:()=>{var Tt,ar,Qn;if(Ae||!Bt)return;In.current=null;const Ur=Number(((Tt=tt.current)==null?void 0:Tt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Za=Number(((ar=tt.current)==null?void 0:ar.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Nt=new Date().getTime()-((Qn=Ht.current)==null?void 0:Qn.getTime()),ea=be==="x"?Ur:Za,Ms=Math.abs(ea)/Nt;if(Math.abs(ea)>=Wq||Ms>.11){_t(Et.current),m.onDismiss==null||m.onDismiss.call(m,m),B(be==="x"?Ur>0?"right":"left":Za>0?"down":"up"),Jt(),Ie(!0);return}else{var Rr,Or;(Rr=tt.current)==null||Rr.style.setProperty("--swipe-amount-x","0px"),(Or=tt.current)==null||Or.style.setProperty("--swipe-amount-y","0px")}st(!1),ue(!1),Z(null)},onPointerMove:Tt=>{var ar,Qn,Ur;if(!In.current||!Bt||((ar=window.getSelection())==null?void 0:ar.toString().length)>0)return;const Nt=Tt.clientY-In.current.y,ea=Tt.clientX-In.current.x;var Ms;const Rr=(Ms=e.swipeDirections)!=null?Ms:Qq(ae);!be&&(Math.abs(ea)>1||Math.abs(Nt)>1)&&Z(Math.abs(ea)>Math.abs(Nt)?"x":"y");let Or={x:0,y:0};const yr=pr=>1/(1.5+Math.abs(pr)/20);if(be==="y"){if(Rr.includes("top")||Rr.includes("bottom"))if(Rr.includes("top")&&Nt<0||Rr.includes("bottom")&&Nt>0)Or.y=Nt;else{const pr=Nt*yr(Nt);Or.y=Math.abs(pr)<Math.abs(Nt)?pr:Nt}}else if(be==="x"&&(Rr.includes("left")||Rr.includes("right")))if(Rr.includes("left")&&ea<0||Rr.includes("right")&&ea>0)Or.x=ea;else{const pr=ea*yr(ea);Or.x=Math.abs(pr)<Math.abs(ea)?pr:ea}(Math.abs(Or.x)>0||Math.abs(Or.y)>0)&&st(!0),(Qn=tt.current)==null||Qn.style.setProperty("--swipe-amount-x",`${Or.x}px`),(Ur=tt.current)==null||Ur.style.setProperty("--swipe-amount-y",`${Or.y}px`)}},nt&&!m.jsx&&Rt!=="loading"?St.createElement("button",{"aria-label":se,"data-disabled":Ln,"data-close-button":!0,onClick:Ln||!Bt?()=>{}:()=>{Jt(),m.onDismiss==null||m.onDismiss.call(m,m)},className:dc(ee?.closeButton,m==null||(r=m.classNames)==null?void 0:r.closeButton)},(Qt=ce?.close)!=null?Qt:Pq):null,(Rt||m.icon||m.promise)&&m.icon!==null&&(ce?.[Rt]!==null||m.icon)?St.createElement("div",{"data-icon":"",className:dc(ee?.icon,m==null||(a=m.classNames)==null?void 0:a.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||pn():null,m.type!=="loading"?ur:null):null,St.createElement("div",{"data-content":"",className:dc(ee?.content,m==null||(s=m.classNames)==null?void 0:s.content)},St.createElement("div",{"data-title":"",className:dc(ee?.title,m==null||(i=m.classNames)==null?void 0:i.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?St.createElement("div",{"data-description":"",className:dc(z,An,ee?.description,m==null||(o=m.classNames)==null?void 0:o.description)},typeof m.description=="function"?m.description():m.description):null),St.isValidElement(m.cancel)?m.cancel:m.cancel&&i2(m.cancel)?St.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||H,onClick:Tt=>{i2(m.cancel)&&Bt&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,Tt),Jt())},className:dc(ee?.cancelButton,m==null||(c=m.classNames)==null?void 0:c.cancelButton)},m.cancel.label):null,St.isValidElement(m.action)?m.action:m.action&&i2(m.action)?St.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||q,onClick:Tt=>{i2(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,Tt),!Tt.defaultPrevented&&Jt())},className:dc(ee?.actionButton,m==null||(d=m.classNames)==null?void 0:d.actionButton)},m.action.label):null)};function dk(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Kq(e,t){const n={};return[e,t].forEach((r,a)=>{const s=a===1,i=s?"--mobile-offset":"--offset",o=s?Vq:qq;function c(d){["top","right","bottom","left"].forEach(f=>{n[`${i}-${f}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${i}-${d}`]=o:n[`${i}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):c(o)}),n}const Jq=St.forwardRef(function(t,n){const{id:r,invert:a,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:o,closeButton:c,className:d,offset:f,mobileOffset:m,theme:b="light",richColors:g,duration:v,style:E,visibleToasts:T=Uq,toastOptions:_,dir:A=dk(),gap:R=$q,icons:P,containerAriaLabel:V="Notifications"}=t,[U,D]=St.useState([]),H=St.useMemo(()=>r?U.filter(O=>O.toasterId===r):U.filter(O=>!O.toasterId),[U,r]),q=St.useMemo(()=>Array.from(new Set([s].concat(H.filter(O=>O.position).map(O=>O.position)))),[H,s]),[W,z]=St.useState([]),[$,ae]=St.useState(!1),[J,xe]=St.useState(!1),[ee,ce]=St.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
50k":"light"),se=St.useRef(null),be=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),Z=St.useRef(null),ne=St.useRef(!1),B=St.useCallback(O=>{D(K=>{var he;return(he=K.find(we=>we.id===O.id))!=null&&he.delete||zi.dismiss(O.id),K.filter(({id:we})=>we!==O.id)})},[]);return St.useEffect(()=>zi.subscribe(O=>{if(O.dismiss){requestAnimationFrame(()=>{D(K=>K.map(he=>he.id===O.id?{...he,delete:!0}:he))});return}setTimeout(()=>{_q.flushSync(()=>{D(K=>{const he=K.findIndex(we=>we.id===O.id);return he!==-1?[...K.slice(0,he),{...K[he],...O},...K.slice(he+1)]:[O,...K]})})})}),[U]),St.useEffect(()=>{if(b!=="system"){ce(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ce("dark"):ce("light")),typeof window>"u")return;const O=window.matchMedia("(prefers-color-scheme: dark)");try{O.addEventListener("change",({matches:K})=>{ce(K?"dark":"light")})}catch{O.addListener(({matches:he})=>{try{ce(he?"dark":"light")}catch(we){console.error(we)}})}},[b]),St.useEffect(()=>{U.length<=1&&ae(!1)},[U]),St.useEffect(()=>{const O=K=>{var he;if(i.every(ue=>K[ue]||K.code===ue)){var Ee;ae(!0),(Ee=se.current)==null||Ee.focus()}K.code==="Escape"&&(document.activeElement===se.current||(he=se.current)!=null&&he.contains(document.activeElement))&&ae(!1)};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[i]),St.useEffect(()=>{if(se.current)return()=>{Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null,ne.current=!1)}},[se.current]),St.createElement("section",{ref:n,"aria-label":`${V} ${be}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},q.map((O,K)=>{var he;const[we,Ee]=O.split("-");return H.length?St.createElement("ol",{key:O,dir:A==="auto"?dk():A,tabIndex:-1,ref:se,className:d,"data-sonner-toaster":!0,"data-sonner-theme":ee,"data-y-position":we,"data-x-position":Ee,style:{"--front-toast-height":`${((he=W[0])==null?void 0:he.height)||0}px`,"--width":`${Gq}px`,"--gap":`${R}px`,...E,...Kq(f,m)},onBlur:ue=>{ne.current&&!ue.currentTarget.contains(ue.relatedTarget)&&(ne.current=!1,Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null))},onFocus:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||ne.current||(ne.current=!0,Z.current=ue.relatedTarget)},onMouseEnter:()=>ae(!0),onMouseMove:()=>ae(!0),onMouseLeave:()=>{J||ae(!1)},onDragEnd:()=>ae(!1),onPointerDown:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||xe(!0)},onPointerUp:()=>xe(!1)},H.filter(ue=>!ue.position&&K===0||ue.position===O).map((ue,Ae)=>{var Ie,We;return St.createElement(Xq,{key:ue.id,icons:P,index:Ae,toast:ue,defaultRichColors:g,duration:(Ie=_?.duration)!=null?Ie:v,className:_?.className,descriptionClassName:_?.descriptionClassName,invert:a,visibleToasts:T,closeButton:(We=_?.closeButton)!=null?We:c,interacting:J,position:O,style:_?.style,unstyled:_?.unstyled,classNames:_?.classNames,cancelButtonStyle:_?.cancelButtonStyle,actionButtonStyle:_?.actionButtonStyle,closeButtonAriaLabel:_?.closeButtonAriaLabel,removeToast:B,toasts:H.filter(st=>st.position==ue.position),heights:W.filter(st=>st.position==ue.position),setHeights:z,expandByDefault:o,gap:R,expanded:$,swipeDirections:t.swipeDirections})})):null}))}),Zq=({...e})=>{const{theme:t="system"}=kq();return h.jsx(Jq,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function Qs(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function hk(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function kL(...e){return t=>{let n=!1;const r=e.map(a=>{const s=hk(a,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let a=0;a<r.length;a++){const s=r[a];typeof s=="function"?s():hk(e[a],null)}}}}function ko(...e){return G.useCallback(kL(...e),e)}function $6(e,t=[]){let n=[];function r(s,i){const o=G.createContext(i),c=n.length;n=[...n,i];const d=m=>{const{scope:b,children:g,...v}=m,E=b?.[e]?.[c]||o,T=G.useMemo(()=>v,Object.values(v));return h.jsx(E.Provider,{value:T,children:g})};d.displayName=s+"Provider";function f(m,b){const g=b?.[e]?.[c]||o,v=G.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[d,f]}const a=()=>{const s=n.map(i=>G.createContext(i));return function(o){const c=o?.[e]||s;return G.useMemo(()=>({[`__scope${e}`]:{...o,[e]:c}}),[o,c])}};return a.scopeName=e,[r,eV(a,...t)]}function eV(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(s){const i=r.reduce((o,{useScope:c,scopeName:d})=>{const m=c(s)[`__scope${d}`];return{...o,...m}},{});return G.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function _L(e){const t=nV(e),n=G.forwardRef((r,a)=>{const{children:s,...i}=r,o=G.Children.toArray(s),c=o.find(aV);if(c){const d=c.props.children,f=o.map(m=>m===c?G.Children.count(d)>1?G.Children.only(null):G.isValidElement(d)?d.props.children:null:m);return h.jsx(t,{...i,ref:a,children:G.isValidElement(d)?G.cloneElement(d,void 0,f):null})}return h.jsx(t,{...i,ref:a,children:s})});return n.displayName=`${e}.Slot`,n}var tV=_L("Slot");function nV(e){const t=G.forwardRef((n,r)=>{const{children:a,...s}=n;
vendor: 5,247 bytes, line 50
50if(G.isValidElement(a)){const i=iV(a),o=sV(s,a.props);return a.type!==G.Fragment&&(o.ref=r?kL(r,i):i),G.cloneElement(a,o)}return G.Children.count(a)>1?G.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var TL=Symbol("radix.slottable");function rV(e){const t=({children:n})=>h.jsx(h.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=TL,t}function aV(e){return G.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===TL}function sV(e,t){const n={...t};for(const r in t){const a=e[r],s=t[r];/^on[A-Z]/.test(r)?a&&s?n[r]=(...o)=>{const c=s(...o);return a(...o),c}:a&&(n[r]=a):r==="style"?n[r]={...a,...s}:r==="className"&&(n[r]=[a,s].filter(Boolean).join(" "))}return{...e,...n}}function iV(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var oV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ko=oV.reduce((e,t)=>{const n=_L(`Primitive.${t}`),r=G.forwardRef((a,s)=>{const{asChild:i,...o}=a,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...o,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function lV(e,t){e&&G6.flushSync(()=>e.dispatchEvent(t))}function Tl(e){const t=G.useRef(e);return G.useEffect(()=>{t.current=e}),G.useMemo(()=>(...n)=>t.current?.(...n),[])}function cV(e,t=globalThis?.document){const n=Tl(e);G.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var uV="DismissableLayer",Kv="dismissableLayer.update",dV="dismissableLayer.pointerDownOutside",hV="dismissableLayer.focusOutside",fk,CL=G.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),NL=G.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:i,onDismiss:o,...c}=e,d=G.useContext(CL),[f,m]=G.useState(null),b=f?.ownerDocument??globalThis?.document,[,g]=G.useState({}),v=ko(t,D=>m(D)),E=Array.from(d.layers),[T]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),_=E.indexOf(T),A=f?E.indexOf(f):-1,R=d.layersWithOutsidePointerEventsDisabled.size>0,P=A>=_,V=mV(D=>{const H=D.target,q=[...d.branches].some(W=>W.contains(H));!P||q||(a?.(D),i?.(D),D.defaultPrevented||o?.())},b),U=gV(D=>{const H=D.target;[...d.branches].some(W=>W.contains(H))||(s?.(D),i?.(D),D.defaultPrevented||o?.())},b);return cV(D=>{A===d.layers.size-1&&(r?.(D),!D.defaultPrevented&&o&&(D.preventDefault(),o()))},b),G.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(fk=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),pk(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=fk)}},[f,b,n,d]),G.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),pk())},[f,d]),G.useEffect(()=>{const D=()=>g({});return document.addEventListener(Kv,D),()=>document.removeEventListener(Kv,D)},[]),h.jsx(Ko.div,{...c,ref:v,style:{pointerEvents:R?P?"auto":"none":void 0,...e.style},onFocusCapture:Qs(e.onFocusCapture,U.onFocusCapture),onBlurCapture:Qs(e.onBlurCapture,U.onBlurCapture),onPointerDownCapture:Qs(e.onPointerDownCapture,V.onPointerDownCapture)})});NL.displayName=uV;var fV="DismissableLayerBranch",pV=G.forwardRef((e,t)=>{const n=G.useContext(CL),r=G.useRef(null),a=ko(t,r);return G.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),h.jsx(Ko.div,{...e,ref:a})});pV.displayName=fV;function mV(e,t=globalThis?.document){const n=Tl(e),r=G.useRef(!1),a=G.useRef(()=>{});return G.useEffect(()=>{const s=o=>{if(o.target&&!r.current){let c=function(){AL(dV,n,d,{discrete:!0})};const d={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function gV(e,t=globalThis?.document){const n=Tl(e),r=G.useRef(!1);return G.useEffect(()=>{const a=s=>{s.target&&!r.current&&AL(hV,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pk(){const e=new CustomEvent(Kv);document.dispatchEvent(e)}function AL(e,t,n,{discrete:r}){const a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?lV(a,s):a.dispatchEvent(s)}var np=globalThis?.document?G.useLayoutEffect:()=>{};const xV=["top","right","bottom","left"],Zd=Math.min,xo=Math.max,Sx=Math.round,o2=Math.floor,Nc=e=>({x:e,y:e}
vendor: 14,510 bytes, line 50
50),bV={left:"right",right:"left",bottom:"top",top:"bottom"},yV={start:"end",end:"start"};function Jv(e,t,n){return xo(e,Zd(t,n))}function Fu(e,t){return typeof e=="function"?e(t):e}function zu(e){return e.split("-")[0]}function fp(e){return e.split("-")[1]}function W6(e){return e==="x"?"y":"x"}function Y6(e){return e==="y"?"height":"width"}const vV=new Set(["top","bottom"]);function Ec(e){return vV.has(zu(e))?"y":"x"}function Q6(e){return W6(Ec(e))}function wV(e,t,n){n===void 0&&(n=!1);const r=fp(e),a=Q6(e),s=Y6(a);let i=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ex(i)),[i,Ex(i)]}function SV(e){const t=Ex(e);return[Zv(e),t,Zv(t)]}function Zv(e){return e.replace(/start|end/g,t=>yV[t])}const mk=["left","right"],gk=["right","left"],EV=["top","bottom"],kV=["bottom","top"];function _V(e,t,n){switch(e){case"top":case"bottom":return n?t?gk:mk:t?mk:gk;case"left":case"right":return t?EV:kV;default:return[]}}function TV(e,t,n,r){const a=fp(e);let s=_V(zu(e),n==="start",r);return a&&(s=s.map(i=>i+"-"+a),t&&(s=s.concat(s.map(Zv)))),s}function Ex(e){return e.replace(/left|right|bottom|top/g,t=>bV[t])}function CV(e){return{top:0,right:0,bottom:0,left:0,...e}}function LL(e){return typeof e!="number"?CV(e):{top:e,right:e,bottom:e,left:e}}function kx(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function xk(e,t,n){let{reference:r,floating:a}=e;const s=Ec(t),i=Q6(t),o=Y6(i),c=zu(t),d=s==="y",f=r.x+r.width/2-a.width/2,m=r.y+r.height/2-a.height/2,b=r[o]/2-a[o]/2;let g;switch(c){case"top":g={x:f,y:r.y-a.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:m};break;case"left":g={x:r.x-a.width,y:m};break;default:g={x:r.x,y:r.y}}switch(fp(t)){case"start":g[i]-=b*(n&&d?-1:1);break;case"end":g[i]+=b*(n&&d?-1:1);break}return g}const NV=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:s=[],platform:i}=n,o=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:m}=xk(d,r,c),b=r,g={},v=0;for(let E=0;E<o.length;E++){const{name:T,fn:_}=o[E],{x:A,y:R,data:P,reset:V}=await _({x:f,y:m,initialPlacement:r,placement:b,strategy:a,middlewareData:g,rects:d,platform:i,elements:{reference:e,floating:t}});f=A??f,m=R??m,g={...g,[T]:{...g[T],...P}},V&&v<=50&&(v++,typeof V=="object"&&(V.placement&&(b=V.placement),V.rects&&(d=V.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):V.rects),{x:f,y:m}=xk(d,b,c)),E=-1)}return{x:f,y:m,placement:b,strategy:a,middlewareData:g}};async function b1(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:s,rects:i,elements:o,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:b=!1,padding:g=0}=Fu(t,e),v=LL(g),T=o[b?m==="floating"?"reference":"floating":m],_=kx(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(T)))==null||n?T:T.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(o.floating)),boundary:d,rootBoundary:f,strategy:c})),A=m==="floating"?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o.floating)),P=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},V=kx(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:A,offsetParent:R,strategy:c}):A);return{top:(_.top-V.top+v.top)/P.y,bottom:(V.bottom-_.bottom+v.bottom)/P.y,left:(_.left-V.left+v.left)/P.x,right:(V.right-_.right+v.right)/P.x}}const AV=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:s,platform:i,elements:o,middlewareData:c}=t,{element:d,padding:f=0}=Fu(e,t)||{};if(d==null)return{};const m=LL(f),b={x:n,y:r},g=Q6(a),v=Y6(g),E=await i.getDimensions(d),T=g==="y",_=T?"top":"left",A=T?"bottom":"right",R=T?"clientHeight":"clientWidth",P=s.reference[v]+s.reference[g]-b[g]-s.floating[v],V=b[g]-s.reference[g],U=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let D=U?U[R]:0;(!D||!await(i.isElement==null?void 0:i.isElement(U)))&&(D=o.floating[R]||s.floating[v]);const H=P/2-V/2,q=D/2-E[v]/2-1,W=Zd(m[_],q),z=Zd(m[A],q),$=W,ae=D-E[v]-z,J=D/2-E[v]/2+H,xe=Jv($,J,ae),ee=!c.arrow&&fp(a)!=null&&J!==xe&&s.reference[v]/2-(J<$?W:z)-E[v]/2<0,ce=ee?J<$?J-$:J-ae:0;return{[g]:b[g]+ce,data:{[g]:xe,centerOffset:J-xe-ce,...ee&&{alignmentOffset:ce}},reset:ee}}}),LV=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:s,rects:i,initialPlacement:o,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:E=!0,...T}=Fu(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const _=zu(a),A=Ec(o),R=zu(o)===o,P=await(c.isRTL==null?void 0:c.isRTL(d.floating)),V=b||(R||!E?[Ex(o)]:SV(o)),U=v!=="none";!b&&U&&V.push(...TV(o,E,v,P));const D=[o,...V],H=await b1(t,T),q=[];let W=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&q.push(H[_]),m){const J=wV(a,i,P);q.push(H[J[0]],H[J[1]])}if(W=[...W,{placement:a,overflows:q}],!q.every(J=>J<=0)){var z,$;const J=(((z=s.flip)==null?void 0:z.index)||0)+1,xe=D[J];if(xe&&(!(m==="alignment"?A!==Ec(xe):!1)||W.every(se=>Ec(se.placement)===A?se.overflows[0]>0:!0)))return{data:{index:J,overflows:W},reset:{placement:xe}};let ee=($=W.filter(ce=>ce.overflows[0]<=0).sort((ce,se)=>ce.overflows[1]-se.overflows[1])[0])==null?void 0:$.placement;if(!ee)switch(g){case"bestFit":{var ae;const ce=(ae=W.filter(se=>{if(U){const be=Ec(se.placement);return be===A||be==="y"}return!0}).map(se=>[se.placement,se.overflows.filter(be=>be>0).reduce((be,Z)=>be+Z,0)]).sort((se,be)=>se[1]-be[1])[0])==null?void 0:ae[0];ce&&(ee=ce);break}case"initialPlacement":ee=o;break}if(a!==ee)return{reset:{placement:ee}}}return{}}}};function bk(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yk(e){return xV.some(t=>e[t]>=0)}const MV=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Fu(e,t);switch(r){case"referenceHidden":{const s=await b1(t,{...a,elementContext:"reference"}),i=bk(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:yk(i)}}}case"escaped":{const s=await b1(t,{...a,altBoundary:!0}),i=bk(s,n.floating);return{data:{escapedOffsets:i,escaped:yk(i)}}}default:return{}}}}},ML=new Set(["left","top"]);async function RV(e,t){const{placement:n,platform:r,elements:a}=e,s=await(r.isRTL==null?void 0:r.isRTL(a.floating)),i=zu(n),o=fp(n),c=Ec(n)==="y",d=ML.has(i)?-1:1,f=s&&c?-1:1,m=Fu(t,e);let{mainAxis:b,crossAxis:g,alignmentAxis:v}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return o&&typeof v=="number"&&(g=o==="end"?v*-1:v),c?{x:g*f,y:b*d}:{x:b*d,y:g*f}}const OV=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:s,placement:i,middlewareData:o}=t,c=await RV(t,e);return i===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:a+c.x,y:s+c.y,data:{...c,placement:i}}}}},PV=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:o={fn:T=>{let{x:_,y:A}=T;return{x:_,y:A}}},...c}=Fu(e,t),d={x:n,y:r},f=await b1(t,c),m=Ec(zu(a)),b=W6(m);let g=d[b],v=d[m];if(s){const T=b==="y"?"top":"left",_=b==="y"?"bottom":"right",A=g+f[T],R=g-f[_];g=Jv(A,g,R)}if(i){const T=m==="y"?"top":"left",_=m==="y"?"bottom":"right",A=v+f[T],R=v-f[_];v=Jv(A,v,R)}const E=o.fn({...t,[b]:g,[m]:v});return{...E,data:{x:E.x-n,y:E.y-r,enabled:{[b]:s,[m]:i}}}}}},jV=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:s,middlewareData:i}=t,{offset:o=0,mainAxis:c=!0,crossAxis:d=!0}=Fu(e,t),f={x:n,y:r},m=Ec(a),b=W6(m);let g=f[b],v=f[m];const E=Fu(o,t),T=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(c){const R=b==="y"?"height":"width",P=s.reference[b]-s.floating[R]+T.mainAxis,V=s.reference[b]+s.reference[R]-T.mainAxis;g<P?g=P:g>V&&(g=V)}if(d){var _,A;const R=b==="y"?"width":"height",P=ML.has(zu(a)),V=s.reference[m]-s.floating[R]+(P&&((_=i.offset)==null?void 0:_[m])||0)+(P?0:T.crossAxis),U=s.reference[m]+s.reference[R]+(P?0:((A=i.offset)==null?void 0:A[m])||0)-(P?T.crossAxis:0);v<V?v=V:v>U&&(v=U)}return{[b]:g,[m]:v}}}},DV=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:s,platform:i,elements:o}=t,{apply:c=()=>{},...d}=Fu(e,t),f=await b1(t,d),m=zu(a),b=fp(a),g=Ec(a)==="y",{width:v,height:E}=s.floating;let T,_;m==="top"||m==="bottom"?(T=m,_=b===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(_=m,T=b==="end"?"top":"bottom");const A=E-f.top-f.bottom,R=v-f.left-f.right,P=Zd(E-f[T],A),V=Zd(v-f[_],R),U=!t.middlewareData.shift;let D=P,H=V;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(H=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=A),U&&!b){const W=xo(f.left,0),z=xo(f.right,0),$=xo(f.top,0),ae=xo(f.bottom,0);g?H=v-2*(W!==0||z!==0?W+z:xo(f.left,f.right)):D=E-2*($!==0||ae!==0?$+ae:xo(f.top,f.bottom))}await c({...t,availableWidth:H,availableHeight:D});const q=await i.getDimensions(o.floating);return v!==q.width||E!==q.height?{reset:{rects:!0}}:{}}}};function _5(){return typeof window<"u"}function pp(e){return RL(e)?(e.nodeName||"").toLowerCase():"#document"}function wo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pc(e){var t;return(t=(RL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function RL(e){return _5()?e instanceof Node||e instanceof wo(e).Node:!1}function Al(e){return _5()?e instanceof Element||e instanceof wo(e).Element:!1}function Rc(e){return _5()?e instanceof HTMLElement||e instanceof wo(e).HTMLElement:!1}function vk(e){return!_5()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wo(e).ShadowRoot}const IV=new Set(["inline","contents"]);function V1(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Ll(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!IV.has(a)}const BV=new Set(["table","td","th"]);function FV(e){return BV.has(pp(e))}const zV=[":popover-open",":modal"];function T5(e){return zV.some(t=>{try{return e.matches(t)}catch{return!1}})}const HV=["transform","translate","scale","rotate","perspective"],UV=["transform","translate","scale","rotate","perspective","filter"],qV=["paint","layout","strict","content"];function X6(e){const t=K6(),n=Al(e)?Ll(e):e;return HV.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||UV.some(r=>(n.willChange||"").includes(r))||qV.some(r=>(n.contain||"").includes(r))}function VV(e){let t=e0(e);for(;Rc(t)&&!rp(t);){if(X6(t))return t;if(T5(t))return null;t=e0(t)}return null}function K6(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const GV=new Set(["html","body","#document"]);function rp(e){return GV.has(pp(e))}function Ll(e){return wo(e).getComputedStyle(e)}function C5(e){return Al(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function e0(e){if(pp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vk(e)&&e.host||Pc(e);return vk(t)?t.host:t}function OL(e){const t=e0(e);return rp(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rc(t)&&V1(t)?t:OL(t)}function y1(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=OL(e),s=a===((r=e.ownerDocument)==null?void 0:r.body),i=wo(a);if(s){const o=e3(i);return t.concat(i,i.visualViewport||[],V1(a)?a:[],o&&n?y1(o):[])}return t.concat(a,y1(a,[],n))}function e3(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function PL(e){const t=Ll(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Rc(e),s=a?e.offsetWidth:n,i=a?e.offsetHeight:r,o=Sx(n)!==s||Sx(r)!==i;return o&&(n=s,r=i),{width:n,height:r,$:o}}function J6(e){return Al(e)?e:e.contextElement}function qf(e){const t=J6(e);if(!Rc(t))return Nc(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:s}=PL(t);let i=(s?Sx(n.width):n.width)/r,o=(s?Sx(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!o||!Number.isFinite(o))&&(o=1),{x:i,y:o}}const $V=Nc(0);function jL(e){const t=wo(e);return!K6()||!t.visualViewport?$V:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function WV(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wo(e)?!1:t}function hh(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),s=J6(e);let i=Nc(1);t&&(r?Al(r)&&(i=qf(r)):i=qf(e));const o=WV(s,n,r)?jL(s):Nc(0);let c=(a.left+o.x)/i.x,d=(a.top+o.y)/i.y,f=a.width/i.x,m=a.height/i.y;if(s){const b=wo(s),g=r&&Al(r)?wo(r):r;let v=b,E=e3(v);for(;E&&r&&g!==v;){const T=qf(E),_=E.getBoundingClientRect(),A=Ll(E),R=_.left+(E.clientLeft+parseFloat(A.paddingLeft))*T.x,P=_.top+(E.clientTop+parseFloat(A.paddingTop))*T.y;c*=T.x,d*=T.y,f*=T.x,m*=T.y,c+=R,d+=P,v=wo(E),E=e3(v)}}return kx({width:f,height:m,x:c,y:d})}function N5(e,t){const n=C5(e).scrollLeft;return t?t.left+n:hh(Pc(e)).left+n}function DL(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-N5(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function YV(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const s=a==="fixed",i=Pc(r),o=t?T5(t.floating):!1;if(r===i||o&&s)return n;let c={scrollLeft:0,scrollTop:0},d=Nc(1);const f=Nc(0),m=Rc(r);if((m||!m&&!s)&&((pp(r)!=="body"||V1(i))&&(c=C5(r)),Rc(r))){const g=hh(r);d=qf(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const b=i&&!m&&!s?DL(i,c):Nc(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+b.x,y:n.y*d.y-c.scrollTop*d.y+f.y+b.y}}function QV(e){return Array.from(e.getClientRects())}function XV(e){const t=Pc(e),n=C5(e),r=e.ownerDocument.body,a=xo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=xo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+N5(e);const o=-n.scrollTop;return Ll(r).direction==="rtl"&&(i+=xo(t.clientWidth,r.clientWidth)-a),{width:a,height:s,x:i,y:o}}const wk=25;
vendor: 5,081 bytes, line 50
50function KV(e,t){const n=wo(e),r=Pc(e),a=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,o=0,c=0;if(a){s=a.width,i=a.height;const f=K6();(!f||f&&t==="fixed")&&(o=a.offsetLeft,c=a.offsetTop)}const d=N5(r);if(d<=0){const f=r.ownerDocument,m=f.body,b=getComputedStyle(m),g=f.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,v=Math.abs(r.clientWidth-m.clientWidth-g);v<=wk&&(s-=v)}else d<=wk&&(s+=d);return{width:s,height:i,x:o,y:c}}const JV=new Set(["absolute","fixed"]);function ZV(e,t){const n=hh(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,s=Rc(e)?qf(e):Nc(1),i=e.clientWidth*s.x,o=e.clientHeight*s.y,c=a*s.x,d=r*s.y;return{width:i,height:o,x:c,y:d}}function Sk(e,t,n){let r;if(t==="viewport")r=KV(e,n);else if(t==="document")r=XV(Pc(e));else if(Al(t))r=ZV(t,n);else{const a=jL(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return kx(r)}function IL(e,t){const n=e0(e);return n===t||!Al(n)||rp(n)?!1:Ll(n).position==="fixed"||IL(n,t)}function eG(e,t){const n=t.get(e);if(n)return n;let r=y1(e,[],!1).filter(o=>Al(o)&&pp(o)!=="body"),a=null;const s=Ll(e).position==="fixed";let i=s?e0(e):e;for(;Al(i)&&!rp(i);){const o=Ll(i),c=X6(i);!c&&o.position==="fixed"&&(a=null),(s?!c&&!a:!c&&o.position==="static"&&!!a&&JV.has(a.position)||V1(i)&&!c&&IL(e,i))?r=r.filter(f=>f!==i):a=o,i=e0(i)}return t.set(e,r),r}function tG(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const i=[...n==="clippingAncestors"?T5(t)?[]:eG(t,this._c):[].concat(n),r],o=i[0],c=i.reduce((d,f)=>{const m=Sk(t,f,a);return d.top=xo(m.top,d.top),d.right=Zd(m.right,d.right),d.bottom=Zd(m.bottom,d.bottom),d.left=xo(m.left,d.left),d},Sk(t,o,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function nG(e){const{width:t,height:n}=PL(e);return{width:t,height:n}}function rG(e,t,n){const r=Rc(t),a=Pc(t),s=n==="fixed",i=hh(e,!0,s,t);let o={scrollLeft:0,scrollTop:0};const c=Nc(0);function d(){c.x=N5(a)}if(r||!r&&!s)if((pp(t)!=="body"||V1(a))&&(o=C5(t)),r){const g=hh(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else a&&d();s&&!r&&a&&d();const f=a&&!r&&!s?DL(a,o):Nc(0),m=i.left+o.scrollLeft-c.x-f.x,b=i.top+o.scrollTop-c.y-f.y;return{x:m,y:b,width:i.width,height:i.height}}function Hy(e){return Ll(e).position==="static"}function Ek(e,t){if(!Rc(e)||Ll(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Pc(e)===n&&(n=n.ownerDocument.body),n}function BL(e,t){const n=wo(e);if(T5(e))return n;if(!Rc(e)){let a=e0(e);for(;a&&!rp(a);){if(Al(a)&&!Hy(a))return a;a=e0(a)}return n}let r=Ek(e,t);for(;r&&FV(r)&&Hy(r);)r=Ek(r,t);return r&&rp(r)&&Hy(r)&&!X6(r)?n:r||VV(e)||n}const aG=async function(e){const t=this.getOffsetParent||BL,n=this.getDimensions,r=await n(e.floating);return{reference:rG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function sG(e){return Ll(e).direction==="rtl"}const iG={convertOffsetParentRelativeRectToViewportRelativeRect:YV,getDocumentElement:Pc,getClippingRect:tG,getOffsetParent:BL,getElementRects:aG,getClientRects:QV,getDimensions:nG,getScale:qf,isElement:Al,isRTL:sG};function FL(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function oG(e,t){let n=null,r;const a=Pc(e);function s(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function i(o,c){o===void 0&&(o=!1),c===void 0&&(c=1),s();const d=e.getBoundingClientRect(),{left:f,top:m,width:b,height:g}=d;if(o||t(),!b||!g)return;const v=o2(m),E=o2(a.clientWidth-(f+b)),T=o2(a.clientHeight-(m+g)),_=o2(f),R={rootMargin:-v+"px "+-E+"px "+-T+"px "+-_+"px",threshold:xo(0,Zd(1,c))||1};let P=!0;function V(U){const D=U[0].intersectionRatio;if(D!==c){if(!P)return i();D?i(!1,D):r=setTimeout(()=>{i(!1,1e-7)},1e3)}D===1&&!FL(d,e.getBoundingClientRect())&&i(),P=!1}try{n=new IntersectionObserver(V,{...R,root:a.ownerDocument})}catch{n=new IntersectionObserver(V,R)}n.observe(e)}return i(!0),s}function lG(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=J6(e),f=a||s?[...d?y1(d):[],...y1(t)]:[];f.forEach(_=>{a&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const m=d&&o?oG(d,n):null;let b=-1,g=null;i&&(g=new ResizeObserver(_=>{let[A]=_;A&&A.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=g)==null||R.observe(t)})),n()}),d&&!c&&g.observe(d),g.observe(t));let v,E=c?hh(e):null;c&&T();function T(){const _=hh(e);E&&!FL(E,_)&&n(),E=_,v=requestAnimationFrame(T)}return n(),()=>{var _;f.forEach(A=>{a&&A.removeEventListener("scroll",n),s&&A.removeEventListener("resize",n)}),m?.(),(_=g)==null||_.disconnect(),g=null,c&&cancelAnimationFrame(v)}}const cG=OV,uG=PV,dG=LV,hG=DV,fG=MV,kk=AV,pG=jV,mG=(e,t,n)=>{const r=new Map,a={platform:iG,...n},s={...a.platform,_c:r};return NV(e,t,{...a,platform:s})};var gG=typeof document<"u",xG=function(){},ex=gG?G.useLayoutEffect:xG;function _x(e,t){if(e===t)return!0;
vendor: 6,301 bytes, line 50
50if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_x(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const s=a[r];if(!(s==="_owner"&&e.$$typeof)&&!_x(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function zL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _k(e,t){const n=zL(e);return Math.round(t*n)/n}function Uy(e){const t=G.useRef(e);return ex(()=>{t.current=e}),t}function bG(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,floating:i}={},transform:o=!0,whileElementsMounted:c,open:d}=e,[f,m]=G.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,g]=G.useState(r);_x(b,r)||g(r);const[v,E]=G.useState(null),[T,_]=G.useState(null),A=G.useCallback(se=>{se!==U.current&&(U.current=se,E(se))},[]),R=G.useCallback(se=>{se!==D.current&&(D.current=se,_(se))},[]),P=s||v,V=i||T,U=G.useRef(null),D=G.useRef(null),H=G.useRef(f),q=c!=null,W=Uy(c),z=Uy(a),$=Uy(d),ae=G.useCallback(()=>{if(!U.current||!D.current)return;const se={placement:t,strategy:n,middleware:b};z.current&&(se.platform=z.current),mG(U.current,D.current,se).then(be=>{const Z={...be,isPositioned:$.current!==!1};J.current&&!_x(H.current,Z)&&(H.current=Z,G6.flushSync(()=>{m(Z)}))})},[b,t,n,z,$]);ex(()=>{d===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,m(se=>({...se,isPositioned:!1})))},[d]);const J=G.useRef(!1);ex(()=>(J.current=!0,()=>{J.current=!1}),[]),ex(()=>{if(P&&(U.current=P),V&&(D.current=V),P&&V){if(W.current)return W.current(P,V,ae);ae()}},[P,V,ae,W,q]);const xe=G.useMemo(()=>({reference:U,floating:D,setReference:A,setFloating:R}),[A,R]),ee=G.useMemo(()=>({reference:P,floating:V}),[P,V]),ce=G.useMemo(()=>{const se={position:n,left:0,top:0};if(!ee.floating)return se;const be=_k(ee.floating,f.x),Z=_k(ee.floating,f.y);return o?{...se,transform:"translate("+be+"px, "+Z+"px)",...zL(ee.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:be,top:Z}},[n,o,ee.floating,f.x,f.y]);return G.useMemo(()=>({...f,update:ae,refs:xe,elements:ee,floatingStyles:ce}),[f,ae,xe,ee,ce])}const yG=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?kk({element:r.current,padding:a}).fn(n):{}:r?kk({element:r,padding:a}).fn(n):{}}}},vG=(e,t)=>({...cG(e),options:[e,t]}),wG=(e,t)=>({...uG(e),options:[e,t]}),SG=(e,t)=>({...pG(e),options:[e,t]}),EG=(e,t)=>({...dG(e),options:[e,t]}),kG=(e,t)=>({...hG(e),options:[e,t]}),_G=(e,t)=>({...fG(e),options:[e,t]}),TG=(e,t)=>({...yG(e),options:[e,t]});var CG="Arrow",HL=G.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...s}=e;return h.jsx(Ko.svg,{...s,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});HL.displayName=CG;var NG=HL;function AG(e){const[t,n]=G.useState(void 0);return np(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let i,o;if("borderBoxSize"in s){const c=s.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,o=d.blockSize}else i=e.offsetWidth,o=e.offsetHeight;n({width:i,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var UL="Popper",[qL,VL]=$6(UL),[y5e,GL]=qL(UL),$L="PopperAnchor",WL=G.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,s=GL($L,n),i=G.useRef(null),o=ko(t,i),c=G.useRef(null);return G.useEffect(()=>{const d=c.current;c.current=r?.current||i.current,d!==c.current&&s.onAnchorChange(c.current)}),r?null:h.jsx(Ko.div,{...a,ref:o})});WL.displayName=$L;var Z6="PopperContent",[LG,MG]=qL(Z6),YL=G.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:s="center",alignOffset:i=0,arrowPadding:o=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:b=!1,updatePositionStrategy:g="optimized",onPlaced:v,...E}=e,T=GL(Z6,n),[_,A]=G.useState(null),R=ko(t,Ee=>A(Ee)),[P,V]=G.useState(null),U=AG(P),D=U?.width??0,H=U?.height??0,q=r+(s!=="center"?"-"+s:""),W=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},z=Array.isArray(d)?d:[d],$=z.length>0,ae={padding:W,boundary:z.filter(OG),altBoundary:$},{refs:J,floatingStyles:xe,placement:ee,isPositioned:ce,middlewareData:se}=bG({strategy:"fixed",placement:q,whileElementsMounted:(...Ee)=>lG(...Ee,{animationFrame:g==="always"}),elements:{reference:T.anchor},middleware:[vG({mainAxis:a+H,alignmentAxis:i}),c&&wG({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?SG():void 0,...ae}),c&&EG({...ae}),kG({...ae,apply:({elements:Ee,rects:ue,availableWidth:Ae,availableHeight:Ie})=>{const{width:We,height:st}=ue.reference,mt=Ee.floating.style;mt.setProperty("--radix-popper-available-width",`${Ae}px`),mt.setProperty("--radix-popper-available-height",`${Ie}px`),mt.setProperty("--radix-popper-anchor-width",`${We}px`),mt.setProperty("--radix-popper-anchor-height",`${st}px`)}}),P&&TG({element:P,padding:o}),PG({arrowWidth:D,arrowHeight:H}),b&&_G({strategy:"referenceHidden",...ae})]}),[be,Z]=KL(ee),ne=Tl(v);np(()=>{ce&&ne?.()},[ce,ne]);const B=se.arrow?.x,O=se.arrow?.y,K=se.arrow?.centerOffset!==0,[he,we]=G.useState();return np(()=>{_&&we(window.getComputedStyle(_).zIndex)},[_]),h.jsx("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...xe,transform:ce?xe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[se.transformOrigin?.x,se.transformOrigin?.y].join(" "),...se.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(LG,{scope:n,placedSide:be,onArrowChange:V,arrowX:B,arrowY:O,shouldHideArrow:K,children:h.jsx(Ko.div,{"data-side":be,"data-align":Z,...E,ref:R,style:{...E.style,animation:ce?void 0:"none"}})})})});YL.displayName=Z6;var QL="PopperArrow",RG={top:"bottom",right:"left",bottom:"top",left:"r
50ight"},XL=G.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,s=MG(QL,r),i=RG[s.placedSide];return h.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:h.jsx(NG,{...a,ref:n,style:{...a.style,display:"block"}})})});XL.displayName=QL;function OG(e){return e!==null}var PG=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:a}=t,i=a.arrow?.centerOffset!==0,o=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,f]=KL(n),m={start:"0%",center:"50%",end:"100%"}[f],b=(a.arrow?.x??0)+o/2,g=(a.arrow?.y??0)+c/2;let v="",E="";return d==="bottom"?(v=i?m:`${b}px`,E=`${-c}px`):d==="top"?(v=i?m:`${b}px`,E=`${r.floating.height+c}px`):d==="right"?(v=`${-c}px`,E=i?m:`${g}px`):d==="left"&&(v=`${r.floating.width+c}px`,E=i?m:`${g}px`),{data:{x:v,y:E}}}});function KL(e){const[t,n="center"]=e.split("-");return[t,n]}var jG=WL,DG=YL,IG=XL;function BG(e,t){return G.useReducer((n,r)=>t[n][r]??n,e)}var mp=e=>{const{present:t,children:n}=e,r=FG(t),a=typeof n=="function"?n({present:r.isPresent}):G.Children.only(n),s=ko(r.ref,zG(a));return typeof n=="function"||r.isPresent?G.cloneElement(a,{ref:s}):null};mp.displayName="Presence";function FG(e){const[t,n]=G.useState(),r=G.useRef(null),a=G.useRef(e),s=G.useRef("none"),i=e?"mounted":"unmounted",[o,c]=BG(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return G.useEffect(()=>{const d=l2(r.current);s.current=o==="mounted"?d:"none"},[o]),np(()=>{const d=r.current,f=a.current;if(f!==e){const b=s.current,g=l2(d);e?c("MOUNT"):g==="none"||d?.display==="none"?c("UNMOUNT"):c(f&&b!==g?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),np(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,m=g=>{const E=l2(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&E&&(c("ANIMATION_END"),!a.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},b=g=>{g.target===t&&(s.current=l2(r.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:G.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function l2(e){return e?.animationName||"none"}function zG(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var HG=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),UG="VisuallyHidden",JL=G.forwardRef((e,t)=>h.jsx(Ko.span,{...e,ref:t,style:{...HG,...e.style}}));JL.displayName=UG;var qG=JL,[A5]=$6("Tooltip",[VL]),ew=VL(),ZL="TooltipProvider",VG=700,Tk="tooltip.open",[GG,eM]=A5(ZL),tM=e=>{const{__scopeTooltip:t,delayDuration:n=VG,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:s}=e,i=G.useRef(!0),o=G.useRef(!1),c=G.useRef(0);return G.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),h.jsx(GG,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:G.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:G.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:o,onPointerInTransitChange:G.useCallback(d=>{o.current=d},[]),disableHoverableContent:a,children:s})};tM.displayName=ZL;var nM="Tooltip",[v5e,L5]=A5(nM),t3="TooltipTrigger",$G=G.forwardRef((e,t)=>
vendor: 12,911 bytes, line 50
50{const{__scopeTooltip:n,...r}=e,a=L5(t3,n),s=eM(t3,n),i=ew(n),o=G.useRef(null),c=ko(t,o,a.onTriggerChange),d=G.useRef(!1),f=G.useRef(!1),m=G.useCallback(()=>d.current=!1,[]);return G.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),h.jsx(jG,{asChild:!0,...i,children:h.jsx(Ko.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:c,onPointerMove:Qs(e.onPointerMove,b=>{b.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(a.onTriggerEnter(),f.current=!0)}),onPointerLeave:Qs(e.onPointerLeave,()=>{a.onTriggerLeave(),f.current=!1}),onPointerDown:Qs(e.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:Qs(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:Qs(e.onBlur,a.onClose),onClick:Qs(e.onClick,a.onClose)})})});$G.displayName=t3;var WG="TooltipPortal",[w5e,YG]=A5(WG,{forceMount:void 0}),ap="TooltipContent",QG=G.forwardRef((e,t)=>{const n=YG(ap,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...s}=e,i=L5(ap,e.__scopeTooltip);return h.jsx(mp,{present:r||i.open,children:i.disableHoverableContent?h.jsx(rM,{side:a,...s,ref:t}):h.jsx(XG,{side:a,...s,ref:t})})}),XG=G.forwardRef((e,t)=>{const n=L5(ap,e.__scopeTooltip),r=eM(ap,e.__scopeTooltip),a=G.useRef(null),s=ko(t,a),[i,o]=G.useState(null),{trigger:c,onClose:d}=n,f=a.current,{onPointerInTransitChange:m}=r,b=G.useCallback(()=>{o(null),m(!1)},[m]),g=G.useCallback((v,E)=>{const T=v.currentTarget,_={x:v.clientX,y:v.clientY},A=t$(_,T.getBoundingClientRect()),R=n$(_,A),P=r$(E.getBoundingClientRect()),V=s$([...R,...P]);o(V),m(!0)},[m]);return G.useEffect(()=>()=>b(),[b]),G.useEffect(()=>{if(c&&f){const v=T=>g(T,f),E=T=>g(T,c);return c.addEventListener("pointerleave",v),f.addEventListener("pointerleave",E),()=>{c.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",E)}}},[c,f,g,b]),G.useEffect(()=>{if(i){const v=E=>{const T=E.target,_={x:E.clientX,y:E.clientY},A=c?.contains(T)||f?.contains(T),R=!a$(_,i);A?b():R&&(b(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,f,i,d,b]),h.jsx(rM,{...e,ref:s})}),[KG,JG]=A5(nM,{isInside:!1}),ZG=rV("TooltipContent"),rM=G.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:s,onPointerDownOutside:i,...o}=e,c=L5(ap,n),d=ew(n),{onClose:f}=c;return G.useEffect(()=>(document.addEventListener(Tk,f),()=>document.removeEventListener(Tk,f)),[f]),G.useEffect(()=>{if(c.trigger){const m=b=>{b.target?.contains(c.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[c.trigger,f]),h.jsx(NL,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:h.jsxs(DG,{"data-state":c.stateAttribute,...d,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(ZG,{children:r}),h.jsx(KG,{scope:n,isInside:!0,children:h.jsx(qG,{id:c.contentId,role:"tooltip",children:a||r})})]})})});QG.displayName=ap;var aM="TooltipArrow",e$=G.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=ew(n);return JG(aM,n).isInside?null:h.jsx(IG,{...a,...r,ref:t})});e$.displayName=aM;function t$(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,a,s)){case s:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function n$(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function r$(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function a$(e,t){const{x:n,y:r}=e;let a=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const o=t[s],c=t[i],d=o.x,f=o.y,m=c.x,b=c.y;f>r!=b>r&&n<(m-d)*(r-f)/(b-f)+d&&(a=!a)}return a}function s$(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),i$(t)}function i$(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(a.y-i.y)>=(s.y-i.y)*(a.x-i.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(a.y-i.y)>=(s.y-i.y)*(a.x-i.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var o$=tM;function sM(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=sM(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tw(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=sM(e))&&(r&&(r+=" "),r+=t);return r}const nw="-",l$=e=>{const t=u$(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const o=i.split(nw);return o[0]===""&&o.length!==1&&o.shift(),iM(o,t)||c$(i)},getConflictingClassGroupIds:(i,o)=>{const c=n[i]||[];return o&&r[i]?[...c,...r[i]]:c}}},iM=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?iM(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(nw);return t.validators.find(({validator:i})=>i(s))?.classGroupId},Ck=/^\[(.+)\]$/,c$=e=>{if(Ck.test(e)){const t=Ck.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},u$=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)n3(n[a],r,a,t);return r},n3=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:Nk(t,a);s.classGroupId=n;return}if(typeof a=="function"){if(d$(a)){n3(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,i])=>{n3(i,Nk(t,s),n,r)})})},Nk=(e,t)=>{let n=e;return t.split(nw).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},d$=e=>e.isThemeGetter,h$=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return a(s,i),i},set(s,i){n.has(s)?n.set(s,i):a(s,i)}}},r3="!",a3=":",f$=a3.length,p$=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const s=[];let i=0,o=0,c=0,d;for(let v=0;v<a.length;v++){let E=a[v];if(i===0&&o===0){if(E===a3){s.push(a.slice(c,v)),c=v+f$;continue}if(E==="/"){d=v;continue}}E==="["?i++:E==="]"?i--:E==="("?o++:E===")"&&o--}const f=s.length===0?a:a.substring(c),m=m$(f),b=m!==f,g=d&&d>c?d-c:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:m,maybePostfixModifierPosition:g}};if(t){const a=t+a3,s=r;r=i=>i.startsWith(a)?s(i.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=s=>n({className:s,parseClassName:a})}return r},m$=e=>e.endsWith(r3)?e.substring(0,e.length-1):e.startsWith(r3)?e.substring(1):e,g$=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let s=[];return r.forEach(i=>{i[0]==="["||t[i]?(a.push(...s.sort(),i),s=[]):s.push(i)}),a.push(...s.sort()),a}},x$=e=>({cache:h$(e.cacheSize),parseClassName:p$(e),sortModifiers:g$(e),...l$(e)}),b$=/\s+/,y$=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:s}=t,i=[],o=e.trim().split(b$);let c="";for(let d=o.length-1;d>=0;d-=1){const f=o[d],{isExternal:m,modifiers:b,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:E}=n(f);if(m){c=f+(c.length>0?" "+c:c);continue}let T=!!E,_=r(T?v.substring(0,E):v);if(!_){if(!T){c=f+(c.length>0?" "+c:c);continue}if(_=r(v),!_){c=f+(c.length>0?" "+c:c);continue}T=!1}const A=s(b).join(":"),R=g?A+r3:A,P=R+_;if(i.includes(P))continue;i.push(P);const V=a(_,T);for(let U=0;U<V.length;++U){const D=V[U];i.push(R+D)}c=f+(c.length>0?" "+c:c)}return c};function v$(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=oM(t))&&(r&&(r+=" "),r+=n);return r}const oM=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=oM(e[r]))&&(n&&(n+=" "),n+=t);return n};function w$(e,...t){let n,r,a,s=i;function i(c){const d=t.reduce((f,m)=>m(f),e());return n=x$(d),r=n.cache.get,a=n.cache.set,s=o,o(c)}function o(c){const d=r(c);if(d)return d;const f=y$(c,n);return a(c,f),f}return function(){return s(v$.apply(null,arguments))}}const cs=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},lM=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cM=/^\((?:(\w[\w-]*):)?(.+)\)$/i,S$=/^\d+\/\d+$/,E$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k$=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,T$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,C$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vf=e=>S$.test(e),Dn=e=>!!e&&!Number.isNaN(Number(e)),Ld=e=>!!e&&Number.isInteger(Number(e)),qy=e=>e.endsWith("%")&&Dn(e.slice(0,-1)),ku=e=>E$.test(e),N$=()=>!0,A$=e=>k$.test(e)&&!_$.test(e),uM=()=>!1,L$=e=>T$.test(e),M$=e=>C$.test(e),R$=e=>!Vt(e)&&!Gt(e),O$=e=>gp(e,fM,uM),Vt=e=>lM.test(e),H0=e=>gp(e,pM,A$),Vy=e=>gp(e,B$,Dn),Ak=e=>gp(e,dM,uM),P$=e=>gp(e,hM,M$),c2=e=>gp(e,mM,L$),Gt=e=>cM.test(e),Em=e=>xp(e,pM),j$=e=>xp(e,F$),Lk=e=>xp(e,dM),D$=e=>xp(e,fM),I$=e=>xp(e,hM),u2=e=>xp(e,mM,!0),gp=(e,t,n)=>{const r=lM.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},xp=(e,t,n=!1)=>{const r=cM.exec(e);return r?r[1]?t(r[1]):n:!1},dM=e=>e==="position"||e==="percentage",hM=e=>e==="image"||e==="url",fM=e=>e==="length"||e==="size"||e==="bg-size",pM=e=>e==="length",B$=e=>e==="number",F$=e=>e==="family-name",mM=e=>e==="shadow",z$=()=>{const e=cs("color"),t=cs("font"),n=cs("text"),r=cs("font-weight"),a=cs("tracking"),s=cs("leading"),i=cs("breakpoint"),o=cs("container"),c=cs("spacing"),d=cs("radius"),f=cs("shadow"),m=cs("inset-shadow"),b=cs("text-shadow"),g=cs("drop-shadow"),v=cs("blur"),E=cs("perspective"),T=cs("aspect"),_=cs("ease"),A=cs("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...P(),Gt,Vt],U=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],H=()=>[Gt,Vt,c],q=()=>[vf,"full","auto",...H()],W=()=>[Ld,"none","subgrid",Gt,Vt],z=()=>["auto",{span:["full",Ld,Gt,Vt]},Ld,Gt,Vt],$=()=>[Ld,"auto",Gt,Vt],ae=()=>["auto","min","max","fr",Gt,Vt],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],xe=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...H()],ce=()=>[vf,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],se=()=>[e,Gt,Vt],be=()=>[...P(),Lk,Ak,{position:[Gt,Vt]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",D$,O$,{size:[Gt,Vt]}],B=()=>[qy,Em,H0],O=()=>["","none","full",d,Gt,Vt],K=()=>["",Dn,Em,H0],he=()=>["solid","dashed","dotted","double"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ee=()=>[Dn,qy,Lk,Ak],ue=()=>["","none",v,Gt,Vt],Ae=()=>["none",Dn,Gt,Vt],Ie=()=>["none",Dn,Gt,Vt],We=()=>[Dn,Gt,Vt],st=()=>[vf,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ku],breakpoint:[ku],color:[N$],container:[ku],"drop-shadow":[ku],ease:["in","out","in-out"],font:[R$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ku],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ku],shadow:[ku],spacing:["px",Dn],text:[ku],"text-shadow":[ku],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",vf,Vt,Gt,T]}
vendor: 12,486 bytes, line 50
50],container:["container"],columns:[{columns:[Dn,Vt,Gt,o]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:V()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:q()}],"inset-x":[{"inset-x":q()}],"inset-y":[{"inset-y":q()}],start:[{start:q()}],end:[{end:q()}],top:[{top:q()}],right:[{right:q()}],bottom:[{bottom:q()}],left:[{left:q()}],visibility:["visible","invisible","collapse"],z:[{z:[Ld,"auto",Gt,Vt]}],basis:[{basis:[vf,"full","auto",o,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Dn,vf,"auto","initial","none",Vt]}],grow:[{grow:["",Dn,Gt,Vt]}],shrink:[{shrink:["",Dn,Gt,Vt]}],order:[{order:[Ld,"first","last","none",Gt,Vt]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...xe(),"normal"]}],"justify-self":[{"justify-self":["auto",...xe()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...xe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...xe(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...xe(),"baseline"]}],"place-self":[{"place-self":["auto",...xe()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:ce()}],w:[{w:[o,"screen",...ce()]}],"min-w":[{"min-w":[o,"screen","none",...ce()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[i]},...ce()]}],h:[{h:["screen","lh",...ce()]}],"min-h":[{"min-h":["screen","lh","none",...ce()]}],"max-h":[{"max-h":["screen","lh",...ce()]}],"font-size":[{text:["base",n,Em,H0]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Gt,Vy]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qy,Vt]}],"font-family":[{font:[j$,Vt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Gt,Vt]}],"line-clamp":[{"line-clamp":[Dn,"none",Gt,Vy]}],leading:[{leading:[s,...H()]}],"list-image":[{"list-image":["none",Gt,Vt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Gt,Vt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:se()}],"text-color":[{text:se()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[Dn,"from-font","auto",Gt,H0]}],"text-decoration-color":[{decoration:se()}],"underline-offset":[{"underline-offset":[Dn,"auto",Gt,Vt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Gt,Vt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Gt,Vt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:be()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ld,Gt,Vt],radial:["",Gt,Vt],conic:[Ld,Gt,Vt]},I$,P$]}],"bg-color":[{bg:se()}],"gradient-from-pos":[{from:B()}],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:se()}],"gradient-via":[{via:se()}],"gradient-to":[{to:se()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:se()}],"border-color-x":[{"border-x":se()}],"border-color-y":[{"border-y":se()}],"border-color-s":[{"border-s":se()}],"border-color-e":[{"border-e":se()}],"border-color-t":[{"border-t":se()}],"border-color-r":[{"border-r":se()}],"border-color-b":[{"border-b":se()}],"border-color-l":[{"border-l":se()}],"divide-color":[{divide:se()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Dn,Gt,Vt]}],"outline-w":[{outline:["",Dn,Em,H0]}],"outline-color":[{outline:se()}],shadow:[{shadow:["","none",f,u2,c2]}],"shadow-color":[{shadow:se()}],"inset-shadow":[{"inset-shadow":["none",m,u2,c2]}],"inset-shadow-color":[{"inset-shadow":se()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:se()}],"ring-offset-w":[{"ring-offset":[Dn,H0]}],"ring-offset-color":[{"ring-offset":se()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":se()}],"text-shadow":[{"text-shadow":["none",b,u2,c2]}],"text-shadow-color":[{"text-shadow":se()}],opacity:[{opacity:[Dn,Gt,Vt]}],"mix-blend":[{"mix-blend":[...we(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":we()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Dn]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ee()}],"mask-image-linear-from-color":[{"mask-linear-from":se()}],"mask-image-linear-to-color":[{"mask-linear-to":se()}],"mask-image-t-from-pos":[{"mask-t-from":Ee()}],"mask-image-t-to-pos":[{"mask-t-to":Ee()}],"mask-image-t-from-color":[{"mask-t-from":se()}],"mask-image-t-to-color":[{"mask-t-to":se()}],"mask-image-r-from-pos":[{"mask-r-from":Ee()}],"mask-image-r-to-pos":[{"mask-r-to":Ee()}],"mask-image-r-from-color":[{"mask-r-from":se()}],"mask-image-r-to-color":[{"mask-r-to":se()}],"mask-image-b-from-pos":[{"mask-b-from":Ee()}],"mask-image-b-to-pos":[{"mask-b-to":Ee()}],"mask-image-b-from-color":[{"mask-b-from":se()}],"mask-image-b-to-color":[{"mask-b-to":se()}],"mask-image-l-from-pos":[{"mask-l-from":Ee()}],"mask-image-l-to-pos":[{"mask-l-to":Ee()}],"mask-image-l-from-color":[{"mask-l-from":se()}],"mask-image-l-to-color":[{"mask-l-to":se()}],"mask-image-x-from-pos":[{"mask-x-from":Ee()}],"mask-image-x-to-pos":[{"mask-x-to":Ee()}],"mask-image-x-from-color":[{"mask-x-from":se()}],"mask-image-x-to-color":[{"mask-x-to":se()}],"mask-image-y-from-pos":[{"mask-y-from":Ee()}],"mask-image-y-to-pos":[{"mask-y-to":Ee()}],"mask-image-y-from-color":[{"mask-y-from":se()}],"mask-image-y-to-color":[{"mask-y-to":se()}],"mask-image-radial":[{"mask-radial":[Gt,Vt]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ee()}],"mask-image-radial-from-color":[{"mask-radial-from":se()}],"mask-image-radial-to-color":[{"mask-radial-to":se()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[Dn]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ee()}],"mask-image-conic-from-color":[{"mask-conic-from":se()}],"mask-image-conic-to-color":[{"mask-conic-to":se()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:be()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Gt,Vt]}],filter:[{filter:["","none",Gt,Vt]}],blur:[{blur:ue()}],brightness:[{brightness:[Dn,Gt,Vt]}],contrast:[{contrast:[Dn,Gt,Vt]}],"drop-shadow":[{"drop-shadow":["","none",g,u2,c2]}],"drop-shadow-color":[{"drop-shadow":se()}],grayscale:[{grayscale:["",Dn,Gt,Vt]}],"hue-rotate":[{"hue-rotate":[Dn,Gt,Vt]}],invert:[{invert:["",Dn,Gt,Vt]}],saturate:[{saturate:[Dn,Gt,Vt]}],sepia:[{sepia:["",Dn,Gt,Vt]}],"backdrop-filter":[{"backdrop-filter":["","none",Gt,Vt]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[Dn,Gt,Vt]}],"backdrop-contrast":[{"backdrop-contrast":[Dn,Gt,Vt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Dn,Gt,Vt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Dn,Gt,Vt]}],"backdrop-invert":[{"backdrop-invert":["",Dn,Gt,Vt]}],"backdrop-opacity":[{"backdrop-opacity":[Dn,Gt,Vt]}],"backdrop-saturate":[{"backdrop-saturate":[Dn,Gt,Vt]}],"backdrop-sepia":[{"backdrop-sepia":["",Dn,Gt,Vt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Gt,Vt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Dn,"initial",Gt,Vt]}],ease:[{ease:["linear","initial",_,Gt,Vt]}],delay:[{delay:[Dn,Gt,Vt]}],animate:[{animate:["none",A,Gt,Vt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,Gt,Vt]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:Ae()}],"rotate-x":[{"rotate-x":Ae()}],"rotate-y":[{"rotate-y":Ae()}],"rotate-z":[{"rotate-z":Ae()}],scale:[{scale:Ie()}],"scale-x":[{"scale-x":Ie()}],"scale-y":[{"scale-y":Ie()}],"scale-z":[{"scale-z":Ie()}],"scale-3d":["scale-3d"],skew:[{skew:We()}],"skew-x":[{"skew-x":We()}
50],"skew-y":[{"skew-y":We()}],transform:[{transform:[Gt,Vt,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:st()}],"translate-x":[{"translate-x":st()}],"translate-y":[{"translate-y":st()}],"translate-z":[{"translate-z":st()}],"translate-none":["translate-none"],accent:[{accent:se()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:se()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Gt,Vt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Gt,Vt]}],fill:[{fill:["none",...se()]}],"stroke-w":[{stroke:[Dn,Em,H0,Vy]}],stroke:[{stroke:["none",...se()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},gM=w$(z$);function Ac(...e){return gM(tw(e))}function H$({delayDuration:e=0,...t}){return h.jsx(o$,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t})}const rw=G.createContext({});function aw(e){const t=G.useRef(null);return t.current===null&&(t.current=e()),t.current}const sw=typeof window<"u",xM=sw?G.useLayoutEffect:G.useEffect,M5=G.createContext(null);function iw(e,t){e.indexOf(t)===-1&&e.push(t)}function ow(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Hu=(e,t,n)=>n>t?t:n<e?e:n;let lw=()=>{};const Uu={},bM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function yM(e){return typeof e=="object"&&e!==null}const vM=e=>/^0[^.\s]+$/u.test(e);function cw(e){let t;return()=>(t===void 0&&(t=e()),t)}const Wo=e=>e,U$=(e,t)=>
vendor: 27,114 bytes, line 50
50n=>t(e(n)),G1=(...e)=>e.reduce(U$),v1=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class uw{constructor(){this.subscriptions=[]}add(t){return iw(this.subscriptions,t),()=>ow(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let s=0;s<a;s++){const i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Lc=e=>e*1e3,Vo=e=>e/1e3;function wM(e,t){return t?e*(1e3/t):0}const SM=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,q$=1e-7,V$=12;function G$(e,t,n,r,a){let s,i,o=0;do i=t+(n-t)/2,s=SM(i,r,a)-e,s>0?n=i:t=i;while(Math.abs(s)>q$&&++o<V$);return i}function $1(e,t,n,r){if(e===t&&n===r)return Wo;const a=s=>G$(s,0,1,e,n);return s=>s===0||s===1?s:SM(a(s),t,r)}const EM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kM=e=>t=>1-e(1-t),_M=$1(.33,1.53,.69,.99),dw=kM(_M),TM=EM(dw),CM=e=>(e*=2)<1?.5*dw(e):.5*(2-Math.pow(2,-10*(e-1))),hw=e=>1-Math.sin(Math.acos(e)),NM=kM(hw),AM=EM(hw),$$=$1(.42,0,1,1),W$=$1(0,0,.58,1),LM=$1(.42,0,.58,1),Y$=e=>Array.isArray(e)&&typeof e[0]!="number",MM=e=>Array.isArray(e)&&typeof e[0]=="number",Q$={linear:Wo,easeIn:$$,easeInOut:LM,easeOut:W$,circIn:hw,circInOut:AM,circOut:NM,backIn:dw,backInOut:TM,backOut:_M,anticipate:CM},X$=e=>typeof e=="string",Mk=e=>{if(MM(e)){lw(e.length===4);const[t,n,r,a]=e;return $1(t,n,r,a)}else if(X$(e))return Q$[e];return e},d2=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function K$(e,t){let n=new Set,r=new Set,a=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function c(f){i.has(f)&&(d.schedule(f),e()),f(o)}const d={schedule:(f,m=!1,b=!1)=>{const v=b&&a?n:r;return m&&i.add(f),v.has(f)||v.add(f),f},cancel:f=>{r.delete(f),i.delete(f)},process:f=>{if(o=f,a){s=!0;return}a=!0,[n,r]=[r,n],n.forEach(c),n.clear(),a=!1,s&&(s=!1,d.process(f))}};return d}const J$=40;function RM(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=d2.reduce((R,P)=>(R[P]=K$(s),R),{}),{setup:o,read:c,resolveKeyframes:d,preUpdate:f,update:m,preRender:b,render:g,postRender:v}=i,E=()=>{const R=Uu.useManualTiming?a.timestamp:performance.now();n=!1,Uu.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(R-a.timestamp,J$),1)),a.timestamp=R,a.isProcessing=!0,o.process(a),c.process(a),d.process(a),f.process(a),m.process(a),b.process(a),g.process(a),v.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(E))},T=()=>{n=!0,r=!0,a.isProcessing||e(E)};return{schedule:d2.reduce((R,P)=>{const V=i[P];return R[P]=(U,D=!1,H=!1)=>(n||T(),V.schedule(U,D,H)),R},{}),cancel:R=>{for(let P=0;P<d2.length;P++)i[d2[P]].cancel(R)},state:a,steps:i}}const{schedule:ca,cancel:t0,state:zs,steps:Gy}=RM(typeof requestAnimationFrame<"u"?requestAnimationFrame:Wo,!0);let tx;function Z$(){tx=void 0}const Ui={now:()=>(tx===void 0&&Ui.set(zs.isProcessing||Uu.useManualTiming?zs.timestamp:performance.now()),tx),set:e=>{tx=e,queueMicrotask(Z$)}},OM=e=>t=>typeof t=="string"&&t.startsWith(e),fw=OM("--"),eW=OM("var(--"),pw=e=>eW(e)?tW.test(e.split("/*")[0].trim()):!1,tW=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bp={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},w1={...bp,transform:e=>Hu(0,1,e)},h2={...bp,default:1},$m=e=>Math.round(e*1e5)/1e5,mw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function nW(e){return e==null}const rW=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,gw=(e,t)=>n=>!!(typeof n=="string"&&rW.test(n)&&n.startsWith(e)||t&&!nW(n)&&Object.prototype.hasOwnProperty.call(n,t)),PM=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,i,o]=r.match(mw);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(i),alpha:o!==void 0?parseFloat(o):1}},aW=e=>Hu(0,255,e),$y={...bp,transform:e=>Math.round(aW(e))},th={test:gw("rgb","red"),parse:PM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$y.transform(e)+", "+$y.transform(t)+", "+$y.transform(n)+", "+$m(w1.transform(r))+")"};function sW(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const s3={test:gw("#"),parse:sW,transform:th.transform},W1=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Fd=W1("deg"),Mc=W1("%"),xn=W1("px"),iW=W1("vh"),oW=W1("vw"),Rk={...Mc,parse:e=>Mc.parse(e)/100,transform:e=>Mc.transform(e*100)},jf={test:gw("hsl","hue"),parse:PM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Mc.transform($m(t))+", "+Mc.transform($m(n))+", "+$m(w1.transform(r))+")"},Xa={test:e=>th.test(e)||s3.test(e)||jf.test(e),parse:e=>th.test(e)?th.parse(e):jf.test(e)?jf.parse(e):s3.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?th.transform(e):jf.transform(e),getAnimatableNone:e=>{const t=Xa.parse(e);return t.alpha=0,Xa.transform(t)}},lW=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function cW(e){return isNaN(e)&&typeof e=="string"&&(e.match(mw)?.length||0)+(e.match(lW)?.length||0)>0}const jM="number",DM="color",uW="var",dW="var(",Ok="${}",hW=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function S1(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const o=t.replace(hW,c=>(Xa.test(c)?(r.color.push(s),a.push(DM),n.push(Xa.parse(c))):c.startsWith(dW)?(r.var.push(s),a.push(uW),n.push(c)):(r.number.push(s),a.push(jM),n.push(parseFloat(c))),++s,Ok)).split(Ok);return{values:n,split:o,indexes:r,types:a}}function IM(e){return S1(e).values}function BM(e){const{split:t,types:n}=S1(e),r=t.length;return a=>{let s="";for(let i=0;i<r;i++)if(s+=t[i],a[i]!==void 0){const o=n[i];o===jM?s+=$m(a[i]):o===DM?s+=Xa.transform(a[i]):s+=a[i]}return s}}const fW=e=>typeof e=="number"?0:Xa.test(e)?Xa.getAnimatableNone(e):e;function pW(e){const t=IM(e);return BM(e)(t.map(fW))}const n0={test:cW,parse:IM,createTransformer:BM,getAnimatableNone:pW};function Wy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mW({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,i=0;if(!t)a=s=i=n;else{const o=n<.5?n*(1+t):n+t-n*t,c=2*n-o;a=Wy(c,o,e+1/3),s=Wy(c,o,e),i=Wy(c,o,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function Tx(e,t){return n=>n>0?t:e}const ga=(e,t,n)=>e+(t-e)*n,Yy=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},gW=[s3,th,jf],xW=e=>gW.find(t=>t.test(e));function Pk(e){const t=xW(e);if(!t)return!1;let n=t.parse(e);return t===jf&&(n=mW(n)),n}const jk=(e,t)=>{const n=Pk(e),r=Pk(t);if(!n||!r)return Tx(e,t);const a={...n};return s=>(a.red=Yy(n.red,r.red,s),a.green=Yy(n.green,r.green,s),a.blue=Yy(n.blue,r.blue,s),a.alpha=ga(n.alpha,r.alpha,s),th.transform(a))},i3=new Set(["none","hidden"]);function bW(e,t){return i3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function yW(e,t){return n=>ga(e,t,n)}function xw(e){return typeof e=="number"?yW:typeof e=="string"?pw(e)?Tx:Xa.test(e)?jk:SW:Array.isArray(e)?FM:typeof e=="object"?Xa.test(e)?jk:vW:Tx}function FM(e,t){const n=[...e],r=n.length,a=e.map((s,i)=>xw(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=a[i](s);return n}}function vW(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=xw(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function wW(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],i=e.indexes[s][r[s]],o=e.values[i]??0;n[a]=o,r[s]++}return n}const SW=(e,t)=>{const n=n0.createTransformer(t),r=S1(e),a=S1(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?i3.has(e)&&!a.values.length||i3.has(t)&&!r.values.length?bW(e,t):G1(FM(wW(r,a),a.values),n):Tx(e,t)};function zM(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ga(e,t,n):xw(e)(e,t)}const EW=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ca.update(t,n),stop:()=>t0(t),now:()=>zs.isProcessing?zs.timestamp:Ui.now()}},HM=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=Math.round(e(s/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Cx=2e4;function bw(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Cx;)t+=n,r=e.next(t);return t>=Cx?1/0:t}function kW(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(bw(r),Cx);return{type:"keyframes",ease:s=>r.next(a*s).value/t,duration:Vo(a)}}const _W=5;function UM(e,t,n){const r=Math.max(t-_W,0);return wM(n-e(r),t-r)}const Na={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Qy=.001;function TW({duration:e=Na.duration,bounce:t=Na.bounce,velocity:n=Na.velocity,mass:r=Na.mass}){let a,s,i=1-t;i=Hu(Na.minDamping,Na.maxDamping,i),e=Hu(Na.minDuration,Na.maxDuration,Vo(e)),i<1?(a=d=>{const f=d*i,m=f*e,b=f-n,g=o3(d,i),v=Math.exp(-m);return Qy-b/g*v},s=d=>{const m=d*i*e,b=m*n+n,g=Math.pow(i,2)*Math.pow(d,2)*e,v=Math.exp(-m),E=o3(Math.pow(d,2),i);return(-a(d)+Qy>0?-1:1)*((b-g)*v)/E}):(a=d=>{const f=Math.exp(-d*e),m=(d-n)*e+1;return-Qy+f*m},s=d=>{const f=Math.exp(-d*e),m=(n-d)*(e*e);return f*m});const o=5/e,c=NW(a,s,o);if(e=Lc(e),isNaN(c))return{stiffness:Na.stiffness,damping:Na.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:i*2*Math.sqrt(r*d),duration:e}}}const CW=12;function NW(e,t,n){let r=n;for(let a=1;a<CW;a++)r=r-e(r)/t(r);return r}function o3(e,t){return e*Math.sqrt(1-t*t)}const AW=["duration","bounce"],LW=["stiffness","damping","mass"];function Dk(e,t){return t.some(n=>e[n]!==void 0)}function MW(e){let t={velocity:Na.velocity,stiffness:Na.stiffness,damping:Na.damping,mass:Na.mass,isResolvedFromDuration:!1,...e};if(!Dk(e,LW)&&Dk(e,AW))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*Hu(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Na.mass,stiffness:a,damping:s}}else{const n=TW(e);t={...t,...n,mass:Na.mass},t.isResolvedFromDuration=!0}return t}function Nx(e=Na.visualDuration,t=Na.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:c,damping:d,mass:f,duration:m,velocity:b,isResolvedFromDuration:g}=MW({...n,velocity:-Vo(n.velocity||0)}),v=b||0,E=d/(2*Math.sqrt(c*f)),T=i-s,_=Vo(Math.sqrt(c/f)),A=Math.abs(T)<5;r||(r=A?Na.restSpeed.granular:Na.restSpeed.default),a||(a=A?Na.restDelta.granular:Na.restDelta.default);let R;if(E<1){const V=o3(_,E);R=U=>{const D=Math.exp(-E*_*U);return i-D*((v+E*_*T)/V*Math.sin(V*U)+T*Math.cos(V*U))}}else if(E===1)R=V=>i-Math.exp(-_*V)*(T+(v+_*T)*V);else{const V=_*Math.sqrt(E*E-1);R=U=>{const D=Math.exp(-E*_*U),H=Math.min(V*U,300);return i-D*((v+E*_*T)*Math.sinh(H)+V*T*Math.cosh(H))/V}}const P={calculatedDuration:g&&m||null,next:V=>{const U=R(V);if(g)o.done=V>=m;else{let D=V===0?v:0;E<1&&(D=V===0?Lc(v):UM(R,V,U));const H=Math.abs(D)<=r,q=Math.abs(i-U)<=a;o.done=H&&q}return o.value=o.done?i:U,o},toString:()=>{const V=Math.min(bw(P),Cx),U=HM(D=>P.next(V*D).value,V,30);return V+"ms "+U},toTransition:()=>{}};return P}Nx.applyToOptions=e=>{const t=kW(e,100,Nx);return e.ease=t.ease,e.duration=Lc(t.duration),e.type="keyframes",e};function l3({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:i,min:o,max:c,restDelta:d=.5,restSpeed:f}){const m=e[0],b={done:!1,value:m},g=H=>o!==void 0&&H<o||c!==void 0&&H>c,v=H=>o===void 0?c:c===void 0||Math.abs(o-H)<Math.abs(c-H)?o:c;let E=n*t;const T=m+E,_=i===void 0?T:i(T);_!==T&&(E=_-m);const A=H=>-E*Math.exp(-H/r),R=H=>_+A(H),P=H=>{const q=A(H),W=R(H);b.done=Math.abs(q)<=d,b.value=b.done?_:W};let V,U;const D=H=>{g(b.value)&&(V=H,U=Nx({keyframes:[b.value,v(b.value)],velocity:UM(R,H,b.value),damping:a,stiffness:s,restDelta:d,restSpeed:f}))};return D(0),{calculatedDuration:null,next:H=>{let q=!1;return!U&&V===void 0&&(q=!0,P(H),D(H)),V!==void 0&&H>=V?U.next(H-V):(!q&&P(H),b)}}}function RW(e,t,n){const r=[],a=n||Uu.mix||zM,s=e.length-1;for(let i=0;i<s;i++){let o=a(e[i],e[i+1]);if(t){const c=Array.isArray(t)?t[i]||Wo:t;o=G1(c,o)}r.push(o)}return r}function OW(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(lw(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=RW(t,r,a),c=o.length,d=f=>{if(i&&f<e[0])return t[0];let m=0;if(c>1)for(;m<e.length-2&&!(f<e[m+1]);m++);const b=v1(e[m],e[m+1],f);return o[m](b)};return n?f=>d(Hu(e[0],e[s-1],f)):d}function PW(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=v1(0,t,r);e.push(ga(n,1,a))}}function jW(e){const t=[0];return PW(t,e.length-1),t}function DW(e,t){return e.map(n=>n*t)}function IW(e,t){return e.map(()=>t||LM).splice(0,e.length-1)}function Wm({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=Y$(r)?r.map(Mk):Mk(r),s={done:!1,value:t[0]},i=DW(n&&n.length===t.length?n:jW(t),e),o=OW(i,t,{ease:Array.isArray(a)?a:IW(t,a)});return{calculatedDuration:e,next:c=>(s.value=o(c),s.done=c>=e,s)}}const BW=e=>e!==null;function yw(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(BW),o=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const FW={decay:l3,inertia:l3,tween:Wm,keyframes:Wm,spring:Nx};function qM(e){typeof e.type=="string"&&(e.type=FW[e.type])}class vw{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const zW=e=>e/100;class ww extends vw{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Ui.now()&&this.tick(Ui.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;qM(t);const{type:n=Wm,repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:i=0}=t;let{keyframes:o}=t;const c=n||Wm;c!==Wm&&typeof o[0]!="number"&&(this.mixKeyframes=G1(zW,zM(o[0],o[1])),o=[0,100]);const d=c({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...o].reverse(),velocity:-i})),d.calculatedDuration===null&&(d.calculatedDuration=bw(d));const{calculatedDuration:f}=d;this.calculatedDuration=f,this.resolvedDuration=f+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:s,mirroredGenerator:i,resolvedDuration:o,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:f,repeat:m,repeatType:b,repeatDelay:g,type:v,onUpdate:E,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const _=this.currentTime-d*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?_<0:_>a;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let R=this.currentTime,P=r;if(m){const H=Math.min(this.currentTime,a)/o;let q=Math.floor(H),W=H%1;!W&&H>=1&&(W=1),W===1&&q--,q=Math.min(q,m+1),!!(q%2)&&(b==="reverse"?(W=1-W,g&&(W-=g/o)):b==="mirror"&&(P=i)),R=Hu(0,1,W)*o}const V=A?{done:!1,value:f[0]}:P.next(R);s&&(V.value=s(V.value));let{done:U}=V;!A&&c!==null&&(U=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&U);return D&&v!==l3&&(V.value=yw(f,this.options,T,this.speed)),E&&E(V.value),D&&this.finish(),V}then(t,n){return this.finished.then(t,n)}get duration(){return Vo(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Vo(t)}get time(){return Vo(this.currentTime)}set time(t){t=Lc(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ui.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Vo(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=EW,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ui.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function HW(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const nh=e=>e*180/Math.PI,c3=e=>{const t=nh(Math.atan2(e[1],e[0]));return u3(t)},UW={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:c3,rotateZ:c3,skewX:e=>nh(Math.atan(e[1])),skewY:e=>nh(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},u3=e=>(e=e%360,e<0&&(e+=360),e),Ik=c3,Bk=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Fk=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),qW={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bk,scaleY:Fk,scale:e=>(Bk(e)+Fk(e))/2,rotateX:e=>u3(nh(Math.atan2(e[6],e[5]))),rotateY:e=>u3(nh(Math.atan2(-e[2],e[0]))),rotateZ:Ik,rotate:Ik,skewX:e=>nh(Math.atan(e[4])),skewY:e=>nh(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function d3(e){return e.includes("scale")?1:0}function h3(e,t){if(!e||e==="none")return d3(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=qW,a=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=UW,a=o}if(!a)return d3(t);const s=r[t],i=a[1].split(",").map(GW);return typeof s=="function"?s(i):i[s]}const VW=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return h3(n,t)};function GW(e){return parseFloat(e.trim())}const yp=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vp=new Set(yp),zk=e=>e===bp||e===xn,$W=new Set(["x","y","z"]),WW=yp.filter(e=>!$W.has(e));function YW(e){const t=[];return WW.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const sh={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>h3(t,"x"),y:(e,{transform:t})=>h3(t,"y")};sh.translateX=sh.x;sh.translateY=sh.y;const ih=new Set;let f3=!1,p3=!1,m3=!1;function VM(){if(p3){const e=Array.from(ih).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=YW(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([s,i])=>{r.getValue(s)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}p3=!1,f3=!1,ih.forEach(e=>e.complete(m3)),ih.clear()}function GM(){ih.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(p3=!0)})}function QW(){m3=!0,GM(),VM(),m3=!1}class Sw{constructor(t,n,r,a,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(ih.add(this),f3||(f3=!0,ca.read(GM),ca.resolveKeyframes(VM))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const s=a?.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const o=r.readValue(n,i);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=i),a&&s===void 0&&a.set(t[0])}HW(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ih.delete(this)}cancel(){this.state==="scheduled"&&(ih.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const XW=e=>e.startsWith("--");function KW(e,t,n){XW(t)?e.style.setProperty(t,n):e.style[t]=n}const JW=cw(()=>window.ScrollTimeline!==void 0),ZW={};function eY(e,t){const n=cw(e);return()=>ZW[t]??n()}const $M=eY(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Bm=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bm([0,.65,.55,1]),circOut:Bm([.55,0,1,.45]),backIn:Bm([.31,.01,.66,-.59]),backOut:Bm([.33,1.53,.69,.99])};function WM(e,t){if(e)return typeof e=="function"?$M()?HM(e,t):"ease-out":MM(e)?Bm(e):Array.isArray(e)?e.map(n=>WM(n,t)||Hk.easeOut):Hk[e]}function tY(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:i="loop",ease:o="easeOut",times:c}={},d=void 0){const f={[t]:n};c&&(f.offset=c);const m=WM(o,a);Array.isArray(m)&&(f.easing=m);const b={delay:r,duration:a,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return d&&(b.pseudoElement=d),e.animate(f,b)}function YM(e){return typeof e=="function"&&"applyToOptions"in e}function nY({type:e,...t}){return YM(e)&&$M()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class rY extends vw{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:o,onComplete:c}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,lw(typeof t.type!="string");const d=nY(t);this.animation=tY(n,r,a,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const f=yw(a,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(f):KW(n,r,f),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Vo(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Vo(t)}get time(){return Vo(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Lc(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&JW()?(this.animation.timeline=t,Wo):n(this)}}const QM={anticipate:CM,backInOut:TM,circInOut:AM};function aY(e){return e in QM}function sY(e){typeof e.ease=="string"&&aY(e.ease)&&(e.ease=QM[e.ease])}const Uk=10;class iY extends rY{constructor(t){sY(t),qM(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:s,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new ww({...i,autoplay:!1}),c=Lc(this.finishedTime??this.time);n.setWithVelocity(o.sample(c-Uk).value,o.sample(c).value,Uk),o.stop()}}const qk=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(n0.test(e)||e==="0")&&!e.startsWith("url("));function oY(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function lY(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=qk(a,t),o=qk(s,t);return!i||!o?!1:oY(e)||(n==="spring"||YM(n))&&r}function g3(e){e.duration=0,e.type="keyframes"}const cY=new Set(["opacity","clipPath","filter","transform"]),uY=cw(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function dY(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:s,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return uY()&&n&&cY.has(n)&&(n!=="transform"||!d)&&!c&&!r&&a!=="mirror"&&s!==0&&i!=="inertia"}const hY=40;class fY extends vw{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:i="loop",keyframes:o,name:c,motionValue:d,element:f,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ui.now();
50const b={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:i,name:c,motionValue:d,element:f,...m},g=f?.KeyframeResolver||Sw;this.keyframeResolver=new g(o,(v,E,T)=>this.onKeyframesResolved(v,E,b,!T),c,d,f),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:s,type:i,velocity:o,delay:c,isHandoff:d,onUpdate:f}=r;this.resolvedAt=Ui.now(),lY(t,s,i,o)||((Uu.instantAnimations||!c)&&f?.(yw(t,r,n)),t[0]=t[t.length-1],g3(r),r.repeat=0);const b={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>hY?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},g=!d&&dY(b)?new iY({...b,element:b.motionValue.owner.current}):new ww(b);g.finished.then(()=>this.notifyFinished()).catch(Wo),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),QW()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const pY=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mY(e){const t=pY.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function XM(e,t,n=1){const[r,a]=mY(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return bM(i)?parseFloat(i):i}return pw(a)?XM(a,t,n+1):a}function Ew(e,t){return e?.[t]??e?.default??e}const KM=new Set(["width","height","top","left","right","bottom",...yp]),gY={test:e=>e==="auto",parse:e=>e},JM=e=>t=>t.test(e),ZM=[bp,xn,Mc,Fd,oW,iW,gY],Vk=e=>ZM.find(JM(e));function xY(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||vM(e):!0}const bY=new Set(["brightness","contrast","saturate","opacity"]);function yY(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(mw)||[];if(!r)return e;const a=n.replace(r,"");let s=bY.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const vY=/\b([a-z-]*)\(.*?\)/gu,x3={...n0,getAnimatableNone:e=>{const t=e.match(vY);return t?t.map(yY).join(" "):e}},Gk={...bp,transform:Math.round},wY={rotate:Fd,rotateX:Fd,rotateY:Fd,rotateZ:Fd,scale:h2,scaleX:h2,scaleY:h2,scaleZ:h2,skew:Fd,skewX:Fd,skewY:Fd,distance:xn,translateX:xn,translateY:xn,translateZ:xn,x:xn,y:xn,z:xn,perspective:xn,transformPerspective:xn,opacity:w1,originX:Rk,originY:Rk,originZ:xn},kw={borderWidth:xn,borderTopWidth:xn,borderRightWidth:xn,borderBottomWidth:xn,borderLeftWidth:xn,borderRadius:xn,radius:xn,borderTopLeftRadius:xn,borderTopRightRadius:xn,borderBottomRightRadius:xn,borderBottomLeftRadius:xn,width:xn,maxWidth:xn,height:xn,maxHeight:xn,top:xn,right:xn,bottom:xn,left:xn,padding:xn,paddingTop:xn,paddingRight:xn,paddingBottom:xn,paddingLeft:xn,margin:xn,marginTop:xn,marginRight:xn,marginBottom:xn,marginLeft:xn,backgroundPositionX:xn,backgroundPositionY:xn,...wY,zIndex:Gk,fillOpacity:w1,strokeOpacity:w1,numOctaves:Gk},SY={...kw,color:Xa,backgroundColor:Xa,outlineColor:Xa,fill:Xa,stroke:Xa,borderColor:Xa,borderTopColor:Xa,borderRightColor:Xa,borderBottomColor:Xa,borderLeftColor:Xa,filter:x3,WebkitFilter:x3},eR=e=>SY[e];function tR(e,t){let n=eR(e);return n!==x3&&(n=n0),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const EY=new Set(["auto","none","0"]);function kY(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!EY.has(s)&&S1(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=tR(n,a)}class _Y extends Sw{constructor(t,n,r,a,s){super(t,n,r,a,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];
vendor: 13,885 bytes, lines 50-58
50if(typeof d=="string"&&(d=d.trim(),pw(d))){const f=XM(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!KM.has(r)||t.length!==2)return;const[a,s]=t,i=Vk(a),o=Vk(s);if(i!==o)if(zk(i)&&zk(o))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else sh[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||xY(t[a]))&&r.push(a);r.length&&kY(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=sh[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const s=r.length-1,i=r[s];r[s]=sh[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([o,c])=>{t.getValue(o).set(c)}),this.resolveNoneKeyframes()}}function TY(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=n?.[e]??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const nR=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function rR(e){return yM(e)&&"offsetHeight"in e}const $k=30,CY=e=>!isNaN(parseFloat(e));class NY{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const a=Ui.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ui.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=CY(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new uw);const r=this.events[t].add(n);return t==="change"?()=>{r(),ca.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ui.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>$k)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,$k);return wM(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function sp(e,t){return new NY(e,t)}const{schedule:_w}=RM(queueMicrotask,!1),El={x:!1,y:!1};function aR(){return El.x||El.y}function AY(e){return e==="x"||e==="y"?El[e]?null:(El[e]=!0,()=>{El[e]=!1}):El.x||El.y?null:(El.x=El.y=!0,()=>{El.x=El.y=!1})}function sR(e,t){const n=TY(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function Wk(e){return!(e.pointerType==="touch"||aR())}function LY(e,t,n={}){const[r,a,s]=sR(e,n),i=o=>{if(!Wk(o))return;const{target:c}=o,d=t(c,o);if(typeof d!="function"||!c)return;const f=m=>{Wk(m)&&(d(m),c.removeEventListener("pointerleave",f))};c.addEventListener("pointerleave",f,a)};return r.forEach(o=>{o.addEventListener("pointerenter",i,a)}),s}const iR=(e,t)=>t?e===t?!0:iR(e,t.parentElement):!1,Tw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,MY=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function RY(e){return MY.has(e.tagName)||e.tabIndex!==-1}const nx=new WeakSet;function Yk(e){return t=>{t.key==="Enter"&&e(t)}}function Xy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const OY=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Yk(()=>{if(nx.has(n))return;Xy(n,"down");const a=Yk(()=>{Xy(n,"up")}),s=()=>Xy(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Qk(e){return Tw(e)&&!aR()}function PY(e,t,n={}){const[r,a,s]=sR(e,n),i=o=>{const c=o.currentTarget;if(!Qk(o))return;nx.add(c);const d=t(c,o),f=(g,v)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",b),nx.has(c)&&nx.delete(c),Qk(g)&&typeof d=="function"&&d(g,{success:v})},m=g=>{f(g,c===window||c===document||n.useGlobalTarget||iR(c,g.target))},b=g=>{f(g,!1)};window.addEventListener("pointerup",m,a),window.addEventListener("pointercancel",b,a)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",i,a),rR(o)&&(o.addEventListener("focus",d=>OY(d,a)),!RY(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function oR(e){return yM(e)&&"ownerSVGElement"in e}function jY(e){return oR(e)&&e.tagName==="svg"}const Ks=e=>!!(e&&e.getVelocity),DY=[...ZM,Xa,n0],IY=e=>DY.find(JM(e)),Cw=G.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Xk(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function BY(...e){return t=>{let n=!1;const r=e.map(a=>{const s=Xk(a,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let a=0;a<r.length;a++){const s=r[a];typeof s=="function"?s():Xk(e[a],null)}}}}function FY(...e){return G.useCallback(BY(...e),e)}class zY extends G.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,a=rR(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=a-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function HY({children:e,isPresent:t,anchorX:n,root:r}){const a=G.useId(),s=G.useRef(null),i=G.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=G.useContext(Cw),c=FY(s,e?.ref);return G.useInsertionEffect(()=>{const{width:d,height:f,top:m,left:b,right:g}=i.current;if(t||!s.current||!d||!f)return;const v=n==="left"?`left: ${b}`:`right: ${g}`;s.current.dataset.motionPopId=a;const E=document.createElement("style");o&&(E.nonce=o);const T=r??document.head;return T.appendChild(E),E.sheet&&E.sheet.insertRule(` 51 [data-motion-pop-id="${a}"] { 52 position: absolute !important; 53 width: ${d}px !important; 54 height: ${f}px !important; 55 ${v}px !important; 56 top: ${m}px !important; 57 } 58 `),()=>{T.contains(E)&&T.removeChild(E)}},[t]),h.jsx(zY,{isPresent:t,childRef:s,sizeRef:i,children:G.cloneElement(e,{ref:c})})}const UY=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:s,mode:i,anchorX:o,root:c})=>{const d=aw(qY),f=G.useId();let m=!0,b=G.useMemo(()=>(m=!1,{id:f,initial:t,isPresent:n,custom:a,onExitComplete:g=>{d.set(g,!0);for(const v of d.values())if(!v)return;r&&r()},register:g=>(d.set(g,!1),()=>d.delete(g))}),[n,d,r]);return s&&m&&(b={...b}),G.useMemo(()=>{d.forEach((g,v)=>d.set(v,!1))},[n]),G.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),i==="popLayout"&&(e=h.jsx(HY,{isPresent:n,anchorX:o,root:c,children:e})),h.jsx(M5.Provider,{value:b,children:e})};function qY(){return new Map}function lR(e=!0){const t=G.useContext(M5);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=G.useId();G.useEffect(()=>{if(e)return a(s)},[e]);const i=G.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,i]:[!0]}const f2=e=>e.key||"";function Kk(e){const t=[];return G.Children.forEach(e,n=>{G.isValidElement(n)&&t.push(n)}),t}const Ba=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:s="sync",propagate:i=!1,anchorX:o="left",root:c})=>{const[d,f]=lR(i),m=G.useMemo(()=>Kk(e),[e]),b=i&&!d?[]:m.map(f2),g=G.useRef(!0),v=G.useRef(m),E=aw(()=>new Map),[T,_]=G.useState(m),[A,R]=G.useState(m);xM(()=>{g.current=!1,v.current=m;for(let U=0;U<A.length;U++){const D=f2(A[U]);b.includes(D)?E.delete(D):E.get(D)!==!0&&E.set(D,!1)}},[A,b.length,b.join("-")]);const P=[];if(m!==T){let U=[...m];for(let D=0;D<A.length;D++){const H=A[D],q=f2(H);b.includes(q)||(U.splice(D,0,H),P.push(H))}return s==="wait"&&P.length&&(U=P),R(Kk(U)),_(m),null}const{forceRender:V}=G.useContext(rw);return h.jsx(h.Fragment,{children:A.map(U=>{const D=f2(U),H=i&&!d?!1:m===A||b.includes(D),q=()=>{if(E.has(D))E.set(D,!0);else return;let W=!0;E.forEach(z=>{z||(W=!1)}),W&&(V?.(),R(v.current),i&&f?.(),r&&r())};return h.jsx(UY,{isPresent:H,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:s,root:c,onExitComplete:H?void 0:q,anchorX:o,children:U},D)})})},cR=G.createContext({strict:!1}),Jk={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ip={};for(const e in Jk)ip[e]={isEnabled:t=>Jk[e].some(n=>!!t[n])};function VY(e){for(const t in e)ip[t]={...ip[t],...e[t]}}const GY=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ax(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||GY.has(e)}let uR=e=>!Ax(e);function $Y(e){typeof e=="function"&&(uR=t=>t.startsWith("on")?!Ax(t):e(t))}try{$Y(require("@emotion/is-prop-valid").default)}catch{}function WY(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(uR(a)||n===!0&&Ax(a)||!t&&!Ax(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const R5=G.createContext({});function O5(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function E1(e){return typeof e=="string"||Array.isArray(e)}const Nw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Aw=["initial",...Nw];function P5(e){return O5(e.animate)||Aw.some(t=>E1(e[t]))}function dR(e){return!!(P5(e)||e.variants)}function YY(e,t){if(P5(e)){const{initial:n,animate:r}=e;return{initial:n===!1||E1(n)?n:void 0,animate:E1(r)?r:void 0}}return e.inherit!==!1?t:{}}function QY(e){const{initial:t,animate:n}=YY(e,G.useContext(R5));return G.useMemo(()=>({initial:t,animate:n}),[Zk(t),Zk(n)])}function Zk(e){return Array.isArray(e)?e.join(" "):e}const k1={};function XY(e){for(const t in e)k1[t]=e[t],fw(t)&&(k1[t].isCSSVariable=!0)}function hR(e,{layout:t,layoutId:n}){return vp.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!k1[e]||e==="opacity")}const KY={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},JY=yp.length;function ZY(e,t,n){let r="",a=!0;for(let s=0;s<JY;s++){const i=yp[s],o=e[i];if(o===void 0)continue;let c=!0;if(typeof o=="number"?c=o===(i.startsWith("scale")?1:0):c=parseFloat(o)===0,!c||n){const d=nR(o,kw[i]);if(!c){a=!1;const f=KY[i]||i;r+=`${f}(${d}) `}n&&(t[i]=d)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function Lw(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let i=!1,o=!1;for(const c in t){const d=t[c];if(vp.has(c)){i=!0;continue}else if(fw(c)){a[c]=d;continue}else{const f=nR(d,kw[c]);c.startsWith("origin")?(o=!0,s[c]=f):r[c]=f}}if(t.transform||(i||n?r.transform=ZY(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:c="50%",originY:d="50%",originZ:f=0}=s;r.transformOrigin=`${c} ${d} ${f}`}}const Mw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fR(e,t,n){for(const r in t)!Ks(t[r])&&!hR(r,n)&&(e[r]=t[r])}function eQ({transformTemplate:e},t){return G.useMemo(()=>{const n=Mw();return Lw(n,t,e),Object.assign({},n.vars,n.style)},[t])}function tQ(e,t){const n=e.style||{},r={};return fR(r,n,e),Object.assign(r,eQ(e,t)),r}function nQ(e,t){const n={},r=tQ(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
58`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const rQ={offset:"stroke-dashoffset",array:"stroke-dasharray"},aQ={offset:"strokeDashoffset",array:"strokeDasharray"};function sQ(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?rQ:aQ;e[s.offset]=xn.transform(-r);const i=xn.transform(t),o=xn.transform(n);e[s.array]=`${i} ${o}`}function pR(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:i=0,...o},c,d,f){if(Lw(e,o,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:b}=e;m.transform&&(b.transform=m.transform,delete m.transform),(b.transform||m.transformOrigin)&&(b.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),b.transform&&(b.transformBox=f?.transformBox??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&sQ(m,a,s,i,!1)}const mR=()=>({...Mw(),attrs:{}}),gR=e=>typeof e=="string"&&e.toLowerCase()==="svg";function iQ(e,t,n,r){const a=G.useMemo(()=>{const s=mR();return pR(s,t,gR(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};fR(s,e.style,e),a.style={...s,...a.style}}return a}const oQ=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Rw(e){return typeof e!="string"||e.includes("-")?!1:!!(oQ.indexOf(e)>-1||/[A-Z]/u.test(e))}function lQ(e,t,n,{latestValues:r},a,s=!1){const o=(Rw(e)?iQ:nQ)(t,r,a,e),c=WY(t,typeof e=="string",s),d=e!==G.Fragment?{...c,...o,ref:n}:{},{children:f}=t,m=G.useMemo(()=>Ks(f)?f.get():f,[f]);return G.createElement(e,{...d,children:m})}function e9(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ow(e,t,n,r){if(typeof t=="function"){const[a,s]=e9(r);t=t(n!==void 0?n:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=e9(r);t=t(n!==void 0?n:e.custom,a,s)}return t}function rx(e){return Ks(e)?e.get():e}function cQ({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:uQ(n,r,a,e),renderState:t()}}function uQ(e,t,n,r){const a={},s=r(e,{});for(const b in s)a[b]=rx(s[b]);let{initial:i,animate:o}=e;const c=P5(e),d=dR(e);t&&d&&!c&&e.inherit!==!1&&(i===void 0&&(i=t.initial),o===void 0&&(o=t.animate));let f=n?n.initial===!1:!1;f=f||i===!1;const m=f?o:i;if(m&&typeof m!="boolean"&&!O5(m)){const b=Array.isArray(m)?m:[m];for(let g=0;g<b.length;g++){const v=Ow(e,b[g]);if(v){const{transitionEnd:E,transition:T,..._}=v;for(const A in _){let R=_[A];if(Array.isArray(R)){const P=f?R.length-1:0;R=R[P]}R!==null&&(a[A]=R)}for(const A in E)a[A]=E[A]}}}return a}const xR=e=>(t,n)=>{const r=G.useContext(R5),a=G.useContext(M5),s=()=>cQ(e,t,r,a);return n?s():aw(s)};function Pw(e,t,n){const{style:r}=e,a={};for(const s in r)(Ks(r[s])||t.style&&Ks(t.style[s])||hR(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(a[s]=r[s]);return a}const dQ=xR({scrapeMotionValuesFromProps:Pw,createRenderState:Mw});function bR(e,t,n){const r=Pw(e,t,n);for(const a in e)if(Ks(e[a])||Ks(t[a])){const s=yp.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}const hQ=xR({scrapeMotionValuesFromProps:bR,createRenderState:mR}),fQ=Symbol.for("motionComponentSymbol");function Df(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function pQ(e,t,n){return G.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Df(n)&&(n.current=r))},[t])}const jw=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),mQ="framerAppearId",yR="data-"+jw(mQ),vR=G.createContext({});function gQ(e,t,n,r,a){const{visualElement:s}=G.useContext(R5),i=G.useContext(cR),o=G.useContext(M5),c=G.useContext(Cw).reducedMotion,d=G.useRef(null);r=r||i.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:c}
vendor: 9,412 bytes, line 58
58));const f=d.current,m=G.useContext(vR);f&&!f.projection&&a&&(f.type==="html"||f.type==="svg")&&xQ(d.current,n,a,m);const b=G.useRef(!1);G.useInsertionEffect(()=>{f&&b.current&&f.update(n,o)});const g=n[yR],v=G.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return xM(()=>{f&&(b.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),v.current&&f.animationState&&f.animationState.animateChanges())}),G.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),v.current=!1),f.enteringChildren=void 0)}),f}function xQ(e,t,n,r){const{layoutId:a,layout:s,drag:i,dragConstraints:o,layoutScroll:c,layoutRoot:d,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:wR(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!i||o&&Df(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:c,layoutRoot:d})}function wR(e){if(e)return e.options.allowProjection!==!1?e.projection:wR(e.parent)}function Ky(e,{forwardMotionProps:t=!1}={},n,r){n&&VY(n);const a=Rw(e)?hQ:dQ;function s(o,c){let d;const f={...G.useContext(Cw),...o,layoutId:bQ(o)},{isStatic:m}=f,b=QY(o),g=a(o,m);if(!m&&sw){yQ();const v=vQ(f);d=v.MeasureLayout,b.visualElement=gQ(e,g,f,r,v.ProjectionNode)}return h.jsxs(R5.Provider,{value:b,children:[d&&b.visualElement?h.jsx(d,{visualElement:b.visualElement,...f}):null,lQ(e,o,pQ(g,b.visualElement,c),g,m,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const i=G.forwardRef(s);return i[fQ]=e,i}function bQ({layoutId:e}){const t=G.useContext(rw).id;return t&&e!==void 0?t+"-"+e:e}function yQ(e,t){G.useContext(cR).strict}function vQ(e){const{drag:t,layout:n}=ip;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function wQ(e,t){if(typeof Proxy>"u")return Ky;const n=new Map,r=(s,i)=>Ky(s,i,e,t),a=(s,i)=>r(s,i);return new Proxy(a,{get:(s,i)=>i==="create"?r:(n.has(i)||n.set(i,Ky(i,void 0,e,t)),n.get(i))})}function SR({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function SQ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function EQ(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Jy(e){return e===void 0||e===1}function b3({scale:e,scaleX:t,scaleY:n}){return!Jy(e)||!Jy(t)||!Jy(n)}function Y0(e){return b3(e)||ER(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ER(e){return t9(e.x)||t9(e.y)}function t9(e){return e&&e!=="0%"}function Lx(e,t,n){const r=e-n,a=t*r;return n+a}function n9(e,t,n,r,a){return a!==void 0&&(e=Lx(e,a,r)),Lx(e,n,r)+t}function y3(e,t=0,n=1,r,a){e.min=n9(e.min,t,n,r,a),e.max=n9(e.max,t,n,r,a)}function kR(e,{x:t,y:n}){y3(e.x,t.translate,t.scale,t.originPoint),y3(e.y,n.translate,n.scale,n.originPoint)}const r9=.999999999999,a9=1.0000000000001;function kQ(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let s,i;for(let o=0;o<a;o++){s=n[o],i=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Bf(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,kR(e,i)),r&&Y0(s.latestValues)&&Bf(e,s.latestValues))}t.x<a9&&t.x>r9&&(t.x=1),t.y<a9&&t.y>r9&&(t.y=1)}function If(e,t){e.min=e.min+t,e.max=e.max+t}function s9(e,t,n,r,a=.5){const s=ga(e.min,e.max,a);y3(e,t,n,s,r)}function Bf(e,t){s9(e.x,t.x,t.scaleX,t.scale,t.originX),s9(e.y,t.y,t.scaleY,t.scale,t.originY)}function _R(e,t){return SR(EQ(e.getBoundingClientRect(),t))}function _Q(e,t,n){const r=_R(e,n),{scroll:a}=t;return a&&(If(r.x,a.offset.x),If(r.y,a.offset.y)),r}const i9=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ff=()=>({x:i9(),y:i9()}),o9=()=>({min:0,max:0}),Ia=()=>({x:o9(),y:o9()}),v3={current:null},TR={current:!1};function TQ(){if(TR.current=!0,!!sw)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>v3.current=e.matches;e.addEventListener("change",t),t()}else v3.current=!1}const CQ=new WeakMap;function NQ(e,t,n){for(const r in t){const a=t[r],s=n[r];if(Ks(a))e.addValue(r,a);else if(Ks(s))e.addValue(r,sp(a,{owner:e}));else if(s!==a)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(a):i.hasAnimated||i.set(a)}else{const i=e.getStaticValue(r);e.addValue(r,sp(i!==void 0?i:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const l9=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class AQ{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:s,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Sw,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=Ui.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,ca.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=i;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=P5(n),this.isVariantNode=dR(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in m){const g=m[b];c[b]!==void 0&&Ks(g)&&g.set(c[b])}}mount(t){this.current=t,CQ.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),TR.current||TQ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:v3.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),t0(this.notifyUpdate),t0(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=vp.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&ca.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ip){const n=ip[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ia()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<l9.length;r++){const a=l9[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,i=t[s];i&&(this.propEventSubscriptions[a]=this.on(a,i))}this.prevMotionValues=NQ(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
vendor: 4,301 bytes, line 58
58addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=sp(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(bM(r)||vM(r))?r=parseFloat(r):!IY(r)&&n0.test(n)&&(r=tR(t,n)),this.setBaseTarget(t,Ks(r)?r.get():r)),Ks(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Ow(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Ks(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new uw),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){_w.render(this.render)}}class CR extends AQ{constructor(){super(...arguments),this.KeyframeResolver=_Y}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ks(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function NR(e,{style:t,vars:n},r,a){const s=e.style;let i;for(i in t)s[i]=t[i];a?.applyProjectionStyles(s,r);for(i in n)s.setProperty(i,n[i])}function LQ(e){return window.getComputedStyle(e)}class MQ extends CR{constructor(){super(...arguments),this.type="html",this.renderInstance=NR}readValueFromInstance(t,n){if(vp.has(n))return this.projection?.isProjecting?d3(n):VW(t,n);{const r=LQ(t),a=(fw(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return _R(t,n)}build(t,n,r){Lw(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Pw(t,n,r)}}const AR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function RQ(e,t,n,r){NR(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(AR.has(a)?a:jw(a),t.attrs[a])}class OQ extends CR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ia}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vp.has(n)){const r=eR(n);return r&&r.default||0}return n=AR.has(n)?n:jw(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return bR(t,n,r)}build(t,n,r){pR(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){RQ(t,n,r,a)}mount(t){this.isSVGTag=gR(t.tagName),super.mount(t)}}const PQ=(e,t)=>Rw(e)?new OQ(t):new MQ(t,{allowProjection:e!==G.Fragment});function Vf(e,t,n){const r=e.getProps();return Ow(r,t,n!==void 0?n:r.custom,e)}const w3=e=>Array.isArray(e);function jQ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,sp(n))}function DQ(e){return w3(e)?e[e.length-1]||0:e}function IQ(e,t){const n=Vf(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const i in s){const o=DQ(s[i]);jQ(e,i,o)}}function BQ(e){return!!(Ks(e)&&e.add)}function S3(e,t){const n=e.getValue("willChange");if(BQ(n))return n.add(t);
vendor: 15,798 bytes, line 58
58if(!n&&Uu.WillChange){const r=new Uu.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function LR(e){return e.props[yR]}const FQ=e=>e!==null;function zQ(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(FQ),s=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[s]}const HQ={type:"spring",stiffness:500,damping:25,restSpeed:10},UQ=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),qQ={type:"keyframes",duration:.8},VQ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},GQ=(e,{keyframes:t})=>t.length>2?qQ:vp.has(e)?e.startsWith("scale")?UQ(t[1]):HQ:VQ;function $Q({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:s,repeatType:i,repeatDelay:o,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const Dw=(e,t,n,r={},a,s)=>i=>{const o=Ew(r,e)||{},c=o.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Lc(c);const f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-d,onUpdate:b=>{t.set(b),o.onUpdate&&o.onUpdate(b)},onComplete:()=>{i(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:a};$Q(o)||Object.assign(f,GQ(e,f)),f.duration&&(f.duration=Lc(f.duration)),f.repeatDelay&&(f.repeatDelay=Lc(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let m=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(g3(f),f.delay===0&&(m=!0)),(Uu.instantAnimations||Uu.skipAnimations)&&(m=!0,g3(f),f.delay=0),f.allowFlatten=!o.type&&!o.ease,m&&!s&&t.get()!==void 0){const b=zQ(f.keyframes,o);if(b!==void 0){ca.update(()=>{f.onUpdate(b),f.onComplete()});return}}return o.isSync?new ww(f):new fY(f)};function WQ({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function MR(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:i,...o}=t;r&&(s=r);const c=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const f in o){const m=e.getValue(f,e.latestValues[f]??null),b=o[f];if(b===void 0||d&&WQ(d,f))continue;const g={delay:n,...Ew(s||{},f)},v=m.get();if(v!==void 0&&!m.isAnimating&&!Array.isArray(b)&&b===v&&!g.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const _=LR(e);if(_){const A=window.MotionHandoffAnimation(_,f,ca);A!==null&&(g.startTime=A,E=!0)}}S3(e,f),m.start(Dw(f,m,b,e.shouldReduceMotion&&KM.has(f)?{type:!1}:g,e,E));const T=m.animation;T&&c.push(T)}return i&&Promise.all(c).then(()=>{ca.update(()=>{i&&IQ(e,i)})}),c}function RR(e,t,n,r=0,a=1){const s=Array.from(e).sort((d,f)=>d.sortNodePosition(f)).indexOf(t),i=e.size,o=(i-1)*r;return typeof n=="function"?n(s,i):a===1?s*r:o-s*r}function E3(e,t,n={}){const r=Vf(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const s=r?()=>Promise.all(MR(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:m}=a;return YQ(e,t,c,d,f,m,n)}:()=>Promise.resolve(),{when:o}=a;if(o){const[c,d]=o==="beforeChildren"?[s,i]:[i,s];return c().then(()=>d())}else return Promise.all([s(),i(n.delay)])}function YQ(e,t,n=0,r=0,a=0,s=1,i){const o=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),o.push(E3(c,t,{...i,delay:n+(typeof r=="function"?0:r)+RR(e.variantChildren,c,r,a,s)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(o)}function QQ(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>E3(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=E3(e,t,n);else{const a=typeof t=="function"?Vf(e,t,n.custom):t;r=Promise.all(MR(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function OR(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const XQ=Aw.length;function PR(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?PR(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<XQ;n++){const r=Aw[n],a=e.props[r];(E1(a)||a===!1)&&(t[r]=a)}return t}const KQ=[...Nw].reverse(),JQ=Nw.length;function ZQ(e){return t=>Promise.all(t.map(({animation:n,options:r})=>QQ(e,n,r)))}function eX(e){let t=ZQ(e),n=c9(),r=!0;const a=c=>(d,f)=>{const m=Vf(e,f,c==="exit"?e.presenceContext?.custom:void 0);if(m){const{transition:b,transitionEnd:g,...v}=m;d={...d,...v,...g}}return d};function s(c){t=c(e)}function i(c){const{props:d}=e,f=PR(e.parent)||{},m=[],b=new Set;let g={},v=1/0;for(let T=0;T<JQ;T++){const _=KQ[T],A=n[_],R=d[_]!==void 0?d[_]:f[_],P=E1(R),V=_===c?A.isActive:null;V===!1&&(v=T);let U=R===f[_]&&R!==d[_]&&P;if(U&&r&&e.manuallyAnimateOnMount&&(U=!1),A.protectedKeys={...g},!A.isActive&&V===null||!R&&!A.prevProp||O5(R)||typeof R=="boolean")continue;const D=tX(A.prevProp,R);let H=D||_===c&&A.isActive&&!U&&P||T>v&&P,q=!1;const W=Array.isArray(R)?R:[R];let z=W.reduce(a(_),{});V===!1&&(z={});const{prevResolvedValues:$={}}=A,ae={...$,...z},J=ce=>{H=!0,b.has(ce)&&(q=!0,b.delete(ce)),A.needsAnimating[ce]=!0;const se=e.getValue(ce);se&&(se.liveStyle=!1)};for(const ce in ae){const se=z[ce],be=$[ce];if(g.hasOwnProperty(ce))continue;let Z=!1;w3(se)&&w3(be)?Z=!OR(se,be):Z=se!==be,Z?se!=null?J(ce):b.add(ce):se!==void 0&&b.has(ce)?J(ce):A.protectedKeys[ce]=!0}A.prevProp=R,A.prevResolvedValues=z,A.isActive&&(g={...g,...z}),r&&e.blockInitialAnimation&&(H=!1);const xe=U&&D;H&&(!xe||q)&&m.push(...W.map(ce=>{const se={type:_};if(typeof ce=="string"&&r&&!xe&&e.manuallyAnimateOnMount&&e.parent){const{parent:be}=e,Z=Vf(be,ce);if(be.enteringChildren&&Z){const{delayChildren:ne}=Z.transition||{};se.delay=RR(be.enteringChildren,e,ne)}}return{animation:ce,options:se}}))}if(b.size){const T={};if(typeof d.initial!="boolean"){const _=Vf(e,Array.isArray(d.initial)?d.initial[0]:d.initial);_&&_.transition&&(T.transition=_.transition)}b.forEach(_=>{const A=e.getBaseTarget(_),R=e.getValue(_);R&&(R.liveStyle=!0),T[_]=A??null}),m.push({animation:T})}let E=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(m):Promise.resolve()}function o(c,d){if(n[c].isActive===d)return Promise.resolve();e.variantChildren?.forEach(m=>m.animationState?.setActive(c,d)),n[c].isActive=d;const f=i(c);for(const m in n)n[m].protectedKeys={};return f}return{animateChanges:i,setActive:o,setAnimateFunction:s,getState:()=>n,reset:()=>{n=c9(),r=!0}}}function tX(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!OR(t,e):!1}function U0(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function c9(){return{animate:U0(!0),whileInView:U0(),whileHover:U0(),whileTap:U0(),whileDrag:U0(),whileFocus:U0(),exit:U0()}}class l0{constructor(t){this.isMounted=!1,this.node=t}update(){}}class nX extends l0{constructor(t){super(t),t.animationState||(t.animationState=eX(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();O5(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let rX=0;class aX extends l0{constructor(){super(...arguments),this.id=rX++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const sX={animation:{Feature:nX},exit:{Feature:aX}};function _1(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Y1(e){return{point:{x:e.pageX,y:e.pageY}}}const iX=e=>t=>Tw(t)&&e(t,Y1(t));function Ym(e,t,n,r){return _1(e,t,iX(n),r)}const jR=1e-4,oX=1-jR,lX=1+jR,DR=.01,cX=0-DR,uX=0+DR;function pi(e){return e.max-e.min}function dX(e,t,n){return Math.abs(e-t)<=n}function u9(e,t,n,r=.5){e.origin=r,e.originPoint=ga(t.min,t.max,e.origin),e.scale=pi(n)/pi(t),e.translate=ga(n.min,n.max,e.origin)-e.originPoint,(e.scale>=oX&&e.scale<=lX||isNaN(e.scale))&&(e.scale=1),(e.translate>=cX&&e.translate<=uX||isNaN(e.translate))&&(e.translate=0)}function Qm(e,t,n,r){u9(e.x,t.x,n.x,r?r.originX:void 0),u9(e.y,t.y,n.y,r?r.originY:void 0)}function d9(e,t,n){e.min=n.min+t.min,e.max=e.min+pi(t)}function hX(e,t,n){d9(e.x,t.x,n.x),d9(e.y,t.y,n.y)}function h9(e,t,n){e.min=t.min-n.min,e.max=e.min+pi(t)}function Xm(e,t,n){h9(e.x,t.x,n.x),h9(e.y,t.y,n.y)}function Fo(e){return[e("x"),e("y")]}const IR=({current:e})=>e?e.ownerDocument.defaultView:null,f9=(e,t)=>Math.abs(e-t);function fX(e,t){const n=f9(e.x,t.x),r=f9(e.y,t.y);return Math.sqrt(n**2+r**2)}class BR{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:s=!1,distanceThreshold:i=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=e4(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,v=fX(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!v)return;const{point:E}=b,{timestamp:T}=zs;this.history.push({...E,timestamp:T});const{onStart:_,onMove:A}=this.handlers;g||(_&&_(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,b)},this.handlePointerMove=(b,g)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=Zy(g,this.transformPagePoint),ca.update(this.updatePoint,!0)},this.handlePointerUp=(b,g)=>{this.end();const{onEnd:v,onSessionEnd:E,resumeAnimation:T}=this.handlers;if(this.dragSnapToOrigin&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=e4(b.type==="pointercancel"?this.lastMoveEventInfo:Zy(g,this.transformPagePoint),this.history);this.startEvent&&v&&v(b,_),E&&E(b,_)},!Tw(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=a||window;const o=Y1(t),c=Zy(o,this.transformPagePoint),{point:d}=c,{timestamp:f}=zs;this.history=[{...d,timestamp:f}];const{onSessionStart:m}=n;m&&m(t,e4(c,this.history)),this.removeListeners=G1(Ym(this.contextWindow,"pointermove",this.handlePointerMove),Ym(this.contextWindow,"pointerup",this.handlePointerUp),Ym(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),t0(this.updatePoint)}}function Zy(e,t){return t?{point:t(e.point)}:e}function p9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function e4({point:e},t){return{point:e,delta:p9(e,FR(t)),offset:p9(e,pX(t)),velocity:mX(t,.1)}}function pX(e){return e[0]}function FR(e){return e[e.length-1]}function mX(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=FR(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Lc(t)));)n--;if(!r)return{x:0,y:0};const s=Vo(a.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const i={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function gX(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ga(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ga(n,e,r.max):Math.min(e,n)),e}function m9(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function xX(e,{top:t,left:n,bottom:r,right:a}){return{x:m9(e.x,n,a),y:m9(e.y,t,r)}}function g9(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function bX(e,t){return{x:g9(e.x,t.x),y:g9(e.y,t.y)}}function yX(e,t){let n=.5;const r=pi(e),a=pi(t);return a>r?n=v1(t.min,t.max-r,e.min):r>a&&(n=v1(e.min,e.max-a,t.min)),Hu(0,1,n)}function vX(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const k3=.35;function wX(e=k3){return e===!1?e=0:e===!0&&(e=k3),{x:x9(e,"left","right"),y:x9(e,"top","bottom")}}function x9(e,t,n){return{min:b9(e,t),max:b9(e,n)}}function b9(e,t){return typeof e=="number"?e:e[t]||0}const SX=new WeakMap;class EX{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ia(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const s=m=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Y1(m).point)},i=(m,b)=>{const{drag:g,dragPropagation:v,onDragStart:E}=this.getProps();if(g&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=AY(g),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fo(_=>{let A=this.getAxisMotionValue(_).get()||0;if(Mc.test(A)){const{projection:R}=this.visualElement;if(R&&R.layout){const P=R.layout.layoutBox[_];P&&(A=pi(P)*(parseFloat(A)/100))}}this.originPoint[_]=A}),E&&ca.postRender(()=>E(m,b)),S3(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},o=(m,b)=>{this.latestPointerEvent=m,this.latestPanInfo=b;const{dragPropagation:g,dragDirectionLock:v,onDirectionLock:E,onDrag:T}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:_}=b;if(v&&this.currentDirection===null){this.currentDirection=kX(_),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",b.point,_),this.updateAxis("y",b.point,_),this.visualElement.render(),T&&T(m,b)},c=(m,b)=>{this.latestPointerEvent=m,this.latestPanInfo=b,this.stop(m,b),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Fo(m=>this.getAnimationState(m)==="paused"&&this.getAxisMotionValue(m).animation?.play()),{dragSnapToOrigin:f}=this.getProps();this.panSession=new BR(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,distanceThreshold:r,contextWindow:IR(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!a||!r)return;const{velocity:i}=a;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&ca.postRender(()=>o(r,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!p2(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=gX(i,this.constraints[t],this.elastic[t])),s.set(i)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;t&&Df(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=xX(r.layoutBox,t):this.constraints=!1,this.elastic=wX(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Fo(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=vX(r.layoutBox[s],this.constraints[s])
vendor: 9,813 bytes, line 58
58)})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Df(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const s=_Q(r,a.root,this.visualElement.getTransformPagePoint());let i=bX(a.layout.layoutBox,s);if(n){const o=n(SQ(i));this.hasMutatedConstraints=!!o,o&&(i=SR(o))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:o}=this.getProps(),c=this.constraints||{},d=Fo(f=>{if(!p2(f,n,this.currentDirection))return;let m=c&&c[f]||{};i&&(m={min:0,max:0});const b=a?200:1e6,g=a?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:b,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...m};return this.startAxisValueAnimation(f,v)});return Promise.all(d).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return S3(this.visualElement,t),r.start(Dw(t,r,0,n,this.visualElement,!1))}stopAnimation(){Fo(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fo(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Fo(n=>{const{drag:r}=this.getProps();if(!p2(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(n);if(a&&a.layout){const{min:i,max:o}=a.layout.layoutBox[n];s.set(t[n]-ga(i,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Df(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Fo(i=>{const o=this.getAxisMotionValue(i);if(o&&this.constraints!==!1){const c=o.get();a[i]=yX({min:c,max:c},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fo(i=>{if(!p2(i,t,null))return;const o=this.getAxisMotionValue(i),{min:c,max:d}=this.constraints[i];o.set(ga(c,d,a[i]))})}addListeners(){if(!this.visualElement.current)return;SX.set(this.visualElement,this);const t=this.visualElement.current,n=Ym(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Df(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,s=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),ca.read(r);const i=_1(window,"resize",()=>this.scalePositionWithinConstraints()),o=a.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Fo(f=>{const m=this.getAxisMotionValue(f);m&&(this.originPoint[f]+=c[f].translate,m.set(m.get()+c[f].translate))}),this.visualElement.render())}));return()=>{i(),n(),s(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:i=k3,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:i,dragMomentum:o}}}function p2(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function kX(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class _X extends l0{constructor(t){super(t),this.removeGroupControls=Wo,this.removeListeners=Wo,this.controls=new EX(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wo}unmount(){this.removeGroupControls(),this.removeListeners()}}const y9=e=>(t,n)=>{e&&ca.postRender(()=>e(t,n))};class TX extends l0{constructor(){super(...arguments),this.removePointerDownListener=Wo}onPointerDown(t){this.session=new BR(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:IR(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:y9(t),onStart:y9(n),onMove:r,onEnd:(s,i)=>{delete this.session,a&&ca.postRender(()=>a(s,i))}}}mount(){this.removePointerDownListener=Ym(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ax={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function v9(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const km={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xn.test(e))e=parseFloat(e);else return e;const n=v9(e,t.target.x),r=v9(e,t.target.y);return`${n}% ${r}%`}},CX={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=n0.parse(e);if(a.length>5)return r;const s=n0.createTransformer(e),i=typeof a[0]!="number"?1:0,o=n.x.scale*t.x,c=n.y.scale*t.y;a[0+i]/=o,a[1+i]/=c;const d=ga(o,c,.5);return typeof a[2+i]=="number"&&(a[2+i]/=d),typeof a[3+i]=="number"&&(a[3+i]/=d),s(a)}};let t4=!1;class NX extends G.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;XY(AX),s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),t4&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ax.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,{projection:i}=r;return i&&(i.isPresent=s,t4=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||ca.postRender(()=>{const o=i.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),_w.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;t4=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function zR(e){const[t,n]=lR(),r=G.useContext(rw);return h.jsx(NX,{...e,layoutGroup:r,switchLayoutGroup:G.useContext(vR),isPresent:t,safeToRemove:n})}const AX={borderRadius:{...km,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:km,borderTopRightRadius:km,borderBottomLeftRadius:km,borderBottomRightRadius:km,boxShadow:CX};function LX(e,t,n){const r=Ks(e)?e:sp(e);return r.start(Dw("",r,t,n)),r.animation}const MX=(e,t)=>e.depth-t.depth;class RX{constructor(){this.children=[],this.isDirty=!1}add(t){iw(this.children,t),this.isDirty=!0}remove(t){ow(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(MX),this.isDirty=!1,this.children.forEach(t)}}function OX(e,t){const n=Ui.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(t0(r),e(s-t))};return ca.setup(r,!0),()=>t0(r)}const HR=["TopLeft","TopRight","BottomLeft","BottomRight"],PX=HR.length,w9=e=>typeof e=="string"?parseFloat(e):e,S9=e=>typeof e=="number"||xn.test(e);function jX(e,t,n,r,a,s){a?(e.opacity=ga(0,n.opacity??1,DX(r)),e.opacityExit=ga(t.opacity??1,0,IX(r))):s&&(e.opacity=ga(t.opacity??1,n.opacity??1,r));for(let i=0;i<PX;i++){const o=`border${HR[i]}Radius`;let c=E9(t,o),d=E9(n,o);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||S9(c)===S9(d)?(e[o]=Math.max(ga(w9(c),w9(d),r),0),(Mc.test(d)||Mc.test(c))&&(e[o]+="%")):e[o]=d}(t.rotate||n.rotate)&&(e.rotate=ga(t.rotate||0,n.rotate||0,r))}function E9(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const DX=UR(0,.5,NM),IX=UR(.5,.95,Wo);function UR(e,t,n){return r=>r<e?0:r>t?1:n(v1(e,t,r))}function k9(e,t){e.min=t.min,e.max=t.max}function Io(e,t){k9(e.x,t.x),k9(e.y,t.y)}function _9(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function T9(e,t,n,r,a){return e-=t,e=Lx(e,1/n,r),a!==void 0&&(e=Lx(e,1/a,r)),e}function BX(e,t=0,n=1,r=.5,a,s=e,i=e){if(Mc.test(t)&&(t=parseFloat(t),t=ga(i.min,i.max,t/100)-i.min),typeof t!="number")return;let o=ga(s.min,s.max,r);e===s&&(o-=t),e.min=T9(e.min,t,n,o,a),e.max=T9(e.max,t,n,o,a)}function C9(e,t,[n,r,a],s,i){BX(e,t[n],t[r],t[a],t.scale,s,i)}const FX=["x","scaleX","originX"],zX=["y","scaleY","originY"];function N9(e,t,n,r){C9(e.x,t,FX,n?n.x:void 0,r?r.x:void 0),C9(e.y,t,zX,n?n.y:void 0,r?r.y:void 0)}function A9(e){return e.translate===0&&e.scale===1}function qR(e){return A9(e.x)&&A9(e.y)}function L9(e,t){return e.min===t.min&&e.max===t.max}function HX(e,t){return L9(e.x,t.x)&&L9(e.y,t.y)}function M9(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function VR(e,t){return M9(e.x,t.x)&&M9(e.y,t.y)}function R9(e){return pi(e.x)/pi(e.y)}function O9(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class UX{constructor(){this.members=[]}add(t){iw(this.members,t),t.scheduleRender()}remove(t){if(ow(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const s=this.members[a];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,
vendor: 5,251 bytes, line 58
58n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function qX(e,t,n){let r="";const a=e.x.translate/t.x,s=e.y.translate/t.y,i=n?.z||0;if((a||s||i)&&(r=`translate3d(${a}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:m,rotateY:b,skewX:g,skewY:v}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),m&&(r+=`rotateX(${m}deg) `),b&&(r+=`rotateY(${b}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const o=e.x.scale*t.x,c=e.y.scale*t.y;return(o!==1||c!==1)&&(r+=`scale(${o}, ${c})`),r||"none"}const n4=["","X","Y","Z"],VX=1e3;let GX=0;function r4(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function GR(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=LR(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ca,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&GR(r)}function $R({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(i={},o=t?.()){this.id=GX++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(YX),this.nodes.forEach(JX),this.nodes.forEach(ZX),this.nodes.forEach(QX)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new RX)}addEventListener(i,o){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new uw),this.eventHandlers.get(i).add(o)}notifyListeners(i,...o){const c=this.eventHandlers.get(i);c&&c.notify(...o)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=oR(i)&&!jY(i),this.instance=i;const{layoutId:o,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||o)&&(this.isLayoutDirty=!0),e){let f,m=0;const b=()=>this.root.updateBlockedByResize=!1;ca.read(()=>{m=window.innerWidth}),e(i,()=>{const g=window.innerWidth;g!==m&&(m=g,this.root.updateBlockedByResize=!0,f&&f(),f=OX(b,250),ax.hasAnimatedSinceResize&&(ax.hasAnimatedSinceResize=!1,this.nodes.forEach(D9)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&d&&(o||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeLayoutChanged:b,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||aK,{onLayoutAnimationStart:E,onLayoutAnimationComplete:T}=d.getProps(),_=!this.targetLayout||!VR(this.targetLayout,g),A=!m&&b;if(this.options.layoutRoot||this.resumeFrom||A||m&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...Ew(v,"layout"),onPlay:E,onComplete:T};(d.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(f,A)}else m||D9(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),t0(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEac
vendor: 7,558 bytes, line 58
58h(eK),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&GR(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const m=this.path[f];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:o,layout:c}=this.options;if(o===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(P9);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(j9);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(KX),this.nodes.forEach($X),this.nodes.forEach(WX)):this.nodes.forEach(j9),this.clearAllSnapshots();const o=Ui.now();zs.delta=Hu(0,1e3/60,o-zs.timestamp),zs.timestamp=o,zs.isProcessing=!0,Gy.update.process(zs),Gy.preRender.process(zs),Gy.render.process(zs),zs.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_w.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(XX),this.sharedNodes.forEach(tK)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ca.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ca.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pi(this.snapshot.measuredBox.x)&&!pi(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ia(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(o=!1),o&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!a)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!qR(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;i&&this.instance&&(o||Y0(this.latestValues)||f)&&(a(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const o=this.measurePageBox();let c=this.removeElementScroll(o);return i&&(c=this.removeTransform(c)),sK(c),{animationId:this.root.animationId,measuredBox:o,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return Ia();const o=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(iK))){const{scroll:d}=this.root;d&&(If(o.x,d.offset.x),If(o.y,d.offset.y))}return o}removeElementScroll(i){const o=Ia();if(Io(o,i),this.scroll?.wasRoot)return o;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:f,options:m}=d;d!==this.root&&f&&m.layoutScroll&&(f.wasRoot&&Io(o,i),If(o.x,f.offset.x),If(o.y,f.offset.y))}return o}applyTransform(i,o=!1){const c=Ia();Io(c,i);for(let d=0;d<this.path.length;d++){const f=this.path[d];!o&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Bf(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Y0(f.latestValues)&&Bf(c,f.latestValues)}return Y0(this.latestValues)&&Bf(c,this.latestValues),c}removeTransform(i){const o=Ia();Io(o,i);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Y0(d.latestValues))continue;b3(d.latestValues)&&d.updateSnapshot();const f=Ia(),m=d.measurePageBox();Io(f,m),N9(o,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,f)}return Y0(this.latestValues)&&N9(o,this.latestValues),o}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==zs.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==o;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:m}=this.options;if(!(!this.layout||!(f||m))){if(this.resolvedRelativeTargetAt=zs.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ia(),this.relativeTargetOrigin=Ia(),Xm(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Io(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ia(),this.targetWithTransforms=Ia()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hX(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Io(this.target,this.layout.layoutBox),kR(this.target,this.targetDelta)):Io(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ia(),this.relativeTargetOrigin=Ia(),Xm(this.relativeTargetOrigin,this.target,b.target),Io(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||b3(this.parent.latestValues)||ER(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const i=this.getLead(),o=!!this.resumingFrom||this!==i;let c=!0;
vendor: 12,379 bytes, line 58
58if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===zs.timestamp&&(c=!1),c)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;Io(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,b=this.treeScale.y;kQ(this.layoutCorrected,this.treeScale,this.path,o),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=Ia());const{target:g}=i;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_9(this.prevProjectionDelta.x,this.projectionDelta.x),_9(this.prevProjectionDelta.y,this.projectionDelta.y)),Qm(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==b||!O9(this.projectionDelta.x,this.prevProjectionDelta.x)||!O9(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ff(),this.projectionDelta=Ff(),this.projectionDeltaWithTransform=Ff()}setAnimationOrigin(i,o=!1){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},m=Ff();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const b=Ia(),g=c?c.source:void 0,v=this.layout?this.layout.source:void 0,E=g!==v,T=this.getStack(),_=!T||T.members.length<=1,A=!!(E&&!_&&this.options.crossfade===!0&&!this.path.some(rK));this.animationProgress=0;let R;this.mixTargetDelta=P=>{const V=P/1e3;I9(m.x,i.x,V),I9(m.y,i.y,V),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xm(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),nK(this.relativeTarget,this.relativeTargetOrigin,b,V),R&&HX(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=Ia()),Io(R,this.relativeTarget)),E&&(this.animationValues=f,jX(f,d,this.latestValues,V,A,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(t0(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ca.update(()=>{ax.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=sp(0)),this.currentAnimation=LX(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),i.onUpdate&&i.onUpdate(o)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(VX),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:o,target:c,layout:d,latestValues:f}=i;if(!(!o||!c||!d)){if(this!==i&&this.layout&&d&&WR(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Ia();const m=pi(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+m;const b=pi(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+b}Io(o,c),Bf(o,f),Qm(this.projectionDeltaWithTransform,this.layoutCorrected,o,f)}}registerSharedNode(i,o){this.sharedNodes.has(i)||this.sharedNodes.set(i,new UX),this.sharedNodes.get(i).add(o);const d=o.options.initialPromotionConfig;o.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(o):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:o,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),i&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let o=!1;const{latestValues:c}=i;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(o=!0),!o)return;const d={};c.z&&r4("z",i,d,this.animationValues);for(let f=0;f<n4.length;f++)r4(`rotate${n4[f]}`,i,d,this.animationValues),r4(`skew${n4[f]}`,i,d,this.animationValues);i.render();for(const f in d)i.setStaticValue(f,d[f]),this.animationValues&&(this.animationValues[f]=d[f]);i.scheduleRender()}applyProjectionStyles(i,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=rx(o?.pointerEvents)||"",i.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=rx(o?.pointerEvents)||""),this.hasProjected&&!Y0(this.latestValues)&&(i.transform=c?c({},""):"none",this.hasProjected=!1);return}i.visibility="";const f=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=qX(this.projectionDeltaWithTransform,this.treeScale,f);c&&(m=c(f,m)),i.transform=m;const{x:b,y:g}=this.projectionDelta;i.transformOrigin=`${b.origin*100}% ${g.origin*100}% 0`,d.animationValues?i.opacity=d===this?f.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:i.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const v in k1){if(f[v]===void 0)continue;const{correct:E,applyTo:T,isCSSVariable:_}=k1[v],A=m==="none"?f[v]:E(f[v],d);if(T){const R=T.length;for(let P=0;P<R;P++)i[T[P]]=A}else _?this.options.visualElement.renderState.vars[v]=A:i[v]=A}this.options.layoutId&&(i.pointerEvents=d===this?rx(o?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(P9),this.root.sharedNodes.clear()}}}function $X(e){e.updateLayout()}function WX(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;a==="size"?Fo(f=>{const m=s?t.measuredBox[f]:t.layoutBox[f],b=pi(m);m.min=n[f].min,m.max=m.min+b}):WR(a,t.layoutBox,n)&&Fo(f=>{const m=s?t.measuredBox[f]:t.layoutBox[f],b=pi(n[f]);m.max=m.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+b)});const i=Ff();Qm(i,n,t.layoutBox);const o=Ff();s?Qm(o,e.applyTransform(r,!0),t.measuredBox):Qm(o,n,t.layoutBox);const c=!qR(i);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:b}=f;if(m&&b){const g=Ia();Xm(g,t.layoutBox,m.layoutBox);const v=Ia();Xm(v,n,b.layoutBox),VR(g,v)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:i,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function YX(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function QX(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function XX(e){e.clearSnapshot()}function P9(e){e.clearMeasurements()}function j9(e){e.isLayoutDirty=!1}function KX(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function D9(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function JX(e){e.resolveTargetDelta()}function ZX(e){e.calcProjection()}function eK(e){e.resetSkewAndRotation()}function tK(e){e.removeLeadSnapshot()}function I9(e,t,n){e.translate=ga(t.translate,0,n),e.scale=ga(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function B9(e,t,n,r){e.min=ga(t.min,n.min,r),e.max=ga(t.max,n.max,r)}function nK(e,t,n,r){B9(e.x,t.x,n.x,r),B9(e.y,t.y,n.y,r)}function rK(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const aK={duration:.45,ease:[.4,0,.1,1]},F9=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),z9=F9("applewebkit/")&&!F9("chrome/")?Math.round:Wo;function H9(e){e.min=z9(e.min),e.max=z9(e.max)}function sK(e){H9(e.x),H9(e.y)}function WR(e,t,n){return e==="position"||e==="preserve-aspect"&&!dX(R9(t),R9(n),.2)}function iK(e){return e!==e.root&&e.scroll?.wasRoot}const oK=$R({attachResizeListener:(e,t)=>_1(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),a4={current:void 0},YR=$R({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!a4.current){const e=new oK({});e.mount(window),e.setOptions({layoutScroll:!0}),a4.current=e}return a4.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),lK={pan:{Feature:TX},drag:{Feature:_X,ProjectionNode:YR,MeasureLayout:zR}};function U9(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,s=r[a];s&&ca.postRender(()=>s(t,Y1(t)))}class cK extends l0{mount(){const{current:t}=this.node;t&&(this.unmount=LY(t,(n,r)=>(U9(this.node,r,"Start"),a=>U9(this.node,a,"End"))))}unmount(){}}class uK extends l0{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=G1(_1(this.node.current,"focus",()=>this.onFocus()),_1(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function q9(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),s=r[a];s&&ca.postRender(()=>s(t,Y1(t)))}class dK extends l0{mount(){const{current:t}=this.node;t&&(this.unmount=PY(t,(n,r)=>(q9(this.node,r,"Start"),(a,{success:s})=>q9(this.node,a,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const _3=new WeakMap,s4=new WeakMap,hK=e=>{const t=_3.get(e.target);t&&t(e)},fK=e=>{e.forEach(hK)};function pK({root:e,...t}){const n=e||document;s4.has(n)||s4.set(n,{});const r=s4.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(fK,{root:e,...t})),r[a]}
vendor: 4,458 bytes, lines 58-103
58function mK(e,t,n){const r=pK(t);return _3.set(e,n),r.observe(e),()=>{_3.delete(e),r.unobserve(e)}}const gK={some:0,all:1};class xK extends l0{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:gK[a]},o=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:m}=this.node.getProps(),b=d?f:m;b&&b(c)};return mK(this.node.current,i,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(bK(t,n))&&this.startObserver()}unmount(){}}function bK({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const yK={inView:{Feature:xK},tap:{Feature:dK},focus:{Feature:uK},hover:{Feature:cK}},vK={layout:{ProjectionNode:YR,MeasureLayout:zR}},wK={...sX,...yK,...lK,...vK},Je=wQ(wK,PQ);/** 59 * @license lucide-react v0.453.0 - ISC 60 * 61 * This source code is licensed under the ISC license. 62 * See the LICENSE file in the root directory of this source tree. 63 */const SK=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),QR=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** 64 * @license lucide-react v0.453.0 - ISC 65 * 66 * This source code is licensed under the ISC license. 67 * See the LICENSE file in the root directory of this source tree. 68 */var EK={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 69 * @license lucide-react v0.453.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const kK=G.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:i,...o},c)=>G.createElement("svg",{ref:c,...EK,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:QR("lucide",a),...o},[...i.map(([d,f])=>G.createElement(d,f)),...Array.isArray(s)?s:[s]]));/** 74 * @license lucide-react v0.453.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */const Wt=(e,t)=>{const n=G.forwardRef(({className:r,...a},s)=>G.createElement(kK,{ref:s,iconNode:t,className:QR(`lucide-${SK(e)}`,r),...a}));return n.displayName=`${e}`,n};/** 79 * @license lucide-react v0.453.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const _K=Wt("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** 84 * @license lucide-react v0.453.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const j5=Wt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 89 * @license lucide-react v0.453.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const Pu=Wt("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 94 * @license lucide-react v0.453.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const T1=Wt("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 99 * @license lucide-react v0.453.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const Mx=Wt("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
103],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 104 * @license lucide-react v0.453.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const XR=Wt("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/** 109 * @license lucide-react v0.453.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree. 113 */const Rx=Wt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 114 * @license lucide-react v0.453.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const wp=Wt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 119 * @license lucide-react v0.453.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const TK=Wt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 124 * @license lucide-react v0.453.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const Ml=Wt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 129 * @license lucide-react v0.453.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree. 133 */const Iw=Wt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 134 * @license lucide-react v0.453.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const sx=Wt("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 139 * @license lucide-react v0.453.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree. 143 */const La=Wt("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 144 * @license lucide-react v0.453.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const oh=Wt("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/** 149 * @license lucide-react v0.453.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const V9=Wt("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 154 * @license lucide-react v0.453.0 - ISC 155 * 156 * This source code is licensed under the ISC license. 157 * See the LICENSE file in the root directory of this source tree. 158 */const G9=Wt("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 159 * @license lucide-react v0.453.0 - ISC 160 * 161 * This source code is licensed under the ISC license. 162 * See the LICENSE file in the root directory of this source tree. 163 */const CK=Wt("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** 164 * @license lucide-react v0.453.0 - ISC 165 * 166 * This source code is licensed under the ISC license. 167 * See the LICENSE file in the root directory of this source tree. 168 */const $9=Wt("ClipboardCopy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]);/** 169 * @license lucide-react v0.453.0 - ISC 170 * 171 * This source code is licensed under the ISC license. 172 * See the LICENSE file in the root directory of this source tree.
173 */const NK=Wt("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** 174 * @license lucide-react v0.453.0 - ISC 175 * 176 * This source code is licensed under the ISC license. 177 * See the LICENSE file in the root directory of this source tree. 178 */const C1=Wt("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 179 * @license lucide-react v0.453.0 - ISC 180 * 181 * This source code is licensed under the ISC license. 182 * See the LICENSE file in the root directory of this source tree. 183 */const Bw=Wt("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}
183],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/** 184 * @license lucide-react v0.453.0 - ISC 185 * 186 * This source code is licensed under the ISC license. 187 * See the LICENSE file in the root directory of this source tree. 188 */const AK=Wt("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 189 * @license lucide-react v0.453.0 - ISC 190 * 191 * This source code is licensed under the ISC license. 192 * See the LICENSE file in the root directory of this source tree. 193 */const KR=Wt("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** 194 * @license lucide-react v0.453.0 - ISC 195 * 196 * This source code is licensed under the ISC license. 197 * See the LICENSE file in the root directory of this source tree. 198 */const LK=Wt("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 199 * @license lucide-react v0.453.0 - ISC 200 * 201 * This source code is licensed under the ISC license. 202 * See the LICENSE file in the root directory of this source tree. 203 */const ix=Wt("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 204 * @license lucide-react v0.453.0 - ISC 205 * 206 * This source code is licensed under the ISC license. 207 * See the LICENSE file in the root directory of this source tree. 208 */const W9=Wt("Factory",[["path",{d:"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"159hny"}],["path",{d:"M17 18h1",key:"uldtlt"}],["path",{d:"M12 18h1",key:"s9uhes"}],["path",{d:"M7 18h1",key:"1neino"}]]);/** 209 * @license lucide-react v0.453.0 - ISC 210 * 211 * This source code is licensed under the ISC license. 212 * See the LICENSE file in the root directory of this source tree. 213 */const MK=Wt("FileDown",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/** 214 * @license lucide-react v0.453.0 - ISC 215 * 216 * This source code is licensed under the ISC license. 217 * See the LICENSE file in the root directory of this source tree. 218 */const JR=Wt("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 219 * @license lucide-react v0.453.0 - ISC 220 * 221 * This source code is licensed under the ISC license. 222 * See the LICENSE file in the root directory of this source tree. 223 */const RK=Wt("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/** 224 * @license lucide-react v0.453.0 - ISC 225 * 226 * This source code is licensed under the ISC license. 227 * See the LICENSE file in the root directory of this source tree. 228 */const OK=Wt("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** 229 * @license lucide-react v0.453.0 - ISC 230 * 231 * This source code is licensed under the ISC license. 232 * See the LICENSE file in the root directory of this source tree. 233 */const PK=Wt("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 234 * @license lucide-react v0.453.0 - ISC 235 * 236 * This source code is licensed under the ISC license. 237 * See the LICENSE file in the root directory of this source tree. 238 */const ZR=Wt("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 239 * @license lucide-react v0.453.0 - ISC 240 * 241 * This source code is licensed under the ISC license. 242 * See the LICENSE file in the root directory of this source tree. 243 */const jK=Wt("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 244 * @license lucide-react v0.453.0 - ISC 245 * 246 * This source code is licensed under the ISC license. 247 * See the LICENSE file in the root directory of this source tree.
248 */const DK=Wt("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** 249 * @license lucide-react v0.453.0 - ISC 250 * 251 * This source code is licensed under the ISC license. 252 * See the LICENSE file in the root directory of this source tree. 253 */const IK=Wt("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** 254 * @license lucide-react v0.453.0 - ISC 255 * 256 * This source code is licensed under the ISC license. 257 * See the LICENSE file in the root directory of this source tree. 258 */const Zs=Wt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 259 * @license lucide-react v0.453.0 - ISC 260 * 261 * This source code is licensed under the ISC license. 262 * See the LICENSE file in the root directory of this source tree. 263 */const BK=Wt("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 264 * @license lucide-react v0.453.0 - ISC 265 * 266 * This source code is licensed under the ISC license. 267 * See the LICENSE file in the root directory of this source tree. 268 */const T3=Wt("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 269 * @license lucide-react v0.453.0 - ISC 270 * 271 * This source code is licensed under the ISC license. 272 * See the LICENSE file in the root directory of this source tree. 273 */const FK=Wt("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 274 * @license lucide-react v0.453.0 - ISC 275 * 276 * This source code is licensed under the ISC license. 277 * See the LICENSE file in the root directory of this source tree. 278 */const lh=Wt("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/** 279 * @license lucide-react v0.453.0 - ISC 280 * 281 * This source code is licensed under the ISC license. 282 * See the LICENSE file in the root directory of this source tree. 283 */const C3=Wt("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** 284 * @license lucide-react v0.453.0 - ISC 285 * 286 * This source code is licensed under the ISC license. 287 * See the LICENSE file in the root directory of this source tree. 288 */const zK=Wt("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 289 * @license lucide-react v0.453.0 - ISC 290 * 291 * This source code is licensed under the ISC license. 292 * See the LICENSE file in the root directory of this source tree. 293 */const Ox=Wt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 294 * @license lucide-react v0.453.0 - ISC 295 * 296 * This source code is licensed under the ISC license. 297 * See the LICENSE file in the root directory of this source tree. 298 */const HK=Wt("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/** 299 * @license lucide-react v0.453.0 - ISC 300 * 301 * This source code is licensed under the ISC license. 302 * See the LICENSE file in the root directory of this source tree. 303 */const UK=Wt("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** 304 * @license lucide-react v0.453.0 - ISC 305 * 306 * This source code is licensed under the ISC license. 307 * See the LICENSE file in the root directory of this source tree. 308 */const eO=Wt("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 309 * @license lucide-react v0.453.0 - ISC 310 * 311 * This source code is licensed under the ISC license. 312 * See the LICENSE file in the root directory of this source tree. 313 */const qK=Wt("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** 314 * @license lucide-react v0.453.0 - ISC 315 * 316 * This source code is licensed under the ISC license. 317 * See the LICENSE file in the root directory of this source tree. 318 */const Px=Wt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 319 * @license lucide-react v0.453.0 - ISC 320 * 321 * This source code is licensed under the ISC license. 322 * See the LICENSE file in the root directory of this source tree. 323 */const jx=Wt("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 324 * @license lucide-react v0.453.0 - ISC 325 * 326 * This source code is licensed under the ISC license. 327 * See the LICENSE file in the root directory of this source tree. 328 */const VK=Wt("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
328y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 329 * @license lucide-react v0.453.0 - ISC 330 * 331 * This source code is licensed under the ISC license. 332 * See the LICENSE file in the root directory of this source tree. 333 */const GK=Wt("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** 334 * @license lucide-react v0.453.0 - ISC 335 * 336 * This source code is licensed under the ISC license. 337 * See the LICENSE file in the root directory of this source tree. 338 */const Y9=Wt("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/** 339 * @license lucide-react v0.453.0 - ISC 340 * 341 * This source code is licensed under the ISC license. 342 * See the LICENSE file in the root directory of this source tree. 343 */const Qd=Wt("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 344 * @license lucide-react v0.453.0 - ISC 345 * 346 * This source code is licensed under the ISC license. 347 * See the LICENSE file in the root directory of this source tree. 348 */const i4=Wt("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** 349 * @license lucide-react v0.453.0 - ISC 350 * 351 * This source code is licensed under the ISC license. 352 * See the LICENSE file in the root directory of this source tree. 353 */const Fw=Wt("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** 354 * @license lucide-react v0.453.0 - ISC 355 * 356 * This source code is licensed under the ISC license. 357 * See the LICENSE file in the root directory of this source tree. 358 */const zw=Wt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 359 * @license lucide-react v0.453.0 - ISC 360 * 361 * This source code is licensed under the ISC license. 362 * See the LICENSE file in the root directory of this source tree. 363 */const N3=Wt("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 364 * @license lucide-react v0.453.0 - ISC 365 * 366 * This source code is licensed under the ISC license. 367 * See the LICENSE file in the root directory of this source tree. 368 */const qi=Wt("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 369 * @license lucide-react v0.453.0 - ISC 370 * 371 * This source code is licensed under the ISC license. 372 * See the LICENSE file in the root directory of this source tree. 373 */const $K=Wt("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 374 * @license lucide-react v0.453.0 - ISC 375 * 376 * This source code is licensed under the ISC license. 377 * See the LICENSE file in the root directory of this source tree. 378 */const WK=Wt("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 379 * @license lucide-react v0.453.0 - ISC 380 * 381 * This source code is licensed under the ISC license. 382 * See the LICENSE file in the root directory of this source tree. 383 */const ei=Wt("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/** 384 * @license lucide-react v0.453.0 - ISC 385 * 386 * This source code is licensed under the ISC license. 387 * See the LICENSE file in the root directory of this source tree. 388 */const Sp=Wt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 3,429 bytes, lines 388-401
388],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 389 * @license lucide-react v0.453.0 - ISC 390 * 391 * This source code is licensed under the ISC license. 392 * See the LICENSE file in the root directory of this source tree. 393 */const qu=Wt("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function YK(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,a,s,i=[],o="",c=e.split("/");for(c[0]||c.shift();a=c.shift();)n=a[0],n==="*"?(i.push(n),o+=a[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=a.indexOf("?",1),s=a.indexOf(".",1),i.push(a.substring(1,~r?r:~s?s:a.length)),o+=~r&&!~s?"(?:/([^/]+?))?":"/([^/]+?)",~s&&(o+=(~r?"?":"")+"\\"+a.substring(s))):o+="/"+a;return{keys:i,pattern:new RegExp("^"+o+(t?"(?=$|/)":"/?$"),"i")}}var o4={exports:{}},l4={};/** 394 * @license React 395 * use-sync-external-store-shim.production.js 396 * 397 * Copyright (c) Meta Platforms, Inc. and affiliates. 398 * 399 * This source code is licensed under the MIT license found in the 400 * LICENSE file in the root directory of this source tree. 401 */var Q9;function QK(){if(Q9)return l4;Q9=1;var e=b5();function t(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function o(m,b){var g=b(),v=r({inst:{value:g,getSnapshot:b}}),E=v[0].inst,T=v[1];return s(function(){E.value=g,E.getSnapshot=b,c(E)&&T({inst:E})},[m,g,b]),a(function(){return c(E)&&T({inst:E}),m(function(){c(E)&&T({inst:E})})},[m]),i(g),g}function c(m){var b=m.getSnapshot;m=m.value;try{var g=b();return!n(m,g)}catch{return!0}}function d(m,b){return b()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:o;return l4.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,l4}var X9;function XK(){return X9||(X9=1,o4.exports=QK()),o4.exports}var KK=XK();const JK=OA.useInsertionEffect,ZK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",eJ=ZK?G.useLayoutEffect:G.useEffect,tJ=JK||eJ,tO=e=>{const t=G.useRef([e,(...n)=>t[0](...n)]).current;return tJ(()=>{t[0]=e}),t[1]},nJ="popstate",Hw="pushState",Uw="replaceState",rJ="hashchange",K9=[nJ,Hw,Uw,rJ],aJ=e=>{for(const t of K9)addEventListener(t,e);return()=>{for(const t of K9)removeEventListener(t,e)}},nO=(e,t)=>KK.useSyncExternalStore(aJ,e,t),sJ=()=>location.search,iJ=({ssrSearch:e=""}={})=>nO(sJ,()=>e),J9=()=>location.pathname,oJ=({ssrPath:e}={})=>nO(J9,e?()=>e:J9),lJ=(e,{replace:t=!1,state:n=null}={})=>history[t?Uw:Hw](n,"",e),cJ=(e={})=>[oJ(e),lJ],Z9=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Z9]>"u"){for(const e of[Hw,Uw]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,Z9,{value:!0})}const uJ=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",rO=(e="")=>e==="/"?"":e,dJ=(e,t)=>e[0]==="~"?e.slice(1):rO(t)+e,hJ=(e="",t)=>uJ(A3(rO(e)),A3(t)),fJ=e=>e[0]==="?"?e.slice(1):e,A3=e=>{try{return decodeURI(e)}catch{return e}},pJ=e=>A3(fJ(e)),aO={hook:cJ,searchHook:iJ,parser:YK,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},sO=G.createContext(aO),Ep=()=>G.useContext(sO),iO={},oO=G.createContext(iO),D5=()=>
401G.useContext(oO),I5=e=>{const[t,n]=e.hook(e);return[hJ(e.base,t),tO((r,a)=>n(dJ(r,e.base),a))]},B5=()=>I5(Ep()),mJ=()=>{const e=Ep();return pJ(e.searchHook(e))},lO=(e,t,n,r)=>{const{pattern:a,keys:s}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),i=a.exec(n)||[],[o,...c]=i;return o!==void 0?[!0,(()=>{const d=s!==!1?Object.fromEntries(s.map((m,b)=>[m,c[b]])):i.groups;let f={...c};return d&&Object.assign(f,d),f})(),...r?[o]:[]]:[!1,null]},gJ=({children:e,...t})=>{const n=Ep(),r=t.hook?aO:n;let a=r;const[s,i]=t.ssrPath?.split("?")??[];i&&(t.ssrSearch=i,t.ssrPath=s),t.hrefs=t.hrefs??t.hook?.hrefs;let o=G.useRef({}),c=o.current,d=c;for(let f in r){const m=f==="base"?r[f]+(t[f]||""):t[f]||r[f];c===d&&m!==d[f]&&(o.current=d={...d}),d[f]=m,(m!==r[f]||m!==a[f])&&(a=d)}return G.createElement(sO.Provider,{value:a,children:e})},e_=({children:e,component:t},n)=>t?G.createElement(t,{params:n}):typeof e=="function"?e(n):e,xJ=e=>{let t=G.useRef(iO);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([r,a])=>a!==n[r])?e:n},_s=({path:e,nest:t,match:n,...r})=>{const a=Ep(),[s]=I5(a),[i,o,c]=n??lO(a.parser,e,s,t),d=xJ({...D5(),...o});if(!i)return null;const f=c?G.createElement(gJ,{base:c},e_(r,d)):e_(r,d);return G.createElement(oO.Provider,{value:d,children:f})},kt=G.forwardRef((e,t)=>{const n=Ep(),[r,a]=I5(n),{to:s="",href:i=s,onClick:o,asChild:c,children:d,className:f,replace:m,state:b,...g}=e,v=tO(T=>{T.ctrlKey||T.metaKey||T.altKey||T.shiftKey||T.button!==0||(o?.(T),T.defaultPrevented||(T.preventDefault(),a(i,e)))}),E=n.hrefs(i[0]==="~"?i.slice(1):n.base+i,n);return c&&G.isValidElement(d)?G.cloneElement(d,{onClick:v,href:E}):G.createElement("a",{...g,onClick:v,href:E,className:f?.call?f(r===i):f,children:d,ref:t})}),L3=e=>Array.isArray(e)?e.flatMap(t=>L3(t&&t.type===G.Fragment?t.props.children:t)):[e],bJ=({children:e,location:t})=>{const n=Ep(),[r]=I5(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),L3(e).forEach(s=>{if(G.isValidElement(s)&&s.props.path){const i=s.props.path;window.__WOUTER_ROUTES__.includes(i)||window.__WOUTER_ROUTES__.push(i)}}));for(const a of L3(e)){let s=0;if(G.isValidElement(a)&&(s=lO(n.parser,a.props.path,t||r,a.props.nest))[0])return G.cloneElement(a,{match:s})}return null};function t_(){const[,e]=B5();return h.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:9",className:"min-h-screen flex flex-col items-center justify-center relative overflow-hidden",style:{background:"#0a0a0a",fontFamily:"'DM Sans', sans-serif"},children:[h.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:14",className:"absolute inset-0 pointer-events-none",style:{backgroundImage:"radial-gradient(circle, rgba(255,92,0,0.08) 1px, transparent 1px)",backgroundSize:"28px 28px"}}),h.jsx(Je.div,{"data-loc":"client/src/pages/NotFound.tsx:24",className:"absolute left-0 right-0 h-px",style:{background:"rgba(255,92,0,0.15)",top:"38%"},animate:{opacity:[.15,.4,.15]},transition:{duration:3,repeat:1/0,ease:"easeInOut"}}),h.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:32",className:"absolute top-6 left-8 flex items-center gap-2",children:h.jsxs(kt,{"data-loc":"client/src/pages/NotFound.tsx:33",href:"/",className:"flex items-center gap-2 group",children:[h.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:34",className:"w-8 h-8 rounded flex items-center justify-center",style:{background:"#ff5c00"},children:h.jsx(ei,{"data-loc":"client/src/pages/NotFound.tsx:38",className:"w-4 h-4 text-white"})}),h.jsxs("span",{"data-loc":"client/src/pages/NotFound.tsx:40",className:"text-white font-bold tracking-widest text-sm uppercase",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:["Engine",h.jsx("span",{"data-loc":"client/src/pages/NotFound.tsx:44",style:{color:"#ff5c00"},children:"Buildr"})]})]})}),h.jsxs(Je.div,{"data-loc":"client/src/pages/NotFound.tsx:50",className:"relative z-10 flex flex-col items-center text-center px-6 max-w-xl",initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.5,ease:[.23,1,.32,1]},children:[h.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:57",className:"flex items-center gap-2 px-3 py-1 rounded-full mb-8 text-xs font-mono tracking-widest uppercase",style:{border:"1px solid rgba(255,92,0,0.4)",color:"#ff5c00",background:"rgba(255,92,0,0.08)"},children:[h.jsx(qi,{"data-loc":"client/src/pages/NotFound.tsx:65",className:"w-3 h-3"}),h.jsx("span",{"data-loc":"client/src/pages/NotFound.tsx:66",children:"FAULT_CODE: 404"})]}),h.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:70",className:"font-black leading-none mb-2 select-none",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"clamp(7rem, 20vw, 14rem)",color:"transparent",WebkitTextStroke:"2px rgba(255,92,0,0.25)",letterSpacing:"-0.02em"},children:"404"}),h.jsx("h1",{"data-loc":"client/src/pages/NotFound.tsx:84",className:"text-white font-black uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"clamp(1.6rem, 5vw, 2.5rem)",letterSpacing:"0.04em"},children:"Page Not Found"}),h.jsx("p",{"data-loc":"client/src/pages/NotFound.tsx:96",className:"mb-10 leading-relaxed",style:{color:"rgba(255,255,255,0.45)",fontSize:"0.95rem"},children:"The page you're looking for doesn't exist â it may have been moved, deleted, or the link may have expired. Let's get you back on the bench."}),h.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:102",className:"w-full flex items-center justify-between px-4 py-3 rounded mb-10 font-mono text-xs",style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.07)",color:"rgba(255,255,255,0.3)"},children:[h.jsx("span",{"data-loc":"client/src/pages/NotFound.tsx:110",children:"STATUS"}),h.jsx("span",{"data-loc":"client/src/pages/NotFound.tsx:111",style:{color:"#ef4444"},children:"â NOT_FOUND"}),h.jsx("span",{"data-loc":"client/src/pages/NotFound.tsx:112",children:"ROUTE"}),h.jsx("span",{"data-loc":"client/src/pages/NotFound.tsx:113",style:{color:"rgba(255,255,255,0.5)"},children:"UNRESOLVED"}),h.jsx("span",{"data-loc":"client/src/pages/NotFound.tsx:114",children:"ENGINE"}),h.jsx("span",{"data-loc":"client/src/pages/NotFound.tsx:115",style:{color:"#ff5c00"},children:"IDLE"})]}),h.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:119",className:"flex flex-col sm:flex-row gap-3 w-full sm:w-auto",children:[h.jsxs(Je.button,{"data-loc":"client/src/pages/NotFound.tsx:120",onClick:()=>e("/builds/new"),className:"flex items-center justify-center gap-2 px-6 py-3 rounded font-bold text-sm uppercase tracking-widest text-white",style:{fontFamily:"'Barlow Condensed', sans-serif",background:"#ff5c00",letterSpacing:"0.1em"},whileHover:{scale:1.03},whileTap:{scale:.97},transition:{duration:.15,ease:[.23,1,.32,1]},children:[h.jsx(ei,{"data-loc":"client/src/pages/NotFound.tsx:132",className:"w-4 h-4"}),"Start a New Build",h.jsx(Pu,{"data-loc":"client/src/pages/NotFound.tsx:134",className:"w-4 h-4"})]}),h.jsxs(Je.button,{"data-loc":"client/src/pages/NotFound.tsx:137",onClick:()=>e("/"),className:"flex items-center justify-center gap-2 px-6 py-3 rounded font-bold text-sm uppercase tracking-widest",style:{fontFamily:"'Barlow Condensed', sans-serif",background:"transparent",border:"1px solid rgba(255,255,255,0.15)",color:"rgba(255,255,255,0.6)",letterSpacing:"0.1em"},whileHover:{borderColor:"rgba(255,92,0,0.5)",color:"#fff"},whileTap:{scale:.97},transition:{duration:.15,ease:[.23,1,.32,1]},children:[h.jsx(PK,{"data-loc":"client/src/pages/NotFound.tsx:151",className:"w-4 h-4"}),"Back to Home"]})]})]}),h.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:158",className:"absolute bottom-0 left-0 right-0 h-1",style:{background:"linear-gradient(90deg, transparent, #ff5c00 50%, transparent)"}})]})}class yJ extends G.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?h.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:h.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[h.jsx(qi,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),h.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),h.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:h.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),h.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:Ac("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[h.jsx(eO,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const vJ=G.createContext(void 0);function wJ({children:e,defaultTheme:t="light",switchable:n=!1}){const[r,a]=G.useState(()=>n&&localStorage.getItem("theme")||t);G.useEffect(()=>{const i=document.documentElement;
401r==="dark"?i.classList.add("dark"):i.classList.remove("dark"),n&&localStorage.setItem("theme",r)},[r,n]);const s=n?()=>{a(i=>i==="light"?"dark":"light")}:void 0;return h.jsx(vJ.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:r,toggleTheme:s,switchable:n},children:e})}const cO=()=>{const e="https://manus.im",t="NMH6uUk95mYeVqVuqZq95F",n=`${window.location.origin}/api/oauth/callback`,r=btoa(n),a=new URL(`${e}/app-auth`);return a.searchParams.set("appId",t),a.searchParams.set("redirectUri",n),a.searchParams.set("state",r),a.searchParams.set("type","signIn"),a.toString()};function F5(e){const{redirectOnUnauthenticated:t=!1,redirectPath:n=cO()}={},r=Tr.useUtils(),a=Tr.auth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),s=Tr.auth.logout.useMutation({onSuccess:()=>{r.auth.me.setData(void 0,null)}}),i=G.useCallback(async()=>{try{await s.mutateAsync()}catch(c){if(c instanceof ep&&c.data?.code==="UNAUTHORIZED")return;throw c}finally{try{sessionStorage.removeItem("manus-cookie")}catch{}r.auth.me.setData(void 0,null),await r.auth.me.invalidate()}},[s,r]),o=G.useMemo(()=>(localStorage.setItem("manus-runtime-user-info",JSON.stringify(a.data)),{user:a.data??null,loading:a.isLoading||s.isPending,error:a.error??s.error??null,isAuthenticated:!!a.data}),[a.data,a.error,a.isLoading,s.error,s.isPending]);return G.useEffect(()=>{t&&(a.isLoading||s.isPending||o.user||typeof window>"u"||window.location.pathname!==n&&(window.location.href=n))},[t,n,s.isPending,a.isLoading,o.user]),{...o,refresh:()=>a.refetch(),logout:i}}const xr={hidden:{opacity:0,y:24},visible:(e=0)=>({opacity:1,y:0,transition:{duration:.45,delay:e*.08}})},n_=[{number:"01",icon:XR,title:"Document the Tear-Down",description:"Photograph every component as it comes apart. Log bearing wear, cylinder scoring, and machining requirements. Every detail is timestamped and attached to the build record."},{number:"02",icon:Bw,title:"Configure Your Build",description:"Select your block, heads, and rotating assembly from a library of real aftermarket parts. Clearances are calculated automatically â no more surprises on the assembly bench."},{number:"03",icon:ei,title:"Machine Shop Instructions",description:"Generate a precise machining order: bore specs, deck height, valve job dimensions, and surface finish requirements. Send it directly to your machinist with one tap."},{number:"04",icon:JR,title:"Estimate & Close",description:"Auto-generate a professional, itemized Bill of Materials with live pricing. Send the customer a transparent proposal before you leave the shop floor."}],SJ=[{icon:OK,title:"Spec Calculator",description:"Compression ratio, displacement, piston-to-valve clearance, deck height â all calculated automatically from your component selections."},{icon:jK,title:"Parts Library",description:"Thousands of real aftermarket components from leading brands. Select pistons, rods, cranks, heads, and bolt-ons with live pricing."},{icon:NK,title:"Assembly Checklist",description:"Step-by-step torque sequences, ring gap records, and clearance verification. The build's birth certificate is generated automatically."},{icon:qu,title:"Instant Estimates",description:"Professional, itemized proposals generated in seconds. Show customers exactly what they're paying for with transparent line-item pricing."},{icon:T1,title:"Knowledge Base",description:"Built-in spec guides for LS, SBC, BBC, Ford, and Mopar families. Factory clearances, common stroker combos, and machining tolerances â right where you need them."},{icon:WK,title:"Multi-Location",description:"Manage multiple shop locations from one account. Assign builds to technicians, track shop capacity, and roll up revenue across all locations."}],Md=[{name:"Marcus T.",role:"Owner, Precision Power Engines",location:"Houston, TX",rating:5,avatar:"MT",color:"oklch(0.65 0.18 30)",quote:"We were running everything on spreadsheets and a whiteboard. EngineBuildr replaced all of it. The machine shop order generator alone saves us 45 minutes per build â and our machinists actually love getting the spec sheets.",highlight:"Saves 45 min per build"},{name:"Dave K.",role:"Lead Builder, K-Series Performance",location:"Phoenix, AZ",rating:5,avatar:"DK",color:"oklch(0.65 0.18 250)",quote:"The customer estimate feature changed how I close jobs. I used to spend 2 hours putting together a quote in Excel. Now I send a professional PDF from my phone before I even leave the customer's garage. Closed three jobs in the first week.",highlight:"Closed 3 jobs in week 1"},{name:"Renee S.",role:"Shop Manager, Summit Valley Racing",location:"Denver, CO",rating:5,avatar:"RS",color:"oklch(0.65 0.18 140)",quote:"Managing four builders across two locations was a nightmare before this. Now I can see every build's status, which stage it's in, and what's waiting on the machine shop â from my phone, in real time. It's like having a project manager on staff.",highlight:"4 builders, 2 locations â one view"},{name:"Tony B.",role:"Engine Builder, TBR Motorsports",location:"Charlotte, NC",rating:5,avatar:"TB",color:"oklch(0.65 0.18 60)",quote:"I've tried three other shop management tools. None of them understood what engine building actually involves. EngineBuildr was clearly built by someone who's been on the assembly bench. The clearance spec calculator is worth the subscription by itself.",highlight:"Built by builders, for builders"},{name:"Chris M.",role:"Owner, Midwest Engine Works",location:"Indianapolis, IN",rating:5,avatar:"CM",color:"oklch(0.65 0.18 200)",quote:"Our comeback rate dropped after we started using the tear-down documentation. When a customer questions something, I pull up the photos and measurements from day one. It's ended every dispute we've had.",highlight:"Zero comeback disputes"},{name:"Lisa H.",role:"Co-Owner, H&H Performance",location:"Nashville, TN",rating:5,avatar:"LH",color:"oklch(0.65 0.18 320)",quote:"The AI part compatibility checker caught a piston-to-valve interference issue on a customer's build before we ordered anything. That one catch paid for a year of the subscription.",highlight:"Caught a $3,200 mistake"}],EJ=[{name:"Summit Racing",abbr:"SR"},{name:"JEGS",abbr:"JG"},{name:"Comp Cams",abbr:"CC"},{name:"Mahle",abbr:"MH"},{name:"King Bearings",abbr:"KB"},{name:"Clevite",abbr:"CV"}],kJ=[{icon:qi,problem:"Builds tracked in spreadsheets and sticky notes",solution:"Every build in one structured, searchable record"},{icon:C1,problem:"2+ hours to write a customer estimate",solution:"Professional proposal generated in under 3 minutes"},{icon:N3,problem:"Machine shop errors from hand-written spec sheets",solution:"Precise, auto-generated machining orders every time"}
401,{icon:VK,problem:"No documentation when customers dispute work",solution:"Timestamped photos and measurements for every component"}],_J=[{label:"BORE",value:"4.125",unit:'"'},{label:"STROKE",value:"4.000",unit:'"'},{label:"DISP",value:"427",unit:"ci"},{label:"CR",value:"11.2",unit:":1"},{label:"TARGET HP",value:"650",unit:"hp"},{label:"STAGE",value:"ASSY",unit:""}],TJ=[{value:"3 min",label:"Avg. Estimate Time",sub:"vs 2+ hrs manual"},{value:'0.001"',label:"Clearance Precision",sub:"Instrument grade"},{value:"98.4%",label:"Customer Approval",sub:"First-send rate"},{value:"14 days",label:"Free Trial",sub:"No credit card"}];function CJ(){return F5(),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:237",className:"min-h-screen bg-background text-foreground overflow-x-hidden",children:[h.jsxs("header",{"data-loc":"client/src/pages/Home.tsx:240",className:"fixed top-0 left-0 right-0 z-50 flex items-center justify-between px-6 py-4 border-b border-border bg-background/80 backdrop-blur-md",children:[h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:241",href:"/",children:h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:242",className:"flex items-center gap-2.5 cursor-pointer",children:[h.jsx("img",{"data-loc":"client/src/pages/Home.tsx:243",src:"/manus-storage/logo_icon_0e7d0be8.png",alt:"EngineBuildr logo",className:"w-8 h-8 object-contain"}),h.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:244",className:"text-xl font-bold tracking-wide",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:["ENGINE",h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:245",style:{color:"var(--orange)"},children:"BUILDR"})]})]})}),h.jsxs("nav",{"data-loc":"client/src/pages/Home.tsx:249",className:"hidden md:flex items-center gap-6 text-sm text-muted-foreground",children:[h.jsx("a",{"data-loc":"client/src/pages/Home.tsx:250",href:"#how-it-works",className:"hover:text-foreground transition-colors",children:"How It Works"}),h.jsx("a",{"data-loc":"client/src/pages/Home.tsx:251",href:"#features",className:"hover:text-foreground transition-colors",children:"Features"}),h.jsx("a",{"data-loc":"client/src/pages/Home.tsx:252",href:"#testimonials",className:"hover:text-foreground transition-colors",children:"Reviews"}),h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:253",href:"/guides",className:"hover:text-foreground transition-colors",children:"Guides"}),h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:254",href:"/pricing",className:"hover:text-foreground transition-colors",children:"Pricing"})]}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:256",className:"flex items-center gap-3",children:[h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:257",href:"/dashboard",children:h.jsx("button",{"data-loc":"client/src/pages/Home.tsx:258",className:"text-sm text-muted-foreground hover:text-foreground transition-colors px-3 py-1.5 hidden sm:block",children:"Sign In"})}),h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:262",href:"/dashboard",children:h.jsx("button",{"data-loc":"client/src/pages/Home.tsx:263",className:"text-sm font-medium px-4 py-2 rounded-md transition-all duration-150 active:scale-95",style:{background:"var(--orange)",color:"white"},children:"Start Free Trial"})})]})]}),h.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:274",className:"relative min-h-screen flex items-center pt-20 overflow-hidden",children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:275",className:"absolute inset-0",children:[h.jsx("img",{"data-loc":"client/src/pages/Home.tsx:276",src:"/manus-storage/hero_engine_build_1bab29d5.jpg",alt:"High-performance V8 engine block during custom rebuild in a professional engine shop",className:"w-full h-full object-cover"}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:281",className:"absolute inset-0 bg-gradient-to-r from-background via-background/90 to-background/30"}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:282",className:"absolute inset-0 opacity-10",style:{backgroundImage:"linear-gradient(oklch(1 0 0 / 0.08) 1px, transparent 1px), linear-gradient(90deg, oklch(1 0 0 / 0.08) 1px, transparent 1px)",backgroundSize:"48px 48px"}})]}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:291",className:"relative w-full",children:h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:292",className:"container mx-auto px-6 py-20",children:h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:293",className:"grid lg:grid-cols-12 gap-8 items-center",children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:296",className:"lg:col-span-7",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:297",initial:"hidden",animate:"visible",variants:xr,custom:0,className:"flex items-center gap-2 mb-6",children:[h.jsx(_K,{"data-loc":"client/src/pages/Home.tsx:298",className:"w-3 h-3",style:{color:"var(--orange)"}}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:299",className:"text-xs font-mono px-2.5 py-1 rounded border",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)",borderColor:"var(--orange-dim)",background:"var(--orange-dim)"},children:"ENGINE BUILDING SOFTWARE FOR SHOPS"})]}),h.jsxs(Je.h1,{"data-loc":"client/src/pages/Home.tsx:307",initial:"hidden",animate:"visible",variants:xr,custom:1,className:"text-5xl md:text-7xl lg:text-8xl font-bold uppercase leading-none mb-6",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:["Stop Running Your",h.jsx("br",{"data-loc":"client/src/pages/Home.tsx:313"}),"Shop on Spreadsheets.",h.jsx("br",{"data-loc":"client/src/pages/Home.tsx:315"}),h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:316",style:{color:"var(--orange)"},children:"Build Smarter."})]}),h.jsx(Je.p,{"data-loc":"client/src/pages/Home.tsx:319",initial:"hidden",animate:"visible",variants:xr,custom:2,className:"text-lg text-muted-foreground mb-8 max-w-lg leading-relaxed",children:"EngineBuildr is the only software built specifically for engine shops â tear-down documentation, spec calculations, machine shop orders, and customer estimates in one platform. Used by professional builders across the US."}),h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:327",initial:"hidden",animate:"visible",variants:xr,custom:2.5,className:"flex items-center gap-4 mb-8",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:328",className:"flex -sp
401ace-x-2",children:["MT","DK","RS","TB","CM"].map((e,t)=>h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:330",className:"w-8 h-8 rounded-full border-2 border-background flex items-center justify-center text-xs font-bold text-white",style:{background:`oklch(0.55 0.18 ${30+t*60})`,zIndex:5-t},children:e},e))}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:339",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:340",className:"flex items-center gap-1 mb-0.5",children:[...Array(5)].map((e,t)=>h.jsx(i4,{"data-loc":"client/src/pages/Home.tsx:342",className:"w-3.5 h-3.5 fill-current",style:{color:"var(--orange)"}},t))}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:345",className:"text-xs text-muted-foreground",children:"Trusted by engine shops nationwide"})]})]}),h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:349",initial:"hidden",animate:"visible",variants:xr,custom:3,className:"flex flex-col sm:flex-row gap-3",children:[h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:350",href:"/dashboard",children:h.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:351",className:"flex items-center justify-center gap-2 px-6 py-3 rounded-md font-semibold text-base transition-all duration-150 active:scale-95 orange-glow",style:{background:"var(--orange)",color:"white"},children:["Start 14-Day Free Trial",h.jsx(Pu,{"data-loc":"client/src/pages/Home.tsx:356",className:"w-4 h-4"})]})}),h.jsx("a",{"data-loc":"client/src/pages/Home.tsx:359",href:"#how-it-works",children:h.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:360",className:"flex items-center justify-center gap-2 px-6 py-3 rounded-md font-medium text-base border border-border hover:border-white/20 text-foreground transition-all duration-150 active:scale-95",children:["See How It Works",h.jsx(Ml,{"data-loc":"client/src/pages/Home.tsx:362",className:"w-4 h-4"})]})})]}),h.jsx(Je.p,{"data-loc":"client/src/pages/Home.tsx:367",initial:"hidden",animate:"visible",variants:xr,custom:3.5,className:"mt-4 text-xs text-muted-foreground",children:"No credit card required · Cancel anytime · Setup in under 5 minutes"})]}),h.jsx(Je.div,{"data-loc":"client/src/pages/Home.tsx:373",initial:"hidden",animate:"visible",variants:xr,custom:2,className:"lg:col-span-5 hidden lg:block",children:h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:374",className:"rounded-xl border p-6 relative",style:{borderColor:"oklch(1 0 0 / 0.12)",background:"oklch(0.11 0.004 285 / 0.9)",backdropFilter:"blur(12px)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:378",className:"flex items-center justify-between mb-5 pb-4 border-b border-border",children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:379",className:"flex items-center gap-2",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:380",className:"w-2 h-2 rounded-full bg-green-500 animate-pulse"}),h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:381",className:"text-xs text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:"BUILD_ACTIVE · 427 LS STROKER"})]}),h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:385",className:"text-xs px-2 py-0.5 rounded",style:{background:"var(--orange-dim)",color:"var(--orange)",fontFamily:"'JetBrains Mono', monospace"},children:"ASSY"})]}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:390",className:"grid grid-cols-3 gap-3 mb-5",children:_J.map(e=>h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:392",className:"p-3 rounded-md",style:{background:"oklch(0.14 0.004 285)"},children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:393",className:"text-xs text-muted-foreground mb-1",style:{fontFamily:"'JetBrains Mono', monospace"},children:e.label}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:394",className:"flex items-baseline gap-0.5",children:[h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:395",className:"text-xl font-bold",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:e.value}),h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:396",className:"text-xs text-muted-foreground",children:e.unit})]})]},e.label))}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:402",className:"mb-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:403",className:"flex justify-between text-xs mb-1.5",children:[h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:404",className:"text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:"BUILD PROGRESS"}),h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:405",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:"72%"})]}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:407",className:"h-2 rounded-full bg-secondary overflow-hidden",children:h.jsx(Je.div,{"data-loc":"client/src/pages/Home.tsx:408",initial:{width:0},animate:{width:"72%"},transition:{duration:1.2,delay:.5},className:"h-full rounded-full",style:{background:"var(--orange)"}})})]}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:415",className:"space-y-2",children:[{label:"Main Bearing Clearance",value:'0.0021"',ok:!0}
401,{label:"Piston-to-Valve (Exh.)",value:'0.072"',ok:!1},{label:"Rod Bearing Clearance",value:'0.0019"',ok:!0}].map(e=>h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:421",className:"flex items-center justify-between text-xs",children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:422",className:"flex items-center gap-2",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:423",className:"w-1.5 h-1.5 rounded-full",style:{background:e.ok?"oklch(0.7 0.18 140)":"var(--orange)"}}),h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:424",className:"text-muted-foreground",children:e.label})]}),h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:426",style:{fontFamily:"'JetBrains Mono', monospace",color:e.ok?"oklch(0.7 0.18 140)":"var(--orange)"},children:e.value})]},e.label))}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:431",className:"mt-4 pt-4 border-t border-border flex justify-between items-center",children:[h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:432",className:"text-xs text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:"ESTIMATE TOTAL"}),h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:433",className:"text-2xl font-bold",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:"$22,675"})]})]})})]})})})]}),h.jsx("section",{"data-loc":"client/src/pages/Home.tsx:443",className:"py-10 border-y border-border bg-card",children:h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:444",className:"container mx-auto px-6",children:h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:445",className:"grid grid-cols-2 lg:grid-cols-4 gap-6 lg:gap-0 lg:divide-x divide-border",children:TJ.map((e,t)=>h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:447",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,custom:t,className:"text-center lg:px-8",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:452",className:"text-3xl font-bold mb-1",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:e.value}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:455",className:"text-sm font-medium text-foreground",children:e.label}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:456",className:"text-xs text-muted-foreground mt-0.5",children:e.sub})]},e.label))})})}),h.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:464",className:"py-24 relative",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:465",className:"absolute inset-0 opacity-15",style:{backgroundImage:"radial-gradient(circle, oklch(1 0 0 / 0.07) 1px, transparent 1px)",backgroundSize:"24px 24px"}}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:469",className:"container mx-auto px-6 relative",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:470",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,className:"max-w-2xl mb-12",children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:471",className:"flex items-center gap-4 mb-3",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:472",className:"w-0.5 h-8 rounded-full",style:{background:"var(--orange)"}}),h.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:473",className:"text-4xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Built for the Problems You Actually Have"})]}),h.jsx("p",{"data-loc":"client/src/pages/Home.tsx:477",className:"text-muted-foreground ml-5 pl-4 border-l border-border leading-relaxed",children:"Generic shop management software wasn't designed for engine building. EngineBuildr was â by people who've been on the assembly bench."})]}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:482",className:"grid md:grid-cols-2 gap-4",children:kJ.map((e,t)=>h.jsx(Je.div,{"data-loc":"client/src/pages/Home.tsx:484",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,custom:t,className:"p-6 rounded-lg border border-border bg-card",children:h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:489",className:"grid grid-cols-2 gap-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:491",className:"p-4 rounded-md",style:{background:"oklch(0.14 0.004 285)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:492",className:"flex items-center gap-2 mb-2",children:[h.jsx(e.icon,{"data-loc":"client/src/pages/Home.tsx:493",className:"w-4 h-4 text-muted-foreground"}),h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:494",className:"text-xs text-muted-foreground uppercase tracking-wider",style:{fontFamily:"'JetBrains Mono', monospace"},children:"Before"})]}),h.jsx("p",{"data-loc":"client/src/pages/Home.tsx:496",className:"text-sm text-muted-foreground leading-relaxed",children:e.problem})]}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:499",className:"p-4 rounded-md",style:{background:"oklch(0.14 0.08 140 / 0.3)",border:"1px solid oklch(0.7 0.18 140 / 0.2)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:500",className:"flex items-center gap-2 mb-2",children:[h.jsx(La,{"data-loc":"client/src/pages/Home.tsx:501",className:"w-4 h-4",style:{color:"oklch(0.7 0.18 140)"}}),h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:502",className:"text-xs uppercase tracking-wider",style:{fontFamily:"'JetBrains Mono', monospace",color:"oklch(0.7 0.18 140)"},children:"After"})]}),h.jsx("p",{"data-loc":"client/src/pages/Home.tsx:504",className:"text-sm text-foreground leading-relaxed",children:e.solution})]})]})},e.problem))})]})]}),h.jsx("section",{"data-loc":"client/src/pages/Home.tsx:514",id:"how-it-works",className:"py-24 bg-card border-y border-border relative",children:h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:515",className:"container mx-auto px-6 relative",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:516",initial:"hidden",
401whileInView:"visible",viewport:{once:!0},variants:xr,className:"flex items-center gap-4 mb-3",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:517",className:"w-0.5 h-8 rounded-full",style:{background:"var(--orange)"}}),h.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:518",className:"text-4xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"How It Works"})]}),h.jsx(Je.p,{"data-loc":"client/src/pages/Home.tsx:522",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,custom:1,className:"text-muted-foreground mb-10 ml-5 pl-4 border-l border-border max-w-lg",children:"Four stages. One platform. Every build documented from first bolt to final delivery."}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:526",className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:n_.map((e,t)=>h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:528",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,custom:t,className:"relative group",children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:533",className:"p-6 rounded-lg border border-border bg-background hover-card h-full",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:534",className:"text-5xl font-bold mb-4 leading-none",style:{fontFamily:"'Barlow Condensed', sans-serif",WebkitTextStroke:"1px var(--orange)",color:"transparent"},children:e.number}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:540",className:"w-10 h-10 rounded-md flex items-center justify-center mb-4",style:{background:"var(--orange-dim)"},children:h.jsx(e.icon,{"data-loc":"client/src/pages/Home.tsx:541",className:"w-5 h-5",style:{color:"var(--orange)"}})}),h.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:543",className:"text-xl font-bold text-foreground mb-3 uppercase",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:e.title}),h.jsx("p",{"data-loc":"client/src/pages/Home.tsx:546",className:"text-sm text-muted-foreground leading-relaxed",children:e.description})]}),t<n_.length-1&&h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:549",className:"hidden lg:block absolute top-1/3 -right-3 w-6 h-px",style:{background:"var(--orange-dim)"}})]},e.number))})]})}),h.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:558",id:"testimonials",className:"py-24 relative",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:559",className:"absolute inset-0 opacity-15",style:{backgroundImage:"radial-gradient(circle, oklch(1 0 0 / 0.07) 1px, transparent 1px)",backgroundSize:"24px 24px"}}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:563",className:"container mx-auto px-6 relative",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:564",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,className:"flex items-center gap-4 mb-3",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:565",className:"w-0.5 h-8 rounded-full",style:{background:"var(--orange)"}}),h.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:566",className:"text-4xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"What Shop Owners Are Saying"})]}),h.jsx(Je.p,{"data-loc":"client/src/pages/Home.tsx:570",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,custom:1,className:"text-muted-foreground mb-12 ml-5 pl-4 border-l border-border max-w-lg",children:"Real feedback from professional engine builders and shop owners across the United States."}),h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:575",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,custom:1,className:"mb-8 p-8 rounded-xl border relative overflow-hidden",style:{borderColor:"var(--orange-dim)",background:"oklch(0.11 0.004 285)"},children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:580",className:"absolute top-0 left-0 right-0 h-px",style:{background:"linear-gradient(90deg, transparent, var(--orange), transparent)"}}),h.jsx(UK,{"data-loc":"client/src/pages/Home.tsx:584",className:"w-10 h-10 mb-4 opacity-30",style:{color:"var(--orange)"}}),h.jsxs("blockquote",{"data-loc":"client/src/pages/Home.tsx:585",className:"text-xl md:text-2xl font-medium text-foreground leading-relaxed mb-6",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:['"',Md[1].quote,'"']}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:588",className:"flex items-center justify-between flex-wrap gap-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:589",className:"flex items-center gap-3",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:590",className:"w-12 h-12 rounded-full flex items-center justify-center text-sm font-bold text-white",style:{background:Md[1].color},children:Md[1].avatar}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:596",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:597",className:"font-semibold text-foreground",children:Md[1].name}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:598",className:"text-sm text-muted-foreground",children:Md[1].role}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:599",className:"text-xs text-muted-foreground",children:Md[1].location})]})]}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:602",className:"px-4 py-2 rounded-md text-sm font-semibold",style:{background:"var(--orange-dim)",color:"var(--orange)"},children:Md[1].highlight})]})]}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:612",className:"grid md:grid-cols-2 lg:grid-cols-3 gap-5",children:Md.filter((e,t)=>
401t!==1).map((e,t)=>h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:614",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,custom:t,className:"p-6 rounded-lg border border-border bg-card hover-card flex flex-col",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:620",className:"flex items-center gap-1 mb-4",children:[...Array(e.rating)].map((n,r)=>h.jsx(i4,{"data-loc":"client/src/pages/Home.tsx:622",className:"w-3.5 h-3.5 fill-current",style:{color:"var(--orange)"}},r))}),h.jsxs("blockquote",{"data-loc":"client/src/pages/Home.tsx:627",className:"text-sm text-muted-foreground leading-relaxed flex-1 mb-5",children:['"',e.quote,'"']}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:632",className:"inline-block self-start px-3 py-1 rounded text-xs font-semibold mb-4",style:{background:"var(--orange-dim)",color:"var(--orange)",fontFamily:"'JetBrains Mono', monospace"},children:e.highlight}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:640",className:"flex items-center gap-3 pt-4 border-t border-border",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:641",className:"w-9 h-9 rounded-full flex items-center justify-center text-xs font-bold text-white flex-shrink-0",style:{background:e.color},children:e.avatar}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:647",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:648",className:"text-sm font-semibold text-foreground",children:e.name}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:649",className:"text-xs text-muted-foreground",children:e.role}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:650",className:"text-xs text-muted-foreground",children:e.location})]})]})]},e.name))}),h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:658",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,custom:5,className:"mt-10 flex flex-col sm:flex-row items-center justify-center gap-6 p-6 rounded-lg border border-border bg-card",children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:662",className:"text-center",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:663",className:"text-5xl font-bold",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:"5.0"}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:664",className:"flex items-center justify-center gap-1 mt-1",children:[...Array(5)].map((e,t)=>h.jsx(i4,{"data-loc":"client/src/pages/Home.tsx:666",className:"w-4 h-4 fill-current",style:{color:"var(--orange)"}},t))}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:669",className:"text-xs text-muted-foreground mt-1",children:"Average rating"})]}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:671",className:"hidden sm:block w-px h-16 bg-border"}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:672",className:"text-center sm:text-left",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:673",className:"text-lg font-semibold text-foreground mb-1",children:"Trusted by professional engine shops nationwide"}),h.jsx("p",{"data-loc":"client/src/pages/Home.tsx:674",className:"text-sm text-muted-foreground max-w-sm",children:"From single-builder shops to multi-location performance centers, EngineBuildr is the platform engine professionals rely on every day."})]})]})]})]}),h.jsx("section",{"data-loc":"client/src/pages/Home.tsx:683",id:"features",className:"py-24 bg-card border-y border-border relative",children:h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:684",className:"container mx-auto px-6 relative",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:685",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,className:"flex items-center gap-4 mb-3",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:686",className:"w-0.5 h-8 rounded-full",style:{background:"var(--orange)"}}),h.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:687",className:"text-4xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Everything Your Shop Needs"})]}),h.jsx(Je.p,{"data-loc":"client/src/pages/Home.tsx:691",initial:"hidden",
401whileInView:"visible",viewport:{once:!0},variants:xr,custom:1,className:"text-muted-foreground mb-10 ml-5 pl-4 border-l border-border max-w-lg",children:"One platform replaces the spreadsheets, whiteboards, and sticky notes your shop runs on today."}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:695",className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-5",children:SJ.map((e,t)=>h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:697",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,custom:t,className:"p-6 rounded-lg border border-border bg-background hover-card",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:702",className:"w-10 h-10 rounded-md flex items-center justify-center mb-4",style:{background:"var(--orange-dim)"},children:h.jsx(e.icon,{"data-loc":"client/src/pages/Home.tsx:703",className:"w-5 h-5",style:{color:"var(--orange)"}})}),h.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:705",className:"text-lg font-bold text-foreground mb-2 uppercase",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:e.title}),h.jsx("p",{"data-loc":"client/src/pages/Home.tsx:708",className:"text-sm text-muted-foreground leading-relaxed",children:e.description})]},e.title))})]})}),h.jsx("section",{"data-loc":"client/src/pages/Home.tsx:716",className:"py-24",children:h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:717",className:"container mx-auto px-6",children:h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:718",className:"grid lg:grid-cols-2 gap-12 items-center",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:719",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:720",className:"flex items-center gap-4 mb-6",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:721",className:"w-0.5 h-8 rounded-full",style:{background:"var(--orange)"}}),h.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:722",className:"text-4xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Spec Calculator"})]}),h.jsx("p",{"data-loc":"client/src/pages/Home.tsx:726",className:"text-muted-foreground mb-6 leading-relaxed",children:"Enter your measured clearances and get instant pass/fail evaluation against factory specs and your target build profile. Supports LS, SBC, BBC, Ford, and Mopar families with preloaded factory tolerances."}),h.jsx("ul",{"data-loc":"client/src/pages/Home.tsx:729",className:"space-y-3",children:["Compression ratio auto-calculated from bore, stroke & head volume","Piston-to-valve clearance warnings before you order parts","Main, rod, and cam bearing clearance pass/fail evaluation","Preloaded factory specs for 40+ engine families"].map(e=>h.jsxs("li",{"data-loc":"client/src/pages/Home.tsx:736",className:"flex items-start gap-3 text-sm text-muted-foreground",children:[h.jsx(La,{"data-loc":"client/src/pages/Home.tsx:737",className:"w-4 h-4 mt-0.5 flex-shrink-0",style:{color:"var(--orange)"}}),e]},e))}),h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:742",href:"/tools/spec-calculator",children:h.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:743",className:"mt-8 flex items-center gap-2 px-5 py-2.5 rounded-md font-medium text-sm transition-all duration-150 active:scale-95",style:{background:"var(--orange)",color:"white"},children:["Try the Spec Calculator",h.jsx(Pu,{"data-loc":"client/src/pages/Home.tsx:748",className:"w-4 h-4"})]})})]}),h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:752",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,custom:1,className:"relative",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:753",className:"rounded-xl overflow-hidden border border-border",children:h.jsx("img",{"data-loc":"client/src/pages/Home.tsx:754",src:"/manus-storage/engine_3d_viz_e3876a06.jpg",alt:"EngineBuildr spec calculator and engine build visualizer interface",className:"w-full h-72 object-cover"})}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:760",className:"absolute -bottom-4 -left-4 p-4 rounded-lg border border-border bg-card shadow-2xl",style:{minWidth:"200px",borderColor:"var(--orange-dim)"},children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:764",className:"text-xs text-muted-foreground mb-1",style:{fontFamily:"'JetBrains Mono', monospace"},children:"COMPRESSION RATIO"}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:765",className:"text-3xl font-bold",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:"11.2:1"}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:766",className:"text-xs text-muted-foreground mt-1",children:"Target: 10.5â11.5:1 â"})]})]})]})})}),h.jsx("section",{"data-loc":"client/src/pages/Home.tsx:774",className:"py-24 bg-card border-y border-border",children:h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:775",className:"container mx-auto px-6",children:h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:776",className:"grid lg:grid-cols-2 gap-12 items-center",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:777",initial:"hidden",
401whileInView:"visible",viewport:{once:!0},variants:xr,className:"order-2 lg:order-1 relative",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:778",className:"rounded-xl overflow-hidden border border-border",children:h.jsx("img",{"data-loc":"client/src/pages/Home.tsx:779",src:"/manus-storage/teardown_doc_276f2d85.jpg",alt:"Engine tear-down documentation with component photos and condition notes",className:"w-full h-72 object-cover"})}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:785",className:"absolute -top-4 -right-4 p-4 rounded-lg border bg-card shadow-2xl",style:{minWidth:"220px",borderColor:"var(--orange-dim)"},children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:789",className:"text-xs text-muted-foreground mb-1",style:{fontFamily:"'JetBrains Mono', monospace"},children:"CYLINDER #3 â BORE"}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:790",className:"text-2xl font-bold",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:'4.032"'}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:791",className:"text-xs mt-1",style:{color:"oklch(0.7 0.18 140)"},children:'+0.002" over nominal'}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:792",className:"text-xs text-muted-foreground",children:'Machining: Bore +0.030"'})]})]}),h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:795",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,custom:1,className:"order-1 lg:order-2",children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:796",className:"flex items-center gap-4 mb-6",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:797",className:"w-0.5 h-8 rounded-full",style:{background:"var(--orange)"}}),h.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:798",className:"text-4xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Tear-Down Documentation"})]}),h.jsx("p",{"data-loc":"client/src/pages/Home.tsx:802",className:"text-muted-foreground mb-6 leading-relaxed",children:"Document every component as it comes apart. Photos, measurements, and condition notes are automatically organized into a structured report â your legal protection if a customer ever disputes the work."}),h.jsx("ul",{"data-loc":"client/src/pages/Home.tsx:805",className:"space-y-3",children:["Photo documentation with automatic component tagging","Bearing wear patterns logged and flagged for machining","Machine shop instructions generated directly from measurements","Customer-facing condition report in one click"].map(e=>h.jsxs("li",{"data-loc":"client/src/pages/Home.tsx:812",className:"flex items-start gap-3 text-sm text-muted-foreground",children:[h.jsx(La,{"data-loc":"client/src/pages/Home.tsx:813",className:"w-4 h-4 mt-0.5 flex-shrink-0",style:{color:"var(--orange)"}}),e]},e))})]})]})})}),h.jsx("section",{"data-loc":"client/src/pages/Home.tsx:824",className:"py-24",children:h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:825",className:"container mx-auto px-6",children:h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:826",className:"grid lg:grid-cols-2 gap-12 items-center",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:827",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:828",className:"flex items-center gap-4 mb-6",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:829",className:"w-0.5 h-8 rounded-full",style:{background:"var(--orange)"}}),h.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:830",className:"text-4xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Close Jobs Faster"})]}),h.jsx("p",{"data-loc":"client/src/pages/Home.tsx:834",className:"text-muted-foreground mb-6 leading-relaxed",children:"As you select components, EngineBuildr builds a complete Bill of Materials with live pricing. Generate a professional customer proposal in under 3 minutes â before you leave the shop floor."}),h.jsx("ul",{"data-loc":"client/src/pages/Home.tsx:837",className:"space-y-3",children:["Live pricing from Summit Racing, JEGS, and major distributors","Labor hours auto-estimated by build complexity","Itemized proposal sent directly to customer via secure link","Customer approves with one click â no back-and-forth"].map(e=>h.jsxs("li",{"data-loc":"client/src/pages/Home.tsx:844",className:"flex items-start gap-3 text-sm text-muted-foreground",children:[h.jsx(La,{"data-loc":"client/src/pages/Home.tsx:845",className:"w-4 h-4 mt-0.5 flex-shrink-0",style:{color:"var(--orange)"}}),e]},e))}),h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:850",href:"/builds/new",children:h.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:851",className:"mt-8 flex items-center gap-2 px-5 py-2.5 rounded-md font-medium text-sm transition-all duration-150 active:scale-95",style:{background:"var(--orange)",color:"white"},children:["Generate an Estimate",h.jsx(Pu,{"data-loc":"client/src/pages/Home.tsx:856",className:"w-4 h-4"})]})})]}),h.jsx(Je.div,{"data-loc":"client/src/pages/Home.tsx:860",initial:"hidden",
401whileInView:"visible",viewport:{once:!0},variants:xr,custom:1,children:h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:861",className:"rounded-xl overflow-hidden border border-border",children:h.jsx("img",{"data-loc":"client/src/pages/Home.tsx:862",src:"/manus-storage/engine_parts_bom_72c29d96.jpg",alt:"Professional engine build estimate and bill of materials",className:"w-full h-72 object-cover"})})})]})})}),h.jsx("section",{"data-loc":"client/src/pages/Home.tsx:874",className:"py-12 border-y border-border bg-card",children:h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:875",className:"container mx-auto px-6",children:[h.jsx(Je.p,{"data-loc":"client/src/pages/Home.tsx:876",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,className:"text-center text-xs text-muted-foreground uppercase tracking-widest mb-8",style:{fontFamily:"'JetBrains Mono', monospace"},children:"Compatible with parts from leading suppliers"}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:883",className:"flex flex-wrap items-center justify-center gap-6 md:gap-10",children:EJ.map((e,t)=>h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:885",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,custom:t,className:"flex items-center gap-2 px-4 py-2 rounded-md border border-border",style:{background:"oklch(0.14 0.004 285)"},children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:891",className:"w-7 h-7 rounded flex items-center justify-center text-xs font-bold text-white",style:{background:"var(--orange)"},children:e.abbr}),h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:897",className:"text-sm font-medium text-muted-foreground",children:e.name})]},e.name))})]})}),h.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:905",className:"py-24 border-t border-border relative overflow-hidden",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:906",className:"absolute inset-0 opacity-10",style:{backgroundImage:"linear-gradient(oklch(1 0 0 / 0.06) 1px, transparent 1px), linear-gradient(90deg, oklch(1 0 0 / 0.06) 1px, transparent 1px)",backgroundSize:"48px 48px"}}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:914",className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-96 h-96 rounded-full opacity-5 blur-3xl pointer-events-none",style:{background:"var(--orange)"}}),h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:918",className:"container mx-auto px-6 relative",children:h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:919",className:"max-w-3xl mx-auto text-center",children:h.jsxs(Je.div,{"data-loc":"client/src/pages/Home.tsx:920",initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:xr,children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:921",className:"inline-block text-xs font-mono px-3 py-1.5 rounded border mb-6",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)",borderColor:"var(--orange-dim)",background:"var(--orange-dim)"},children:"14-DAY FREE TRIAL · NO CREDIT CARD REQUIRED"}),h.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:927",className:"text-6xl md:text-7xl font-bold uppercase text-foreground mb-4",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Ready to Run Your Shop Like a Pro?"}),h.jsx("p",{"data-loc":"client/src/pages/Home.tsx:930",className:"text-muted-foreground mb-8 max-w-xl mx-auto text-lg leading-relaxed",children:"Join professional engine builders who've replaced their spreadsheets with EngineBuildr. Plans start at $49/month â less than one hour of shop labor."}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:933",className:"flex flex-col sm:flex-row gap-3 justify-center mb-6",children:[h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:934",href:"/dashboard",children:h.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:935",className:"inline-flex items-center gap-2 px-8 py-4 rounded-md font-semibold text-lg transition-all duration-150 active:scale-95 orange-glow",style:{background:"var(--orange)",color:"white"},children:["Start Your Free Trial",h.jsx(Pu,{"data-loc":"client/src/pages/Home.tsx:940",className:"w-5 h-5"})]})}),h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:943",href:"/pricing",children:h.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:944",className:"inline-flex items-center gap-2 px-8 py-4 rounded-md font-medium text-lg border border-border hover:border-white/20 text-foreground transition-all duration-150 active:scale-95",children:["View Pricing",h.jsx(Ml,{"data-loc":"client/src/pages/Home.tsx:946",className:"w-5 h-5"})]})})]}),h.jsx("p",{"data-loc":"client/src/pages/Home.tsx:950",className:"text-xs text-muted-foreground",children:"Solo Builder $49/mo · Pro Bu
401ilder $129/mo · Enterprise $299/mo"})]})})})]}),h.jsx("footer",{"data-loc":"client/src/pages/Home.tsx:959",className:"py-10 border-t border-border",children:h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:960",className:"container mx-auto px-6",children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:961",className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-8 mb-8",children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:963",children:[h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:964",className:"flex items-center gap-2 mb-3",children:[h.jsx("img",{"data-loc":"client/src/pages/Home.tsx:965",src:"/manus-storage/logo_icon_0e7d0be8.png",alt:"EngineBuildr logo",className:"w-6 h-6 object-contain"}),h.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:966",className:"text-sm font-bold",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:["ENGINE",h.jsx("span",{"data-loc":"client/src/pages/Home.tsx:967",style:{color:"var(--orange)"},children:"BUILDR"})]})]}),h.jsx("p",{"data-loc":"client/src/pages/Home.tsx:970",className:"text-xs text-muted-foreground leading-relaxed",children:"Engine building software for professional shops. Tear-down docs, spec calculations, machine shop orders, and customer estimates â one platform."})]}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:975",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:976",className:"text-xs font-semibold text-foreground uppercase tracking-wider mb-3",style:{fontFamily:"'JetBrains Mono', monospace"},children:"Product"}),h.jsxs("ul",{"data-loc":"client/src/pages/Home.tsx:977",className:"space-y-2 text-xs text-muted-foreground",children:[h.jsx("li",{"data-loc":"client/src/pages/Home.tsx:978",children:h.jsx("a",{"data-loc":"client/src/pages/Home.tsx:978",href:"#how-it-works",className:"hover:text-foreground transition-colors",children:"How It Works"})}),h.jsx("li",{"data-loc":"client/src/pages/Home.tsx:979",children:h.jsx("a",{"data-loc":"client/src/pages/Home.tsx:979",href:"#features",className:"hover:text-foreground transition-colors",children:"Features"})}),h.jsx("li",{"data-loc":"client/src/pages/Home.tsx:980",children:h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:980",href:"/pricing",className:"hover:text-foreground transition-colors",children:"Pricing"})}),h.jsx("li",{"data-loc":"client/src/pages/Home.tsx:981",children:h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:981",href:"/tools/spec-calculator",className:"hover:text-foreground transition-colors",children:"Spec Calculator"})})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:985",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:986",className:"text-xs font-semibold text-foreground uppercase tracking-wider mb-3",style:{fontFamily:"'JetBrains Mono', monospace"},children:"Resources"}),h.jsxs("ul",{"data-loc":"client/src/pages/Home.tsx:987",className:"space-y-2 text-xs text-muted-foreground",children:[h.jsx("li",{"data-loc":"client/src/pages/Home.tsx:988",children:h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:988",href:"/guides",className:"hover:text-foreground transition-colors",children:"Engine Building Guides"})}),h.jsx("li",{"data-loc":"client/src/pages/Home.tsx:989",children:h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:989",href:"/guides/ls-engine-family-guide",className:"hover:text-foreground transition-colors",children:"LS Engine Family Guide"})}),h.jsx("li",{"data-loc":"client/src/pages/Home.tsx:990",children:h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:990",href:"/guides/main-bearing-clearance",className:"hover:text-foreground transition-colors",children:"Main Bearing Clearance"})}),h.jsx("li",{"data-loc":"client/src/pages/Home.tsx:991",children:h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:991",href:"/parts",className:"hover:text-foreground transition-colors",children:"Parts Catalog"})})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:995",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:996",className:"text-xs font-semibold text-foreground uppercase tracking-wider mb-3",style:{fontFamily:"'JetBrains Mono', monospace"},children:"Company"}),h.jsxs("ul",{"data-loc":"client/src/pages/Home.tsx:997",className:"space-y-2 text-xs text-muted-foreground",children:[h.jsx("li",{"data-loc":"client/src/pages/Home.tsx:998",children:h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:998",href:"/terms",className:"hover:text-foreground transition-colors",children:"Terms of Service"})}),h.jsx("li",{"data-loc":"client/src/pages/Home.tsx:999",children:h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:999",href:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy Policy"})}),h.jsx("li",{"data-loc":"client/src/pages/Home.tsx:1000",children:h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:1000",href:"/pricing",className:"hover:text-foreground transition-colors",children:"Billing"})}),h.jsx("li",{"data-loc":"client/src/pages/Home.tsx:1001",children:h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:1001",href:"/dashboard",className:"hover:text-foreground transition-colors",children:"Sign In"})})]})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1005",className:"pt-6 border-t border-border flex flex-col sm:flex-row items-center justify-between gap-3",children:[h.jsx("div",{"data-loc":"client/src/pages/Home.tsx:1006",className:"text-xs text-muted-foreground",children:"© 2026 EngineBuildr. Engine building software for professional shops."}),h.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:1007",className:"flex items-center gap-4 text-xs text-muted-foreground",children:[h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:1008",href:"/terms",className:"hover:text-foreground transition-colors",children:"Terms"}),h.jsx(kt,{"data-loc":"client/src/pages/Home.tsx:1009",href:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy"})]})]})]})})]})}const NJ=[{href:"/dashboard",icon:DK,label:"Dashboard"},{href:"/builds/new",icon:oh,label:"New Build"},{href:"/dashboard",icon:ei,label:"My Builds"},{href:"/parts",icon:lh,label:"Parts Catalog"},{href:"/locations",icon:Mx,label:"Locations"},{href:"/pricing",icon:AK,label:"Billing"}];function kp({children:e,title:t,breadcrumbs:n}){const[r]=B5(),[a,s]=G.useState(!1);return h.jsxs("div",{"data-loc":"client/src/components/AppLayout.t
401sx:44",className:"min-h-screen flex bg-background",children:[h.jsxs("aside",{"data-loc":"client/src/components/AppLayout.tsx:46",className:Ac("fixed inset-y-0 left-0 z-50 w-64 flex flex-col bg-sidebar border-r border-sidebar-border transition-transform duration-200 ease-out",a?"translate-x-0":"-translate-x-full lg:translate-x-0"),children:[h.jsxs("div",{"data-loc":"client/src/components/AppLayout.tsx:53",className:"flex items-center gap-3 px-5 py-5 border-b border-sidebar-border",children:[h.jsx("img",{"data-loc":"client/src/components/AppLayout.tsx:54",src:"/manus-storage/logo_icon_0e7d0be8.png",alt:"EngineBuildr",className:"w-9 h-9 object-contain"}),h.jsxs("div",{"data-loc":"client/src/components/AppLayout.tsx:59",children:[h.jsxs("div",{"data-loc":"client/src/components/AppLayout.tsx:60",className:"text-xl font-bold tracking-wide text-foreground leading-none",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:["ENGINE",h.jsx("span",{"data-loc":"client/src/components/AppLayout.tsx:64",style:{color:"var(--orange)"},children:"BUILDR"})]}),h.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:66",className:"text-xs text-muted-foreground mt-0.5",style:{fontFamily:"'JetBrains Mono', monospace"},children:"v2.4.1"})]})]}),h.jsx("nav",{"data-loc":"client/src/components/AppLayout.tsx:73",className:"flex-1 px-3 py-4 space-y-0.5 overflow-y-auto",children:NJ.map(i=>{const o=r===i.href||i.href!=="/dashboard"&&r.startsWith(i.href);return h.jsx(kt,{"data-loc":"client/src/components/AppLayout.tsx:77",href:i.href,children:h.jsxs("div",{"data-loc":"client/src/components/AppLayout.tsx:78",className:Ac("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm font-medium transition-all duration-150 group relative",o?"bg-accent text-accent-foreground":"text-muted-foreground hover:text-foreground hover:bg-white/5"),onClick:()=>s(!1),children:[o&&h.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:89",className:"absolute left-0 top-1/2 -translate-y-1/2 w-0.5 h-5 rounded-r-full",style:{background:"var(--orange)"}}),h.jsx(i.icon,{"data-loc":"client/src/components/AppLayout.tsx:94",className:"w-4 h-4 flex-shrink-0",style:o?{color:"var(--orange)"}:{}}),h.jsx("span",{"data-loc":"client/src/components/AppLayout.tsx:98",className:"flex-1",children:i.label}),!o&&h.jsx(Ml,{"data-loc":"client/src/components/AppLayout.tsx:101",className:"w-3 h-3 opacity-0 group-hover:opacity-40 transition-opacity"})]})},i.label)})}),h.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:110",className:"px-4 py-4 border-t border-sidebar-border",children:h.jsxs("div",{"data-loc":"client/src/components/AppLayout.tsx:111",className:"flex items-center gap-2.5",children:[h.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:112",className:"w-8 h-8 rounded-full bg-secondary flex items-center justify-center text-xs font-bold",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"MK"}),h.jsxs("div",{"data-loc":"client/src/components/AppLayout.tsx:115",className:"flex-1 min-w-0",children:[h.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:116",className:"text-sm font-medium text-foreground truncate",children:"Mike Kowalski"}),h.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:117",className:"text-xs text-muted-foreground truncate",children:"Pro Builder"})]}),h.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:119",className:"w-2 h-2 rounded-full bg-green-500 flex-shrink-0"})]})})]}),a&&h.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:126",className:"fixed inset-0 z-40 bg-black/60 lg:hidden",onClick:()=>s(!1)}),h.jsxs("div",{"data-loc":"client/src/components/AppLayout.tsx:133",className:"flex-1 flex flex-col lg:pl-64",children:[h.jsxs("header",{"data-loc":"client/src/components/AppLayout.tsx:135",className:"sticky top-0 z-30 flex items-center gap-4 px-6 py-4 border-b border-border bg-background/90 backdrop-blur-sm",children:[h.jsx("button",{"data-loc":"client/src/components/AppLayout.tsx:136",className:"lg:hidden p-1.5 rounded-md hover:bg-white/5 text-muted-foreground",onClick:()=>s(!a),children:a?h.jsx(Sp,{"data-loc":"client/src/components/AppLayout.t
401sx:140",className:"w-5 h-5"}):h.jsx(FK,{"data-loc":"client/src/components/AppLayout.tsx:140",className:"w-5 h-5"})}),h.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:144",className:"flex items-center gap-2 text-sm min-w-0 overflow-hidden",children:n?.map((i,o)=>h.jsxs("span",{"data-loc":"client/src/components/AppLayout.tsx:146",className:"flex items-center gap-2",children:[o>0&&h.jsx(Ml,{"data-loc":"client/src/components/AppLayout.tsx:147",className:"w-3 h-3 text-muted-foreground"}),i.href?h.jsx(kt,{"data-loc":"client/src/components/AppLayout.tsx:149",href:i.href,children:h.jsx("span",{"data-loc":"client/src/components/AppLayout.tsx:150",className:"text-muted-foreground hover:text-foreground transition-colors cursor-pointer",children:i.label})}):h.jsx("span",{"data-loc":"client/src/components/AppLayout.tsx:155",className:"text-foreground font-medium truncate max-w-[140px] sm:max-w-none",children:i.label})]},o))}),h.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:161",className:"flex-1"}),h.jsx(kt,{"data-loc":"client/src/components/AppLayout.tsx:164",href:"/builds/new",children:h.jsxs("button",{"data-loc":"client/src/components/AppLayout.tsx:165",className:"flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium transition-all duration-150 active:scale-95",style:{background:"var(--orange)",color:"white"},children:[h.jsx(oh,{"data-loc":"client/src/components/AppLayout.tsx:169",className:"w-4 h-4"}),h.jsx("span",{"data-loc":"client/src/components/AppLayout.tsx:170",className:"hidden sm:inline",children:"New Build"})]})})]}),h.jsxs("main",{"data-loc":"client/src/components/AppLayout.tsx:176",className:"flex-1 overflow-auto",children:[t&&h.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:178",className:"px-6 pt-6 pb-2",children:h.jsx("h1",{"data-loc":"client/src/components/AppLayout.tsx:179",className:"text-4xl font-bold text-foreground uppercase tracking-wide",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:t})}),e]})]})]})}const AJ=[{id:1,label:"Welcome"},{id:2,label:"Shop Info"}
401,{id:3,label:"Choose Plan"}];function LJ({onComplete:e}){const[,t]=B5(),[n,r]=G.useState(1),[a,s]=G.useState(""),[i,o]=G.useState(""),[c,d]=G.useState(""),f=Tr.builds.completeOnboarding.useMutation({onSuccess:()=>{e()}}),m=(g=!1)=>{f.mutate(),g&&t("/pricing")},b="w-full px-3 py-2.5 rounded-md border border-border bg-input text-foreground text-sm placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring transition-all";return h.jsxs("div",{"data-loc":"client/src/components/OnboardingModal.tsx:45",className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[h.jsx(Je.div,{"data-loc":"client/src/components/OnboardingModal.tsx:47",initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0",style:{background:"rgba(0,0,0,0.75)",backdropFilter:"blur(4px)"}}),h.jsxs(Je.div,{"data-loc":"client/src/components/OnboardingModal.tsx:55",initial:{opacity:0,scale:.95,y:16},animate:{opacity:1,scale:1,y:0},transition:{duration:.25,ease:[.23,1,.32,1]},className:"relative w-full max-w-md rounded-xl border border-border overflow-hidden",style:{background:"var(--card)"},children:[h.jsxs("div",{"data-loc":"client/src/components/OnboardingModal.tsx:63",className:"px-6 py-4 border-b border-border flex items-center justify-between",style:{background:"var(--background)"},children:[h.jsxs("div",{"data-loc":"client/src/components/OnboardingModal.tsx:67",className:"flex items-center gap-3",children:[h.jsx("div",{"data-loc":"client/src/components/OnboardingModal.tsx:68",className:"w-7 h-7 rounded flex items-center justify-center text-white font-bold text-xs",style:{background:"var(--orange)",fontFamily:"'JetBrains Mono', monospace"},children:"EB"}),h.jsx("span",{"data-loc":"client/src/components/OnboardingModal.tsx:74",className:"font-bold text-sm uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"EngineBuildr Setup"})]}),h.jsx("div",{"data-loc":"client/src/components/OnboardingModal.tsx:82",className:"flex items-center gap-1.5",children:AJ.map(g=>h.jsx("div",{"data-loc":"client/src/components/OnboardingModal.tsx:84",className:"w-2 h-2 rounded-full transition-all duration-300",style:{background:g.id<=n?"var(--orange)":"var(--secondary)"}},g.id))})]}),h.jsx("div",{"data-loc":"client/src/components/OnboardingModal.tsx:96",className:"px-6 py-8",children:h.jsxs(Ba,{"data-loc":"client/src/components/OnboardingModal.tsx:97",mode:"wait",children:[n===1&&h.jsxs(Je.div,{"data-loc":"client/src/components/OnboardingModal.tsx:99",initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.2},children:[h.jsx("div",{"data-loc":"client/src/components/OnboardingModal.tsx:106",className:"w-14 h-14 rounded-xl flex items-center justify-center mb-6",style:{background:"oklch(0.6 0.2 50 / 0.15)",border:"1px solid var(--orange)"},children:h.jsx(ei,{"data-loc":"client/src/components/OnboardingModal.tsx:110",className:"w-7 h-7",style:{color:"var(--orange)"}})}),h.jsx("h2",{"data-loc":"client/src/components/OnboardingModal.tsx:112",className:"text-3xl font-bold uppercase text-foreground mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Welcome to EngineBuildr"}),h.jsx("p",{"data-loc":"client/src/components/OnboardingModal.tsx:118",className:"text-sm text-muted-foreground leading-relaxed mb-6",children:"The professional engine build management platform for mechanics and machine shops. Document tear-downs, calculate clearances, generate estimates, and deliver professional proposals â all in one place."}),h.jsx("div",{"data-loc":"client/src/components/OnboardingModal.tsx:121",className:"space-y-3 mb-6",children:["Universal engine support â 49cc to jet turbines","AI-powered part compatibility checker","Interactive clearance inspector with live pass/fail","Customer-facing estimate portal with digital approval"].map(g=>h.jsxs("div",{"data-loc":"client/src/components/OnboardingModal.tsx:128",className:"flex items-start gap-2.5 text-sm",children:[h.jsx(Rx,{"data-loc":"client/src/components/OnboardingModal.tsx:129",className:"w-4 h-4 flex-shrink-0 mt-0.5",style:{color:"var(--orange)"}}),h.jsx("span",{"data-loc":"client/src/components/OnboardingModal.tsx:130",className:"text-foreground",children:g})]},g))}),h.jsx("p",{"data-loc":"client/src/components/OnboardingModal.tsx:134",className:"text-xs text-muted-foreground",children:"Your 14-day free trial has started. No credit card required."})]},"step1"),n===2&&h.jsxs(Je.div,{"data-loc":"client/src/components/OnboardingModal.tsx:141",
401initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.2},children:[h.jsx("div",{"data-loc":"client/src/components/OnboardingModal.tsx:148",className:"w-14 h-14 rounded-xl flex items-center justify-center mb-6",style:{background:"oklch(0.6 0.2 50 / 0.15)",border:"1px solid var(--orange)"},children:h.jsx(T3,{"data-loc":"client/src/components/OnboardingModal.tsx:152",className:"w-7 h-7",style:{color:"var(--orange)"}})}),h.jsx("h2",{"data-loc":"client/src/components/OnboardingModal.tsx:154",className:"text-3xl font-bold uppercase text-foreground mb-2",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Tell Us About Your Shop"}),h.jsx("p",{"data-loc":"client/src/components/OnboardingModal.tsx:160",className:"text-sm text-muted-foreground mb-6",children:"This information appears on customer estimates. You can update it anytime in Settings."}),h.jsxs("div",{"data-loc":"client/src/components/OnboardingModal.tsx:163",className:"space-y-4",children:[h.jsxs("div",{"data-loc":"client/src/components/OnboardingModal.tsx:164",children:[h.jsx("label",{"data-loc":"client/src/components/OnboardingModal.tsx:165",className:"block text-xs text-muted-foreground uppercase tracking-wider mb-1.5",children:"Shop Name"}),h.jsx("input",{"data-loc":"client/src/components/OnboardingModal.tsx:168",type:"text",placeholder:"e.g. High Performance Engines LLC",value:a,onChange:g=>s(g.target.value),className:b})]}),h.jsxs("div",{"data-loc":"client/src/components/OnboardingModal.tsx:176",className:"grid grid-cols-2 gap-3",children:[h.jsxs("div",{"data-loc":"client/src/components/OnboardingModal.tsx:177",children:[h.jsx("label",{"data-loc":"client/src/components/OnboardingModal.tsx:178",className:"block text-xs text-muted-foreground uppercase tracking-wider mb-1.5",children:"City"}),h.jsx("input",{"data-loc":"client/src/components/OnboardingModal.tsx:181",type:"text",placeholder:"Detroit",value:i,onChange:g=>o(g.target.value),className:b})]}),h.jsxs("div",{"data-loc":"client/src/components/OnboardingModal.tsx:189",children:[h.jsx("label",{"data-loc":"client/src/components/OnboardingModal.tsx:190",className:"block text-xs text-muted-foreground uppercase tracking-wider mb-1.5",children:"State"}),h.jsx("input",{"data-loc":"client/src/components/OnboardingModal.tsx:193",type:"text",placeholder:"MI",value:c,onChange:g=>d(g.target.value),className:b})]})]})]}),h.jsx("p",{"data-loc":"client/src/components/OnboardingModal.tsx:203",className:"text-xs text-muted-foreground mt-4",children:"You can skip this and fill it in later."})]},"step2"),n===3&&h.jsxs(Je.div,{"data-loc":"client/src/components/OnboardingModal.tsx:210",initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.2},children:[h.jsx("div",{"data-loc":"client/src/components/OnboardingModal.tsx:217",className:"w-14 h-14 rounded-xl flex items-center justify-center mb-6",style:{background:"oklch(0.6 0.2 50 / 0.15)",border:"1px solid var(--orange)"},children:h.jsx(qu,{"data-loc":"client/src/components/OnboardingModal.tsx:221",className:"w-7 h-7",style:{color:"var(--orange)"}})}),h.jsx("h2",{"data-loc":"client/src/components/OnboardingModal.tsx:223",className:"text-3xl font-bold uppercase text-foreground mb-2",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"You're All Set"}),h.jsx("p",{"data-loc":"client/src/components/OnboardingModal.tsx:229",className:"text-sm text-muted-foreground mb-6",children:"Your 14-day free trial gives you full access to all features. Upgrade anytime to keep your builds and unlock team features."}),h.jsx("div",{"data-loc":"client/src/components/OnboardingModal.tsx:232",className:"space-y-3 mb-6",children:[{plan:"Solo Builder",price:"$49/mo",desc:"Perfect for independent mechanics"},{plan:"Pro Shop",price:"$129/mo",desc:"Multi-user, customer portal, AI tools"},{plan:"Enterprise",price:"$299/mo",desc:"Multi-location, white-label estimates"}].map(g=>h.jsxs("div",{"data-loc":"client/src/components/OnboardingModal.tsx:238",className:"flex items-center justify-between p-3 rounded-lg border border-border",style:{background:"var(--background)"},children:[h.jsxs("div",{"data-loc":"client/src/components/OnboardingModal.tsx:243",children:[h.jsx("div",{"data-loc":"client/src/components/OnboardingModal.tsx:244",className:"text-sm font-medium text-foreground",children:g.plan}),h.jsx("div",{"data-loc":"client/src/components/OnboardingModal.tsx:245",className:"text-xs text-muted-foreground",children:g.desc})]}),h.jsx("div",{"data-loc":"client/src/components/OnboardingModal.tsx:247",className:"text-sm font-bold",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:g.price})]},g.plan))})]},"step3")]})}),h.jsxs("div",{"data-loc":"client/src/components/OnboardingModal.tsx:262",className:"px-6 pb-6 flex items-center justify-between gap-3",children:[n>1?h.jsx("button",{"data-loc":"client/src/components/OnboardingModal.tsx:264",onClick:()=>r(g=>g-1),className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Back"}):h.jsx("div",{"data-loc":"client/src/components/OnboardingModal.tsx:271"}),h.jsx("div",{"data-loc":"client/src/components/OnboardingModal.tsx:274",className:"flex items-center gap-2",children:n<3?h.jsxs("button",{"data-loc":"client/src/components/OnboardingModal.tsx:276",onClick:()=>r(g=>g+1),className:"flex items-center gap-2 px-5 py-2.5 rounded-md font-medium text-sm transition-all active:scale-95",style:{background:"var(--orange)",color:"white"},children:["Continue",h.jsx(Ml,{"data-loc":"client/src/components/OnboardingModal.tsx:282",className:"w-4 h-4"})]}):h.jsxs(h.Fragment,{children:[h.jsx("button",{"data-loc":"client/src/components/OnboardingModal.tsx:286",onClick:()=>m(!1),className:"px-4 py-2.5 rounded-md font-medium text-sm border border-border text-foreground hover:bg-secondary transition-all",children:"Start Free Trial"}),h.jsxs("button",{"data-loc":"client/src/components/OnboardingModal.tsx:292",onClick:()=>m(!0),className:"flex items-center gap-2 px-5 py-2.5 rounded-md font-medium text-sm transition-all active:scale-95",style:{background:"var(--orange)",color:"white"},children:[h.jsx(qu,{"data-loc":"client/src/components/OnboardingModal.tsx:297",className:"w-4 h-4"}),"View Plans"]})]})})]})]})]})}const c4={hidden:{opacity:0,y:16},visible:(e=0)=>({opacity:1,y:0,transition:{duration:.35,delay:e*.06}})};function MJ(e){switch(e){case"assembly":return"oklch(0.7 0.18 140)";case"machine_shop":return"var(--orange)";case"teardown":return"oklch(0.65 0.2 60)";case"complete":return"oklch(0.55 0.15 140)";default:return"var(--muted-foreground)"}}function RJ(e){switch(e){case"teardown":return"Tear-Down";
401case"machine_shop":return"Machine Shop";case"assembly":return"Assembly";case"complete":return"Complete";default:return e}}function OJ(e){switch(e){case"teardown":return 15;case"machine_shop":return 40;case"assembly":return 72;case"complete":return 100;default:return 0}}function PJ(e){return e.specs,e.displacement?`${e.displacement} ${e.engineFamily??"Build"}`:e.engineFamily?e.engineFamily:`Build #${e.id}`}function jJ(e){if(e.year||e.make||e.model)return[e.year,e.make,e.model].filter(Boolean).join(" ");const t=e.specs??{};return t.application?t.application:e.engineCategory??"Custom Build"}function DJ(){const{user:e}=F5(),{data:t,isLoading:n}=Tr.builds.list.useQuery(),[r,a]=G.useState(()=>e&&!e.onboardingCompleted),s=()=>a(!1),i=t?.filter(f=>f.status!=="archived")??[],o=t?.filter(f=>f.stage==="complete")??[],c=t?.reduce((f,m)=>f+Number(m.estimateTotal??0),0)??0,d=[{icon:ei,label:"Active Builds",value:n?"â":String(i.filter(f=>f.stage!=="complete").length),sub:t?`${t.length} total`:"Loading..."},{icon:KR,label:"Total Estimates",value:n?"â":c>0?`$${c.toLocaleString()}`:"$0",sub:t?`${t.length} build${t.length!==1?"s":""}`:"Loading..."},{icon:La,label:"Completed",value:n?"â":String(o.length),sub:"All time"},{icon:N3,label:"In Progress",value:n?"â":String(i.filter(f=>f.stage!=="complete").length),sub:"Across all stages"}];return h.jsxs(h.Fragment,{children:[r&&h.jsx(LJ,{"data-loc":"client/src/pages/Dashboard.tsx:121",onComplete:s}),h.jsx(kp,{"data-loc":"client/src/pages/Dashboard.tsx:122",title:"Dashboard",breadcrumbs:[{label:"Dashboard"}],children:h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:123",className:"px-6 py-6 space-y-8",children:[h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:125",className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:d.map((f,m)=>h.jsxs(Je.div,{"data-loc":"client/src/pages/Dashboard.tsx:127",initial:"hidden",animate:"visible",variants:c4,custom:m,className:"p-5 rounded-lg border border-border bg-card",children:[h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:135",className:"flex items-center justify-between mb-3",children:[h.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:136",className:"text-xs text-muted-foreground uppercase tracking-wider",children:f.label}),h.jsx(f.icon,{"data-loc":"client/src/pages/Dashboard.tsx:137",className:"w-4 h-4 text-muted-foreground"})]}),h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:139",className:"text-3xl font-bold text-foreground mb-1",style:{fontFamily:"'JetBrains Mono', monospace"},children:f.value}),h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:145",className:"text-xs text-muted-foreground",children:f.sub})]},f.label))}),h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:151",className:"grid lg:grid-cols-3 gap-6",children:[h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:153",className:"lg:col-span-2 space-y-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:154",className:"flex items-center justify-between",children:[h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:155",className:"section-header mb-0",children:h.jsx("h2",{"data-loc":"client/src/pages/Dashboard.tsx:156",className:"text-2xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Active Builds"})}),h.jsx(kt,{"data-loc":"client/src/pages/Dashboard.tsx:163",href:"/builds/new",children:h.jsxs("button",{"data-loc":"client/src/pages/Dashboard.tsx:164",className:"flex items-center gap-1.5 text-sm font-medium px-3 py-1.5 rounded-md transition-all active:scale-95",style:{background:"var(--orange)",color:"white"},children:[h.jsx(oh,{"data-loc":"client/src/pages/Dashboard.tsx:168",className:"w-3.5 h-3.5"}),"New Build"]})})]}),n&&h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:176",className:"flex items-center justify-center py-16 text-muted-foreground gap-3",children:[h.jsx(Zs,{"data-loc":"client/src/pages/Dashboard.tsx:177",className:"w-5 h-5 animate-spin",style:{color:"var(--orange)"}}),h.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:178",className:"text-sm",children:"Loading builds..."})]}),!n&&i.length===0&&h.jsxs(Je.div,{"data-loc":"client/src/pages/Dashboard.tsx:184",initial:"hidden",animate:"visible",variants:c4,custom:4,className:"p-10 rounded-lg border border-dashed border-border text-center",children:[h.jsx(ei,{"data-loc":"client/src/pages/Dashboard.tsx:191",className:"w-10 h-10 mx-auto mb-4 text-muted-foreground opacity-40"}),h.jsx("h3",{"data-loc":"client/src/pages/Dashboard.tsx:192",className:"text-xl font-bold uppercase text-foreground mb-2",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"No Builds Yet"}),h.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:198",className:"text-sm text-muted-foreground mb-6",children:"Start your first engine build to track tear-down, specs, and estimates."}),h.jsx(kt,{"data-loc":"client/src/pages/Dashboard.tsx:201",href:"/builds/new",children:h.jsxs("button",{"data-loc":"client/src/pages/Dashboard.tsx:202",className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-md font-medium text-sm transition-all active:scale-95",style:{background:"var(--orange)",color:"white"},children:[h.jsx(oh,{"data-loc":"client/src/pages/Dashboard.tsx:206",className:"w-4 h-4"}),"Create Your First Build"]})})]}),!n&&i.map((f,m)=>{const b=OJ(f.stage),g=MJ(f.stage);return h.jsx(Je.div,{"data-loc":"client/src/pages/Dashboard.tsx:218",initial:"hidden",animate:"visible",variants:c4,custom:m+4,children:h.jsx(kt,{"data-loc":"client/src/pages/Dashboard.tsx:225",href:`/builds/${f.id}`,children:h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:226",className:"p-5 rounded-lg border border-border bg-card hover-card cursor-pointer group",children:[h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:227",className:"flex items-start justify-between gap-4 mb-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:228",children:[h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:229",className:"flex items-center gap-2 mb-1",children:[h.jsx("h3",{"data-loc":"client/src/pages/Dashboard.tsx:230",className:"text-xl font-bold text-foreground uppercase",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:PJ(f)}),f.stage==="machine_shop"&&h.jsx(qi,{"data-loc":"client/src/pages/Dashboard.tsx:237",className:"w-4 h-4",style:{color:"var(--orange)"}}),f.stage==="complete"&&h.jsx(La,{"data-loc":"client/src/pages/Dashboard.tsx:240",className:"w-4 h-4",style:{color:"oklch(0.7 0.18 140)"}})]}),h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:243",className:"text-sm text-muted-foreground",children:jJ(f)})]}),h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:245",className:"flex items-center gap-2 flex-shrink-0",children:[h.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:246",className:"text-xs font-mono px-2 py-0.5 rounded",style:{fontFamily:"'JetBrains Mono', monospace",color:g,background:`${g}18`},children:RJ(f.stage)}),h.jsx(Ml,{"data-loc":"client/src/pages/Dashboard.tsx:256",className:"w-4 h-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:261",className:"mb-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:262",className:"flex justify-between text-xs text-muted-foreground mb-1.5",children:[h.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:263",children:"Build Progress"}),h.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:264",style:{fontFamily:"'JetBrains Mono', monospace"},children:[b,"%"]})]}),h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:266",className:"h-1.5 rounded-full bg-secondary overflow-hidden",children:h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:267",className:"h-full rounded-full transition-all duration-700",style:{width:`${b}%`,background:f.stage==="complete"?"oklch(0.7 0.18 140)":"var(--orange)"}})})]}),h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:278",className:"flex flex-wrap items-center gap-x-5 gap-y-2 text-xs",children:[f.displacement&&h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:280",children:[h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:281",className:"text-muted-foreground mb-0.5",children:"Displacement"}),h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:282",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:f.displacement})]}),f.specs?.targetHp&&h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:288",children:[h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:289",className:"text-muted-foreground mb-0.5",children:"Target Power"}),h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:290",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:[f.specs.targetHp," hp"]})]}),f.estimateTotal&&h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:296",children:[h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:297",className:"text-muted-foreground mb-0.5",children:"Estimate"}),h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:298",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"}
401,children:["$",Number(f.estimateTotal).toLocaleString()]})]}),h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:303",className:"ml-auto text-muted-foreground",children:new Date(f.updatedAt).toLocaleDateString()})]})]})})},f.id)})]}),h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:315",className:"space-y-6",children:[h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:316",children:[h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:317",className:"section-header mb-4",children:h.jsx("h2",{"data-loc":"client/src/pages/Dashboard.tsx:318",className:"text-2xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Quick Actions"})}),h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:325",className:"space-y-2",children:[{label:"New Build",href:"/builds/new",icon:oh},{label:"Pricing & Plans",href:"/pricing",icon:N3}].map(f=>h.jsx(kt,{"data-loc":"client/src/pages/Dashboard.tsx:330",href:f.href,children:h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:331",className:"flex items-center gap-3 p-3 rounded-lg border border-border bg-card hover-card cursor-pointer group",children:[h.jsx(f.icon,{"data-loc":"client/src/pages/Dashboard.tsx:332",className:"w-4 h-4",style:{color:"var(--orange)"}}),h.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:333",className:"text-sm font-medium text-foreground",children:f.label}),h.jsx(Ml,{"data-loc":"client/src/pages/Dashboard.tsx:334",className:"w-4 h-4 text-muted-foreground ml-auto opacity-0 group-hover:opacity-100 transition-opacity"})]})},f.label))})]}),e&&h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:343",className:"p-4 rounded-lg border border-border bg-card",children:[h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:344",className:"text-xs text-muted-foreground uppercase tracking-wider mb-2",children:"Current Plan"}),h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:345",className:"text-lg font-bold uppercase mb-1",style:{fontFamily:"'Barlow Condensed', sans-serif",color:e.plan==="admin_bypass"?"oklch(0.7 0.18 140)":"var(--orange)"},children:e.plan==="admin_bypass"?"Admin":e.plan??"Trial"}),e.plan==="trial"&&e.trialEndsAt&&h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:355",className:"text-xs text-muted-foreground",children:["Trial ends ",new Date(e.trialEndsAt).toLocaleDateString()]}),(e.plan==="trial"||e.plan==="solo")&&h.jsx(kt,{"data-loc":"client/src/pages/Dashboard.tsx:360",href:"/pricing",children:h.jsx("button",{"data-loc":"client/src/pages/Dashboard.tsx:361",className:"mt-3 w-full text-xs font-medium py-1.5 rounded-md transition-all active:scale-95",style:{background:"var(--orange)",color:"white"},children:"Upgrade Plan"})})]})]})]})]})})]})}const IJ="modulepreload",BJ=function(e){return"/"+e},r_={}
vendor: 6,294 bytes, line 401
401,me=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let c=function(d){return Promise.all(d.map(f=>Promise.resolve(f).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),o=i?.nonce||i?.getAttribute("nonce");a=c(n.map(d=>{if(d=BJ(d),d in r_)return;r_[d]=!0;const f=d.endsWith(".css"),m=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${m}`))return;const b=document.createElement("link");if(b.rel=f?"stylesheet":IJ,f||(b.as="script"),b.crossOrigin="",b.href=d,o&&b.setAttribute("nonce",o),document.head.appendChild(b),f)return new Promise((g,v)=>{b.addEventListener("load",g),b.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${d}`)))})}))}function s(i){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i}return a.then(i=>{for(const o of i||[])o.status==="rejected"&&s(o.reason);return t().catch(s)})};function _r(e){"@babel/helpers - typeof";return _r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_r(e)}var Rl=Uint8Array,vo=Uint16Array,qw=Int32Array,Vw=new Rl([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Gw=new Rl([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a_=new Rl([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),uO=function(e,t){for(var n=new vo(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var a=new qw(n[30]),r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)a[s]=s-n[r]<<5|r;return{b:n,r:a}},dO=uO(Vw,2),FJ=dO.b,M3=dO.r;FJ[28]=258,M3[258]=28;var zJ=uO(Gw,0),s_=zJ.r,R3=new vo(32768);for(var Zr=0;Zr<32768;++Zr){var Rd=(Zr&43690)>>1|(Zr&21845)<<1;Rd=(Rd&52428)>>2|(Rd&13107)<<2,Rd=(Rd&61680)>>4|(Rd&3855)<<4,R3[Zr]=((Rd&65280)>>8|(Rd&255)<<8)>>1}var Km=(function(e,t,n){for(var r=e.length,a=0,s=new vo(t);a<r;++a)e[a]&&++s[e[a]-1];var i=new vo(t);for(a=1;a<t;++a)i[a]=i[a-1]+s[a-1]<<1;var o;if(n){o=new vo(1<<t);var c=15-t;for(a=0;a<r;++a)if(e[a])for(var d=a<<4|e[a],f=t-e[a],m=i[e[a]-1]++<<f,b=m|(1<<f)-1;m<=b;++m)o[R3[m]>>c]=d}else for(o=new vo(r),a=0;a<r;++a)e[a]&&(o[a]=R3[i[e[a]-1]++]>>15-e[a]);return o}),fh=new Rl(288);for(var Zr=0;Zr<144;++Zr)fh[Zr]=8;for(var Zr=144;Zr<256;++Zr)fh[Zr]=9;for(var Zr=256;Zr<280;++Zr)fh[Zr]=7;for(var Zr=280;Zr<288;++Zr)fh[Zr]=8;var Dx=new Rl(32);for(var Zr=0;Zr<32;++Zr)Dx[Zr]=5;var HJ=Km(fh,9,0),UJ=Km(Dx,5,0),hO=function(e){return(e+7)/8|0},qJ=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new Rl(e.subarray(t,n))},_u=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},_m=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},u4=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var a=n.length,s=n.slice();if(!a)return{t:pO,l:0};if(a==1){var i=new Rl(n[0].s+1);return i[n[0].s]=1,{t:i,l:1}}n.sort(function(V,U){return V.f-U.f}),n.push({s:-1,f:25001});var o=n[0],c=n[1],d=0,f=1,m=2;for(n[0]={s:-1,f:o.f+c.f,l:o,r:c};f!=a-1;)o=n[n[d].f<n[m].f?d++:m++],c=n[d!=f&&n[d].f<n[m].f?d++:m++],n[f++]={s:-1,f:o.f+c.f,l:o,r:c};for(var b=s[0].s,r=1;r<a;++r)s[r].s>b&&(b=s[r].s);var g=new vo(b+1),v=O3(n[f-1],g,0);if(v>t){var r=0,E=0,T=v-t,_=1<<T;for(s.sort(function(U,D){return g[D.s]-g[U.s]||U.f-D.f});r<a;++r){var A=s[r].s;if(g[A]>t)E+=_-(1<<v-g[A]),g[A]=t;else break}for(E>>=T;E>0;){var R=s[r].s;g[R]<t?E-=1<<t-g[R]++-1:++r}for(;r>=0&&E;--r){var P=s[r].s;g[P]==t&&(--g[P],++E)}v=t}return{t:new Rl(g),l:v}},O3=function(e,t,n){return e.s==-1?Math.max(O3(e.l,t,n+1),O3(e.r,t,n+1)):t[e.s]=n},i_=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new vo(++t),r=0,a=e[0],s=1,i=function(c){n[r++]=c},o=1;o<=t;++o)if(e[o]==a&&o!=t)++s;else{if(!a&&s>2){for(;s>138;s-=138)i(32754);s>2&&(i(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(i(a),--s;s>6;s-=6)i(8304);s>2&&(i(s-3<<5|8208),s=0)}for(;s--;)i(a);s=1,a=e[o]}return{c:n.subarray(0,r),n:t}},Tm=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},fO=function(e,t,n){var r=n.length,a=hO(t+2);e[a]=r&255,e[a+1]=r>>8,e[a+2]=e[a]^255,e[a+3]=e[a+1]^255;for(var s=0;s<r;++s)e[a+s+4]=n[s];return(a+4+r)*8},o_=function(e,t,n,r,a,s,i,o,c,d,f){_u(t,f++,n),++a[256];for(var m=u4(a,15),b=m.t,g=m.l,v=u4(s,15),E=v.t,T=v.l,_=i_(b),A=_.c,R=_.n,P=i_(E),V=P.c,U=P.n,D=new vo(19),H=0;H<A.length;++H)++D[A[H]&31];for(var H=0;H<V.length;++H)++D[V[H]&31];for(var q=u4(D,7),W=q.t,z=q.l,$=19;$>4&&!W[a_[$-1]];--$);var ae=d+5<<3,J=Tm(a,fh)+Tm(s,Dx)+i,xe=Tm(a,b)+Tm(s,E)+i+14+3*$+Tm(D,W)+2*D[16]+3*D[17]+7*D[18];if(c>=0&&ae<=J&&ae<=xe)return fO(t,f,e.subarray(c,c+d));var ee,ce,se,be;if(_u(t,f,1+(xe<J)),f+=2,xe<J){ee=Km(b,g,0),ce=b,se=Km(E,T,0),be=E;var Z=Km(W,z,0);_u(t,f,R-257),_u(t,f+5,U-1),_u(t,f+10,$-4),f+=14;for(var H=0;H<$;++H)_u(t,f+3*H,W[a_[H]]);f+=3*$;for(var ne=[A,V],B=0;B<2;++B)for(var O=ne[B],H=0;H<O.length;++H){var K=O[H]&31;_u(t,f,Z[K]),f+=W[K],K>15&&(_u(t,f,O[H]>>5&127),f+=O[H]>>12)}}else ee=HJ,ce=fh,se=UJ,be=Dx;for(var H=0;H<o;++H){var he=r[H];if(he>255){var K=he>>18&31;_m(t,f,ee[K+257]),f+=ce[K+257],K>7&&(_u(t,f,he>>23&31),f+=Vw[K]);var we=he&31;_m(t,f,se[we]),f+=be[we],we>3&&(_m(t,f,he>>5&8191),f+=Gw[we])}else _m(t,f,ee[he]),f+=ce[he]}return _m(t,f,ee[256]),f+ce[256]},VJ=new qw([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),pO=new Rl(0),GJ=function(e,t,n,r,a,s){var i=s.z||e.length,o=new Rl(r+i+5*(1+Math.ceil(i/7e3))+a),c=o.subarray(r,o.length-a),d=s.l,f=(s.r||0)&7;if(t){f&&(c[0]=s.r>>3);for(var m=VJ[t-1],b=m>>13,g=m&8191,v=(1<<n)-1,E=s.p||new vo(32768),T=s.h||new vo(v+1),_=Math.ceil(n/3),A=2*_,R=function(_t){return(e[_t]^e[_t+1]<<_^e[_t+2]<<A)&v},P=new qw(25e3),V=new vo(288),U=new vo(32),D=0,H=0,q=s.i||0,W=0,z=s.w||0,$=0;q+2<i;++q){var ae=R(q),J=q&32767,xe=T[ae];if(E[J]=xe,T[ae]=J,z<=q){var ee=i-q;if((D>7e3||W>24576)&&(ee>423||!d)){f=o_(e,c,0,P,V,U,H,W,$,q-$,f),W=D=H=0,$=q;for(var ce=0;ce<286;++ce)V[ce]=0;for(var ce=0;ce<30;++ce)U[ce]=0}var se=2,be=0,Z=g,ne=J-xe&32767;if(ee>2&&ae==R(q-ne))for(var B=Math.min(b,ee)-1,O=Math.min(32767,q),K=Math.min(258,ee);ne<=O&&--Z&&J!=xe;){if(e[q+se]==e[q+se-ne]){for(var he=0;he<K&&e[q+he]==e[q+he-ne];++he);
vendor: 9,298 bytes, lines 401-402
401if(he>se){if(se=he,be=ne,he>B)break;for(var we=Math.min(ne,he-2),Ee=0,ce=0;ce<we;++ce){var ue=q-ne+ce&32767,Ae=E[ue],Ie=ue-Ae&32767;Ie>Ee&&(Ee=Ie,xe=ue)}}}J=xe,xe=E[J],ne+=J-xe&32767}if(be){P[W++]=268435456|M3[se]<<18|s_[be];var We=M3[se]&31,st=s_[be]&31;H+=Vw[We]+Gw[st],++V[257+We],++U[st],z=q+se,++D}else P[W++]=e[q],++V[e[q]]}}for(q=Math.max(q,z);q<i;++q)P[W++]=e[q],++V[e[q]];f=o_(e,c,d,P,V,U,H,W,$,q-$,f),d||(s.r=f&7|c[f/8|0]<<3,f-=7,s.h=T,s.p=E,s.i=q,s.w=z)}else{for(var q=s.w||0;q<i+d;q+=65535){var mt=q+65535;mt>=i&&(c[f/8|0]=d,mt=i),f=fO(c,f+1,e.subarray(q,mt))}s.i=i}return qJ(o,0,r+hO(f)+a)},mO=function(){var e=1,t=0;return{p:function(n){for(var r=e,a=t,s=n.length|0,i=0;i!=s;){for(var o=Math.min(i+2655,s);i<o;++i)a+=r+=n[i];r=(r&65535)+15*(r>>16),a=(a&65535)+15*(a>>16)}e=r,t=a},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},$J=function(e,t,n,r,a){if(!a&&(a={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),i=new Rl(s.length+e.length);i.set(s),i.set(e,s.length),e=i,a.w=s.length}return GJ(e,t.level==null?6:t.level,t.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,a)},gO=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},WJ=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var a=mO();a.p(t.dictionary),gO(e,2,a.d())}};function P3(e,t){t||(t={});var n=mO();n.p(e);var r=$J(e,t,t.dictionary?6:2,4);return WJ(r,t),gO(r,r.length-4,n.d()),r}var YJ=typeof TextDecoder<"u"&&new TextDecoder,QJ=0;try{YJ.decode(pO,{stream:!0}),QJ=1}catch{}function XJ(e){if(Array.isArray(e))return e}function KJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,i,o=[],c=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(c=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){d=!0,a=f}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(d)throw a}}return o}}function l_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function JJ(e,t){if(e){if(typeof e=="string")return l_(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l_(e,t):void 0}}function ZJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 402In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c_(e,t){return XJ(e)||KJ(e,t)||JJ(e,t)||ZJ()}function u_(e,t="utf8"){return new TextDecoder(t).decode(e)}const eZ=new TextEncoder;function tZ(e){return eZ.encode(e)}const nZ=1024*8,rZ=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),d4={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class $w{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=nZ,n={}){let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const a=n.offset?n.offset>>>0:0,s=t.byteLength-a;let i=a;(ArrayBuffer.isView(t)||t instanceof $w)&&(t.byteLength!==t.buffer.byteLength&&(i=t.byteOffset+a),t=t.buffer),r?this.lastWrittenByte=s:this.lastWrittenByte=0,this.buffer=t,this.length=s,this.byteLength=s,this.byteOffset=i,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,i,s),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const r=(this.offset+t)*2,a=new Uint8Array(r);a.set(new Uint8Array(this.buffer)),this.buffer=a.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,n){const r=d4[n].BYTES_PER_ELEMENT*t,a=this.byteOffset+this.offset,s=this.buffer.slice(a,a+r);if(this.littleEndian===rZ&&n!=="uint8"&&n!=="int8"){const o=new Uint8Array(this.buffer.slice(a,a+r));o.reverse();const c=new d4[n](o.buffer);return this.offset+=r,c.reverse(),c}const i=new d4[n](s);return this.offset+=r,i}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let n="";for(let r=0;r<t;r++)n+=this.readChar();return n}readUtf8(t=1){return u_(this.readBytes(t))}decodeText(t=1,n="utf8"){return u_(this.readBytes(t),n)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let n=0;n<t.length;n++)this._data.setUint8(this.offset++,t[n]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let n=0;n<t.length;n++)this.writeUint8(t.charCodeAt(n));return this}writeUtf8(t){return this.writeBytes(tZ(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function _p(e){let t=e.length;for(;--t>=0;)e[t]=0}const aZ=3,sZ=258,xO=29,iZ=256,oZ=iZ+1+xO,bO=30,lZ=512,cZ=new Array((oZ+2)*2);_p(cZ);const uZ=new Array(bO*2);_p(uZ);const dZ=new Array(lZ);_p(dZ);const hZ=new Array(sZ-aZ+1);_p(hZ);const fZ=new Array(xO);_p(fZ);const pZ=new Array(bO);_p(pZ);const mZ=(e,t,n,r)=>{let a=e&65535|0,s=e>>>16&65535|0,i=0;for(;n!==0;){i=n>2e3?2e3:n,n-=i;do a=a+t[r++]|0,s=s+a|0;while(--i);a%=65521,s%=65521}return a|s<<16|0};var j3=mZ;const gZ=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},xZ=new Uint32Array(gZ()),bZ=(e,t,n,r)=>{const a=xZ,s=r+n;e^=-1;for(let i=r;i<s;i++)e=e>>>8^a[(e^t[i])&255];return e^-1};var hc=bZ,D3={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},yO={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ER
vendor: 10,883 bytes, line 402
402ROR:-5,Z_DEFLATED:8};const yZ=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var vZ=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)yZ(n,r)&&(e[r]=n[r])}}return e},wZ=e=>{let t=0;for(let r=0,a=e.length;r<a;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,a=0,s=e.length;r<s;r++){let i=e[r];n.set(i,a),a+=i.length}return n},vO={assign:vZ,flattenChunks:wZ};let wO=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{wO=!1}const N1=new Uint8Array(256);for(let e=0;e<256;e++)N1[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;N1[254]=N1[255]=1;var SZ=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,a,s,i=e.length,o=0;for(a=0;a<i;a++)n=e.charCodeAt(a),(n&64512)===55296&&a+1<i&&(r=e.charCodeAt(a+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),a++)),o+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(o),s=0,a=0;s<o;a++)n=e.charCodeAt(a),(n&64512)===55296&&a+1<i&&(r=e.charCodeAt(a+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),a++)),n<128?t[s++]=n:n<2048?(t[s++]=192|n>>>6,t[s++]=128|n&63):n<65536?(t[s++]=224|n>>>12,t[s++]=128|n>>>6&63,t[s++]=128|n&63):(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63,t[s++]=128|n>>>6&63,t[s++]=128|n&63);return t};const EZ=(e,t)=>{if(t<65534&&e.subarray&&wO)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var kZ=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,a;const s=new Array(n*2);for(a=0,r=0;r<n;){let i=e[r++];if(i<128){s[a++]=i;continue}let o=N1[i];if(o>4){s[a++]=65533,r+=o-1;continue}for(i&=o===2?31:o===3?15:7;o>1&&r<n;)i=i<<6|e[r++]&63,o--;if(o>1){s[a++]=65533;continue}i<65536?s[a++]=i:(i-=65536,s[a++]=55296|i>>10&1023,s[a++]=56320|i&1023)}return EZ(s,a)},_Z=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+N1[e[n]]>t?n:t},I3={string2buf:SZ,buf2string:kZ,utf8border:_Z};function TZ(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var CZ=TZ;const m2=16209,NZ=16191;var AZ=function(t,n){let r,a,s,i,o,c,d,f,m,b,g,v,E,T,_,A,R,P,V,U,D,H,q,W;const z=t.state;r=t.next_in,q=t.input,a=r+(t.avail_in-5),s=t.next_out,W=t.output,i=s-(n-t.avail_out),o=s+(t.avail_out-257),c=z.dmax,d=z.wsize,f=z.whave,m=z.wnext,b=z.window,g=z.hold,v=z.bits,E=z.lencode,T=z.distcode,_=(1<<z.lenbits)-1,A=(1<<z.distbits)-1;e:do{v<15&&(g+=q[r++]<<v,v+=8,g+=q[r++]<<v,v+=8),R=E[g&_];t:for(;;){if(P=R>>>24,g>>>=P,v-=P,P=R>>>16&255,P===0)W[s++]=R&65535;else if(P&16){V=R&65535,P&=15,P&&(v<P&&(g+=q[r++]<<v,v+=8),V+=g&(1<<P)-1,g>>>=P,v-=P),v<15&&(g+=q[r++]<<v,v+=8,g+=q[r++]<<v,v+=8),R=T[g&A];n:for(;;){if(P=R>>>24,g>>>=P,v-=P,P=R>>>16&255,P&16){if(U=R&65535,P&=15,v<P&&(g+=q[r++]<<v,v+=8,v<P&&(g+=q[r++]<<v,v+=8)),U+=g&(1<<P)-1,U>c){t.msg="invalid distance too far back",z.mode=m2;break e}if(g>>>=P,v-=P,P=s-i,U>P){if(P=U-P,P>f&&z.sane){t.msg="invalid distance too far back",z.mode=m2;break e}if(D=0,H=b,m===0){if(D+=d-P,P<V){V-=P;do W[s++]=b[D++];while(--P);D=s-U,H=W}}else if(m<P){if(D+=d+m-P,P-=m,P<V){V-=P;do W[s++]=b[D++];while(--P);if(D=0,m<V){P=m,V-=P;do W[s++]=b[D++];while(--P);D=s-U,H=W}}}else if(D+=m-P,P<V){V-=P;do W[s++]=b[D++];while(--P);D=s-U,H=W}for(;V>2;)W[s++]=H[D++],W[s++]=H[D++],W[s++]=H[D++],V-=3;V&&(W[s++]=H[D++],V>1&&(W[s++]=H[D++]))}else{D=s-U;do W[s++]=W[D++],W[s++]=W[D++],W[s++]=W[D++],V-=3;while(V>2);V&&(W[s++]=W[D++],V>1&&(W[s++]=W[D++]))}}else if((P&64)===0){R=T[(R&65535)+(g&(1<<P)-1)];continue n}else{t.msg="invalid distance code",z.mode=m2;break e}break}}else if((P&64)===0){R=E[(R&65535)+(g&(1<<P)-1)];continue t}else if(P&32){z.mode=NZ;break e}else{t.msg="invalid literal/length code",z.mode=m2;break e}break}}while(r<a&&s<o);V=v>>3,r-=V,v-=V<<3,g&=(1<<v)-1,t.next_in=r,t.next_out=s,t.avail_in=r<a?5+(a-r):5-(r-a),t.avail_out=s<o?257+(o-s):257-(s-o),z.hold=g,z.bits=v};const wf=15,d_=852,h_=592,f_=0,h4=1,p_=2,LZ=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),MZ=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,199,75]),RZ=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),OZ=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),PZ=(e,t,n,r,a,s,i,o)=>{const c=o.bits;let d=0,f=0,m=0,b=0,g=0,v=0,E=0,T=0,_=0,A=0,R,P,V,U,D,H=null,q;const W=new Uint16Array(wf+1),z=new Uint16Array(wf+1);let $=null,ae,J,xe;for(d=0;d<=wf;d++)W[d]=0;for(f=0;f<r;f++)W[t[n+f]]++;for(g=c,b=wf;b>=1&&W[b]===0;b--);if(g>b&&(g=b),b===0)return a[s++]=1<<24|64<<16|0,a[s++]=1<<24|64<<16|0,o.bits=1,0;for(m=1;m<b&&W[m]===0;m++);for(g<m&&(g=m),T=1,d=1;d<=wf;d++)if(T<<=1,T-=W[d],T<0)return-1;if(T>0&&(e===f_||b!==1))return-1;for(z[1]=0,d=1;d<wf;d++)z[d+1]=z[d]+W[d];for(f=0;f<r;f++)t[n+f]!==0&&(i[z[t[n+f]]++]=f);if(e===f_?(H=$=i,q=20):e===h4?(H=LZ,$=MZ,q=257):(H=RZ,$=OZ,q=0),A=0,f=0,d=m,D=s,v=g,E=0,V=-1,_=1<<g,U=_-1,e===h4&&_>d_||e===p_&&_>h_)return 1;for(;;){ae=d-E,i[f]+1<q?(J=0,xe=i[f]):i[f]>=q?(J=$[i[f]-q],xe=H[i[f]-q]):(J=96,xe=0),R=1<<d-E,P=1<<v,m=P;do P-=R,a[D+(A>>E)+P]=ae<<24|J<<16|xe|0;while(P!==0);for(R=1<<d-1;A&R;)R>>=1;if(R!==0?(A&=R-1,A+=R):A=0,f++,--W[d]===0){if(d===b)break;d=t[n+i[f]]}if(d>g&&(A&U)!==V){for(E===0&&(E=g),D+=m,v=d-E,T=1<<v;v+E<b&&(T-=W[v+E],!(T<=0));)v++,T<<=1;if(_+=1<<v,e===h4&&_>d_||e===p_&&_>h_)return 1;V=A&U,a[V]=g<<24|v<<16|D-s|0}}return A!==0&&(a[D+A]=d-E<<24|64<<16|0),o.bits=g,0};var Jm=PZ;const jZ=0,SO=1,EO=2,{Z_FINISH:m_,Z_BLOCK:DZ,Z_TREES:g2,Z_OK:ph,Z_STREAM_END:IZ,Z_NEED_DICT:BZ,Z_STREAM_ERROR:Yo,Z_DATA_ERROR:kO,Z_MEM_ERROR:_O,Z_BUF_ERROR:FZ,Z_DEFLATED:g_}=yO,z5=16180,x_=16181,b_=16182,y_=16183,v_=16184,w_=16185,S_=16186,E_=16187,k_=16188,__=16189,Ix=16190,Tu=16191,f4=16192,T_=16193,p4=16194,C_=16195,N_=16196,A_=16197,L_=16198,x2=16199,b2=16200,M_=16201,R_=16202,O_=16203,P_=16204,j_=16205,m4=16206,D_=16207,I_=16208,oa=16209,TO=16210,CO=16211,zZ=852,HZ=592,UZ=15,qZ=UZ,B_=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function VZ(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Eh=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<z5||t.mode>CO?1:0},NO=e=>{if(Eh(e))return Yo;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=z5,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(zZ),t.distcode=t.distdyn=new Int32Array(HZ),t.sane=1,t.back=-1,ph},AO=e=>{if(Eh(e))return Yo;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,NO(e)},LO=(e,t)=>{let n;if(Eh(e))return Yo;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Yo:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,AO(e))},MO=(e,t)=>{if(!e)return Yo;const n=new VZ;e.state=n,n.strm=e,n.window=null,n.mode=z5;const r=LO(e,t);return r!==ph&&(e.state=null),r},GZ=e=>MO(e,qZ);let F_=!0,g4,x4;const $Z=e=>{if(F_){g4=new Int32Array(512),x4=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Jm(SO,e.lens,0,288,g4,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Jm(EO,e.lens,0,32,x4,0,e.work,{bits:5}),F_=!1}e.lencode=g4,e.lenbits=9,e.distcode=x4,e.distbits=5},RO=(e,t,n,r)=>{let a;const s=e.state;return s.window===null&&(s.window=new Uint8Array(1<<s.wbits)),s.wsize===0&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0),r>=s.wsize?(s.window.set(t.subarray(n-s.wsize,n),0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>r&&(a=r),s.window.set(t.subarray(n-r,n-r+a),s.wnext),r-=a,r?(s.window.set(t.subarray(n-r,n),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0},WZ=(e,t)=>{let n,r,a,s,i,o,c,d,f,m,b,g,v,E,T=0,_,A,R,P,V,U,D,H;const q=new Uint8Array(4);let W,z;const $=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Eh(e)||!e.output||!e.input&&e.avail_in!==0)return Yo;n=e.state,n.mode===Tu&&(n.mode=f4),i=e.next_out,a=e.output,c=e.avail_out,s=e.next_in,r=e.input,o=e.avail_in,d=n.hold,f=n.bits,m=o,b=c,H=ph;e:for(;;)switch(n.mode){case z5:if(n.wrap===0){n.mode=f4;break}for(;f<16;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}if(n.wrap&2&&d===35615){n.wbits===0&&(n.wbits=15),n.check=0,q[0]=d&255,q[1]=d>>>8&255,n.check=hc(n.check,q,2,0),d=0,f=0,n.mode=x_;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((d&255)<<8)+(d>>8))%31){e.msg="incorrect header check",n.mode=oa;break}if((d&15)!==g_){e.msg="unknown compression method",n.mode=oa;break}if(d>>>=4,f-=4,D=(d&15)+8,n.wbits===0&&(n.wbits=D),D>15||D>n.wbits){e.msg="invalid window size",n.mode=oa;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=d&512?__:Tu,d=0,f=0;break;case x_:for(;f<16;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}if(n.flags=d,(n.flags&255)!==g_){e.msg="unknown compression method",n.mode=oa;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=oa;break}n.head&&(n.head.text=d>>8&1),n.flags&512&&n.wrap&4&&(q[0]=d&255,q[1]=d>>>8&255,n.check=hc(n.check,q,2,0)),d=0,f=0,n.mode=b_;case b_:for(;f<32;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}n.head&&(n.head.time=d),n.flags&512&&n.wrap&4&&(q[0]=d&255,q[1]=d>>>8&255,q[2]=d>>>16&255,q[3]=d>>>24&255,n.check=hc(n.check,q,4,0)),d=0,f=0,n.mode=y_;case y_:for(;f<16;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}n.head&&(n.head.xflags=d&255,n.head.os=d>>8),n.flags&512&&n.wrap&4&&(q[0]=d&255,q[1]=d>>>8&255,n.check=hc(n.check,q,2,0)),d=0,f=0,n.mode=v_;case v_:if(n.flags&1024){for(;f<16;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}n.length=d,n.head&&(n.head.extra_len=d),n.flags&512&&n.wrap&4&&(q[0]=d&255,q[1]=d>>>8&255,n.check=hc(n.check,q,2,0)),d=0,f=0}else n.head&&(n.head.extra=null);n.mode=w_;case w_:if(n.flags&1024&&(g=n.length,g>o&&(g=o),g&&(n.head&&(D=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(s,s+g),D)),n.flags&512&&n.wrap&4&&(n.check=
vendor: 5,011 bytes, line 402
402hc(n.check,r,g,s)),o-=g,s+=g,n.length-=g),n.length))break e;n.length=0,n.mode=S_;case S_:if(n.flags&2048){if(o===0)break e;g=0;do D=r[s+g++],n.head&&D&&n.length<65536&&(n.head.name+=String.fromCharCode(D));while(D&&g<o);if(n.flags&512&&n.wrap&4&&(n.check=hc(n.check,r,g,s)),o-=g,s+=g,D)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=E_;case E_:if(n.flags&4096){if(o===0)break e;g=0;do D=r[s+g++],n.head&&D&&n.length<65536&&(n.head.comment+=String.fromCharCode(D));while(D&&g<o);if(n.flags&512&&n.wrap&4&&(n.check=hc(n.check,r,g,s)),o-=g,s+=g,D)break e}else n.head&&(n.head.comment=null);n.mode=k_;case k_:if(n.flags&512){for(;f<16;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}if(n.wrap&4&&d!==(n.check&65535)){e.msg="header crc mismatch",n.mode=oa;break}d=0,f=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Tu;break;case __:for(;f<32;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}e.adler=n.check=B_(d),d=0,f=0,n.mode=Ix;case Ix:if(n.havedict===0)return e.next_out=i,e.avail_out=c,e.next_in=s,e.avail_in=o,n.hold=d,n.bits=f,BZ;e.adler=n.check=1,n.mode=Tu;case Tu:if(t===DZ||t===g2)break e;case f4:if(n.last){d>>>=f&7,f-=f&7,n.mode=m4;break}for(;f<3;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}switch(n.last=d&1,d>>>=1,f-=1,d&3){case 0:n.mode=T_;break;case 1:if($Z(n),n.mode=x2,t===g2){d>>>=2,f-=2;break e}break;case 2:n.mode=N_;break;case 3:e.msg="invalid block type",n.mode=oa}d>>>=2,f-=2;break;case T_:for(d>>>=f&7,f-=f&7;f<32;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}if((d&65535)!==(d>>>16^65535)){e.msg="invalid stored block lengths",n.mode=oa;break}if(n.length=d&65535,d=0,f=0,n.mode=p4,t===g2)break e;case p4:n.mode=C_;case C_:if(g=n.length,g){if(g>o&&(g=o),g>c&&(g=c),g===0)break e;a.set(r.subarray(s,s+g),i),o-=g,s+=g,c-=g,i+=g,n.length-=g;break}n.mode=Tu;break;case N_:for(;f<14;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}if(n.nlen=(d&31)+257,d>>>=5,f-=5,n.ndist=(d&31)+1,d>>>=5,f-=5,n.ncode=(d&15)+4,d>>>=4,f-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=oa;break}n.have=0,n.mode=A_;case A_:for(;n.have<n.ncode;){for(;f<3;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}n.lens[$[n.have++]]=d&7,d>>>=3,f-=3}for(;n.have<19;)n.lens[$[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,W={bits:n.lenbits},H=Jm(jZ,n.lens,0,19,n.lencode,0,n.work,W),n.lenbits=W.bits,H){e.msg="invalid code lengths set",n.mode=oa;break}n.have=0,n.mode=L_;case L_:for(;n.have<n.nlen+n.ndist;){for(;T=n.lencode[d&(1<<n.lenbits)-1],_=T>>>24,A=T>>>16&255,R=T&65535,!(_<=f);){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}if(R<16)d>>>=_,f-=_,n.lens[n.have++]=R;else{if(R===16){for(z=_+2;f<z;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}if(d>>>=_,f-=_,n.have===0){e.msg="invalid bit length repeat",n.mode=oa;break}D=n.lens[n.have-1],g=3+(d&3),d>>>=2,f-=2}else if(R===17){for(z=_+3;f<z;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}d>>>=_,f-=_,D=0,g=3+(d&7),d>>>=3,f-=3}else{for(z=_+7;f<z;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}d>>>=_,f-=_,D=0,g=11+(d&127),d>>>=7,f-=7}if(n.have+g>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=oa;break}for(;g--;)n.lens[n.have++]=D}}if(n.mode===oa)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=oa;break}if(n.lenbits=9,W={bits:n.lenbits},H=Jm(SO,n.lens,0,n.nlen,n.lencode,0,n.work,W),n.lenbits=W.bits,H){e.msg="invalid literal/lengths set",n.mode=oa;break}if(n.distbits=6,n.distcode=n.distdyn,W={bits:n.distbits},H=Jm(EO,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,W),n.distbits=W.bits,H){e.msg="invalid distances set",n.mode=oa;break}if(n.mode=x2,t===g2)break e;case x2:n.mode=b2;case b2:if(o>=6&&c>=258){e.next_out=i,e.avail_out=c,e.next_in=s,e.avail_in=o,n.hold=d,n.bits=f,AZ(e,b),i=e.next_out,a=e.output,c=e.avail_out,s=e.next_in,r=e.input,o=e.avail_in,d=n.hold,f=n.bits,n.mode===Tu&&(n.back=-1);break}for(n.back=0;T=n.lencode[d&(1<<n.lenbits)-1],_=T>>>24,A=T>>>16&255,R=T&65535,!(_<=f);){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}if(A&&(A&240)===0){for(P=_,V=A,U=R;T=n.lencode[U+((d&(1<<P+V)-1)>>P)],_=T>>>24,A=T>>>16&255,R=T&65535,!(P+_<=f);){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}d>>>=P,f-=P,n.back+=P}if(d>>>=_,f-=_,n.back+=_,n.length=R,A===0){n.mode=j_;break}if(A&32){n.back=-1,n.mode=Tu;break}if(A&64){e.msg="invalid literal/length code",n.mode=oa;break}n.extra=A&15,n.mode=M_;case M_:if(n.extra){for(z=n.extra;f<z;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}n.length+=d&(1<<n.extra)-1,d>>>=n.extra,f-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=R_;case R_:for(;T=n.distcode[d&(1<<n.distbits)-1],_=T>>>24,A=T>>>16&255,R=T&65535,!(_<=f);){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}if((A&240)===0){for(P=_,V=A,U=R;T=n.distcode[U+((d&(1<<P+V)-1)>>P)],_=T>>>24,A=T>>>16&255,R=T&65535,!(P+_<=f);){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}d>>>=P,f-=P,n.back+=P}if(d>>>=_,f-=_,n.back+=_,A&64){e.msg="invalid distance code",n.mode=oa;break}n.offset=R,n.extra=A&15,n.mode=O_;case O_:if(n.extra){for(z=n.extra;f<z;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}n.offset+=d&(1<<n.extra)-1,d>>>=n.extra,f-=n.extra,n.back+=n.extra}if(n.offset>
402n.dmax){e.msg="invalid distance too far back",n.mode=oa;break}n.mode=P_;case P_:if(c===0)break e;if(g=b-c,n.offset>g){if(g=n.offset-g,g>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=oa;break}g>n.wnext?(g-=n.wnext,v=n.wsize-g):v=n.wnext-g,g>n.length&&(g=n.length),E=n.window}else E=a,v=i-n.offset,g=n.length;g>c&&(g=c),c-=g,n.length-=g;do a[i++]=E[v++];while(--g);n.length===0&&(n.mode=b2);break;case j_:if(c===0)break e;a[i++]=n.length,c--,n.mode=b2;break;case m4:if(n.wrap){for(;f<32;){if(o===0)break e;o--,d|=r[s++]<<f,f+=8}if(b-=c,e.total_out+=b,n.total+=b,n.wrap&4&&b&&(e.adler=n.check=n.flags?hc(n.check,a,b,i-b):j3(n.check,a,b,i-b)),b=c,n.wrap&4&&(n.flags?d:B_(d))!==n.check){e.msg="incorrect data check",n.mode=oa;break}d=0,f=0}n.mode=D_;case D_:if(n.wrap&&n.flags){for(;f<32;){if(o===0)break e;o--,d+=r[s++]<<f,f+=8}if(n.wrap&4&&d!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=oa;break}d=0,f=0}n.mode=I_;case I_:H=IZ;break e;case oa:H=kO;break e;case TO:return _O;case CO:default:return Yo}return e.next_out=i,e.avail_out=c,e.next_in=s,e.avail_in=o,n.hold=d,n.bits=f,(n.wsize||b!==e.avail_out&&n.mode<oa&&(n.mode<m4||t!==m_))&&RO(e,e.output,e.next_out,b-e.avail_out),m-=e.avail_in,b-=e.avail_out,e.total_in+=m,e.total_out+=b,n.total+=b,n.wrap&4&&b&&(e.adler=n.check=n.flags?hc(n.check,a,b,e.next_out-b):j3(n.check,a,b,e.next_out-b)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Tu?128:0)+(n.mode===x2||n.mode===p4?256:0),(m===0&&b===0||t===m_)&&H===ph&&(H=FZ),H},YZ=e=>{if(Eh(e))return Yo;let t=e.state;return t.window&&(t.window=null),e.state=null,ph},QZ=(e,t)=>{if(Eh(e))return Yo;const n=e.state;return(n.wrap&2)===0?Yo:(n.head=t,t.done=!1,ph)},XZ=(e,t)=>{const n=t.length;let r,a,s;return Eh(e)||(r=e.state,r.wrap!==0&&r.mode!==Ix)?Yo:r.mode===Ix&&(a=1,a=j3(a,t,n,0),a!==r.check)?kO:(s=RO(e,t,n,n),s?(r.mode=TO,_O):(r.havedict=1,ph))};var KZ=AO,JZ=LO,ZZ=NO,eee=GZ,tee=MO,nee=WZ,ree=YZ,aee=QZ,see=XZ,iee="pako inflate (from Nodeca project)",vc={inflateReset:KZ,inflateReset2:JZ,inflateResetKeep:ZZ,inflateInit:eee,inflateInit2:tee,inflate:nee,inflateEnd:ree,inflateGetHeader:aee,inflateSetDictionary:see,inflateInfo:iee};function oee(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var lee=oee;const OO=Object.prototype.toString,{Z_NO_FLUSH:cee,Z_FINISH:z_,Z_OK:Gf,Z_STREAM_END:b4,Z_NEED_DICT:y4,Z_STREAM_ERROR:uee,Z_DATA_ERROR:H_,Z_MEM_ERROR:dee,Z_BUF_ERROR:U_}=yO,hee={chunkSize:1024*64,windowBits:15,to:""};function Q1(e){this.options=vO.assign({},hee,e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new CZ,this.strm.avail_out=0;let n=vc.inflateInit2(this.strm,t.windowBits);if(n!==Gf)throw new Error(D3[n]);if(this.header=new lee,vc.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=I3.string2buf(t.dictionary):OO.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=vc.inflateSetDictionary(this.strm,t.dictionary),n!==Gf)))throw new Error(D3[n])}Q1.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let s,i,o;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?z_:cee,OO.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),s=vc.inflate(n,i),s===y4&&a&&(s=vc.inflateSetDictionary(n,a),s===Gf?s=vc.inflate(n,i):s===H_&&(s=y4));n.avail_in>0&&s===b4&&n.state.wrap&2&&n.state.flags!==0&&n.input[n.next_in]!==0;)vc.inflateReset(n),s=vc.inflate(n,i);switch(s){case uee:case H_:case y4:case dee:return this.onEnd(s),this.ended=!0,!1}if(o=n.avail_out,n.next_out&&(n.avail_out===0||s===b4||i>0))if(this.options.to==="string"){let c=I3.utf8border(n.output,n.next_out),d=n.next_out-c,f=I3.buf2string(n.output,c);n.next_out=d,n.avail_out=r-d,d&&n.output.set(n.output.subarray(c,c+d),0),this.onData(f)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out)),n.avail_out=0,n.next_out=0;if(!((s===Gf||s===U_)&&o===0)){if(s===b4)return s=vc.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(n.avail_in===0){if(i===z_)return s=vc.inflateEnd(this.strm),this.onEnd(s===Gf?U_:s),this.ended=!0,!1;break}}}return!0};Q1.prototype.onData=function(e){this.chunks.push(e)};Q1.prototype.onEnd=function(e){e===Gf&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=vO.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function fee(e,t){const n=new Q1(t);
vendor: 8,634 bytes, line 402
402if(n.push(e,!0),n.err)throw n.msg||D3[n.err];return n.result}var pee=Q1,mee=fee,gee={Inflate:pee,inflate:mee};const{Inflate:xee,inflate:bee}=gee;var q_=xee,yee=bee;const PO=[];for(let e=0;e<256;e++){let t=e;for(let n=0;n<8;n++)t&1?t=3988292384^t>>>1:t=t>>>1;PO[e]=t}const V_=4294967295;function vee(e,t,n){let r=e;for(let a=0;a<n;a++)r=PO[(r^t[a])&255]^r>>>8;return r}function wee(e,t){return(vee(V_,e,t)^V_)>>>0}function G_(e,t,n){const r=e.readUint32(),a=wee(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(a!==r)throw new Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${a}`)}function jO(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function DO(e,t,n,r){let a=0;for(;a<r;a++)t[a]=e[a];for(;a<n;a++)t[a]=e[a]+t[a-r]&255}function IO(e,t,n,r){let a=0;if(n.length===0)for(;a<r;a++)t[a]=e[a];else for(;a<r;a++)t[a]=e[a]+n[a]&255}function BO(e,t,n,r,a){let s=0;if(n.length===0){for(;s<a;s++)t[s]=e[s];for(;s<r;s++)t[s]=e[s]+(t[s-a]>>1)&255}else{for(;s<a;s++)t[s]=e[s]+(n[s]>>1)&255;for(;s<r;s++)t[s]=e[s]+(t[s-a]+n[s]>>1)&255}}function FO(e,t,n,r,a){let s=0;if(n.length===0){for(;s<a;s++)t[s]=e[s];for(;s<r;s++)t[s]=e[s]+t[s-a]&255}else{for(;s<a;s++)t[s]=e[s]+n[s]&255;for(;s<r;s++)t[s]=e[s]+See(t[s-a],n[s],n[s-a])&255}}function See(e,t,n){const r=e+t-n,a=Math.abs(r-e),s=Math.abs(r-t),i=Math.abs(r-n);return a<=s&&a<=i?e:s<=i?t:n}function Eee(e,t,n,r,a,s){switch(e){case 0:jO(t,n,a);break;case 1:DO(t,n,a,s);break;case 2:IO(t,n,r,a);break;case 3:BO(t,n,r,a,s);break;case 4:FO(t,n,r,a,s);break;default:throw new Error(`Unsupported filter: ${e}`)}}const kee=new Uint16Array([255]),_ee=new Uint8Array(kee.buffer),Tee=_ee[0]===255;function Cee(e){const{data:t,width:n,height:r,channels:a,depth:s}=e,i=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],o=Math.ceil(s/8)*a,c=new Uint8Array(r*n*o);let d=0;for(let f=0;f<7;f++){const m=i[f],b=Math.ceil((n-m.x)/m.xStep),g=Math.ceil((r-m.y)/m.yStep);if(b<=0||g<=0)continue;const v=b*o,E=new Uint8Array(v);for(let T=0;T<g;T++){const _=t[d++],A=t.subarray(d,d+v);d+=v;const R=new Uint8Array(v);Eee(_,A,R,E,v,o),E.set(R);for(let P=0;P<b;P++){const V=m.x+P*m.xStep,U=m.y+T*m.yStep;if(!(V>=n||U>=r))for(let D=0;D<o;D++)c[(U*n+V)*o+D]=R[P*o+D]}}}if(s===16){const f=new Uint16Array(c.buffer);if(Tee)for(let m=0;m<f.length;m++)f[m]=Nee(f[m]);return f}else return c}function Nee(e){return(e&255)<<8|e>>8&255}const Aee=new Uint16Array([255]),Lee=new Uint8Array(Aee.buffer),Mee=Lee[0]===255,Ree=new Uint8Array(0);function $_(e){const{data:t,width:n,height:r,channels:a,depth:s}=e,i=Math.ceil(s/8)*a,o=Math.ceil(s/8*a*n),c=new Uint8Array(r*o);let d=Ree,f=0,m,b;for(let g=0;g<r;g++){switch(m=t.subarray(f+1,f+1+o),b=c.subarray(g*o,(g+1)*o),t[f]){case 0:jO(m,b,o);break;case 1:DO(m,b,o,i);break;case 2:IO(m,b,d,o);break;case 3:BO(m,b,d,o,i);break;case 4:FO(m,b,d,o,i);break;default:throw new Error(`Unsupported filter: ${t[f]}`)}d=b,f+=o+1}if(s===16){const g=new Uint16Array(c.buffer);if(Mee)for(let v=0;v<g.length;v++)g[v]=Oee(g[v]);return g}else return c}function Oee(e){return(e&255)<<8|e>>8&255}const ox=Uint8Array.of(137,80,78,71,13,10,26,10);function W_(e){if(!Pee(e.readBytes(ox.length)))throw new Error("wrong PNG signature")}function Pee(e){if(e.length<ox.length)return!1;for(let t=0;t<ox.length;t++)if(e[t]!==ox[t])return!1;return!0}const jee="tEXt",Dee=0,zO=new TextDecoder("latin1");function Iee(e){if(Fee(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const Bee=/^[\u0000-\u00FF]*$/;function Fee(e){if(!Bee.test(e))throw new Error("invalid latin1 text")}function zee(e,t,n){const r=HO(t);e[r]=Hee(t,n-r.length-1)}function HO(e){for(e.mark();e.readByte()!==Dee;);const t=e.offset;e.reset();const n=zO.decode(e.readBytes(t-e.offset-1));return e.skip(1),Iee(n),n}function Hee(e,t){return zO.decode(e.readBytes(t))}const ho={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},v4={UNKNOWN:-1,DEFLATE:0},Y_={UNKNOWN:-1,ADAPTIVE:0},w4={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},y2={NONE:0,BACKGROUND:1,PREVIOUS:2},S4={SOURCE:0,OVER:1};class Uee extends $w{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(t,n={}){super(t);const{checkCrc:r=!1}=n;this._checkCrc=r,this._inflator=new q_,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=v4.UNKNOWN,this._filterMethod=Y_.UNKNOWN,this._interlaceMethod=w4.UNKNOWN,this._colorType=ho.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(W_(this);!this._end;){const t=this.readUint32(),n=this.readChars(4);this.decodeChunk(t,n)}return this.decodeImage(),this._png}decodeApng(){for(W_(this);!this._end;){const t=this.readUint32(),n=this.readChars(4);this.decodeApngChunk(t,n)}return this.decodeApngImage(),this._apng}decodeChunk(t,n){const r=this.offset;switch(n){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case jee:zee(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-r!==t)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?G_(this,t+4,n):this.skip(4)}decodeApngChunk(t,n){const r=this.offset;switch(n!=="fdAT"&&n!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),n){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,n),this.offset=r+t;break}if(this.offset-r!==t)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?G_(this,t+4,n):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=qee(this.readUint8());const n=this.readUint8();this._colorType=n;let r;switch(n){case ho.GREYSCALE:r=1;break;case ho.TRUECOLOUR:r=3;break;case ho.INDEXED_COLOUR:r=1;break;case ho.GREYSCALE_ALPHA:r=2;break;case ho.TRUECOLOUR_ALPHA:r=4;break;case ho.UNKNOWN:default:throw new Error(`Unknown color type: ${n}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==v4.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const n=t/3;this._hasPalette=!0;const r=[];this._palette=r;for(let a=0;a<n;a++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const n=t,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let n=t,r=this.offset+this.byteOffset;if(r+=4,n-=4,this._inflator.push(new Uint8Array(this.buffer,r,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case ho.GREYSCALE:case ho.TRUECOLOUR:{if(t%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let n=0;n<t/2;n++)this._transparency[n]=this.readUint16();break}case ho.INDEXED_COLOUR:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alph
402a values than there are palette colors (${t} vs ${this._palette.length})`);let n=0;for(;n<t;n++){const r=this.readByte();this._palette[n].push(r)}for(;n<this._palette.length;n++)this._palette[n].push(255);break}case ho.UNKNOWN:case ho.GREYSCALE_ALPHA:case ho.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const n=HO(this),r=this.readUint8();if(r!==v4.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);const a=this.readBytes(t-n.length-2);this._png.iccEmbeddedProfile={name:n,profile:yee(a)}}decodepHYs(){const t=this.readUint32(),n=this.readUint32(),r=this.readByte();this._png.resolution={x:t,y:n,unit:r}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){const n={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(t);if(r){if(r.data=$_({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),t===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)n.data=r.data;else{const a=this._apng.frames.at(t-1);this.disposeFrame(r,a,n),this.addFrameDataToCanvas(n,r)}this._apng.frames.push(n)}}return this._apng}disposeFrame(t,n,r){switch(t.disposeOp){case y2.NONE:break;case y2.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let s=0;s<this._png.width;s++){const i=(a*t.width+s)*this._png.channels;for(let o=0;o<this._png.channels;o++)r.data[i+o]=0}break;case y2.PREVIOUS:r.data.set(n.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,n){const r=1<<this._png.depth,a=(s,i)=>{const o=((s+n.yOffset)*this._png.width+n.xOffset+i)*this._png.channels,c=(s*n.width+i)*this._png.channels;return{index:o,frameIndex:c}};switch(n.blendOp){case S4.SOURCE:for(let s=0;s<n.height;s++)for(let i=0;i<n.width;i++){const{index:o,frameIndex:c}=a(s,i);for(let d=0;d<this._png.channels;d++)t.data[o+d]=n.data[c+d]}break;case S4.OVER:for(let s=0;s<n.height;s++)for(let i=0;i<n.width;i++){const{index:o,frameIndex:c}=a(s,i);for(let d=0;d<this._png.channels;d++){const f=n.data[c+this._png.channels-1]/r,m=d%(this._png.channels-1)===0?1:n.data[c+d],b=Math.floor(f*m+(1-f)*t.data[o+d]);t.data[o+d]+=b}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==Y_.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===w4.NO_INTERLACE)this._png.data=$_({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===w4.ADAM7)this._png.data=Cee({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const t=this._inflator.result,n=this._frames.at(-1);n?n.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:y2.NONE,blendOp:S4.SOURCE,data:t}),this._inflator=new q_,this._writingDataChunks=!1}}function qee(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var Q_;
402(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(Q_||(Q_={}));function Vee(e,t){return new Uee(e,t).decode()}var vn=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function E4(){vn.console&&typeof vn.console.log=="function"&&vn.console.log.apply(vn.console,arguments)}var Fr={log:E4,warn:function(e){vn.console&&(typeof vn.console.warn=="function"?vn.console.warn.apply(vn.console,arguments):E4.call(null,arguments))},error:function(e){vn.console&&(typeof vn.console.error=="function"?vn.console.error.apply(vn.console,arguments):E4(e))}};function k4(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Q0(r.response,t,n)},r.onerror=function(){Fr.error("could not download file")},r.send()}function X_(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function v2(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,
vendor: 3,353 bytes, lines 402-407
402!1,!1,0,null),e.dispatchEvent(t)}}var Q0=vn.saveAs||((typeof window>"u"?"undefined":_r(window))!=="object"||window!==vn?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=vn.URL||vn.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener",typeof e=="string"?(a.href=e,a.origin!==location.origin?X_(a.href)?k4(e,t,n):v2(a,a.target="_blank"):v2(a)):(a.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(a.href)},4e4),setTimeout(function(){v2(a)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(X_(e))k4(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){v2(r)})}else navigator.msSaveOrOpenBlob((function(a,s){return s===void 0?s={autoBom:!1}:_r(s)!=="object"&&(Fr.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a})(e,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return k4(e,t,n);var a=e.type==="application/octet-stream",s=/constructor/i.test(vn.HTMLElement)||vn.safari,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||a&&s)&&(typeof FileReader>"u"?"undefined":_r(FileReader))==="object"){var o=new FileReader;o.onloadend=function(){var f=o.result;f=i?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=f:location=f,r=null},o.readAsDataURL(e)}else{var c=vn.URL||vn.webkitURL,d=c.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout(function(){c.revokeObjectURL(d)},4e4)}});/** 403 * A class to parse color values 404 * @author Stoyan Stefanov <[email protected]> 405 * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} 406 * @license Use it if you like it 407 */function UO(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
4070",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],r=0;r<n.length;r++){var a=n[r].re,s=n[r].process,i=a.exec(e);i&&(t=s(i),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var o=this.r.toString(16),c=this.g.toString(16),d=this.b.toString(16);return o.length==1&&(o="0"+o),c.length==1&&(c="0"+c),d.length==1&&(d="0"+d),"#"+o+c+d}}var lx=vn.atob.bind(vn),K_=vn.btoa.bind(vn);/** 408 * @license 409 * Joseph Myers does not specify a particular license for his work. 410 * 411 * Author: Joseph Myers 412 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js 413 * 414 * Modified by: Owen Leong 415 */function _4(e,t){var n=e[0],r=e[1],a=e[2],s=e[3];n=qs(n,r,a,s,t[0],7,-680876936),s=qs(s,n,r,a,t[1],12,-389564586),a=qs(a,s,n,r,t[2],17,606105819),r=qs(r,a,s,n,t[3],22,-1044525330),n=qs(n,r,a,s,t[4],7,-176418897),s=qs(s,n,r,a,t[5],12,1200080426),a=qs(a,s,n,r,t[6],17,-1473231341),r=qs(r,a,s,n,t[7],22,-45705983),n=qs(n,r,a,s,t[8],7,1770035416),s=qs(s,n,r,a,t[9],12,-1958414417),a=qs(a,s,n,r,t[10],17,-42063),r=qs(r,a,s,n,t[11],22,-1990404162),n=qs(n,r,a,s,t[12],7,1804603682),s=qs(s,n,r,a,t[13],12,-40341101),a=qs(a,s,n,r,t[14],17,-1502002290),n=Vs(n,r=qs(r,a,s,n,t[15],22,1236535329),a,s,t[1],5,-165796510),s=Vs(s,n,r,a,t[6],9,-1069501632),a=Vs(a,s,n,r,t[11],14,643717713),r=Vs(r,a,s,n,t[0],20,-373897302),n=Vs(n,r,a,s,t[5],5,-701558691),s=Vs(s,n,r,a,t[10],9,38016083),a=Vs(a,s,n,r,t[15],14,-660478335),r=Vs(r,a,s,n,t[4],20,-405537848),n=Vs(n,r,a,s,t[9],5,568446438),s=Vs(s,n,r,a,t[14],9,-1019803690),a=Vs(a,s,n,r,t[3],14,-187363961),r=Vs(r,a,s,n,t[8],20,1163531501),n=Vs(n,r,a,s,t[13],5,-1444681467),s=Vs(s,n,r,a,t[2],9,-51403784),a=Vs(a,s,n,r,t[7],14,1735328473),n=Gs(n,r=Vs(r,a,s,n,t[12],20,-1926607734),a,s,t[5],4,-378558),s=Gs(s,n,r,a,t[8],11,-2022574463),a=Gs(a,s,n,r,t[11],16,1839030562),r=Gs(r,a,s,n,t[14],23,-35309556),n=Gs(n,r,a,s,t[1],4,-1530992060),s=Gs(s,n,r,a,t[4],11,1272893353),a=Gs(a,s,n,r,t[7],16,-155497632),r=Gs(r,a,s,n,t[10],23,-1094730640),n=Gs(n,r,a,s,t[13],4,681279174),s=Gs(s,n,r,a,t[0],11,-358537222),a=Gs(a,s,n,r,t[3],16,-722521979),r=Gs(r,a,s,n,t[6],23,76029189),n=Gs(n,r,a,s,t[9],4,-640364487),s=Gs(s,n,r,a,t[12],11,-421815835),a=Gs(a,s,n,r,t[15],16,530742520),n=$s(n,r=Gs(r,a,s,n,t[2],23,-995338651),a,s,t[0],6,-198630844),s=$s(s,n,r,a,t[7],10,1126891415),a=$s(a,s,n,r,t[14],15,-1416354905),r=$s(r,a,s,n,t[5],21,-57434055),n=$s(n,r,a,s,t[12],6,1700485571),s=$s(s,n,r,a,t[3],10,-1894986606),a=$s(a,s,n,r,t[10],15,-1051523),r=$s(r,a,s,n,t[1],21,-2054922799),n=$s(n,r,a,s,t[8],6,1873313359),s=$s(s,n,r,a,t[15],10,-30611744),a=$s(a,s,n,r,t[6],15,-1560198380),r=$s(r,a,s,n,t[13],21,1309151649),n=$s(n,r,a,s,t[4],6,-145523070),s=$s(s,n,r,a,t[11],10,-1120210379),a=$s(a,s,n,r,t[2],15,718787259),r=$s(r,a,s,n,t[9],21,-343485551),e[0]=Gd(n,e[0]),e[1]=Gd(r,e[1]),e[2]=Gd(a,e[2]),e[3]=Gd(s,e[3])}function H5(e,t,n,r,a,s){return t=Gd(Gd(t,e),Gd(r,s)),Gd(t<<a|t>>>32-a,n)}function qs(e,t,n,r,a,s,i){return H5(t&n|~t&r,e,t,a,s,i)}function Vs(e,t,n,r,a,s,i){return H5(t&r|n&~r,e,t,a,s,i)}function Gs(e,t,n,r,a,s,i){return H5(t^n^r,e,t,a,s,i)}function $s(e,t,n,r,a,s,i){return H5(n^(t|~r),e,t,a,s,i)}function qO(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)_4(r,Gee(e.substring(t-64,t)));e=e.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(_4(r,a),t=0;t<16;t++)a[t]=0;return a[14]=8*n,_4(r,a),r}function Gee(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var J_="0123456789abcdef".split("");function $ee(e){for(var t="",n=0;n<4;n++)t+=J_[e>>8*n+4&15]+J_[e>>8*n&15];return t}function Wee(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function B3(e){return qO(e).map(Wee).join("")}var Yee=(function(e){for(var t=0;t<e.length;t++)e[t]=$ee(e[t]);return e.join("")})(qO("hello"))!="5d41402abc4b2a76b9719d911017c592";function Gd(e,t){if(Yee){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}/** 416 * @license 417 * FPDF is released under a permissive license: there is no usage restriction. 418 * You may embed it freely in your application (commercial or not), with or 419 * without modifications. 420 * 421 * Reference: http://www.fpdf.org/en/script/script37.php 422 */function F3(e,t){var n,r,a,s;if(e!==n){for(var i=(a=e,s=1+(256/e.length|0),new Array(s+1).join(a)),o=[],c=0;c<256;c++)o[c]=c;var d=0;for(c=0;c<256;c++){var f=o[c];d=(d+f+i.charCodeAt(c))%256,o[c]=o[d],o[d]=f}
vendor: 5,711 bytes, lines 422-432
422n=e,r=o}else o=r;var m=t.length,b=0,g=0,v="";for(c=0;c<m;c++)g=(g+(f=o[b=(b+1)%256]))%256,o[b]=o[g],o[g]=f,i=o[(o[b]+o[g])%256],v+=String.fromCharCode(t.charCodeAt(c)^i);return v}/** 423 * @license 424 * Licensed under the MIT License. 425 * http://opensource.org/licenses/mit-license 426 * Author: Owen Leong (@owenl131) 427 * Date: 15 Oct 2020 428 * References: 429 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt 430 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js 431 * http://www.fpdf.org/en/script/script37.php 432 */var Z_={print:4,modify:8,copy:16,"annot-forms":32};function Af(e,t,n,r){this.v=1,this.r=2;var a=192;e.forEach(function(o){if(Z_.perm!==void 0)throw new Error("Invalid permission: "+o);a+=Z_[o]}),this.padding="(¿N^NuÂAd\0NVÿú�\b..\0¶Ãh>Â/\f©þdSiz";var s=(t+this.padding).substr(0,32),i=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,i),this.P=-(1+(255^a)),this.encryptionKey=B3(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=F3(this.encryptionKey,this.padding)}function Lf(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var a=e.charCodeAt(r);t+=a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?"#"+("0"+a.toString(16)).slice(-2):e[r]}return t}function eT(e){if(_r(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,r,a){if(a=a||!1,typeof n!="string"||typeof r!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var s=Math.random().toString(35);return t[n][s]=[r,!!a],s},this.unsubscribe=function(n){for(var r in t)if(t[r][n])return delete t[r][n],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),a=[];for(var s in t[n]){var i=t[n][s];try{i[0].apply(e,r)}catch(o){vn.console&&Fr.error("jsPDF PubSub Error",o.message,o)}i[1]&&a.push(s)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Bx(e){if(!(this instanceof Bx))return new Bx(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function VO(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function J0(e,t,n,r,a){if(!(this instanceof J0))return new J0(e,t,n,r,a);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,VO.call(this,r,a)}function zf(e,t,n,r,a){if(!(this instanceof zf))return new zf(e,t,n,r,a);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,VO.call(this,r,a)}function en(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],a=arguments[2],s=arguments[3],i=[],o=1,c=16,d="S",f=null;_r(e=e||{})==="object"&&(n=e.orientation,r=e.unit||r,a=e.format||a,s=e.compress||e.compressPdf||s,(f=e.encryption||null)!==null&&(f.userPassword=f.userPassword||"",f.ownerPassword=f.ownerPassword||"",f.userPermissions=f.userPermissions||[]),o=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(c=e.floatPrecision),d=e.defaultPathOperation||"S"),i=e.filters||(s===!0?["FlateEncode"]:i),r=r||"mm",n=(""+(n||"P")).toLowerCase();var m=e.putOnlyUsedFonts||!1,b={},g={internal:{},__private__:{}};g.__private__.PubSub=eT;var v="1.3",E=g.__private__.getPdfVersion=function(){return v};g.__private__.setPdfVersion=function(N){v=N};var T={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};g.__private__.getPageFormats=function(){return T};var _=g.__private__.getPageFormat=function(N){return T[N]};a=a||"a4";var A="compat",R="advanced",P=A;function V(){this.saveGraphicsState(),fe(new Nt(Et,0,0,-Et,0,Qc()*Et).toString()+" cm"),this.setFontSize(this.getFontSize()/Et),d="n",P=R}function U(){this.restoreGraphicsState(),d="S",P=A}var D=g.__private__.combineFontStyleAndFontWeight=function(N,Y){if(N=="bold"&&Y=="normal"||N=="bold"&&Y==400||N=="normal"&&Y=="italic"||N=="bold"&&Y=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Y&&(N=Y==400||Y==="normal"?N==="italic"?"italic":"normal":Y!=700&&Y!=="bold"||N!=="normal"?(Y==700?"bold":Y)+""+N:"bold"),N};g.advancedAPI=function(N){var Y=P===A;return Y&&V.call(this),typeof N!="function"||(N(this),Y&&U.call(this)),this},g.compatAPI=function(N){var Y=P===R;return Y&&U.call(this),typeof N!="function"||(N(this),Y&&V.call(this)),this},g.isAdvancedAPI=function(){return P===R};var H,q=function(N){if(P!==R)throw new Error(N+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},W=g.roundToPrecision=g.__private__.roundToPrecision=function(N,Y){var ge=t||Y;if(isNaN(N)||isNaN(ge))throw new Error("Invalid argument passed to
432jsPDF.roundToPrecision");return N.toFixed(ge).replace(/0+$/,"")};H=g.hpf=g.__private__.hpf=typeof c=="number"?function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return W(N,c)}:c==="smart"?function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return W(N,N>-1&&N<1?16:5)}:function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return W(N,16)};var z=g.f2=g.__private__.f2=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.f2");return W(N,2)},$=g.__private__.f3=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.f3");return W(N,3)},ae=g.scale=g.__private__.scale=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.scale");return P===A?N*Et:P===R?N:void 0},J=function(N){return ae((function(Y){return P===A?Qc()-Y:P===R?Y:void 0})(N))};g.__private__.setPrecision=g.setPrecision=function(N){typeof parseInt(N,10)=="number"&&(t=parseInt(N,10))};var xe,ee="00000000000000000000000000000000",ce=g.__private__.getFileId=function(){return ee},se=g.__private__.setFileId=function(N){return ee=N!==void 0&&/^[a-fA-F0-9]{32}$/.test(N)?N.toUpperCase():ee.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),f!==null&&(Oa=new Af(f.userPermissions,f.userPassword,f.ownerPassword,ee)),ee};g.setFileId=function(N){return se(N),this},g.getFileId=function(){return ce()};var be=g.__private__.convertDateToPDFDate=function(N){var Y=N.getTimezoneOffset(),ge=Y<0?"+":"-",Ne=Math.floor(Math.abs(Y/60)),Pe=Math.abs(Y%60),Ke=[ge,K(Ne),"'",K(Pe),"'"].join("");return["D:",N.getFullYear(),K(N.getMonth()+1),K(N.getDate()),K(N.getHours()),K(N.getMinutes()),K(N.getSeconds()),Ke].join("")},Z=g.__private__.convertPDFDateToDate=function(N){var Y=parseInt(N.substr(2,4),10),ge=parseInt(N.substr(6,2),10)-1,Ne=parseInt(N.substr(8,2),10),Pe=parseInt(N.substr(10,2),10),Ke=parseInt(N.substr(12,2),10),ot=parseInt(N.substr(14,2),10);return new Date(Y,ge,Ne,Pe,Ke,ot,0)},ne=g.__private__.setCreationDate=function(N){var Y;if(N===void 0&&(N=new Date),N instanceof Date)Y=be(N);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(N))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Y=N}return xe=Y},B=g.__private__.getCreationDate=function(N){var Y=xe;return N==="jsDate"&&(Y=Z(xe)),Y};g.setCreationDate=function(N){return ne(N),this},g.getCreationDate=function(N){return B(N)};var O,K=g.__private__.padd2=function(N){return("0"+parseInt(N)).slice(-2)},he=g.__private__.padd2Hex=function(N){return("00"+(N=N.toString())).substr(N.length)},we=0,Ee=[],ue=[],Ae=0,Ie=[],We=[],st=!1,mt=ue;g.__private__.setCustomOutputDestination=function(N){st=!0,mt=N};var _t=function(N){st||(mt=N)};g.__private__.resetCustomOutputDestination=function(){st=!1,mt=ue};var fe=g.__private__.out=function(N){return N=N.toString(),Ae+=N.length+1,mt.push(N),mt},yt=g.__private__.write=function(N){return fe(arguments.length===1?N.toString():Array.prototype.join.call(arguments," "))},rn=g.__private__.getArrayBuffer=function(N){for(var Y=N.length,ge=new ArrayBuffer(Y),Ne=new Uint8Array(ge);Y--;)Ne[Y]=N.charCodeAt(Y);return ge},Ht=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];g.__private__.getStandardFonts=function(){return Ht};var tt=e.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(N){return tt=P===R?N/Et:N,this};var Kt,Lt=g.__private__.getFontSize=g.getFontSize=function(){return P===A?tt:tt*Et},Rt=e.R2L||!1;g.__private__.setR2L=g.setR2L=function(N){return Rt=N,this},g.__private__.getR2L=g.getR2L=function(){return Rt};var Bt,mn=g.__private__.setZoomMode=function(N){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(N))Kt=N;else if(isNaN(N)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(N)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+N+'" is not recognized.');Kt=N}else Kt=parseInt(N,10)};g.__private__.getZoomMode=function(){return Kt};var An,Be=g.__private__.setPageMode=function(N){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(N)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+N+'" is not recognized.');Bt=N};g.__private__.getPageMode=function(){return Bt};var nt=g.__private__.setLayoutMode=function(N){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(N)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+N+'" is not recognized.');An=N};g.__private__.getLayoutMode=function(){return An},g.__private__.setDisplayMode=g.setDisplayMode=function(N,Y,ge){return mn(N),nt(Y),Be(ge),this};var bt={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(N){if(Object.keys(bt).indexOf(N)===-1)throw new Error("Invalid argument passed to
432jsPDF.getDocumentProperty");return bt[N]},g.__private__.getDocumentProperties=function(){return bt},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(N){for(var Y in bt)bt.hasOwnProperty(Y)&&N[Y]&&(bt[Y]=N[Y]);return this},g.__private__.setDocumentProperty=function(N,Y){if(Object.keys(bt).indexOf(N)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return bt[N]=Y};var ut,Et,Ct,In,hn,Yt={},tn={},an=[],Ut={},Ln={},Jt={},pn={},ur=null,wn=0,Qt=[],Tt=new eT(g),ar=e.hotfixes||[],Qn={},Ur={},Za=[],Nt=function N(Y,ge,Ne,Pe,Ke,ot){if(!(this instanceof N))return new N(Y,ge,Ne,Pe,Ke,ot);isNaN(Y)&&(Y=1),isNaN(ge)&&(ge=0),isNaN(Ne)&&(Ne=0),isNaN(Pe)&&(Pe=1),isNaN(Ke)&&(Ke=0),isNaN(ot)&&(ot=0),this._matrix=[Y,ge,Ne,Pe,Ke,ot]};Object.defineProperty(Nt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(N){this._matrix[0]=N}}),Object.defineProperty(Nt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(N){this._matrix[1]=N}}),Object.defineProperty(Nt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(N){this._matrix[2]=N}}),Object.defineProperty(Nt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(N){this._matrix[3]=N}}),Object.defineProperty(Nt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(N){this._matrix[4]=N}}),Object.defineProperty(Nt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(N){this._matrix[5]=N}}),Object.defineProperty(Nt.prototype,"a",{get:function(){return this._matrix[0]},set:function(N){this._matrix[0]=N}}),Object.defineProperty(Nt.prototype,"b",{get:function(){return this._matrix[1]},set:function(N){this._matrix[1]=N}}),Object.defineProperty(Nt.prototype,"c",{get:function(){return this._matrix[2]},set:function(N){this._matrix[2]=N}}),Object.defineProperty(Nt.prototype,"d",{get:function(){return this._matrix[3]},set:function(N){this._matrix[3]=N}}),Object.defineProperty(Nt.prototype,"e",{get:function(){return this._matrix[4]},set:function(N){this._matrix[4]=N}}),Object.defineProperty(Nt.prototype,"f",{get:function(){return this._matrix[5]},set:function(N){this._matrix[5]=N}}),Object.defineProperty(Nt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Nt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Nt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Nt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Nt.prototype.join=function(N){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(H).join(N)},Nt.prototype.multiply=function(N){var Y=N.sx*this.sx+N.shy*this.shx,ge=N.sx*this.shy+N.shy*this.sy,Ne=N.shx*this.sx+N.sy*this.shx,Pe=N.shx*this.shy+N.sy*this.sy,Ke=N.tx*this.sx+N.ty*this.shx+this.tx,ot=N.tx*this.shy+N.ty*this.sy+this.ty;return new Nt(Y,ge,Ne,Pe,Ke,ot)},Nt.prototype.decompose=function(){var N=this.sx,Y=this.shy,ge=this.shx,Ne=this.sy,Pe=this.tx,Ke=this.ty,ot=Math.sqrt(N*N+Y*Y),Dt=(N/=ot)*ge+(Y/=ot)*Ne;ge-=N*Dt,Ne-=Y*Dt;var Ft=Math.sqrt(ge*ge+Ne*Ne);return Dt/=Ft,N*(Ne/=Ft)<Y*(ge/=Ft)&&(N=-N,Y=-Y,Dt=-Dt,ot=-ot),{scale:new Nt(ot,0,0,Ft,0,0),translate:new Nt(1,0,0,1,Pe,Ke),rotate:new Nt(N,Y,-Y,N,0,0),skew:new Nt(1,0,Dt,1,0,0)}},Nt.prototype.toString=function(N){return this.join(" ")},Nt.prototype.inversed=function(){var N=this.sx,Y=this.shy,ge=this.shx,Ne=this.sy,Pe=this.tx,Ke=this.ty,ot=1/(N*Ne-Y*ge),Dt=Ne*ot,Ft=-Y*ot,bn=-ge*ot,Sn=N*ot;return new Nt(Dt,Ft,bn,Sn,-Dt*Pe-bn*Ke,-Ft*Pe-Sn*Ke)},Nt.prototype.applyToPoint=function(N){var Y=N.x*this.sx+N.y*this.shx+this.tx,ge=N.x*this.shy+N.y*this.sy+this.ty;return new Wc(Y,ge)},Nt.prototype.applyToRectangle=function(N){var Y=this.applyToPoint(N),ge=this.applyToPoint(new Wc(N.x+N.w,N.y+N.h));return new Yc(Y.x,Y.y,ge.x-Y.x,ge.y-Y.y)},Nt.prototype.clone=function(){var N=this.sx,Y=this.shy,ge=this.shx,Ne=this.sy,Pe=this.tx,Ke=this.ty;return new Nt(N,Y,ge,Ne,Pe,Ke)},g.Matrix=Nt;var ea=g.matrixMult=function(N,Y){return Y.multiply(N)},Ms=new Nt(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=Ms;var Rr=function(N,Y){if(!Ln[N]){var ge=(Y instanceof J0?"Sh":"P")+(Object.keys(Ut).length+1).toString(10);Y.id=ge,Ln[N]=ge,Ut[ge]=Y,Tt.publish("addPattern",Y)}};g.ShadingPattern=J0,g.TilingPattern=zf,g.addShadingPattern=function(N,Y){return q("addShadingPattern()"),Rr(N,Y),this},g.beginTilingPattern=function(N){q("beginTilingPattern()"),sl(N.boundingBox[0],N.boundingBox[1],N.boundingBox[2]-N.boundingBox[0],N.boundingBox[3]-N.boundingBox[1],N.matrix)},g.endTilingPattern=function(N,Y){q("endTilingPattern()"),Y.stream=We[O].join(`
433`),Rr(N,Y),Tt.publish("endTilingPattern",Y),Za.pop().restore()};var Or,yr=g.__private__.newObject=function(){var N=pr();return Ra(N,!0),N},pr=g.__private__.newObjectDeferred=function(){return we++,Ee[we]=function(){return Ae},we},Ra=function(N,Y){return Y=typeof Y=="boolean"&&Y,Ee[N]=Ae,Y&&fe(N+" 0 obj"),N},Il=g.__private__.newAdditionalObject=function(){var N={objId:pr(),content:""};return Ie.push(N),N},Rs=pr(),vr=pr(),$r=g.__private__.decodeColorString=function(N){var Y=N.split(" ");if(Y.length!==2||Y[1]!=="g"&&Y[1]!=="G")Y.length!==5||Y[4]!=="k"&&Y[4]!=="K"||(Y=[(1-Y[0])*(1-Y[3]),(1-Y[1])*(1-Y[3]),(1-Y[2])*(1-Y[3]),"r"]);else{var ge=parseFloat(Y[0]);Y=[ge,ge,ge,"r"]}for(var Ne="#",Pe=0;Pe<3;Pe++)Ne+=("0"+Math.floor(255*parseFloat(Y[Pe])).toString(16)).slice(-2);return Ne},ps=g.__private__.encodeColorString=function(N){var Y;typeof N=="string"&&(N={ch1:N});var ge=N.ch1,Ne=N.ch2,Pe=N.ch3,Ke=N.ch4,ot=N.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ge=="string"&&ge.charAt(0)!=="#"){var Dt=new UO(ge);if(Dt.ok)ge=Dt.toHex();else if(!/^\d*\.?\d*$/.test(ge))throw new Error('Invalid color "'+ge+'" passed to jsPDF.encodeColorString.')}if(typeof ge=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ge)&&(ge="#"+ge[1]+ge[1]+ge[2]+ge[2]+ge[3]+ge[3]),typeof ge=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ge)){var Ft=parseInt(ge.substr(1),16);ge=Ft>>16&255,Ne=Ft>>8&255,Pe=255&Ft}if(Ne===void 0||Ke===void 0&&ge===Ne&&Ne===Pe)Y=typeof ge=="string"?ge+" "+ot[0]:N.precision===2?z(ge/255)+" "+ot[0]:$(ge/255)+" "+ot[0];else if(Ke===void 0||_r(Ke)==="object"){if(Ke&&!isNaN(Ke.a)&&Ke.a===0)return["1.","1.","1.",ot[1]].join(" ");Y=typeof ge=="string"?[ge,Ne,Pe,ot[1]].join(" "):N.precision===2?[z(ge/255),z(Ne/255),z(Pe/255),ot[1]].join(" "):[$(ge/255),$(Ne/255),$(Pe/255),ot[1]].join(" ")}else Y=typeof ge=="string"?[ge,Ne,Pe,Ke,ot[2]].join(" "):N.precision===2?[z(ge),z(Ne),z(Pe),z(Ke),ot[2]].join(" "):[$(ge),$(Ne),$(Pe),$(Ke),ot[2]].join(" ");return Y},ri=g.__private__.getFilters=function(){return i},bi=g.__private__.putStream=function(N){var Y=(N=N||{}).data||"",ge=N.filters||ri(),Ne=N.alreadyAppliedFilters||[],Pe=N.addLength1||!1,Ke=Y.length,ot=N.objectId,Dt=function(Pr){return Pr};if(f!==null&&ot===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");f!==null&&(Dt=Oa.encryptor(ot,0));var Ft={};ge===!0&&(ge=["FlateEncode"]);var bn=N.additionalKeyValues||[],Sn=(Ft=en.API.processDataByFilters!==void 0?en.API.processDataByFilters(Y,ge):{data:Y,reverseChain:[]}).reverseChain+(Array.isArray(Ne)?Ne.join(" "):Ne.toString());if(Ft.data.length!==0&&(bn.push({key:"Length",value:Ft.data.length}),Pe===!0&&bn.push({key:"Length1",value:Ke})),Sn.length!=0)if(Sn.split("/").length-1==1)bn.push({key:"Filter",value:Sn});else{bn.push({key:"Filter",value:"["+Sn+"]"});for(var Hn=0;Hn<bn.length;Hn+=1)if(bn[Hn].key==="DecodeParms"){for(var ba=[],wr=0;wr<Ft.reverseChain.split("/").length-1;wr+=1)ba.push("null");ba.push(bn[Hn].value),bn[Hn].value="["+ba.join(" ")+"]"}}fe("<<");for(var mr=0;mr<bn.length;mr++)fe("/"+bn[mr].key+" "+bn[mr].value);fe(">>"),Ft.data.length!==0&&(fe("stream"),fe(Dt(Ft.data)),fe("endstream"))},Uc=g.__private__.putPage=function(N){var Y=N.number,ge=N.data,Ne=N.objId,Pe=N.contentsObjId;Ra(Ne,!0),fe("<</Type /Page"),fe("/Parent "+N.rootDictionaryObjId+" 0 R"),fe("/Resources "+N.resourceDictionaryObjId+" 0 R"),fe("/MediaBox ["+parseFloat(H(N.mediaBox.bottomLeftX))+" "+parseFloat(H(N.mediaBox.bottomLeftY))+" "+H(N.mediaBox.topRightX)+" "+H(N.mediaBox.topRightY)+"]"),N.cropBox!==null&&fe("/CropBox ["+H(N.cropBox.bottomLeftX)+" "+H(N.cropBox.bottomLeftY)+" "+H(N.cropBox.topRightX)+" "+H(N.cropBox.topRightY)+"]"),N.bleedBox!==null&&fe("/BleedBox ["+H(N.bleedBox.bottomLeftX)+" "+H(N.bleedBox.bottomLeftY)+" "+H(N.bleedBox.topRightX)+" "+H(N.bleedBox.topRightY)+"]"),N.trimBox!==null&&fe("/TrimBox ["+H(N.trimBox.bottomLeftX)+" "+H(N.trimBox.bottomLeftY)+" "+H(N.trimBox.topRightX)+" "+H(N.trimBox.topRightY)+"]"),N.artBox!==null&&fe("/ArtBox ["+H(N.artBox.bottomLeftX)+" "+H(N.artBox.bottomLeftY)+" "+H(N.artBox.topRightX)+" "+H(N.artBox.topRightY)+"]"),typeof N.userUnit=="number"&&N.userUnit!==1&&fe("/UserUnit "+N.userUnit),Tt.publish("putPage",{objId:Ne,page
vendor: 10,221 bytes, lines 433-436
433Context:Qt[Y],pageNumber:Y,page:ge}),fe("/Contents "+Pe+" 0 R"),fe(">>"),fe("endobj");var Ke=ge.join(` 434`);return P===R&&(Ke+=` 435Q`),Ra(Pe,!0),bi({data:Ke,filters:ri(),objectId:Pe}),fe("endobj"),Ne},Wi=g.__private__.putPages=function(){var N,Y,ge=[];for(N=1;N<=wn;N++)Qt[N].objId=pr(),Qt[N].contentsObjId=pr();for(N=1;N<=wn;N++)ge.push(Uc({number:N,data:We[N],objId:Qt[N].objId,contentsObjId:Qt[N].contentsObjId,mediaBox:Qt[N].mediaBox,cropBox:Qt[N].cropBox,bleedBox:Qt[N].bleedBox,trimBox:Qt[N].trimBox,artBox:Qt[N].artBox,userUnit:Qt[N].userUnit,rootDictionaryObjId:Rs,resourceDictionaryObjId:vr}));Ra(Rs,!0),fe("<</Type /Pages");var Ne="/Kids [";for(Y=0;Y<wn;Y++)Ne+=ge[Y]+" 0 R ";fe(Ne+"]"),fe("/Count "+wn),fe(">>"),fe("endobj"),Tt.publish("postPutPages")},Yi=function(N){Tt.publish("putFont",{font:N,out:fe,newObject:yr,putStream:bi}),N.isAlreadyPutted!==!0&&(N.objectNumber=yr(),fe("<<"),fe("/Type /Font"),fe("/BaseFont /"+Lf(N.postScriptName)),fe("/Subtype /Type1"),typeof N.encoding=="string"&&fe("/Encoding /"+N.encoding),fe("/FirstChar 32"),fe("/LastChar 255"),fe(">>"),fe("endobj"))},Bl=function(N){N.objectNumber=yr();var Y=[];Y.push({key:"Type",value:"/XObject"}),Y.push({key:"Subtype",value:"/Form"}),Y.push({key:"BBox",value:"["+[H(N.x),H(N.y),H(N.x+N.width),H(N.y+N.height)].join(" ")+"]"}),Y.push({key:"Matrix",value:"["+N.matrix.toString()+"]"});var ge=N.pages[1].join(` 436`);bi({data:ge,additionalKeyValues:Y,objectId:N.objectNumber}),fe("endobj")},Qi=function(N,Y){Y||(Y=21);var ge=yr(),Ne=(function(ot,Dt){var Ft,bn=[],Sn=1/(Dt-1);for(Ft=0;Ft<1;Ft+=Sn)bn.push(Ft);if(bn.push(1),ot[0].offset!=0){var Hn={offset:0,color:ot[0].color};ot.unshift(Hn)}if(ot[ot.length-1].offset!=1){var ba={offset:1,color:ot[ot.length-1].color};ot.push(ba)}for(var wr="",mr=0,Pr=0;Pr<bn.length;Pr++){for(Ft=bn[Pr];Ft>ot[mr+1].offset;)mr++;var Wr=ot[mr].offset,Yr=(Ft-Wr)/(ot[mr+1].offset-Wr),xs=ot[mr].color,cl=ot[mr+1].color;wr+=he(Math.round((1-Yr)*xs[0]+Yr*cl[0]).toString(16))+he(Math.round((1-Yr)*xs[1]+Yr*cl[1]).toString(16))+he(Math.round((1-Yr)*xs[2]+Yr*cl[2]).toString(16))}return wr.trim()})(N.colors,Y),Pe=[];Pe.push({key:"FunctionType",value:"0"}),Pe.push({key:"Domain",value:"[0.0 1.0]"}),Pe.push({key:"Size",value:"["+Y+"]"}),Pe.push({key:"BitsPerSample",value:"8"}),Pe.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Pe.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),bi({data:Ne,additionalKeyValues:Pe,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ge}),fe("endobj"),N.objectNumber=yr(),fe("<< /ShadingType "+N.type),fe("/ColorSpace /DeviceRGB");var Ke="/Coords ["+H(parseFloat(N.coords[0]))+" "+H(parseFloat(N.coords[1]))+" ";N.type===2?Ke+=H(parseFloat(N.coords[2]))+" "+H(parseFloat(N.coords[3])):Ke+=H(parseFloat(N.coords[2]))+" "+H(parseFloat(N.coords[3]))+" "+H(parseFloat(N.coords[4]))+" "+H(parseFloat(N.coords[5])),fe(Ke+="]"),N.matrix&&fe("/Matrix ["+N.matrix.toString()+"]"),fe("/Function "+ge+" 0 R"),fe("/Extend [true true]"),fe(">>"),fe("endobj")},Xi=function(N,Y){var ge=pr(),Ne=yr();Y.push({resourcesOid:ge,objectOid:Ne}),N.objectNumber=Ne;var Pe=[];Pe.push({key:"Type",value:"/Pattern"}),Pe.push({key:"PatternType",value:"1"}),Pe.push({key:"PaintType",value:"1"}),Pe.push({key:"TilingType",value:"1"}),Pe.push({key:"BBox",value:"["+N.boundingBox.map(H).join(" ")+"]"}),Pe.push({key:"XStep",value:H(N.xStep)}),Pe.push({key:"YStep",value:H(N.yStep)}),Pe.push({key:"Resources",value:ge+" 0 R"}),N.matrix&&Pe.push({key:"Matrix",value:"["+N.matrix.toString()+"]"}),bi({data:N.stream,additionalKeyValues:Pe,objectId:N.objectNumber}),fe("endobj")},qc=function(N){for(var Y in N.objectNumber=yr(),fe("<<"),N)switch(Y){case"opacity":fe("/ca "+z(N[Y]));break;case"stroke-opacity":fe("/CA "+z(N[Y]))}fe(">>"),fe("endobj")},To=function(N){Ra(N.resourcesOid,!0),fe("<<"),fe("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var Y in fe("/Font <<"),Yt)Yt.hasOwnProperty(Y)&&(m===!1||m===!0&&b.hasOwnProperty(Y))&&fe("/"+Y+" "+Yt[Y].objectNumber+" 0 R");fe(">>")})(),(function(){if(Object.keys(Ut).length>0){for(var Y in fe("/Shading <<"),Ut)Ut.hasOwnProperty(Y)&&Ut[Y]instanceof J0&&Ut[Y].objectNumber>=0&&fe("/"+Y+" "+Ut[Y].objectNumber+" 0 R");Tt.publish("putShadingPatternDict"),fe(">>")}})(),(function(Y){if(Object.keys(Ut).length>0){for(var ge in fe("/Pattern <<"),Ut)Ut.hasOwnProperty(ge)&&Ut[ge]instanceof g.TilingPattern&&Ut[ge].objectNumber>=0&&Ut[ge].objectNumber<Y&&fe("/"+ge+" "+Ut[ge].objectNumber+" 0 R");Tt.publish("putTilingPatternDict"),fe(">>")}})(N.objectOid),(function(){if(Object.keys(Jt).length>0){var Y;for(Y in fe("/ExtGState <<"),Jt)Jt.hasOwnProperty(Y)&&Jt[Y].objectNumber>=0&&fe("/"+Y+" "+Jt[Y].objectNumber+" 0 R");Tt.publish("putGStateDict"),fe(">>")}})(),(function(){for(var Y in fe("/XObject <<"),Qn)Qn.hasOwnProperty(Y)&&Qn[Y].objectNumber>=0&&fe("/"+Y+" "+Qn[Y].objectNumber+" 0 R");Tt.publish("putXobjectDict"),fe(">>")})(),fe(">>"),fe("endobj")},da=function(N){tn[N.fontName]=tn[N.fontName]||{},tn[N.fontName][N.fontStyle]=N.id},h0=function(N,Y,ge,Ne,Pe){var Ke={id:"F"+(Object.keys(Yt).length+1).toString(10),postScriptName:N,fontName:Y,fontStyle:ge,encoding:Ne,isStandardFont:Pe||!1,metadata:{}};return Tt.publish("addFont",{font:Ke,instance:this}),Yt[Ke.id]=Ke,da(Ke),Ke.id},ai=g.__private__.pdfEscape=g.pdfEscape=function(N,Y){return(function(ge,Ne){var Pe,Ke,ot,Dt,Ft,bn,Sn,Hn,ba;if(ot=(Ne=Ne||{}).sourceEncoding||"Unicode",Ft=Ne.outputEncoding,(Ne.autoencode||Ft)&&Yt[ut].metadata&&Yt[ut].metadata[ot]&&Yt[ut].metadata[ot].encoding&&(Dt=Yt[ut].metadata[ot].encoding,!Ft&&Yt[ut].encoding&&(Ft=Yt[ut].encoding),!Ft&&Dt.codePages&&(Ft=Dt.codePages[0]),typeof Ft=="string"&&(Ft=Dt[Ft]),Ft)){for(Sn=!1,bn=[],Pe=0,Ke=ge.length;Pe<Ke;Pe++)(Hn=Ft[ge.charCodeAt(Pe)])?bn.push(String.fromCharCode(Hn)):bn.push(ge[Pe]),bn[Pe].charCodeAt(0)>>8&&(Sn=!0);ge=bn.join("")}for(Pe=ge.length;Sn===void 0&&Pe!==0;)ge.charCodeAt(Pe-1)>>8&&(Sn=!0),Pe--;if(!Sn)return ge;for(bn=Ne.noBOM?[]:[254,255],Pe=0,Ke=ge.length;Pe<Ke;Pe++){if((ba=(Hn=ge.charCodeAt(Pe))>>8)>>8)throw new Error("Character at position "+Pe+" of string '"+ge+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");bn.push(ba),bn.push(Hn-(ba<<8))}return String.fromCharCode.apply(void 0,bn)})(N,Y).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ki=g.__private__.beginPage=function(N){We[++wn]=[],Qt[wn]={objId:0,contentsObjId:0,userUnit:Number(o),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(N[0]),topRightY:Number(N[1])}},p0(wn),_t(We[O])},el=function(N,Y){var ge,Ne,Pe;switch(n=Y||n,typeof N=="string"&&(ge=_(N.toLowerCase()),Array.isArray(ge)&&(Ne=ge[0],Pe=ge[1])),Array.isArray(N)&&(Ne=N[0]*Et,Pe=N[1]*Et),isNaN(Ne)&&(Ne=a[0],Pe=a[1]),(Ne>14400||Pe>14400)&&(Fr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Ne=Math.min(14400,Ne),Pe=Math.min(14400,Pe)),a=[Ne,Pe],n.substr(0,1)){case"l":Pe>Ne&&(a=[Pe,Ne]);break;case"p":Ne>Pe&&(a=[Pe,Ne])}Ki(a),w0(ln),fe(rl),ro!==0&&fe(ro+" J"),ao!==0&&fe(ao+" j"),Tt.publish("addPage",{pageNumber:wn})},f0=function(N){N>0&&N<=wn&&(We.splice(N,1),Qt.splice(N,1),wn--,O>wn&&(O=wn),this.setPage(O))},p0=function(N){N>0&&N<=wn&&(O=N)},m0=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return We.length-1},Mh=function(N,Y,ge){var Ne,Pe=void 0;return ge=ge||{},N=N!==void 0?N:Yt[ut].fontName,Y=Y!==void 0?Y:Yt[ut].fontStyle,Ne=N.toLowerCase(),tn[Ne]!==void 0&&tn[Ne][Y]!==void 0?Pe=tn[Ne][Y]:tn[N]!==void 0&&tn[N][Y]!==void 0?Pe=tn[N][Y]:ge.disableWarning===!1&&Fr.warn("Unable to look up font label for font '"+N+"', '"+Y+"'. Refer to getFontList() for available fonts."),Pe||ge.noFallback||(Pe=tn.times[Y])==null&&(Pe=tn.times.normal),Pe},si=g.__private__.putInfo=function(){var N=yr(),Y=function(Ne){return Ne};for(var ge in f!==null&&(Y=Oa.encryptor(N,0)),fe("<<"),fe("/Producer ("+ai(Y("jsPDF "+en.version))+")"),bt)bt.hasOwnProperty(ge)&&bt[ge]&&fe("/"+ge.substr(0,1).toUpperCase()+ge.substr(1)+" ("+ai(Y(bt[ge]))+")");fe("/CreationDate ("+ai(Y(xe))+")"),fe(">>"),fe("endobj")},tl=g.__private__.putCatalog=function(N){var Y=(N=N||{}).rootDictionaryObjId||Rs;switch(yr(),fe("<<"),fe("/Type /Catalog"),fe("/Pages "+Y+" 0 R"),Kt||(Kt="fullwidth"),Kt){case"fullwidth":fe("/OpenAction [3 0 R /FitH null]");break;case"fullheight":fe("/OpenAction [3 0 R /FitV null]");break;case"fullpage":fe("/OpenAction [3 0 R /Fit]");break;case"original":fe("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ge=""+Kt;ge.substr(ge.length-1)==="%"&&(Kt=parseInt(Kt)/100),typeof Kt=="number"&&fe("/OpenAction [3 0 R /XYZ null null "+z(Kt)+"]")}switch(An||(An="continuous"),An){case"continuous":fe("/PageLayout /OneColumn");break;case"single":fe("/PageLayout /SinglePage");break;case"two":case"twoleft":fe("/PageLayout /TwoColumnLeft");break;case"tworight":fe("/PageLayout /TwoColumnRight")}Bt&&fe("/PageMode /"+Bt),Tt.publish("putCatalog"),fe(">>"),fe("endobj")},Ji=g.__private__.putTrailer=function(){fe("trailer"),fe("<<"),fe("/Size "+(we+1)),fe("/Root "+we+" 0 R"),fe("/Info "+(we-1)+" 0 R"),f!==null&&fe("/Encrypt "+Oa.oid+" 0 R"),fe("/ID [ <"+ee+"> <"+ee+"> ]"),fe(">>")},er=g.__private__.putHeader=function(){fe("%PDF-"+v),fe("%ºÃˆ ")},g0=g.__private__.putXRef=function(){var N="0000000000";fe("xref"),fe("0 "+(we+1)),fe("0000000000 65535 f ");for(var Y=1;Y<=we;Y++)typeof Ee[Y]=="function"?fe((N+Ee[Y]()).slice(-10)+" 00000 n "):Ee[Y]!==void 0?fe((N+Ee[Y]).slice(-10)+" 00000 n "):fe("0000000000 00000 n ")},Co=g.__private__.buildDocument=function(){var N;we=0,Ae=0,ue=[],Ee=[],Ie=[],Rs=pr(),vr=pr(),_t(ue),Tt.publish("buildDocument"),er(),Wi(),(function(){Tt.publish("putAdditionalObjects");for(var ge=0;ge<Ie.length;ge++){var Ne=Ie[ge];Ra(Ne.objId,!0),fe(Ne.content),fe("endobj")}Tt.publish("postPutAdditionalObjects")})(),N=[],(function(){for(var ge in Yt)Yt.hasOwnProperty(ge)&&(m===!1||m===!0&&b.hasOwnProperty(ge))&&Yi(Yt[ge])})(),(function(){var ge;for(ge in Jt)Jt.hasOwnProperty(ge)&&qc(Jt[ge])})(),(function(){for(var ge in Qn)Qn.hasOwnProperty(ge)&&Bl(Qn[ge])})(),(function(ge){var Ne;for(Ne in Ut)Ut.hasOwnProperty(Ne)&&(Ut[Ne]instanceof J0?Qi(Ut[Ne]):Ut[Ne]instanceof zf&&Xi(Ut[Ne],ge))}
436)(N),Tt.publish("putResources"),N.forEach(To),To({resourcesOid:vr,objectOid:Number.MAX_SAFE_INTEGER}),Tt.publish("postPutResources"),f!==null&&(Oa.oid=yr(),fe("<<"),fe("/Filter /Standard"),fe("/V "+Oa.v),fe("/R "+Oa.r),fe("/U <"+Oa.toHexString(Oa.U)+">"),fe("/O <"+Oa.toHexString(Oa.O)+">"),fe("/P "+Oa.P),fe(">>"),fe("endobj")),si(),tl();var Y=Ae;return g0(),Ji(),fe("startxref"),fe(""+Y),fe("%%EOF"),_t(We[O]),ue.join(` 437`)},Fl=g.__private__.getBlob=function(N){return new Blob([rn(N)],{type:"application/pdf"})},Xu=function(N){for(;N.firstChild;)N.removeChild(N.firstChild)},ms=function(N){var Y,ge=N.document,Ne=ge.documentElement,Pe=ge.head,Ke=ge.body;return Pe||(Pe=ge.createElement("head"),Ne.appendChild(Pe)),Ke||(Ke=ge.createElement("body"),Ne.appendChild(Ke)),Xu(Pe),Xu(Ke),(Y=ge.createElement("style")).appendChild(ge.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),Pe.appendChild(Y),{document:ge,body:Ke}},Ku=g.output=g.__private__.output=(Or=function(N,Y){switch(typeof(Y=Y||{})=="string"?Y={filename:Y}:Y.filename=Y.filename||"generated.pdf",N){case void 0:return Co();case"save":g.save(Y.filename);break;case"arraybuffer":return rn(Co());case"blob":return Fl(Co());case"bloburi":case"bloburl":if(vn.URL!==void 0&&typeof vn.URL.createObjectURL=="function")return vn.URL&&vn.URL.createObjectURL(Fl(Co()))||void 0;Fr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ge="",Ne=Co();try{ge=K_(Ne)}catch{ge=K_(unescape(encodeURIComponent(Ne)))}return"data:application/pdf;filename="+encodeURIComponent(Y.filename)+";base64,"+ge;case"pdfobjectnewwindow":if(Object.prototype.toString.call(vn)==="[object Window]"){var Pe="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ke=!Y.pdfObjectUrl;Ke||(Pe=Y.pdfObjectUrl);var ot=vn.open();if(ot!==null){var Dt=ms(ot),Ft=Dt.document.createElement("script"),bn=this;Ft.src=Pe,Ke&&(Ft.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Ft.crossOrigin="anonymous"),Ft.onload=function(){ot.PDFObject.embed(bn.output("dataurlstring"),Y)},Dt.body.appendChild(Ft)}return ot}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(vn)==="[object Window]"){var Sn=Y.pdfJsUrl||"examples/PDF.js/web/viewer.html",Hn=vn.open();if(Hn!==null){var ba=ms(Hn),wr=ba.document.createElement("iframe"),mr=Sn.indexOf("?")===-1?"?":"&";bn=this,wr.id="pdfViewer",wr.width="500px",wr.height="400px",wr.src=Sn+mr+"file=&downloadName="+encodeURIComponent(Y.filename),wr.onload=function(){Hn.document.title=Y.filename,wr.contentWindow.PDFViewerApplication.open(bn.output("bloburl"))},ba.body.appendChild(wr)}return Hn}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(vn)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Pr=vn.open();if(Pr!==null){var Wr=ms(Pr),Yr=Wr.document.createElement("iframe");Yr.src=this.output("datauristring",Y),Wr.body.appendChild(Yr),Pr.document.title=Y.filename}if(Pr||typeof safari>"u")return Pr;break;case"datauri":case"dataurl":return vn.document.location.href=this.output("datauristring",Y);default:return null}},Or.foo=function(){try{return Or.apply(this,arguments)}catch(ge){var N=ge.stack||"";~N.indexOf(" at ")&&(N=N.split(" at ")[1]);var Y="Error in function "+N.split(` 438`)[0].split("<")[0]+": "+ge.message;if(!vn.console)throw new Error(Y);vn.console.error(Y,ge),vn.alert&&alert(Y)}},Or.foo.bar=Or,Or.foo),xa=function(N){return Array.isArray(ar)===!0&&ar.indexOf(N)>-1};switch(r){case"pt":Et=1;break;case"mm":Et=72/25.4;break;case"cm":Et=72/2.54;break;case"in":Et=72;break;case"px":Et=xa("px_scaling")==1?.75:96/72;break;case"pc":case"em":Et=12;break;case"ex":Et=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);Et=r}var Oa=null;ne(),se();var x0=g.__private__.getPageInfo=g.getPageInfo=function(N){if(isNaN(N)||N%1!=0)throw new Error("Invalid argument passed to
438jsPDF.getPageInfo");return{objId:Qt[N].objId,pageNumber:N,pageContext:Qt[N]}},b0=g.__private__.getPageInfoByObjId=function(N){if(isNaN(N)||N%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Y in Qt)if(Qt[Y].objId===N)break;return x0(Y)},zl=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:Qt[O].objId,pageNumber:O,pageContext:Qt[O]}};g.addPage=function(){return el.apply(this,arguments),this},g.setPage=function(){return p0.apply(this,arguments),_t.call(this,We[O]),this},g.insertPage=function(N){return this.addPage(),this.movePage(O,N),this},g.movePage=function(N,Y){var ge,Ne;if(N>Y){ge=We[N],Ne=Qt[N];for(var Pe=N;Pe>Y;Pe--)We[Pe]=We[Pe-1],Qt[Pe]=Qt[Pe-1];We[Y]=ge,Qt[Y]=Ne,this.setPage(Y)}else if(N<Y){ge=We[N],Ne=Qt[N];for(var Ke=N;Ke<Y;Ke++)We[Ke]=We[Ke+1],Qt[Ke]=Qt[Ke+1];We[Y]=ge,Qt[Y]=Ne,this.setPage(Y)}return this},g.deletePage=function(){return f0.apply(this,arguments),this},g.__private__.text=g.text=function(N,Y,ge,Ne,Pe){var Ke,ot,Dt,Ft,bn,Sn,Hn,ba,wr,mr=(Ne=Ne||{}).scope||this;if(typeof N=="number"&&typeof Y=="number"&&(typeof ge=="string"||Array.isArray(ge))){var Pr=ge;ge=Y,Y=N,N=Pr}if(arguments[3]instanceof Nt==0?(Dt=arguments[4],Ft=arguments[5],_r(Hn=arguments[3])==="object"&&Hn!==null||(typeof Dt=="string"&&(Ft=Dt,Dt=null),typeof Hn=="string"&&(Ft=Hn,Hn=null),typeof Hn=="number"&&(Dt=Hn,Hn=null),Ne={flags:Hn,angle:Dt,align:Ft})):(q("The transform parameter of text() with a Matrix value"),wr=Pe),isNaN(Y)||isNaN(ge)||N==null)throw new Error("Invalid arguments passed to jsPDF.text");if(N.length===0)return mr;var Wr,Yr="",xs=typeof Ne.lineHeightFactor=="number"?Ne.lineHeightFactor:vi,cl=mr.internal.scaleFactor;function k0(tr){return tr=tr.split(" ").join(Array(Ne.TabLen||9).join(" ")),ai(tr,Hn)}function ul(tr){for(var gr,na=tr.concat(),jr=[],Mo=na.length;Mo--;)typeof(gr=na.shift())=="string"?jr.push(gr):Array.isArray(tr)&&(gr.length===1||gr[1]===void 0&&gr[2]===void 0)?jr.push(gr[0]):jr.push([gr[0],gr[1],gr[2]]);return jr}function so(tr,gr){var na;if(typeof tr=="string")na=gr(tr)[0];else if(Array.isArray(tr)){for(var jr,Mo,id=tr.concat(),iu=[],Bh=id.length;Bh--;)typeof(jr=id.shift())=="string"?iu.push(gr(jr)[0]):Array.isArray(jr)&&typeof jr[0]=="string"&&(Mo=gr(jr[0],jr[1],jr[2]),iu.push([Mo[0],Mo[1],Mo[2]]));na=iu}return na}var Ul=!1,ql=!0;if(typeof N=="string")Ul=!0;else if(Array.isArray(N)){var Xc=N.concat();ot=[];for(var Kc,es=Xc.length;es--;)(typeof(Kc=Xc.shift())!="string"||Array.isArray(Kc)&&typeof Kc[0]!="string")&&(ql=!1);Ul=ql}if(Ul===!1)throw new Error('Type of text must be string or Array. "'+N+'" is not recognized.');typeof N=="string"&&(N=N.match(/[\r?\n]/)?N.split(/\r\n|\r|\n/g):[N]);var Vl=tt/mr.internal.scaleFactor,wi=Vl*(xs-1);switch(Ne.baseline){case"bottom":ge-=wi;break;case"top":ge+=Vl-wi;break;case"hanging":ge+=Vl-2*wi;break;case"middle":ge+=Vl/2-wi}if((Sn=Ne.maxWidth||0)>0&&(typeof N=="string"?N=mr.splitTextToSize(N,Sn):Object.prototype.toString.call(N)==="[object Array]"&&(N=N.reduce(function(tr,gr){return tr.concat(mr.splitTextToSize(gr,Sn))},[]))),Ke={text:N,x:Y,y:ge,options:Ne,mutex:{pdfEscape:ai,activeFontKey:ut,fonts:Yt,activeFontSize:tt}},Tt.publish("preProcessText",Ke),N=Ke.text,Dt=(Ne=Ke.options).angle,wr instanceof Nt==0&&Dt&&typeof Dt=="number"){Dt*=Math.PI/180,Ne.rotationDirection===0&&(Dt=-Dt),P===R&&(Dt=-Dt);var _0=Math.cos(Dt),Lo=Math.sin(Dt);wr=new Nt(_0,Lo,-Lo,_0,0,0)}else Dt&&Dt instanceof Nt&&(wr=Dt);P!==R||wr||(wr=Ms),(bn=Ne.charSpace||$c)!==void 0&&(Yr+=H(ae(bn))+` Tc 439`,this.setCharSpace(this.getCharSpace()||0)),(ba=Ne.horizontalScale)!==void 0&&(Yr+=H(100*ba)+` Tz 440`),Ne.lang;var Os=-1,T0=Ne.renderingMode!==void 0?Ne.renderingMode:Ne.stroke,Jc=mr.internal.getCurrentPageInfo().pageContext;switch(T0){case 0:case!1:case"fill":Os=0;break;case 1:case!0:case"stroke":Os=1;break;case 2:case"fillThenStroke":Os=2;break;case 3:case"invisible":Os=3;break;case 4:case"fillAndAddForClipping":Os=4;break;case 5:case"strokeAndAddPathForClipping":Os=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Os=6;break;
vendor: 8,691 bytes, lines 440-452
440case 7:case"addToPathForClipping":Os=7}var Gl=Jc.usedRenderingMode!==void 0?Jc.usedRenderingMode:-1;Os!==-1?Yr+=Os+` Tr 441`:Gl!==-1&&(Yr+=`0 Tr 442`),Os!==-1&&(Jc.usedRenderingMode=Os),Ft=Ne.align||"left";var bs,Zc=tt*xs,$l=mr.internal.pageSize.getWidth(),eu=Yt[ut];bn=Ne.charSpace||$c,Sn=Ne.maxWidth||0,Hn=Object.assign({autoencode:!0,noBOM:!0},Ne.flags);var Wl=[],tu=function(tr){return mr.getStringUnitWidth(tr,{font:eu,charSpace:bn,fontSize:tt,doKerning:!1})*tt/cl};if(Object.prototype.toString.call(N)==="[object Array]"){var ts;ot=ul(N),Ft!=="left"&&(bs=ot.map(tu));var Ps,nu=0;if(Ft==="right"){Y-=bs[0],N=[],es=ot.length;for(var dl=0;dl<es;dl++)dl===0?(Ps=no(Y),ts=ii(ge)):(Ps=ae(nu-bs[dl]),ts=-Zc),N.push([ot[dl],Ps,ts]),nu=bs[dl]}else if(Ft==="center"){Y-=bs[0]/2,N=[],es=ot.length;for(var Yl=0;Yl<es;Yl++)Yl===0?(Ps=no(Y),ts=ii(ge)):(Ps=ae((nu-bs[Yl])/2),ts=-Zc),N.push([ot[Yl],Ps,ts]),nu=bs[Yl]}else if(Ft==="left"){N=[],es=ot.length;for(var rd=0;rd<es;rd++)N.push(ot[rd])}else if(Ft==="justify"&&eu.encoding==="Identity-H"){N=[],es=ot.length,Sn=Sn!==0?Sn:$l;for(var ru=0,ya=0;ya<es;ya++)if(ts=ya===0?ii(ge):-Zc,Ps=ya===0?no(Y):ru,ya<es-1){var Fp=ae((Sn-bs[ya])/(ot[ya].split(" ").length-1)),ta=ot[ya].split(" ");N.push([ta[0]+" ",Ps,ts]),ru=0;for(var js=1;js<ta.length;js++){var Ql=(tu(ta[js-1]+" "+ta[js])-tu(ta[js]))*cl+Fp;js==ta.length-1?N.push([ta[js],Ql,0]):N.push([ta[js]+" ",Ql,0]),ru-=Ql}}else N.push([ot[ya],Ps,ts]);N.push(["",ru,0])}else{if(Ft!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(N=[],es=ot.length,Sn=Sn!==0?Sn:$l,ya=0;ya<es;ya++){ts=ya===0?ii(ge):-Zc,Ps=ya===0?no(Y):0;var ad=ot[ya].split(" ").length-1,sd=ad>0?(Sn-bs[ya])/ad:0;ya<es-1?Wl.push(H(ae(sd))):Wl.push(0),N.push([ot[ya],Ps,ts])}}}(typeof Ne.R2L=="boolean"?Ne.R2L:Rt)===!0&&(N=so(N,function(tr,gr,na){return[tr.split("").reverse().join(""),gr,na]})),Ke={text:N,x:Y,y:ge,options:Ne,mutex:{pdfEscape:ai,activeFontKey:ut,fonts:Yt,activeFontSize:tt}},Tt.publish("postProcessText",Ke),N=Ke.text,Wr=Ke.mutex.isHex||!1;var au=Yt[ut].encoding;au!=="WinAnsiEncoding"&&au!=="StandardEncoding"||(N=so(N,function(tr,gr,na){return[k0(tr),gr,na]})),ot=ul(N),N=[];for(var hl,su,li,io=Array.isArray(ot[0])?1:0,Si="",Xl=function(tr,gr,na){var jr="";return na instanceof Nt?(na=typeof Ne.angle=="number"?ea(na,new Nt(1,0,0,1,tr,gr)):ea(new Nt(1,0,0,1,tr,gr),na),P===R&&(na=ea(new Nt(1,0,0,-1,0,0),na)),jr=na.join(" ")+` Tm 443`):jr=H(tr)+" "+H(gr)+` Td 444`,jr},ns=0;ns<ot.length;ns++){switch(Si="",io){case 1:li=(Wr?"<":"(")+ot[ns][0]+(Wr?">":")"),hl=parseFloat(ot[ns][1]),su=parseFloat(ot[ns][2]);break;case 0:li=(Wr?"<":"(")+ot[ns]+(Wr?">":")"),hl=no(Y),su=ii(ge)}Wl!==void 0&&Wl[ns]!==void 0&&(Si=Wl[ns]+` Tw 445`),ns===0?N.push(Si+Xl(hl,su,wr)+li):io===0?N.push(Si+li):io===1&&N.push(Si+Xl(hl,su,wr)+li)}N=io===0?N.join(` Tj 446T* `):N.join(` Tj 447`),N+=` Tj 448`;var ys=`BT 449/`;return ys+=ut+" "+tt+` Tf 450`,ys+=H(tt*xs)+` TL 451`,ys+=oi+` 452`,ys+=Yr,ys+=N,fe(ys+="ET"),b[ut]=!0,mr};var Rh=g.__private__.clip=g.clip=function(N){return fe(N==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return Rh("evenodd")},g.__private__.discardPath=g.discardPath=function(){return fe("n"),this};var Zi=g.__private__.isValidStyle=function(N){var Y=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(N)!==-1&&(Y=!0),Y};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(N){return Zi(N)&&(d=N),this};var nl=g.__private__.getStyle=g.getStyle=function(N){var Y=d;switch(N){case"D":case"S":Y="S";break;case"F":Y="f";break;case"FD":case"DF":Y="B";break;case"f":case"f*":case"B":case"B*":Y=N}return Y},Ju=g.close=function(){return fe("h"),this};g.stroke=function(){return fe("S"),this},g.fill=function(N){return Vc("f",N),this},g.fillEvenOdd=function(N){return Vc("f*",N),this},g.fillStroke=function(N){return Vc("B",N),this},g.fillStrokeEvenOdd=function(N){return Vc("B*",N),this};var Vc=function(N,Y){_r(Y)==="object"?Ip(Y,N):fe(N)},Zu=function(N){N===null||P===R&&N===void 0||(N=nl(N),fe(N))};function y0(N,Y,ge,Ne,Pe){var Ke=new zf(Y||this.boundingBox,ge||this.xStep,Ne||this.yStep,this.gState,Pe||this.matrix);Ke.stream=this.stream;var ot=N+"$$"+this.cloneIndex+++"$$";return Rr(ot,Ke),Ke}var Ip=function(N,Y){var ge=Ln[N.key],Ne=Ut[ge];if(Ne instanceof J0)fe("q"),fe(Bp(Y)),Ne.gState&&g.setGState(Ne.gState),fe(N.matrix.toString()+" cm"),fe("/"+ge+" sh"),fe("Q");else if(Ne instanceof zf){var Pe=new Nt(1,0,0,-1,0,Qc());N.matrix&&(Pe=Pe.multiply(N.matrix||Ms),ge=y0.call(Ne,N.key,N.boundingBox,N.xStep,N.yStep,Pe).id),fe("q"),fe("/Pattern cs"),fe("/"+ge+" scn"),Ne.gState&&g.setGState(Ne.gState),fe(Y),fe("Q")}},Bp=function(N){switch(N){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},eo=g.moveTo=function(N,Y){return fe(H(ae(N))+" "+H(J(Y))+" m"),this},yi=g.lineTo=function(N,Y){return fe(H(ae(N))+" "+H(J(Y))+" l"),this},No=g.curveTo=function(N,Y,ge,Ne,Pe,Ke){return fe([H(ae(N)),H(J(Y)),H(ae(ge)),H(J(Ne)),H(ae(Pe)),H(J(Ke)),"c"].join(" ")),this};g.__private__.line=g.line=function(N,Y,ge,Ne,Pe){if(isNaN(N)||isNaN(Y)||isNaN(ge)||isNaN(Ne)||!Zi(Pe))throw new Error("Invalid arguments passed to jsPDF.line");return P===A?this.lines([[ge-N,Ne-Y]],N,Y,[1,1],Pe||"S"):this.lines([[ge-N,Ne-Y]],N,Y,[1,1]).stroke()},g.__private__.lines=g.lines=function(N,Y,ge,Ne,Pe,Ke){var ot,Dt,Ft,bn,Sn,Hn,ba,wr,mr,Pr,Wr,Yr;if(typeof N=="number"&&(Yr=ge,ge=Y,Y=N,N=Yr),Ne=Ne||[1,1],Ke=Ke||!1,isNaN(Y)||isNaN(ge)||!Array.isArray(N)||!Array.isArray(Ne)||!Zi(Pe)||typeof Ke!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(eo(Y,ge),ot=Ne[0],Dt=Ne[1],bn=N.length,Pr=Y,Wr=ge,Ft=0;Ft<bn;Ft++)(Sn=N[Ft]).length===2?(Pr=Sn[0]*ot+Pr,Wr=Sn[1]*Dt+Wr,yi(Pr,Wr)):(Hn=Sn[0]*ot+Pr,ba=Sn[1]*Dt+Wr,wr=Sn[2]*ot+Pr,mr=Sn[3]*Dt+Wr,Pr=Sn[4]*ot+Pr,Wr=Sn[5]*Dt+Wr,No(Hn,ba,wr,mr,Pr,Wr));return Ke&&Ju(),Zu(Pe),this},g.path=function(N){for(var Y=0;Y<N.length;Y++){var ge=N[Y],Ne=ge.c;switch(ge.op){case"m":eo(Ne[0],Ne[1]);break;case"l":yi(Ne[0],Ne[1]);break;case"c":No.apply(this,Ne);break;case"h":Ju()}}return this},g.__private__.rect=g.rect=function(N,Y,ge,Ne,Pe){if(isNaN(N)||isNaN(Y)||isNaN(ge)||isNaN(Ne)||!Zi(Pe))throw new Error("Invalid arguments passed to jsPDF.rect");return P===A&&(Ne=-Ne),fe([H(ae(N)),H(J(Y)),H(ae(ge)),H(ae(Ne)),"re"].join(" ")),Zu(Pe),this},g.__private__.triangle=g.triangle=function(N,Y,ge,Ne,Pe,Ke,ot){if(isNaN(N)||isNaN(Y)||isNaN(ge)||isNaN(Ne)||isNaN(Pe)||isNaN(Ke)||!Zi(ot))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ge-N,Ne-Y],[Pe-ge,Ke-Ne],[N-Pe,Y-Ke]],N,Y,[1,1],ot,!0),this},g.__private__.roundedRect=g.roundedRect=function(N,Y,ge,Ne,Pe,Ke,ot){if(isNaN(N)||isNaN(Y)||isNaN(ge)||isNaN(Ne)||isNaN(Pe)||isNaN(Ke)||!Zi(ot))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Dt=4/3*(Math.SQRT2-1);return Pe=Math.min(Pe,.5*ge),Ke=Math.min(Ke,.5*Ne),this.lines([[ge-2*Pe,0],[Pe*Dt,0,Pe,Ke-Ke*Dt,Pe,Ke],[0,Ne-2*Ke],[0,Ke*Dt,-Pe*Dt,Ke,-Pe,Ke],[2*Pe-ge,0],[-Pe*Dt,0,-Pe,-Ke*Dt,-Pe,-Ke],[0,2*Ke-Ne],[0,-Ke*Dt,Pe*Dt,-Ke,Pe,-Ke]],N+Pe,Y,[1,1],ot,!0),this},g.__private__.ellipse=g.ellipse=function(N,Y,ge,Ne,Pe){if(isNaN(N)||isNaN(Y)||isNaN(ge)||isNaN(Ne)||!Zi(Pe))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ke=4/3*(Math.SQRT2-1)*ge,ot=4/3*(Math.SQRT2-1)*Ne;return eo(N+ge,Y),No(N+ge,Y-ot,N+Ke,Y-Ne,N,Y-Ne),No(N-Ke,Y-Ne,N-ge,Y-ot,N-ge,Y),No(N-ge,Y+ot,N-Ke,Y+Ne,N,Y+Ne),No(N+Ke,Y+Ne,N+ge,Y+ot,N+ge,Y),Zu(Pe),this},g.__private__.circle=g.circle=function(N,Y,ge,Ne){if(isNaN(N)||isNaN(Y)||isNaN(ge)||!Zi(Ne))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(N,Y,ge,ge,Ne)},g.setFont=function(N,Y,ge){return ge&&(Y=D(Y,ge)),ut=Mh(N,Y,{disableWarning:!1}),this};var v0=g.__private__.getFont=g.getFont=function(){return Yt[Mh.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var N,Y,ge={};for(N in tn)if(tn.hasOwnProperty(N))for(Y in ge[N]=[],tn[N])tn[N].hasOwnProperty(Y)&&ge[N].push(Y);return ge},g.addFont=function(N,Y,ge,Ne,Pe){var Ke=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ke.indexOf(arguments[3])!==-1?Pe=arguments[3]:arguments[3]&&Ke.indexOf(arguments[3])==-1&&(ge=D(ge,Ne)),h0.call(this,N,Y,ge,Pe=Pe||"Identity-H")};var vi,ln=e.lineWidth||.200025,Oh=g.__private__.getLineWidth=g.getLineWidth=function(){return ln},w0=g.__private__.setLineWidth=g.setLineWidth=function(N){return ln=N,fe(H(ae(N))+" w"),this};g.__private__.setLineDash=en.API.setLineDash=en.API.setLineDashPattern=function(N,Y){if(N=N||[],Y=Y||0,isNaN(Y)||!Array.isArray(N))throw new Error("Invalid arguments passed to
452jsPDF.setLineDash");return N=N.map(function(ge){return H(ae(ge))}).join(" "),Y=H(ae(Y)),fe("["+N+"] "+Y+" d"),this};var Ph=g.__private__.getLineHeight=g.getLineHeight=function(){return tt*vi};g.__private__.getLineHeight=g.getLineHeight=function(){return tt*vi};var Gc=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(N){return typeof(N=N||1.15)=="number"&&(vi=N),this},to=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return vi};Gc(e.lineHeight);var no=g.__private__.getHorizontalCoordinate=function(N){return ae(N)},ii=g.__private__.getVerticalCoordinate=function(N){return P===R?N:Qt[O].mediaBox.topRightY-Qt[O].mediaBox.bottomLeftY-ae(N)},Ao=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(N){return H(no(N))},S0=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(N){return H(ii(N))},rl=e.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return $r(rl)},g.__private__.setStrokeColor=g.setDrawColor=function(N,Y,ge,Ne){return rl=ps({ch1:N,ch2:Y,ch3:ge,ch4:Ne,pdfColorType:"draw",precision:2}),fe(rl),this};var ed=e.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return $r(ed)},g.__private__.setFillColor=g.setFillColor=function(N,Y,ge,Ne){return ed=ps({ch1:N,ch2:Y,ch3:ge,ch4:Ne,pdfColorType:"fill",precision:2}),fe(ed),this};var oi=e.textColor||"0 g",td=g.__private__.getTextColor=g.getTextColor=function(){return $r(oi)};g.__private__.setTextColor=g.setTextColor=function(N,Y,ge,Ne){return oi=ps({ch1:N,ch2:Y,ch3:ge,ch4:Ne,pdfColorType:"text",precision:3}),this};var $c=e.charSpace,gs=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat($c||0)};g.__private__.setCharSpace=g.setCharSpace=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return $c=N,this};var ro=0;g.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},g.__private__.setLineCap=g.setLineCap=function(N){var Y=g.CapJoinStyles[N];if(Y===void 0)throw new Error("Line cap style of '"+N+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ro=Y,fe(Y+" J"),this};var ao=0;g.__private__.setLineJoin=g.setLineJoin=function(N){var Y=g.CapJoinStyles[N];if(Y===void 0)throw new Error("Line join style of '"+N+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ao=Y,fe(Y+" j"),this},g.__private__.setLineMiterLimit=g.__private__.setMiterLimit=g.setLineMiterLimit=g.setMiterLimit=function(N){if(N=N||0,isNaN(N))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return fe(H(ae(N))+" M"),this},g.GState=Bx,g.setGState=function(N){(N=typeof N=="string"?Jt[pn[N]]:al(null,N)).equals(ur)||(fe("/"+N.id+" gs"),ur=N)};var al=function(N,Y){if(!N||!pn[N]){var ge=!1;for(var Ne in Jt)if(Jt.hasOwnProperty(Ne)&&Jt[Ne].equals(Y)){ge=!0;break}if(ge)Y=Jt[Ne];else{var Pe="GS"+(Object.keys(Jt).length+1).toString(10);Jt[Pe]=Y,Y.id=Pe}return N&&(pn[N]=Y.id),Tt.publish("addGState",Y),Y}};g.addGState=function(N,Y){return al(N,Y),this},g.saveGraphicsState=function(){return fe("q"),an.push({key:ut,size:tt,color:oi}),this},g.restoreGraphicsState=function(){fe("Q");var N=an.pop();return ut=N.key,tt=N.size,oi=N.color,ur=null,this},g.setCurrentTransformationMatrix=function(N){return fe(N.toString()+" cm"),this},g.comment=function(N){return fe("#"+N),this};var Wc=function(N,Y){var ge=N||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ge},set:function(Ke){isNaN(Ke)||(ge=parseFloat(Ke))}});var Ne=Y||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Ne},set:function(Ke){isNaN(Ke)||(Ne=parseFloat(Ke))}});var Pe="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Pe},set:function(Ke){Pe=Ke.toString()}}),this},Yc=function(N,Y,ge,Ne){Wc.call(this,N,Y),this.type="rect";var Pe=ge||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Pe},set:function(ot){isNaN(ot)||(Pe=parseFloat(ot))}});var Ke=Ne||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ke},set:function(ot){isNaN(ot)||(Ke=parseFloat(ot))}}),this},Hl=function(){this.page=wn,this.currentPage=O,this.pages=We.slice(0),this.pagesContext=Qt.slice(0),this.x=Ct,this.y=In,this.matrix=hn,this.width=E0(O),this.height=ll(O),this.outputDestination=mt,this.id="",this.objectNumber=-1};Hl.prototype.restore=function(){wn=this.page,O=this.currentPage,Qt=this.pagesContext,We=this.pages,Ct=this.x,In=this.y,hn=this.matrix,ol(O,this.width),jh(O,this.height),mt=this.outputDestination};var sl=function(N,Y,ge,Ne,Pe){Za.push(new Hl),wn=O=0,We=[],Ct=N,In=Y,hn=Pe,Ki([ge,Ne])};for(var il in g.beginFormObject=function(N,Y,ge,Ne,Pe){return sl(N,Y,ge,Ne,Pe),this},g.endFormObject=function(N){return(function(Y){if(Ur[Y])Za.pop().restore(
vendor: 4,762 bytes, line 452
452);else{var ge=new Hl,Ne="Xo"+(Object.keys(Qn).length+1).toString(10);ge.id=Ne,Ur[Y]=Ne,Qn[Ne]=ge,Tt.publish("addFormObject",ge),Za.pop().restore()}})(N),this},g.doFormObject=function(N,Y){var ge=Qn[Ur[N]];return fe("q"),fe(Y.toString()+" cm"),fe("/"+ge.id+" Do"),fe("Q"),this},g.getFormObject=function(N){var Y=Qn[Ur[N]];return{x:Y.x,y:Y.y,width:Y.width,height:Y.height,matrix:Y.matrix}},g.save=function(N,Y){return N=N||"generated.pdf",(Y=Y||{}).returnPromise=Y.returnPromise||!1,Y.returnPromise===!1?(Q0(Fl(Co()),N),typeof Q0.unload=="function"&&vn.setTimeout&&setTimeout(Q0.unload,911),this):new Promise(function(ge,Ne){try{var Pe=Q0(Fl(Co()),N);typeof Q0.unload=="function"&&vn.setTimeout&&setTimeout(Q0.unload,911),ge(Pe)}catch(Ke){Ne(Ke.message)}})},en.API)en.API.hasOwnProperty(il)&&(il==="events"&&en.API.events.length?(function(N,Y){var ge,Ne,Pe;for(Pe=Y.length-1;Pe!==-1;Pe--)ge=Y[Pe][0],Ne=Y[Pe][1],N.subscribe.apply(N,[ge].concat(typeof Ne=="function"?[Ne]:Ne))})(Tt,en.API.events):g[il]=en.API[il]);function E0(N){return Qt[N].mediaBox.topRightX-Qt[N].mediaBox.bottomLeftX}function ol(N,Y){Qt[N].mediaBox.topRightX=Y+Qt[N].mediaBox.bottomLeftX}function ll(N){return Qt[N].mediaBox.topRightY-Qt[N].mediaBox.bottomLeftY}function jh(N,Y){Qt[N].mediaBox.topRightY=Y+Qt[N].mediaBox.bottomLeftY}var nd=g.getPageWidth=function(N){return E0(N=N||O)/Et},Dh=g.setPageWidth=function(N,Y){ol(N,Y*Et)},Qc=g.getPageHeight=function(N){return ll(N=N||O)/Et},Ih=g.setPageHeight=function(N,Y){jh(N,Y*Et)};return g.internal={pdfEscape:ai,getStyle:nl,getFont:v0,getFontSize:Lt,getCharSpace:gs,getTextColor:td,getLineHeight:Ph,getLineHeightFactor:to,getLineWidth:Oh,write:yt,getHorizontalCoordinate:no,getVerticalCoordinate:ii,getCoordinateString:Ao,getVerticalCoordinateString:S0,collections:{},newObject:yr,newAdditionalObject:Il,newObjectDeferred:pr,newObjectDeferredBegin:Ra,getFilters:ri,putStream:bi,events:Tt,scaleFactor:Et,pageSize:{getWidth:function(){return nd(O)},setWidth:function(N){Dh(O,N)},getHeight:function(){return Qc(O)},setHeight:function(N){Ih(O,N)}},encryptionOptions:f,encryption:Oa,getEncryptor:function(N){return f!==null?Oa.encryptor(N,0):function(Y){return Y}},output:Ku,getNumberOfPages:m0,get pages(){return We},out:fe,f2:z,f3:$,getPageInfo:x0,getPageInfoByObjId:b0,getCurrentPageInfo:zl,getPDFVersion:E,Point:Wc,Rectangle:Yc,Matrix:Nt,hasHotfix:xa},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return nd(O)},set:function(N){Dh(O,N)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return Qc(O)},set:function(N){Ih(O,N)},enumerable:!0,configurable:!0}),(function(N){for(var Y=0,ge=Ht.length;Y<ge;Y++){var Ne=h0.call(this,N[Y][0],N[Y][1],N[Y][2],Ht[Y][3],!0);m===!1&&(b[Ne]=!0);var Pe=N[Y][0].split("-");da({id:Ne,fontName:Pe[0],fontStyle:Pe[1]||""})}Tt.publish("addFonts",{fonts:Yt,dictionary:tn})}).call(g,Ht),ut="F1",el(a,n),Tt.publish("initialized"),g}Af.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Af.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Af.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},Af.prototype.processOwnerPassword=function(e,t){return F3(B3(t).substr(0,5),e)},Af.prototype.encryptor=function(e,t){var n=B3(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return F3(n,r)}},Bx.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||_r(e)!==_r(this))return!1;var r=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&r--;return r===0},en.API={events:[]},en.version="4.2.1";var Ca=en.API,Ww=1,kh=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Sf=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},mh=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var n=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(n.length===1?"0"+n:n)})},Tn=function(e){return e.toFixed(2)},Od=function(e){return e.toFixed(5)};Ca.__acroform__={};var Vi=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},tT=function(e){return e*Ww},pc=function(e){var t=new $O,n=$t.internal.getHeight(e)||0,r=$t.internal.getWidth(e)||0;return t.BBox=[0,0,Number(Tn(r)),Number(Tn(n))],t},Qee=Ca.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to
452jsPDF.API.__acroform__.setBit");return e|1<<t},Xee=Ca.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},Kee=Ca.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},Fa=Ca.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Kee(e,t-1)},za=Ca.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Qee(e,t-1)},Ha=Ca.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Xee(e,t-1)},Jee=Ca.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,a=e[0],s=e[1],i=e[2],o=e[3],c={};return c.lowerLeft_X=n(a)||0,c.lowerLeft_Y=r(s+o)||0,c.upperRight_X=n(a+i)||0,c.upperRight_Y=r(s)||0,[Number(Tn(c.lowerLeft_X)),Number(Tn(c.lowerLeft_Y)),Number(Tn(c.upperRight_X)),Number(Tn(c.upperRight_Y))]},Zee=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=z3(e,n),a=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+a+" "+Tn(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var s=pc(e);return s.scope=e.scope,s.stream=t.join(` 453`),s}},z3=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},a=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");a=e.multiline?a.map(function(z){return z.split(` 454`)}):a.map(function(z){return[z]});var s=n,i=$t.internal.getHeight(e)||0;i=i<0?-i:i;var o=$t.internal.getWidth(e)||0;o=o<0?-o:o;var c=function(z,$,ae){if(z+1<a.length){var J=$+" "+a[z+1][0];return w2(J,e,ae).width<=o-4}return!1};s++;e:for(;s>0;){t="",s--;var d,f,m=w2("3",e,s).height,b=e.multiline?i-s:(i-m)/2,g=b+=2,v=0,E=0,T=0;if(s<=0){t=`(...) Tj 455`,t+="% Width of Text: "+w2(t,e,s=12).width+", FieldWidth:"+o+` 456`;break}for(var _="",A=0,R=0;R<a.length;R++)if(a.hasOwnProperty(R)){var P=!1;if(a[R].length!==1&&T!==a[R].length-1){if((m+2)*(A+2)+2>i)continue e;_+=a[R][T],P=!0,E=R,R--}else{_=(_+=a[R][T]+" ").substr(_.length-1)==" "?_.substr(0,_.length-1):_;var V=parseInt(R),U=c(V,_,s),D=R>=a.length-1;if(U&&!D){_+=" ",T=0;continue}if(U||D){if(D)E=V;else if(e.multiline&&(m+2)*(A+2)+2>i)continue e}else{if(!e.multiline||(m+2)*(A+2)+2>i)continue e;E=V}}for(var H="",q=v;q<=E;q++){var W=a[q];if(e.multiline){if(q===E){H+=W[T]+" ",T=(T+1)%W.length;continue}if(q===v){H+=W[W.length-1]+" ";continue}}H+=W[0]+" "}switch(H=H.substr(H.length-1)==" "?H.substr(0,H.length-1):H,f=w2(H,e,s).width,e.textAlign){case"right":d=o-f-2;break;case"center":d=(o-f)/2;break;default:d=2}t+=Tn(d)+" "+Tn(g)+` Td 457`,t+="("+kh(H)+`) Tj 458`,t+=-Tn(d)+` 0 Td 459`,g=-(s+2),f=0,v=P?E:E+1,A++,_=""}break}return r.text=t,r.fontSize=s,r},w2=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),a=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:a}},ete={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},tte=function(e,t){var n={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===n.type&&r.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},nte=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(Pl.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(ete)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ww=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new WO,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];
vendor: 10,903 bytes, lines 459-460
459s.objId=void 0,s.hasAnnotation&&tte(s,n)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(n){(function(r,a){var s=!r;for(var i in r||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(i)){var o=r[i],c=[],d=o.Rect;if(o.Rect&&(o.Rect=Jee(o.Rect,a)),a.internal.newObjectDeferredBegin(o.objId,!0),o.DA=$t.createDefaultAppearanceStream(o),_r(o)==="object"&&typeof o.getKeyValueListForStream=="function"&&(c=o.getKeyValueListForStream()),o.Rect=d,o.hasAppearanceStream&&!o.appearanceStreamContent){var f=Zee(o);c.push({key:"AP",value:"<</N "+f+">>"}),a.internal.acroformPlugin.xForms.push(f)}if(o.appearanceStreamContent){var m="";for(var b in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(b)){var g=o.appearanceStreamContent[b];if(m+="/"+b+" ",m+="<<",Object.keys(g).length>=1||Array.isArray(g)){for(var i in g)if(g.hasOwnProperty(i)){var v=g[i];typeof v=="function"&&(v=v.call(a,o)),m+="/"+i+" "+v+" ",a.internal.acroformPlugin.xForms.indexOf(v)>=0||a.internal.acroformPlugin.xForms.push(v)}}else typeof(v=g)=="function"&&(v=v.call(a,o)),m+="/"+i+" "+v,a.internal.acroformPlugin.xForms.indexOf(v)>=0||a.internal.acroformPlugin.xForms.push(v);m+=">>"}c.push({key:"AP",value:`<< 460`+m+">>"})}a.internal.putStream({additionalKeyValues:c,objectId:o.objId}),a.internal.out("endobj")}s&&(function(E,T){for(var _ in E)if(E.hasOwnProperty(_)){var A=_,R=E[_];T.internal.newObjectDeferredBegin(R.objId,!0),_r(R)==="object"&&typeof R.putStream=="function"&&R.putStream(),delete E[A]}})(a.internal.acroformPlugin.xForms,a)})(n,e)}),e.internal.acroformPlugin.isInitialized=!0}},GO=Ca.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(i){return i};if(Array.isArray(e)){for(var a="[",s=0;s<e.length;s++)switch(s!==0&&(a+=" "),_r(e[s])){case"boolean":case"number":case"object":a+=e[s].toString();break;case"string":e[s].substr(0,1)==="/"?a+="/"+mh(e[s].substr(1)):(t!==void 0&&n&&(r=n.internal.getEncryptor(t)),a+="("+kh(r(e[s].toString()))+")")}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},T4=function(e,t,n){var r=function(a){return a};return t!==void 0&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+kh(r(e))+")"},kc=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};kc.prototype.toString=function(){return this.objId+" 0 R"},kc.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},kc.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(s){return s!="content"&&s!="appearanceStreamContent"&&s!="scope"&&s!="objId"&&s.substring(0,1)!="_"});for(var n in t)if(Object.getOwnPropertyDescriptor(this,t[n]).configurable===!1){var r=t[n],a=this[r];a&&(Array.isArray(a)?e.push({key:r,value:GO(a,this.objId,this.scope)}):a instanceof kc?(a.scope=this.scope,e.push({key:r,value:a.objId+" 0 R"})):typeof a!="function"&&e.push({key:r,value:a}))}return e};var $O=function(){kc.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){e=n.trim()},get:function(){return e||null}})};Vi($O,kc);var WO=function(){kc.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var n=function(r){return r};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+kh(n(e))+")"}},set:function(n){e=n}})};Vi(WO,kc);var Pl=function e(){kc.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute F supplied.');t=_}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Fa(t,3)},set:function(_){_?this.F=za(t,3):this.F=Ha(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute Ff supplied.');n=_}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(_){r=_!==void 0?_:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(_){r[0]=_}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(_){r[1]=_}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(_){r[2]=_}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(_){r[3]=_}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(_){switch(_){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=_;break;default:throw new Error('Invalid value "'+_+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof Fx)return;s="FieldObject"+e.FieldNum++}var _=function(A){return A};return this.scope&&(_=this.scope.internal.getEncryptor(this.objId)),"("+kh(_(s))+")"},set:function(_){s=_.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(_){s=_}});var i="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return i},set:function(_){i=_}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(_){o=_}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(_){c=_}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/Ww:d},set:function(_){d=_}});var f="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return f},set:function(_){f=_}});var m="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!m||this instanceof Fx||this instanceof ch))return T4(m,this.objId,this.scope)},set:function(_){_=_.toString(),m=_}});var b=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(b)return this instanceof Ns==0?T4(b,this.objId,this.scope):b},set:function(_){_=_.toString(),b=this instanceof Ns==0?_.substr(0,1)==="("?Sf(_.substr(1,_.length-2)):Sf(_):_}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ns==1?Sf(b.substr(1,b.length-1)):b},set:function(_){_=_.toString(),b=this instanceof Ns==1?"/"+mh(_):_}});var g=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(g)return g},set:function(_){this.V=_}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof Ns==0?T4(g,this.objId,this.scope):g},set:function(_){_=_.toString(),g=this instanceof Ns==0?_.substr(0,1)==="("?Sf(_.substr(1,_.length-2)):Sf(_):_}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ns==1?Sf(g.substr(1,g.length-1)):g},set:function(_){_=_.toString(),g=this instanceof Ns==1?"/"+mh(_):_}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var v,E=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return E},set:function(_){_=!!_,E=_}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(v)return v},set:function(_){v=_}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,1)},set:function(_){_?this.Ff=za(this.Ff,1):this.Ff=Ha(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,2)},set:function(_){_?this.Ff=za(this.Ff,2):this.Ff=Ha(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,3)},set:function(_){_?this.Ff=za(this.Ff,3):this.Ff=Ha(this.Ff,3)}});var T=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(T!==null)return T},set:function(_){if([0,1,2].indexOf(_)===-1)throw new Error('Invalid value "'+_+'" for attribute Q supplied.');T=_}}),Object.defineProperty(this,"textAlign",{get:function(){var _;switch(T){case 0:default:_="left";break;case 1:_="center";break;case 2:_="right"}return _},configurable:!0,enumerable:!0,set:function(_){switch(_){case"right":case 2:T=2;break;case"center":case 1:T=1;break;default:T=0}}})};Vi(Pl,kc);var $f=function(){Pl.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){e=n}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return GO(t,this.objId,this.scope)}
460,set:function(n){var r,a;a=[],typeof(r=n)=="string"&&(a=(function(s,i,o){o||(o=1);for(var c,d=[];c=i.exec(s);)d.push(c[o]);return d})(r,/\((.*?)\)/g)),t=a}}),this.getOptions=function(){return t},this.setOptions=function(n){t=n,this.sort&&t.sort()},this.addOption=function(n){n=(n=n||"").toString(),t.push(n),this.sort&&t.sort()},this.removeOption=function(n,r){for(r=r||!1,n=(n=n||"").toString();t.indexOf(n)!==-1&&(t.splice(t.indexOf(n),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,18)},set:function(n){n?this.Ff=za(this.Ff,18):this.Ff=Ha(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=za(this.Ff,19):this.Ff=Ha(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,20)},set:function(n){n?(this.Ff=za(this.Ff,20),t.sort()):this.Ff=Ha(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,22)},set:function(n){n?this.Ff=za(this.Ff,22):this.Ff=Ha(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,23)},set:function(n){n?this.Ff=za(this.Ff,23):this.Ff=Ha(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,27)},set:function(n){n?this.Ff=za(this.Ff,27):this.Ff=Ha(this.Ff,27)}}),this.hasAppearanceStream=!1};Vi($f,Pl);var Wf=function(){$f.call(this),this.fontName="helvetica",this.combo=!1};Vi(Wf,$f);var Yf=function(){Wf.call(this),this.combo=!0};Vi(Yf,Wf);var cx=function(){Yf.call(this),this.edit=!0};Vi(cx,Yf);var Ns=function(){Pl.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,15)},set:function(n){n?this.Ff=za(this.Ff,15):this.Ff=Ha(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,16)},set:function(n){n?this.Ff=za(this.Ff,16):this.Ff=Ha(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,17)},set:function(n){n?this.Ff=za(this.Ff,17):this.Ff=Ha(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,26)},set:function(n){n?this.Ff=za(this.Ff,26):this.Ff=Ha(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(s){return s};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,a=[];for(r in a.push("<<"),t)a.push("/"+r+" ("+kh(n(t[r]))+")");return a.push(">>"),a.join(` 461`)}},set:function(n){_r(n)==="object"&&(t=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(n){typeof n=="string"&&(t.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){var r=n==null?"":n.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),e="/"+mh(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+mh(n)}})};Vi(Ns,Pl);var ux=function(){Ns.call(this),this.pushButton=!0};Vi(ux,Ns);var Qf=function(){Ns.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};Vi(Qf,Ns);var Fx=function(){var e,t;Pl.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(a){e=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(a){t=a}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(o){return o};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var s,i=[];for(s in i.push("<<"),r)i.push("/"+s+" ("+kh(a(r[s]))+")");return i.push(">>"),i.join(` 462`)}
vendor: 9,202 bytes, lines 462-471
462,set:function(a){_r(a)==="object"&&(r=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(a){typeof a=="string"&&(r.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(a){var s=a==null?"":a.toString();s.substr(0,1)==="/"&&(s=s.substr(1)),n="/"+mh(s)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(a){var s=a==null?"":a.toString();s.substr(0,1)==="/"&&(s=s.substr(1)),n="/"+mh(s)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=$t.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Vi(Fx,Pl),Qf.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},Qf.prototype.createOption=function(e){var t=new Fx;return t.Parent=this,t.optionName=e,this.Kids.push(t),rte.call(this.scope,t),t};var dx=function(){Ns.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=$t.CheckBox.createAppearanceStream()};Vi(dx,Ns);var ch=function(){Pl.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,13)},set:function(t){t?this.Ff=za(this.Ff,13):this.Ff=Ha(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,21)},set:function(t){t?this.Ff=za(this.Ff,21):this.Ff=Ha(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,23)},set:function(t){t?this.Ff=za(this.Ff,23):this.Ff=Ha(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,24)},set:function(t){t?this.Ff=za(this.Ff,24):this.Ff=Ha(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,25)},set:function(t){t?this.Ff=za(this.Ff,25):this.Ff=Ha(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,26)},set:function(t){t?this.Ff=za(this.Ff,26):this.Ff=Ha(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Vi(ch,Pl);var hx=function(){ch.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,14)},set:function(e){e?this.Ff=za(this.Ff,14):this.Ff=Ha(this.Ff,14)}}),this.password=!0};Vi(hx,ch);var $t={CheckBox:{createAppearanceStream:function(){return{N:{On:$t.CheckBox.YesNormal},D:{On:$t.CheckBox.YesPushDown,Off:$t.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=pc(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,a=e.scope.__private__.encodeColorString(e.color),s=z3(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+Tn($t.internal.getWidth(e))+" "+Tn($t.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+Tn(s.fontSize)+" Tf "+a),n.push("BT"),n.push(s.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join(` 463`),t},YesNormal:function(e){var t=pc(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),a=[],s=$t.internal.getHeight(e),i=$t.internal.getWidth(e),o=z3(e,e.caption);return a.push("1 g"),a.push("0 0 "+Tn(i)+" "+Tn(s)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+Tn(i-1)+" "+Tn(s-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+n+" "+Tn(o.fontSize)+" Tf "+r),a.push(o.text),a.push("ET"),a.push("Q"),t.stream=a.join(` 464`),t},OffPushDown:function(e){var t=pc(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Tn($t.internal.getWidth(e))+" "+Tn($t.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(` 465`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:$t.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=$t.RadioButton.Circle.YesNormal,t.D[e]=$t.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=pc(e);t.scope=e.scope;var n=[],r=$t.internal.getWidth(e)<=$t.internal.getHeight(e)?$t.internal.getWidth(e)/4:$t.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var a=$t.internal.Bezier_C,s=Number((r*a).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Od($t.internal.getWidth(e)/2)+" "+Od($t.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),n.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),n.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),n.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 466`),t},YesPushDown:function(e){var t=pc(e);t.scope=e.scope;var n=[],r=$t.internal.getWidth(e)<=$t.internal.getHeight(e)?$t.internal.getWidth(e)/4:$t.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),s=Number((a*$t.internal.Bezier_C).toFixed(5)),i=Number((r*$t.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Od($t.internal.getWidth(e)/2)+" "+Od($t.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+s+" "+s+" "+a+" 0 "+a+" c"),n.push("-"+s+" "+a+" -"+a+" "+s+" -"+a+" 0 c"),n.push("-"+a+" -"+s+" -"+s+" -"+a+" 0 -"+a+" c"),n.push(s+" -"+a+" "+a+" -"+s+" "+a+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Od($t.internal.getWidth(e)/2)+" "+Od($t.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 467`),t},OffPushDown:function(e){var t=pc(e);t.scope=e.scope;var n=[],r=$t.internal.getWidth(e)<=$t.internal.getHeight(e)?$t.internal.getWidth(e)/4:$t.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),s=Number((a*$t.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Od($t.internal.getWidth(e)/2)+" "+Od($t.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+s+" "+s+" "+a+" 0 "+a+" c"),n.push("-"+s+" "+a+" -"+a+" "+s+" -"+a+" 0 c"),n.push("-"+a+" -"+s+" -"+s+" -"+a+" 0 -"+a+" c"),n.push(s+" -"+a+" "+a+" -"+s+" "+a+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(` 468`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:$t.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=$t.RadioButton.Cross.YesNormal,t.D[e]=$t.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=pc(e);t.scope=e.scope;var n=[],r=$t.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+Tn($t.internal.getWidth(e)-2)+" "+Tn($t.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(Tn(r.x1.x)+" "+Tn(r.x1.y)+" m"),n.push(Tn(r.x2.x)+" "+Tn(r.x2.y)+" l"),n.push(Tn(r.x4.x)+" "+Tn(r.x4.y)+" m"),n.push(Tn(r.x3.x)+" "+Tn(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(` 469`),t},YesPushDown:function(e){var t=pc(e);t.scope=e.scope;var n=$t.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+Tn($t.internal.getWidth(e))+" "+Tn($t.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Tn($t.internal.getWidth(e)-2)+" "+Tn($t.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(Tn(n.x1.x)+" "+Tn(n.x1.y)+" m"),r.push(Tn(n.x2.x)+" "+Tn(n.x2.y)+" l"),r.push(Tn(n.x4.x)+" "+Tn(n.x4.y)+" m"),r.push(Tn(n.x3.x)+" "+Tn(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(` 470`),t},OffPushDown:function(e){var t=pc(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Tn($t.internal.getWidth(e))+" "+Tn($t.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(` 471`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};$t.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=$t.internal.getWidth(e),n=$t.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},$t.internal.getWidth=function(e){var t=0;return _r(e)==="object"&&(t=tT(e.Rect[2])),t},$t.internal.getHeight=function(e){var t=0;return _r(e)==="object"&&(t=tT(e.Rect[3])),t};var rte=Ca.addField=function(e){if(nte(this,e),!(e instanceof Pl))throw new Error("Invalid argument passed to
471jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Ca.AcroFormChoiceField=$f,Ca.AcroFormListBox=Wf,Ca.AcroFormComboBox=Yf,Ca.AcroFormEditBox=cx,Ca.AcroFormButton=Ns,Ca.AcroFormPushButton=ux,Ca.AcroFormRadioButton=Qf,Ca.AcroFormCheckBox=dx,Ca.AcroFormTextField=ch,Ca.AcroFormPasswordField=hx,Ca.AcroFormAppearance=$t,Ca.AcroForm={ChoiceField:$f,ListBox:Wf,ComboBox:Yf,EditBox:cx,Button:Ns,PushButton:ux,RadioButton:Qf,CheckBox:dx,TextField:ch,PasswordField:hx,Appearance:$t},en.AcroForm={ChoiceField:$f,ListBox:Wf,ComboBox:Yf,EditBox:cx,Button:Ns,PushButton:ux,RadioButton:Qf,CheckBox:dx,TextField:ch,PasswordField:hx,Appearance:$t};en.AcroForm;function YO(e){return e.reduce(function(t,n,r){return t[n]=r,t},{})}(function(e){var t="addImage_";e.__addimage__={};var n="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=e.__addimage__.getImageFileTypeByImageData=function(z,$){var ae,J,xe,ee,ce,se=n;if(($=$||n)==="RGBA"||z.data!==void 0&&z.data instanceof Uint8ClampedArray&&"height"in z&&"width"in z)return"RGBA";if(U(z))for(ce in r)for(xe=r[ce],ae=0;ae<xe.length;ae+=1){for(ee=!0,J=0;J<xe[ae].length;J+=1)if(xe[ae][J]!==void 0&&xe[ae][J]!==z[J]){ee=!1;break}if(ee===!0){se=ce;break}}else for(ce in r)for(xe=r[ce],ae=0;ae<xe.length;ae+=1){for(ee=!0,J=0;J<xe[ae].length;J+=1)if(xe[ae][J]!==void 0&&xe[ae][J]!==z.charCodeAt(J)){ee=!1;break}if(ee===!0){se=ce;break}}return se===n&&$!==n&&(se=$),se},s=function z($){for(var ae=this.internal.write,J=this.internal.putStream,xe=(0,this.internal.getFilters)();xe.indexOf("FlateEncode")!==-1;)xe.splice(xe.indexOf("FlateEncode"),1);$.objectId=this.internal.newObject();var ee=[];if(ee.push({key:"Type",value:"/XObject"}),ee.push({key:"Subtype",value:"/Image"}),ee.push({key:"Width",value:$.width}),ee.push({key:"Height",value:$.height}),$.colorSpace===_.INDEXED?ee.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+($.palette.length/3-1)+" "+("sMask"in $&&$.sMask!==void 0?$.objectId+2:$.objectId+1)+" 0 R]"}):(ee.push({key:"ColorSpace",value:"/"+$.colorSpace}),$.colorSpace===_.DEVICE_CMYK&&ee.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ee.push({key:"BitsPerComponent",value:$.bitsPerComponent}),"decodeParameters"in $&&$.decodeParameters!==void 0&&ee.push({key:"DecodeParms",value:"<<"+$.decodeParameters+">>"}),"transparency"in $&&Array.isArray($.transparency)&&$.transparency.length>0){for(var ce="",se=0,be=$.transparency.length;se<be;se++)ce+=$.transparency[se]+" "+$.transparency[se]+" ";ee.push({key:"Mask",value:"["+ce+"]"})}$.sMask!==void 0&&ee.push({key:"SMask",value:$.objectId+1+" 0 R"});var Z=$.filter!==void 0?["/"+$.filter]:void 0;if(J({data:$.data,additionalKeyValues:ee,alreadyAppliedFilters:Z,objectId:$.objectId}),ae("endobj"),"sMask"in $&&$.sMask!==void 0){var ne,B=(ne=$.sMaskBitsPerComponent)!==null&&ne!==void 0?ne:$.bitsPerComponent,O={width:$.width,height:$.height,colorSpace:"DeviceGray",bitsPerComponent:B,data:$.sMask};"filter"in $&&(O.decodeParameters="/Predictor ".concat($.predictor," /Colors 1 /BitsPerComponent ").concat(B," /Columns ").concat($.width),O.filter=$.filter),z.call(this,O)}if($.colorSpace===_.INDEXED){var K=this.internal.newObject();J({data:H(new Uint8Array($.palette)),objectId:K}),ae("endobj")}},i=function(){var z=this.internal.collections[t+"images"];for(var $ in z)s.call(this,z[$])},o=function(){var z,$=this.internal.collections[t+"images"],ae=this.internal.write;for(var J in $)ae("/I"+(z=$[J]).index,z.objectId,"0","R")},c=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",o))},d=function(){var z=this.internal.collections[t+"images"];return c.call(this),z},f=function(){return Object.keys(this.internal.collections[t+"images"]).length},m=function(z){return typeof e["process"+z.toUpperCase()]=="function"},b=function(z){return _r(z)==="object"&&z.nodeType===1},g=function(z,$){if(z.nodeName==="IMG"&&z.hasAttribute("src")){var ae=""+z.getAttribute("src");if(ae.indexOf("data:image/")===0)return lx(unescape(ae).split("base64,").pop());var J=e.loadFile(ae,!0);if(J!==void 0)return J}if(z.nodeName==="CANVAS"){if(z.width===0||z.height===0)throw new Error("Given canvas must have data. Canvas width: "+z.width+", height: "+z.height);var xe;switch($){case"PNG":xe="image/png";break;case"WEBP":xe="image/webp";break;default:xe="image/jpeg"}return lx(z.toDataURL(xe,1).split("base64,").pop())}},v=function(z){var $=this.internal.collections[t+"images"];if($){for(var ae in $)if(z===$[ae].alias)return $[ae]}},E=function(z,$,ae){return z||$||(z=-96,$=-96),z<0&&(z=-1*ae.width*72/z/this.internal.scaleFactor),$<0&&($=-1*ae.height*72/$/this.internal.scaleFactor),z===0&&(z=$*ae.width/ae.height),$===0&&($=z*ae.height/ae.width),[z,$]},T=function(z,$,ae,J,xe,ee){var ce=E.call(this,ae,J,xe),se=this.internal.getCoordinateString,be=this.internal.getVerticalCoordinateString,Z=d.call(this);if(ae=ce[0],J=ce[1],Z[xe.index]=xe,ee){ee*=Math.PI/180;var ne=Math.cos(ee),B=Math.sin(ee),O=function(he){return he.toFixed(4)},K=[O(ne),O(B),O(-1*B),O(ne),0,0,"cm"]}this.internal.write("q"),ee?(this.internal.write([1,"0","0",1,se(z),be($+J),"cm"].join(" ")),this.internal.write(K.join(" ")),this.internal.write([se(ae),"0","0",se(J),"0","0","cm"].join(" "))):this.internal.write([se(ae),"0","0",se(J),se(z),be($+J),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+xe.index+" Do"),this.internal.write("Q")},_=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var A=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},R=e.__addimage__.sHashCode=function(z){var $,ae,J=0;if(typeof z=="string")for(ae=z.length,$=0;$<ae;$++)J=(J<<5)-J+z.charCodeAt($),J|=0;else if(U(z))for(ae=z.byteLength/2,$=0;$<ae;$++)J=(J<<5)-J+z[$],J|=0;return J}
vendor: 33,068 bytes, lines 471-502
471,P=e.__addimage__.validateStringAsBase64=function(z){(z=z||"").toString().trim();var $=!0;return z.length===0&&($=!1),z.length%4!=0&&($=!1),/^[A-Za-z0-9+/]+$/.test(z.substr(0,z.length-2))===!1&&($=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(z.substr(-2))===!1&&($=!1),$},V=e.__addimage__.extractImageFromDataUrl=function(z){if(z==null||!(z=z.trim()).startsWith("data:"))return null;var $=z.indexOf(",");return $<0?null:z.substring(0,$).trim().endsWith("base64")?z.substring($+1):null};e.__addimage__.isArrayBuffer=function(z){return z instanceof ArrayBuffer};var U=e.__addimage__.isArrayBufferView=function(z){return z instanceof Int8Array||z instanceof Uint8Array||z instanceof Uint8ClampedArray||z instanceof Int16Array||z instanceof Uint16Array||z instanceof Int32Array||z instanceof Uint32Array||z instanceof Float32Array||z instanceof Float64Array},D=e.__addimage__.binaryStringToUint8Array=function(z){for(var $=z.length,ae=new Uint8Array($),J=0;J<$;J++)ae[J]=z.charCodeAt(J);return ae},H=e.__addimage__.arrayBufferToBinaryString=function(z){for(var $="",ae=U(z)?z:new Uint8Array(z),J=0;J<ae.length;J+=8192)$+=String.fromCharCode.apply(null,ae.subarray(J,J+8192));return $};e.addImage=function(){var z,$,ae,J,xe,ee,ce,se,be;if(typeof arguments[1]=="number"?($=n,ae=arguments[1],J=arguments[2],xe=arguments[3],ee=arguments[4],ce=arguments[5],se=arguments[6],be=arguments[7]):($=arguments[1],ae=arguments[2],J=arguments[3],xe=arguments[4],ee=arguments[5],ce=arguments[6],se=arguments[7],be=arguments[8]),_r(z=arguments[0])==="object"&&!b(z)&&"imageData"in z){var Z=z;z=Z.imageData,$=Z.format||$||n,ae=Z.x||ae||0,J=Z.y||J||0,xe=Z.w||Z.width||xe,ee=Z.h||Z.height||ee,ce=Z.alias||ce,se=Z.compression||se,be=Z.rotation||Z.angle||be}var ne=this.internal.getFilters();if(se===void 0&&ne.indexOf("FlateEncode")!==-1&&(se="SLOW"),isNaN(ae)||isNaN(J))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var B=q.call(this,z,$,ce,se);return T.call(this,ae,J,xe,ee,B,be),this};var q=function(z,$,ae,J){var xe,ee,ce;if(typeof z=="string"&&a(z)===n){z=unescape(z);var se=W(z,!1);(se!==""||(se=e.loadFile(z,!0))!==void 0)&&(z=se)}if(b(z)&&(z=g(z,$)),$=a(z,$),!m($))throw new Error("addImage does not support files of type '"+$+"', please ensure that a plugin for '"+$+"' support is added.");if(((ce=ae)==null||ce.length===0)&&(ae=(function(be){return typeof be=="string"||U(be)?R(be):U(be.data)?R(be.data):null})(z)),(xe=v.call(this,ae))||(z instanceof Uint8Array||$==="RGBA"||(ee=z,z=D(z)),xe=this["process"+$.toUpperCase()](z,f.call(this),ae,(function(be){return be&&typeof be=="string"&&(be=be.toUpperCase()),be in e.image_compression?be:A.NONE})(J),ee)),!xe)throw new Error("An unknown error occurred whilst processing the image.");return xe},W=e.__addimage__.convertBase64ToBinaryString=function(z,$){$=typeof $!="boolean"||$;var ae,J="";if(typeof z=="string"){var xe;ae=(xe=V(z))!==null&&xe!==void 0?xe:z;try{J=lx(ae)}catch(ee){if($)throw P(ae)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ee.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return J};e.getImageProperties=function(z){var $,ae,J="";if(b(z)&&(z=g(z)),typeof z=="string"&&a(z)===n&&((J=W(z,!1))===""&&(J=e.loadFile(z)||""),z=J),ae=a(z),!m(ae))throw new Error("addImage does not support files of type '"+ae+"', please ensure that a plugin for '"+ae+"' support is added.");if(z instanceof Uint8Array||(z=D(z)),!($=this["process"+ae.toUpperCase()](z)))throw new Error("An unknown error occurred whilst processing the image");return $.fileType=ae,$}})(en.API),(function(e){var t=function(n){if(n!==void 0&&n!="")return!0};en.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(n){for(var r,a,s,i=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(n.objId),d=n.pageContext.annotations,f=!1,m=0;m<d.length&&!f;m++)switch((r=d[m]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(f=!0);break;case"reference":case"text":case"freetext":f=!0}if(f!=0){this.internal.write("/Annots [");for(var b=0;b<d.length;b++){r=d[b];var g=this.internal.pdfEscape,v=this.internal.getEncryptor(n.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var E=this.internal.newAdditionalObject(),T=this.internal.newAdditionalObject(),_=this.internal.getEncryptor(E.objId),A=r.title||"Note";s="<</Type /Annot /Subtype /Text "+(a="/Rect ["+i(r.bounds.x)+" "+o(r.bounds.y+r.bounds.h)+" "+i(r.bounds.x+r.bounds.w)+" "+o(r.bounds.y)+"] ")+"/Contents ("+g(_(r.contents))+")",s+=" /Popup "+T.objId+" 0 R",s+=" /P "+c.objId+" 0 R",s+=" /T ("+g(_(A))+") >>",E.content=s;var R=E.objId+" 0 R";s="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+i(r.bounds.x+30)+" "+o(r.bounds.y+r.bounds.h)+" "+i(r.bounds.x+r.bounds.w+30)+" "+o(r.bounds.y)+"] ")+" /Parent "+R,r.open&&(s+=" /Open true"),s+=" >>",T.content=s,this.internal.write(E.objId,"0 R",T.objId,"0 R");break;case"freetext":a="/Rect ["+i(r.bounds.x)+" "+o(r.bounds.y)+" "+i(r.bounds.x+r.bounds.w)+" "+o(r.bounds.y+r.bounds.h)+"] ";var P="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");s="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+g(v(r.contents))+")",s+=" /DS("+g(v(P))+")",s+=" /Border [0 0 0]",s+=" >>",this.internal.write(s);break;case"link":if(r.options.name){var V=this.annotations._nameMap[r.options.name];r.options.pageNumber=V.page,r.options.top=V.y}else r.options.top||(r.options.top=0);if(a="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",s="",r.options.url)s="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+g(v(r.options.url))+") >>";else if(r.options.pageNumber)switch(s="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":s+=" /Fit]";break;case"FitH":s+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,s+=" /FitV "+r.options.left+"]";break;default:var U=o(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),s+=" /XYZ "+r.options.left+" "+U+" "+r.options.zoom+"]"}s!=""&&(s+=" >>",this.internal.write(s))}}this.internal.write("]")}}]),e.createAnnotation=function(n){var r=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":r.pageContext.annotations.push(n)}},e.link=function(n,r,a,s,i){var o=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:c(n),y:d(r),w:c(n+a),h:d(r+s)},options:i,type:"link"})},e.textWithLink=function(n,r,a,s){var i,o,c=this.getTextWidth(n),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(s.maxWidth!==void 0){o=s.maxWidth;var f=this.splitTextToSize(n,o).length;i=Math.ceil(d*f)}else o=c,i=d;return this.text(n,r,a,s),a+=.2*d,s.align==="center"&&(r-=c/2),s.align==="right"&&(r-=c),this.link(r,a-d,o,i,s),c},e.getTextWidth=function(n){var r=this.internal.getFontSize();return this.getStringUnitWidth(n)*r/this.internal.scaleFactor}})(en.API),(function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];e.__arabicParser__={};var s=e.__arabicParser__.isInArabicSubstitutionA=function(E){return t[E.charCodeAt(0)]!==void 0},i=e.__arabicParser__.isArabicLetter=function(E){return typeof E=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(E)},o=e.__arabicParser__.isArabicEndLetter=function(E){return i(E)&&s(E)&&t[E.charCodeAt(0)].length<=2},c=e.__arabicParser__.isArabicAlfLetter=function(E){return i(E)&&a.indexOf(E.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(E){return i(E)&&s(E)&&t[E.charCodeAt(0)].length>=1};var d=e.__arabicParser__.arabicLetterHasFinalForm=function(E){return i(E)&&s(E)&&t[E.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(E){return i(E)&&s(E)&&t[E.charCodeAt(0)].length>=3};var f=e.__arabicParser__.arabicLetterHasMedialForm=function(E){return i(E)&&s(E)&&t[E.charCodeAt(0)].length==4},m=e.__arabicParser__.resolveLigatures=function(E){var T=0,_=n,A="",R=0;for(T=0;T<E.length;T+=1)_[E.charCodeAt(T)]!==void 0?(R++,typeof(_=_[E.charCodeAt(T)])=="number"&&(A+=String.fromCharCode(_),_=n,R=0),T===E.length-1&&(_=n,A+=E.charAt(T-(R-1)),T-=R-1,R=0)):(_=n,A+=E.charAt(T-R),T-=R,R=0);return A};e.__arabicParser__.isArabicDiacritic=function(E){return E!==void 0&&r[E.charCodeAt(0)]!==void 0};var b=e.__arabicParser__.getCorrectForm=function(E,T,_){return i(E)?s(E)===!1?-1:!d(E)||!i(T)&&!i(_)||!i(_)&&o(T)||o(E)&&!i(T)||o(E)&&c(T)||o(E)&&o(T)?0:f(E)&&i(T)&&!o(T)&&i(_)&&d(_)?3:o(E)||!i(_)?1:2:-1},g=function(E){var T=0,_=0,A=0,R="",P="",V="",U=(E=E||"").split("\\s+"),D=[];for(T=0;T<U.length;T+=1){for(D.push(""),_=0;_<U[T].length;_+=1)R=U[T][_],P=U[T][_-1],V=U[T][_+1],i(R)?(A=b(R,P,V),D[T]+=A!==-1?String.fromCharCode(t[R.charCodeAt(0)][A]):R):D[T]+=R;D[T]=m(D[T])}return D.join(" ")},v=e.__arabicParser__.processArabic=e.processArabic=function(){var E,T=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,_=[];if(Array.isArray(T)){var A=0;for(_=[],A=0;A<T.length;A+=1)Array.isArray(T[A])?_.push([g(T[A][0]),T[A][1],T[A][2]]):_.push([g(T[A])]);E=_}else E=g(T);return typeof arguments[0]=="string"?E:(arguments[0].text=E,arguments[0])};e.events.push(["preProcessText",v])})(en.API),en.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this},(function(e){var t=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(o){n=o}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(o){r=isNaN(o)||Number.isInteger(o)===!1||o<0?150:o,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var a=300;Object.defineProperty(this,"height",{get:function(){return a},set:function(o){a=isNaN(o)||Number.isInteger(o)===!1||o<0?300:o,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(o){s=o}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(o){i=o}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,r){var a;if((n=n||"2d")!=="2d")return null;for(a in r)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=r[a]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(en.API),(function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(E){c=E}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(E){d=E}});var f=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return f},set:function(E){f=E}});var m=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return m},set:function(E){m=E}});var b=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return b},set:function(E){b=E}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(E){g=E}});var v=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return v},set:function(E){v=E}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(c){return r.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},e.getTextDimensions=function(c,d){r.call(this);var f=(d=d||{}).fontSize||this.getFontSize(),m=d.font||this.getFont(),b=d.scaleFactor||this.internal.scaleFactor,g=0,v=0,E=0,T=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c)}var _=d.maxWidth;_>0?typeof c=="string"?c=this.splitTextToSize(c,_):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(R,P){return R.concat(T.splitTextToSize(P,_))},[])):c=Array.isArray(c)?c:[c];for(var A=0;A<c.length;A++)g<(E=this.getStringUnitWidth(c[A],{font:m})*f)&&(g=E);return g!==0&&(v=c.length),{w:g/=b,h:Math.max((v*f*this.getLineHeightFactor()-f*(this.getLineHeightFactor()-1))/b,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var c=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new s(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var i=e.cell=function(){var c;c=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var d=this.internal.__cell__.lastCell,f=this.internal.__cell__.padding,m=this.internal.__cell__.margins||t,b=this.internal.__cell__.tableHeaderRow,g=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===c.lineNumber?(c.x=(d.x||0)+(d.width||0),c.y=d.y||0):d.y+d.height+c.height+m.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=m.top,g&&b&&(this.printHeaderRow(c.lineNumber,!0),c.y+=b[0].height)):c.y=d.y+d.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,n===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-f,c.y+f,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+f,{align:"center",baseline:"top",maxWidth:c.width-f-f}):this.text(c.text,c.x+f,c.y+f,{align:"left",baseline:"top",maxWidth:c.width-f-f})),this.internal.__cell__.lastCell=c,this};e.table=function(c,d,f,m,b){if(r.call(this),!f)throw new Error("No data for PDF table.");var g,v,E,T,_=[],A=[],R=[],P={},V={},U=[],D=[],H=(b=b||{}).autoSize||!1,q=b.printHeaders!==!1,W=b.css&&b.css["font-size"]!==void 0?16*b.css["font-size"]:b.fontSize||12,z=b.margins||Object.assign({width:this.getPageWidth()},t),$=typeof b.padding=="number"?b.padding:3,ae=b.headerBackgroundColor||"#c8c8c8",J=b.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=q,this.internal.__cell__.margins=z,this.internal.__cell__.table_font_size=W,this.internal.__cell__.padding=$,this.internal.__cell__.headerBackgroundColor=ae,this.internal.__cell__.headerTextColor=J,this.setFontSize(W),m==null)A=_=Object.keys(f[0]),R=_.map(function(){return"left"});else if(Array.isArray(m)&&_r(m[0])==="object")for(_=m.map(function(Z){return Z.name}),A=m.map(function(Z){return Z.prompt||Z.name||""}),R=m.map(function(Z){return Z.align||"left"}),g=0;g<m.length;g+=1)V[m[g].name]=.7499990551181103*m[g].width;else Array.isArray(m)&&typeof m[0]=="string"&&(A=_=m,R=_.map(function(){return"left"}));if(H||Array.isArray(m)&&typeof m[0]=="string")for(g=0;g<_.length;g+=1){for(P[T=_[g]]=f.map(function(Z){return Z[T]}),this.setFont(void 0,"bold"),U.push(this.getTextDimensions(A[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),v=P[T],this.setFont(void 0,"normal"),E=0;E<v.length;E+=1)U.push(this.getTextDimensions(v[E],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);V[T]=Math.max.apply(null,U)+$+$,U=[]}if(q){var xe={};for(g=0;g<_.length;g+=1)xe[_[g]]={},xe[_[g]].text=A[g],xe[_[g]].align=R[g];var ee=o.call(this,xe,V);D=_.map(function(Z){return new s(c,d,V[Z],ee,xe[Z].text,void 0,xe[Z].align)}),this.setTableHeaderRow(D),this.printHeaderRow(1,!1)}var ce=m.reduce(function(Z,ne){return Z[ne.name]=ne.align,Z},{});for(g=0;g<f.length;g+=1){"rowStart"in b&&b.rowStart instanceof Function&&b.rowStart({row:g,data:f[g]},this);var se=o.call(this,f[g],V);for(E=0;E<_.length;E+=1){var be=f[g][_[E]];"cellStart"in b&&b.cellStart instanceof Function&&b.cellStart({row:g,col:E,data:be},this),i.call(this,new s(c,d,V[_[E]],se,be,g+2,ce[_[E]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=d,this};var o=function(c,d){var f=this.internal.__cell__.padding,m=this.internal.__cell__.table_font_size,b=this.internal.scaleFactor;return Object.keys(c).map(function(g){var v=c[g];return this.splitTextToSize(v.hasOwnProperty("text")?v.text:v,d[g]-f-f)},this).map(function(g){return this.getLineHeightFactor()*g.length*m/b+f+f},this).reduce(function(g,v){return Math.max(g,v)},0)};e.setTableHeaderRow=function(c){r.call(this),this.internal.__cell__.tableHeaderRow=c},e.printHeaderRow=function(c,d){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var f;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var m=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(m[0],m[1],m[2],m[3],void 0,-1)}this.setFont(void 0,"bold");for(var b=[],g=0;g<this.internal.__cell__.tableHeaderRow.length;g+=1){f=this.internal.__cell__.tableHeaderRow[g].clone(),d&&(f.y=this.internal.__cell__.margins.top||0,b.push(f)),f.lineNumber=c;var v=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),i.call(this,f),this.setTextColor(v)}b.length>0&&this.setTableHeaderRow(b),this.setFont(void 0,"normal"),n=!1}})(en.API);var QO={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},XO=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],H3=YO(XO),KO=[100,200,300,400,500,600,700,800,900],ate=YO(KO);function C4(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=(function(s){return QO[s=s||"normal"]?s:"normal"})(e.style),r=(function(s){return s?typeof s=="number"?s>=100&&s<=900&&s%100==0?s:400:/^\d00$/.test(s)?parseInt(s):s==="bold"?700:400:400})(e.weight),a=(function(s){return typeof H3[s=s||"normal"]=="number"?s:"normal"})(e.stretch);return{family:t,style:n,weight:r,stretch:a,src:e.src||[],ref:e.ref||{name:t,style:[a,n,r].join(" ")}}}function nT(e,t,n,r){var a;for(a=n;a>=0&&a<t.length;a+=r)if(e[t[a]])return e[t[a]];for(a=n;a>=0&&a<t.length;a-=r)if(e[t[a]])return e[t[a]]}var ste={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},rT={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function aT(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function sT(e){return e.trimLeft()}function ite(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function ote(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var Ef,S2,iT,oT,lT,N4=["times"];function cT(e,t,n,r,a){var s=4,i=dT;switch(a){case en.API.image_compression.FAST:s=1,i=uT;break;case en.API.image_compression.MEDIUM:s=6,i=hT;break;case en.API.image_compression.SLOW:s=9,i=fT}e=(function(c,d,f,m){for(var b,g=c.length/d,v=new Uint8Array(c.length+g),E=[lte,uT,dT,hT,fT],T=0;T<g;T+=1){var _=T*d,A=c.subarray(_,_+d);if(m)v.set(m(A,f,b),_+T);else{for(var R=E.length,P=[],V=0;V<R;V+=1)P[V]=E[V](A,f,b);var U=ute(P.concat());v.set(P[U],_+T)}b=A}return v})(e,t,Math.ceil(n*r/8),i);var o=P3(e,{level:s});return en.API.__addimage__.arrayBufferToBinaryString(o)}function lte(e){var t=Array.apply([],e);return t.unshift(0),t}function uT(e,t){var n=e.length,r=[];r[0]=1;for(var a=0;a<n;a+=1){var s=e[a-t]||0;r[a+1]=e[a]-s+256&255}return r}function dT(e,t,n){var r=e.length,a=[];a[0]=2;for(var s=0;s<r;s+=1){var i=n&&n[s]||0;a[s+1]=e[s]-i+256&255}return a}function hT(e,t,n){var r=e.length,a=[];a[0]=3;for(var s=0;s<r;s+=1){var i=e[s-t]||0,o=n&&n[s]||0;a[s+1]=e[s]+256-(i+o>>>1)&255}return a}function fT(e,t,n){var r=e.length,a=[];a[0]=4;for(var s=0;s<r;s+=1){var i=cte(e[s-t]||0,n&&n[s]||0,n&&n[s-t]||0);a[s+1]=e[s]-i+256&255}return a}function cte(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),a=Math.abs(e-n),s=Math.abs(e+t-n-n);return r<=a&&r<=s?e:a<=s?t:n}function ute(e){var t=e.map(function(n){return n.reduce(function(r,a){return r+Math.abs(a)},0)});return t.indexOf(Math.min.apply(null,t))}function A4(e,t,n){var r=t*n,a=Math.floor(r/8),s=16-(r-8*a+n),i=(1<<n)-1;return JO(e,a)>>s&i}function pT(e,t,n,r){var a=n*r,s=Math.floor(a/8),i=16-(a-8*s+r),o=(1<<r)-1,c=(t&o)<<i;(function(d,f,m){if(f+1<d.byteLength)d.setUint16(f,m,!1);else{var b=m>>8&255;d.setUint8(f,b)}})(e,s,JO(e,s)&~(o<<i)&65535|c)}function JO(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function dte(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,a=e[t++],s=a>>7,i=1<<1+(7&a);e[t++],e[t++];var o=null,c=null;s&&(o=t,c=i,t+=3*i);var d=!0,f=[],m=0,b=null,g=0,v=null;for(this.width=n,this.height=r;d&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,v=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((z=e[t++])>=0))throw Error("Invalid block size");if(z===0)break;t+=z}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var E=e[t++];m=e[t++]|e[t++]<<8,b=e[t++],1&E||(b=null),g=E>>2&7,t++;break;case 254:for(;;){if(!((z=e[t++])>=0))throw Error("Invalid block size");if(z===0)break;t+=z}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var T=e[t++]|e[t++]<<8,_=e[t++]|e[t++]<<8,A=e[t++]|e[t++]<<8,R=e[t++]|e[t++]<<8,P=e[t++],V=P>>6&1,U=1<<1+(7&P),D=o,H=c,q=!1;P>>7&&(q=!0,D=t,H=U,t+=3*U);var W=t;for(t++;;){var z;if(!((z=e[t++])>=0))throw Error("Invalid block size");if(z===0)break;t+=z}f.push({x:T,y:_,width:A,height:R,has_local_palette:q,palette_offset:D,palette_size:H,data_offset:W,data_length:t-W,transparent_index:b,interlaced:!!V,delay:m,disposal:g});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return f.length},this.loopCount=function(){return v},this.frameInfo=function($){if($<0||$>=f.length)throw new Error("Frame index out of range.");return f[$]},this.decodeAndBlitFrameBGRA=function($,ae){var J=this.frameInfo($),xe=J.width*J.height;if(xe>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ee=new Uint8Array(xe);mT(e,J.data_offset,ee,xe);var ce=J.palette_offset,se=J.transparent_index;se===null&&(se=256);var be=J.width,Z=n-be,ne=be,B=4*(J.y*n+J.x),O=4*((J.y+J.height)*n+J.x),K=B,he=4*Z;J.interlaced===!0&&(he+=4*n*7);for(var we=8,Ee=0,ue=ee.length;Ee<ue;++Ee){var Ae=ee[Ee];if(ne===0&&(ne=be,(K+=he)>=O&&(he=4*Z+4*n*(we-1),K=B+(be+Z)*(we<<1),we>>=1)),Ae===se)K+=4;else{var Ie=e[ce+3*Ae],We=e[ce+3*Ae+1],st=e[ce+3*Ae+2];ae[K++]=st,ae[K++]=We,ae[K++]=Ie,ae[K++]=255}--ne}},this.decodeAndBlitFrameRGBA=function($,ae){var J=this.frameInfo($),xe=J.width*J.height;if(xe>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ee=new Uint8Array(xe);mT(e,J.data_offset,ee,xe);var ce=J.palette_offset,se=J.transparent_index;se===null&&(se=256);var be=J.width,Z=n-be,ne=be,B=4*(J.y*n+J.x),O=4*((J.y+J.height)*n+J.x),K=B,he=4*Z;J.interlaced===!0&&(he+=4*n*7);for(var we=8,Ee=0,ue=ee.length;Ee<ue;++Ee){var Ae=ee[Ee];if(ne===0&&(ne=be,(K+=he)>=O&&(he=4*Z+4*n*(we-1),K=B+(be+Z)*(we<<1),we>>=1)),Ae===se)K+=4;else{var Ie=e[ce+3*Ae],We=e[ce+3*Ae+1],st=e[ce+3*Ae+2];ae[K++]=Ie,ae[K++]=We,ae[K++]=st,ae[K++]=255}--ne}}}function mT(e,t,n,r){for(var a=e[t++],s=1<<a,i=s+1,o=i+1,c=a+1,d=(1<<c)-1,f=0,m=0,b=0,g=e[t++],v=new Int32Array(4096),E=null;;){for(;f<16&&g!==0;)m|=e[t++]<<f,f+=8,g===1?g=e[t++]:--g;if(f<c)break;var T=m&d;if(m>>=c,f-=c,T!==s){if(T===i)break;for(var _=T<o?T:E,A=0,R=_;R>s;)R=v[R]>>8,++A;var P=R;if(b+A+(_!==T?1:0)>r)return void Fr.log("Warning, gif stream longer than expected.");n[b++]=P;var V=b+=A;for(_!==T&&(n[b++]=P),R=_;A--;)R=v[R],n[--V]=255&R,R>>=8;E!==null&&o<4096&&(v[o++]=E<<8|P,o>=d+1&&c<12&&(++c,d=d<<1|1)),E=T}else o=i+1,d=(1<<(c=a+1))-1,E=null}return b!==r&&Fr.log("Warning, gif stream shorter than expected."),n}/** 472 * @license 473 Copyright (c) 2008, Adobe Systems Incorporated 474 All rights reserved. 475 476 Redistribution and use in source and binary forms, with or without 477 modification, are permitted provided that the following conditions are 478 met: 479 480 * Redistributions of source code must retain the above copyright notice, 481 this list of conditions and the following disclaimer. 482 483 * Redistributions in binary form must reproduce the above copyright 484 notice, this list of conditions and the following disclaimer in the 485 documentation and/or other materials provided with the distribution. 486 487 * Neither the name of Adobe Systems Incorporated nor the names of its 488 contributors may be used to endorse or promote products derived from 489 this software without specific prior written permission. 490 491 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 492 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 493 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 494 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 495 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 496 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 497 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 498 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 499 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 500 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 501 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 502*/function L4(e){var t,n,r,a,s,i=Math.floor,o=new Array(64),c=new Array(64),d=new Array(64),f=new Array(64),m=new Array(65535),b=new Array(65535),g=new Array(64),v=new Array(64),E=[],T=0,_=7,A=new Array(64),R=new Array(64),P=new Array(64),V=new Array(256),U=new Array(2048),D=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],H=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],q=[0,1,2,3,4,5,6,7,8,9,10,11],W=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],z=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],$=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],ae=[0,1,2,3,4,5,6,7,8,9,10,11],J=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],xe=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function ee(B,O){for(var K=0,he=0,we=new Array,Ee=1;Ee<=16;Ee++){for(var ue=1;ue<=B[Ee];ue++)we[O[he]]=[],we[O[he]][0]=K,we[O[he]][1]=Ee,he++,K++;K*=2}return we}function ce(B){for(var O=B[0],K=B[1]-1;K>=0;)O&1<<K&&(T|=1<<_),K--,--_<0&&(T==255?(se(255),se(0)):se(T),_=7,T=0)}function se(B){E.push(B)}function be(B){se(B>>8&255),se(255&B)}function Z(B,O,K,he,we){for(var Ee,ue=we[0],Ae=we[240],Ie=(function(tt,Kt){var Lt,Rt,Bt,mn,An,Be,nt,bt,ut,Et,Ct=0;for(ut=0;ut<8;++ut){Lt=tt[Ct],Rt=tt[Ct+1],Bt=tt[Ct+2],mn=tt[Ct+3],An=tt[Ct+4],Be=tt[Ct+5],nt=tt[Ct+6];var In=Lt+(bt=tt[Ct+7]),hn=Lt-bt,Yt=Rt+nt,tn=Rt-nt,an=Bt+Be,Ut=Bt-Be,Ln=mn+An,Jt=mn-An,pn=In+Ln,ur=In-Ln,wn=Yt+an,Qt=Yt-an;tt[Ct]=pn+wn,tt[Ct+4]=pn-wn;var Tt=.707106781*(Qt+ur);tt[Ct+2]=ur+Tt,tt[Ct+6]=ur-Tt;var ar=.382683433*((pn=Jt+Ut)-(Qt=tn+hn)),Qn=.5411961*pn+ar,Ur=1.306562965*Qt+ar,Za=.707106781*(wn=Ut+tn),Nt=hn+Za,ea=hn-Za;tt[Ct+5]=ea+Qn,tt[Ct+3]=ea-Qn,tt[Ct+1]=Nt+Ur,tt[Ct+7]=Nt-Ur,Ct+=8}for(Ct=0,ut=0;ut<8;++ut){Lt=tt[Ct],Rt=tt[Ct+8],Bt=tt[Ct+16],mn=tt[Ct+24],An=tt[Ct+32],Be=tt[Ct+40],nt=tt[Ct+48];var Ms=Lt+(bt=tt[Ct+56]),Rr=Lt-bt,Or=Rt+nt,yr=Rt-nt,pr=Bt+Be,Ra=Bt-Be,Il=mn+An,Rs=mn-An,vr=Ms+Il,$r=Ms-Il,ps=Or+pr,ri=Or-pr;tt[Ct]=vr+ps,tt[Ct+32]=vr-ps;var bi=.707106781*(ri+$r);tt[Ct+16]=$r+bi,tt[Ct+48]=$r-bi;var Uc=.382683433*((vr=Rs+Ra)-(ri=yr+Rr)),Wi=.5411961*vr+Uc,Yi=1.306562965*ri+Uc,Bl=.707106781*(ps=Ra+yr),Qi=Rr+Bl,Xi=Rr-Bl;tt[Ct+40]=Xi+Wi,tt[Ct+24]=Xi-Wi,tt[Ct+8]=Qi+Yi,tt[Ct+56]=Qi-Yi,Ct++}for(ut=0;ut<64;++ut)Et=tt[ut]*Kt[ut],g[ut]=Et>0?Et+.5|0:Et-.5|0;return g})(B,O),We=0;We<64;++We)v[D[We]]=Ie[We];var st=v[0]-K;K=v[0],st==0?ce(he[0]):(ce(he[b[Ee=32767+st]]),ce(m[Ee]));for(var mt=63;mt>0&&v[mt]==0;)mt--;if(mt==0)return ce(ue),K;for(var _t,fe=1;fe<=mt;){for(var yt=fe;
502v[fe]==0&&fe<=mt;)++fe;var rn=fe-yt;if(rn>=16){_t=rn>>4;for(var Ht=1;Ht<=_t;++Ht)ce(Ae);rn&=15}Ee=32767+v[fe],ce(we[(rn<<4)+b[Ee]]),ce(m[Ee]),fe++}return mt!=63&&ce(ue),K}function ne(B){B=Math.min(Math.max(B,1),100),s!=B&&((function(O){for(var K=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],he=0;he<64;he++){var we=i((K[he]*O+50)/100);we=Math.min(Math.max(we,1),255),o[D[he]]=we}for(var Ee=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ue=0;ue<64;ue++){var Ae=i((Ee[ue]*O+50)/100);Ae=Math.min(Math.max(Ae,1),255),c[D[ue]]=Ae}for(var Ie=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],We=0,st=0;st<8;st++)for(var mt=0;mt<8;mt++)d[We]=1/(o[D[We]]*Ie[st]*Ie[mt]*8),f[We]=1/(c[D[We]]*Ie[st]*Ie[mt]*8),We++})(B<50?Math.floor(5e3/B):Math.floor(200-2*B)),s=B)}this.encode=function(B,O){O&&ne(O),E=new Array,T=0,_=7,be(65496),be(65504),be(16),se(74),se(70),se(73),se(70),se(0),se(1),se(1),se(0),be(1),be(1),se(0),se(0),(function(){be(65499),be(132),se(0);for(var Rt=0;Rt<64;Rt++)se(o[Rt]);se(1);for(var Bt=0;Bt<64;Bt++)se(c[Bt])})(),(function(Rt,Bt){be(65472),be(17),se(8),be(Bt),be(Rt),se(3),se(1),se(17),se(0),se(2),se(17),se(1),se(3),se(17),se(1)})(B.width,B.height),(function(){be(65476),be(418),se(0);for(var Rt=0;Rt<16;Rt++)se(H[Rt+1]);for(var Bt=0;Bt<=11;Bt++)se(q[Bt]);se(16);for(var mn=0;mn<16;mn++)se(W[mn+1]);for(var An=0;An<=161;An++)se(z[An]);se(1);for(var Be=0;Be<16;Be++)se($[Be+1]);for(var nt=0;nt<=11;nt++)se(ae[nt]);se(17);for(var bt=0;bt<16;bt++)se(J[bt+1]);for(var ut=0;ut<=161;ut++)se(xe[ut])})(),be(65498),be(12),se(3),se(1),se(0),se(2),se(17),se(3),se(17),se(0),se(63),se(0);var K=0,he=0,we=0;T=0,_=7,this.encode.displayName="_encode_";for(var Ee,ue,Ae,Ie,We,st,mt,_t,fe,yt=B.data,rn=B.width,Ht=B.height,tt=4*rn,Kt=0;Kt<Ht;){for(Ee=0;Ee<tt;){for(We=tt*Kt+Ee,mt=-1,_t=0,fe=0;fe<64;fe++)st=We+(_t=fe>>3)*tt+(mt=4*(7&fe)),Kt+_t>=Ht&&(st-=tt*(Kt+1+_t-Ht)),Ee+mt>=tt&&(st-=Ee+mt-tt+4),ue=yt[st++],Ae=yt[st++],Ie=yt[st++],A[fe]=(U[ue]+U[Ae+256|0]+U[Ie+512|0]>>16)-128,R[fe]=(U[ue+768|0]+U[Ae+1024|0]+U[Ie+1280|0]>>16)-128,P[fe]=(U[ue+1280|0]+U[Ae+1536|0]+U[Ie+1792|0]>>16)-128;K=Z(A,d,K,t,r),he=Z(R,f,he,n,a),we=Z(P,f,we,n,a),Ee+=32}Kt+=8}if(_>=0){var Lt=[];Lt[1]=_+1,Lt[0]=(1<<_+1)-1,ce(Lt)}return be(65497),new Uint8Array(E)},e=e||50,(function(){for(var B=String.fromCharCode,O=0;O<256;O++)V[O]=B(O)})(),t=ee(H,q),n=ee($,ae),r=ee(W,z),a=ee(J,xe),(function(){for(var B=1,O=2,K=1;K<=15;K++){for(var he=B;he<O;he++)b[32767+he]=K,m[32767+he]=[],m[32767+he][1]=K,m[32767+he][0]=he;for(var we=-(O-1);we<=-B;we++)b[32767+we]=K,m[32767+we]=[],m[32767+we][1]=K,m[32767+we][0]=O-1+we;B<<=1,O<<=1}})(),(function(){for(var B=0;B<256;B++)U[B]=19595*B,U[B+256|0]=38470*B,U[B+512|0]=7471*B+32768,U[B+768|0]=-11059*B,U[B+1024|0]=-21709*B,U[B+1280|0]=32768*B+8421375,U[B+1536|0]=-27439*B,U[B+1792|0]=-5329*B})(),ne(e)}/** 503 * @license 504 * Copyright (c) 2017 Aras Abbasi 505 * 506 * Licensed under the MIT License. 507 * http://opensource.org/licenses/mit-license 508 */function wl(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function gT(e){function t(q){if(!q)throw Error("assert :P")}function n(q,W,z){for(var $=0;4>$;$++)if(q[W+$]!=z.charCodeAt($))return!0;return!1}function r(q,W,z,$,ae){for(var J=0;J<ae;J++)q[W+J]=z[$+J]}function a(q,W,z,$){for(var ae=0;ae<$;ae++)q[W+ae]=z}function s(q){return new Int32Array(q)}function i(q,W){for(var z=[],$=0;$<q;$++)z.push(new W);return z}function o(q,W){var z=[];return(function $(ae,J,xe){for(var ee=xe[J],ce=0;ce<ee&&(ae.push(xe.length>J+1?[]:new W),!(xe.length<J+1));ce++)$(ae[ce],J+1,xe)})(z,0,q),z}var c=function(){var q=this;function W(y,S){for(var L=1<<S-1>>>0;y&L;)L>>>=1;return L?(y&L-1)+L:y}function z(y,S,L,I,Q){t(!(I%L));do y[S+(I-=L)]=Q;while(0<I)}function $(y,S,L,I,Q){if(t(2328>=Q),512>=Q)var te=s(512);else if((te=s(Q))==null)return 0;return(function(re,le,de,ve,Le,He){var ye,Oe,De=le,Xe=1<<de,Fe=s(16),Qe=s(16);for(t(Le!=0),t(ve!=null),t(re!=null),t(0<de),Oe=0;Oe<Le;++Oe){if(15<ve[Oe])return 0;++Fe[ve[Oe]]}if(Fe[0]==Le)return 0;for(Qe[1]=0,ye=1;15>ye;++ye){if(Fe[ye]>1<<ye)return 0;Qe[ye+1]=Qe[ye]+Fe[ye]}for(Oe=0;Oe<Le;
vendor: 46,434 bytes, line 508
508++Oe)ye=ve[Oe],0<ve[Oe]&&(He[Qe[ye]++]=Oe);if(Qe[15]==1)return(ve=new ae).g=0,ve.value=He[0],z(re,De,1,Xe,ve),Xe;var et,dt=-1,it=Xe-1,qt=0,Ot=1,yn=1,It=1<<de;for(Oe=0,ye=1,Le=2;ye<=de;++ye,Le<<=1){if(Ot+=yn<<=1,0>(yn-=Fe[ye]))return 0;for(;0<Fe[ye];--Fe[ye])(ve=new ae).g=ye,ve.value=He[Oe++],z(re,De+qt,Le,It,ve),qt=W(qt,ye)}for(ye=de+1,Le=2;15>=ye;++ye,Le<<=1){if(Ot+=yn<<=1,0>(yn-=Fe[ye]))return 0;for(;0<Fe[ye];--Fe[ye]){if(ve=new ae,(qt&it)!=dt){for(De+=It,et=1<<(dt=ye)-de;15>dt&&!(0>=(et-=Fe[dt]));)++dt,et<<=1;Xe+=It=1<<(et=dt-de),re[le+(dt=qt&it)].g=et+de,re[le+dt].value=De-le-dt}ve.g=ye-de,ve.value=He[Oe++],z(re,De+(qt>>de),Le,It,ve),qt=W(qt,ye)}}return Ot!=2*Qe[15]-1?0:Xe})(y,S,L,I,Q,te)}function ae(){this.value=this.g=0}function J(){this.value=this.g=0}function xe(){this.G=i(5,ae),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=i(eu,J)}function ee(y,S,L,I){t(y!=null),t(S!=null),t(2147483648>I),y.Ca=254,y.I=0,y.b=-8,y.Ka=0,y.oa=S,y.pa=L,y.Jd=S,y.Yc=L+I,y.Zc=4<=I?L+I-4+1:L,ue(y)}function ce(y,S){for(var L=0;0<S--;)L|=Ie(y,128)<<S;return L}function se(y,S){var L=ce(y,S);return Ae(y)?-L:L}function be(y,S,L,I){var Q,te=0;for(t(y!=null),t(S!=null),t(4294967288>I),y.Sb=I,y.Ra=0,y.u=0,y.h=0,4<I&&(I=4),Q=0;Q<I;++Q)te+=S[L+Q]<<8*Q;y.Ra=te,y.bb=I,y.oa=S,y.pa=L}function Z(y){for(;8<=y.u&&y.bb<y.Sb;)y.Ra>>>=8,y.Ra+=y.oa[y.pa+y.bb]<<ts-8>>>0,++y.bb,y.u-=8;he(y)&&(y.h=1,y.u=0)}function ne(y,S){if(t(0<=S),!y.h&&S<=tu){var L=K(y)&Wl[S];return y.u+=S,Z(y),L}return y.h=1,y.u=0}function B(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function O(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function K(y){return y.Ra>>>(y.u&ts-1)>>>0}function he(y){return t(y.bb<=y.Sb),y.h||y.bb==y.Sb&&y.u>ts}function we(y,S){y.u=S,y.h=he(y)}function Ee(y){y.u>=Ps&&(t(y.u>=Ps),Z(y))}function ue(y){t(y!=null&&y.oa!=null),y.pa<y.Zc?(y.I=(y.oa[y.pa++]|y.I<<8)>>>0,y.b+=8):(t(y!=null&&y.oa!=null),y.pa<y.Yc?(y.b+=8,y.I=y.oa[y.pa++]|y.I<<8):y.Ka?y.b=0:(y.I<<=8,y.b+=8,y.Ka=1))}function Ae(y){return ce(y,1)}function Ie(y,S){var L=y.Ca;0>y.b&&ue(y);var I=y.b,Q=L*S>>>8,te=(y.I>>>I>Q)+0;for(te?(L-=Q,y.I-=Q+1<<I>>>0):L=Q+1,I=L,Q=0;256<=I;)Q+=8,I>>=8;return I=7^Q+nu[I],y.b-=I,y.Ca=(L<<I)-1,te}function We(y,S,L){y[S+0]=L>>24&255,y[S+1]=L>>16&255,y[S+2]=L>>8&255,y[S+3]=255&L}function st(y,S){return y[S+0]|y[S+1]<<8}function mt(y,S){return st(y,S)|y[S+2]<<16}function _t(y,S){return st(y,S)|st(y,S+2)<<16}function fe(y,S){var L=1<<S;return t(y!=null),t(0<S),y.X=s(L),y.X==null?0:(y.Mb=32-S,y.Xa=S,1)}function yt(y,S){t(y!=null),t(S!=null),t(y.Xa==S.Xa),r(S.X,0,y.X,0,1<<S.Xa)}function rn(){this.X=[],this.Xa=this.Mb=0}function Ht(y,S,L,I){t(L!=null),t(I!=null);var Q=L[0],te=I[0];return Q==0&&(Q=(y*te+S/2)/S),te==0&&(te=(S*Q+y/2)/y),0>=Q||0>=te?0:(L[0]=Q,I[0]=te,1)}function tt(y,S){return y+(1<<S)-1>>>S}function Kt(y,S){return((4278255360&y)+(4278255360&S)>>>0&4278255360)+((16711935&y)+(16711935&S)>>>0&16711935)>>>0}function Lt(y,S){q[S]=function(L,I,Q,te,re,le,de){var ve;for(ve=0;ve<re;++ve){var Le=q[y](le[de+ve-1],Q,te+ve);le[de+ve]=Kt(L[I+ve],Le)}}}function Rt(){this.ud=this.hd=this.jd=0}function Bt(y,S){return((4278124286&(y^S))>>>1)+(y&S)>>>0}function mn(y){return 0<=y&&256>y?y:0>y?0:255<y?255:void 0}function An(y,S){return mn(y+(y-S+.5>>1))}function Be(y,S,L){return Math.abs(S-L)-Math.abs(y-L)}function nt(y,S,L,I,Q,te,re){for(I=te[re-1],L=0;L<Q;++L)te[re+L]=I=Kt(y[S+L],I)}function bt(y,S,L,I,Q){var te;for(te=0;te<L;++te){var re=y[S+te],le=re>>8&255,de=16711935&(de=(de=16711935&re)+((le<<16)+le));I[Q+te]=(4278255360&re)+de>>>0}}function ut(y,S){S.jd=255&y,S.hd=y>>8&255,S.ud=y>>16&255}function Et(y,S,L,I,Q,te){var re;for(re=0;re<I;++re){var le=S[L+re],de=le>>>8,ve=le,Le=255&(Le=(Le=le>>>16)+((y.jd<<24>>24)*(de<<24>>24)>>>5));ve=255&(ve=(ve+=(y.hd<<24>>24)*(de<<24>>24)>>>5)+((y.ud<<24>>24)*(Le<<24>>24)>>>5)),Q[te+re]=(4278255360&le)+(Le<<16)+ve}}function Ct(y,S,L,I,Q){q[S]=function(te,re,le,de,ve,Le,He,ye,Oe){for(de=He;de<ye;++de)for(He=0;He<Oe;++He)ve[Le++]=Q(le[I(te[re++])])},q[y]=function(te,re,le,de,ve,Le,He){var ye=8>>te.b,Oe=te.Ea,De=te.K[0],Xe=te.w;if(8>ye)for(te=(1<<te.b)-1,Xe=(1<<ye)-1;re<le;++re){var Fe,Qe=0;for(Fe=0;Fe<Oe;++Fe)Fe&te||(Qe=I(de[ve++])),Le[He++]=Q(De[Qe&Xe]),Qe>>=ye}else q["VP8LMapColor"+L](de,ve,De,Xe,Le,He,re,le,Oe)}}function In(y,S,L,I,Q){for(L=S+L;S<L;){var te=y[S++];I[Q++]=te>>16&255,I[Q++]=te>>8&255,I[Q++]=255&te}}function hn(y,S,L,I,Q){for(L=S+L;S<L;){var te=y[S++];I[Q++]=te>>16&255,I[Q++]=te>>8&255,I[Q++]=255&te,I[Q++]=te>>24&255}}function Yt(y,S,L,I,Q){for(L=S+L;S<L;){var te=(re=y[S++])>>16&240|re>>12&15,re=240&re|re>>28&15;I[Q++]=te,I[Q++]=re}}function tn(y,S,L,I,Q){for(L=S+L;S<L;){var te=(re=y[S++])>>16&248|re>>13&7,re=re>>5&224|re>>3&31;I[Q++]=te,I[Q++]=re}}function an(y,S,L,I,Q){for(L=S+L;S<L;){var te=y[S++];I[Q++]=255&te,I[Q++]=te>>8&255,I[Q++]=te>>16&255}}function Ut(y,S,L,I,Q,te){if(te==0)for(L=S+L;S<L;)We(I,((te=y[S++])[0]>>24|te[1]>>8&65280|te[2]<<8&16711680|te[3]<<24)>>>0),Q+=32;else r(I,Q,y,S,L)}function Ln(y,S){q[S][0]=q[y+"0"],q[S][1]=q[y+"1"],q[S][2]=q[y+"2"],q[S][3]=q[y+"3"],q[S][4]=q[y+"4"],q[S][5]=q[y+"5"],q[S][6]=q[y+"6"],q[S][7]=q[y+"7"],q[S][8]=q[y+"8"],q[S][9]=q[y+"9"],q[S][10]=q[y+"10"],q[S][11]=q[y+"11"],q[S][12]=q[y+"12"],q[S][13]=q[y+"13"],q[S][14]=q[y+"0"],q[S][15]=q[y+"0"]}function Jt(y){return y==R0||y==qh||y==ld||y==Vh}function pn(){this.eb=[],this.size=this.A=this.fb=0}function ur(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function wn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new pn,this.f.kb=new ur,this.sd=null}function Qt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Tt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ar(y){return alert("todo:WebPSamplerProcessPlane"),y.T}function Qn(y,S){var L=y.T,I=S.ba.f.RGBA,Q=I.eb,te=I.fb+y.ka*I.A,re=ss[S.ba.S],le=y.y,de=y.O,ve=y.f,Le=y.N,He=y.ea,ye=y.W,Oe=S.cc,De=S.dc,Xe=S.Mc,Fe=S.Nc,Qe=y.ka,et=y.ka+y.T,dt=y.U,it=dt+1>>1;for(Qe==0?re(le,de,null,null,ve,Le,He,ye,ve,Le,He,ye,Q,te,null,null,dt):(re(S.ec,S.fc,le,de,Oe,De,Xe,Fe,ve,Le,He,ye,Q,te-I.A,Q,te,dt),++L);Qe+2<et;Qe+=2)Oe=ve,De=Le,Xe=He,Fe=ye,Le+=y.Rc,ye+=y.Rc,te+=2*I.A,re(le,(de+=2*y.fa)-y.fa,le,de,Oe,De,Xe,Fe,ve,Le,He,ye,Q,te-I.A,Q,te,dt);return de+=y.fa,y.j+et<y.o?(r(S.ec,S.fc,le,de,dt),r(S.cc,S.dc,ve,Le,it),r(S.Mc,S.Nc,He,ye,it),L--):1&et||re(le,de,null,null,ve,Le,He,ye,ve,Le,He,ye,Q,te+I.A,null,null,dt),L}function Ur(y,S,L){var I=y.F,Q=[y.J];if(I!=null){var te=y.U,re=S.ba.S,le=re==M0||re==ld;S=S.ba.f.RGBA;var de=[0],ve=y.ka;de[0]=y.T,y.Kb&&(ve==0?--de[0]:(--ve,Q[0]-=y.width),y.j+y.ka+y.T==y.o&&(de[0]=y.o-y.j-ve));var Le=S.eb;ve=S.fb+ve*S.A,y=C0(I,Q[0],y.width,te,de,Le,ve+(le?0:3),S.A),t(L==de),y&&Jt(re)&&ou(Le,ve,le,te,de,S.A)}return 0}function Za(y){var S=y.ma,L=S.ba.S,I=11>L,Q=L==ws||L==ki||L==M0||L==od||L==12||Jt(L);if(S.memory=null,S.Ib=null,S.Jb=null,S.Nd=null,!bs(S.Oa,y,Q?11:12))return 0;if(Q&&Jt(L)&&cl(),y.da)alert("todo:use_scaling");else{if(I){if(S.Ib=ar,y.Kb){if(L=y.U+1>>1,S.memory=s(y.U+2*L),S.memory==null)return 0;S.ec=S.memory,S.fc=0,S.cc=S.ec,S.dc=S.fc+y.U,S.Mc=S.cc,S.Nc=S.dc+L,S.Ib=Qn,cl()}}else alert("todo:EmitYUV");Q&&(S.Jb=Ur,I&&Yr())}if(I&&!rc){for(y=0;256>y;++y)is[y]=89858*(y-128)+dd>>Li,yb[y]=-22014*(y-128)+dd,mg[y]=-45773*(y-128),Qh[y]=113618*(y-128)+dd>>Li;for(y=du;y<nc;++y)S=76283*(y-16)+dd>>Li,vb[y-du]=si(S,255),wb[y-du]=si(S+8>>4,15);rc=1}return 1}function Nt(y){var S=y.ma,L=y.U,I=y.T;return t(!(1&y.ka)),0>=L||0>=I?0:(L=S.Ib(y,S),S.Jb!=null&&S.Jb(y,S,L),S.Dc+=L,1)}function ea(y){y.ma.memory=null}function Ms(y,S,L,I){return ne(y,8)!=47?0:(S[0]=ne(y,14)+1,L[0]=ne(y,14)+1,I[0]=ne(y,1),ne(y,3)!=0?0:!y.h)}function Rr(y,S){if(4>y)return y+1;var L=y-2>>1;return(2+(1&y)<<L)+ne(S,L)+1}function Or(y,S){return 120<S?S-120:1<=(L=((L=Ti[S-1])>>4)*y+(8-(15&L)))?L:1;var L}function yr(y,S,L){var I=K(L),Q=y[S+=255&I].g-8;return 0<Q&&(we(L,L.u+8),I=K(L),S+=y[S].value,S+=I&(1<<Q)-1),we(L,L.u+y[S].g),y[S].value}function pr(y,S,L){return L.g+=y.g,L.value+=y.value<<S>>>0,t(8>=L.g),y.g}function Ra(y,S,L){var I=y.xc;return t((S=I==0?0:y.vc[y.md*(L>>I)+(S>>I)])<y.Wb),y.Ya[S]}function Il(y,S,L,I){var Q=y.ab,te=y.c*S,re=y.C;S=re+S;var le=L,de=I;for(I=y.Ta,L=y.Ua;0<Q--;){var ve=y.gc[Q],Le=re,He=S,ye=le,Oe=de,De=(de=I,le=L,ve.Ea);switch(t(Le<He),t(He<=ve.nc),ve.hc){case 2:rd(ye,Oe,(He-Le)*De,de,le);break;case 0:var Xe=Le,Fe=He,Qe=de,et=le,dt=(It=ve).Ea;Xe==0&&(dl(ye,Oe,null,null,1,Qe,et),nt(ye,Oe+1,0,0,dt-1,Qe,et+1),Oe+=dt,et+=dt,++Xe);for(var it=1<<It.b,qt=it-1,Ot=tt(dt,It.b),yn=It.K,It=It.w+(Xe>>It.b)*Ot;Xe<Fe;){var Bn=yn,Ir=It,kn=1;for(Yl(ye,Oe,Qe,et-dt,1,Qe,et);kn<dt;){var Pt=(kn&~qt)+it;Pt>dt&&(Pt=dt),(0,js[Bn[Ir++]>>8&15])(ye,Oe+ +kn,Qe,et+kn-dt,Pt-kn,Qe,et+kn),kn=Pt}Oe+=dt,et+=dt,++Xe&qt||(It+=Ot)}He!=ve.nc&&r(de,le-De,de,le+(He-Le-1)*De,De);break;case 1:for(De=ye,Fe=Oe,dt=(ye=ve.Ea)-(et=ye&~(Qe=(Oe=1<<ve.b)-1)),Xe=tt(ye,ve.b),it=ve.K,ve=ve.w+(Le>>ve.b)*Xe;Le<He;){for(qt=it,Ot=ve,yn=new Rt,It=Fe+et,Bn=Fe+ye;Fe<It;)ut(qt[Ot++],yn),Ql(yn,De,Fe,Oe,de,le),Fe+=Oe,le+=Oe;Fe<Bn&&(ut(qt[Ot++],yn),Ql(yn,De,Fe,dt,de,le),Fe+=dt,le+=dt),++Le&Qe||(ve+=Xe)}break;case 3:if(ye==de&&Oe==le&&0<ve.b){for(Fe=de,ye=De=le+(He-Le)*De-(et=(He-Le)*tt(ve.Ea,ve.b)),Oe=de,Qe=le,Xe=[],et=(dt=et)-1;0<=et;--et)Xe[et]=Oe[Qe+et];for(et=dt-1;0<=et;--et)Fe[ye+et]=Xe[et];ru(ve,Le,He,de,De,de,le)}else ru(ve,Le,He,ye,Oe,de,le)}le=I,de=L}de!=L&&r(I,L,le,de,te)}function Rs(y,S){var L=y.V,I=y.Ba+y.c*y.C,Q=S-y.C;if(t(S<=y.l.o),t(16>=Q),0<Q){var te=y.l,re=y.Ta,le=y.Ua,de=te.width;if(Il(y,Q,L,I),Q=le=[le],t((L=y.C)<(I=S)),t(te.v<te.va),I>te.o&&(I=te.o),L<te.j){var ve=te.j-L;L=te.j,Q[0]+=ve*de}if(L>=I?L=0:(Q[0]+=4*te.v,te.ka=L-te.j,te.U=te.va-te.v,te.T=I-L,L=1),L){if(le=le[0],11>(L=y.ca).S){var Le=L.f.RGBA,He=(I=L.S,Q=te.U,te=te.T,ve=Le.eb,Le.A),ye=te;for(Le=Le.fb+y.Ma*Le.A;0<ye--;){var Oe=re,De=le,Xe=Q,Fe=ve,Qe=Le;switch(I){case Hh:ad(Oe,De,Xe,Fe,Qe);break;case ws:sd(Oe,De,Xe,Fe,Qe);break;case R0:sd(Oe,De,Xe,Fe,Qe),ou(Fe,Qe,0,Xe,1,0);break;case Uh:su(Oe,De,Xe,Fe,Qe);break;case ki:Ut(Oe,De,Xe,Fe,Qe,1);break;case qh:Ut(Oe,De,Xe,Fe,Qe,1),ou(Fe,Qe,0,Xe,1,0);break;case M0:Ut(Oe,De,Xe,Fe,Qe,0);break;case ld:Ut(Oe,De,Xe,Fe,Qe,0),ou(Fe,Qe,1,Xe,1,0);break;case od:au(Oe,De,Xe,Fe,Qe);break;case Vh:au(Oe,De,Xe,Fe,Qe),Ei(Fe,Qe,Xe,1,0);break;case Kl:hl(Oe,De,Xe,Fe,Qe);break;default:t(0)}le+=de,Le+=He}y.Ma+=te}else alert("todo:EmitRescaledRowsYUVA");t(y.Ma<=L.height)}}y.C=S,t(y.C<=y.i)}function vr(y){var S;if(0<y.ua)return 0;for(S=0;S<y.Wb;++S){var L=y.Ya[S].G,I=y.Ya[S].H;if(0<L[1][I[1]+0].g||0<L[2][I[2]+0].g||0<L[3][I[3]+0].g)return 0}return 1}function $r(y,S,L,I,Q,te){if(y.Z!=0){var re=y.qd,le=y.rd;for(t(pl[y.Z]!=null);S<L;++S)pl[y.Z](re,le,I,Q,I,Q,te),re=I,le=Q,Q+=te;y.qd=re,y.rd=le}}function ps(y,S){var L=y.l.ma,I=L.Z==0||L.Z==1?y.l.j:y.C;if(I=y.C<I?I:y.C,t(S<=y.l.o),S>I){var Q=y.l.width,te=L.ca,re=L.tb+Q*I,le=y.V,de=y.Ba+y.c*I,ve=y.gc;t(y.ab==1),t(ve[0].hc==3),Fp(ve[0],I,S,le,de,te,re),$r(L,I,S,te,re,Q)}y.C=y.Ma=S}function ri(y,S,L,I,Q,te,re){var le=y.$/I,de=y.$%I,ve=y.m,Le=y.s,He=L+y.$,ye=He;Q=L+I*Q;var Oe=L+I*te,De=280+Le.ua,Xe=y.Pb?le:16777216,Fe=0<Le.ua?Le.Wa:null,Qe=Le.wc,et=He<Oe?Ra(Le,de,le):null;t(y.C<te),t(Oe<=Q);var dt=!1;e:for(;;){for(;dt||He<Oe;){var it=0;if(le>=Xe){var qt=He-L;t((Xe=y).Pb),Xe.wd=Xe.m,Xe.xd=qt,0<Xe.s.ua&&yt(Xe.s.Wa,Xe.s.vb),Xe=le+Jl}if(de&Qe||(et=Ra(Le,de,le)),t(et!=null),et.Qb&&(S[He]=et.qb,dt=!0),!dt)if(Ee(ve),et.jc){it=ve,qt=S;var Ot=He,yn=et.pd[K(it)&eu-1];t(et.jc),256>yn.g?(we(it,it.u+yn.g),qt[Ot]=yn.value,it=0):(we(it,it.u+yn.g-256),t(256<=yn.value),it=yn.value),it==0&&(dt=!0)}else it=yr(et.G[0],et.H[0],ve);if(ve.h)break;if(dt||256>it){if(!dt)if(et.nd)S[He]=(et.qb|it<<8)>>>0;else{if(Ee(ve),dt=yr(et.G[1],et.H[1],ve),Ee(ve),qt=yr(et.G[2],et.H[2],ve),Ot=yr(et.G[3],et.H[3],ve),ve.h)break;S[He]=(Ot<<24|dt<<16|it<<8|qt)>>>0}if(dt=!1,++He,++de>=I&&(de=0,++le,re!=null&&le<=te&&!(le%16)&&re(y,le),Fe!=null))for(;ye<He;)it=S[ye++],Fe.X[(506832829*it&4294967295)>>>Fe.Mb]=it}else if(280>it){if(it=Rr(it-256,ve),qt=yr(et.G[4],et.H[4],ve),Ee(ve),qt=Or(I,qt=Rr(qt,ve)),ve.h)break;if(He-L<qt||Q-He<it)break e;for(Ot=0;Ot<it;++Ot)S[He+Ot]=S[He+Ot-qt];for(He+=it,de+=it;de>=I;)de-=I,++le,re!=null&&le<=te&&!(le%16)&&re(y,le);if(t(He<=Q),de&Qe&&(et=Ra(Le,de,le)),Fe!=null)for(;ye<He;)it=S[ye++],Fe.X[(506832829*it&4294967295)>>>Fe.Mb]=it}else{if(!(it<De))break e;for(dt=it-280,t(Fe!=null);ye<He;)it=S[ye++],Fe.X[(506832829*it&4294967295)>>>Fe.Mb]=it;it=He,t(!(dt>>>(qt=Fe).Xa)),S[it]=qt.X[dt],dt=!0}dt||t(ve.h==he(ve))}if(y.Pb&&ve.h&&He<Q)t(y.m.h),y.a=5,y.m=y.wd,y.$=y.xd,0<y.s.ua&&yt(y.s.vb,y.s.Wa);else{if(ve.h)break e;re?.(y,le>te?te:le),y.a=0,y.$=He-L}return 1}return y.a=3,0}function bi(y){t(y!=null),y.vc=null,y.yc=null,y.Ya=null;var S=y.Wa;S!=null&&(S.X=null),y.vb=null,t(y!=null)}function Uc(){var y=new Dt;return y==null?null:(y.a=0,y.xb=qp,Ln("Predictor","VP8LPredictors"),Ln("Predictor","VP8LPredictors_C"),Ln("PredictorAdd","VP8LPredictorsAdd"),Ln("PredictorAdd","VP8LPredictorsAdd_C"),rd=bt,Ql=Et,ad=In,sd=hn,au=Yt,hl=tn,su=an,q.VP8LMapColor32b=ya,q.VP8LMapColor8b=ta,y)}function Wi(y,S,L,I,Q){var te=1,re=[y],le=[S],de=I.m,ve=I.s,Le=null,He=0;e:for(;;){if(L)for(;te&&ne(de,1);){var ye=re,Oe=le,De=I,Xe=1,Fe=De.m,Qe=De.gc[De.ab],et=ne(Fe,2);if(De.Oc&1<<et)te=0;else{switch(De.Oc|=1<<et,Qe.hc=et,Qe.Ea=ye[0],Qe.nc=Oe[0],Qe.K=[null],++De.ab,t(4>=De.ab),et){case 0:case 1:Qe.b=ne(Fe,3)+2,Xe=Wi(tt(Qe.Ea,Qe.b),tt(Qe.nc,Qe.b),0,De,Qe.K),Qe.K=Qe.K[0];break;case 3:var dt,it=ne(Fe,8)+1,qt=16<it?0:4<it?1:2<it?2:3;if(ye[0]=tt(Qe.Ea,qt),Qe.b=qt,dt=Xe=Wi(it,1,0,De,Qe.K)){var Ot,yn=it,It=Qe,Bn=1<<(8>>It.b),Ir=s(Bn);if(Ir==null)dt=0;else{var kn=It.K[0],Pt=It.w;for(Ir[0]=It.K[0][0],Ot=1;Ot<1*yn;++Ot)Ir[Ot]=Kt(kn[Pt+Ot],Ir[Ot-1]);for(;Ot<4*Bn;++Ot)Ir[Ot]=0;It.K[0]=null,It.K[0]=Ir,dt=1}}Xe=dt;break;case 2:break;default:t(0)}te=Xe}}if(re=re[0],le=le[0],te&&ne(de,1)&&!(te=1<=(He=ne(de,4))&&11>=He)){I.a=3;break e}var vt;if(vt=te)t:{var Qr,cn,Cn,dr=I,Pa=re,os=le,Cr=He,va=L,Ss=dr.m,wa=dr.s,jn=[null],Kn=1,Xr=0,nr=Ci[Cr];n:for(;;){if(va&&ne(Ss,1)){var ja=ne(Ss,3)+2,Kr=tt(Pa,ja),Jn=tt(os,ja),fa=Kr*Jn;if(!Wi(Kr,Jn,0,dr,jn))break n;for(jn=jn[0],wa.xc=ja,Qr=0;Qr<fa;++Qr){var hr=jn[Qr]>>8&65535;jn[Qr]=hr,hr>=Kn&&(Kn=hr+1)}}if(Ss.h)break n;for(cn=0;5>cn;++cn){var Sa=cu[cn];!cn&&0<Cr&&(Sa+=1<<Cr),Xr<Sa&&(Xr=Sa)}var Ea=i(Kn*nr,ae),Sr=Kn,Xn=i(Sr,xe);if(Xn==null)var Es=null;else t(65536>=Sr),Es=Xn;var aa=s(Xr);if(Es==null||aa==null||Ea==null){dr.a=1;break n}var nn=Ea;for(Qr=Cn=0;Qr<Kn;++Qr){var sn=Es[Qr],Zn=sn.G,Hs=sn.H,Mi=0,Is=1,ka=0;for(cn=0;5>cn;++cn){Sa=cu[cn],Zn[cn]=nn,Hs[cn]=Cn,!cn&&0<Cr&&(Sa+=1<<Cr);a:{var ac,sc=Sa,Kh=dr,Nr=aa,Gp=nn,$p=Cn,Jh=0,ml=Kh.m,Sb=ne(ml,1);if(a(Nr,0,0,sc),Sb){var Wp=ne(ml,1)+1,Yp=ne(ml,1),Zh=ne(ml,Yp==0?1:8);Nr[Zh]=1,Wp==2&&(Nr[Zh=ne(ml,8)]=1);var Ga=1}else{var sa=s(19),D0=ne(ml,4)+4;if(19<D0){Kh.a=3;var ic=0;break a}for(ac=0;ac<D0;++ac)sa[O0[ac]]=ne(ml,3);var fd=void 0,hu=void 0,Oo=Kh,ef=sa,pd=sc,tf=Nr,nf=0,gl=Oo.m,Qp=8,Xp=i(128,ae);r:for(;$(Xp,0,7,ef,19);){if(ne(gl,1)){var gg=2+2*ne(gl,3);if((fd=2+ne(gl,gg))>pd)break r}else fd=pd;for(hu=0;hu<pd&&fd--;){Ee(gl);var Kp=Xp[0+(127&K(gl))];we(gl,gl.u+Kp.g);var oc=Kp.value;if(16>oc)tf[hu++]=oc,oc!=0&&(Qp=oc);else{var xg=oc==16,bg=oc-16,yg=cd[bg],Jp=ne(gl,_i[bg])+yg;if(hu+Jp>pd)break r;for(var vg=xg?Qp:0;0<Jp--;)tf[hu++]=vg}}nf=1;break r}nf||(Oo.a=3),Ga=nf}(Ga=Ga&&!ml.h)&&(Jh=$(Gp,$p,8,Nr,sc)),Ga&&Jh!=0?ic=Jh:(Kh.a=3,ic=0)}if(ic==0)break n;if(Is&&Gh[cn]==1&&(Is=nn[Cn].g==0),Mi+=nn[Cn].g,Cn+=ic,3>=cn){var fu,rf=aa[0];for(fu=1;fu<Sa;++fu)aa[fu]>rf&&(rf=aa[fu]);ka+=rf}}if(sn.nd=Is,sn.Qb=0,Is&&(sn.qb=(Zn[3][Hs[3]+0].value<<24|Zn[1][Hs[1]+0].value<<16|Zn[2][Hs[2]+0].value)>>>0,Mi==0&&256>Zn[0][Hs[0]+0].value&&(sn.Qb=1,sn.qb+=Zn[0][Hs[0]+0].value<<8)),sn.jc=!sn.Qb&&6>ka,sn.jc){var I0,Po=sn;for(I0=0;I0<eu;++I0){var xl=I0,bl=Po.pd[xl],af=Po.G[0][Po.H[0]+xl];256<=af.value?(bl.g=af.g+256,bl.value=af.value):(bl.g=0,bl.value=0,xl>>=pr(af,8,bl),xl>>=pr(Po.G[1][Po.H[1]+xl],16,bl),xl>>=pr(Po.G[2][Po.H[2]+xl],0,bl),pr(Po.G[3][Po.H[3]+xl],24,bl))}}}wa.vc=jn,wa.Wb=Kn,wa.Ya=Es,wa.yc=Ea,vt=1;break t}vt=0}if(!(te=vt)){I.a=3;break e}if(0<He){if(ve.ua=1<<He,!fe(ve.Wa,He)){I.a=1,te=0;break e}}else ve.ua=0;var sf=I,pu=re,wg=le,md=sf.s,gd=md.xc;if(sf.c=pu,sf.i=wg,md.md=tt(pu,gd),md.wc=gd==0?-1:(1<<gd)-1,L){I.xb=Zl;break e}if((Le=s(re*le))==null){I.a=1,te=0;break e}te=(te=ri(I,Le,0,re,le,le,null))&&!de.h;break e}return te?(Q!=null?Q[0]=Le:(t(Le==null),t(L)),I.$=0,L||bi(ve)):bi(ve),te}function Yi(y,S){var L=y.c*y.i,I=L+S+16*S;return t(y.c<=S),y.V=s(I),y.V==null?(y.Ta=null,y.Ua=0,y.a=1,0):(y.Ta=y.V,y.Ua=y.Ba+L+S,1)}function Bl(y,S){var L=y.C,I=S-L,Q=y.V,te=y.Ba+y.c*L;for(t(S<=y.l.o);0<I;){var re=16<I?16:I,le=y.l.ma,de=y.l.width,ve=de*re,Le=le.ca,He=le.tb+de*L,ye=y.Ta,Oe=y.Ua;Il(y,re,Q,te),ci(ye,Oe,Le,He,ve),$r(le,L,L+re,Le,He,de),I-=re,Q+=re*y.c,L+=re}t(L==S),y.C=y.Ma=S}function Qi(){this.ub=this.yd=this.td=this.Rb=0}function Xi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function qc(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function To(){this.Yb=(function(){var y=[];return(function S(L,I,Q){for(var te=Q[I],re=0;re<te&&(L.push(Q.length>I+1?[]:0),!(Q.length<I+1));re++)S(L[re],I+1,Q)})(y,0,[3,11]),y})()}function da(){this.jb=s(3),this.Wc=o([4,8],To),this.Xc=o([4,17],To)}function h0(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function ai(){this.ld=this.La=this.dd=this.tc=0}function Ki(){this.Na=this.la=0}function el(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function f0(){this.ad=s(384),this.Za=0,this.Ob=s(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function p0(){this.uc=this.M=this.Nb=0,this.wa=Array(new ai),this.Y=0,this.ya=Array(new f0),this.aa=0,this.l=new tl}function m0(){this.y=s(16),this.f=s(8),this.ea=s(8)}function Mh(){this.cb=this.a=0,this.sc="",this.m=new B,this.Od=new Qi,this.Kc=new Xi,this.ed=new h0,this.Qa=new qc,this.Ic=this.$c=this.Aa=0,this.D=new p0,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=i(8,B),this.ia=0,this.pb=i(4,el),this.Pa=new da,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new m0),this.Hd=0,this.rb=Array(new Ki),this.sb=0,this.wa=Array(new ai),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new f0),this.L=this.aa=0,this.gd=o([4,2],ai),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function si(y,S){return 0>y?0:y>S?S:y}function tl(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ji(){var y=new Mh;return y!=null&&(y.a=0,y.sc="OK",y.cb=0,y.Xb=0,ui||(ui=Fl)),y}function er(y,S,L){return y.a==0&&(y.a=S,y.sc=L,y.cb=0),0}function g0(y,S,L){return 3<=L&&y[S+0]==157&&y[S+1]==1&&y[S+2]==42}function Co(y,S){if(y==null)return 0;if(y.a=0,y.sc="OK",S==null)return er(y,2,"null VP8Io passed to VP8GetHeaders()");var L=S.data,I=S.w,Q=S.ha;if(4>Q)return er(y,7,"Truncated header.");var te=L[I+0]|L[I+1]<<8|L[I+2]<<16,re=y.Od;if(re.Rb=!(1&te),re.td=te>>1&7,re.yd=te>>4&1,re.ub=te>>5,3<re.td)return er(y,3,"Incorrect keyframe parameters.");if(!re.yd)return er(y,4,"Frame not displayable.");I+=3,Q-=3;var le=y.Kc;if(re.Rb){if(7>Q)return er(y,7,"cannot parse picture header");if(!g0(L,I,Q))return er(y,3,"Bad code word");le.c=16383&(L[I+4]<<8|L[I+3]),le.Td=L[I+4]>>6,le.i=16383&(L[I+6]<<8|L[I+5]),le.Ud=L[I+6]>>6,I+=7,Q-=7,y.za=le.c+15>>4,y.Ub=le.i+15>>4,S.width=le.c,S.height=le.i,S.Da=0,S.j=0,S.v=0,S.va=S.width,S.o=S.height,S.da=0,S.ib=S.width,S.hb=S.height,S.U=S.width,S.T=S.height,a((te=y.Pa).jb,0,255,te.jb.length),t((te=y.Qa)!=null),te.Cb=0,te.Bb=0,te.Fb=1,a(te.Zb,0,0,te.Zb.length),a(te.Lb,0,0,te.Lb)}if(re.ub>Q)return er(y,7,"bad partition length");ee(te=y.m,L,I,re.ub),I+=re.ub,Q-=re.ub,re.Rb&&(le.Ld=Ae(te),le.Kd=Ae(te)),le=y.Qa;var de,ve=y.Pa;if(t(te!=null),t(le!=null),le.Cb=Ae(te),le.Cb){if(le.Bb=Ae(te),Ae(te)){for(le.Fb=Ae(te),de=0;4>de;++de)le.Zb[de]=Ae(te)?se(te,7):0;for(de=0;4>de;++de)le.Lb[de]=Ae(te)?se(te,6):0}if(le.Bb)for(de=0;3>de;++de)ve.jb[de]=Ae(te)?ce(te,8):255}else le.Bb=0;if(te.Ka)return er(y,3,"cannot parse segment header");if((le=y.ed).zd=Ae(te),le.Tb=ce(te,6),le.wb=ce(te,3),le.Pc=Ae(te),le.Pc&&Ae(te)){for(ve=0;4>ve;++ve)Ae(te)&&(le.vd[ve]=se(te,6));for(ve=0;4>ve;++ve)Ae(te)&&(le.od[ve]=se(te,6))}if(y.L=le.Tb==0?0:le.zd?1:2,te.Ka)return er(y,3,"cannot parse filter header");var Le=Q;if(Q=de=I,I=de+Le,le=Le,y.Xb=(1<<ce(y.m,2))-1,Le<3*(ve=y.Xb))L=7;else{for(de+=3*ve,le-=3*ve,Le=0;Le<ve;++Le){var He=L[Q+0]|L[Q+1]<<8|L[Q+2]<<16;He>le&&(He=le),ee(y.Jc[+Le],L,de,He),de+=He,le-=He,Q+=3}ee(y.Jc[+ve],L,de,le),L=de<I?0:5}if(L!=0)return er(y,L,"cannot parse partitions");for(L=ce(de=y.m,7),Q=Ae(de)?se(de,4):0,I=Ae(de)?se(de,4):0,le=Ae(de)?se(de,4):0,ve=Ae(de)?se(de,4):0,de=Ae(de)?se(de,4):0,Le=y.Qa,He=0;4>He;++He){if(Le.Cb){var ye=Le.Zb[He];Le.Fb||(ye+=L)}else{if(0<He){y.pb[He]=y.pb[0];continue}ye=L}var Oe=y.pb[He];Oe.Sc[0]=Ni[si(ye+Q,127)],Oe.Sc[1]=Ai[si(ye+0,127)],Oe.Eb[0]=2*Ni[si(ye+I,127)],Oe.Eb[1]=101581*Ai[si(ye+le,127)]>>16,8>Oe.Eb[1]&&(Oe.Eb[1]=8),Oe.Qc[0]=Ni[si(ye+ve,117)],Oe.Qc[1]=Ai[si(ye+de,127)],Oe.lc=ye+de}if(!re.Rb)return er(y,4,"Not a key frame.");for(Ae(te),re=y.Pa,L=0;4>L;++L){for(Q=0;8>Q;++Q)for(I=0;3>I;++I)for(le=0;11>le;++le)ve=Ie(te,Dr[L][Q][I][le])?ce(te,8):pg[L][Q][I][le],re.Wc[L][Q].Yb[I][le]=ve;for(Q=0;17>Q;++Q)re.Xc[L][Q]=re.Wc[L][Un[Q]]}return y.kc=Ae(te),y.kc&&(y.Bd=ce(te,8)),y.cb=1}function Fl(y,S,L,I,Q,te,re){var le=S[Q].Yb[L];for(L=0;16>Q;++Q){if(!Ie(y,le[L+0]))return Q;for(;!Ie(y,le[L+1]);)if(le=S[++Q].Yb[0],L=0,Q==16)return 16;var de=S[Q+1].Yb;if(Ie(y,le[L+2])){var ve=y,Le=0;if(Ie(ve,(ye=le)[(He=L)+3]))if(Ie(ve,ye[He+6])){for(le=0,He=2*(Le=Ie(ve,ye[He+8]))+(ye=Ie(ve,ye[He+9+Le])),Le=0,ye=fg[He];ye[le];++le)Le+=Le+Ie(ve,ye[le]);Le+=3+(8<<He)}else Ie(ve,ye[He+7])?(Le=7+2*Ie(ve,165),Le+=Ie(ve,145)):Le=5+Ie(ve,159);else Le=Ie(ve,ye[He+4])?3+Ie(ve,ye[He+5]):2;le=de[2]}else Le=1,le=de[1];de=re+Up[Q],0>(ve=y).b&&ue(ve);var He,ye=ve.b,Oe=(He=ve.Ca>>1)-(ve.I>>ye)>>31;--ve.b,ve.Ca+=Oe,ve.Ca|=1,ve.I-=(He+1&Oe)<<ye,te[de]=((Le^Oe)-Oe)*I[(0<Q)+0]}return 16}function Xu(y){var S=y.rb[y.sb-1];S.la=0,S.Na=0,a(y.zc,0,0,y.zc.length),y.ja=0}function ms(y,S,L,I,Q){Q=y[S+L+32*I]+(Q>>3),y[S+L+32*I]=-256&Q?0>Q?0:255:Q}function Ku(y,S,L,I,Q,te){ms(y,S,0,L,I+Q),ms(y,S,1,L,I+te),ms(y,S,2,L,I-te),ms(y,S,3,L,I-Q)}function xa(y){return(20091*y>>16)+y}function Oa(y,S,L,I){var Q,te=0,re=s(16);for(Q=0;4>Q;++Q){var le=y[S+0]+y[S+8],de=y[S+0]-y[S+8],ve=(35468*y[S+4]>>16)-xa(y[S+12]),Le=xa(y[S+4])+(35468*y[S+12]>>16);re[te+0]=le+Le,re[te+1]=de+ve,re[te+2]=de-ve,re[te+3]=le-Le,te+=4,S++}for(Q=te=0;4>Q;++Q)le=(y=re[te+0]+4)+re[te+8],de=y-re[te+8],ve=(35468*re[te+4]>>16)-xa(re[te+12]),ms(L,I,0,0,le+(Le=xa(re[te+4])+(35468*re[te+12]>>16))),ms(L,I,1,0,de+ve),ms(L,I,2,0,de-ve),ms(L,I,3,0,le-Le),te++,I+=32}function x0(y,S,L,I){var Q=y[S+0]+4,te=35468*y[S+4]>>16,re=xa(y[S+4]),le=35468*y[S+1]>>16;Ku(L,I,0,Q+re,y=xa(y[S+1]),le),Ku(L,I,1,Q+te,y,le),Ku(L,I,2,Q-te,y,le),Ku(L,I,3,Q-re,y,le)}function b0(y,S,L,I,Q){Oa(y,S,L,I),Q&&Oa(y,S+16,L,I+4)}function zl(y,S,L,I){io(y,S+0,L,I,1),io(y,S+32,L,I+128,1)}function Rh(y,S,L,I){var Q;for(y=y[S+0]+4,Q=0;4>Q;++Q)for(S=0;4>S;++S)ms(L,I,S,Q,y)}function Zi(y,S,L,I){y[S+0]&&ns(y,S+0,L,I),y[S+16]&&ns(y,S+16,L,I+4),y[S+32]&&ns(y,S+32,L,I+128),y[S+48]&&ns(y,S+48,L,I+128+4)}function nl(y,S,L,I){var Q,te=s(16);for(Q=0;4>Q;++Q){var re=y[S+0+Q]+y[S+12+Q],le=y[S+4+Q]+y[S+8+Q],de=y[S+4+Q]-y[S+8+Q],ve=y[S+0+Q]-y[S+12+Q];te[0+Q]=re+le,te[8+Q]=re-le,te[4+Q]=ve+de,te[12+Q]=ve-de}for(Q=0;4>Q;++Q)re=(y=te[0+4*Q]+3)+te[3+4*Q],le=te[1+4*Q]+te[2+4*Q],de=te[1+4*Q]-te[2+4*Q],ve=y-te[3+4*Q],L[I+0]=re+le>>3,L[I+16]=ve+de>>3,L[I+32]=re-le>>3,L[I+48]=ve-de>>3,I+=64}function Ju(y,S,L){var I,Q=S-32,te=vs,re=255-y[Q-1];for(I=0;I<L;++I){var le,de=te,ve=re+y[S-1];for(le=0;le<L;++le)y[S+le]=de[ve+y[Q+le]];S+=32}}function Vc(y,S){Ju(y,S,4)}function Zu(y,S){Ju(y,S,8)}function y0(y,S){Ju(y,S,16)}function Ip(y,S){var L;for(L=0;16>L;++L)r(y,S+32*L,y,S-32,16)}function Bp(y,S){var L;for(L=16;0<L;--L)a(y,S,y[S-1],16),S+=32}function eo(y,S,L){var I;for(I=0;16>I;++I)a(S,L+32*I,y,16)}function yi(y,S){var L,I=16;for(L=0;16>L;++L)I+=y[S-1+32*L]+y[S+L-32];eo(I>>5,y,S)}function No(y,S){var L,I=8;for(L=0;16>L;++L)I+=y[S-1+32*L];eo(I>>4,y,S)}function v0(y,S){var L,I=8;for(L=0;16>L;++L)I+=y[S+L-32];eo(I>>4,y,S)}function vi(y,S){eo(128,y,S)}function ln(y,S,L){return y+2*S+L+2>>2}function Oh(y,S){var L,I=S-32;for(I=new Uint8Array([ln(y[I-1],y[I+0],y[I+1]),ln(y[I+0],y[I+1],y[I+2]),ln(y[I+1],y[I+2],y[I+3]),ln(y[I+2],y[I+3],y[I+4])]),L=0;4>L;++L)r(y,S+32*L,I,0,I.length)}function w0(y,S){var L=y[S-1],I=y[S-1+32],Q=y[S-1+64],te=y[S-1+96];We(y,S+0,16843009*ln(y[S-1-32],L,I)),We(y,S+32,16843009*ln(L,I,Q)),We(y,S+64,16843009*ln(I,Q,te)),We(y,S+96,16843009*ln(Q,te,te))}function Ph(y,S){var L,I=4;for(L=0;4>L;++L)I+=y[S+L-32]+y[S-1+32*L];for(I>>=3,L=0;4>L;++L)a(y,S+32*L,I,4)}function Gc(y,S){var L=y[S-1+0],I=y[S-1+32],Q=y[S-1+64],te=y[S-1-32],re=y[S+0-32],le=y[S+1-32],de=y[S+2-32],ve=y[S+3-32];y[S+0+96]=ln(I,Q,y[S-1+96]),y[S+1+96]=y[S+0+64]=ln(L,I,Q),y[S+2+96]=y[S+1+64]=y[S+0+32]=ln(te,L,I),y[S+3+96]=y[S+2+64]=y[S+1+32]=y[S+0+0]=ln(re,te,L),y[S+3+64]=y[S+2+32]=y[S+1+0]=ln(le,re,te),y[S+3+32]=y[S+2+0]=ln(de,le,re),y[S+3+0]=ln(ve,de,le)}function to(y,S){var L=y[S+1-32],I=y[S+2-32],Q=y[S+3-32],te=y[S+4-32],re=y[S+5-32],le=y[S+6-32],de=y[S+7-32];y[S+0+0]=ln(y[S+0-32],L,I),y[S+1+0]=y[S+0+32]=ln(L,I,Q),y[S+2+0]=y[S+1+32]=y[S+0+64]=ln(I,Q,te),y[S+3+0]=y[S+2+32]=y[S+1+64]=y[S+0+96]=ln(Q,te,re),y[S+3+32]=y[S+2+64]=y[S+1+96]=ln(te,re,le),y[S+3+64]=y[S+2+96]=ln(re,le,de),y[S+3+96]=ln(le,de,de)}function no(y,S){var L=y[S-1+0],I=y[S-1+32],Q=y[S-1+64],te=y[S-1-32],re=y[S+0-32],le=y[S+1-32],de=y[S+2-32],ve=y[S+3-32];y[S+0+0]=y[S+1+64]=te+re+1>>1,y[S+1+0]=y[S+2+64]=re+le+1>>1,y[S+2+0]=y[S+3+64]=le+de+1>>1,y[S+3+0]=de+ve+1>>1,y[S+0+96]=ln(Q,I,L),y[S+0+64]=ln(I,L,te),y[S+0+32]=y[S+1+96]=ln(L,te,re),y[S+1+32]=y[S+2+96]=ln(te,re,le),y[S+2+32]=y[S+3+96]=ln(re,le,de),y[S+3+32]=ln(le,de,ve)}function ii(y,S){var L=y[S+0-32],I=y[S+1-32],Q=y[S+2-32],te=y[S+3-32],re=y[S+4-32],le=y[S+5-32],de=y[S+6-32],ve=y[S+7-32];y[S+0+0]=L+I+1>>1,y[S+1+0]=y[S+0+64]=I+Q+1>>1,y[S+2+0]=y[S+1+64]=Q+te+1>>1,y[S+3+0]=y[S+2+64]=te+re+1>>1,y[S+0+32]=ln(L,I,Q),y[S+1+32]=y[S+0+96]=ln(I,Q,te),y[S+2+32]=y[S+1+96]=ln(Q,te,re),y[S+3+32]=y[S+2+96]=ln(te,re,le),y[S+3+64]=ln(re,le,de),y[S+3+96]=ln(le,de,ve)}function Ao(y,S){var L=y[S-1+0],I=y[S-1+32],Q=y[S-1+64],te=y[S-1+96];y[S+0+0]=L+I+1>>1,y[S+2+0]=y[S+0+32]=I+Q+1>>1,y[S+2+32]=y[S+0+64]=Q+te+1>>1,y[S+1+0]=ln(L,I,Q),y[S+3+0]=y[S+1+32]=ln(I,Q,te),y[S+3+32]=y[S+1+64]=ln(Q,te,te),y[S+3+64]=y[S+2+64]=y[S+0+96]=y[S+1+96]=y[S+2+96]=y[S+3+96]=te}function S0(y,S){var L=y[S-1+0],I=y[S-1+32],Q=y[S-1+64],te=y[S-1+96],re=y[S-1-32],le=y[S+0-32],de=y[S+1-32],ve=y[S+2-32];y[S+0+0]=y[S+2+32]=L+re+1>>1,y[S+0+32]=y[S+2+64]=I+L+1>>1,y[S+0+64]=y[S+2+96]=Q+I+1>>1,y[S+0+96]=te+Q+1>>1,y[S+3+0]=ln(le,de,ve),y[S+2+0]=ln(re,le,de),y[S+1+0]=y[S+3+32]=ln(L,re,le),y[S+1+32]=y[S+3+64]=ln(I,L,re),y[S+1+64]=y[S+3+96]=ln(Q,I,L),y[S+1+96]=ln(te,Q,I)}function rl(y,S){var L;for(L=0;8>L;++L)r(y,S+32*L,y,S-32,8)}function ed(y,S){var L;for(L=0;8>L;++L)a(y,S,y[S-1],8),S+=32}function oi(y,S,L){var I;for(I=0;8>I;++I)a(S,L+32*I,y,8)}function td(y,S){var L,I=8;for(L=0;8>L;++L)I+=y[S+L-32]+y[S-1+32*L];oi(I>>4,y,S)}function $c(y,S){var L,I=4;for(L=0;8>L;++L)I+=y[S+L-32];oi(I>>3,y,S)}function gs(y,S){var L,I=4;for(L=0;8>L;++L)I+=y[S-1+32*L];oi(I>>3,y,S)}function ro(y,S){oi(128,y,S)}function ao(y,S,L){var I=y[S-L],Q=y[S+0],te=3*(Q-I)+fl[1020+y[S-2*L]-y[S+L]],re=L0[112+(te+4>>3)];y[S-L]=vs[255+I+L0[112+(te+3>>3)]],y[S+0]=vs[255+Q-re]}function al(y,S,L,I){var Q=y[S+0],te=y[S+L];return rs[255+y[S-2*L]-y[S-L]]>I||rs[255+te-Q]>I}function Wc(y,S,L,I){return 4*rs[255+y[S-L]-y[S+0]]+rs[255+y[S-2*L]-y[S+L]]<=I}function Yc(y,S,L,I,Q){var te=y[S-3*L],re=y[S-2*L],le=y[S-L],de=y[S+0],ve=y[S+L],Le=y[S+2*L],He=y[S+3*L];return 4*rs[255+le-de]+rs[255+re-ve]>I?0:rs[255+y[S-4*L]-te]<=Q&&rs[255+te-re]<=Q&&rs[255+re-le]<=Q&&rs[255+He-Le]<=Q&&rs[255+Le-ve]<=Q&&rs[255+ve-de]<=Q}function Hl(y,S,L,I){var Q=2*I+1;for(I=0;16>I;++I)Wc(y,S+I,L,Q)&&ao(y,S+I,L)}function sl(y,S,L,I){var Q=2*I+1;for(I=0;16>I;++I)Wc(y,S+I*L,1,Q)&&ao(y,S+I*L,1)}function il(y,S,L,I){var Q;for(Q=3;0<Q;--Q)Hl(y,S+=4*L,L,I)}function E0(y,S,L,I){var Q;for(Q=3;0<Q;--Q)sl(y,S+=4,L,I)}function ol(y,S,L,I,Q,te,re,le){for(te=2*te+1;0<Q--;){if(Yc(y,S,L,te,re))if(al(y,S,L,le))ao(y,S,L);else{var de=y,ve=S,Le=L,He=de[ve-2*Le],ye=de[ve-Le],Oe=de[ve+0],De=de[ve+Le],Xe=de[ve+2*Le],Fe=27*(et=fl[1020+3*(Oe-ye)+fl[1020+He-De]])+63>>7,Qe=18*et+63>>7,et=9*et+63>>7;de[ve-3*Le]=vs[255+de[ve-3*Le]+et],de[ve-2*Le]=vs[255+He+Qe],de[ve-Le]=vs[255+ye+Fe],de[ve+0]=vs[255+Oe-Fe],de[ve+Le]=vs[255+De-Qe],de[ve+2*Le]=vs[255+Xe-et]}S+=I}}function ll(y,S,L,I,Q,te,re,le){for(te=2*te+1;0<Q--;){if(Yc(y,S,L,te,re))if(al(y,S,L,le))ao(y,S,L);else{var de=y,ve=S,Le=L,He=de[ve-Le],ye=de[ve+0],Oe=de[ve+Le],De=L0[112+(4+(Xe=3*(ye-He))>>3)],Xe=L0[112+(Xe+3>>3)],Fe=De+1>>1;de[ve-2*Le]=vs[255+de[ve-2*Le]+Fe],de[ve-Le]=vs[255+He+Xe],de[ve+0]=vs[255+ye-De],de[ve+Le]=vs[255+Oe-Fe]}S+=I}}function jh(y,S,L,I,Q,te){ol(y,S,L,1,16,I,Q,te)}function nd(y,S,L,I,Q,te){ol(y,S,1,L,16,I,Q,te)}function Dh(y,S,L,I,Q,te){var re;for(re=3;0<re;--re)ll(y,S+=4*L,L,1,16,I,Q,te)}function Qc(y,S,L,I,Q,te){var re;for(re=3;0<re;--re)ll(y,S+=4,1,L,16,I,Q,te)}function Ih(y,S,L,I,Q,te,re,le){ol(y,S,Q,1,8,te,re,le),ol(L,I,Q,1,8,te,re,le)}function N(y,S,L,I,Q,te,re,le){ol(y,S,1,Q,8,te,re,le),ol(L,I,1,Q,8,te,re,le)}function Y(y,S,L,I,Q,te,re,le){ll(y,S+4*Q,Q,1,8,te,re,le),ll(L,I+4*Q,Q,1,8,te,re,le)}function ge(y,S,L,I,Q,te,re,le){ll(y,S+4,1,Q,8,te,re,le),ll(L,I+4,1,Q,8,te,re,le)}function Ne(){this.ba=new wn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Tt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Pe(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Ke(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ot(){this.ua=0,this.Wa=new rn,this.vb=new rn,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new xe,this.yc=new ae}function Dt(){this.xb=this.a=0,this.l=new tl,this.ca=new wn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new O,this.Pb=0,this.wd=new O,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ot,this.ab=0,this.gc=i(4,Ke),this.Oc=0}function Ft(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new tl,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function bn(y,S,L,I,Q,te,re){for(y=y==null?0:y[S+0],S=0;S<re;++S)Q[te+S]=y+L[I+S]&255,y=Q[te+S]}function Sn(y,S,L,I,Q,te,re){var le;if(y==null)bn(null,null,L,I,Q,te,re);else for(le=0;le<re;++le)Q[te+le]=y[S+le]+L[I+le]&255}function Hn(y,S,L,I,Q,te,re){if(y==null)bn(null,null,L,I,Q,te,re);else{var le,de=y[S+0],ve=de,Le=de;for(le=0;le<re;++le)ve=Le+(de=y[S+le])-ve,Le=L[I+le]+(-256&ve?0>ve?0:255:ve)&255,ve=de,Q[te+le]=Le}}function ba(y,S,L,I){var Q=S.width,te=S.o;if(t(y!=null&&S!=null),0>L||0>=I||L+I>te)return null;if(!y.Cc){if(y.ga==null){var re;if(y.ga=new Ft,(re=y.ga==null)||(re=S.width*S.o,t(y.Gb.length==0),y.Gb=s(re),y.Uc=0,y.Gb==null?re=0:(y.mb=y.Gb,y.nb=y.Uc,y.rc=null,re=1),re=!re),!re){re=y.ga;var le=y.Fa,de=y.P,ve=y.qc,Le=y.mb,He=y.nb,ye=de+1,Oe=ve-1,De=re.l;if(t(le!=null&&Le!=null&&S!=null),pl[0]=null,pl[1]=bn,pl[2]=Sn,pl[3]=Hn,re.ca=Le,re.tb=He,re.c=S.width,re.i=S.height,t(0<re.c&&0<re.i),1>=ve)S=0;else if(re.$a=3&le[de+0],re.Z=le[de+0]>>2&3,re.Lc=le[de+0]>>4&3,de=le[de+0]>>6&3,0>re.$a||1<re.$a||4<=re.Z||1<re.Lc||de)S=0;else if(De.put=Nt,De.ac=Za,De.bc=ea,De.ma=re,De.width=S.width,De.height=S.height,De.Da=S.Da,De.v=S.v,De.va=S.va,De.j=S.j,De.o=S.o,re.$a)e:{t(re.$a==1),S=Uc();t:for(;;){if(S==null){S=0;break e}if(t(re!=null),re.mc=S,S.c=re.c,S.i=re.i,S.l=re.l,S.l.ma=re,S.l.width=re.c,S.l.height=re.i,S.a=0,be(S.m,le,ye,Oe),!Wi(re.c,re.i,1,S,null)||(S.ab==1&&S.gc[0].hc==3&&vr(S.s)?(re.ic=1,le=S.c*S.i,S.Ta=null,S.Ua=0,S.V=s(le),S.Ba=0,S.V==null?(S.a=1,S=0):S=1):(re.ic=0,S=Yi(S,re.c)),!S))break t;S=1;break e}re.mc=null,S=0}else S=Oe>=re.c*re.i;re=!S}if(re)return null;y.ga.Lc!=1?y.Ga=0:I=te-L}t(y.ga!=null),t(L+I<=te);e:{if(S=(le=y.ga).c,te=le.l.o,le.$a==0){if(ye=y.rc,Oe=y.Vc,De=y.Fa,de=y.P+1+L*S,ve=y.mb,Le=y.nb+L*S,t(de<=y.P+y.qc),le.Z!=0)for(t(pl[le.Z]!=null),re=0;re<I;++re)pl[le.Z](ye,Oe,De,de,ve,Le,S),ye=ve,Oe=Le,Le+=S,de+=S;else for(re=0;re<I;++re)r(ve,Le,De,de,S),ye=ve,Oe=Le,Le+=S,de+=S;y.rc=ye,y.Vc=Oe}else{if(t(le.mc!=null),S=L+I,t((re=le.mc)!=null),t(S<=re.i),re.C>=S)S=1;else if(le.ic||Yr(),le.ic){le=re.V,ye=re.Ba,Oe=re.c;var Xe=re.i,Fe=(De=1,de=re.$/Oe,ve=re.$%Oe,Le=re.m,He=re.s,re.$),Qe=Oe*Xe,et=Oe*S,dt=He.wc,it=Fe<et?Ra(He,ve,de):null;t(Fe<=Qe),t(S<=Xe),t(vr(He));t:for(;;){for(;!Le.h&&Fe<et;){if(ve&dt||(it=Ra(He,ve,de)),t(it!=null),Ee(Le),256>(Xe=yr(it.G[0],it.H[0],Le)))le[ye+Fe]=Xe,++Fe,++ve>=Oe&&(ve=0,++de<=S&&!(de%16)&&ps(re,de));else{if(!(280>Xe)){De=0;break t}Xe=Rr(Xe-256,Le);var qt,Ot=yr(it.G[4],it.H[4],Le);if(Ee(Le),!(Fe>=(Ot=Or(Oe,Ot=Rr(Ot,Le)))&&Qe-Fe>=Xe)){De=0;break t}for(qt=0;qt<Xe;++qt)le[ye+Fe+qt]=le[ye+Fe+qt-Ot];for(Fe+=Xe,ve+=Xe;ve>=Oe;)ve-=Oe,++de<=S&&!(de%16)&&ps(re,de);Fe<et&&ve&dt&&(it=Ra(He,ve,de))}t(Le.h==he(Le))}ps(re,de>S?S:de);break t}!De||Le.h&&Fe<Qe?(De=0,re.a=Le.h?5:3):re.$=Fe,S=De}else S=ri(re,re.V,re.Ba,re.c,re.i,S,Bl);if(!S){I=0;break e}}L+I>=te&&(y.Cc=1),I=1}if(!I)return null;if(y.Cc&&((I=y.ga)!=null&&(I.mc=null),y.ga=null,0<y.Ga))return alert("todo:WebPDequantizeLevels"),null}return y.nb+L*Q}function wr(y,S,L,I,Q,te){for(;0<Q--;){var re,le=y,de=S+(L?1:0),ve=y,Le=S+(L?0:3);for(re=0;re<I;++re){var He=ve[Le+4*re];He!=255&&(He*=32897,le[de+4*re+0]=le[de+4*re+0]*He>>23,le[de+4*re+1]=le[de+4*re+1]*He>>23,le[de+4*re+2]=le[de+4*re+2]*He>>23)}S+=te}}function mr(y,S,L,I,Q){for(;0<I--;){var te;for(te=0;te<L;++te){var re=y[S+2*te+0],le=15&(ve=y[S+2*te+1]),de=4369*le,ve=(240&ve|ve>>4)*de>>16;y[S+2*te+0]=(240&re|re>>4)*de>>16&240|(15&re|re<<4)*de>>16>>4&15,y[S+2*te+1]=240&ve|le}S+=Q}}function Pr(y,S,L,I,Q,te,re,le){var de,ve,Le=255;for(ve=0;ve<Q;++ve){for(de=0;de<I;++de){var He=y[S+de];te[re+4*de]=He,Le&=He}S+=L,re+=le}return Le!=255}function Wr(y,S,L,I,Q){var te;for(te=0;te<Q;++te)L[I+te]=y[S+te]>>8}function Yr(){ou=wr,Ei=mr,C0=Pr,ci=Wr}function xs(y,S,L){q[y]=function(I,Q,te,re,le,de,ve,Le,He,ye,Oe,De,Xe,Fe,Qe,et,dt){var it,qt=dt-1>>1,Ot=le[de+0]|ve[Le+0]<<16,yn=He[ye+0]|Oe[De+0]<<16;t(I!=null);var It=3*Ot+yn+131074>>2;for(S(I[Q+0],255&It,It>>16,Xe,Fe),te!=null&&(It=3*yn+Ot+131074>>2,S(te[re+0],255&It,It>>16,Qe,et)),it=1;it<=qt;++it){var Bn=le[de+it]|ve[Le+it]<<16,Ir=He[ye+it]|Oe[De+it]<<16,kn=Ot+Bn+yn+Ir+524296,Pt=kn+2*(Bn+yn)>>3;It=Pt+Ot>>1,Ot=(kn=kn+2*(Ot+Ir)>>3)+Bn>>1,S(I[Q+2*it-1],255&It,It>>16,Xe,Fe+(2*it-1)*L),S(I[Q+2*it-0],255&Ot,Ot>>16,Xe,Fe+(2*it-0)*L),te!=null&&(It=kn+yn>>1,Ot=Pt+Ir>>1,S(te[re+2*it-1],255&It,It>>16,Qe,et+(2*it-1)*L),S(te[re+2*it+0],255&Ot,Ot>>16,Qe,et+(2*it+0)*L)),Ot=Bn,yn=Ir}1&dt||(It=3*Ot+yn+131074>>2,S(I[Q+dt-1],255&It,It>>16,Xe,Fe+(dt-1)*L),te!=null&&(It=3*yn+Ot+131074>>2,S(te[re+dt-1],255&It,It>>16,Qe,et+(dt-1)*L)))}}function cl(){ss[Hh]=uu,ss[ws]=ud,ss[Uh]=Vp,ss[ki]=Wh,ss[M0]=ec,ss[od]=Ro,ss[Kl]=tc,ss[R0]=ud,ss[qh]=Wh,ss[ld]=ec,ss[Vh]=Ro}function k0(y){return y&-16384?0>y?0:255:y>>Yh}function ul(y,S){return k0((19077*y>>8)+(26149*S>>8)-14234)}function so(y,S,L){return k0((19077*y>>8)-(6419*S>>8)-(13320*L>>8)+8708)}function Ul(y,S){return k0((19077*y>>8)+(33050*S>>8)-17685)}function ql(y,S,L,I,Q){I[Q+0]=ul(y,L),I[Q+1]=so(y,S,L),I[Q+2]=Ul(y,S)}function Xc(y,S,L,I,Q){I[Q+0]=Ul(y,S),I[Q+1]=so(y,S,L),I[Q+2]=ul(y,L)}function Kc(y,S,L,I,Q){var te=so(y,S,L);S=te<<3&224|Ul(y,S)>>3,I[Q+0]=248&ul(y,L)|te>>5,I[Q+1]=S}function es(y,S,L,I,Q){var te=240&Ul(y,S)|15;I[Q+0]=240&ul(y,L)|so(y,S,L)>>4,I[Q+1]=te}function Vl(y,S,L,I,Q){I[Q+0]=255,ql(y,S,L,I,Q+1)}function wi(y,S,L,I,Q){Xc(y,S,L,I,Q),I[Q+3]=255}function _0(y,S,L,I,Q){ql(y,S,L,I,Q),I[Q+3]=255}function Lo(y,S,L){q[y]=function(I,Q,te,re,le,de,ve,Le,He){for(var ye=Le+(-2&He)*L;Le!=ye;)S(I[Q+0],te[re+0],le[de+0],ve,Le),S(I[Q+1],te[re+0],le[de+0],ve,Le+L),Q+=2,++re,++de,Le+=2*L;1&He&&S(I[Q+0],te[re+0],le[de+0],ve,Le)}}function Os(y,S,L){return L==0?y==0?S==0?6:5:S==0?4:0:L}function T0(y,S,L,I,Q){switch(y>>>30){case 3:io(S,L,I,Q,0);break;case 2:Si(S,L,I,Q);break;case 1:ns(S,L,I,Q)}}function Jc(y,S){var L,I,Q=S.M,te=S.Nb,re=y.oc,le=y.pc+40,de=y.oc,ve=y.pc+584,Le=y.oc,He=y.pc+600;for(L=0;16>L;++L)re[le+32*L-1]=129;for(L=0;8>L;++L)de[ve+32*L-1]=129,Le[He+32*L-1]=129;for(0<Q?re[le-1-32]=de[ve-1-32]=Le[He-1-32]=129:(a(re,le-32-1,127,21),a(de,ve-32-1,127,9),a(Le,He-32-1,127,9)),I=0;I<y.za;++I){var ye=S.ya[S.aa+I];if(0<I){for(L=-1;16>L;++L)r(re,le+32*L-4,re,le+32*L+12,4);for(L=-1;8>L;++L)r(de,ve+32*L-4,de,ve+32*L+4,4),r(Le,He+32*L-4,Le,He+32*L+4,4)}var Oe=y.Gd,De=y.Hd+I,Xe=ye.ad,Fe=ye.Hc;if(0<Q&&(r(re,le-32,Oe[De].y,0,16),r(de,ve-32,Oe[De].f,0,8),r(Le,He-32,Oe[De].ea,0,8)),ye.Za){var Qe=re,et=le-32+16;for(0<Q&&(I>=y.za-1?a(Qe,et,Oe[De].y[15],4):r(Qe,et,Oe[De+1].y,0,4)),L=0;4>L;L++)Qe[et+128+L]=Qe[et+256+L]=Qe[et+384+L]=Qe[et+0+L];for(L=0;16>L;++L,Fe<<=2)Qe=re,et=le+ha[L],ra[ye.Ob[L]](Qe,et),T0(Fe,Xe,16*+L,Qe,et)}else if(Qe=Os(I,Q,ye.Ob[0]),Ds[Qe](re,le),Fe!=0)for(L=0;16>L;++L,Fe<<=2)T0(Fe,Xe,16*+L,re,le+ha[L]);for(L=ye.Gc,Qe=Os(I,Q,ye.Dd),oo[Qe](de,ve),oo[Qe](Le,He),Fe=Xe,Qe=de,et=ve,255&(ye=0|L)&&(170&ye?Xl(Fe,256,Qe,et):ys(Fe,256,Qe,et)),ye=Le,Fe=He,255&(L>>=8)&&(170&L?Xl(Xe,320,ye,Fe):ys(Xe,320,ye,Fe)),Q<y.Ub-1&&(r(Oe[De].y,0,re,le+480,16),r(Oe[De].f,0,de,ve+224,8),r(Oe[De].ea,0,Le,He+224,8)),L=8*te*y.B,Oe=y.sa,De=y.ta+16*I+16*te*y.R,Xe=y.qa,ye=y.ra+8*I+L,Fe=y.Ha,Qe=y.Ia+8*I+L,L=0;16>L;++L)r(Oe,De+L*y.R,re,le+32*L,16);for(L=0;8>L;++L)r(Xe,ye+L*y.B,de,ve+32*L,8),r(Fe,Qe+L*y.B,Le,He+32*L,8)}}function Gl(y,S,L,I,Q,te,re,le,de){var ve=[0],Le=[0],He=0,ye=de!=null?de.kd:0,Oe=de??new Pe;if(y==null||12>L)return 7;Oe.data=y,Oe.w=S,Oe.ha=L,S=[S],L=[L],Oe.gb=[Oe.gb];e:{var De=S,Xe=L,Fe=Oe.gb;if(t(y!=null),t(Xe!=null),t(Fe!=null),Fe[0]=0,12<=Xe[0]&&!n(y,De[0],"RIFF")){if(n(y,De[0]+8,"WEBP")){Fe=3;break e}var Qe=_t(y,De[0]+4);if(12>Qe||4294967286<Qe){Fe=3;break e}if(ye&&Qe>Xe[0]-8){Fe=7;break e}Fe[0]=Qe,De[0]+=12,Xe[0]-=12}Fe=0}if(Fe!=0)return Fe;for(Qe=0<Oe.gb[0],L=L[0];;){e:{var et=y;Xe=S,Fe=L;var dt=ve,it=Le,qt=De=[0];if((It=He=[He])[0]=0,8>Fe[0])Fe=7;else{if(!n(et,Xe[0],"VP8X")){if(_t(et,Xe[0]+4)!=10){Fe=3;break e}if(18>Fe[0]){Fe=7;break e}var Ot=_t(et,Xe[0]+8),yn=1+mt(et,Xe[0]+12);if(2147483648<=yn*(et=1+mt(et,Xe[0]+15))){Fe=3;break e}qt!=null&&(qt[0]=Ot),dt!=null&&(dt[0]=yn),it!=null&&(it[0]=et),Xe[0]+=18,Fe[0]-=18,It[0]=1}Fe=0}}if(He=He[0],De=De[0],Fe!=0)return Fe;if(Xe=!!(2&De),!Qe&&He)return 3;if(te!=null&&(te[0]=!!(16&De)),re!=null&&(re[0]=Xe),le!=null&&(le[0]=0),re=ve[0],De=Le[0],He&&Xe&&de==null){Fe=0;break}if(4>L){Fe=7;break}if(Qe&&He||!Qe&&!He&&!n(y,S[0],"ALPH")){L=[L],Oe.na=[Oe.na],Oe.P=[Oe.P],Oe.Sa=[Oe.Sa];e:{Ot=y,Fe=S,Qe=L;var It=Oe.gb;dt=Oe.na,it=Oe.P,qt=Oe.Sa,yn=22,t(Ot!=null),t(Qe!=null),et=Fe[0];var Bn=Qe[0];for(t(dt!=null),t(qt!=null),dt[0]=null,it[0]=null,qt[0]=0;;){if(Fe[0]=et,Qe[0]=Bn,8>Bn){Fe=7;break e}var Ir=_t(Ot,et+4);if(4294967286<Ir){Fe=3;break e}var kn=8+Ir+1&-2;if(yn+=kn,0<It&&yn>It){Fe=3;break e}if(!n(Ot,et,"VP8 ")||!n(Ot,et,"VP8L")){Fe=0;break e}if(Bn[0]<kn){Fe=7;break e}n(Ot,et,"ALPH")||(dt[0]=Ot,it[0]=et+8,qt[0]=Ir),et+=kn,Bn-=kn}}if(L=L[0],Oe.na=Oe.na[0],Oe.P=Oe.P[0],Oe.Sa=Oe.Sa[0],Fe!=0)break}L=[L],Oe.Ja=[Oe.Ja],Oe.xa=[Oe.xa];e:if(It=y,Fe=S,Qe=L,dt=Oe.gb[0],it=Oe.Ja,qt=Oe.xa,Ot=Fe[0],et=!n(It,Ot,"VP8 "),yn=!n(It,Ot,"VP8L"),t(It!=null),t(Qe!=null),t(it!=null),t(qt!=null),8>Qe[0])Fe=7;else{if(et||yn){if(It=_t(It,Ot+4),12<=dt&&It>dt-12){Fe=3;break e}if(ye&&It>Qe[0]-8){Fe=7;break e}it[0]=It,Fe[0]+=8,Qe[0]-=8,qt[0]=yn}else qt[0]=5<=Qe[0]&&It[Ot+0]==47&&!(It[Ot+4]>>5),it[0]=Qe[0];Fe=0}if(L=L[0],Oe.Ja=Oe.Ja[0],Oe.xa=Oe.xa[0],S=S[0],Fe!=0)break;if(4294967286<Oe.Ja)return 3;if(le==null||Xe||(le[0]=Oe.xa?2:1),re=[re],De=[De],Oe.xa){if(5>L){Fe=7;break}le=re,ye=De,Xe=te,y==null||5>L?y=0:5<=L&&y[S+0]==47&&!(y[S+4]>>5)?(Qe=[0],It=[0],dt=[0],be(it=new O,y,S,L),Ms(it,Qe,It,dt)?(le!=null&&(le[0]=Qe[0]),ye!=null&&(ye[0]=It[0]),Xe!=null&&(Xe[0]=dt[0]),y=1):y=0):y=0}else{if(10>L){Fe=7;break}le=De,y==null||10>L||!g0(y,S+3,L-3)?y=0:(ye=y[S+0]|y[S+1]<<8|y[S+2]<<16,Xe=16383&(y[S+7]<<8|y[S+6]),y=16383&(y[S+9]<<8|y[S+8]),1&ye||3<(ye>>1&7)||!(ye>>4&1)||ye>>5>=Oe.Ja||!Xe||!y?y=0:(re&&(re[0]=Xe),le&&(le[0]=y),y=1))}if(!y||(re=re[0],De=De[0],He&&(ve[0]!=re||Le[0]!=De)))return 3;de!=null&&(de[0]=Oe,de.offset=S-de.w,t(4294967286>S-de.w),t(de.offset==de.ha-L));break}return Fe==0||Fe==7&&He&&de==null?(te!=null&&(te[0]|=Oe.na!=null&&0<Oe.na.length),I!=null&&(I[0]=re),Q!=null&&(Q[0]=De),0):Fe}function bs(y,S,L){var I=S.width,Q=S.height,te=0,re=0,le=I,de=Q;if(S.Da=y!=null&&0<y.Da,S.Da&&(le=y.cd,de=y.bd,te=y.v,re=y.j,11>L||(te&=-2,re&=-2),0>te||0>re||0>=le||0>=de||te+le>I||re+de>Q))return 0;if(S.v=te,S.j=re,S.va=te+le,S.o=re+de,S.U=le,S.T=de,S.da=y!=null&&0<y.da,S.da){if(!Ht(le,de,L=[y.ib],te=[y.hb]))return 0;S.ib=L[0],S.hb=te[0]}return S.ob=y!=null&&y.ob,S.Kb=y==null||!y.Sd,S.da&&(S.ob=S.ib<3*I/4&&S.hb<3*Q/4,S.Kb=0),1}function Zc(y){if(y==null)return 2;if(11>y.S){var S=y.f.RGBA;S.fb+=(y.height-1)*S.A,S.A=-S.A}else S=y.f.kb,y=y.height,S.O+=(y-1)*S.fa,S.fa=-S.fa,S.N+=(y-1>>1)*S.Ab,S.Ab=-S.Ab,S.W+=(y-1>>1)*S.Db,S.Db=-S.Db,S.F!=null&&(S.J+=(y-1)*S.lb,S.lb=-S.lb);return 0}function $l(y,S,L,I){if(I==null||0>=y||0>=S)return 2;if(L!=null){if(L.Da){var Q=L.cd,te=L.bd,re=-2&L.v,le=-2&L.j;if(0>re||0>le||0>=Q||0>=te||re+Q>y||le+te>S)return 2;y=Q,S=te}if(L.da){if(!Ht(y,S,Q=[L.ib],te=[L.hb]))return 2;y=Q[0],S=te[0]}}I.width=y,I.height=S;e:{var de=I.width,ve=I.height;if(y=I.S,0>=de||0>=ve||!(y>=Hh&&13>y))y=2;else{if(0>=I.Rd&&I.sd==null){re=te=Q=S=0;var Le=(le=de*Xh[y])*ve;if(11>y||(te=(ve+1)/2*(S=(de+1)/2),y==12&&(re=(Q=de)*ve)),(ve=s(Le+2*te+re))==null){y=1;break e}I.sd=ve,11>y?((de=I.f.RGBA).eb=ve,de.fb=0,de.A=le,de.size=Le):((de=I.f.kb).y=ve,de.O=0,de.fa=le,de.Fd=Le,de.f=ve,de.N=0+Le,de.Ab=S,de.Cd=te,de.ea=ve,de.W=0+Le+te,de.Db=S,de.Ed=te,y==12&&(de.F=ve,de.J=0+Le+2*te),de.Tc=re,de.lb=Q)}if(S=1,Q=I.S,te=I.width,re=I.height,Q>=Hh&&13>Q)if(11>Q)y=I.f.RGBA,S&=(le=Math.abs(y.A))*(re-1)+te<=y.size,S&=le>=te*Xh[Q],S&=y.eb!=null;else{y=I.f.kb,le=(te+1)/2,Le=(re+1)/2,de=Math.abs(y.fa),ve=Math.abs(y.Ab);var He=Math.abs(y.Db),ye=Math.abs(y.lb),Oe=ye*(re-1)+te;S&=de*(re-1)+te<=y.Fd,S&=ve*(Le-1)+le<=y.Cd,S=(S&=He*(Le-1)+le<=y.Ed)&de>=te&ve>=le&He>=le,S&=y.y!=null,S&=y.f!=null,S&=y.ea!=null,Q==12&&(S&=ye>=te,S&=Oe<=y.Tc,S&=y.F!=null)}else S=0;y=S?0:2}}return y!=0||L!=null&&L.fd&&(y=Zc(I)),y}var eu=64,Wl=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],tu=24,ts=32,Ps=8,nu=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Lt("Predictor0","PredictorAdd0"),q.Predictor0=function(){return 4278190080},q.Predictor1=function(y){return y},q.Predictor2=function(y,S,L){return S[L+0]},q.Predictor3=function(y,S,L){return S[L+1]},q.Predictor4=function(y,S,L){return S[L-1]},q.Predictor5=function(y,S,L){return Bt(Bt(y,S[L+1]),S[L+0])},q.Predictor6=function(y,S,L){return Bt(y,S[L-1])},q.Predictor7=function(y,S,L){return Bt(y,S[L+0])},q.Predictor8=function(y,S,L){return Bt(S[L-1],S[L+0])},q.Predictor9=function(y,S,L){return Bt(S[L+0],S[L+1])},q.Predictor10=function(y,S,L){return Bt(Bt(y,S[L-1]),Bt(S[L+0],S[L+1]))},q.Predictor11=function(y,S,L){var I=S[L+0];return 0>=Be(I>>24&255,y>>24&255,(S=S[L-1])>>24&255)+Be(I>>16&255,y>>16&255,S>>16&255)+Be(I>>8&255,y>>8&255,S>>8&255)+Be(255&I,255&y,255&S)?I:y},q.Predictor12=function(y,S,L){var I=S[L+0];return(mn((y>>24&255)+(I>>24&255)-((S=S[L-1])>>24&255))<<24|mn((y>>16&255)+(I>>16&255)-(S>>16&255))<<16|mn((y>>8&255)+(I>>8&255)-(S>>8&255))<<8|mn((255&y)+(255&I)-(255&S)))>>>0},q.Predictor13=function(y,S,L){var I=S[L-1];return(An((y=Bt(y,S[L+0]))>>24&255,I>>24&255)<<24|An(y>>16&255,I>>16&255)<<16|An(y>>8&255,I>>8&255)<<8|An(255&y,255&I))>>>0};var dl=q.PredictorAdd0;q.PredictorAdd1=nt,Lt("Predictor2","PredictorAdd2"),Lt("Predictor3","PredictorAdd3"),Lt("Predictor4","PredictorAdd4"),Lt("Predictor5","PredictorAdd5"),Lt("Predictor6","PredictorAdd6"),Lt("Predictor7","PredictorAdd7"),Lt("Predictor8","PredictorAdd8"),Lt("Predictor9","PredictorAdd9"),Lt("Predictor10","PredictorAdd10"),Lt("Predictor11","PredictorAdd11"),Lt("Predictor12","PredictorAdd12"),Lt("Predictor13","PredictorAdd13");var Yl=q.PredictorAdd2;Ct("ColorIndexInverseTransform","MapARGB","32b",function(y){return y>>8&255},function(y){return y}),Ct("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(y){return y},function(y){return y>>8&255});var rd,ru=q.ColorIndexInverseTransform,ya=q.MapARGB,Fp=q.VP8LColorIndexInverseTransformAlpha,ta=q.MapAlpha,js=q.VP8LPredictorsAdd=[];js.length=16,(q.VP8LPredictors=[]).length=16,(q.VP8LPredictorsAdd_C=[]).length=16,(q.VP8LPredictors_C=[]).length=16;var Ql,ad,sd,au,hl,su,li,io,Si,Xl,ns,ys,tr,gr,na,jr,Mo,id,iu,Bh,dg,hg,zp,Hp,ou,Ei,C0,ci,lu=s(511),Fh=s(2041),N0=s(225),A0=s(767),zh=0,fl=Fh,L0=N0,vs=A0,rs=lu,Hh=0,ws=1,Uh=2,ki=3,M0=4,od=5,Kl=6,R0=7,qh=8,ld=9,Vh=10,_i=[2,3,7],cd=[3,3,11],cu=[280,256,256,256,40],Gh=[0,1,1,1,0],O0=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Ti=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,3
5086,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Ci=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Jl=8,Ni=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Ai=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ui=null,fg=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Up=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],$h=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],pg
vendor: 7,568 bytes, line 508
508=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],as=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],
508Dr=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
vendor: 10,202 bytes, line 508
5085,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Un=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ds=[],ra=[],oo=[],Zl=1,qp=2,pl=[],ss=[];xs("UpsampleRgbLinePair",ql,3),xs("UpsampleBgrLinePair",Xc,3),xs("UpsampleRgbaLinePair",_0,4),xs("UpsampleBgraLinePair",wi,4),xs("UpsampleArgbLinePair",Vl,4),xs("UpsampleRgba4444LinePair",es,2),xs("UpsampleRgb565LinePair",Kc,2);var uu=q.UpsampleRgbLinePair,Vp=q.UpsampleBgrLinePair,ud=q.UpsampleRgbaLinePair,Wh=q.UpsampleBgraLinePair,ec=q.UpsampleArgbLinePair,Ro=q.UpsampleRgba4444LinePair,tc=q.UpsampleRgb565LinePair,Li=16,dd=1<<Li-1,du=-227,nc=482,Yh=6,rc=0,is=s(256),Qh=s(256),mg=s(256),yb=s(256),vb=s(nc-du),wb=s(nc-du);Lo("YuvToRgbRow",ql,3),Lo("YuvToBgrRow",Xc,3),Lo("YuvToRgbaRow",_0,4),Lo("YuvToBgraRow",wi,4),Lo("YuvToArgbRow",Vl,4),Lo("YuvToRgba4444Row",es,2),Lo("YuvToRgb565Row",Kc,2);var ha=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],hd=[0,2,8],P0=[8,7,6,4,4,2,2,2,1,1,1,1],j0=1;this.WebPDecodeRGBA=function(y,S,L,I,Q){var te=ws,re=new Ne,le=new wn;re.ba=le,le.S=te,le.width=[le.width],le.height=[le.height];var de=le.width,ve=le.height,Le=new Qt;if(Le==null||y==null)var He=2;else t(Le!=null),He=Gl(y,S,L,Le.width,Le.height,Le.Pd,Le.Qd,Le.format,null);if(He!=0?de=0:(de!=null&&(de[0]=Le.width[0]),ve!=null&&(ve[0]=Le.height[0]),de=1),de){le.width=le.width[0],le.height=le.height[0],I!=null&&(I[0]=le.width),Q!=null&&(Q[0]=le.height);e:{if(I=new tl,(Q=new Pe).data=y,Q.w=S,Q.ha=L,Q.kd=1,S=[0],t(Q!=null),((y=Gl(Q.data,Q.w,Q.ha,null,null,null,S,null,Q))==0||y==7)&&S[0]&&(y=4),(S=y)==0){if(t(re!=null),I.data=Q.data,I.w=Q.w+Q.offset,I.ha=Q.ha-Q.offset,I.put=Nt,I.ac=Za,I.bc=ea,I.ma=re,Q.xa){if((y=Uc())==null){re=1;break e}if((function(ye,Oe){var De=[0],Xe=[0],Fe=[0];t:for(;;){if(ye==null)return 0;if(Oe==null)return ye.a=2,0;if(ye.l=Oe,ye.a=0,be(ye.m,Oe.data,Oe.w,Oe.ha),!Ms(ye.m,De,Xe,Fe)){ye.a=3;break t}if(ye.xb=qp,Oe.width=De[0],Oe.height=Xe[0],!Wi(De[0],Xe[0],1,ye,null))break t;return 1}return t(ye.a!=0),0})(y,I)){if(I=(S=$l(I.width,I.height,re.Oa,re.ba))==0){t:{I=y;n:for(;;){if(I==null){I=0;break t}if(t(I.s.yc!=null),t(I.s.Ya!=null),t(0<I.s.Wb),t((L=I.l)!=null),t((Q=L.ma)!=null),I.xb!=0){if(I.ca=Q.ba,I.tb=Q.tb,t(I.ca!=null),!bs(Q.Oa,L,ki)){I.a=2;break n}if(!Yi(I,L.width)||L.da)break n;if((L.da||Jt(I.ca.S))&&Yr(),11>I.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),I.ca.f.kb.F!=null&&Yr()),I.Pb&&0<I.s.ua&&I.s.vb.X==null&&!fe(I.s.vb,I.s.Wa.Xa)){I.a=1;break n}I.xb=0}if(!ri(I,I.V,I.Ba,I.c,I.i,L.o,Rs))break n;Q.Dc=I.Ma,I=1;break t}t(I.a!=0),I=0}I=!I}I&&(S=y.a)}else S=y.a}else{if((y=new Ji)==null){re=1;break e}if(y.Fa=Q.na,y.P=Q.P,y.qc=Q.Sa,Co(y,I)){if((S=$l(I.width,I.height,re.Oa,re.ba))==0){if(y.Aa=0,L=re.Oa,t((Q=y)!=null),L!=null){if(0<(de=0>(de=L.Md)?0:100<de?255:255*de/100)){for(ve=Le=0;4>ve;++ve)12>(He=Q.pb[ve]).lc&&(He.ia=de*P0[0>He.lc?0:He.lc]>>3),Le|=He.ia;Le&&(alert("todo:VP8InitRandom"),Q.ia=1)}Q.Ga=L.Id,100<Q.Ga?Q.Ga=100:0>Q.Ga&&(Q.Ga=0)}(function(ye,Oe){if(ye==null)return 0;if(Oe==null)return er(ye,2,"NULL VP8Io parameter in VP8Decode().");if(!ye.cb&&!Co(ye,Oe))return 0;if(t(ye.cb),Oe.ac==null||Oe.ac(Oe)){Oe.ob&&(ye.L=0);var De=hd[ye.L];if(ye.L==2?(ye.yb=0,ye.zb=0):(ye.yb=Oe.v-De>>4,ye.zb=Oe.j-De>>4,0>ye.yb&&(ye.yb=0),0>ye.zb&&(ye.zb=0)),ye.Va=Oe.o+15+De>>4,ye.Hb=Oe.va+15+De>>4,ye.Hb>ye.za&&(ye.Hb=ye.za),ye.Va>ye.Ub&&(ye.Va=ye.Ub),0<ye.L){var Xe=ye.ed;for(De=0;4>De;++De){var Fe;if(ye.Qa.Cb){var Qe=ye.Qa.Lb[De];ye.Qa.Fb||(Qe+=Xe.Tb)}else Qe=Xe.Tb;for(Fe=0;1>=Fe;++Fe){var et=ye.gd[De][Fe],dt=Qe;if(Xe.Pc&&(dt+=Xe.vd[0],Fe&&(dt+=Xe.od[0])),0<(dt=0>dt?0:63<dt?63:dt)){var it=dt;0<Xe.wb&&(it=4<Xe.wb?it>>2:it>>1)>9-Xe.wb&&(it=9-Xe.wb),1>it&&(it=1),et.dd=it,et.tc=2*dt+it,et.ld=40<=dt?2:15<=dt?1:0}else et.tc=0;et.La=Fe}}}De=0}else er(ye,6,"Frame setup failed"),De=ye.a;if(De=De==0){if(De){ye.$c=0,0<ye.Aa||(ye.Ic=j0);t:{De=ye.Ic,Xe=4*(it=ye.za);var qt=32*it,Ot=it+1,yn=0<ye.L?it*(0<ye.Aa?2:1):0,It=(ye.Aa==2?2:1)*it;if((et=Xe+832+(Fe=3*(16*De+hd[ye.L])/2*qt)+(Qe=ye.Fa!=null&&0<ye.Fa.length?ye.Kc.c*ye.Kc.i:0))!=et)De=0;else{if(et>ye.Vb){if(ye.Vb=0,ye.Ec=s(et),ye.Fc=0,ye.Ec==null){De=er(ye,1,"no memory during frame initialization.");break t}ye.Vb=et}et=ye.Ec,dt=ye.Fc,ye.Ac=et,ye.Bc=dt,dt+=Xe,ye.Gd=i(qt,m0),ye.Hd=0,ye.rb=i(Ot+1,Ki),ye.sb=1,ye.wa=yn?i(yn,ai):null,ye.Y=0,ye.D.Nb=0,ye.D.wa=ye.wa,ye.D.Y=ye.Y,0<ye.Aa&&(ye.D.Y+=it),t(!0),ye.oc=et,ye.pc=dt,dt+=832,ye.ya=i(It,f0),ye.aa=0,ye.D.ya=ye.ya,ye.D.aa=ye.aa,ye.Aa==2&&(ye.D.aa+=it),ye.R=16*it,ye.B=8*it,it=(qt=hd[ye.L])*ye.R,qt=qt/2*ye.B,ye.sa=et,ye.ta=dt+it,ye.qa=ye.sa,ye.ra=ye.ta+16*De*ye.R+qt,ye.Ha=ye.qa,ye.Ia=ye.ra+8*De*ye.B+qt,ye.$c=0,dt+=Fe,ye.mb=Qe?et:null,ye.nb=Qe?dt:null,t(dt+Qe<=ye.Fc+ye.Vb),Xu(ye),a(ye.Ac,ye.Bc,0,Xe),De=1}}if(De){if(Oe.ka=0,Oe.y=ye.sa,Oe.O=ye.ta,Oe.f=ye.qa,Oe.N=ye.ra,Oe.ea=ye.Ha,Oe.Vd=ye.Ia,Oe.fa=ye.R,Oe.Rc=ye.B,Oe.F=null,Oe.J=0,!zh){for(De=-255;255>=De;++De)lu[255+De]=0>De?-De:De;for(De=-1020;1020>=De;++De)Fh[1020+De]=-128>De?-128:127<De?127:De;for(De=-112;112>=De;++De)N0[112+De]=-16>De?-16:15<De?15:De;for(De=-255;510>=De;++De)A0[255+De]=0>De?0:255<De?255:De;zh=1}li=nl,io=b0,Xl=zl,ns=Rh,ys=Zi,Si=x0,tr=jh,gr=nd,na=Ih,jr=N,Mo=Dh,id=Qc,iu=Y,Bh=ge,dg=Hl,hg=sl,zp=il,Hp=E0,ra[0]=Ph,ra[1]=Vc,ra[2]=Oh,ra[3]=w0,ra[4]=Gc,ra[5]=no,ra[6]=to,ra[7]=ii,ra[8]=S0,ra[9]=Ao,Ds[0]=yi,Ds[1]=y0,Ds[2]=Ip,Ds[3]=Bp,Ds[4]=No,Ds[5]=v0,Ds[6]=vi,oo[0]=td,oo[1]=Zu,oo[2]=rl,oo[3]=ed,oo[4]=gs,oo[5]=$c,oo[6]=ro,De=1}else De=0}De&&(De=(function(Bn,Ir){for(Bn.M=0;Bn.M<Bn.Va;++Bn.M){var kn,Pt=Bn.Jc[Bn.M&Bn.Xb],vt=Bn.m,Qr=Bn;for(kn=0;kn<Qr.za;++kn){var cn=vt,Cn=Qr,dr=Cn.Ac,Pa=Cn.Bc+4*kn,os=Cn.zc,Cr=Cn.ya[Cn.aa+kn];if(Cn.Qa.Bb?Cr.$b=Ie(cn,Cn.Pa.jb[0])?2+Ie(cn,Cn.Pa.jb[2]):Ie(cn,Cn.Pa.jb[1]):Cr.$b=0,Cn.kc&&(Cr.Ad=Ie(cn,Cn.Bd)),Cr.Za=!Ie(cn,145)+0,Cr.Za){var va=Cr.Ob,Ss=0;for(Cn=0;4>Cn;++Cn){var wa,jn=os[0+Cn];for(wa=0;4>wa;++wa){jn=as[dr[Pa+wa]][jn];for(var Kn=$h[Ie(cn,jn[0])];0<Kn;)Kn=$h[2*Kn+Ie(cn,jn[Kn])];jn=-Kn,dr[Pa+wa]=jn}r(va,Ss,dr,Pa,4),Ss+=4,os[0+Cn]=jn}}else jn=Ie(cn,156)?Ie(cn,128)?1:3:Ie(cn,163)?2:0,Cr.Ob[0]=jn,a(dr,Pa,jn,4),a(os,0,jn,4);Cr.Dd=Ie(cn,142)?Ie(cn,114)?Ie(cn,183)?1:3:2:0}if(Qr.m.Ka)return er(Bn,7,"Premature end-of-partition0 encountered.");for(;Bn.ja<Bn.za;++Bn.ja){if(Qr=Pt,cn=(vt=Bn).rb[vt.sb-1],dr=vt.rb[vt.sb+vt.ja],kn=vt.ya[vt.aa+vt.ja],Pa=vt.kc?kn.Ad:0)cn.la=dr.la=0,kn.Za||(cn.Na=dr.Na=0),kn.Hc=0,kn.Gc=0,kn.ia=0;else{var Xr,nr;if(cn=dr,dr=Qr,Pa=vt.Pa.Xc,os=vt.ya[vt.aa+vt.ja],Cr=vt.pb[os.$b],Cn=os.ad,va=0,Ss=vt.rb[vt.sb-1],jn=wa=0,a(Cn,va,0,384),os.Za)var ja=0,Kr=Pa[3];else{Kn=s(16);var Jn=cn.Na+Ss.Na;if(Jn=ui(dr,Pa[1],Jn,Cr.Eb,0,Kn,0),cn.Na=Ss.Na=(0<Jn)+0,1<Jn)li(Kn,0,Cn,va);else{var fa=Kn[0]+3>>3;for(Kn=0;256>Kn;Kn+=16)Cn[va+Kn]=fa}ja=1,Kr=Pa[0]}var hr=15&cn.la,Sa=15&Ss.la;for(Kn=0;4>Kn;++Kn){var Ea=1&Sa;for(fa=nr=0;4>fa;++fa)hr=hr>>1|(Ea=(Jn=ui(dr,Kr,Jn=Ea+(1&hr),Cr.Sc,ja,Cn,va))>ja)<<7,nr=nr<<2|(3<Jn?3:1<Jn?2:Cn[va+0]!=0),va+=16;hr>>=4,Sa=Sa>>1|Ea<<7,wa=(wa<<8|nr)>>>0}for(Kr=hr,ja=Sa>>4,Xr=0;4>Xr;Xr+=2){for(nr=0,hr=cn.la>>4+Xr,Sa=Ss.la>>4+Xr,Kn=0;2>Kn;++Kn){for(Ea=1&Sa,fa=0;2>fa;++fa)Jn=Ea+(1&hr),hr=hr>>1|(Ea=0<(Jn=ui(dr,Pa[2],Jn,Cr.Qc,0,Cn,va)))<<3,nr=nr<<2|(3<Jn?3:1<Jn?2:Cn[va+0]!=0),va+=16;hr>>=2,Sa=Sa>>1|Ea<<5}jn|=nr<<4*Xr,Kr|=hr<<4<<Xr,ja|=(240&Sa)<<Xr}cn.la=Kr,Ss.la=ja,os.Hc=wa,os.Gc=jn,os.ia=43690&jn?0:Cr.ia,Pa=!(wa|jn)}if(0<vt.L&&(vt.wa[vt.Y+vt.ja]=vt.gd[kn.$b][kn.Za],vt.wa[vt.Y+vt.ja].La|=!Pa),Qr.Ka)return er(Bn,7,"Premature end-of-file encountered.")}if(Xu(Bn),vt=Ir,Qr=1,kn=(Pt=Bn).D,cn=0<Pt.L&&Pt.M>=Pt.zb&&Pt.M<=Pt.Va,Pt.Aa==0)t:{if(kn.M=Pt.M,kn.uc=cn,Jc(Pt,kn),Qr=1,kn=(nr=Pt.D).Nb,cn=(jn=hd[Pt.L])*Pt.R,dr=jn/2*Pt.B,Kn=16*kn*Pt.R,fa=8*kn*Pt.B,Pa=Pt.sa,os=Pt.ta-cn+Kn,Cr=Pt.qa,Cn=Pt.ra-dr+fa,va=Pt.Ha,Ss=Pt.Ia-dr+fa,Sa=(hr=nr.M)==0,wa=hr>=Pt.Va-1,Pt.Aa==2&&Jc(Pt,nr),nr.uc)for(Ea=(Jn=Pt).D.M,t(Jn.D.uc),nr=Jn.yb;nr<Jn.Hb;++nr){ja=nr,Kr=Ea;var Sr=(Xn=(ka=Jn).D).Nb;Xr=ka.R;var Xn=Xn.wa[Xn.Y+ja],Es=ka.sa,aa=ka.ta+16*Sr*Xr+16*ja,nn=Xn.dd,sn=Xn.tc;if(sn!=0)if(t(3<=sn),ka.L==1)0<ja&&hg(Es,aa,Xr,sn+4),Xn.La&&Hp(Es,aa,Xr,sn),0<Kr&&dg(Es,aa,Xr,sn+4),Xn.La&&zp(Es,aa,Xr,sn);else{var Zn=ka.B,Hs=ka.qa,Mi=ka.ra+8*Sr*Zn+8*ja,Is=ka.Ha,ka=ka.Ia+8*Sr*Zn+8*ja;Sr=Xn.ld,0<ja&&(gr(Es,aa,Xr,sn+4,nn,Sr),jr(Hs,Mi,Is,ka,Zn,sn+4,nn,Sr)),Xn.La&&(id(Es,aa,Xr,sn,nn,Sr),Bh(Hs,Mi,Is,ka,Zn,sn,nn,Sr)),0<Kr&&(tr(Es,aa,Xr,sn+4,nn,Sr),na(Hs,Mi,Is,ka,Zn,sn+4,nn,Sr)),Xn.La&&(Mo(Es,aa,Xr,sn,nn,Sr),iu(Hs,Mi,Is,ka,Zn,sn,nn,Sr))}}if(Pt.ia&&alert("todo:DitherRow"),vt.put!=null){if(nr=16*hr,hr=16*(hr+1),Sa?(vt.y=Pt.sa,vt.O=Pt.ta+Kn,vt.f=Pt.qa,vt.N=Pt.ra+fa,vt.ea=Pt.Ha,vt.W=Pt.Ia+fa):(nr-=jn,vt.y=Pa,vt.O=os,vt.f=Cr,vt.N=Cn,vt.ea=va,vt.W=Ss),wa||(hr-=jn),hr>vt.o&&(hr=vt.o),vt.F=null,vt.J=null,Pt.Fa!=null&&0<Pt.Fa.length&&nr<hr&&(vt.J=ba(Pt,vt,nr,hr-nr),vt.F=Pt.mb,vt.F==null&&vt.F.length==0)){Qr=er(Pt,3,"Could not decode alpha data.");break t}nr<vt.j&&(jn=vt.j-nr,nr=vt.j,t(!(1&jn)),vt.O+=Pt.R*jn,vt.N+=Pt.B*(jn>>1),vt.W+=Pt.B*(jn>>1),vt.F!=null&&(vt.J+=vt.width*jn)),nr<hr&&(vt.O+=vt.v,vt.N+=vt.v>>1,vt.W+=vt.v>>1,vt.F!=null&&(vt.J+=vt.v),vt.ka=nr-vt.j,vt.U=vt.va-vt.v,vt.T=hr-nr,Qr=vt.put(vt))}kn+1!=Pt.Ic||wa||(r(Pt.sa,Pt.ta-cn,Pa,os+16*Pt.R,cn),r(Pt.qa,Pt.ra-dr,Cr,Cn+8*Pt.B,dr),r(Pt.Ha,Pt.Ia-dr,va,Ss+8*Pt.B,dr))}if(!Qr)return er(Bn,6,"Output aborted.")}return 1})(ye,Oe)),Oe.bc!=null&&Oe.bc(Oe),De&=1}return De?(ye.cb=0,De):0})(y,I)||(S=y.a)}}else S=y.a}S==0&&re.Oa!=null&&re.Oa.fd&&(S=Zc(re.ba))}re=S}te=re!=0?null:11>te?le.f.RGBA.eb:le.f.kb.y}else te=null;return te};var Xh=[3,4,3,4,4,2,2,4,4,4,2,1,1]};
508function d(q,W){for(var z="",$=0;$<4;$++)z+=String.fromCharCode(q[W++]);return z}function f(q,W){return q[W+0]|q[W+1]<<8}function m(q,W){return(q[W+0]|q[W+1]<<8|q[W+2]<<16)>>>0}function b(q,W){return(q[W+0]|q[W+1]<<8|q[W+2]<<16|q[W+3]<<24)>>>0}new c;var g=[0],v=[0],E=[],T=new c,_=e,A=(function(q,W){var z={},$=0,ae=!1,J=0,xe=0;if(z.frames=[],!(function(B,O){for(var K=0;K<4;K++)if(B[O+K]!="RIFF".charCodeAt(K))return!0;return!1})(q,W)){for(b(q,W+=4),W+=8;W<q.length;){var ee=d(q,W),ce=b(q,W+=4);W+=4;var se=ce+(1&ce);switch(ee){case"VP8 ":case"VP8L":z.frames[$]===void 0&&(z.frames[$]={}),(ne=z.frames[$]).src_off=ae?xe:W-8,ne.src_size=J+ce+8,$++,ae&&(ae=!1,J=0,xe=0);break;case"VP8X":(ne=z.header={}).feature_flags=q[W];var be=W+4;ne.canvas_width=1+m(q,be),be+=3,ne.canvas_height=1+m(q,be),be+=3;break;case"ALPH":ae=!0,J=se+8,xe=W-8;break;case"ANIM":(ne=z.header).bgcolor=b(q,W),be=W+4,ne.loop_count=f(q,be),be+=2;break;case"ANMF":var Z,ne;(ne=z.frames[$]={}).offset_x=2*m(q,W),W+=3,ne.offset_y=2*m(q,W),W+=3,ne.width=1+m(q,W),W+=3,ne.height=1+m(q,W),W+=3,ne.duration=m(q,W),W+=3,Z=q[W++],ne.dispose=1&Z,ne.blend=Z>>1&1}ee!="ANMF"&&(W+=se)}return z}})(_,0);A.response=_,A.rgbaoutput=!0,A.dataurl=!1;var R=A.header?A.header:null,P=A.frames?A.frames:null;if(R){R.loop_counter=R.loop_count,g=[R.canvas_height],v=[R.canvas_width];for(var V=0;V<P.length&&P[V].blend!=0;V++);}var U=P[0],D=T.WebPDecodeRGBA(_,U.src_off,U.src_size,v,g);U.rgba=D,U.imgwidth=v[0],U.imgheight=g[0];for(var H=0;H<v[0]*g[0]*4;H++)E[H]=D[H];return this.width=v,this.height=g,this.data=E,this}/** ==================================================================== 509 * @license 510 * jsPDF XMP metadata plugin 511 * Copyright (c) 2016 Jussi Utunen, [email protected] 512 * 513 * Permission is hereby granted, free of charge, to any person obtaining 514 * a copy of this software and associated documentation files (the 515 * "Software"), to deal in the Software without restriction, including 516 * without limitation the rights to use, copy, modify, merge, publish, 517 * distribute, sublicense, and/or sell copies of the Software, and to 518 * permit persons to whom the Software is furnished to do so, subject to 519 * the following conditions: 520 * 521 * The above copyright notice and this permission notice shall be 522 * included in all copies or substantial portions of the Software. 523 * 524 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 525 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 526 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 527 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 528 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 529 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 530 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 531 * ==================================================================== 532 */function hte(){var e,t=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?n:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function fte(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,n,r,a,s,i,o,c,d,f=function(B){return B=B||{},this.isStrokeTransparent=B.isStrokeTransparent||!1,this.strokeOpacity=B.strokeOpacity||1,this.strokeStyle=B.strokeStyle||"#000000",this.fillStyle=B.fillStyle||"#000000",this.isFillTransparent=B.isFillTransparent||!1,this.fillOpacity=B.fillOpacity||1,this.font=B.font||"10px sans-serif",this.textBaseline=B.textBaseline||"alphabetic",this.textAlign=B.textAlign||"left",this.lineWidth=B.lineWidth||1,this.lineJoin=B.lineJoin||"miter",this.lineCap=B.lineCap||"butt",this.path=B.path||[],this.transform=B.transform!==void 0?B.transform.clone():new c,this.globalCompositeOperation=B.globalCompositeOperation||"normal",this.globalAlpha=B.globalAlpha||1,this.clip_path=B.clip_path||[],this.currentPoint=B.currentPoint||new i,this.miterLimit=B.miterLimit||10,this.lastPoint=B.lastPoint||new i,this.lineDashOffset=B.lineDashOffset||0,this.lineDash=B.lineDash||[],this.margin=B.margin||[0,0,0,0],this.prevPageLastElemOffset=B.prevPageLastElemOffset||0,this.ignoreClearRect=typeof B.ignoreClearRect!="boolean"||B.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new m(this),t=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,
vendor: 4,564 bytes, line 532
532s=this.internal.getVerticalCoordinate,i=this.internal.Point,o=this.internal.Rectangle,c=this.internal.Matrix,d=new f}]);var m=function(B){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var O=B;Object.defineProperty(this,"pdf",{get:function(){return O}});var K=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return K},set:function(fe){K=!!fe}});var he=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return he},set:function(fe){he=!!fe}});var we=0;Object.defineProperty(this,"posX",{get:function(){return we},set:function(fe){isNaN(fe)||(we=fe)}});var Ee=0;Object.defineProperty(this,"posY",{get:function(){return Ee},set:function(fe){isNaN(fe)||(Ee=fe)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(fe){var yt;typeof fe=="number"?yt=[fe,fe,fe,fe]:((yt=new Array(4))[0]=fe[0],yt[1]=fe.length>=2?fe[1]:yt[0],yt[2]=fe.length>=3?fe[2]:yt[0],yt[3]=fe.length>=4?fe[3]:yt[1]),d.margin=yt}});var ue=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ue},set:function(fe){ue=fe}});var Ae=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ae},set:function(fe){Ae=fe}});var Ie=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ie},set:function(fe){Ie=fe}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(fe){fe instanceof f&&(d=fe)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(fe){d.path=fe}});var We=[];Object.defineProperty(this,"ctxStack",{get:function(){return We},set:function(fe){We=fe}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(fe){var yt;yt=b(fe),this.ctx.fillStyle=yt.style,this.ctx.isFillTransparent=yt.a===0,this.ctx.fillOpacity=yt.a,this.pdf.setFillColor(yt.r,yt.g,yt.b,{a:yt.a}),this.pdf.setTextColor(yt.r,yt.g,yt.b,{a:yt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(fe){var yt=b(fe);this.ctx.strokeStyle=yt.style,this.ctx.isStrokeTransparent=yt.a===0,this.ctx.strokeOpacity=yt.a,yt.a===0?this.pdf.setDrawColor(255,255,255):(yt.a,this.pdf.setDrawColor(yt.r,yt.g,yt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(fe){["butt","round","square"].indexOf(fe)!==-1&&(this.ctx.lineCap=fe,this.pdf.setLineCap(fe))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(fe){isNaN(fe)||(this.ctx.lineWidth=fe,this.pdf.setLineWidth(fe))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(fe){["bevel","round","miter"].indexOf(fe)!==-1&&(this.ctx.lineJoin=fe,this.pdf.setLineJoin(fe))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(fe){isNaN(fe)||(this.ctx.miterLimit=fe,this.pdf.setMiterLimit(fe))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(fe){this.ctx.textBaseline=fe}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(fe){["right","end","center","left","start"].indexOf(fe)!==-1&&(this.ctx.textAlign=fe)}});var st=null,mt=null,_t=null;Object.defineProperty(this,"fontFaces",{get:function(){return _t},set:function(fe){st=null,mt=null,_t=fe}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(fe){var yt;if(this.ctx.font=fe,(yt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(fe))!==null){var rn=yt[1];yt[2];var Ht=yt[3],tt=yt[4];yt[5];var Kt=yt[6],Lt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(tt)[2];tt=Math.floor(Lt==="px"?parseFloat(tt)*this.pdf.internal.scaleFactor:Lt==="em"?parseFloat(tt)*this.pdf.getFontSize():parseFloat(tt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(tt);var Rt=(function(Ct){var In,hn,Yt=[],tn=Ct.trim();if(tn==="")return N4;if(tn in rT)return[rT[tn]];for(;tn!=="";){switch(hn=null,In=(tn=sT(tn)).charAt(0)){case'"':case"'":hn=ite(tn.substring(1),In);break;default:hn=ote(tn)}if(hn===null||(Yt.push(hn[0]),(tn=sT(hn[1]))!==""&&tn.charAt(0)!==","))return N4;tn=tn.replace(/^,/,"")}return Yt})(Kt);if(this.fontFaces){var Bt=(function(Ct,In){var hn=Ct.getFontList(
532),Yt=JSON.stringify(hn);if(st===null||mt!==Yt){var tn=(function(an){var Ut=[];return Object.keys(an).forEach(function(Ln){an[Ln].forEach(function(Jt){var pn=null;switch(Jt){case"bold":pn={family:Ln,weight:"bold"};break;case"italic":pn={family:Ln,style:"italic"};break;case"bolditalic":pn={family:Ln,weight:"bold",style:"italic"};break;case"":case"normal":pn={family:Ln}}pn!==null&&(pn.ref={name:Ln,style:Jt},Ut.push(pn))})}),Ut})(hn);st=(function(an){for(var Ut={},Ln=0;Ln<an.length;++Ln){var Jt=C4(an[Ln]),pn=Jt.family,ur=Jt.stretch,wn=Jt.style,Qt=Jt.weight;Ut[pn]=Ut[pn]||{},Ut[pn][ur]=Ut[pn][ur]||{},Ut[pn][ur][wn]=Ut[pn][ur][wn]||{},Ut[pn][ur][wn][Qt]=Jt}return Ut})(tn.concat(In)),mt=Yt}return st})(this.pdf,this.fontFaces),mn=Rt.map(function(Ct){return{family:Ct,stretch:"normal",weight:Ht,style:rn}}),An=(function(Ct,In,hn){for(var Yt=(hn=hn||{}).defaultFontFamily||"times",tn=Object.assign({},ste,hn.genericFontFamilies||{}),an=null,Ut=null,Ln=0;Ln<In.length;++Ln)if(tn[(an=C4(In[Ln])).family]&&(an.family=tn[an.family]),Ct.hasOwnProperty(an.family)){Ut=Ct[an.family];break}if(!(Ut=Ut||Ct[Yt]))throw new Error("Could not find a font-family for the rule '"+aT(an)+"' and default family '"+Yt+"'.");if(Ut=(function(Jt,pn){if(pn[Jt])return pn[Jt];var ur=H3[Jt],wn=ur<=H3.normal?-1:1,Qt=nT(pn,XO,ur,wn);if(!Qt)throw new Error("Could not find a matching font-stretch value for "+Jt);return Qt})(an.stretch,Ut),Ut=(function(Jt,pn){if(pn[Jt])return pn[Jt];for(var ur=QO[Jt],wn=0;wn<ur.length;++wn)if(pn[ur[wn]])return pn[ur[wn]];throw new Error("Could not find a matching font-style for "+Jt)})(an.style,Ut),!(Ut=(function(Jt,pn){if(pn[Jt])return pn[Jt];if(Jt===400&&pn[500])return pn[500];if(Jt===500&&pn[400])return pn[400];var ur=ate[Jt],wn=nT(pn,KO,ur,Jt<400?-1:1);if(!wn)throw new Error("Could not find a matching font-weight for value "+Jt);return wn})(an.weight,Ut)))throw new Error("Failed to resolve a font for the rule '"+aT(an)+"'.");return Ut})(Bt,mn);this.pdf.setFont(An.ref.name,An.ref.style)}
vendor: 5,789 bytes, line 532
532else{var Be="";(Ht==="bold"||parseInt(Ht,10)>=700||rn==="bold")&&(Be="bold"),rn==="italic"&&(Be+="italic"),Be.length===0&&(Be="normal");for(var nt="",bt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ut=0;ut<Rt.length;ut++){if(this.pdf.internal.getFont(Rt[ut],Be,{noFallback:!0,disableWarning:!0})!==void 0){nt=Rt[ut];break}if(Be==="bolditalic"&&this.pdf.internal.getFont(Rt[ut],"bold",{noFallback:!0,disableWarning:!0})!==void 0)nt=Rt[ut],Be="bold";else if(this.pdf.internal.getFont(Rt[ut],"normal",{noFallback:!0,disableWarning:!0})!==void 0){nt=Rt[ut],Be="normal";break}}if(nt===""){for(var Et=0;Et<Rt.length;Et++)if(bt[Rt[Et]]){nt=bt[Rt[Et]];break}}nt=nt===""?"Times":nt,this.pdf.setFont(nt,Be)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(fe){this.ctx.globalCompositeOperation=fe}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(fe){this.ctx.globalAlpha=fe}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(fe){this.ctx.lineDashOffset=fe,ne.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(fe){this.ctx.lineDash=fe,ne.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(fe){this.ctx.ignoreClearRect=!!fe}})};m.prototype.setLineDash=function(B){this.lineDash=B},m.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},m.prototype.fill=function(){P.call(this,"fill",!1)},m.prototype.stroke=function(){P.call(this,"stroke",!1)},m.prototype.beginPath=function(){this.path=[{type:"begin"}]},m.prototype.moveTo=function(B,O){if(isNaN(B)||isNaN(O))throw Fr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var K=this.ctx.transform.applyToPoint(new i(B,O));this.path.push({type:"mt",x:K.x,y:K.y}),this.ctx.lastPoint=new i(B,O)},m.prototype.closePath=function(){var B=new i(0,0),O=0;for(O=this.path.length-1;O!==-1;O--)if(this.path[O].type==="begin"&&_r(this.path[O+1])==="object"&&typeof this.path[O+1].x=="number"){B=new i(this.path[O+1].x,this.path[O+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new i(B.x,B.y)},m.prototype.lineTo=function(B,O){if(isNaN(B)||isNaN(O))throw Fr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var K=this.ctx.transform.applyToPoint(new i(B,O));this.path.push({type:"lt",x:K.x,y:K.y}),this.ctx.lastPoint=new i(K.x,K.y)},m.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),P.call(this,null,!0)},m.prototype.quadraticCurveTo=function(B,O,K,he){if(isNaN(K)||isNaN(he)||isNaN(B)||isNaN(O))throw Fr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var we=this.ctx.transform.applyToPoint(new i(K,he)),Ee=this.ctx.transform.applyToPoint(new i(B,O));this.path.push({type:"qct",x1:Ee.x,y1:Ee.y,x:we.x,y:we.y}),this.ctx.lastPoint=new i(we.x,we.y)},m.prototype.bezierCurveTo=function(B,O,K,he,we,Ee){if(isNaN(we)||isNaN(Ee)||isNaN(B)||isNaN(O)||isNaN(K)||isNaN(he))throw Fr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ue=this.ctx.transform.applyToPoint(new i(we,Ee)),Ae=this.ctx.transform.applyToPoint(new i(B,O)),Ie=this.ctx.transform.applyToPoint(new i(K,he));this.path.push({type:"bct",x1:Ae.x,y1:Ae.y,x2:Ie.x,y2:Ie.y,x:ue.x,y:ue.y}),this.ctx.lastPoint=new i(ue.x,ue.y)},m.prototype.arc=function(B,O,K,he,we,Ee){if(isNaN(B)||isNaN(O)||isNaN(K)||isNaN(he)||isNaN(we))throw Fr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Ee=!!Ee,!this.ctx.transform.isIdentity){var ue=this.ctx.transform.applyToPoint(new i(B,O));B=ue.x,O=ue.y;var Ae=this.ctx.transform.applyToPoint(new i(0,K)),Ie=this.ctx.transform.applyToPoint(new i(0,0));K=Math.sqrt(Math.pow(Ae.x-Ie.x,2)+Math.pow(Ae.y-Ie.y,2))}Math.abs(we-he)>=2*Math.PI&&(he=0,we=2*Math.PI),this.path.push({type:"arc",x:B,y:O,radius:K,startAngle:he,endAngle:we,counterclockwise:Ee})},m.prototype.arcTo=function(B,O,K,he,we){throw new Error("arcTo not implemented.")},m.prototype.rect=function(B,O,K,he){if(isNaN(B)||isNaN(O)||isNaN(K)||isNaN(he))throw Fr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(B,O),this.lineTo(B+K,O),this.lineTo(B+K,O+he),this.lineTo(B,O+he),this.lineTo(B,O),this.lineTo(B+K,O),this.lineTo(B,O)},m.prototype.fillRect=function(B,O,K,he){if(isNaN(B)||isNaN(O)||isNaN(K)||isNaN(he))throw Fr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var we={};this.lineCap!=="butt"&&(we.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(we.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(B,O,K,he),this.fill(),we.hasOwnProperty("lineCap")&&(this.lineCap=we.lineCap),we.hasOwnProperty("lineJoin")&&(this.lineJoin=we.lineJoin)}},m.prototype.strokeRect=function(B,O,K,he){if(isNaN(B)||isNaN(O)||isNaN(K)||isNaN(he))throw Fr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to
532jsPDF.context2d.strokeRect");v.call(this)||(this.beginPath(),this.rect(B,O,K,he),this.stroke())},m.prototype.clearRect=function(B,O,K,he){if(isNaN(B)||isNaN(O)||isNaN(K)||isNaN(he))throw Fr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(B,O,K,he))},m.prototype.save=function(B){B=typeof B!="boolean"||B;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,K=0;K<this.pdf.internal.getNumberOfPages();K++)this.pdf.setPage(K+1),this.pdf.internal.out("q");if(this.pdf.setPage(O),B){this.ctx.fontSize=this.pdf.internal.getFontSize();var he=new f(this.ctx);this.ctxStack.push(this.ctx),this.ctx=he}},m.prototype.restore=function(B){B=typeof B!="boolean"||B;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,K=0;K<this.pdf.internal.getNumberOfPages();K++)this.pdf.setPage(K+1),this.pdf.internal.out("Q");this.pdf.setPage(O),B&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},m.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var b=function(B){var O,K,he,we;if(B.isCanvasGradient===!0&&(B=B.getColor()),!B)return{r:0,g:0,b:0,a:0,style:B};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(B))O=0,K=0,he=0,we=0;else{var Ee=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(B);if(Ee!==null)O=parseInt(Ee[1]),K=parseInt(Ee[2]),he=parseInt(Ee[3]),we=1;else if((Ee=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(B))!==null)O=parseInt(Ee[1]),K=parseInt(Ee[2]),he=parseInt(Ee[3]),we=parseFloat(Ee[4]);else{if(we=1,typeof B=="string"&&B.charAt(0)!=="#"){var ue=new UO(B);B=ue.ok?ue.toHex():"#000000"}B.length===4?(O=B.substring(1,2),O+=O,K=B.substring(2,3),K+=K,he=B.substring(3,4),he+=he):(O=B.substring(1,3),K=B.substring(3,5),he=B.substring(5,7)),O=parseInt(O,16),K=parseInt(K,16),he=parseInt(he,16)}}return{r:O,g:K,b:he,a:we,style:B}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},v=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};m.prototype.fillText=function(B,O,K,he){if(isNaN(O)||isNaN(K)||typeof B!="string")throw Fr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(he=isNaN(he)?void 0:he,!g.call(this)){var we=se(this.ctx.transform.rotation),Ee=this.ctx.transform.scaleX;$.call(this,{text:B,x:O,y:K,scale:Ee,angle:we,align:this.textAlign,maxWidth:he})}},m.prototype.strokeText=function(B,O,K,he){if(isNaN(O)||isNaN(K)||typeof B!="string")throw Fr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!v.call(this)){he=isNaN(he)?void 0:he;var we=se(this.ctx.transform.rotation),Ee=this.ctx.transform.scaleX;$.call(this,{text:B,x:O,y:K,scale:Ee,renderingMode:"stroke",angle:we,align:this.textAlign,maxWidth:he})}},m.prototype.measureText=function(B){if(typeof B!="string")throw Fr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var O=this.pdf,K=this.pdf.internal.scaleFactor,he=O.internal.getFontSize(),we=O.getStringUnitWidth(B)*he/O.internal.scaleFactor;return new function(Ee){var ue=(Ee=Ee||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ue}}),this}({width:we*=Math.round(96*K/72*1e4)/1e4})},m.prototype.scale=function(B,O){if(isNaN(B)||isNaN(O))throw Fr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var K=new c(B,0,0,O,0,0);this.ctx.transform=this.ctx.transform.multiply(K)},m.prototype.rotate=function(B){if(isNaN(B))throw Fr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to
532jsPDF.context2d.rotate");var O=new c(Math.cos(B),Math.sin(B),-Math.sin(B),Math.cos(B),0,0);this.ctx.transform=this.ctx.transform.multiply(O)},m.prototype.translate=function(B,O){if(isNaN(B)||isNaN(O))throw Fr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var K=new c(1,0,0,1,B,O);this.ctx.transform=this.ctx.transform.multiply(K)},m.prototype.transform=function(B,O,K,he,we,Ee){if(isNaN(B)||isNaN(O)||isNaN(K)||isNaN(he)||isNaN(we)||isNaN(Ee))throw Fr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ue=new c(B,O,K,he,we,Ee);this.ctx.transform=this.ctx.transform.multiply(ue)},m.prototype.setTransform=function(B,O,K,he,we,Ee){B=isNaN(B)?1:B,O=isNaN(O)?0:O,K=isNaN(K)?0:K,he=isNaN(he)?1:he,we=isNaN(we)?0:we,Ee=isNaN(Ee)?0:Ee,this.ctx.transform=new c(B,O,K,he,we,Ee)};var E=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};m.prototype.drawImage=function(B,O,K,he,we,Ee,ue,Ae,Ie){var We=this.pdf.getImageProperties(B),st=1,mt=1,_t=1,fe=1;he!==void 0&&Ae!==void 0&&(_t=Ae/he,fe=Ie/we,st=We.width/he*Ae/he,mt=We.height/we*Ie/we),Ee===void 0&&(Ee=O,ue=K,O=0,K=0),he!==void 0&&Ae===void 0&&(Ae=he,Ie=we),he===void 0&&Ae===void 0&&(Ae=We.width,Ie=We.height);var yt=this.ctx.transform.decompose(),rn=se(yt.rotate.shx),Ht=new c,tt=(Ht=(Ht=(Ht=Ht.multiply(yt.translate)).multiply(yt.skew)).multiply(yt.scale)).applyToRectangle(new o(Ee-O*_t,ue-K*fe,he*st,we*mt));if(this.autoPaging){for(var Kt,Lt=T.call(this,tt),Rt=[],Bt=0;Bt<Lt.length;Bt+=1)Rt.indexOf(Lt[Bt])===-1&&Rt.push(Lt[Bt]);R(Rt);for(var mn=Rt[0],An=Rt[Rt.length-1],Be=mn;Be<An+1;Be++){this.pdf.setPage(Be);var nt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],bt=Be===1?this.posY+this.margin[0]:this.margin[0],ut=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Et=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ct=Be===1?0:ut+(Be-2)*Et;if(this.ctx.clip_path.length!==0){var In=this.path;Kt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=A(Kt,this.posX+this.margin[3],-Ct+bt+this.ctx.prevPageLastElemOffset),V.call(this,"fill",!0),this.path=In}var hn=JSON.parse(JSON.stringify(tt));hn=A([hn],this.posX+this.margin[3],-Ct+bt+this.ctx.prevPageLastElemOffset)[0];var Yt=(Be>mn||Be<An)&&E.call(this);Yt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],nt,Et,null).clip().discardPath()),this.pdf.addImage(B,"JPEG",hn.x,hn.y,hn.w,hn.h,null,null,rn),Yt&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(B,"JPEG",tt.x,tt.y,tt.w,tt.h,null,null,rn)};var T=function(B,O,K){var he=[];O=O||this.pdf.internal.pageSize.width,K=K||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var we=this.posY+this.ctx.prevPageLastElemOffset;switch(B.type){default:case"mt":case"lt":he.push(Math.floor((B.y+we)/K)+1);break;case"arc":he.push(Math.floor((B.y+we-B.radius)/K)+1),he.push(Math.floor((B.y+we+B.radius)/K)+1);break;case"qct":var Ee=be(this.ctx.lastPoint.x,this.ctx.lastPoint.y,B.x1,B.y1,B.x,B.y);he.push(Math.floor((Ee.y+we)/K)+1),he.push(Math.floor((Ee.y+Ee.h+we)/K)+1);break;case"bct":var ue=Z(this.ctx.lastPoint.x,this.ctx.lastPoint.y,B.x1,B.y1,B.x2,B.y2,B.x,B.y);he.push(Math.floor((ue.y+we)/K)+1),he.push(Math.floor((ue.y+ue.h+we)/K)+1);break;case"rect":he.push(Math.floor((B.y+we)/K)+1),he.push(Math.floor((B.y+B.h+we)/K)+1)}for(var Ae=0;Ae<he.length;Ae+=1)for(;this.pdf.internal.getNumberOfPages()<he[Ae];)_.call(this);return he},_=function(){var B=this.fillStyle,O=this.strokeStyle,K=this.font,he=this.lineCap,we=this.lineWidth,Ee=this.lineJoin;this.pdf.addPage(),this.fillStyle=B,this.strokeStyle=O,this.font=K,this.lineCap=he,this.lineWidth=we,this.lineJoin=Ee},A=function(B,O,K){for(var he=0;he<B.length;he++)switch(B[he].type){case"bct":B[he].x2+=O,B[he].y2+=K;case"qct":B[he].x1+=O,B[he].y1+=K;default:B[he].x+=O,B[he].y+=K}return B},R=function(B){return B.sort(function(O,K){return O-K})},P=function(B,O){var K=this.fillStyle,he=this.strokeStyle,we=this.lineCap,Ee=this.lineWidth,ue=Math.abs(Ee*this.ctx.transform.scaleX),Ae=this.lineJoin;if(this.autoPaging){for(var Ie,We,st=JSON.parse(JSON.stringify(this.path)),mt=JSON.parse(JSON.stringify(this.path)),_t=[],fe=0;fe<mt.length;fe++)if(mt[fe].x!==void 0)for(var yt=T.call(this,mt[fe]),rn=0;rn<yt.length;rn+=1)_t.indexOf(yt[rn])===-1&&_t.push(yt[rn]);for(var Ht=0;Ht<_t.length;Ht++)for(;this.pdf.internal.getNumberOfPages()<_t[Ht];)_.call(this);R(_t);for(var tt=_t[0],Kt=_t[_t.length-1],Lt=tt;Lt<Kt+1;Lt++){this.pdf.setPage(Lt),this.fillStyle=K,this.strokeStyle=he,this.lineCap=we,this.lineWidth=ue,this.lineJoin=Ae;var Rt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Bt=Lt===1?this.posY+this.margin[0]:this.margin[0],mn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],An=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Be=Lt===1?0:mn+(Lt-2)*An;if(this.ctx.clip_path.length!==0){var nt=this.path;Ie=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=A(Ie,this.posX+this.margin[3],-Be+Bt+this.ctx.prevPageLastElemOffset),V.call(this,B,!0),this.path=nt}if(We=JSON.parse(JSON.stringify(st)),this.path=A(We,this.posX+this.margin[3],-Be+Bt+this.ctx.prevPageLastElemOffset),O===!1||Lt===0){var bt=(Lt>tt||Lt<Kt)&&E.call(this);bt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Rt,An,null).clip().discardPath()),V.call(this,B,O),bt&&this.pdf.restoreGraphicsState()}this.lineWidth=Ee}this.path=st}else this.lineWidth=ue,V.call(this,B,O),this.lineWidth=Ee},V=function(B,O){if((B!=="stroke"||O||!v.call(this))&&(B==="stroke"||O||!g.call(this))){for(var K,he,we=[],Ee=this.path,ue=0;ue<Ee.length;ue++){var Ae=Ee[ue];switch(Ae.type){case"begin":we.push({begin:!0}
vendor: 9,439 bytes, line 532
532);break;case"close":we.push({close:!0});break;case"mt":we.push({start:Ae,deltas:[],abs:[]});break;case"lt":var Ie=we.length;if(Ee[ue-1]&&!isNaN(Ee[ue-1].x)&&(K=[Ae.x-Ee[ue-1].x,Ae.y-Ee[ue-1].y],Ie>0)){for(;Ie>=0;Ie--)if(we[Ie-1].close!==!0&&we[Ie-1].begin!==!0){we[Ie-1].deltas.push(K),we[Ie-1].abs.push(Ae);break}}break;case"bct":K=[Ae.x1-Ee[ue-1].x,Ae.y1-Ee[ue-1].y,Ae.x2-Ee[ue-1].x,Ae.y2-Ee[ue-1].y,Ae.x-Ee[ue-1].x,Ae.y-Ee[ue-1].y],we[we.length-1].deltas.push(K);break;case"qct":var We=Ee[ue-1].x+2/3*(Ae.x1-Ee[ue-1].x),st=Ee[ue-1].y+2/3*(Ae.y1-Ee[ue-1].y),mt=Ae.x+2/3*(Ae.x1-Ae.x),_t=Ae.y+2/3*(Ae.y1-Ae.y),fe=Ae.x,yt=Ae.y;K=[We-Ee[ue-1].x,st-Ee[ue-1].y,mt-Ee[ue-1].x,_t-Ee[ue-1].y,fe-Ee[ue-1].x,yt-Ee[ue-1].y],we[we.length-1].deltas.push(K);break;case"arc":we.push({deltas:[],abs:[],arc:!0}),Array.isArray(we[we.length-1].abs)&&we[we.length-1].abs.push(Ae)}}he=O?null:B==="stroke"?"stroke":"fill";for(var rn=!1,Ht=0;Ht<we.length;Ht++)if(we[Ht].arc)for(var tt=we[Ht].abs,Kt=0;Kt<tt.length;Kt++){var Lt=tt[Kt];Lt.type==="arc"?H.call(this,Lt.x,Lt.y,Lt.radius,Lt.startAngle,Lt.endAngle,Lt.counterclockwise,void 0,O,!rn):ae.call(this,Lt.x,Lt.y),rn=!0}else if(we[Ht].close===!0)this.pdf.internal.out("h"),rn=!1;else if(we[Ht].begin!==!0){var Rt=we[Ht].start.x,Bt=we[Ht].start.y;J.call(this,we[Ht].deltas,Rt,Bt),rn=!0}he&&q.call(this,he),O&&W.call(this)}},U=function(B){var O=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,K=O*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return B-K;case"top":return B+O-K;case"hanging":return B+O-2*K;case"middle":return B+O/2-K;default:return B}},D=function(B){return B+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};m.prototype.createLinearGradient=function(){var B=function(){};return B.colorStops=[],B.addColorStop=function(O,K){this.colorStops.push([O,K])},B.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},B.isCanvasGradient=!0,B},m.prototype.createPattern=function(){return this.createLinearGradient()},m.prototype.createRadialGradient=function(){return this.createLinearGradient()};var H=function(B,O,K,he,we,Ee,ue,Ae,Ie){for(var We=ee.call(this,K,he,we,Ee),st=0;st<We.length;st++){var mt=We[st];st===0&&(Ie?z.call(this,mt.x1+B,mt.y1+O):ae.call(this,mt.x1+B,mt.y1+O)),xe.call(this,B,O,mt.x2,mt.y2,mt.x3,mt.y3,mt.x4,mt.y4)}Ae?W.call(this):q.call(this,ue)},q=function(B){switch(B){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},W=function(){this.pdf.clip(),this.pdf.discardPath()},z=function(B,O){this.pdf.internal.out(n(B)+" "+r(O)+" m")},$=function(B){var O;switch(B.align){case"right":case"end":O="right";break;case"center":O="center";break;default:O="left"}var K,he,we,Ee=this.pdf.getTextDimensions(B.text),ue=U.call(this,B.y),Ae=D.call(this,ue)-Ee.h,Ie=this.ctx.transform.applyToPoint(new i(B.x,ue));if(this.autoPaging){var We=this.ctx.transform.decompose(),st=new c;st=(st=(st=st.multiply(We.translate)).multiply(We.skew)).multiply(We.scale);for(var mt=this.ctx.transform.applyToRectangle(new o(B.x,ue,Ee.w,Ee.h)),_t=st.applyToRectangle(new o(B.x,Ae,Ee.w,Ee.h)),fe=T.call(this,_t),yt=[],rn=0;rn<fe.length;rn+=1)yt.indexOf(fe[rn])===-1&&yt.push(fe[rn]);R(yt);for(var Ht=yt[0],tt=yt[yt.length-1],Kt=Ht;Kt<tt+1;Kt++){this.pdf.setPage(Kt);var Lt=Kt===1?this.posY+this.margin[0]:this.margin[0],Rt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Bt=this.pdf.internal.pageSize.height-this.margin[2],mn=Bt-this.margin[0],An=this.pdf.internal.pageSize.width-this.margin[1],Be=An-this.margin[3],nt=Kt===1?0:Rt+(Kt-2)*mn;if(this.ctx.clip_path.length!==0){var bt=this.path;K=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=A(K,this.posX+this.margin[3],-1*nt+Lt),V.call(this,"fill",!0),this.path=bt}var ut=A([JSON.parse(JSON.stringify(_t))],this.posX+this.margin[3],-nt+Lt+this.ctx.prevPageLastElemOffset)[0];B.scale>=.01&&(he=this.pdf.internal.getFontSize(),this.pdf.setFontSize(he*B.scale),we=this.lineWidth,this.lineWidth=we*B.scale);var Et=this.autoPaging!=="text";if(Et||ut.y+ut.h<=Bt){if(Et||ut.y>=Lt&&ut.x<=An){var Ct=Et?B.text:this.pdf.splitTextToSize(B.text,B.maxWidth||An-ut.x)[0],In=A([JSON.parse(JSON.stringify(mt))],this.posX+this.margin[3],-nt+Lt+this.ctx.prevPageLastElemOffset)[0],hn=Et&&(Kt>Ht||Kt<tt)&&E.call(this);hn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Be,mn,null).clip().discardPath()),this.pdf.text(Ct,In.x,In.y,{angle:B.angle,align:O,renderingMode:B.renderingMode}),hn&&this.pdf.restoreGraphicsState()}}else ut.y<Bt&&(this.ctx.prevPageLastElemOffset+=Bt-ut.y);B.scale>=.01&&(this.pdf.setFontSize(he),this.lineWidth=we)}}else B.scale>=.01&&(he=this.pdf.internal.getFontSize(),this.pdf.setFontSize(he*B.scale),we=this.lineWidth,this.lineWidth=we*B.scale),this.pdf.text(B.text,Ie.x+this.posX,Ie.y+this.posY,{angle:B.angle,align:O,renderingMode:B.renderingMode,maxWidth:B.maxWidth}),B.scale>=.01&&(this.pdf.setFontSize(he),this.lineWidth=we)},ae=function(B,O,K,he){K=K||0,he=he||0,this.pdf.internal.out(n(B+K)+" "+r(O+he)+" l")},J=function(B,O,K){return this.pdf.lines(B,O,K,null,null)},xe=function(B,O,K,he,we,Ee,ue,Ae){this.pdf.internal.out([t(a(K+B)),t(s(he+O)),t(a(we+B)),t(s(Ee+O)),t(a(ue+B)),t(s(Ae+O)),"c"].join(" "))},ee=function(B,O,K,he){for(var we=2*Math.PI,Ee=Math.PI/2;O>K;)O-=we;var ue=Math.abs(K-O);ue<we&&he&&(ue=we-ue);for(var Ae=[],Ie=he?-1:1,We=O;ue>1e-5;){var st=We+Ie*Math.min(ue,Ee);Ae.push(ce.call(this,B,We,st)),ue-=Math.abs(st-We),We=st}return Ae},ce=function(B,O,K){var he=(K-O)/2,we=B*Math.cos(he),Ee=B*Math.sin(he),ue=we,Ae=-Ee,Ie=ue*ue+Ae*Ae,We=Ie+ue*we+Ae*Ee,st=4/3*(Math.sqrt(2*Ie*We)-We)/(ue*Ee-Ae*we),mt=ue-st*Ae,_t=Ae+st*ue,fe=mt,yt=-_t,rn=he+O,Ht=Math.cos(rn),tt=Math.sin(rn);return{x1:B*Math.cos(O),y1:B*Math.sin(O),x2:mt*Ht-_t*tt,y2:mt*tt+_t*Ht,x3:fe*Ht-yt*tt,y3:fe*tt+yt*Ht,x4:B*Math.cos(K),y4:B*Math.sin(K)}},se=function(B){return 180*B/Math.PI},be=function(B,O,K,he,we,Ee){var ue=B+.5*(K-B),Ae=O+.5*(he-O),Ie=we+.5*(K-we),We=Ee+.5*(he-Ee),st=Math.min(B,we,ue,Ie),mt=Math.max(B,we,ue,Ie),_t=Math.min(O,Ee,Ae,We),fe=Math.max(O,Ee,Ae,We);return new o(st,_t,mt-st,fe-_t)},Z=function(B,O,K,he,we,Ee,ue,Ae){var Ie,We,st,mt,_t,fe,yt,rn,Ht,tt,Kt,Lt,Rt,Bt,mn=K-B,An=he-O,Be=we-K,nt=Ee-he,bt=ue-we,ut=Ae-Ee;for(We=0;We<41;We++)Ht=(yt=(st=B+(Ie=We/40)*mn)+Ie*((_t=K+Ie*Be)-st))+Ie*(_t+Ie*(we+Ie*bt-_t)-yt),tt=(rn=(mt=O+Ie*An)+Ie*((fe=he+Ie*nt)-mt))+Ie*(fe+Ie*(Ee+Ie*ut-fe)-rn),We==0?(Kt=Ht,Lt=tt,Rt=Ht,Bt=tt):(Kt=Math.min(Kt,Ht),Lt=Math.min(Lt,tt),Rt=Math.max(Rt,Ht),Bt=Math.max(Bt,tt));return new o(Math.round(Kt),Math.round(Lt),Math.round(Rt-Kt),Math.round(Bt-Lt))},ne=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var B,O,K=(B=this.ctx.lineDash,O=this.ctx.lineDashOffset,JSON.stringify({lineDash:B,lineDashOffset:O}));this.prevLineDash!==K&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=K)}}})(en.API),(function(e){var t=function(i){var o,c,d,f,m,b,g,v,E,T;for(c=[],d=0,f=(i+=o="\0\0\0\0".slice(i.length%4||4)).length;f>d;d+=4)(m=(i.charCodeAt(d)<<24)+(i.charCodeAt(d+1)<<16)+(i.charCodeAt(d+2)<<8)+i.charCodeAt(d+3))!==0?(b=(m=((m=((m=((m=(m-(T=m%85))/85)-(E=m%85))/85)-(v=m%85))/85)-(g=m%85))/85)%85,c.push(b+33,g+33,v+33,E+33,T+33)):c.push(122);return(function(_,A){for(var R=A;R>0;R--)_.pop()})(c,o.length),String.fromCharCode.apply(String,c)+"~>"},n=function(i){var o,c,d,f,m,b=String,g="length",v=255,E="charCodeAt",T="slice",_="replace";for(i[T](-2),i=i[T](0,-2)[_](/\s/g,"")[_]("z","!!!!!"),d=[],f=0,m=(i+=o="uuuuu"[T](i[g]%5||5))[g];m>f;f+=5)c=52200625*(i[E](f)-33)+614125*(i[E](f+1)-33)+7225*(i[E](f+2)-33)+85*(i[E](f+3)-33)+(i[E](f+4)-33),d.push(v&c>>24,v&c>>16,v&c>>8,v&c);return(function(A,R){for(var P=R;P>0;P--)A.pop()})(d,o[g]),b.fromCharCode.apply(b,d)},r=function(i){return i.split("").map(function(o){return("0"+o.charCodeAt().toString(16)).slice(-2)}).join("")+">"},a=function(i){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),o.test(i)===!1)return"";for(var c="",d=0;d<i.length;d+=2)c+=String.fromCharCode("0x"+(i[d]+i[d+1]));return c},s=function(i){for(var o=new Uint8Array(i.length),c=i.length;c--;)o[c]=i.charCodeAt(c);return(o=P3(o)).reduce(function(d,f){return d+String.fromCharCode(f)},"")};e.processDataByFilters=function(i,o){var c=0,d=i||"",f=[];for(typeof(o=o||[])=="string"&&(o=[o]),c=0;c<o.length;c+=1)switch(o[c]){case"ASCII85Decode":case"/ASCII85Decode":d=n(d),f.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":d=t(d),f.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":d=a(d),f.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":d=r(d),f.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":d=s(d),f.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[c]+'" is not implemented')}return{data:d,reverseChain:f.reverse().join(" ")}}})(en.API),(function(e){e.loadFile=function(t,n,r){return(function(a,s,i){s=s!==!1,i=typeof i=="function"?i:function(){};var o=void 0;try{o=(function(c,d,f){var m=new XMLHttpRequest,b=0,g=function(v){var E=v.length,T=[],_=String.fromCharCode;for(b=0;b<E;b+=1)T.push(_(255&v.charCodeAt(b)));return T.join("")};if(m.open("GET",c,!d),m.overrideMimeType("text/plain;
532 charset=x-user-defined"),d===!1&&(m.onload=function(){m.status===200?f(g(this.responseText)):f(void 0)}),m.send(null),d&&m.status===200)return g(m.responseText)})(a,s,i)}catch{}return o})(t,n,r)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile})(en.API),(function(e){function t(){return(vn.html2canvas?Promise.resolve(vn.html2canvas):me(()=>import("./html2canvas.esm-B0tyYwQk.js"),[])).catch(function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))}).then(function(o){return o.default?o.default:o})}function n(){return(vn.DOMPurify?Promise.resolve(vn.DOMPurify):me(()=>import("./purify.es-Csrj9YNg.js"),[])).catch(function(o){return Promise.reject(new Error("Could not load dompurify: "+o))}).then(function(o){return o.default?o.default:o})}var r=function(o){var c=_r(o);return c==="undefined"?"undefined":c==="string"||o instanceof String?"string":c==="number"||o instanceof Number?"number":c==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":c==="object"?"object":"unknown"},a=function(o,c){var d=document.createElement(o);for(var f in c.className&&(d.className=c.className),c.innerHTML&&c.dompurify&&(d.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)d.style[f]=c.style[f];return d},s=function o(c,d){for(var f=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),m=c.firstChild;m;m=m.nextSibling)d!==!0&&m.nodeType===1&&m.nodeName==="SCRIPT"||f.appendChild(o(m,d));return c.nodeType===1&&(c.nodeName==="CANVAS"?(f.width=c.width,f.height=c.height,f.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(f.value=c.value),f.addEventListener("load",function(){f.scrollTop=c.scrollTop,f.scrollLeft=c.scrollLeft},!0)),f},i=function o(c){var d=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),f=o.convert(Promise.resolve(),d);return(f=f.setProgress(1,o,1,[o])).set(c)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(o,c){return o.__proto__=c||i.prototype,o},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(o,c){return this.then(function(){switch(c=c||(function(d){switch(r(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(o),c){case"string":return this.then(n).then(function(d){return this.set({src:a("div",{innerHTML:o,dompurify:d})})});case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}})},i.prototype.to=function(o){switch(o){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var o={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},c=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then(function(c){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,c(this.prop.container,d)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then(function(c){var d=this.opt.jsPDF,f=this.opt.fontFaces,m=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,b=Object.assign({async:!0,allowTaint:!0,scale:m,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete b.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=f,f)for(var g=0;g<f.length;++g){var v=f[g],E=v.src.find(function(T){return T.format==="truetype"});E&&d.addFont(E.url,v.ref.name,v.ref.style)}
vendor: 4,673 bytes, line 532
532return b.windowHeight=b.windowHeight||0,b.windowHeight=b.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):b.windowHeight,d.context2d.save(!0),c(this.prop.container,b)}).then(function(c){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var o=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=o})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(o,c,d){return(d=d||"pdf").toLowerCase()==="img"||d.toLowerCase()==="image"?this.outputImg(o,c):this.outputPdf(o,c)},i.prototype.outputPdf=function(o,c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(o,c)})},i.prototype.outputImg=function(o){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(o){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+o+'" is not supported.'}})},i.prototype.save=function(o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(o?{filename:o}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(o){if(r(o)!=="object")return this;var c=Object.keys(o||{}).map(function(d){if(d in i.template.prop)return function(){this.prop[d]=o[d]};switch(d){case"margin":return this.setMargin.bind(this,o.margin);case"jsPDF":return function(){return this.opt.jsPDF=o.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,o.pageSize);default:return function(){this.opt[d]=o[d]}}},this);return this.then(function(){return this.thenList(c)})},i.prototype.get=function(o,c){return this.then(function(){var d=o in i.template.prop?this.prop[o]:this.opt[o];return c?c(d):d})},i.prototype.setMargin=function(o){return this.then(function(){switch(r(o)){case"number":o=[o,o,o,o];case"array":if(o.length===2&&(o=[o[0],o[1],o[0],o[1]]),o.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=o}).then(this.setPageSize)},i.prototype.setPageSize=function(o){function c(d,f){return Math.floor(d*f/72*96)}return this.then(function(){(o=o||en.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(o.inner={width:o.width-this.opt.margin[1]-this.opt.margin[3],height:o.height-this.opt.margin[0]-this.opt.margin[2]},o.inner.px={width:c(o.inner.width,o.k),height:c(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o})},i.prototype.setProgress=function(o,c,d,f){return o!=null&&(this.progress.val=o),c!=null&&(this.progress.state=c),d!=null&&(this.progress.n=d),f!=null&&(this.progress.stack=f),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(o,c,d,f){return this.setProgress(o?this.progress.val+o:null,c||null,d?this.progress.n+d:null,f?this.progress.stack.concat(f):null)},i.prototype.then=function(o,c){var d=this;return this.thenCore(o,c,function(f,m){return d.updateProgress(null,null,1,[f]),Promise.prototype.then.call(this,function(b){return d.updateProgress(null,f),b}).then(f,m).then(function(b){return d.updateProgress(1),b})})},i.prototype.thenCore=function(o,c,d){d=d||Promise.prototype.then;var f=this;o&&(o=o.bind(f)),c&&(c=c.bind(f));var m=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?f:i.convert(Object.assign({},f),Promise.prototype),b=d.call(m,o,c);return i.convert(b,f.__proto__)},i.prototype.thenExternal=function(o,c){return Promise.prototype.then.call(this,o,c)},i.prototype.thenList=function(o){var c=this;return o.forEach(function(d){c=c.thenCore(d)}),c},i.prototype.catch=function(o){o&&(o=o.bind(this));var c=Promise.prototype.catch.call(this,o);return i.convert(c,this)},i.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},i.prototype.error=function(o){return this.then(function(){throw new Error(o)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.exp
532ort=i.prototype.output,i.prototype.run=i.prototype.then,en.getPageSize=function(o,c,d){if(_r(o)==="object"){var f=o;o=f.orientation,c=f.unit||c,d=f.format||d}c=c||"mm",d=d||"a4",o=(""+(o||"P")).toLowerCase();var m,b=(""+d).toLowerCase(),g={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(c){case"pt":m=1;break;case"mm":m=72/25.4;break;case"cm":m=72/2.54;break;case"in":m=72;break;case"px":m=.75;break;case"pc":case"em":m=12;break;case"ex":m=6;break;default:throw"Invalid unit: "+c}var v,E=0,T=0;if(g.hasOwnProperty(b))E=g[b][1]/m,T=g[b][0]/m;else try{E=d[1],T=d[0]}catch{throw new Error("Invalid format: "+d)}if(o==="p"||o==="portrait")o="p",T>E&&(v=T,T=E,E=v);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",E>T&&(v=T,T=E,E=v)}return{width:T,height:E,unit:c,k:m,orientation:o}},e.html=function(o,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(C4):null;var d=new i(c);return c.worker?d:d.from(o).doCallback()}})(en.API),en.API.addJS=function(e){var t,n,r=(function(a){for(var s="",i=0;i<a.length;i++){var o=a[i];if(o==="("||o===")"){for(var c=0,d=i-1;d>=0&&a[d]==="\\";d--)c++;s+=c%2==0?"\\"+o:o}else s+=o}return s})(e);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&n!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},(function(e){var t;e.events.push(["postPutResources",function(){var n=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=n.outline.render().split(/\r\n/),s=0;s<a.length;s++){var i=a[s],o=r.exec(i);if(o!=null){var c=o[1];n.internal.newObjectDeferredBegin(c,!1)}n.internal.write(i)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,f=[];for(s=0;s<d;s++){var m=n.internal.newObject();f.push(m);var b=n.internal.getPageInfo(s+1);n.internal.write("<< /D["+b.objId+" 0 R /XYZ null null null]>> endobj")}var g=n.internal.newObject();for(n.internal.write("<< /Names [ "),s=0;s<f.length;s++)n.internal.write("(page_"+(s+1)+")"+f[s]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+g+" 0 R"),n.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var n=this;n.outline.root.children.length>0&&(n.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&n.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(r,a,s){var i={title:a,options:s,children:[]};return r==null&&(r=this.root),r.children.push(i),i},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(r){r.id=n.internal.newObjectDeferred();for(var a=0;a<r.children.length;a++)this.genIds_r(r.children[a])},n.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},n.outline.renderItems=function(r){for(var a=this.ctx.pdf.internal.getVerticalCoordinateString,
532s=0;s<r.children.length;s++){var i=r.children[s];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(r)),s>0&&this.line("/Prev "+this.makeRef(r.children[s-1])),s<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[s+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var o=this.count=this.count_r({count:0},i);if(o>0&&this.line("/Count "+o),i.options&&i.options.pageNumber){var c=n.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var d=0;d<r.children.length;d++)this.renderItems(r.children[d])},n.outline.line=function(r){this.ctx.val+=r+`\r 533`},n.outline.makeRef=function(r){return r.id+" 0 R"},n.outline.makeString=function(r){return"("+n.internal.pdfEscape(r)+")"},n.outline.objStart=function(r){this.ctx.val+=`\r 534`+r.id+` 0 obj\r 535<<\r 536`},n.outline.objEnd=function(){this.ctx.val+=`>> \r 537endobj\r 538`},n.outline.count_r=function(r,a){for(var s=0;s<a.children.length;s++)r.count++,this.count_r(r,a.children[s]);return r.count}}])})(en.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,r,a,s,i,o){var c,d=this.decode.DCT_DECODE,f=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=i||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,c=(function(m){for(var b,g=256*m.charCodeAt(4)+m.charCodeAt(5),v=m.length,E={width:0,height:0,numcomponents:1},T=4;T<v;T+=2){if(T+=g,t.indexOf(m.charCodeAt(T+1))!==-1){b=256*m.charCodeAt(T+5)+m.charCodeAt(T+6),E={width:256*m.charCodeAt(T+7)+m.charCodeAt(T+8),height:b,numcomponents:m.charCodeAt(T+9)};break}g=256*m.charCodeAt(T+2)+m.charCodeAt(T+3)}return E})(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),c.numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}f={data:n,width:c.width,height:c.height,colorSpace:o,bitsPerComponent:8,filter:d,index:r,alias:a}}return f}})(en.API),en.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var a,s=Vee(e,{checkCrc:!0}),i=s.width,o=s.height,c=s.channels,d=s.palette,f=s.depth;a=d&&c===1?(function(H){for(var q=H.width,W=H.height,z=H.data,$=H.palette,ae=H.depth,J=!1,xe=[],ee=[],ce=void 0,se=!1,be=0,Z=0;Z<$.length;Z++){var ne=c_($[Z],4),B=ne[0],O=ne[1],K=ne[2],he=ne[3];xe.push(B,O,K),he!=null&&(he===0?(be++,ee.length<1&&ee.push(Z)):he<255&&(se=!0))}if(se||be>1){J=!0,ee=void 0;var we=q*W;ce=new Uint8Array(we);for(var Ee=new DataView(z.buffer),ue=0;ue<we;ue++){var Ae=A4(Ee,ue,ae),Ie=c_($[Ae],4)[3];ce[ue]=Ie}}else be===0&&(ee=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:J?8:void 0,colorBytes:z,alphaBytes:ce,needSMask:J,palette:xe,mask:ee}})(s):c===2||c===4?(function(H){for(var q=H.data,W=H.width,z=H.height,$=H.channels,ae=H.depth,J=$===2?"DeviceGray":"DeviceRGB",xe=$-1,ee=W*z,ce=xe,se=ee*ce,be=1*ee,Z=Math.ceil(se*ae/8),ne=Math.ceil(be*ae/8),B=new Uint8Array(Z),O=new
538Uint8Array(ne),K=new DataView(q.buffer),he=new DataView(B.buffer),we=new DataView(O.buffer),Ee=!1,ue=0;ue<ee;ue++){for(var Ae=ue*$,Ie=0;Ie<ce;Ie++)pT(he,A4(K,Ae+Ie,ae),ue*ce+Ie,ae);var We=A4(K,Ae+ce,ae);We<(1<<ae)-1&&(Ee=!0),pT(we,We,1*ue,ae)}return{colorSpace:J,colorsPerPixel:xe,sMaskBitsPerComponent:Ee?ae:void 0,colorBytes:B,alphaBytes:O,needSMask:Ee}})(s):(function(H){var q=H.data,W=H.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:W,colorsPerPixel:W==="DeviceGray"?1:3,colorBytes:q instanceof Uint16Array?(function(z){for(var $=z.length,ae=new Uint8Array(2*$),J=new DataView(ae.buffer,ae.byteOffset,ae.byteLength),xe=0;xe<$;xe++)J.setUint16(2*xe,z[xe],!1);return ae})(q):q,needSMask:!1}})(s);var m,b,g,v=a,E=v.colorSpace,T=v.colorsPerPixel,_=v.sMaskBitsPerComponent,A=v.colorBytes,R=v.alphaBytes,P=v.needSMask,V=v.palette,U=v.mask,D=null;return r!==en.API.image_compression.NONE&&typeof P3=="function"?(D=(function(H){var q;switch(H){case en.API.image_compression.FAST:q=11;break;case en.API.image_compression.MEDIUM:q=13;break;case en.API.image_compression.SLOW:q=14;break;default:q=12}return q})(r),m=this.decode.FLATE_DECODE,b="/Predictor ".concat(D," /Colors ").concat(T," /BitsPerComponent ").concat(f," /Columns ").concat(i),e=cT(A,Math.ceil(i*T*f/8),T,f,r),P&&(g=cT(R,Math.ceil(i*_/8),1,_,r))):(m=void 0,b=void 0,e=A,P&&(g=R)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(g&&this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),{alias:n,data:e,index:t,filter:m,decodeParameters:b,transparency:U,palette:V,sMask:g,predictor:D,width:i,height:o,bitsPerComponent:f,sMaskBitsPerComponent:_,colorSpace:E}}},(function(e){e.processGIF89A=function(t,n,r,a){var s=new dte(t),i=s.width,o=s.height,c=[];s.decodeAndBlitFrameRGBA(0,c);var d={data:c,width:i,height:o},f=new L4(100).encode(d,100);return e.processJPEG.call(this,f,n,r,a)},e.processGIF87A=e.processGIF89A})(en.API),wl.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:a,green:r,blue:n,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},wl.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(n){Fr.log("bit decode error:"+n)}},wl.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,a=0;a<t;a++)for(var s=this.datav.getUint8(this.pos++,!0),i=r*this.width*4+8*a*4,o=0;o<8&&8*a+o<this.width;o++){var c=this.palette[s>>7-o&1];this.data[i+4*o]=c.blue,this.data[i+4*o+1]=c.green,this.data[i+4*o+2]=c.red,this.data[i+4*o+3]=255}n!==0&&(this.pos+=4-n)}},wl.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,a=0;a<e;a++){var s=this.datav.getUint8(this.pos++,!0),i=r*this.width*4+2*a*4,o=s>>4,c=15&s,d=this.palette[o];if(this.data[i]=d.blue,this.data[i+1]=d.green,this.data[i+2]=d.red,this.data[i+3]=255,2*a+1>=this.width)break;d=this.palette[c],this.data[i+4]=d.blue,this.data[i+4+1]=d.green,this.data[i+4+2]=d.red,this.data[i+4+3]=255}t!==0&&(this.pos+=4-t)}},wl.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+4*r;if(a<this.palette.length){var i=this.palette[a];this.data[s]=i.red,this.data[s+1]=i.green,this.data[s+2]=i.blue,this.data[s+3]=255}else this.data[s]=255,this.data[s+1]=255,this.data[s+2]=255,this.data[s+3]=255}e!==0&&(this.pos+=4-e)}},wl.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var i=(s&t)/t*255|0,o=(s>>5&t)/t*255|0,c=(s>>10&t)/t*255|0,d=s>>15?255:0,f=r*this.width*4+4*a;this.data[f]=c,this.data[f+1]=o,this.data[f+2]=i,this.data[f+3]=d}this.pos+=e}},wl.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,s=0;s<this.width;s++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&t)/t*255|0,c=(i>>
vendor: 4,607 bytes, line 538
5385&n)/n*255|0,d=(i>>11)/t*255|0,f=a*this.width*4+4*s;this.data[f]=d,this.data[f+1]=c,this.data[f+2]=o,this.data[f+3]=255}this.pos+=e}},wl.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),i=t*this.width*4+4*n;this.data[i]=s,this.data[i+1]=a,this.data[i+2]=r,this.data[i+3]=255}this.pos+=this.width%4}},wl.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*n;this.data[o]=s,this.data[o+1]=a,this.data[o+2]=r,this.data[o+3]=i}},wl.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,n,r,a){var s=new wl(t,!1),i=s.width,o=s.height,c={data:s.getData(),width:i,height:o},d=new L4(100).encode(c,100);return e.processJPEG.call(this,d,n,r,a)}})(en.API),gT.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,n,r,a){var s=new gT(t),i=s.width,o=s.height,c={data:s.getData(),width:i,height:o},d=new L4(100).encode(c,100);return e.processJPEG.call(this,d,n,r,a)}})(en.API),en.API.processRGBA=function(e,t,n){for(var r=e.data,a=r.length,s=new Uint8Array(a/4*3),i=new Uint8Array(a/4),o=0,c=0,d=0;d<a;d+=4){var f=r[d],m=r[d+1],b=r[d+2],g=r[d+3];s[o++]=f,s[o++]=m,s[o++]=b,i[c++]=g}var v=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(i),data:v,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},en.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rh
538aeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Ef=en.API,S2=Ef.getCharWidthsArray=function(e,t){var n,r,a=(t=t||{}).font||this.internal.getFont(),s=t.fontSize||this.internal.getFontSize(),i=t.charSpace||this.internal.getCharSpace(),o=t.widths?t.widths:a.metadata.Unicode.widths,c=o.fof?o.fof:1,d=t.kerning?t.kerning:a.metadata.Unicode.kerning,f=d.fof?d.fof:1,m=t.doKerning!==!1,b=0,g=e.length,v=0,E=o[0]||c,T=[];for(n=0;n<g;n++)r=e.charCodeAt(n),typeof a.metadata.widthOfString=="function"?T.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(r))+i*(1e3/s)||0)/1e3):(b=m&&_r(d[r])==="object"&&!isNaN(parseInt(d[r][v],10))?d[r][v]/f:0,T.push((o[r]||E)/c+b)),v=r;return T},iT=Ef.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),a=t.charSpace||this.internal.getCharSpace();return Ef.processArabic&&(e=Ef.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,n,a)/n:S2.apply(this,arguments).reduce(function(s,i){return s+i},0)},oT=function(e,t,n,r){for(var a=[],s=0,i=e.length,o=0;s!==i&&o+t[s]<n;)o+=t[s],s++;a.push(e.slice(0,s));var c=s;for(o=0;s!==i;)o+t[s]>r&&(a.push(e.slice(c,s)),o=0,c=s),o+=t[s],s++;return c!==s&&a.push(e.slice(c,s)),a},lT=function(e,t,n){n||(n={});var r,a,s,i,o,c,d,f=[],m=[f],b=n.textIndent||0,g=0,v=0,E=e.split(" "),T=S2.apply(this,[" ",n])[0];if(c=n.lineIndent===-1?E[0].length+2:n.lineIndent||0){var _=Array(c).join(" "),A=[];E.map(function(P){(P=P.split(/\s*\n/)).length>1?A=A.concat(P.map(function(V,U){return(U&&V.length?` 539`:"")+V})):A.push(P[0])}),E=A,c=iT.apply(this,[_,n])}for(s=0,i=E.length;s<i;s++){var R=0;if(r=E[s],c&&r[0]==` 540`&&(r=r.substr(1),R=1),b+g+(v=(a=S2.apply(this,[r,n])).reduce(function(P,V){return P+V},0))>t||R){if(v>t){for(o=oT.apply(this,[r,a,t-(b+g),t]),f.push(o.shift()),f=[o.pop()];o.length;)m.push([o.shift()]);v=a.slice(r.length-(f[0]?f[0].length:0)).reduce(function(P,V){return P+V},0)}else f=[r];m.push(f),b=v+c,g=T}else f.push(r),b+=g+v,g=T}return d=c?function(P,V){return(V?_:"")+P.join(" ")}:function(P){return P.join(" ")},m.map(d)},Ef.splitTextToSize=function(e,t,n){var r,a=(n=n||{}).fontSize||this.internal.getFontSize(),s=(function(f){if(f.widths&&f.kerning)return{widths:f.widths,kerning:f.kerning};var m=this.internal.getFont(f.fontName,f.fontStyle),b="Unicode";return m.metadata[b]?{widths:m.metadata[b].widths||{0:1},kerning:m.metadata[b].kerning||{}}:{font:m.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var i=1*this.internal.scaleFactor*t/a;s.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/a:0,s.lineIndent=n.lineIndent;var o,c,d=[];for(o=0,c=r.length;o<c;o++)d=d.concat(lT.apply(this,[r[o],i,s]));return d},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},a={},s=0;s<16;
vendor: 1,471 bytes, line 540
540s++)r[n[s]]=t[s],a[t[s]]=n[s];var i=function(b){return"0x"+parseInt(b,10).toString(16)},o=e.__fontmetrics__.compress=function(b){var g,v,E,T,_=["{"];for(var A in b){if(g=b[A],isNaN(parseInt(A,10))?v="'"+A+"'":(A=parseInt(A,10),v=(v=i(A).slice(2)).slice(0,-1)+a[v.slice(-1)]),typeof g=="number")g<0?(E=i(g).slice(3),T="-"):(E=i(g).slice(2),T=""),E=T+E.slice(0,-1)+a[E.slice(-1)];else{if(_r(g)!=="object")throw new Error("Don't know what to do with value type "+_r(g)+".");E=o(g)}_.push(v+E)}return _.push("}"),_.join("")},c=e.__fontmetrics__.uncompress=function(b){if(typeof b!="string")throw new Error("Invalid argument passed to uncompress.");for(var g,v,E,T,_={},A=1,R=_,P=[],V="",U="",D=b.length-1,H=1;H<D;H+=1)(T=b[H])=="'"?g?(E=g.join(""),g=void 0):g=[]:g?g.push(T):T=="{"?(P.push([R,E]),R={},E=void 0):T=="}"?((v=P.pop())[0][v[1]]=R,E=void 0,R=v[0]):T=="-"?A=-1:E===void 0?r.hasOwnProperty(T)?(V+=r[T],E=parseInt(V,16)*A,A=1,V=""):V+=T:r.hasOwnProperty(T)?(U+=r[T],R[E]=parseInt(U,16)*A,A=1,E=void 0,U=""):U+=T;return _},d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},f={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},m
vendor: 14,727 bytes, line 540
540={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(
vendor: 33,430 bytes, lines 540-568
540b){var g=b.font,v=m.Unicode[g.postScriptName];v&&(g.metadata.Unicode={},g.metadata.Unicode.widths=v.widths,g.metadata.Unicode.kerning=v.kerning);var E=f.Unicode[g.postScriptName];E&&(g.metadata.Unicode.encoding=E,g.encoding=E.codePages[0])}])})(en.API),(function(e){var t=function(n){for(var r=n.length,a=new Uint8Array(r),s=0;s<r;s++)a[s]=n.charCodeAt(s);return a};e.API.events.push(["addFont",function(n){var r=void 0,a=n.font,s=n.instance;if(!a.isStandardFont){if(s===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(r=s.existsFileInVFS(a.postScriptName)===!1?s.loadFile(a.postScriptName):s.getFileFromVFS(a.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");(function(i,o){o=/^\x00\x01\x00\x00/.test(o)?t(o):t(lx(o)),i.metadata=e.API.TTFFont.open(o),i.metadata.Unicode=i.metadata.Unicode||{encoding:{},kerning:{},widths:[]},i.metadata.glyIdsUsed=[0]})(a,r)}}])})(en),en.API.addSvgAsImage=function(e,t,n,r,a,s,i,o){if(isNaN(t)||isNaN(n))throw Fr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(a))throw Fr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=a;var d=c.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,c.width,c.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},m=this;return(vn.canvg?Promise.resolve(vn.canvg):me(()=>import("./index.es-DxA3I1Z-.js"),[])).catch(function(b){return Promise.reject(new Error("Could not load canvg: "+b))}).then(function(b){return b.default?b.default:b}).then(function(b){return b.fromString(d,e,f)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(b){return b.render(f)}).then(function(){m.addImage(c.toDataURL("image/jpeg",1),t,n,r,a,i,o)})},en.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var a=0;a<this.internal.pages[r].length;a++)this.internal.pages[r][a]=this.internal.pages[r][a].replace(t,n);return this},en.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,a,s,i={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},o=Object.keys(i),c=[],d=0,f=0,m=0;function b(v,E){var T,_=!1;for(T=0;T<v.length;T+=1)v[T]===E&&(_=!0);return _}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(i)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var g=o.length;for(m=0;m<g;m+=1)n[o[m]].value=n[o[m]].defaultValue,n[o[m]].explicitSet=!1}if(_r(e)==="object"){for(a in e)if(s=e[a],b(o,a)&&s!==void 0){if(n[a].type==="boolean"&&typeof s=="boolean")n[a].value=s;else if(n[a].type==="name"&&b(n[a].valueSet,s))n[a].value=s;else if(n[a].type==="integer"&&Number.isInteger(s))n[a].value=s;else if(n[a].type==="array"){for(d=0;d<s.length;d+=1)if(r=!0,s[d].length===1&&typeof s[d][0]=="number")c.push(String(s[d]-1));else if(s[d].length>1){for(f=0;f<s[d].length;f+=1)typeof s[d][f]!="number"&&(r=!1);r===!0&&c.push([s[d][0]-1,s[d][1]-1].join(" "))}n[a].value="["+c.join(" ")+"]"}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var v,E=[];for(v in n)n[v].explicitSet===!0&&(n[v].type==="name"?E.push("/"+v+" /"+n[v].value):E.push("/"+v+" "+n[v].value));E.length!==0&&this.internal.write(`/ViewerPreferences 541<< 542`+E.join(` 543`)+` 544>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},en.API.addMetadata=function(e,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:typeof t=="boolean"&&t},this.internal.events.subscribe("putCatalog",fte),this.internal.events.subscribe("postPutResources",hte)),this},(function(e){var t=e.API,n=t.pdfEscape16=function(s,i){for(var o,c=i.metadata.Unicode.widths,d=["","0","00","000","0000"],f=[""],m=0,b=s.length;m<b;++m){if(o=i.metadata.characterToGlyph(s.charCodeAt(m)),i.metadata.glyIdsUsed.push(o),i.metadata.toUnicode[o]=s.charCodeAt(m),c.indexOf(o)==-1&&(c.push(o),c.push([parseInt(i.metadata.widthOfGlyph(o),10)])),o=="0")return f.join("");o=o.toString(16),f.push(d[4-o.length],o)}return f.join("")},r=function(s){var i,o,c,d,f,m,b;for(f=`/CIDInit /ProcSet findresource begin 54512 dict begin 546begincmap 547/CIDSystemInfo << 548 /Registry (Adobe) 549 /Ordering (UCS) 550 /Supplement 0 551>> def 552/CMapName /Adobe-Identity-UCS def 553/CMapType 2 def 5541 begincodespacerange 555<0000><ffff> 556endcodespacerange`,c=[],m=0,b=(o=Object.keys(s).sort(function(g,v){return g-v})).length;m<b;m++)i=o[m],c.length>=100&&(f+=` 557`+c.length+` beginbfchar 558`+c.join(` 559`)+` 560endbfchar`,c=[]),s[i]!==void 0&&s[i]!==null&&typeof s[i].toString=="function"&&(d=("0000"+s[i].toString(16)).slice(-4),i=("0000"+(+i).toString(16)).slice(-4),c.push("<"+i+"><"+d+">"));return c.length&&(f+=` 561`+c.length+` beginbfchar 562`+c.join(` 563`)+` 564endbfchar 565`),f+`endcmap 566CMapName currentdict /CMap defineresource pop 567end 568end`};t.events.push(["putFont",function(s){(function(i){var o=i.font,c=i.out,d=i.newObject,f=i.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="Identity-H"){for(var m=o.metadata.Unicode.widths,b=o.metadata.subset.encode(o.metadata.glyIdsUsed,1),g="",v=0;v<b.length;v++)g+=String.fromCharCode(b[v]);var E=d();f({data:g,addLength1:!0,objectId:E}),c("endobj");var T=d();f({data:r(o.metadata.toUnicode),addLength1:!0,objectId:T}),c("endobj");var _=d();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+Lf(o.fontName)),c("/FontFile2 "+E+" 0 R"),c("/FontBBox "+e.API.PDFObject.convert(o.metadata.bbox)),c("/Flags "+o.metadata.flags),c("/StemV "+o.metadata.stemV),c("/ItalicAngle "+o.metadata.italicAngle),c("/Ascent "+o.metadata.ascender),c("/Descent "+o.metadata.decender),c("/CapHeight "+o.metadata.capHeight),c(">>"),c("endobj");var A=d();c("<<"),c("/Type /Font"),c("/BaseFont /"+Lf(o.fontName)),c("/FontDescriptor "+_+" 0 R"),c("/W "+e.API.PDFObject.convert(m)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+o.encoding+")"),c(">>"),c(">>"),c("endobj"),o.objectNumber=d(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+T+" 0 R"),c("/BaseFont /"+Lf(o.fontName)),c("/Encoding /"+o.encoding),c("/DescendantFonts ["+A+" 0 R]"),c(">>"),c("endobj"),o.isAlreadyPutted=!0}})(s)}]),t.events.push(["putFont",function(s){(function(i){var o=i.font,c=i.out,d=i.newObject,f=i.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="WinAnsiEncoding"){for(var m=o.metadata.rawData,b="",g=0;g<m.length;g++)b+=String.fromCharCode(m[g]);var v=d();f({data:b,addLength1:!0,objectId:v}),c("endobj");var E=d();f({data:r(o.metadata.toUnicode),addLength1:!0,objectId:E}),c("endobj");var T=d();c("<<"),c("/Descent "+o.metadata.decender),c("/CapHeight "+o.metadata.capHeight),c("/StemV "+o.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+v+" 0 R"),c("/Flags 96"),c("/FontBBox "+e.API.PDFObject.convert(o.metadata.bbox)),c("/FontName /"+Lf(o.fontName)),c("/ItalicAngle "+o.metadata.italicAngle),c("/Ascent "+o.metadata.ascender),c(">>"),c("endobj"),o.objectNumber=d();for(var _=0;_<o.metadata.hmtx.widths.length;_++)o.metadata.hmtx.widths[_]=parseInt(o.metadata.hmtx.widths[_]*(1e3/o.metadata.head.unitsPerEm));c("<</Subtype/TrueType/Type/Font/ToUnicode "+E+" 0 R/BaseFont/"+Lf(o.fontName)+"/FontDescriptor "+T+" 0 R/Encoding/"+o.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(o.metadata.hmtx.widths)+">>"),c("endobj"),o.isAlreadyPutted=!0}})(s)}]);var a=function(s){var i,o=s.text||"",c=s.x,d=s.y,f=s.options||{},m=s.mutex||{},b=m.pdfEscape,g=m.activeFontKey,v=m.fonts,E=g,T="",_=0,A="",R=v[E].encoding;if(v[E].encoding!=="Identity-H")return{text:o,x:c,y:d,options:f,mutex:m};for(A=o,E=g,Array.isArray(o)&&(A=o[0]),_=0;_<A.length;_+=1)v[E].metadata.hasOwnProperty("cmap")&&(i=v[E].metadata.cmap.unicode.codeMap[A[_].charCodeAt(0)]),i||A[_].charCodeAt(0)<256&&v[E].metadata.hasOwnProperty("Unicode")?T+=A[_]:T+="";var P="";return parseInt(E.slice(1))<14||R==="WinAnsiEncoding"?P=b(T,E).split("").map(function(V){return V.charCodeAt(0).toString(16)}).join(""):R==="Identity-H"&&(P=n(T,v[E])),m.isHex=!0,{text:P,x:c,y:d,options:f,mutex:m}};t.events.push(["postProcessText",function(s){var i=s.text||"",o=[],c={text:i,x:s.x,y:s.y,options:s.options,mutex:s.mutex};if(Array.isArray(i)){var d=0;for(d=0;d<i.length;d+=1)Array.isArray(i[d])&&i[d].length===3?o.push([a(Object.assign({},c,{text:i[d][0]})).text,i[d][1],i[d][2]]):o.push(a(Object.assign({},c,{text:i[d]})).text);s.text=o}else s.text=a(Object.assign({},c,{text:i})).text}])})(en),(function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0},e.addFileToVFS=function(n,r){return t.call(this),this.internal.vFS[n]=r,this},e.getFileFromVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}})(en.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var a,s,i,o,c,d,f,m=t,b=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],g=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],v={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},E={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},T=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","â¹","âº","â¹","â ","â","â ","â½","â¾","â½","â","â","â","â¤","â¥","â¤","â©","âª","â©","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","﹤","ï¹¥","﹤"],_=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),A=!1,R=0;this.__bidiEngine__={};var P=function(z){var $=z.charCodeAt(),ae=$>>8,J=E[ae];return J!==void 0?m[256*J+(255&$)]:ae===252||ae===253?"AL":_.test(ae)?"L":ae===8?"R":"N"},V=function(z){for(var $,ae=0;ae<z.length;ae++){if(($=P(z.charAt(ae)))==="L")return!1;if($==="R")return!0}return!1},U=function(z,$,ae,J){var xe,ee,ce,se,be=$[J];switch(be){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":A=!1;break;case"N":case"AN":break;case"EN":A&&(be="AN");break;case"AL":A=!0,be="R";break;case"WS":case"BN":be="N";break;case"CS":J<1||J+1>=$.length||(xe=ae[J-1])!=="EN"&&xe!=="AN"||(ee=$[J+1])!=="EN"&&ee!=="AN"?be="N":A&&(ee="AN"),be=ee===xe?ee:"N";break;case"ES":be=(xe=J>0?ae[J-1]:"B")==="EN"&&J+1<$.length&&$[J+1]==="EN"?"EN":"N";break;case"ET":if(J>0&&ae[J-1]==="EN"){be="EN";break}if(A){be="N";break}for(ce=J+1,se=$.length;ce<se&&$[ce]==="ET";)ce++;be=ce<se&&$[ce]==="EN"?"EN":"N";break;case"NSM":if(i&&!o){for(se=$.length,ce=J+1;ce<se&&$[ce]==="NSM";)ce++;if(ce<se){var Z=z[J],ne=Z>=1425&&Z<=2303||Z===64286;if(xe=$[ce],ne&&(xe==="R"||xe==="AL")){be="R";break}}}be=J<1||(xe=$[J-1])==="B"?"N":ae[J-1];break;case"B":A=!1,a=!0,be=R;break;case"S":s=!0,be="N"}return be},D=function(z,$,ae){var J=z.split("");return ae&&H(J,ae,{hiLevel:R}),J.reverse(),$&&$.reverse(),J.join("")},H=function(z,$,ae){var J,xe,ee,ce,se,be=-1,Z=z.length,ne=0,B=[],O=R?g:b,K=[];for(A=!1,a=!1,s=!1,xe=0;xe<Z;xe++)K[xe]=P(z[xe]);for(ee=0;ee<Z;ee++){if(se=ne,B[ee]=U(z,K,B,ee),J=240&(ne=O[se][v[B[ee]]]),ne&=15,$[ee]=ce=O[ne][5],J>0)if(J===16){for(xe=be;xe<ee;xe++)$[xe]=1;be=-1}else be=-1;if(O[ne][6])be===-1&&(be=ee);else if(be>-1){for(xe=be;xe<ee;xe++)$[xe]=ce;be=-1}K[ee]==="B"&&($[ee]=0),ae.hiLevel|=ce}s&&(function(he,we,Ee){for(var ue=0;ue<Ee;ue++)if(he[ue]==="S"){we[ue]=R;for(var Ae=ue-1;Ae>=0&&he[Ae]==="WS";Ae--)we[Ae]=R}})(K,$,Z)},q=function(z,$,ae,J,xe){if(!(xe.hiLevel<z)){if(z===1&&R===1&&!a)return $.reverse(),void(ae&&ae.reverse());for(var ee,ce,se,be,Z=$.length,ne=0;ne<Z;){if(J[ne]>=z){for(se=ne+1;se<Z&&J[se]>=z;)se++;for(be=ne,ce=se-1;be<ce;be++,ce--)ee=$[be],$[be]=$[ce],$[ce]=ee,ae&&(ee=ae[be],ae[be]=ae[ce],ae[ce]=ee);ne=se}ne++}}},W=function(z,$,ae){var J=z.split(""),xe={hiLevel:R};return ae||(ae=[]),H(J,ae,xe),(function(ee,ce,se){if(se.hiLevel!==0&&f)for(var be,Z=0;Z<ee.length;Z++)ce[Z]===1&&(be=T.indexOf(ee[Z]))>=0&&(ee[Z]=T[be+1])})(J,ae,xe),q(2,J,$,ae,xe),q(1,J,$,ae,xe),J.join("")};return this.__bidiEngine__.doBidiReorder=function(z,$,ae){if((function(xe,ee){if(ee)for(var ce=0;ce<xe.length;ce++)ee[ce]=ce;o===void 0&&(o=V(xe)),d===void 0&&(d=V(xe))})(z,$),i||!c||d)if(i&&c&&o^d)R=o?1:0,z=D(z,$,ae);else if(!i&&c&&d)R=o?1:0,z=W(z,$,ae),z=D(z,$);else if(!i||o||c||d){if(i&&!c&&o^d)z=D(z,$),o?(R=0,z=W(z,$,ae)):(R=1,z=W(z,$,ae),z=D(z,$));else if(i&&o&&!c&&d)R=1,z=W(z,$,ae),z=D(z,$);else if(!i&&!c&&o^d){var J=f;o?(R=1,z=W(z,$,ae),R=0,f=!1,z=W(z,$,ae),f=J):(R=0,z=W(z,$,ae),z=D(z,$),R=1,f=!1,z=W(z,$,ae),f=J,z=D(z,$))}}else R=0,z=W(z,$,ae);else R=o?1:0,z=W(z,$,ae);return z},this.__bidiEngine__.setOptions=function(z){z&&(i=z.isInputVisual,c=z.isOutputVisual,o=z.isInputRtl,d=z.isOutputRtl,f=z.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var a=r.text;r.x,r.y;var s=r.options||{};r.mutex,s.lang;var i=[];if(s.isInputVisual=typeof s.isInputVisual!="boolean"||s.isInputVisual,n.setOptions(s),Object.prototype.toString.call(a)==="[object Array]"){var o=0;for(i=[],o=0;o<a.length;o+=1)Object.prototype.toString.call(a[o])==="[object Array]"?i.push([n.doBidiReorder(a[o][0]),a[o][1],a[o][2]]):i.push([n.doBidiReorder(a[o])]);r.text=i}else r.text=n.doBidiReorder(a);n.setOptions({isInputVisual:!0})}])})(en),en.API.TTFFont=(function(){function e(t){var n;if(this.rawData=t,n=this.contents=new r0(t),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new Nte(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new pte(this.contents),this.head=new gte(this),this.name=new wte(this),this.cmap=new ZO(this),this.toUnicode={},this.hhea=new xte(this),this.maxp=new Ste(this),this.hmtx=new Ete(this),this.post=new yte(this),this.os2=new bte(this),this.loca=new Cte(this),this.glyf=new kte(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,n,r,a,s;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var i,o,c,d;for(d=[],i=0,o=(c=this.bbox).length;i<o;i++)t=c[i],d.push(Math.round(t*this.scaleFactor));return d}).call(this),this.stemV=0,this.post.exists?(r=255&(a=this.post.italic_angle),32768&(n=a>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(s=this.familyClass)===1||s===2||s===3||s===4||s===5||s===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var n;return((n=this.cmap.unicode)!=null?n.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*n},e.prototype.widthOfString=function(t,n,r){var a,s,i,o;for(i=0,s=0,o=(t=""+t).length;0<=o?s<o:s>o;s=0<=o?++s:--s)a=t.charCodeAt(s),i+=this.widthOfGlyph(this.characterToGlyph(a))+r*(1e3/n)||0;return i*(n/1e3)},e.prototype.lineHeight=function(t,n){var r;return n==null&&(n=!1),r=n?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},e})();var jl,r0=(function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var n,r;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r[n]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(t){var n,r,a;for(a=[],n=0,r=t.length;0<=r?n<r:n>r;n=0<=r?++n:--n)a.push(this.writeByte(t.charCodeAt(n)));return a},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,n,r,a,s,i,o,c;return t=this.readByte(),n=this.readByte(),r=this.readByte(),a=this.readByte(),s=this.readByte(),i=this.readByte(),o=this.readByte(),c=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^n)+1099511627776*(255^r)+4294967296*(255^a)+16777216*(255^s)+65536*(255^i)+256*(255^o)+(255^c)+1):72057594037927940*t+281474976710656*n+1099511627776*r+4294967296*a+16777216*s+65536*i+256*o+c},e.prototype.writeLongLong=function(t){var n,r;return n=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var n,r;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n.push(this.readByte());return n},e.prototype.write=function(t){var n,r,a,s;for(s=[],r=0,a=t.length;r<a;r++)n=t[r],s.push(this.writeByte(n));return s},e})(),pte=(function(){var e;function t(n){var r,a,s;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},a=0,s=this.tableCount;0<=s?a<s:a>s;a=0<=s?++a:--a)r={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(n){var r,a,s,i,o,c,d,f,m,b,g,v,E;for(E in g=Object.keys(n).length,c=Math.log(2),m=16*Math.floor(Math.log(g)/c),i=Math.floor(m/c),f=16*g-m,(a=new r0).writeInt(this.scalarType),a.writeShort(g),a.writeShort(m),a.writeShort(i),a.writeShort(f),s=16*g,d=a.pos+s,o=null,v=[],n)for(b=n[E],a.writeString(E),a.writeInt(e(b)),a.writeInt(d),a.writeInt(b.length),v=v.concat(b),E==="head"&&(o=d),d+=b.length;d%4;)v.push(0),d++;return a.write(v),r=2981146554-e(a.data),a.pos=o+8,a.writeUInt32(r),a.data},e=function(n){var r,a,s,i;for(n=eP.call(n);n.length%4;)n.push(0);for(s=new r0(n),a=0,r=0,i=n.length;r<i;r=r+=4)a+=s.readUInt32();return 4294967295&a},t})(),mte={}.hasOwnProperty,jc=function(e,t){for(var n in t)mte.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};jl=(function(){function e(t){var n;this.file=t,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e})();var gte=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return jc(e,jl),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var n;return(n=new r0).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax
568),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(t),n.writeShort(this.glyphDataFormat),n.data},e})(),xT=(function(){function e(t,n){var r,a,s,i,o,c,d,f,m,b,g,v,E,T,_,A,R;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=n+t.readInt(),m=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(c=0;c<256;++c)this.codeMap[c]=t.readByte();break;case 4:for(g=t.readUInt16(),b=g/2,t.pos+=6,s=(function(){var P,V;for(V=[],c=P=0;0<=b?P<b:P>b;c=0<=b?++P:--P)V.push(t.readUInt16());return V})(),t.pos+=2,E=(function(){var P,V;for(V=[],c=P=0;0<=b?P<b:P>b;c=0<=b?++P:--P)V.push(t.readUInt16());return V})(),d=(function(){var P,V;for(V=[],c=P=0;0<=b?P<b:P>b;c=0<=b?++P:--P)V.push(t.readUInt16());return V})(),f=(function(){var P,V;for(V=[],c=P=0;0<=b?P<b:P>b;c=0<=b?++P:--P)V.push(t.readUInt16());return V})(),a=(this.length-t.pos+this.offset)/2,o=(function(){var P,V;for(V=[],c=P=0;0<=a?P<a:P>a;c=0<=a?++P:--P)V.push(t.readUInt16());return V})(),c=_=0,R=s.length;
vendor: 5,866 bytes, line 568
568_<R;c=++_)for(T=s[c],r=A=v=E[c];v<=T?A<=T:A>=T;r=v<=T?++A:--A)f[c]===0?i=r+d[c]:(i=o[f[c]/2+(r-v)-(b-c)]||0)!==0&&(i+=d[c]),this.codeMap[r]=65535&i}t.pos=m}return e.encode=function(t,n){var r,a,s,i,o,c,d,f,m,b,g,v,E,T,_,A,R,P,V,U,D,H,q,W,z,$,ae,J,xe,ee,ce,se,be,Z,ne,B,O,K,he,we,Ee,ue,Ae,Ie,We,st;switch(J=new r0,i=Object.keys(t).sort(function(mt,_t){return mt-_t}),n){case"macroman":for(E=0,T=(function(){var mt=[];for(v=0;v<256;++v)mt.push(0);return mt})(),A={0:0},s={},xe=0,be=i.length;xe<be;xe++)A[Ae=t[a=i[xe]]]==null&&(A[Ae]=++E),s[a]={old:t[a],new:A[t[a]]},T[a]=A[t[a]];return J.writeUInt16(1),J.writeUInt16(0),J.writeUInt32(12),J.writeUInt16(0),J.writeUInt16(262),J.writeUInt16(0),J.write(T),{charMap:s,subtable:J.data,maxGlyphID:E+1};case"unicode":for($=[],m=[],R=0,A={},r={},_=d=null,ee=0,Z=i.length;ee<Z;ee++)A[V=t[a=i[ee]]]==null&&(A[V]=++R),r[a]={old:V,new:A[V]},o=A[V]-a,_!=null&&o===d||(_&&m.push(_),$.push(a),d=o),_=a;for(_&&m.push(_),m.push(65535),$.push(65535),W=2*(q=$.length),H=2*Math.pow(Math.log(q)/Math.LN2,2),b=Math.log(H/2)/Math.LN2,D=2*q-H,c=[],U=[],g=[],v=ce=0,ne=$.length;ce<ne;v=++ce){if(z=$[v],f=m[v],z===65535){c.push(0),U.push(0);break}if(z-(ae=r[z].new)>=32768)for(c.push(0),U.push(2*(g.length+q-v)),a=se=z;z<=f?se<=f:se>=f;a=z<=f?++se:--se)g.push(r[a].new);else c.push(ae-z),U.push(0)}for(J.writeUInt16(3),J.writeUInt16(1),J.writeUInt32(12),J.writeUInt16(4),J.writeUInt16(16+8*q+2*g.length),J.writeUInt16(0),J.writeUInt16(W),J.writeUInt16(H),J.writeUInt16(b),J.writeUInt16(D),Ee=0,B=m.length;Ee<B;Ee++)a=m[Ee],J.writeUInt16(a);for(J.writeUInt16(0),ue=0,O=$.length;ue<O;ue++)a=$[ue],J.writeUInt16(a);for(Ie=0,K=c.length;Ie<K;Ie++)o=c[Ie],J.writeUInt16(o);for(We=0,he=U.length;We<he;We++)P=U[We],J.writeUInt16(P);for(st=0,we=g.length;st<we;st++)E=g[st],J.writeUInt16(E);return{charMap:r,subtable:J.data,maxGlyphID:R+1}}},e})(),ZO=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return jc(e,jl),e.prototype.tag="cmap",e.prototype.parse=function(t){var n,r,a;for(t.pos=this.offset,this.version=t.readUInt16(),a=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=a?r<a:r>a;r=0<=a?++r:--r)n=new xT(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var r,a;return n==null&&(n="macroman"),r=xT.encode(t,n),(a=new r0).writeUInt16(0),a.writeUInt16(1),r.table=a.data.concat(r.subtable),r},e})(),xte=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return jc(e,jl),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e})(),bte=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return jc(e,jl),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=(function(){var n,r;for(r=[],n=0;n<10;++n)r.push(t.readByte());return r})(),this.charRange=(function(){var n,r;for(r=[],n=0;n<4;++n)r.push(t.readInt());return r})(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=(function(){var n,r;for(r=[],n=0;n<2;n=++n)r.push(t.readInt());return r})(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e})(),yte=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return jc(e,jl),e.prototype.tag="post",e.prototype.parse=function(t){var n,r,a;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var s;for(r=t.readUInt16(),this.glyphNameIndex=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],a=[];t.pos<this.offset+this.length;)n=t.readByte(),a.push(this.names.push(t.readString(n)));return a;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=(function(){var i,o,c;for(c=[],s=i=0,o=this.file.maxp.numGlyphs;0<=o?i<o:i>o;s=0<=o?++i:--i)c.push(t.readUInt32());return c}).call(this)}},e})(),vte=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},wte=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return jc(e,jl),e.prototype.tag="name",e.prototype.parse=function(t){var n,r,a,s,i,o,c,d,f,m,b;for(t.pos=this.offset,t.readShort(),n=t.readShort(),o=t.readShort(),r=[],s=0;
5680<=n?s<n:s>n;s=0<=n?++s:--s)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(c={},s=f=0,m=r.length;f<m;s=++f)a=r[s],t.pos=a.offset,d=t.readString(a.length),i=new vte(d,a),c[b=a.nameID]==null&&(c[b]=[]),c[a.nameID].push(i);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},e})(),Ste=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return jc(e,jl),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e})(),Ete=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return jc(e,jl),e.prototype.tag="hmtx",e.prototype.parse=function(t){var n,r,a,s,i,o,c;for(t.pos=this.offset,this.metrics=[],n=0,o=this.file.hhea.numberOfMetrics;0<=o?n<o:n>o;n=0<=o?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var d,f;for(f=[],n=d=0;0<=a?d<a:d>a;n=0<=a?++d:--d)f.push(t.readInt16());return f})(),this.widths=(function(){var d,f,m,b;for(b=[],d=0,f=(m=this.metrics).length;d<f;d++)s=m[d],b.push(s.advance);return b}).call(this),r=this.widths[this.widths.length-1],c=[],n=i=0;0<=a?i<a:i>a;n=0<=a?++i:--i)c.push(this.widths.push(r));return c},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e})(),eP=[].slice,kte=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return jc(e,jl),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,r,a,s,i,o,c,d,f,m;return t in this.cache?this.cache[t]:(s=this.file.loca,n=this.file.contents,r=s.indexOf(t),(a=s.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+r,i=(o=new r0(n.read(a))).readShort(),d=o.readShort(),m=o.readShort(),c=o.readShort(),f=o.readShort(),this.cache[t]=i===-1?new Tte(o,d,m,c,f):new _te(o,i,d,m,c,f),this.cache[t]))},e.prototype.encode=function(t,n,r){var a,s,i,o,c;for(i=[],s=[],o=0,c=n.length;o<c;o++)a=t[n[o]],s.push(i.length),a&&(i=i.concat(a.encode(r)));return s.push(i.length),{table:i,offsets:s}},e})(),_te=(function(){function e(t,n,r,a,s,i){this.raw=t,this.numberOfContours=n,this.xMin=r,this.yMin=a,this.xMax=s,this.yMax=i,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),Tte=(function(){function e(t,n,r,a,s){var i,o;for(this.raw=t,this.xMin=n,this.yMin=r,this.xMax=a,this.yMax=s,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return e.prototype.encode=function(){var t,n,r;for(n=new r0(eP.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)n.pos=this.glyphOffsets[t];return n.data},e})(),Cte=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return jc(e,jl),e.prototype.tag="loca",e.prototype.parse=function(t){var n,r;return t.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var a,s;for(s=[],r=0,a=this.length;r<a;r+=2)s.push(2*t.readUInt16());return s}).call(this):(function(){var a,s;for(s=[],r=0,a=this.length;r<a;r+=4)s.push(t.readUInt32());return s}).call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]}
568,e.prototype.encode=function(t,n){for(var r=new Uint32Array(this.offsets.length),a=0,s=0,i=0;i<r.length;++i)if(r[i]=a,s<n.length&&n[s]==i){++s,r[i]=a;var o=this.offsets[i],c=this.offsets[i+1]-o;c>0&&(a+=c)}for(var d=new Array(4*r.length),f=0;f<r.length;++f)d[4*f+3]=255&r[f],d[4*f+2]=(65280&r[f])>>8,d[4*f+1]=(16711680&r[f])>>16,d[4*f]=(4278190080&r[f])>>24;return d},e})(),Nte=(function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,n,r,a,s;for(n in a=this.font.cmap.tables[0].codeMap,t={},s=this.subset)r=s[n],t[n]=a[r];return t},e.prototype.glyphsFor=function(t){var n,r,a,s,i,o,c;for(a={},i=0,o=t.length;i<o;i++)a[s=t[i]]=this.font.glyf.glyphFor(s);for(s in n=[],a)(r=a[s])!=null&&r.compound&&n.push.apply(n,r.glyphIDs);if(n.length>0)for(s in c=this.glyphsFor(n))r=c[s],a[s]=r;return a},e.prototype.encode=function(t,n){var r,a,s,i,o,c,d,f,m,b,g,v,E,T,_;for(a in r=ZO.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(t),g={0:0},_=r.charMap)g[(c=_[a]).old]=c.new;for(v in b=r.maxGlyphID,i)v in g||(g[v]=b++);return f=(function(A){var R,P;for(R in P={},A)P[A[R]]=R;return P})(g),m=Object.keys(f).sort(function(A,R){return A-R}),E=(function(){var A,R,P;for(P=[],A=0,R=m.length;A<R;A++)o=m[A],P.push(f[o]);return P})(),s=this.font.glyf.encode(i,E,g),d=this.font.loca.encode(s.offsets,E),T={cmap:this.font.cmap.raw(),glyf:s.table,loca:d,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(n)},this.font.os2.exists&&(T["OS/2"]=this.font.os2.raw()),this.font.directory.encode(T)},e})();en.API.PDFObject=(function(){var e;function t(){}return e=function(n,r){return(Array(r+1).join("0")+n).slice(-r)},t.convert=function(n){var r,a,s,i;if(Array.isArray(n))return"["+(function(){var o,c,d;for(d=[],o=0,c=n.length;o<c;o++)r=n[o],d.push(t.convert(r));return d})().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n?.isString)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(a in s=["<<"],n)i=n[a],s.push("/"+a+" "+t.convert(i));return s.push(">>"),s.join(` 569`)}return""+n},t})();const En={bg:[18,17,22],headerBg:[24,23,28],orange:[255,92,0],white:[255,255,255],lightGray:[200,198,210],mutedGray:[110,108,125],rowAlt:[22,21,28],rowBase:[18,17,22],pass:[80,200,120],fail:[255,92,0],border:[45,43,55]};function Ate(e){const{buildName:t,vehicle:n,presetName:r,specs:a,generatedBy:s="EngineBuildr",date:i=new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}=e,o=new en({orientation:"portrait",unit:"mm",format:"letter"}),c=215.9,d=14,f=c-d*2;o.setFillColor(...En.bg),o.rect(0,0,c,279.4,"F");const m=38;o.setFillColor(...En.headerBg),o.rect(0,0,c,m,"F"),o.setFillColor(...En.orange),o.rect(0,0,4,m,"F"),o.setFont("helvetica","bold"),o.setFontSize(18),o.setTextColor(...En.orange),o.text("ENGINE",d+2,14),o.setTextColor(...En.white),o.text("BUILDR",d+2+o.getTextWidth("ENGINE")+1,14),o.setFont("helvetica","normal"),o.setFontSize(7),o.setTextColor(...En.mutedGray),o.text("CLEARANCE SPEC SHEET",d+2,19.5),o.setFont("helvetica","bold"),o.setFontSize(13),o.setTextColor(...En.white);const b=c-d-o.getTextWidth(t.toUpperCase());o.text(t.toUpperCase(),b,13),o.setFont("helvetica","normal"),o.setFontSize(8),o.setTextColor(...En.mutedGray);const g=c-d-o.getTextWidth(n);o.text(n,g,19.5),o.setDrawColor(...En.orange),o.setLineWidth(.4),o.line(0,m,c,m);let v=m+7;const E=[{label:"ENGINE FAMILY PRESET",value:r},{label:"GENERATED",value:i},{label:"PREPARED BY",value:s}],T=f/E.length;E.forEach((be,Z)=>{const ne=d+Z*T;o.setFont("helvetica","normal"),o.setFontSize(6.5),o.setTextColor(...En.mutedGray),o.text(be.label,ne,v),o.setFont("helvetica","bold"),o.setFontSize(8.5),o.setTextColor(...En.lightGray),o.text(be.value,ne,v+4.5)}),v+=11,o.setDrawColor(...En.border),o.setLineWidth(.25),o.line(d,v,c-d,v),v+=5,o.setFont("helvetica","bold"),o.setFontSize(9),o.setTextColor(...En.orange),o.text("CLEARANCE MEASUREMENTS",d,v);const _=a.filter(be=>be.ok).length,A=a.length-_,R=`${_}/${a.length} PASS`,P=o.getTextWidth(R)+6,V=c-d-P;o.setFillColor(...A===0?En.pass:En.fail),o.roundedRect(V,v-5,P,6.5,1.5,1.5,"F"),o.setFont("helvetica","bold"),o.setFontSize(7.5),o.setTextColor(...En.white),o.text(R,V+3,v-.2),v+=5;const U={component:{x:d},measured:{x:d+68},target:{x:d+98},status:{x:d+142},notes:{x:d+166,w:f-166}},D=9;o.setFillColor(...En.border),o.rect(d,v,f,6.5,"F"),o.setFont("helvetica","bold"),o.setFontSize(6.5),o.setTextColor(...En.mutedGray),o.text("COMPONENT",U.component.x+2,v+4.2),o.text("MEASURED",U.measured.x+2,v+4.2),o.text("TARGET RANGE",U.target.x+2,v+4.2),o.text("STATUS",U.status.x+2,v+4.2),o.text("NOTES",U.notes.x+2,v+4.2),v+=6.5,a.forEach((be,Z)=>{const ne=Z%2===0?En.rowBase:En.rowAlt;o.setFillColor(...ne),o.rect(d,v,f,D,"F"),o.setFont("helvetica","normal"),o.setFontSize(8),o.setTextColor(...En.lightGray),o.text(be.label,U.component.x+2,v+5.8),o.setFont("courier","bold"),o.setFontSize(8.5),o.setTextColor(...be.ok?En.pass:En.fail),o.text(`${be.measured}${be.unit}`,U.measured.x+2,v+5.8),o.setFont("courier","normal"),o.setFontSize(7.5),o.setTextColor(...En.mutedGray),o.text(be.target+be.unit,U.target.x+2,v+5.8);const B=be.ok?"PASS":"FAIL",O=be.ok?En.pass:En.fail,K=16;if(o.setFillColor(...O),o.roundedRect(U.status.x+2,v+1.5,K,5.5,1.2,1.2,"F"),o.setFont("helvetica","bold"),o.setFontSize(7),o.setTextColor(...En.white),o.text(B,U.status.x+2+K/2-o.getTextWidth(B)/2,v+5.6),be.tips&&be.tips.length>0){const he=be.tips[0].replace(/^[â â]\s*/,""),we=U.notes.w-4;o.setFont("helvetica","normal"),o.setFontSize(6.5),o.setTextColor(...En.mutedGray);let Ee=he;for(;o.getTextWidth(Ee)>we&&Ee.length>10;)Ee=Ee.slice(0,-4)+"...";o.text(Ee,U.notes.x+2,v+5.8)}o.setDrawColor(...En.border),o.setLineWidth(.15),o.line(d,v+D,c-d,v+D),v+=D}),v+=6,o.setDrawColor(...En.border),o.setLineWidth(.25),o.line(d,v,c-d,v),v+=5;const H=44,q=18;o.setFillColor(...En.rowAlt),o.roundedRect(d,v,H,q,2,2,"F"),o.setDrawColor(...En.pass),o.setLineWidth(.5),o.roundedRect(d,v,H,q,2,2,"S"),o.setFont("helvetica","bold"),o.setFontSize(22),o.setTextColor(...En.pass),o.text(String(_),d+5,v+13),o.setFont("helvetica","normal"),o.setFontSize(7),o.setTextColor(...En.mutedGray),o.text("CLEARANCES PASS",d+5,v+17);const W=d+H+4;o.setFillColor(...En.rowAlt),o.roundedRect(W,v,H,q,2,2,"F"),o.setDrawColor(...A>0?En.fail:En.border),o.setLineWidth(.5),o.roundedRect(W,v,H,q,2,2,"S"),o.setFont("helvetica","bold"),o.setFontSize(22),o.setTextColor(...A>0?En.fail:En.mutedGray),o.text(String(A),W+5,v+13),o.setFont("helvetica","normal"),o.setFontSize(7),o.setTextColor(...En.mutedGray),o.text("CLEARANCES FAIL",W+5,v
569+17);const z=W+H+8,$=A===0?En.pass:En.fail,ae=A===0?"ALL CLEAR":"ACTION REQUIRED";o.setFillColor(...$),o.roundedRect(z,v,50,q,2,2,"F"),o.setFont("helvetica","bold"),o.setFontSize(10),o.setTextColor(...En.white);const J=o.getTextWidth(ae);o.text(ae,z+25-J/2,v+10.5),o.setFont("helvetica","normal"),o.setFontSize(7);const xe=A===0?"Ready for assembly":`${A} spec${A>1?"s":""} out of tolerance`,ee=o.getTextWidth(xe);o.text(xe,z+25-ee/2,v+15.5);const ce=272;o.setDrawColor(...En.border),o.setLineWidth(.25),o.line(d,ce,c-d,ce),o.setFont("helvetica","normal"),o.setFontSize(6.5),o.setTextColor(...En.mutedGray),o.text(`Generated by EngineBuildr ⢠${i} ⢠All measurements in inches unless noted`,d,ce+4),o.text("This document is for reference only. Always verify clearances with calibrated measuring instruments.",d,ce+8);const se=`${t.replace(/\s+/g,"_")}_Spec_Sheet_${new Date().toISOString().slice(0,10)}.pdf`;o.save(se)}function fx(e,t){const n=parseFloat(e);return isNaN(n)?!1:t.minOnly!==void 0?n>=t.minOnly:t.minVal!==void 0&&t.maxVal!==void 0?n>=t.minVal&&n<=t.maxVal:t.ok}const E2=[{id:"ls-v8",label:"GM LS V8 (LS1/LS2/LS3/LS6)",shortLabel:"GM LS V8",displacement:"346â427ci",description:"Gen III/IV small-block. High-revving, aluminum block variants need tighter clearances.",presets:{"main-bearing":{minVal:.0018,maxVal:.0024,target:"0.0018â0.0024"},"rod-bearing":{minVal:.0015,maxVal:.0025,target:"0.0015â0.0025"},"piston-wall":{minVal:.002,maxVal:.003,target:"0.0020â0.0030"},"ring-gap":{minVal:.018,maxVal:.022,target:"0.018â0.022"},"ptv-intake":{minOnly:.08,target:"> 0.080 min"},"ptv-exhaust":{minOnly:.08,target:"> 0.080 min"},"crank-endplay":{minVal:.004,maxVal:.008,target:"0.004â0.008"},"cam-bearing":{minVal:.001,maxVal:.003,target:"0.001â0.003"}}},{id:"sbc",label:"GM SBC (Small Block Chevy 350/383)",shortLabel:"GM SBC",displacement:"262â400ci",description:"Classic Gen I small-block. Cast iron block tolerances are slightly looser than LS.",presets:{"main-bearing":{minVal:.002,maxVal:.003,target:"0.0020â0.0030"},"rod-bearing":{minVal:.0018,maxVal:.0028,target:"0.0018â0.0028"},"piston-wall":{minVal:.0025,maxVal:.0035,target:"0.0025â0.0035"},"ring-gap":{minVal:.02,maxVal:.028,target:"0.020â0.028"},"ptv-intake":{minOnly:.1,target:"> 0.100 min"},"ptv-exhaust":{minOnly:.1,target:"> 0.100 min"},"crank-endplay":{minVal:.004,maxVal:.008,target:"0.004â0.008"},"cam-bearing":{minVal:.001,maxVal:.003,target:"0.001â0.003"}}},{id:"bbc",label:"GM BBC (Big Block Chevy 454/496)",shortLabel:"GM BBC",displacement:"396â572ci",description:"Gen IV big-block. Larger journals and heavier rotating assembly require more generous clearances.",presets:{"main-bearing":{minVal:.0025,maxVal:.0035,target:"0.0025â0.0035"},"rod-bearing":{minVal:.002,maxVal:.003,target:"0.0020â0.0030"},"piston-wall":{minVal:.003,maxVal:.004,target:"0.0030â0.0040"},"ring-gap":{minVal:.022,maxVal:.03,target:"0.022â0.030"},"ptv-intake":{minOnly:.1,target:"> 0.100 min"},"ptv-exhaust":{minOnly:.1,target:"> 0.100 min"},"crank-endplay":{minVal:.006,maxVal:.01,target:"0.006â0.010"},"cam-bearing":{minVal:.001,maxVal:.003,target:"0.001â0.003"}}},{id:"ford-302-351",label:"Ford Windsor 302/351W",shortLabel:"Ford 302/351W",displacement:"302â351ci",description:"Ford small-block Windsor. Tighter main bearing clearances than Chevy equivalents.",presets:{"main-bearing":{minVal:8e-4,maxVal:.002,target:"0.0008â0.0020"},"rod-bearing":{minVal:8e-4,maxVal:.002,target:"0.0008â0.0020"},"piston-wall":{minVal:.0022,maxVal:.0032,target:"0.0022â0.0032"},"ring-gap":{minVal:.015,maxVal:.023,target:"0.015â0.023"},"ptv-intake":{minOnly:.09,target:"> 0.090 min"},"ptv-exhaust":{minOnly:.09,target:"> 0.090 min"},"crank-endplay":{minVal:.004,maxVal:.008,target:"0.004â0.008"},"cam-bearing":{minVal:.001,maxVal:.003,target:"0.001â0.003"}}},{id:"ford-mod",label:"Ford Modular 4.6L / 5.4L",shortLabel:"Ford Mod Motor",displacement:"281â330ci",description:"DOHC modular V8. Tighter tolerances throughout due to aluminum block and high-RPM design.",presets:{"main-bearing":{minVal:9e-4,maxVal:.0019,target:"0.0009â0.0019"},"rod-bearing":{minVal:9e-4,maxVal:.0019,target:"0.0009â0.0019"},"piston-wall":{minVal:.0018,maxVal:.0026,target:"0.0018â0.0026"},"ring-gap":{minVal:.01,maxVal:.02,target:"0.010â0.020"},"ptv-intake":{minOnly:.06,target:"> 0.060 min"},"ptv-exhaust":{minOnly:.06,target:"> 0.060 min"},"crank-endplay":{minVal:.004,maxVal:.008,target:"0.004â0.008"},"cam-bearing":{minVal:.001,maxVal:.002,target:"0.001â0.002"}}},{id:"mopar-440",label:"Mopar B/RB (440 / 426 Hemi)",shortLabel:"Mopar 440/Hemi",displacement:"383â528ci",description:"Chrysler B/RB big-block and 426 Hemi. Large displacement demands generous oil clearances.",presets:{"main-bearing":{minVal:.002,maxVal:.0035,target:"0.0020â0.0035"},"rod-bearing":{minVal:.0015,maxVal:.003,target:"0.0015â0.0030"},"piston-wall":{minVal:.003,maxVal:.0045,target:"0.0030â0.0045"},"ring-gap":{minVal:.02,maxVal:.03,target:"0.020â0.030"},"ptv-intake":{minOnly:.1,target:"> 0.100 min"},"ptv-exhaust":{minOnly:.1,target:"> 0.100 min"},"crank-endplay":{minVal:.005,maxVal:.009,target:"0.005â0.009"},"cam-bearing":{minVal:.001,maxVal:.003,target:"0.001â0.003"}}},{id:"honda-k-series",label:"Honda K-Series (K20/K24)",shortLabel:"Honda K-Series",displacement:"122â146ci",description:"Honda DOHC i-VTEC inline-4. Very tight tolerances; aluminum block requires precise measurement.",presets:{"main-bearing":{minVal:7e-4,maxVal:.0016,target:"0.0007â0.0016"},"rod-bearing":{minVal:8e-4,maxVal:.0018,target:"0.0008â0.0018"},"piston-wall":{minVal:.001,maxVal:.0018,target:"0.0010â0.0018"},"ring-gap":{minVal:.008,maxVal:.014,target:"0.008â0.014"},"ptv-intake":{minOnly:.04,target:"> 0.040 min"},"ptv-exhaust":{minOnly:.04,target:"> 0.040 min"},"crank-endplay":{minVal:.004,maxVal:.014,target:"0.004â0.014"},"cam-bearing":{minVal:5e-4,maxVal:.0015,target:"0.0005â0.0015"}}},{id:"toyota-2jz",label:"Toyota 2JZ-GTE",shortLabel:"Toyota 2JZ",displacement:"183ci",description:"Toyota inline-6 DOHC twin-turbo. Renowned for strength; cast iron block tolerates generous clearances for high-boost builds.",presets:{"main-bearing":{minVal:.001,maxVal:.0022,target:"0.0010â0.0022"},"rod-bearing":{minVal:8e-4,maxVal:.002,target:"0.0008â0.0020"},"piston-wall":{minVal:.002,maxVal:.003,target:"0.0020â0.0030"},"ring-gap":{minVal:.01,maxVal:.018,target:"0.010â0.018"},"ptv-intake":{minOnly:.06,target:"> 0.060 min"},"ptv-exhaust":{minOnly:.06,target:"> 0.060 min"},"crank-endplay":{minVal:.002,maxVal:.01,target:"0.002â0.010"},"cam-bearing":{minVal:8e-4,maxVal:.002,target:"0.0008â0.0020"}}}],bT=[{id:"main-bearing",label:"Main Bearing Clearance",measured:"0.0021",target:"0.0018â0.0024",unit:'"',ok:!0,minVal:.0018,maxVal:.0024,description:"Radial oil clearance between the crankshaft main journal and the main bearing shell. C
569ontrols oil film thickness and pressure.",tips:["Measure with Plastigage or dial bore gauge","Torque main caps to spec before measuring","Check all 5 main journals individually"]},{id:"rod-bearing",label:"Rod Bearing Clearance",measured:"0.0019",target:"0.0015â0.0025",unit:'"',ok:!0,minVal:.0015,maxVal:.0025,description:"Radial oil clearance between the connecting rod big-end bore and the crankshaft rod journal. Critical for oil film and rod loading.",tips:["Rotate crank to BDC before checking each rod","Check all 8 rod journals","Use undersized bearings if journals are worn"]},{id:"piston-wall",label:"Piston-to-Wall Clearance",measured:"0.0025",target:"0.0020â0.0030",unit:'"',ok:!0,minVal:.002,maxVal:.003,description:"Clearance between the piston skirt and cylinder bore wall. Too tight causes scuffing; too loose causes piston slap and blow-by.",tips:["Measure 90° from wrist pin at skirt midpoint","Measure bore at top, middle, and bottom","Forged pistons typically need more clearance than cast"]},{id:"ring-gap",label:"Piston Ring End Gap",measured:"0.020",target:"0.018â0.022",unit:'"',ok:!0,minVal:.018,maxVal:.022,description:"Gap between the ends of the piston ring when installed in the bore. Rings expand when hot â insufficient gap causes ring butting and catastrophic failure.",tips:["File rings to achieve correct gap â never reduce below minimum","Measure gap with ring pushed square into bore using a piston","Top ring gap should be larger than second ring gap"]},{id:"ptv-intake",label:"Piston-to-Valve (Intake)",measured:"0.095",target:"> 0.080 min",unit:'"',ok:!0,minOnly:.08,description:"Clearance between the piston crown and the intake valve at TDC overlap. Insufficient clearance causes valve-to-piston contact and engine destruction.",tips:["Check with clay method or dial indicator","Measure at 10° BTDC and 10° ATDC for worst-case","Valve reliefs in piston crown increase this clearance"]},{id:"ptv-exhaust",label:"Piston-to-Valve (Exhaust)",measured:"0.072",target:"> 0.080 min",unit:'"',ok:!1,minOnly:.08,description:"Clearance between the piston crown and the exhaust valve at TDC overlap. This build is currently BELOW the minimum safe clearance â action required.",tips:['â Currently 0.008" below minimum safe clearance',"Options: deeper valve reliefs, retard cam timing, or shorter valve lift","Re-check after any cam timing or head gasket changes"]},{id:"crank-endplay",label:"Crankshaft End Play",measured:"0.005",target:"0.004â0.008",unit:'"',ok:!0,minVal:.004,maxVal:.008,description:"Axial (fore-aft) movement of the crankshaft controlled by the thrust bearing. Excessive end play causes vibration and thrust bearing failure.",tips:["Measure with dial indicator at front of crank snout","Pry crank forward and back to get full range","Controlled by thrust bearing width â available in oversizes"]},{id:"cam-bearing",label:"Cam Bearing Clearance",measured:"0.0018",target:"0.001â0.003",unit:'"',ok:!0,minVal:.001,maxVal:.003,description:"Oil clearance between the camshaft journals and cam bearing bores in the block. Controls oil flow to the valvetrain.",tips:["Cam bearings are pressed into block â check alignment","Oil holes must align with block oil passages","Use cam bearing installation tool to avoid damage"]}],Lte=[{specId:"main-bearing",label:"Main Bearing",type:"ellipse",cx:300,cy:390,rx:38,ry:16,lx:300,ly:390},{specId:"rod-bearing",label:"Rod Bearing",type:"ellipse",cx:300,cy:320,rx:22,ry:10,lx:300,ly:320},{specId:"piston-wall",label:"Piston-to-Wall",type:"rect",x:210,y:160,width:56,height:120,lx:238,ly:220},{specId:"ring-gap",label:"Ring Gap",type:"rect",x:334,y:160,width:56,height:120,lx:362,ly:220},{specId:"ptv-intake",label:"P-to-V Intake",type:"path",d:"M 155 60 L 255 60 L 255 155 L 155 155 Z",lx:205,ly:107},{specId:"ptv-exhaust",label:"P-to-V Exhaust",type:"path",d:"M 345 60 L 445 60 L 445 155 L 345 155 Z",lx:395,ly:107},{specId:"crank-endplay",label:"Crank End Play",type:"rect",x:195,y:370,width:60,height:40,lx:225,ly:390},{specId:"cam-bearing",label:"Cam Bearing",type:"ellipse",cx:300,cy:240,rx:20,ry:9,lx:300,ly:240}];function Mte(e,t){const n=parseFloat(e);
569if(isNaN(n))return 0;if(t.minOnly!==void 0)return Math.min(100,Math.max(0,n/(t.minOnly*2)*100));if(t.minVal!==void 0&&t.maxVal!==void 0){const a=(t.maxVal-t.minVal)*.5,s=t.minVal-a,i=t.maxVal+a;return Math.min(100,Math.max(0,(n-s)/(i-s)*100))}return t.ok?78:45}const tP="enginebuildr_custom_presets";function Rte(){try{const e=localStorage.getItem(tP);return e?JSON.parse(e):[]}catch{return[]}}function yT(e){localStorage.setItem(tP,JSON.stringify(e))}const M4=[{id:"main-bearing",label:"Main Bearing Clearance",placeholder:"e.g. 0.0018â0.0024",hint:"Range (minâmax) or > min"},{id:"rod-bearing",label:"Rod Bearing Clearance",placeholder:"e.g. 0.0015â0.0025",hint:"Range (minâmax) or > min"},{id:"piston-wall",label:"Piston-to-Wall Clearance",placeholder:"e.g. 0.0020â0.0030",hint:"Range (minâmax) or > min"},{id:"ring-gap",label:"Piston Ring End Gap",placeholder:"e.g. 0.018â0.022",hint:"Range (minâmax) or > min"},{id:"ptv-intake",label:"Piston-to-Valve (Intake)",placeholder:"e.g. > 0.080",hint:"Minimum only (> X) or range"},{id:"ptv-exhaust",label:"Piston-to-Valve (Exhaust)",placeholder:"e.g. > 0.080",hint:"Minimum only (> X) or range"},{id:"crank-endplay",label:"Crankshaft End Play",placeholder:"e.g. 0.004â0.008",hint:"Range (minâmax) or > min"},{id:"cam-bearing",label:"Cam Bearing Clearance",placeholder:"e.g. 0.001â0.003",hint:"Range (minâmax) or > min"}];function Ote(e){const t=e.trim(),n=t.match(/^>\s*([0-9.]+)/);if(n){const a=parseFloat(n[1]);return isNaN(a)?null:{minOnly:a,target:`> ${a} min`}}const r=t.match(/^([0-9.]+)\s*[â\-]\s*([0-9.]+)$/);if(r){const a=parseFloat(r[1]),s=parseFloat(r[2]);return isNaN(a)||isNaN(s)||a>=s?null:{minVal:a,maxVal:s,target:`${a}â${s}`}}return null}function R4(e,t){return e.map(n=>{const r=t.presets[n.id];if(!r)return n;const a={...n,target:r.target+(r.minOnly!==void 0,""),minVal:r.minVal,maxVal:r.maxVal,minOnly:r.minOnly};return r.minVal!==void 0&&delete a.minOnly,r.minOnly!==void 0&&(delete a.minVal,delete a.maxVal),a.ok=fx(n.measured,a),a})}function Pte({open:e,editingPreset:t,onClose:n,onSave:r}){const[a,s]=G.useState(""),[i,o]=G.useState(""),[c,d]=G.useState(""),[f,m]=G.useState({}),[b,g]=G.useState({}),[v,E]=G.useState("");G.useEffect(()=>{if(e){if(t){s(t.label),o(t.displacement),d(t.description);const A={};M4.forEach(({id:R})=>{const P=t.presets[R];A[R]=P?P.target:""}),m(A)}else s(""),o(""),d(""),m({});g({}),E("")}},[e,t]);const T=(A,R)=>{m(P=>({...P,[A]:R})),b[A]&&g(P=>{const V={...P};return delete V[A],V})},_=()=>{let A=!0;const R={};a.trim()?E(""):(E("Preset name is required"),A=!1);const P={};if(M4.forEach(({id:U})=>{const D=(f[U]||"").trim();if(!D){R[U]="Required",A=!1;return}const H=Ote(D);if(!H){R[U]="Use format: 0.001â0.003 or > 0.080",A=!1;return}P[U]=H}),g(R),!A)return;const V={id:t?.id??`custom-${Date.now()}`,label:a.trim(),shortLabel:a.trim().slice(0,20),displacement:i.trim()||"Custom",description:c.trim()||"Custom race build specification",presets:P,isCustom:!0,createdAt:t?.createdAt??Date.now()};r(V)};return e?h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:546",className:"fixed inset-0 z-[100] flex items-center justify-center p-4",style:{background:"oklch(0 0 0 / 0.7)",backdropFilter:"blur(4px)"},onMouseDown:A=>{A.target===A.currentTarget&&n()},children:h.jsxs(Je.div,{"data-loc":"client/src/components/EngineCrossSection.tsx:551",initial:{opacity:0,scale:.95,y:16},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:16},transition:{duration:.22,ease:[.23,1,.32,1]},className:"w-full max-w-2xl rounded-2xl border overflow-hidden flex flex-col",style:{borderColor:"oklch(1 0 0 / 0.12)",background:"oklch(0.11 0.004 285)",boxShadow:"0 24px 64px oklch(0 0 0 / 0.6)",maxHeight:"90vh"},children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:565",className:"flex items-center gap-3 px-6 py-4 border-b flex-shrink-0",style:{borderColor:"oklch(1 0 0 / 0.1)"},children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:569",className:"w-9 h-9 rounded-xl flex items-center justify-center flex-shrink-0",style:{background:"var(--orange-dim)"},children:h.jsx(RK,{"data-loc":"client/src/components/EngineCrossSection.tsx:573",className:"w-4 h-4",style:{color:"var(--orange)"}})}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:575",className:"flex-1",children:[h.jsx("h2",{"data-loc":"client/src/components/EngineCrossSection.tsx:576",className:"font-bold text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.2rem",letterSpacing:"0.04em"},children:t?"EDIT CUSTOM PRESET":"NEW CUSTOM PRESET"}),h.jsx("p",{"data-loc":"client/src/components/EngineCrossSection.tsx:582",className:"text-xs text-muted-foreground mt-0.5",children:"Define target clearance ranges for your race build specification"})]}),h.jsx("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:586",onClick:n,className:"w-8 h-8 rounded-lg flex items-center justify-center transition-colors hover:bg-white/10",children:h.jsx(Sp,{"data-loc":"client/src/components/EngineCrossSection.tsx:590",className:"w-4 h-4 text-muted-foreground"})})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:595",className:"overflow-y-auto flex-1 px-6 py-5 space-y-5",children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:597",className:"rounded-xl border p-4 space-y-4",style:{borderColor:"oklch(1 0 0 / 0.08)",background:"oklch(0.13 0.004 285)"},children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:601",className:"text-xs font-semibold text-muted-foreground mb-1",style:{fontFamily:"'JetBrains Mono', monospace",letterSpacing:"0.08em"},children:"PRESET IDENTITY"}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:607",className:"grid grid-cols-2 gap-4",children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:608",className:"col-span-2",children:[h.jsxs("label",{"data-loc":"client/src/components/EngineCrossSection.tsx:609",className:"block text-xs text-muted-foreground mb-1.5",style:{fontFamily:"'JetBrains Mono', monospace"},children:["PRESET NAME ",h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:610",style:{color:"var(--orange)"},children:"*"})]}),h.jsx("input",{"data-loc":"client/src/components/EngineCrossSection.tsx:612",value:a,onChange:A=>{s(A.target.value),E("")},placeholder:"e.g. 427 LS Race Spec, 2JZ 1000hp Build",className:"w-full px-3 py-2 rounded-lg border text-sm text-foreground placeholder:text-muted-foreground
569/50 outline-none transition-colors",style:{background:"oklch(0.10 0.004 285)",borderColor:v?"oklch(0.65 0.22 30)":"oklch(1 0 0 / 0.1)",fontFamily:"'JetBrains Mono', monospace"}}),v&&h.jsx("p",{"data-loc":"client/src/components/EngineCrossSection.tsx:623",className:"text-xs mt-1",style:{color:"oklch(0.65 0.22 30)"},children:v})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:625",children:[h.jsx("label",{"data-loc":"client/src/components/EngineCrossSection.tsx:626",className:"block text-xs text-muted-foreground mb-1.5",style:{fontFamily:"'JetBrains Mono', monospace"},children:"DISPLACEMENT"}),h.jsx("input",{"data-loc":"client/src/components/EngineCrossSection.tsx:629",value:i,onChange:A=>o(A.target.value),placeholder:"e.g. 427ci, 2JZ",className:"w-full px-3 py-2 rounded-lg border text-sm text-foreground placeholder:text-muted-foreground/50 outline-none transition-colors",style:{background:"oklch(0.10 0.004 285)",borderColor:"oklch(1 0 0 / 0.1)",fontFamily:"'JetBrains Mono', monospace"}})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:641",children:[h.jsx("label",{"data-loc":"client/src/components/EngineCrossSection.tsx:642",className:"block text-xs text-muted-foreground mb-1.5",style:{fontFamily:"'JetBrains Mono', monospace"},children:"DESCRIPTION"}),h.jsx("input",{"data-loc":"client/src/components/EngineCrossSection.tsx:645",value:c,onChange:A=>d(A.target.value),placeholder:"e.g. 1000hp turbo race spec",className:"w-full px-3 py-2 rounded-lg border text-sm text-foreground placeholder:text-muted-foreground/50 outline-none transition-colors",style:{background:"oklch(0.10 0.004 285)",borderColor:"oklch(1 0 0 / 0.1)",fontFamily:"'JetBrains Mono', monospace"}})]})]})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:661",className:"rounded-xl border p-4",style:{borderColor:"oklch(1 0 0 / 0.08)",background:"oklch(0.13 0.004 285)"},children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:665",className:"text-xs font-semibold text-muted-foreground mb-3",style:{fontFamily:"'JetBrains Mono', monospace",letterSpacing:"0.08em"},children:["TARGET CLEARANCE RANGES ",h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:669",style:{color:"var(--orange)"},children:"*"})]}),h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:671",className:"grid grid-cols-2 gap-3",children:M4.map(({id:A,label:R,placeholder:P,hint:V})=>{const U=!!b[A];return h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:675",children:[h.jsx("label",{"data-loc":"client/src/components/EngineCrossSection.tsx:676",className:"block text-xs text-muted-foreground mb-1",style:{fontFamily:"'JetBrains Mono', monospace",fontSize:"0.68rem"},children:R.toUpperCase()}),h.jsx("input",{"data-loc":"client/src/components/EngineCrossSection.tsx:679",value:f[A]??"",onChange:D=>T(A,D.target.value),placeholder:P,className:"w-full px-3 py-2 rounded-lg border text-sm text-foreground placeholder:text-muted-foreground/40 outline-none transition-colors",style:{background:"oklch(0.10 0.004 285)",borderColor:U?"oklch(0.65 0.22 30)":"oklch(1 0 0 / 0.1)",fontFamily:"'JetBrains Mono', monospace",fontSize:"0.8rem"}}),U?h.jsx("p",{"data-loc":"client/src/components/EngineCrossSection.tsx:692",className:"text-xs mt-0.5",style:{color:"oklch(0.65 0.22 30)"},children:b[A]}):h.jsx("p",{"data-loc":"client/src/components/EngineCrossSection.tsx:693",className:"text-xs mt-0.5 text-muted-foreground/50",children:V})]},A)})})]})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:703",className:"flex items-center justify-between gap-3 px-6 py-4 border-t flex-shrink-0",style:{borderColor:"oklch(1 0 0 / 0.1)"},children:[h.jsx("p",{"data-loc":"client/src/components/EngineCrossSection.tsx:707",className:"text-xs text-muted-foreground",children:"Saved locally in your browser"}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:710",className:"flex items-center gap-2",children:[h.jsx("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:711",onClick:n,className:"px-4 py-2 rounded-lg border text-sm text-muted-foreground transition-colors hover:bg-white/5",style:{borderColor:"oklch(1 0 0 / 0.1)"},children:"Cancel"}),h.jsxs("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:718",onClick:_,className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all hover:opacity-90 active:scale-[0.97]",style:{background:"var(--orange)",color:"#fff"},children:[h.jsx(qK,{"data-loc":"client/src/components/EngineCrossSection.tsx:723",className:"w-3.5 h-3.5"}),t?"Update Preset":"Save Preset"]})]})]})]})}):null}function jte({specs:e=bT,buildName:t="Engine Build",vehicle:n=""}){const[r,a]=G.useState(()=>e.map(ue=>({...ue,ok:fx(ue.measured,ue)}))),[s,i]=G.useState(null),[o,c]=G.useState(null),[d,f]=G.useState(""),[m,b]=G.useState(""),[g,v]=G.useState("ls-v8"),[E,T]=G.useState(!1),[_,A]=G.useState(()=>Rte()),[R,P]=G.useState(!1),[V,U]=G.useState(null),[D,H]=G.useState(null),q=G.useRef(null),W=G.useRef(null);G.useEffect(()=>{function ue(Ae){W.current&&!W.current.contains(Ae.target)&&(T(!1),H(null))}return document.addEventListener("mousedown",ue),()=>document.removeEventListener("mousedown",ue)},[]);const $=[...E2,..._].find(ue=>ue.id===g)??E2[0],[ae,J]=G.useState(!1),xe=G.useCallback(async()=>{J(!0);try{Ate({buildName:t,vehicle:n,presetName:$.label,specs:r})}finally{setTimeout(()=>J(!1),800)}},[t,n,$,r]),ee=G.useCallback(ue=>{v(ue.id),T(!1),H(null),a(Ae=>R4(Ae,ue)),c(null),b("")},[]),ce=G.useCallback(ue=>{A(Ae=>{const We=Ae.findIndex(st=>st.id===ue.id)>=0?Ae.map(st=>st.id===ue.id?ue:st):[...Ae,ue];return yT(We),We}),P(!1),U(null),v(ue.id),a(Ae=>R4(Ae,ue)),c(null),b("")},[]),se=G.useCallback(ue=>{A(Ae=>{const Ie=Ae.filter(We=>We.id!==ue);return yT(Ie),Ie}),g===ue&&(v("ls-v8"),a(Ae=>
569R4(Ae,E2[0]))),H(null)},[g]),be=r.find(ue=>ue.id===s)??null,Z=ue=>{i(Ae=>Ae===ue?null:ue),o&&o!==ue&&(c(null),b(""))},ne=G.useCallback(ue=>{c(ue.id),f(ue.measured),b("")},[]);G.useEffect(()=>{o&&q.current&&(q.current.focus(),q.current.select())},[o]);const B=G.useCallback(ue=>{const Ae=d.trim(),Ie=parseFloat(Ae);if(Ae===""||isNaN(Ie)||Ie<0){b("Enter a valid positive number");return}a(We=>We.map(st=>{if(st.id!==ue)return st;const mt=fx(Ae,st),_t=st.id==="ptv-exhaust"&&st.minOnly!==void 0?[mt?`â ${(Ie-st.minOnly).toFixed(4)}" above minimum safe clearance`:`â ${(st.minOnly-Ie).toFixed(4)}" below minimum safe clearance`,...st.tips.slice(1)]:st.tips;return{...st,measured:Ae,ok:mt,tips:_t}})),c(null),b("")},[d]),O=G.useCallback(()=>{c(null),f(""),b("")},[]),K=G.useCallback(ue=>{const Ae=bT.find(Ie=>Ie.id===ue);Ae&&(a(Ie=>Ie.map(We=>We.id===ue?{...Ae,ok:fx(Ae.measured,Ae)}:We)),c(null),b(""))},[]),he=Object.fromEntries(r.map(ue=>[ue.id,ue])),we=r.filter(ue=>ue.ok).length,Ee=r.length-we;return h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:903",className:"grid lg:grid-cols-5 gap-6 items-start",children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:905",className:"lg:col-span-5 flex items-center justify-between mb-0",children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:906"}),h.jsxs("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:907",onClick:xe,disabled:ae,className:"flex items-center gap-2 px-4 py-2 rounded-lg border text-sm font-semibold transition-all hover:bg-white/5 active:scale-[0.97] disabled:opacity-60",style:{borderColor:"oklch(1 0 0 / 0.15)",background:"oklch(0.12 0.004 285)",color:"var(--orange)",fontFamily:"'JetBrains Mono', monospace",letterSpacing:"0.05em"},children:[h.jsx(MK,{"data-loc":"client/src/components/EngineCrossSection.tsx:919",className:"w-4 h-4"}),ae?"GENERATING PDF...":"PRINT SPEC SHEET"]})]}),h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:925",className:"lg:col-span-5 mb-1",ref:W,children:h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:926",className:"relative",children:[h.jsxs("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:927",onClick:()=>T(ue=>!ue),className:"flex items-center gap-3 w-full px-4 py-3 rounded-xl border transition-all hover:bg-white/5",style:{borderColor:E?"var(--orange)":"oklch(1 0 0 / 0.12)",background:"oklch(0.12 0.004 285)",boxShadow:E?"0 0 0 1px oklch(0.65 0.22 30 / 0.2)":"none"},children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:936",className:"w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0",style:{background:"var(--orange-dim)"},children:h.jsx(Bw,{"data-loc":"client/src/components/EngineCrossSection.tsx:940",className:"w-4 h-4",style:{color:"var(--orange)"}})}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:942",className:"flex-1 text-left min-w-0",children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:943",className:"text-xs text-muted-foreground mb-0.5",style:{fontFamily:"'JetBrains Mono', monospace"},children:"ENGINE FAMILY PRESET"}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:946",className:"flex items-center gap-2",children:[h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:947",className:"text-sm font-semibold text-foreground truncate",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1rem"},children:$.label}),h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:950",className:"text-xs px-1.5 py-0.5 rounded flex-shrink-0",style:{background:"var(--orange-dim)",color:"var(--orange)",fontFamily:"'JetBrains Mono', monospace"},children:$.displacement})]})]}),h.jsx(wp,{"data-loc":"client/src/components/EngineCrossSection.tsx:958",className:"w-4 h-4 flex-shrink-0 transition-transform",style:{color:"var(--orange)",transform:E?"rotate(180deg)":"rotate(0deg)"}})]}),h.jsx(Ba,{"data-loc":"client/src/components/EngineCrossSection.tsx:968",children:E&&h.jsxs(Je.div,{"data-loc":"client/src/components/EngineCrossSection.tsx:970",initial:{opacity:0,y:-8,scaleY:.95}
569,animate:{opacity:1,y:0,scaleY:1},exit:{opacity:0,y:-8,scaleY:.95},transition:{duration:.18,ease:[.23,1,.32,1]},className:"absolute top-full left-0 right-0 z-50 mt-1 rounded-xl border overflow-hidden",style:{transformOrigin:"top",borderColor:"oklch(1 0 0 / 0.12)",background:"oklch(0.11 0.004 285)",boxShadow:"0 16px 40px oklch(0 0 0 / 0.5)"},children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:983",className:"px-4 py-2 border-b",style:{borderColor:"oklch(1 0 0 / 0.08)"},children:h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:987",className:"text-xs text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:"SELECT ENGINE FAMILY â TARGET CLEARANCES WILL UPDATE AUTOMATICALLY"})}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:991",className:"max-h-80 overflow-y-auto",children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:993",className:"px-4 py-1.5",style:{borderBottom:"1px solid oklch(1 0 0 / 0.06)"},children:h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:997",className:"text-xs",style:{fontFamily:"'JetBrains Mono', monospace",color:"oklch(0.45 0.01 285)",letterSpacing:"0.06em"},children:"FACTORY PRESETS"})}),E2.map(ue=>{const Ae=ue.id===g;return h.jsxs("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:1004",onClick:()=>ee(ue),className:"w-full flex items-start gap-3 px-4 py-3 text-left transition-colors hover:bg-white/5",style:Ae?{background:"oklch(1 0 0 / 0.04)"}:{},children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1010",className:"w-1.5 h-1.5 rounded-full mt-1.5 flex-shrink-0 transition-colors",style:{background:Ae?"var(--orange)":"oklch(0.4 0.008 285)"}}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1014",className:"flex-1 min-w-0",children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1015",className:"flex items-center gap-2 mb-0.5",children:[h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1016",className:"text-sm font-medium",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"0.95rem",color:Ae?"var(--orange)":"var(--foreground)"},children:ue.label}),h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1026",className:"text-xs px-1.5 py-0.5 rounded flex-shrink-0",style:{background:"oklch(1 0 0 / 0.06)",color:"oklch(0.55 0.01 285)",fontFamily:"'JetBrains Mono', monospace"},children:ue.displacement})]}),h.jsx("p",{"data-loc":"client/src/components/EngineCrossSection.tsx:1033",className:"text-xs text-muted-foreground leading-relaxed",children:ue.description})]}),Ae&&h.jsx(La,{"data-loc":"client/src/components/EngineCrossSection.tsx:1038",className:"w-4 h-4 flex-shrink-0 mt-0.5",style:{color:"var(--orange)"}})]},ue.id)}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1045",className:"px-4 py-1.5 flex items-center justify-between",style:{borderTop:"1px solid oklch(1 0 0 / 0.08)",borderBottom:_.length>0?"1px solid oklch(1 0 0 / 0.06)":"none"},children:[h.jsxs("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1049",className:"text-xs",style:{fontFamily:"'JetBrains Mono', monospace",color:"oklch(0.45 0.01 285)",letterSpacing:"0.06em"},children:["CUSTOM PRESETS ",_.length>0&&`(${_.length})`]}),h.jsxs("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:1052",onClick:ue=>{ue.stopPropagation(),T(!1),U(null),P(!0)},className:"flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-xs font-semibold transition-all hover:opacity-90",style:{background:"var(--orange)",color:"#fff",fontFamily:"'JetBrains Mono', monospace"},children:[h.jsx(Ox,{"data-loc":"client/src/components/EngineCrossSection.tsx:1057",className:"w-3 h-3"}),"NEW"]})]}),_.length===0&&h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1063",className:"px-4 py-4 text-center",children:h.jsx("p",{"data-loc":"client/src/components/EngineCrossSection.tsx:1064",className:"text-xs text-muted-foreground/60",style:{fontFamily:"'JetBrains Mono', monospace"},children:"No custom presets yet. Click NEW to create one."})}),_.map(ue=>{const Ae=ue.id===g,Ie=D===ue.id;return h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1074",className:"flex items-start gap-3 px-4 py-3 transition-colors hover:bg-white/5",style:Ae?{background:"oklch(1 0 0 / 0.04)"}:{},children:[h.jsxs("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:1079",onClick:()=>ee(ue),className:"flex items-start gap-3 flex-1 text-left min-w-0",children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1083",className:"w-1.5 h-1.5 rounded-full mt-1.5 flex-shrink-0 transition-colors",style:{background:Ae?"var(--orange)":"oklch(0.4 0.008 285)"}}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1087",className:"flex-1 min-w-0",children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1088",className:"flex items-center gap-2 mb-0.5",children:[h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1089",className:"text-sm font-medium truncate",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"0.95rem",color:Ae?"var(--orange)":"var(--foreground)"},children:ue.label}),h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1099",className:"text-xs px-1.5 py-0.5 rounded flex-shrink-0",style:{background:"oklch(0.65 0.22 30 / 0.15)",color:"oklch(0.65 0.22 30)",fontFamily:"'JetBrains Mono', monospace"},children:"CUSTOM"}),ue.displacement&&ue.displacement!=="Custom"&&h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1106",className:"text-xs px-1.5 py-0.5 rounded flex-shrink-0",style:{background:"oklch(1 0 0 / 0.06)",color:"oklch(0.55 0.01 285)",fontFamily:"'JetBrains Mono', monospace"},children:ue.displacement})]}),h.jsx("p",{"data-loc":"client/src/components/EngineCrossSection.tsx:1114",className:"text-xs text-muted-foreground leading-relaxed",children:ue.description})]})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1120",className:"flex items-center gap-1 flex-shrink-0 mt-0.5",children:[Ae&&h.jsx(La,{"data-loc":"client/src/components/EngineCrossSection.tsx:1121",className:"w-4 h-4",style:{color:"var(--orange)"}}),h.jsx("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:1122",onClick:We=>{We.stopPropagation(),T(!1),U(ue),P(!0)},className:"w-7 h-7 rounded-lg flex items-center justify-center transition-colors hover:bg-white/10",title:"Edit preset",children:h.jsx(C3,{"data-loc":"client/src/components/EngineCrossSection.tsx:1127",className:"w-3.5 h-3.5 text-muted-foreground"})}),Ie?h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1130",className:"flex items-center gap-1",children:[h.jsx("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:1131",onClick:We=>{We.stopPropagation(),se(ue.id)},className:"px-2 py-1 rounded text-xs font-semibold transition-colors",style:{background:"oklch(0.65 0.22 30)",color:"#fff"},children:"Delete"}),h.jsx("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:1138",onClick:We=>{We.stopPropagation(),H(null)},className:"px-2 py-1 rounded text-xs transition-colors hover:bg-white/10 text-muted-foreground",children:"Cancel"})]}):h.jsx("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:1146",onClick:We=>
569{We.stopPropagation(),H(ue.id)},className:"w-7 h-7 rounded-lg flex items-center justify-center transition-colors hover:bg-red-500/10",title:"Delete preset",children:h.jsx(zw,{"data-loc":"client/src/components/EngineCrossSection.tsx:1151",className:"w-3.5 h-3.5",style:{color:"oklch(0.65 0.22 30)"}})})]})]},ue.id)})]})]})})]})}),h.jsx(Ba,{"data-loc":"client/src/components/EngineCrossSection.tsx:1166",children:R&&h.jsx(Pte,{"data-loc":"client/src/components/EngineCrossSection.tsx:1168",open:R,editingPreset:V,onClose:()=>{P(!1),U(null)},onSave:ce})}),h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1178",className:"lg:col-span-3",children:h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1179",className:"relative rounded-xl border overflow-hidden",style:{borderColor:"oklch(1 0 0 / 0.1)",background:"oklch(0.10 0.004 285)"},children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1184",className:"flex items-center justify-between px-4 py-2.5 border-b",style:{borderColor:"oklch(1 0 0 / 0.08)"},children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1188",className:"flex items-center gap-2",children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1189",className:"w-2 h-2 rounded-full",style:{background:"var(--orange)"}}),h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1190",className:"text-xs text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:"LS V8 â CROSS SECTION VIEW"})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1194",className:"flex items-center gap-3",children:[h.jsxs("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1195",className:"text-xs",style:{fontFamily:"'JetBrains Mono', monospace",color:"oklch(0.7 0.18 140)"},children:[we," PASS"]}),Ee>0&&h.jsxs("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1199",className:"text-xs",style:{fontFamily:"'JetBrains Mono', monospace",color:"oklch(0.65 0.22 30)"},children:[Ee," FAIL"]})]})]}),h.jsxs("svg",{"data-loc":"client/src/components/EngineCrossSection.tsx:1207",viewBox:"0 0 600 520",className:"w-full",style:{display:"block"},children:[h.jsxs("defs",{"data-loc":"client/src/components/EngineCrossSection.tsx:1208",children:[h.jsx("pattern",{"data-loc":"client/src/components/EngineCrossSection.tsx:1209",id:"eng-grid",width:"20",height:"20",patternUnits:"userSpaceOnUse",children:h.jsx("path",{"data-loc":"client/src/components/EngineCrossSection.tsx:1210",d:"M 20 0 L 0 0 0 20",fill:"none",stroke:"oklch(1 0 0 / 0.04)",strokeWidth:"0.5"})}),h.jsxs("filter",{"data-loc":"client/src/components/EngineCrossSection.tsx:1212",id:"orange-glow",children:[h.jsx("feGaussianBlur",{"data-loc":"client/src/components/EngineCrossSection.tsx:1213",stdDeviation:"3",result:"blur"}),h.jsx("feComposite",{"data-loc":"client/src/components/EngineCrossSection.tsx:1214",in:"SourceGraphic",in2:"blur",operator:"over"})]})]}),h.jsx("rect",{"data-loc":"client/src/components/EngineCrossSection.tsx:1217",width:"600",height:"520",fill:"url(#eng-grid)"}),h.jsx("rect",{"data-loc":"client/src/components/EngineCrossSection.tsx:1220",x:"140",y:"140",width:"320",height:"280",rx:"8",fill:"oklch(0.16 0.006 285)",stroke:"oklch(1 0 0 / 0.15)",strokeWidth:"1.5"}),h.jsx("rect",{"data-loc":"client/src/components/EngineCrossSection.tsx:1221",x:"140",y:"140",width:"320",height:"20",rx:"4",fill:"oklch(0.20 0.006 285)",stroke:"oklch(1 0 0 / 0.2)",strokeWidth:"1"}),h.jsx("rect",{"data-loc":"client/src/components/EngineCrossSection.tsx:1224",x:"214",y:"160",width:"48",height:"130",rx:"3",fill:"oklch(0.08 0.003 285)",stroke:"oklch(1 0 0 / 0.2)",strokeWidth:"1"}),h.jsx("rect",{"data-loc":"client/src/components/EngineCrossSection.tsx:1225",x:"338",y:"160",width:"48",height:"130",rx:"3",fill:"oklch(0.08 0.003 285)",stroke:"oklch(1 0 0 / 0.2)",strokeWidth:"1"}),h.jsx("rect",{"data-loc":"client/src/components/EngineCrossSection.tsx:1228",x:"218",y:"175",width:"40",height:"55",rx:"2",fill:"oklch(0.28 0.008 285)",stroke:"oklch(1 0 0 / 0.3)",strokeWidth:"1"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1229",x1:"218",y1:"185",x2:"258",y2:"185",stroke:"oklch(0.55 0.01 285)",strokeWidth:"2"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1230",x1:"218",y1:"192",x2:"258",y2:"192",stroke:"oklch(0.55 0.01 285)",strokeWidth:"1.5"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1231",x1:"218",y1:"199",x2:"258",y2:"199",stroke:"oklch(0.55 0.01 285)",strokeWidth:"1.5"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1232",x1:"218",y1:"218",x2:"258",y2:"218",stroke:"oklch(0.45 0.01 285)",strokeWidth:"3"}),h.jsx("rect",{"data-loc":"client/src/components/EngineCrossSection.tsx:1234",x:"342",y:"175",width:"40",height:"55",rx:"2",fill:"oklch(0.28 0.008 285)",stroke:"oklch(1 0 0 / 0.3)",strokeWidth:"1"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1235",x1:"342",y1:"185",x2:"382",y2:"185",stroke:"oklch(0.55 0.01 285)",strokeWidth:"2"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1236",x1:"342",y1:"192",x2:"382",y2:"192",stroke:"oklch(0.55 0.01 285)",strokeWidth:"1.5"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1237",x1:"342",y1:"199",x2:"382",y2:"199",stroke:"oklch(0.55 0.01 285)",strokeWidth:"1.5"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1238",x1:"342",y1:"218",x2:"382",y2:"218",stroke:"oklch(0.45 0.01 285)",strokeWidth:"3"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1241",x1:"238",y1:"218",x2:"290",y2:"318",stroke:"oklch(0.40 0.01 285)",strokeWidth:"7",strokeLinecap:"round"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1242",x1:"238",y1:"218",x2:"290",y2:"318",stroke:"oklch(0.55 0.01 285)",strokeWidth:"3",strokeLinecap:"round"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1243",x1:"362",y1:"218",x2:"310",y2:"318",stroke:"oklch(0.40 0.01 285)",strokeWidth:"7",strokeLinecap:"round"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1244",x1:"362",y1:"218",x2:"310",y2:"318",stroke:"oklch(0.55 0.01 285)",strokeWidth:"3",strokeLinecap:"round"}),h.jsx("ellipse",{"data-loc":"client/src/components/EngineCrossSection.tsx:1247",cx:"290",cy:"318",rx:"18",ry:"8",fill:"oklch(0.22 0.006 285)",stroke:"oklch(1 0 0 / 0.25)",strokeWidth:"1.5"}),h.jsx("ellipse",{"data-loc":"client/src/components/EngineCrossSection.tsx:1248",cx:"310",cy:"318",rx:"18",ry:"8",fill:"oklch(0.22 0.006 285)",stroke:"oklch(1 0 0 / 0.25)",strokeWidth:"1.5"}),h.jsx("ellipse",{"data-loc":"client/src/components/EngineCrossSection.tsx:1251",cx:"300",cy:"375",rx:"70",ry:"30",fill:"oklch(0.20 0.006 285)",stroke:"oklch(1 0 0 / 0.2)",strokeWidth:"1.5"}),h.jsx("ellipse",{"data-loc":"client/src/components/EngineCrossSection.tsx:1252",cx:"300",cy:"390",rx:"34",ry:"14",f
569ill:"oklch(0.25 0.007 285)",stroke:"oklch(1 0 0 / 0.3)",strokeWidth:"1.5"}),h.jsx("rect",{"data-loc":"client/src/components/EngineCrossSection.tsx:1253",x:"145",y:"375",width:"55",height:"22",rx:"4",fill:"oklch(0.22 0.006 285)",stroke:"oklch(1 0 0 / 0.2)",strokeWidth:"1"}),h.jsx("ellipse",{"data-loc":"client/src/components/EngineCrossSection.tsx:1256",cx:"300",cy:"240",rx:"16",ry:"7",fill:"oklch(0.24 0.007 285)",stroke:"oklch(1 0 0 / 0.25)",strokeWidth:"1.5"}),h.jsx("ellipse",{"data-loc":"client/src/components/EngineCrossSection.tsx:1257",cx:"270",cy:"238",rx:"8",ry:"5",fill:"oklch(0.30 0.008 285)",stroke:"oklch(1 0 0 / 0.2)",strokeWidth:"1"}),h.jsx("ellipse",{"data-loc":"client/src/components/EngineCrossSection.tsx:1258",cx:"330",cy:"238",rx:"8",ry:"5",fill:"oklch(0.30 0.008 285)",stroke:"oklch(1 0 0 / 0.2)",strokeWidth:"1"}),h.jsx("rect",{"data-loc":"client/src/components/EngineCrossSection.tsx:1261",x:"155",y:"48",width:"100",height:"95",rx:"6",fill:"oklch(0.18 0.006 285)",stroke:"oklch(1 0 0 / 0.2)",strokeWidth:"1.5"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1262",x1:"185",y1:"48",x2:"185",y2:"140",stroke:"oklch(0.50 0.01 285)",strokeWidth:"4",strokeLinecap:"round"}),h.jsx("ellipse",{"data-loc":"client/src/components/EngineCrossSection.tsx:1263",cx:"185",cy:"143",rx:"12",ry:"4",fill:"oklch(0.45 0.01 285)"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1264",x1:"225",y1:"48",x2:"225",y2:"140",stroke:"oklch(0.50 0.01 285)",strokeWidth:"4",strokeLinecap:"round"}),h.jsx("ellipse",{"data-loc":"client/src/components/EngineCrossSection.tsx:1265",cx:"225",cy:"143",rx:"12",ry:"4",fill:"oklch(0.45 0.01 285)"}),[0,1,2,3].map(ue=>h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1267",x1:"178",y1:55+ue*8,x2:"192",y2:59+ue*8,stroke:"oklch(0.35 0.008 285)",strokeWidth:"1.5"},`lvs1-${ue}`)),[0,1,2,3].map(ue=>h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1270",x1:"218",y1:55+ue*8,x2:"232",y2:59+ue*8,stroke:"oklch(0.35 0.008 285)",strokeWidth:"1.5"},`lvs2-${ue}`)),h.jsx("rect",{"data-loc":"client/src/components/EngineCrossSection.tsx:1273",x:"345",y:"48",width:"100",height:"95",rx:"6",fill:"oklch(0.18 0.006 285)",stroke:"oklch(1 0 0 / 0.2)",strokeWidth:"1.5"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1274",x1:"375",y1:"48",x2:"375",y2:"140",stroke:"oklch(0.50 0.01 285)",strokeWidth:"4",strokeLinecap:"round"}),h.jsx("ellipse",{"data-loc":"client/src/components/EngineCrossSection.tsx:1275",cx:"375",cy:"143",rx:"12",ry:"4",fill:"oklch(0.45 0.01 285)"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1276",x1:"415",y1:"48",x2:"415",y2:"140",stroke:"oklch(0.50 0.01 285)",strokeWidth:"4",strokeLinecap:"round"}),h.jsx("ellipse",{"data-loc":"client/src/components/EngineCrossSection.tsx:1277",cx:"415",cy:"143",rx:"12",ry:"4",fill:"oklch(0.45 0.01 285)"}),[0,1,2,3].map(ue=>h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1279",x1:"368",y1:55+ue*8,x2:"382",y2:59+ue*8,stroke:"oklch(0.35 0.008 285)",strokeWidth:"1.5"},`rvs1-${ue}`)),[0,1,2,3].map(ue=>h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1282",x1:"408",y1:55+ue*8,x2:"422",y2:59+ue*8,stroke:"oklch(0.35 0.008 285)",strokeWidth:"1.5"},`rvs2-${ue}`)),h.jsx("rect",{"data-loc":"client/src/components/EngineCrossSection.tsx:1286",x:"160",y:"420",width:"280",height:"60",rx:"6",fill:"oklch(0.14 0.005 285)",stroke:"oklch(1 0 0 / 0.15)",strokeWidth:"1.5"}),h.jsx("text",{"data-loc":"client/src/components/EngineCrossSection.tsx:1287",x:"300",y:"455",textAnchor:"middle",fontSize:"9",fill:"oklch(0.4 0.008 285)",style:{fontFamily:"'JetBrains Mono', monospace"},children:"OIL PAN"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1292",x1:"214",y1:"490",x2:"262",y2:"490",stroke:"oklch(0.35 0.008 285)",strokeWidth:"0.8"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1293",x1:"214",y1:"485",x2:"214",y2:"495",stroke:"oklch(0.35 0.008 285)",strokeWidth:"0.8"}),h.jsx("line",{"data-loc":"client/src/components/EngineCrossSection.tsx:1294",x1:"262",y1:"485",x2:"262",y2:"495",stroke:"oklch(0.35 0.008 285)",strokeWidth:"0.8"}),h.jsx("text",{"data-loc":"client/src/components/EngineCrossSection.tsx:1295",x:"238",y:"505",textAnchor:"middle",fontSize:"8",fill:"oklch(0.45 0.01 285)",style:{fontFamily:"'JetBrains Mono', monospace"},children:'4.125"'}),Lte.map(ue=>{const Ae=he[ue.specId],Ie=s===ue.specId,We=Ae&&!Ae.ok,st=We?"oklch(0.65 0.22 30)":"oklch(0.7 0.18 140)",mt="var(--orange)",_t={onClick:()=>Z(ue.specId),style:{cursor:"pointer"},fill:Ie?"oklch(0.65 0.22 30 / 0.25)":"transparent",stroke:Ie?mt:We?st:"oklch(0.7 0.18 140 / 0.5)",strokeWidth:Ie?2:1.5,strokeDasharray:Ie?"none":"4 3",filter:Ie?"url(#orange-glow)":void 0};return h.jsxs("g",{"data-loc":"client/src/components/EngineCrossSection.tsx:1318",children:[ue.type==="ellipse"&&h.jsx("ellipse",{"data-loc":"client/src/components/EngineCrossSection.tsx:1320",c
569x:ue.cx,cy:ue.cy,rx:(ue.rx??20)+6,ry:(ue.ry??10)+6,..._t}),ue.type==="rect"&&h.jsx("rect",{"data-loc":"client/src/components/EngineCrossSection.tsx:1323",x:ue.x,y:ue.y,width:ue.width,height:ue.height,rx:4,..._t}),ue.type==="path"&&h.jsx("path",{"data-loc":"client/src/components/EngineCrossSection.tsx:1326",d:ue.d,..._t}),h.jsx("circle",{"data-loc":"client/src/components/EngineCrossSection.tsx:1328",cx:ue.lx,cy:ue.ly,r:Ie?5:3.5,fill:Ie?mt:We?st:"oklch(0.7 0.18 140)",style:{cursor:"pointer",transition:"r 0.15s"},onClick:()=>Z(ue.specId)}),We&&!Ie&&h.jsxs("circle",{"data-loc":"client/src/components/EngineCrossSection.tsx:1336",cx:ue.lx,cy:ue.ly,r:8,fill:"none",stroke:st,strokeWidth:"1",opacity:"0.5",children:[h.jsx("animate",{"data-loc":"client/src/components/EngineCrossSection.tsx:1337",attributeName:"r",values:"5;12;5",dur:"2s",repeatCount:"indefinite"}),h.jsx("animate",{"data-loc":"client/src/components/EngineCrossSection.tsx:1338",attributeName:"opacity",values:"0.5;0;0.5",dur:"2s",repeatCount:"indefinite"})]})]},ue.specId)}),[{x:300,y:32,label:"CYLINDER HEADS"},{x:238,y:152,label:"BORE L"},{x:362,y:152,label:"BORE R"},{x:300,y:415,label:"CRANKSHAFT"}].map(ue=>h.jsx("text",{"data-loc":"client/src/components/EngineCrossSection.tsx:1352",x:ue.x,y:ue.y,textAnchor:"middle",fontSize:"7.5",fill:"oklch(0.38 0.008 285)",style:{fontFamily:"'JetBrains Mono', monospace"},children:ue.label},ue.label))]}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1360",className:"flex items-center gap-5 px-4 py-2.5 border-t text-xs",style:{borderColor:"oklch(1 0 0 / 0.08)"},children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1361",className:"flex items-center gap-1.5",children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1362",className:"w-3 h-3 rounded-full",style:{background:"oklch(0.7 0.18 140)"}}),h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1363",className:"text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:"IN SPEC"})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1365",className:"flex items-center gap-1.5",children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1366",className:"w-3 h-3 rounded-full",style:{background:"oklch(0.65 0.22 30)"}}),h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1367",className:"text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:"OUT OF SPEC"})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1369",className:"flex items-center gap-1.5",children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1370",className:"w-3 h-3 rounded-full border-2 border-dashed",style:{borderColor:"oklch(0.7 0.18 140 / 0.5)"}}),h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1371",className:"text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:"CLICK TO INSPECT"})]})]})]})}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1378",className:"lg:col-span-2 space-y-4",children:[h.jsx(Ba,{"data-loc":"client/src/components/EngineCrossSection.tsx:1379",mode:"wait",children:be?h.jsxs(Je.div,{"data-loc":"client/src/components/EngineCrossSection.tsx:1381",initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.2},className:"rounded-xl border overflow-hidden",style:{borderColor:be.ok?"oklch(0.7 0.18 140 / 0.4)":"oklch(0.65 0.22 30 / 0.6)",background:"oklch(0.12 0.004 285)"},children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1394",className:"flex items-center justify-between px-4 py-3 border-b",style:{borderColor:be.ok?"oklch(0.7 0.18 140 / 0.2)":"oklch(0.65 0.22 30 / 0.3)",background:be.ok?"oklch(0.7 0.18 140 / 0.06)":"oklch(0.65 0.22 30 / 0.1)"},children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1401",className:"flex items-center gap-2",children:[h.jsx(Ba,{"data-loc":"client/src/components/EngineCrossSection.tsx:1402",mode:"wait",children:h.jsx(Je.div,{"data-loc":"client/src/components/EngineCrossSection.tsx:1403",initial:{scale:.7,opacity:0}
569,animate:{scale:1,opacity:1},exit:{scale:.7,opacity:0},transition:{duration:.15},children:be.ok?h.jsx(La,{"data-loc":"client/src/components/EngineCrossSection.tsx:1411",className:"w-4 h-4",style:{color:"oklch(0.7 0.18 140)"}}):h.jsx(qi,{"data-loc":"client/src/components/EngineCrossSection.tsx:1412",className:"w-4 h-4",style:{color:"oklch(0.65 0.22 30)"}})},be.ok?"pass":"fail")}),h.jsx(Ba,{"data-loc":"client/src/components/EngineCrossSection.tsx:1416",mode:"wait",children:h.jsx(Je.span,{"data-loc":"client/src/components/EngineCrossSection.tsx:1417",initial:{opacity:0,x:-4},animate:{opacity:1,x:0},exit:{opacity:0,x:4},transition:{duration:.15},className:"text-xs font-medium",style:{fontFamily:"'JetBrains Mono', monospace",color:be.ok?"oklch(0.7 0.18 140)":"oklch(0.65 0.22 30)"},children:be.ok?"IN SPEC":"â OUT OF SPEC"},be.ok?"in-spec":"out-spec")})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1433",className:"flex items-center gap-2",children:[h.jsx("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:1434",onClick:()=>K(be.id),title:"Reset to original value",className:"text-muted-foreground hover:text-foreground transition-colors p-1 rounded hover:bg-white/5",children:h.jsx(eO,{"data-loc":"client/src/components/EngineCrossSection.tsx:1439",className:"w-3.5 h-3.5"})}),h.jsx("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:1441",onClick:()=>i(null),className:"text-muted-foreground hover:text-foreground transition-colors",children:h.jsx(Sp,{"data-loc":"client/src/components/EngineCrossSection.tsx:1445",className:"w-4 h-4"})})]})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1450",className:"p-4 space-y-4",children:[h.jsx("h3",{"data-loc":"client/src/components/EngineCrossSection.tsx:1452",className:"text-2xl font-bold uppercase text-foreground leading-tight",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:be.label}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1460",className:"grid grid-cols-2 gap-3",children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1462",className:"p-3 rounded-lg",style:{background:"oklch(0.09 0.003 285)"},children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1463",className:"flex items-center justify-between mb-1",children:[h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1464",className:"text-xs text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:"MEASURED"}),o!==be.id&&h.jsxs("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:1468",onClick:()=>ne(be),className:"flex items-center gap-1 text-xs transition-colors",style:{color:"var(--orange)",fontFamily:"'JetBrains Mono', monospace"},title:"Edit measured value",children:[h.jsx(C3,{"data-loc":"client/src/components/EngineCrossSection.tsx:1474",className:"w-2.5 h-2.5"}),"EDIT"]})]}),o===be.id?h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1482",className:"space-y-1.5",children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1483",className:"flex items-center gap-1.5",children:[h.jsx("input",{"data-loc":"client/src/components/EngineCrossSection.tsx:1484",ref:q,type:"text",inputMode:"decimal",value:d,onChange:ue=>{f(ue.target.value),b("")},onKeyDown:ue=>{ue.key==="Enter"&&B(be.id),ue.key==="Escape"&&O()},className:"w-full rounded px-2 py-1 text-lg font-bold border focus:outline-none",style:{fontFamily:"'JetBrains Mono', monospace",background:"oklch(0.14 0.004 285)",borderColor:m?"oklch(0.65 0.22 30)":"var(--orange)",color:"var(--orange)",boxShadow:`0 0 0 1px ${m?"oklch(0.65 0.22 30 / 0.3)":"oklch(0.65 0.22 30 / 0.2)"}`}}),h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1506",className:"text-sm text-muted-foreground flex-shrink-0",children:be.unit})]}),m&&h.jsx("p",{"data-loc":"client/src/components/EngineCrossSection.tsx:1509",className:"text-xs",style:{color:"oklch(0.65 0.22 30)",fontFamily:"'JetBrains Mono', monospace"},children:m}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1513",className:"flex gap-1.5",children:[h.jsx("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:1514",onClick:()=>B(be.id),className:"flex-1 py-1 rounded text-xs font-medium transition-all active:scale-95",style:{background:"var(--orange)",color:"white",fontFamily:"'JetBrains Mono', monospace"},children:"APPLY"}),h.jsx("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:1521",onClick:O,className:"flex-1 py-1 rounded text-xs font-medium border transition-all hover:bg-white/5",style:{borderColor:"oklch(1 0 0 / 0.1)",color:"var(--muted-foreground)",fontFamily:"'JetBrains Mono', monospace"},children:"CANCEL"})]})]}):h.jsxs("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:1532",onClick:()=>ne(be),className:"w-full text-left group",title:"Click to edit",children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1537",className:"flex items-baseline gap-0.5",children:[h.jsx(Ba,{"data-loc":"client/src/components/EngineCrossSection.tsx:1538",mode:"wait",children:h.jsx(Je.span,{"data-loc":"client/src/components/EngineCrossSection.tsx:1539",initial:{opacity:0,y:-6}
569,animate:{opacity:1,y:0},exit:{opacity:0,y:6},transition:{duration:.18},className:"text-3xl font-bold",style:{fontFamily:"'JetBrains Mono', monospace",color:be.ok?"var(--orange)":"oklch(0.65 0.22 30)"},children:be.measured},be.measured)}),h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1554",className:"text-sm text-muted-foreground",children:be.unit})]}),h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1556",className:"text-xs mt-0.5 opacity-0 group-hover:opacity-100 transition-opacity",style:{color:"var(--orange)",fontFamily:"'JetBrains Mono', monospace"},children:"CLICK TO EDIT"})]})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1567",className:"p-3 rounded-lg",style:{background:"oklch(0.09 0.003 285)"},children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1568",className:"text-xs text-muted-foreground mb-1",style:{fontFamily:"'JetBrains Mono', monospace"},children:"TARGET"}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1571",className:"text-sm font-medium text-foreground mt-1",style:{fontFamily:"'JetBrains Mono', monospace"},children:[be.target,be.unit]})]})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1578",children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1579",className:"flex justify-between text-xs text-muted-foreground mb-1.5",children:[h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1580",style:{fontFamily:"'JetBrains Mono', monospace"},children:"CLEARANCE STATUS"}),h.jsx(Ba,{"data-loc":"client/src/components/EngineCrossSection.tsx:1581",mode:"wait",children:h.jsx(Je.span,{"data-loc":"client/src/components/EngineCrossSection.tsx:1582",initial:{opacity:0}
569,animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},style:{fontFamily:"'JetBrains Mono', monospace",color:be.ok?"oklch(0.7 0.18 140)":"oklch(0.65 0.22 30)"},children:be.ok?"PASS":"FAIL"},be.ok?"pass":"fail")})]}),h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1597",className:"h-2 rounded-full bg-secondary overflow-hidden",children:h.jsx(Je.div,{"data-loc":"client/src/components/EngineCrossSection.tsx:1598",animate:{width:`${Mte(be.measured,be)}%`},transition:{duration:.4,ease:[.23,1,.32,1]},className:"h-full rounded-full",style:{background:be.ok?"linear-gradient(90deg, oklch(0.7 0.18 140), oklch(0.65 0.22 180))":"linear-gradient(90deg, oklch(0.65 0.22 30), oklch(0.7 0.22 20))"}})}),be.minVal!==void 0&&be.maxVal!==void 0&&h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1611",className:"flex justify-between text-xs mt-1",style:{color:"oklch(0.38 0.008 285)",fontFamily:"'JetBrains Mono', monospace"},children:[h.jsxs("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1612",children:[be.minVal,be.unit]}),h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1613",className:"text-center text-muted-foreground",children:"TARGET RANGE"}),h.jsxs("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1614",children:[be.maxVal,be.unit]})]})]}),h.jsx("p",{"data-loc":"client/src/components/EngineCrossSection.tsx:1620",className:"text-xs text-muted-foreground leading-relaxed",children:be.description}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1625",children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1626",className:"text-xs text-muted-foreground uppercase tracking-wider mb-2",style:{fontFamily:"'JetBrains Mono', monospace"},children:"MEASUREMENT NOTES"}),h.jsx("ul",{"data-loc":"client/src/components/EngineCrossSection.tsx:1629",className:"space-y-2",children:be.tips.map((ue,Ae)=>h.jsxs("li",{"data-loc":"client/src/components/EngineCrossSection.tsx:1631",className:"flex items-start gap-2 text-xs text-muted-foreground",children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1632",className:"w-1 h-1 rounded-full mt-1.5 flex-shrink-0",style:{background:be.ok?"oklch(0.7 0.18 140)":"oklch(0.65 0.22 30)"}}),ue]},Ae))})]})]})]},be.id):h.jsxs(Je.div,{"data-loc":"client/src/components/EngineCrossSection.tsx:1644",initial:{opacity:0}
569,animate:{opacity:1},exit:{opacity:0},className:"rounded-xl border p-6 flex flex-col items-center justify-center text-center",style:{borderColor:"oklch(1 0 0 / 0.08)",background:"oklch(0.12 0.004 285)",minHeight:"260px"},children:[h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1652",className:"w-12 h-12 rounded-full flex items-center justify-center mb-4",style:{background:"var(--orange-dim)"},children:h.jsx(ZR,{"data-loc":"client/src/components/EngineCrossSection.tsx:1653",className:"w-6 h-6",style:{color:"var(--orange)"}})}),h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1655",className:"text-sm font-medium text-foreground mb-2",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.1rem"},children:"SELECT A COMPONENT"}),h.jsx("p",{"data-loc":"client/src/components/EngineCrossSection.tsx:1658",className:"text-xs text-muted-foreground max-w-[200px]",children:"Click any highlighted region on the engine diagram to inspect and edit its clearance specification."})]},"empty")}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1666",className:"rounded-xl border overflow-hidden",style:{borderColor:"oklch(1 0 0 / 0.08)",background:"oklch(0.12 0.004 285)"},children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1667",className:"flex items-center justify-between px-4 py-2.5 border-b",style:{borderColor:"oklch(1 0 0 / 0.08)"},children:[h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1668",className:"text-xs text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:"ALL CLEARANCES"}),h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1671",className:"flex items-center gap-3 text-xs",style:{fontFamily:"'JetBrains Mono', monospace"},children:[h.jsxs("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1672",style:{color:"oklch(0.7 0.18 140)"},children:[we,"/",r.length," PASS"]}),Ee>0&&h.jsxs("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1673",style:{color:"oklch(0.65 0.22 30)"},children:[Ee," FAIL"]})]})]}),h.jsx("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1676",className:"divide-y",style:{borderColor:"oklch(1 0 0 / 0.06)"},children:r.map(ue=>h.jsxs("button",{"data-loc":"client/src/components/EngineCrossSection.tsx:1678",onClick:()=>Z(ue.id),className:"w-full flex items-center justify-between px-4 py-2.5 text-left transition-colors hover:bg-white/5",style:s===ue.id?{background:"oklch(1 0 0 / 0.04)"}:{},children:[h.jsxs("div",{"data-loc":"client/src/components/EngineCrossSection.tsx:1684",className:"flex items-center gap-2.5",children:[h.jsx(Ba,{"data-loc":"client/src/components/EngineCrossSection.tsx:1685",mode:"wait",children:h.jsx(Je.div,{"data-loc":"client/src/components/EngineCrossSection.tsx:1686",initial:{scale:.5},animate:{scale:1},transition:{duration:.15},className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:ue.ok?"oklch(0.7 0.18 140)":"oklch(0.65 0.22 30)"}},ue.ok?"ok":"fail")}),h.jsx("span",{"data-loc":"client/src/components/EngineCrossSection.tsx:1695",className:"text-xs text-muted-foreground",children:ue.label})]}),h.jsx(Ba,{"data-loc":"client/src/components/EngineCrossSection.tsx:1697",mode:"wait",children:h.jsxs(Je.span,{"data-loc":"client/src/components/EngineCrossSection.tsx:1698",initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.15},className:"text-xs font-medium",style:{fontFamily:"'JetBrains Mono', monospace",color:ue.ok?"var(--orange)":"oklch(0.65 0.22 30)"},children:[ue.measured,ue.unit]},ue.measured)})]},ue.id))})]})]})]})}const vT=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,wT=tw,Dte=(e,t)=>n=>{var r;if(t?.variants==null)return wT(e,n?.class,n?.className);const{variants:a,defaultVariants:s}=t,i=Object.keys(a).map(d=>{const f=n?.[d],m=s?.[d];if(f===null)return null;const b=vT(f)||vT(m);return a[d][b]}),o=n&&Object.entries(n).reduce((d,f)=>{let[m,b]=f;return b===void 0||(d[m]=b),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:m,className:b,...g}=f;return Object.entries(g).every(v=>{let[E,T]=v;return Array.isArray(T)?T.includes({...s,...o}[E]):{...s,...o}[E]===T})?[...d,m,b]:d},[]);return wT(e,i,c,n?.class,n?.className)},Ite=Dte("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Bte({className:e,variant:t,size:n,asChild:r=!1,...a}){const s=r?tV:"button";return h.jsx(s,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:Ac(Ite({variant:t,size:n,className:e})),...a}
569)}const Fte=G.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),zte=()=>G.useContext(Fte);function k2(e){const t=G.useRef(e);t.current=e;const n=G.useRef(null);return n.current||(n.current=function(...r){return t.current.apply(this,r)}),n.current}function Hte(e={}){const{onKeyDown:t,onCompositionStart:n,onCompositionEnd:r}=e,a=G.useRef(!1),s=G.useRef(null),i=G.useRef(null),o=k2(m=>{s.current&&(clearTimeout(s.current),s.current=null),i.current&&(clearTimeout(i.current),i.current=null),a.current=!0,n?.(m)}),c=k2(m=>{s.current=setTimeout(()=>{i.current=setTimeout(()=>{a.current=!1})}),r?.(m)}),d=k2(m=>{if(a.current&&(m.key==="Escape"||m.key==="Enter"&&!m.shiftKey)){m.stopPropagation();return}t?.(m)}),f=k2(()=>a.current);return{onCompositionStart:o,onCompositionEnd:c,onKeyDown:d,isComposing:f}}function Ute({className:e,onKeyDown:t,onCompositionStart:n,onCompositionEnd:r,...a}){const s=zte(),{onCompositionStart:i,onCompositionEnd:o,onKeyDown:c}=Hte({onKeyDown:d=>{const f=d.nativeEvent.isComposing||s.justEndedComposing();d.key==="Enter"&&!d.shiftKey&&f||t?.(d)},onCompositionStart:d=>{s.setComposing(!0),n?.(d)},onCompositionEnd:d=>{s.markCompositionEnd(),setTimeout(()=>{s.setComposing(!1)},100),r?.(d)}});return h.jsx("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:Ac("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),onCompositionStart:i,onCompositionEnd:o,onKeyDown:c,...a})}var qte=G.createContext(void 0);function Vte(e){const t=G.useContext(qte);return e||t||"ltr"}function Gte(e,[t,n]){return Math.min(n,Math.max(t,e))}function $te(e,t){return G.useReducer((n,r)=>t[n][r]??n,e)}var Yw="ScrollArea",[nP]=$6(Yw),[Wte,Jo]=nP(Yw),rP=G.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:a,scrollHideDelay:s=600,...i}=e,[o,c]=G.useState(null),[d,f]=G.useState(null),[m,b]=G.useState(null),[g,v]=G.useState(null),[E,T]=G.useState(null),[_,A]=G.useState(0),[R,P]=G.useState(0),[V,U]=G.useState(!1),[D,H]=G.useState(!1),q=ko(t,z=>c(z)),W=Vte(a);return h.jsx(Wte,{scope:n,type:r,dir:W,scrollHideDelay:s,scrollArea:o,viewport:d,onViewportChange:f,content:m,onContentChange:b,scrollbarX:g,onScrollbarXChange:v,scrollbarXEnabled:V,onScrollbarXEnabledChange:U,scrollbarY:E,onScrollbarYChange:T,scrollbarYEnabled:D,onScrollbarYEnabledChange:H,onCornerWidthChange:A,onCornerHeightChange:P,children:h.jsx(Ko.div,{dir:W,...i,ref:q,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":R+"px",...e.style}})})});rP.displayName=Yw;var aP="ScrollAreaViewport",sP=G.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:a,...s}=e,i=Jo(aP,n),o=G.useRef(null),c=ko(t,o,i.onViewportChange);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),h.jsx(Ko.div,{"data-radix-scroll-area-viewport":"",...s,ref:c,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:h.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});sP.displayName=aP;var Dc="ScrollAreaScrollbar",iP=G.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=Jo(Dc,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=a,o=e.orientation==="horizontal";return G.useEffect(()=>(o?s(!0):i(!0),()=>{o?s(!1):i(!1)}),[o,s,i]),a.type==="hover"?h.jsx(Yte,{...r,ref:t,forceMount:n}):a.type==="scroll"?h.jsx(Qte,{...r,ref:t,forceMount:n}):a.type==="auto"?h.jsx(oP,{...r,ref:t,forceMount:n}):a.type==="always"?h.jsx(Qw,{...r,ref:t}):null});iP.displayName=Dc;var Yte=G.forwardRef((e,t)=>
vendor: 10,415 bytes, line 569
569{const{forceMount:n,...r}=e,a=Jo(Dc,e.__scopeScrollArea),[s,i]=G.useState(!1);return G.useEffect(()=>{const o=a.scrollArea;let c=0;if(o){const d=()=>{window.clearTimeout(c),i(!0)},f=()=>{c=window.setTimeout(()=>i(!1),a.scrollHideDelay)};return o.addEventListener("pointerenter",d),o.addEventListener("pointerleave",f),()=>{window.clearTimeout(c),o.removeEventListener("pointerenter",d),o.removeEventListener("pointerleave",f)}}},[a.scrollArea,a.scrollHideDelay]),h.jsx(mp,{present:n||s,children:h.jsx(oP,{"data-state":s?"visible":"hidden",...r,ref:t})})}),Qte=G.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=Jo(Dc,e.__scopeScrollArea),s=e.orientation==="horizontal",i=q5(()=>c("SCROLL_END"),100),[o,c]=$te("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return G.useEffect(()=>{if(o==="idle"){const d=window.setTimeout(()=>c("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(d)}},[o,a.scrollHideDelay,c]),G.useEffect(()=>{const d=a.viewport,f=s?"scrollLeft":"scrollTop";if(d){let m=d[f];const b=()=>{const g=d[f];m!==g&&(c("SCROLL"),i()),m=g};return d.addEventListener("scroll",b),()=>d.removeEventListener("scroll",b)}},[a.viewport,s,c,i]),h.jsx(mp,{present:n||o!=="hidden",children:h.jsx(Qw,{"data-state":o==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:Qs(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:Qs(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),oP=G.forwardRef((e,t)=>{const n=Jo(Dc,e.__scopeScrollArea),{forceMount:r,...a}=e,[s,i]=G.useState(!1),o=e.orientation==="horizontal",c=q5(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;i(o?d:f)}},10);return op(n.viewport,c),op(n.content,c),h.jsx(mp,{present:r||s,children:h.jsx(Qw,{"data-state":s?"visible":"hidden",...a,ref:t})})}),Qw=G.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,a=Jo(Dc,e.__scopeScrollArea),s=G.useRef(null),i=G.useRef(0),[o,c]=G.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=hP(o.viewport,o.content),f={...r,sizes:o,onSizesChange:c,hasThumb:d>0&&d<1,onThumbChange:b=>s.current=b,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:b=>i.current=b};function m(b,g){return tne(b,i.current,o,g)}return n==="horizontal"?h.jsx(Xte,{...f,ref:t,onThumbPositionChange:()=>{if(a.viewport&&s.current){const b=a.viewport.scrollLeft,g=ST(b,o,a.dir);s.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:b=>{a.viewport&&(a.viewport.scrollLeft=b)},onDragScroll:b=>{a.viewport&&(a.viewport.scrollLeft=m(b,a.dir))}}):n==="vertical"?h.jsx(Kte,{...f,ref:t,onThumbPositionChange:()=>{if(a.viewport&&s.current){const b=a.viewport.scrollTop,g=ST(b,o);s.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:b=>{a.viewport&&(a.viewport.scrollTop=b)},onDragScroll:b=>{a.viewport&&(a.viewport.scrollTop=m(b))}}):null}),Xte=G.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,s=Jo(Dc,e.__scopeScrollArea),[i,o]=G.useState(),c=G.useRef(null),d=ko(t,c,s.onScrollbarXChange);return G.useEffect(()=>{c.current&&o(getComputedStyle(c.current))},[c]),h.jsx(cP,{"data-orientation":"horizontal",...a,ref:d,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":U5(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,m)=>{if(s.viewport){const b=s.viewport.scrollLeft+f.deltaX;e.onWheelScroll(b),pP(b,m)&&f.preventDefault()}},onResize:()=>{c.current&&s.viewport&&i&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Hx(i.paddingLeft),paddingEnd:Hx(i.paddingRight)}})}})}),Kte=G.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,s=Jo(Dc,e.__scopeScrollArea),[i,o]=G.useState(),c=G.useRef(null),d=ko(t,c,s.onScrollbarYChange);return G.useEffect(()=>{c.current&&o(getComputedStyle(c.current))},[c]),h.jsx(cP,{"data-orientation":"vertical",...a,ref:d,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":U5(n)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,m)=>{if(s.viewport){const b=s.viewport.scrollTop+f.deltaY;e.onWheelScroll(b),pP(b,m)&&f.preventDefault()}},onResize:()=>{c.current&&s.viewport&&i&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Hx(i.paddingTop),paddingEnd:Hx(i.paddingBottom)}})}})}),[Jte,lP]=nP(Dc),cP=G.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:a,onThumbChange:s,onThumbPointerUp:i,onThumbPointerDown:o,onThumbPositionChange:c,onDragScroll:d,onWheelScroll:f,onResize:m,...b}=e,g=Jo(Dc,n),[v,E]=G.useState(null),T=ko(t,q=>E(q)),_=G.useRef(null),A=G.useRef(""),R=g.viewport,P=r.content-r.viewport,V=Tl(f),U=Tl(c),D=q5(m,10);function H(q){if(_.current){const W=q.clientX-_.current.left,z=q.clientY-_.current.top;d({x:W,y:z})}}return G.useEffect(()=>{const q=W=>{const z=W.target;v?.contains(z)&&V(W,P)};return document.addEventListener("wheel",q,{passive:!1}),()=>document.removeEventListener("wheel",q,{passive:!1})},[R,v,P,V]),G.useEffect(U,[r,U]),op(v,D),op(g.content,D),h.jsx(Jte,{scope:n,scrollbar:v,hasThumb:a,onThumbChange:Tl(s),onThumbPointerUp:Tl(i),onThumbPositionChange:U,onThumbPointerDown:Tl(o),children:h.jsx(Ko.div,{...b,ref:T,style:{position:"absolute",...b.style},onPointerDown:Qs(e.onPointerDown,q=>{q.button===0&&(q.target.setPointerCapture(q.pointerId),_.current=v.getBoundingClientRect(),A.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),H(q))}),onPointerMove:Qs(e.onPointerMove,H),onPointerUp:Qs(e.onPointerUp,q=>{const W=q.target;W.hasPointerCapture(q.pointerId)&&W.releasePointerCapture(q.pointerId),document.body.style.webkitUserSelect=A.current,g.viewport&&(g.viewport.style.scrollBehavior=""),_.current=null})})})}),zx="ScrollAreaThumb",uP=G.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=lP(zx,e.__scopeScrollArea);return h.jsx(mp,{present:n||a.hasThumb,children:h.jsx(Zte,{ref:t,...r})})}),Zte=G.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...a}=e,s=Jo(zx,n),i=lP(zx,n),{onThumbPositionChange:o}=i,c=ko(t,m=>i.onThumbChange(m)),d=G.useRef(void 0),f=q5(()=>{d.current&&(d.current(),d.current=void 0)},100);return G.useEffect(()=>{const m=s.viewport;if(m){const b=()=>{if(f(),!d.current){const g=nne(m,o);d.current=g,o()}};return o(),m.addEventListener("scroll",b),()=>m.removeEventListener("scroll",b)}},[s.viewport,f,o]),h.jsx(Ko.div,{"data-state":i.hasThumb?"visible":"hidden",...a,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Qs(e.onPointerDownCapture,m=>{const g=m.target.getBoundingClientRect(),v=m.clientX-g.left,E=m.clientY-g.top;i.onThumbPointerDown({x:v,y:E})}),onPointerUp:Qs(e.onPointerUp,i.onThumbPointerUp)})});uP.displayName=zx;var Xw="ScrollAreaCorner",dP=G.forwardRef((e,t)=>{const n=Jo(Xw,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?h.jsx(ene,{...e,ref:t}):null});dP.displayName=Xw;var ene=G.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,a=Jo(Xw,n),[s,i]=G.useState(0),[o,c]=G.useState(0),d=!!(s&&o);return op(a.scrollbarX,()=>{const f=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(f),c(f)}),op(a.scrollbarY,()=>{const f=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(f),i(f)}),d?h.jsx(Ko.div,{...r,ref:t,style:{width:s,height:o,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Hx(e){return e?parseInt(e,10):0}function hP(e,t){const n=e/t;return isNaN(n)?0:n}function U5(e){const t=hP(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function tne(e,t,n,r="ltr"){const a=U5(n),s=a/2,i=t||s,o=a-i,c=n.scrollbar.paddingStart+i,d=n.scrollbar.size-n.scrollbar.paddingEnd-o,f=n.content-n.viewport,m=r==="ltr"?[0,f]:[f*-1,0];return fP([c,d],m)(e)}function ST(e,t,n="ltr"){const r=U5(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-a,i=t.content-t.viewport,o=s-r,c=n==="ltr"?[0,i]:[i*-1,0],d=Gte(e,c);return fP([0,i],[0,o])(d)}function fP(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function pP(e,t){return e>0&&e<t}var nne=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function a(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,o=n.top!==s.top;(i||o)&&t(),n=s,r=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(r)};function q5(e,t){const n=Tl(e),r=G.useRef(0);return G.useEffect(()=>()=>window.clearTimeout(r.current),[]),G.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function op(e,t){const n=Tl(t);np(()=>{let r=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(r),a.unobserve(e)}}},[e,n])}var rne=rP,ane=sP,sne=dP;function ine({className:e,children:t,...n}){return h.jsxs(rne,{"data-loc":"client/src/components/ui/scroll-area.tsx:12","data-slot":"scroll-area",className:Ac("relative",e),...n,children:[h.jsx(ane,{"data-loc":"client/src/components/ui/scroll-area.tsx:17","data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),h.jsx(one,{"data-loc":"client/src/components/ui/scroll-area.tsx:23"}),h.jsx(sne,{"data-loc":"client/src/components/ui/scroll-area.tsx:24"})]})}function one({className:e,orientation:t="vertical",...n}){return h.jsx(iP,{"data-loc":"client/src/components/ui/scroll-area.tsx:35","data-slot":"scroll-area-scrollbar",orientation:t,className:Ac("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t
vendor: 4,820 bytes, line 569
569==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:h.jsx(uP,{"data-loc":"client/src/components/ui/scroll-area.tsx:48","data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function ET(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const i=n.slice(a,r).trim();(i||!s)&&t.push(i),a=r+1,r=n.indexOf(",",a)}return t}function Kw(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const lne=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cne=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,une={};function kT(e,t){return(une.jsx?cne:lne).test(e)}const dne=/[ \t\n\f\r]/g;function V5(e){return typeof e=="object"?e.type==="text"?_T(e.value):!1:_T(e)}function _T(e){return e.replace(dne,"")===""}let X1=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};X1.prototype.normal={};X1.prototype.property={};X1.prototype.space=void 0;function mP(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new X1(n,r,t)}function A1(e){return e.toLowerCase()}let Gi=class{constructor(t,n){this.attribute=n,this.property=t}};Gi.prototype.attribute="";Gi.prototype.booleanish=!1;Gi.prototype.boolean=!1;Gi.prototype.commaOrSpaceSeparated=!1;Gi.prototype.commaSeparated=!1;Gi.prototype.defined=!1;Gi.prototype.mustUseProperty=!1;Gi.prototype.number=!1;Gi.prototype.overloadedBoolean=!1;Gi.prototype.property="";Gi.prototype.spaceSeparated=!1;Gi.prototype.space=void 0;let hne=0;const On=_h(),Ya=_h(),U3=_h(),gt=_h(),qr=_h(),Xf=_h(),po=_h();function _h(){return 2**++hne}const q3=Object.freeze(Object.defineProperty({__proto__:null,boolean:On,booleanish:Ya,commaOrSpaceSeparated:po,commaSeparated:Xf,number:gt,overloadedBoolean:U3,spaceSeparated:qr},Symbol.toStringTag,{value:"Module"})),O4=Object.keys(q3);let Jw=class extends Gi{constructor(t,n,r,a){let s=-1;if(super(t,n),TT(this,"space",a),typeof r=="number")for(;++s<O4.length;){const i=O4[s];TT(this,O4[s],(r&q3[i])===q3[i])}}};Jw.prototype.defined=!0;function TT(e,t,n){n&&(e[t]=n)}function Tp(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const s=new Jw(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[A1(r)]=r,n[A1(s.attribute)]=r}return new X1(t,n,e.space)}const gP=Tp({properties:{ariaActiveDescendant:null,ariaAtomic:Ya,ariaAutoComplete:null,ariaBusy:Ya,ariaChecked:Ya,ariaColCount:gt,ariaColIndex:gt,ariaColSpan:gt,ariaControls:qr,ariaCurrent:null,ariaDescribedBy:qr,ariaDetails:null,ariaDisabled:Ya,ariaDropEffect:qr,ariaErrorMessage:null,ariaExpanded:Ya,ariaFlowTo:qr,ariaGrabbed:Ya,ariaHasPopup:null,ariaHidden:Ya,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qr,ariaLevel:gt,ariaLive:null,ariaModal:Ya,ariaMultiLine:Ya,ariaMultiSelectable:Ya,ariaOrientation:null,ariaOwns:qr,ariaPlaceholder:null,ariaPosInSet:gt,ariaPressed:Ya,ariaReadOnly:Ya,ariaRelevant:null,ariaRequired:Ya,ariaRoleDescription:qr,ariaRowCount:gt,ariaRowIndex:gt,ariaRowSpan:gt,ariaSelected:Ya,ariaSetSize:gt,ariaSort:null,ariaValueMax:gt,ariaValueMin:gt,ariaValueNow:gt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function xP(e,t){return t in e?e[t]:t}function bP(e,t){return xP(e,t.toLowerCase())}const fne=Tp({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xf,acceptCharset:qr,accessKey:qr,action:null,allow:null,allowFullScreen:On,allowPaymentRequest:On,allowUserMedia:On,alt:null,as:null,async:On,autoCapitalize:null,autoComplete:qr,autoFocus:On,autoPlay:On,blocking:qr,capture:null,charSet:null,checked:On,cite:null,className:qr,cols:gt,colSpan:null,content:null,contentEditable:Ya,controls:On,controlsList:qr,coords:gt|Xf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:On,defer:On,dir:null,dirName:null,disabled:On,download:U3,draggable:Ya,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:On,formTarget:null,headers:qr,height:gt,hidden:U3,high:gt,href:null,hrefLang:null,htmlFor:qr,httpEquiv:qr,id:null,imageSizes:null,imageSrcSet:null,inert:On,inputMode:null,integrity:null,is:null,isMap:On,itemId:null,itemProp:qr,itemRef:qr,itemScope:On,itemType:qr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:On,low:gt,manifest:null,max:null,maxLength:gt,media:null,method:null,min:null,minLength:gt,multiple:On,muted:On,name:null,nonce:null,noModule:On,noValidate:On,onAbort:null,onAfterPrint:null,onAuxCl
569ick: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:On,optimum:gt,pattern:null,ping:qr,placeholder:null,playsInline:On,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:On,referrerPolicy:null,rel:qr,required:On,reversed:On,rows:gt,rowSpan:gt,sandbox:qr,scope:null,scoped:On,seamless:On,selected:On,shadowRootClonable:On,shadowRootDelegatesFocus:On,shadowRootMode:null,shape:null,size:gt,sizes:null,slot:null,span:gt,spellCheck:Ya,src:null,srcDoc:null,srcLang:null,srcSet:null,start:gt,step:null,style:null,tabIndex:gt,target:null,title:null,translate:null,type:null,typeMustMatch:On,useMap:null,value:Ya,width:gt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:qr,axis:null,background:null,bgColor:null,border:gt,borderColor:null,bottomMargin:gt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:On,declare:On,event:null,face:null,frame:null,frameBorder:null,hSpace:gt,leftMargin:gt,link:null,longDesc:null,lowSrc:null,marginHeight:gt,marginWidth:gt,noResize:On,noHref:On,noShade:On,noWrap:On,object:null,profile:null,prompt:null,rev:null,rightMargin:gt,rules:null,scheme:null,scrolling:Ya,standby:null,summary:null,text:null,topMargin:gt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:gt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:On,disableRemotePlayback:On,prefix:null,property:null,results:gt,security:null,unselectable:null},space:"html",transform:bP}),pne=Tp({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",navDown:"nav-down",navDownLeft:"nav
569-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:po,accentHeight:gt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:gt,amplitude:gt,arabicForm:null,ascent:gt,attributeName:null,attributeType:null,azimuth:gt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:gt,by:null,calcMode:null,capHeight:gt,className:qr,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:gt,diffuseConstant:gt,direction:null,display:null,dur:null,divisor:gt,dominantBaseline:null,download:On,dx:null,dy:null,edgeMode:null,editable:null,elevation:gt,enableBackground:null,end:null,event:null,exponent:gt,externalResourcesRequired:null,fill:null,fillOpacity:gt,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:Xf,g2:Xf,glyphName:Xf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:gt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:gt,horizOriginX:gt,horizOriginY:gt,id:null,ideographic:gt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:gt,k:gt,k1:gt,k2:gt,k3:gt,k4:gt,kernelMatrix:po,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:gt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:gt,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,on
vendor: 5,509 bytes, lines 569-570
569Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:gt,overlineThickness:gt,paintOrder:null,panose1:null,path:null,pathLength:gt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:gt,pointsAtY:gt,pointsAtZ:gt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:po,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:po,rev:po,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:po,requiredFeatures:po,requiredFonts:po,requiredFormats:po,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:gt,specularExponent:gt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:gt,strikethroughThickness:gt,string:null,stroke:null,strokeDashArray:po,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:gt,strokeOpacity:gt,strokeWidth:null,style:null,surfaceScale:gt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:po,tabIndex:gt,tableValues:null,target:null,targetX:gt,targetY:gt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:po,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:gt,underlineThickness:gt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:gt,values:null,vAlphabetic:gt,vMathematical:gt,vectorEffect:null,vHanging:gt,vIdeographic:gt,version:null,vertAdvY:gt,vertOriginX:gt,vertOriginY:gt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:gt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xP}),yP=Tp({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()}}),vP=Tp({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:bP}),wP=Tp({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),mne={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},gne=/[A-Z]/g,CT=/-[a-z]/g,xne=/^data[-\w.:]+$/i;function G5(e,t){const n=A1(t);let r=t,a=Gi;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&xne.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(CT,yne);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!CT.test(s)){let i=s.replace(gne,bne);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}a=Jw}return new a(r,t)}function bne(e){return"-"+e.toLowerCase()}function yne(e){return e.charAt(1).toUpperCase()}const K1=mP([gP,fne,yP,vP,wP],"html"),c0=mP([gP,pne,yP,vP,wP],"svg");function NT(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Zw(e){return e.join(" ").trim()}var kf={},P4,AT;function vne(){if(AT)return P4;AT=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,o=/^\s+|\s+$/g,c=` 570`,d="/",f="*",m="",b="comment",g="declaration";P4=function(E,T){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];T=T||{};var _=1,A=1;function R(ae){var J=ae.match(t);J&&(_+=J.length);var xe=ae.lastIndexOf(c);A=~xe?ae.length-xe:A+ae.length}function P(){var ae={line:_,column:A};return function(J){return J.position=new V(ae),H(),J}}function V(ae){this.start=ae,this.end={line:_,column:A},this.source=T.source}V.prototype.content=E;function U(ae){var J=new Error(T.source+":"+_+":"+A+": "+ae);if(J.reason=ae,J.filename=T.source,J.line=_,J.column=A,J.source=E,!T.silent)throw J}function D(ae){var J=ae.exec(E);if(J){var xe=J[0];return R(xe),E=E.slice(xe.length),J}}function H(){D(n)}function q(ae){var J;for(ae=ae||[];J=W();)J!==!1&&ae.push(J);return ae}function W(){var ae=P();if(!(d!=E.charAt(0)||f!=E.charAt(1))){for(var J=2;m!=E.charAt(J)&&(f!=E.charAt(J)||d!=E.charAt(J+1));)++J;if(J+=2,m===E.charAt(J-1))return U("End of comment missing");var xe=E.slice(2,J-2);return A+=2,R(xe),E=E.slice(J),A+=2,ae({type:b,comment:xe})}}function z(){var ae=P(),J=D(r);if(J){if(W(),!D(a))return U("property missing ':'");var xe=D(s),ee=ae({type:g,property:v(J[0].replace(e,m)),value:xe?v(xe[0].replace(e,m)):m});return D(i),ee}}function $(){var ae=[];q(ae);for(var J;J=z();)J!==!1&&(ae.push(J),q(ae));return ae}return H(),$()};function v(E){return E?E.replace(o,m):m}return P4}var LT;function wne(){if(LT)return kf;LT=1;var e=kf&&kf.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};
vendor: 3,730 bytes, line 570
570Object.defineProperty(kf,"__esModule",{value:!0}),kf.default=n;const t=e(vne());function n(r,a){let s=null;if(!r||typeof r!="string")return s;const i=(0,t.default)(r),o=typeof a=="function";return i.forEach(c=>{if(c.type!=="declaration")return;const{property:d,value:f}=c;o?a(d,f,c):f&&(s=s||{},s[d]=f)}),s}return kf}var Cm={},MT;function Sne(){if(MT)return Cm;MT=1,Object.defineProperty(Cm,"__esModule",{value:!0}),Cm.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(d){return!d||n.test(d)||e.test(d)},i=function(d,f){return f.toUpperCase()},o=function(d,f){return"".concat(f,"-")},c=function(d,f){return f===void 0&&(f={}),s(d)?d:(d=d.toLowerCase(),f.reactCompat?d=d.replace(a,o):d=d.replace(r,o),d.replace(t,i))};return Cm.camelCase=c,Cm}var Nm,RT;function Ene(){if(RT)return Nm;RT=1;var e=Nm&&Nm.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(wne()),n=Sne();function r(a,s){var i={};return!a||typeof a!="string"||(0,t.default)(a,function(o,c){o&&c&&(i[(0,n.camelCase)(o,s)]=c)}),i}return r.default=r,Nm=r,Nm}var kne=Ene();const _ne=x5(kne),$5=SP("end"),Ic=SP("start");function SP(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Tne(e){const t=Ic(e),n=$5(e);if(t&&n)return{start:t,end:n}}function Zm(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?OT(e.position):"start"in e||"end"in e?OT(e):"line"in e||"column"in e?V3(e):""}function V3(e){return PT(e&&e.line)+":"+PT(e&&e.column)}function OT(e){return V3(e&&e.start)+"-"+V3(e&&e.end)}function PT(e){return e&&typeof e=="number"?e:1}class ti extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",s={},i=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?a=t:!s.cause&&t&&(i=!0,a=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?s.ruleId=r:(s.source=r.slice(0,c),s.ruleId=r.slice(c+1))}if(!s.place&&s.ancestors&&s.ancestors){const c=s.ancestors[s.ancestors.length-1];c&&(s.place=c.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=o?o.line:void 0,this.name=Zm(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=i&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ti.prototype.file="";ti.prototype.name="";ti.prototype.reason="";ti.prototype.message="";ti.prototype.stack="";ti.prototype.column=void 0;ti.prototype.line=void 0;ti.prototype.ancestors=void 0;ti.prototype.cause=void 0;ti.prototype.fatal=void 0;ti.prototype.place=void 0;ti.prototype.ruleId=void 0;ti.prototype.source=void 0;const e8={}.hasOwnProperty,Cne=new Map,Nne=/[A-Z]/g,Ane=new Set(["table","tbody","thead","tfoot","tr"]),Lne=new Set(["td","th"]),EP="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Mne(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Fne(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,341 bytes, line 570
570if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Bne(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?c0:K1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=kP(a,e,void 0);return s&&typeof s!="string"?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}function kP(e,t,n){if(t.type==="element")return Rne(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return One(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return jne(e,t,n);if(t.type==="mdxjsEsm")return Pne(e,t);if(t.type==="root")return Dne(e,t,n);if(t.type==="text")return Ine(e,t)}function Rne(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=c0,e.schema=a),e.ancestors.push(t);const s=TP(e,t.tagName,!1),i=zne(e,t);let o=n8(e,t);return Ane.has(t.tagName)&&(o=o.filter(function(c){return typeof c=="string"?!V5(c):!0})),_P(e,i,s,t),t8(i,o),e.ancestors.pop(),e.schema=r,e.create(t,s,i,n)}function One(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}L1(e,t.position)}function Pne(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);L1(e,t.position)}function jne(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=c0,e.schema=a),e.ancestors.push(t);const s=t.name===null?e.Fragment:TP(e,t.name,!0),i=Hne(e,t),o=n8(e,t);return _P(e,i,s,t),t8(i,o),e.ancestors.pop(),e.schema=r,e.create(t,s,i,n)}function Dne(e,t,n){const r={};return t8(r,n8(e,t)),e.create(t,e.Fragment,r,n)}function Ine(e,t){return t.value}function _P(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function t8(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Bne(e,t,n){return r;function r(a,s,i,o){const d=Array.isArray(i.children)?n:t;return o?d(s,i,o):d(s,i)}}function Fne(e,t){return n;function n(r,a,s,i){const o=Array.isArray(s.children),c=Ic(r);return t(a,s,i,o,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function zne(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&e8.call(t.properties,a)){const s=Une(e,a,t.properties[a]);if(s){const[i,o]=s;e.tableCellAlignToStyle&&i==="align"&&typeof o=="string"&&Lne.has(t.tagName)?r=o:n[i]=o}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Hne(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const i=s.expression;i.type;const o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else L1(e,t.position);else{const a=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,s=e.evaluater.evaluateExpression(o.expression)}else L1(e,t.position);else s=r.value===null?!0:r.value;n[a]=s}return n}function n8(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Cne;for(;++r<t.children.length;){const s=t.children[r];let i;if(e.passKeys){const c=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(c){const d=a.get(c)||0;i=c+"-"+d,a.set(c,d+1)}}const o=kP(e,s,i);o!==void 0&&n.push(o)}return n}function Une(e,t,n){const r=G5(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Kw(n):Zw(n)),r.property==="style"){let a=typeof n=="object"?n:qne(e,String(n));return e.stylePropertyNameCase==="css"&&(a=Vne(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?mne[r.property]||r.property:r.attribute,n]}}function qne(e,t){try{return _ne(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new ti("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=EP+"#cannot-parse-style-attribute",a}}function TP(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let s=-1,i;for(;++s<a.length;){const o=kT(a[s])?{type:"Identifier",name:a[s]}:{type:"Literal",value:a[s]};i=i?{type:"MemberExpression",object:i,property:o,computed:!!(s&&o.type==="Literal"),optional:!1}:o}r=i}else r=kT(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return e8.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);L1(e)}function L1(e,t){const n=new ti("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=EP+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Vne(e){const t={};let n;for(n in e)e8.call(e,n)&&(t[Gne(n)]=e[n]);return t}function Gne(e){let t=e.replace(Nne,$ne);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function $ne(e){return"-"+e.toLowerCase()}const j4={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Wne={};function r8(e,t){const n=Wne,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return CP(e,r,a)}function CP(e,t,n){if(Yne(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return jT(e.children,t,n)}return Array.isArray(e)?jT(e,t,n):""}function jT(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=CP(e[a],t,n);return r.join("")}function Yne(e){return!!(e&&typeof e=="object")}const DT=document.createElement("i");function a8(e){const t="&"+e+";";DT.innerHTML=t;const n=DT.textContent;
vendor: 14,933 bytes, line 570
570return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function So(e,t,n,r){const a=e.length;let s=0,i;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)i=r.slice(s,s+1e4),i.unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function zo(e,t){return e.length>0?(So(e,e.length,0,t),e):t}const IT={}.hasOwnProperty;function NP(e){const t={};let n=-1;for(;++n<e.length;)Qne(t,e[n]);return t}function Qne(e,t){let n;for(n in t){const a=(IT.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let i;if(s)for(i in s){IT.call(a,i)||(a[i]=[]);const o=s[i];Xne(a[i],Array.isArray(o)?o:o?[o]:[])}}}function Xne(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);So(e,0,0,r)}function AP(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Nl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fi=u0(/[A-Za-z]/),Js=u0(/[\dA-Za-z]/),Kne=u0(/[#-'*+\--9=?A-Z^-~]/);function Ux(e){return e!==null&&(e<32||e===127)}const G3=u0(/\d/),Jne=u0(/[\dA-Fa-f]/),Zne=u0(/[!-/:-@[-`{-~]/);function Zt(e){return e!==null&&e<-2}function zr(e){return e!==null&&(e<0||e===32)}function Gn(e){return e===-2||e===-1||e===32}const W5=u0(new RegExp("\\p{P}|\\p{S}","u")),gh=u0(/\s/);function u0(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Cp(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const s=e.charCodeAt(n);let i="";if(s===37&&Js(e.charCodeAt(n+1))&&Js(e.charCodeAt(n+2)))a=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(i=String.fromCharCode(s));else if(s>55295&&s<57344){const o=e.charCodeAt(n+1);s<56320&&o>56319&&o<57344?(i=String.fromCharCode(s,o),a=1):i="�"}else i=String.fromCharCode(s);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function zn(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let s=0;return i;function i(c){return Gn(c)?(e.enter(n),o(c)):t(c)}function o(c){return Gn(c)&&s++<a?(e.consume(c),o):(e.exit(n),t(c))}}const ere={tokenize:tre};function tre(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),zn(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),s(o)}function s(o){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,i(o)}function i(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return Zt(o)?(e.consume(o),e.exit("chunkText"),s):(e.consume(o),i)}}const nre={tokenize:rre},BT={tokenize:are};function rre(e){const t=this,n=[];let r=0,a,s,i;return o;function o(R){if(r<n.length){const P=n[r];return t.containerState=P[1],e.attempt(P[0].continuation,c,d)(R)}return d(R)}function c(R){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&A();const P=t.events.length;let V=P,U;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){U=t.events[V][1].end;break}_(r);let D=P;for(;D<t.events.length;)t.events[D][1].end={...U},D++;return So(t.events,V+1,0,t.events.slice(P)),t.events.length=D,d(R)}return o(R)}function d(R){if(r===n.length){if(!a)return b(R);if(a.currentConstruct&&a.currentConstruct.concrete)return v(R);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(BT,f,m)(R)}function f(R){return a&&A(),_(r),b(R)}function m(R){return t.parser.lazy[t.now().line]=r!==n.length,i=t.now().offset,v(R)}function b(R){return t.containerState={},e.attempt(BT,g,v)(R)}function g(R){return r++,n.push([t.currentConstruct,t.containerState]),b(R)}function v(R){if(R===null){a&&A(),_(0),e.consume(R);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:s}),E(R)}function E(R){if(R===null){T(e.exit("chunkFlow"),!0),_(0),e.consume(R);return}return Zt(R)?(e.consume(R),T(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(R),E)}function T(R,P){const V=t.sliceStream(R);if(P&&V.push(null),R.previous=s,s&&(s.next=R),s=R,a.defineSkip(R.start),a.write(V),t.parser.lazy[R.start.line]){let U=a.events.length;for(;U--;)if(a.events[U][1].start.offset<i&&(!a.events[U][1].end||a.events[U][1].end.offset>i))return;const D=t.events.length;let H=D,q,W;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(q){W=t.events[H][1].end;break}q=!0}for(_(r),U=D;U<t.events.length;)t.events[U][1].end={...W},U++;So(t.events,H+1,0,t.events.slice(D)),t.events.length=U}}function _(R){let P=n.length;for(;P-- >R;){const V=n[P];t.containerState=V[1],V[0].exit.call(t,e)}n.length=R}function A(){a.write([null]),s=void 0,a=void 0,t.containerState._closeFlow=void 0}}function are(e,t,n){return zn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function lp(e){if(e===null||zr(e)||gh(e))return 1;if(W5(e))return 2}function Y5(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const s=e[a].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const $3={name:"attention",resolveAll:sre,tokenize:ire};function sre(e,t){let n=-1,r,a,s,i,o,c,d,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const m={...e[r][1].end},b={...e[n][1].start};FT(m,-c),FT(b,c),i={type:c>1?"strongSequence":"emphasisSequence",start:m,end:{...e[r][1].end}},o={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:b},s={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:c>1?"strong":"emphasis",start:{...i.start},end:{...o.end}},e[r][1].end={...i.start},e[n][1].start={...o.end},d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=zo(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=zo(d,[["enter",a,t],["enter",i,t],["exit",i,t],["enter",s,t]]),d=zo(d,Y5(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),d=zo(d,[["exit",s,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,d=zo(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,So(e,r-1,n-r+3,d),n=r+d.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function ire(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=lp(r);let s;return i;function i(c){return s=c,e.enter("attentionSequence"),o(c)}function o(c){if(c===s)return e.consume(c),o;const d=e.exit("attentionSequence"),f=lp(c),m=!f||f===2&&a||n.includes(c),b=!a||a===2&&f||n.includes(r);return d._open=!!(s===42?m:m&&(a||!b)),d._close=!!(s===42?b:b&&(f||!m)),t(c)}}function FT(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ore={name:"autolink",tokenize:lre};function lre(e,t,n){let r=0;return a;function a(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(g){return fi(g)?(e.consume(g),i):g===64?n(g):d(g)}function i(g){return g===43||g===45||g===46||Js(g)?(r=1,o(g)):d(g)}function o(g){return g===58?(e.consume(g),r=0,c):(g===43||g===45||g===46||Js(g))&&r++<32?(e.consume(g),o):(r=0,d(g))}function c(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||Ux(g)?n(g):(e.consume(g),c)}function d(g){return g===64?(e.consume(g),f):Kne(g)?(e.consume(g),d):n(g)}function f(g){return Js(g)?m(g):n(g)}function m(g){return g===46?(e.consume(g),r=0,f):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):b(g)}function b(g){if((g===45||Js(g))&&r++<63){const v=g===45?b:m;return e.consume(g),v}return n(g)}}const J1={partial:!0,tokenize:cre};function cre(e,t,n){return r;function r(s){return Gn(s)?zn(e,a,"linePrefix")(s):a(s)}function a(s){return s===null||Zt(s)?t(s):n(s)}}const LP={continuation:{tokenize:dre},exit:hre,name:"blockQuote",tokenize:ure};function ure(e,t,n){const r=this;return a;function a(i){if(i===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),s}return n(i)}function s(i){return Gn(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function dre(e,t,n){const r=this;return a;function a(i){return Gn(i)?zn(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):s(i)}function s(i){return e.attempt(LP,t,n)(i)}}function hre(e){e.exit("blockQuote")}const MP={name:"characterEscape",tokenize:fre};function fre(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),a}function a(s){return Zne(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const RP={name:"characterReference",tokenize:pre};function pre(e,t,n){const r=this;let a=0,s,i;return o;function o(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),c}function c(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),s=31,i=Js,f(m))}function d(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,i=Jne,f):(e.enter("characterReferenceValue"),s=7,i=G3,f(m))}function f(m){if(m===59&&a){const b=e.exit("characterReferenceValue");return i===Js&&!a8(r.sliceSerialize(b))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(m)&&a++<s?(e.consume(m),f):n(m)}}const zT={partial:!0,tokenize:gre},HT={concrete:!0,name:"codeFenced",tokenize:mre};function mre(e,t,n){const r=this,a={partial:!0,tokenize:V};let s=0,i=0,o;return c;function c(U){return d(U)}function d(U){const D=r.events[r.events.length-1];return s=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,o=U,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(U)}function f(U){return U===o?(i++,e.consume(U),f):i<3?n(U):(e.exit("codeFencedFenceSequence"),Gn(U)?zn(e,m,"whitespace")(U):m(U))}function m(U){return U===null||Zt(U)?(e.exit("codeFencedFence"),r.interrupt?t(U):e.check(zT,E,P)(U)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(U))}function b(U){return U===null||Zt(U)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(U)):Gn(U)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),zn(e,g,"whitespace")(U)):U===96&&U===o?n(U):(e.consume(U),b)}function g(U){return U===null||Zt(U)?m(U):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(U))}function v(U){return U===null||Zt(U)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(U)):U===96&&U===o?n(U):(e.consume(U),v)}function E(U){return e.attempt(a,P,T)(U)}function T(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),_}function _(U){return s>0&&Gn(U)?zn(e,A,"linePrefix",s+1)(U):A(U)}function A(U){return U===null||Zt(U)?e.check(zT,E,P)(U):(e.enter("codeFlowValue"),R(U))}function R(U){return U===null||Zt(U)?(e.exit("codeFlowValue"),A(U)):(e.consume(U),R)}function P(U){return e.exit("codeFenced"),t(U)}function V(U,D,H){let q=0;return W;function W(xe){return U.enter("lineEnding"),U.consume(xe),U.exit("lineEnding"),z}function z(xe){return U.enter("codeFencedFence"),Gn(xe)?zn(U,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(xe):$(xe)}function $(xe){return xe===o?(U.enter("codeFencedFenceSequence"),ae(xe)):H(xe)}function ae(xe){return xe===o?(q++,U.consume(xe),ae):q>=i?(U.exit("codeFencedFenceSequence"),Gn(xe)?zn(U,J,"whitespace")(xe):J(xe)):H(xe)}function J(xe){return xe===null||Zt(xe)?(U.exit("codeFencedFence"),D(xe)):H(xe)}}}function gre(e,t,n){const r=this;return a;function a(i){return i===null?n(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),s)}function s(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}const D4={name:"codeIndented",tokenize:bre},xre={partial:!0,tokenize:yre};function bre(e,t,n){const r=this;return a;function a(d){return e.enter("codeIndented"),zn(e,s,"linePrefix",5)(d)}function s(d){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?i(d):n(d)}function i(d){return d===null?c(d):Zt(d)?e.attempt(xre,i,c)(d):(e.enter("codeFlowValue"),o(d))}function o(d){return d===null||Zt(d)?(e.exit("codeFlowValue"),i(d)):(e.consume(d),o)}function c(d){return e.exit("codeIndented"),t(d)}}function yre(e,t,n){const r=this;return a;function a(i){return r.parser.lazy[r.now().line]?n(i):Zt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):zn(e,s,"linePrefix",5)(i)}function s(i){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):Zt(i)?a(i):n(i)}}const vre={name:"codeText",previous:Sre,resolve:wre,tokenize:Ere};function wre(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function Sre(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ere(e,t,n){let r=0,a,s;return i;function i(m){return e.enter("codeText"),e.enter("codeTextSequence"),o(m)}function o(m){return m===96?(e.consume(m),r++,o):(e.exit("codeTextSequence"),c(m))}function c(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),c):m===96?(s=e.enter("codeTextSequence"),a=0,f(m)):Zt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("co
570deTextData"),d(m))}function d(m){return m===null||m===32||m===96||Zt(m)?(e.exit("codeTextData"),c(m)):(e.consume(m),d)}function f(m){return m===96?(e.consume(m),a++,f):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(s.type="codeTextData",d(m))}}class kre{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Am(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Am(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Am(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Am(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Am(this.left,n.reverse())}}}function Am(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function OP(e){const t={};let n=-1,r,a,s,i,o,c,d;const f=new kre(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,s=0,s<c.length&&c[s][1].type==="lineEndingBlank"&&(s+=2),s<c.length&&c[s][1].type==="content"))for(;++s<c.length&&c[s][1].type!=="content";)c[s][1].type==="chunkText"&&(c[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,_re(f,n)),n=t[n],d=!0);else if(r[1]._container){for(s=n,a=void 0;s--;)if(i=f.get(s),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(a&&(f.get(a)[1].type="lineEndingBlank"),i[1].type="lineEnding",a=s);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;a&&(r[1].end={...f.get(a)[1].start},o=f.slice(a,n),o.unshift(r),f.splice(a,n-a+1,o))}}return So(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!d}function _re(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const s=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const o=i.events,c=[],d={};let f,m,b=-1,g=n,v=0,E=0;const T=[E];for(;g;){for(;e.get(++a)[1]!==g;);s.push(a),g._tokenizer||(f=r.sliceStream(g),g.next||f.push(null),m&&i.defineSkip(g.start),g._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(f),g._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),m=g,g=g.next}for(g=n;++b<o.length;)o[b][0]==="exit"&&o[b-1][0]==="enter"&&o[b][1].type===o[b-1][1].type&&o[b][1].start.line!==o[b][1].end.line&&(E=b+1,T.push(E),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(i.events=[],g?(g._tokenizer=void 0,g.previous=void 0):T.pop(),b=T.length;b--;){const _=o.slice(T[b],T[b+1]),A=s.pop();c.push([A,A+_.length-1]),e.splice(A,2,_)}for(c.reverse(),b=-1;++b<c.length;)d[v+c[b][0]]=v+c[b][1],v+=c[b][1]-c[b][0]-1;return d}const Tre={resolve:Nre,tokenize:Are},Cre={partial:!0,tokenize:Lre};function Nre(e){return OP(e),e}function Are(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?s(o):Zt(o)?e.check(Cre,i,s)(o):(e.consume(o),a)}function s(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function i(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function Lre(e,t,n){const r=this;return a;function a(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),zn(e,s,"linePrefix")}function s(i){if(i===null||Zt(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function PP(e,t,n,r,a,s,i,o,c){const d=c||Number.POSITIVE_INFINITY;let f=0;return m;function m(_){return _===60?(e.enter(r),e.enter(a),e.enter(s),e.consume(_),e.exit(s),b):_===null||_===32||_===41||Ux(_)?n(_):(e.enter(r),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),E(_))}function b(_){return _===62?(e.enter(s),e.consume(_),e.exit(s),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),g(_))}function g(_){return _===62?(e.exit("chunkString"),e.exit(o),b(_)):_===null||_===60||Zt(_)?n(_):(e.consume(_),_===92?v:g)}function v(_){return _===60||_===62||_===92?(e.consume(_),g):g(_)}function E(_){return!f&&(_===null||_===41||zr(_))?(e.exit("chunkString"),e.exit(o),e.exit(i),e.exit(r),t(_)):f<d&&_===40?(e.consume(_),f++,E):_===41?(e.consume(_),f--,E):_===null||_===32||_===40||Ux(_)?n(_):(e.consume(_),_===92?T:E)}function T(_){return _===40||_===41||_===92?(e.consume(_),E):E(_)}}function jP(e,t,n,r,a,s){const i=this;let o=0,c;return d;function d(g){return e.enter(r),e.enter(a),e.consume(g),e.exit(a),e.enter(s),f}function f(g){return o>999||g===null||g===91||g===93&&!c||g===94&&!o&&"_hiddenFootnoteSupport"in i.parser.constructs?n(g):g===93?(e.exit(s),e.enter(a),e.consume(g),e.exit(a),e.exit(r),t):Zt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===null||g===91||g===93||Zt(g)||o++>999?(e.exit("chunkString"),f(g)):(e.consume(g),c||(c=!Gn(g)),g===92?b:m)}function b(g){return g===91||g===92||g===93?(e.consume(g),o++,m):m(g)}}function DP(e,t,n,r,a,s){let i;return o;function o(b){return b===34||b===39||b===40?(e.enter(r),e.enter(a),e.consume(b),e.exit(a),i=b===40?41:b,c):n(b)}function c(b){return b===i?(e.enter(a),e.consume(b),e.exit(a),e.exit(r),t):(e.enter(s),d(b))}function d(b){return b===i?(e.exit(s),c(i)):b===null?n(b):Zt(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),zn(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(b))}function f(b){return b===i||b===null||Zt(b)?(e.exit("chunkString"),d(b)):(e.consume(b),b===92?m:f)}function m(b){return b===i||b===92?(e.consume(b),f):f(b)}}function e1(e,t){let n;return r;function r(a){return Zt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Gn(a)?zn(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const Mre={name:"definition",tokenize:Ore},Rre={partial:!0,tokenize:Pre};function Ore(e,t,n){const r=this;let a;return s;function s(g){return e.enter("definition"),i(g)}function i(g){return jP.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function o(g){return a=Nl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),c):n(g)}function c(g){return zr(g)?e1(e,d)(g):d(g)}function d(g){return PP(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function f(g){return e.attempt(Rre,m,m)(g)}function m(g){return Gn(g)?zn(e,b,"whitespace")(g):b(g)}function b(g){return g===null||Zt(g)?(e.exit("definition"),r.parser.defined.push(a),t(g)):n(g)}}function Pre(e,t,n){return r;function r(o){return zr(o)?e1(e,a)(o):n(o)}function a(o){return DP(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return Gn(o)?zn(e,i,"whitespace")(o):i(o)}function i(o){return o===null||Zt(o)?t(o):n(o)}}const jre={name:"hardBreakEscape",tokenize:Dre};function Dre(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),a}function a(s){return Zt(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const Ire={name:"headingAtx",resolve:Bre,tokenize:Fre};function Bre(e,t){let n=e.length-2,r=3,a,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},So(e,r,n-r+1,[["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t]]
vendor: 17,125 bytes, line 570
570)),e}function Fre(e,t,n){let r=0;return a;function a(f){return e.enter("atxHeading"),s(f)}function s(f){return e.enter("atxHeadingSequence"),i(f)}function i(f){return f===35&&r++<6?(e.consume(f),i):f===null||zr(f)?(e.exit("atxHeadingSequence"),o(f)):n(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),c(f)):f===null||Zt(f)?(e.exit("atxHeading"),t(f)):Gn(f)?zn(e,o,"whitespace")(f):(e.enter("atxHeadingText"),d(f))}function c(f){return f===35?(e.consume(f),c):(e.exit("atxHeadingSequence"),o(f))}function d(f){return f===null||f===35||zr(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),d)}}const zre=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],UT=["pre","script","style","textarea"],Hre={concrete:!0,name:"htmlFlow",resolveTo:Vre,tokenize:Gre},Ure={partial:!0,tokenize:Wre},qre={partial:!0,tokenize:$re};function Vre(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Gre(e,t,n){const r=this;let a,s,i,o,c;return d;function d(O){return f(O)}function f(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),m}function m(O){return O===33?(e.consume(O),b):O===47?(e.consume(O),s=!0,E):O===63?(e.consume(O),a=3,r.interrupt?t:Z):fi(O)?(e.consume(O),i=String.fromCharCode(O),T):n(O)}function b(O){return O===45?(e.consume(O),a=2,g):O===91?(e.consume(O),a=5,o=0,v):fi(O)?(e.consume(O),a=4,r.interrupt?t:Z):n(O)}function g(O){return O===45?(e.consume(O),r.interrupt?t:Z):n(O)}function v(O){const K="CDATA[";return O===K.charCodeAt(o++)?(e.consume(O),o===K.length?r.interrupt?t:$:v):n(O)}function E(O){return fi(O)?(e.consume(O),i=String.fromCharCode(O),T):n(O)}function T(O){if(O===null||O===47||O===62||zr(O)){const K=O===47,he=i.toLowerCase();return!K&&!s&&UT.includes(he)?(a=1,r.interrupt?t(O):$(O)):zre.includes(i.toLowerCase())?(a=6,K?(e.consume(O),_):r.interrupt?t(O):$(O)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(O):s?A(O):R(O))}return O===45||Js(O)?(e.consume(O),i+=String.fromCharCode(O),T):n(O)}function _(O){return O===62?(e.consume(O),r.interrupt?t:$):n(O)}function A(O){return Gn(O)?(e.consume(O),A):W(O)}function R(O){return O===47?(e.consume(O),W):O===58||O===95||fi(O)?(e.consume(O),P):Gn(O)?(e.consume(O),R):W(O)}function P(O){return O===45||O===46||O===58||O===95||Js(O)?(e.consume(O),P):V(O)}function V(O){return O===61?(e.consume(O),U):Gn(O)?(e.consume(O),V):R(O)}function U(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),c=O,D):Gn(O)?(e.consume(O),U):H(O)}function D(O){return O===c?(e.consume(O),c=null,q):O===null||Zt(O)?n(O):(e.consume(O),D)}function H(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||zr(O)?V(O):(e.consume(O),H)}function q(O){return O===47||O===62||Gn(O)?R(O):n(O)}function W(O){return O===62?(e.consume(O),z):n(O)}function z(O){return O===null||Zt(O)?$(O):Gn(O)?(e.consume(O),z):n(O)}function $(O){return O===45&&a===2?(e.consume(O),ee):O===60&&a===1?(e.consume(O),ce):O===62&&a===4?(e.consume(O),ne):O===63&&a===3?(e.consume(O),Z):O===93&&a===5?(e.consume(O),be):Zt(O)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Ure,B,ae)(O)):O===null||Zt(O)?(e.exit("htmlFlowData"),ae(O)):(e.consume(O),$)}function ae(O){return e.check(qre,J,B)(O)}function J(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),xe}function xe(O){return O===null||Zt(O)?ae(O):(e.enter("htmlFlowData"),$(O))}function ee(O){return O===45?(e.consume(O),Z):$(O)}function ce(O){return O===47?(e.consume(O),i="",se):$(O)}function se(O){if(O===62){const K=i.toLowerCase();return UT.includes(K)?(e.consume(O),ne):$(O)}return fi(O)&&i.length<8?(e.consume(O),i+=String.fromCharCode(O),se):$(O)}function be(O){return O===93?(e.consume(O),Z):$(O)}function Z(O){return O===62?(e.consume(O),ne):O===45&&a===2?(e.consume(O),Z):$(O)}function ne(O){return O===null||Zt(O)?(e.exit("htmlFlowData"),B(O)):(e.consume(O),ne)}function B(O){return e.exit("htmlFlow"),t(O)}}function $re(e,t,n){const r=this;return a;function a(i){return Zt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),s):n(i)}function s(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}function Wre(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(J1,t,n)}}const Yre={name:"htmlText",tokenize:Qre};function Qre(e,t,n){const r=this;let a,s,i;return o;function o(Z){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(Z),c}function c(Z){return Z===33?(e.consume(Z),d):Z===47?(e.consume(Z),V):Z===63?(e.consume(Z),R):fi(Z)?(e.consume(Z),H):n(Z)}function d(Z){return Z===45?(e.consume(Z),f):Z===91?(e.consume(Z),s=0,v):fi(Z)?(e.consume(Z),A):n(Z)}function f(Z){return Z===45?(e.consume(Z),g):n(Z)}function m(Z){return Z===null?n(Z):Z===45?(e.consume(Z),b):Zt(Z)?(i=m,ce(Z)):(e.consume(Z),m)}function b(Z){return Z===45?(e.consume(Z),g):m(Z)}function g(Z){return Z===62?ee(Z):Z===45?b(Z):m(Z)}function v(Z){const ne="CDATA[";return Z===ne.charCodeAt(s++)?(e.consume(Z),s===ne.length?E:v):n(Z)}function E(Z){return Z===null?n(Z):Z===93?(e.consume(Z),T):Zt(Z)?(i=E,ce(Z)):(e.consume(Z),E)}function T(Z){return Z===93?(e.consume(Z),_):E(Z)}function _(Z){return Z===62?ee(Z):Z===93?(e.consume(Z),_):E(Z)}function A(Z){return Z===null||Z===62?ee(Z):Zt(Z)?(i=A,ce(Z)):(e.consume(Z),A)}function R(Z){return Z===null?n(Z):Z===63?(e.consume(Z),P):Zt(Z)?(i=R,ce(Z)):(e.consume(Z),R)}function P(Z){return Z===62?ee(Z):R(Z)}function V(Z){return fi(Z)?(e.consume(Z),U):n(Z)}function U(Z){return Z===45||Js(Z)?(e.consume(Z),U):D(Z)}function D(Z){return Zt(Z)?(i=D,ce(Z)):Gn(Z)?(e.consume(Z),D):ee(Z)}function H(Z){return Z===45||Js(Z)?(e.consume(Z),H):Z===47||Z===62||zr(Z)?q(Z):n(Z)}function q(Z){return Z===47?(e.consume(Z),ee):Z===58||Z===95||fi(Z)?(e.consume(Z),W):Zt(Z)?(i=q,ce(Z)):Gn(Z)?(e.consume(Z),q):ee(Z)}function W(Z){return Z===45||Z===46||Z===58||Z===95||Js(Z)?(e.consume(Z),W):z(Z)}function z(Z){return Z===61?(e.consume(Z),$):Zt(Z)?(i=z,ce(Z)):Gn(Z)?(e.consume(Z),z):q(Z)}function $(Z){return Z===null||Z===60||Z===61||Z===62||Z===96?n(Z):Z===34||Z===39?(e.consume(Z),a=Z,ae):Zt(Z)?(i=$,ce(Z)):Gn(Z)?(e.consume(Z),$):(e.consume(Z),J)}function ae(Z){return Z===a?(e.consume(Z),a=void 0,xe):Z===null?n(Z):Zt(Z)?(i=ae,ce(Z)):(e.consume(Z),ae)}function J(Z){return Z===null||Z===34||Z===39||Z===60||Z===61||Z===96?n(Z):Z===47||Z===62||zr(Z)?q(Z):(e.consume(Z),J)}function xe(Z){return Z===47||Z===62||zr(Z)?q(Z):n(Z)}function ee(Z){return Z===62?(e.consume(Z),e.exit("htmlTextData"),e.exit("htmlText"),t):n(Z)}function ce(Z){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(Z),e.exit("lineEnding"),se}function se(Z){return Gn(Z)?zn(e,be,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):be(Z)}function be(Z){return e.enter("htmlTextData"),i(Z)}}const s8={name:"labelEnd",resolveAll:Zre,resolveTo:eae,tokenize:tae},Xre={tokenize:nae},Kre={tokenize:rae},Jre={tokenize:aae};function Zre(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&So(e,0,e.length,n),e}function eae(e,t){let n=e.length,r=0,a,s,i,o;for(;n--;)if(a=e[n][1],s){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(i){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(s=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(i=n);const c={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[s][1].start},end:{...e[i][1].end}},f={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",c,t],["enter",d,t]],o=zo(o,e.slice(s+1,s+r+3)),o=zo(o,[["enter",f,t]]),o=zo(o,Y5(t.parser.constructs.insideSpan.null,e.slice(s+r+4,i-3),t)),o=zo(o,[["exit",f,t],e[i-2],e[i-1],["exit",d,t]]),o=zo(o,e.slice(i+1)),o=zo(o,[["exit",c,t]]),So(e,s,e.length,o),e}function tae(e,t,n){const r=this;let a=r.events.length,s,i;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){s=r.events[a][1];break}return o;function o(b){return s?s._inactive?m(b):(i=r.parser.defined.includes(Nl(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),c):n(b)}function c(b){return b===40?e.attempt(Xre,f,i?f:m)(b):b===91?e.attempt(Kre,f,i?d:m)(b):i?f(b):m(b)}function d(b){return e.attempt(Jre,f,m)(b)}function f(b){return t(b)}function m(b){return s._balanced=!0,n(b)}}function nae(e,t,n){return r;function r(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),a}function a(m){return zr(m)?e1(e,s)(m):s(m)}function s(m){return m===41?f(m):PP(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function i(m){return zr(m)?e1(e,c)(m):f(m)}function o(m){return n(m)}function c(m){return m===34||m===39||m===40?DP(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):f(m)}function d(m){return zr(m)?e1(e,f)(m):f(m)}function f(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function rae(e,t,n){const r=this;return a;function a(o){return jP.call(r,e,s,i,"reference","referenceMarker","referenceString")(o)}function s(o){return r.parser.defined.includes(Nl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function i(o){return n(o)}}function aae(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),a}function a(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const sae={name:"labelStartImage",resolveAll:s8.resolveAll,tokenize:iae};function iae(e,t,n){const r=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),s}function s(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),i):n(o)}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const oae={name:"labelStartLink",resolveAll:s8.resolveAll,tokenize:lae};function lae(e,t,n){const r=this;return a;function a(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),s}function s(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):t(i)}}const I4={name:"lineEnding",tokenize:cae};function cae(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),zn(e,t,"linePrefix")}}const px={name:"thematicBreak",tokenize:uae};function uae(e,t,n){let r=0,a;return s;function s(d){return e.enter("thematicBreak"),i(d)}function i(d){return a=d,o(d)}function o(d){return d===a?(e.enter("thematicBreakSequence"),c(d)):r>=3&&(d===null||Zt(d))?(e.exit("thematicBreak"),t(d)):n(d)}function c(d){return d===a?(e.consume(d),r++,c):(e.exit("thematicBreakSequence"),Gn(d)?zn(e,o,"whitespace")(d):o(d))}}const Bi={continuation:{tokenize:pae},exit:gae,name:"list",tokenize:fae},dae={partial:!0,tokenize:xae},hae={partial:!0,tokenize:mae};function fae(e,t,n){const r=this,a=r.events[r.events.length-1];let s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,i=0;return o;function o(g){const v=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:G3(g)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(px,n,d)(g):d(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(g)}return n(g)}function c(g){return G3(g)&&++i<10?(e.consume(g),c):(!r.interrupt||i<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),d(g)):n(g)}function d(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(J1,r.interrupt?n:f,e.attempt(dae,b,m))}function f(g){return r.containerState.initialBlankLine=!0,s++,b(g)}function m(g){return Gn(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),b):n(g)}function b(g){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function pae(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(J1,a,s);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,zn(e,t,"listItemIndent",r.containerState.size+1)(o)}function s(o){return r.containerState.furtherBlankLines||!Gn(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(hae,t,i)(o))}function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,zn(e,e.attempt(Bi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function mae(e,t,n){const r=this;return zn(e,a,"listItemIndent",r.containerState.size+1);function a(s){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(s):n(s)}}function gae(e){e.exit(this.containerState.type)}function xae(e,t,n){const r=this;return zn(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(s){const i=r.events[r.events.length-1];return!Gn(s)&&i&&i[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const qT={name:"setextUnderline",resolveTo:bae,tokenize:yae};function bae(e,t){let n=e.length,r,a,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const i={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",s?(e.splice(a,0,["enter",i,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=i,e.push(["exit",i,t]),e}function yae(e,t,n){const r=this;let a;return s;function s(d){let f=r.events.length,m;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){m=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||m)?(e.enter("setextHeadingLine"),a=d,i(d)):n(d)}function i(d){return e.enter("setextHeadingLineSequence"),o(d)}function o(d){return d===a?(e.consume(d),o):(e.exit("setextHeadingLineSequence"),Gn(d)?zn(e,c,"lineSuffix")(d):c(d))}function c(d){return d===null||Zt(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const vae={tokenize:wae};function wae(e){const t=this,n=e.attempt(J1,r,e.attempt(this.parser.constructs.flowInitial,a,zn(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Tre,a)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Sae={resolveAll:BP()},Eae=IP("string"),kae=IP("text");function IP(e){return{resolveAll:BP(e==="text"?_ae:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],s=n.attempt(a,i,o);return i;function i(f){return d(f)?s(f):o(f)}function o(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),c}function c(f){return d(f)?(n.exit("data"),s(f)):(n.consume(f),c)}function d(f){if(f===null)return!0;const m=a[f];let b=-1;if(m)for(;++b<m.length;){const g=m[b];if(!g.previous||g.previous.call(r,r.previous))return!0}return!1}}}function BP(e){return t;function t(n,r){let a=-1,s;for(;++a<=n.length;)s===void 0?n[a]&&n[a][1].type==="data"&&(s=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==s+2&&(n[s][1].end=n[a-1][1].end,n.splice(s+2,a-s-2),a=s+2),s=void 0);return e?e(n,r):n}}function _ae(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let s=a.length,i=-1,o=0,c;for(;s--;){const d=a[s];
vendor: 5,681 bytes, lines 570-572
570if(typeof d=="string"){for(i=d.length;d.charCodeAt(i-1)===32;)o++,i--;if(i)break;i=-1}else if(d===-2)c=!0,o++;else if(d!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const d={type:n===e.length||c||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?i:r.start._bufferIndex+i,_index:r.start._index+s,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...d.start},r.start.offset===r.end.offset?Object.assign(r,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const Tae={42:Bi,43:Bi,45:Bi,48:Bi,49:Bi,50:Bi,51:Bi,52:Bi,53:Bi,54:Bi,55:Bi,56:Bi,57:Bi,62:LP},Cae={91:Mre},Nae={[-2]:D4,[-1]:D4,32:D4},Aae={35:Ire,42:px,45:[qT,px],60:Hre,61:qT,95:px,96:HT,126:HT},Lae={38:RP,92:MP},Mae={[-5]:I4,[-4]:I4,[-3]:I4,33:sae,38:RP,42:$3,60:[ore,Yre],91:oae,92:[jre,MP],93:s8,95:$3,96:vre},Rae={null:[$3,Sae]},Oae={null:[42,95]},Pae={null:[]},jae=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Oae,contentInitial:Cae,disable:Pae,document:Tae,flow:Aae,flowInitial:Nae,insideSpan:Rae,string:Lae,text:Mae},Symbol.toStringTag,{value:"Module"}));function Dae(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},s=[];let i=[],o=[];const c={attempt:D(V),check:D(U),consume:A,enter:R,exit:P,interrupt:D(U,{interrupt:!0})},d={code:null,containerState:{},defineSkip:E,events:[],now:v,parser:e,previous:null,sliceSerialize:b,sliceStream:g,write:m};let f=t.tokenize.call(d,c);return t.resolveAll&&s.push(t),d;function m(z){return i=zo(i,z),T(),i[i.length-1]!==null?[]:(H(t,0),d.events=Y5(s,d.events,d),d.events)}function b(z,$){return Bae(g(z),$)}function g(z){return Iae(i,z)}function v(){const{_bufferIndex:z,_index:$,line:ae,column:J,offset:xe}=r;return{_bufferIndex:z,_index:$,line:ae,column:J,offset:xe}}function E(z){a[z.line]=z.column,W()}function T(){let z;for(;r._index<i.length;){const $=i[r._index];if(typeof $=="string")for(z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===z&&r._bufferIndex<$.length;)_($.charCodeAt(r._bufferIndex));else _($)}}function _(z){f=f(z)}function A(z){Zt(z)?(r.line++,r.column=1,r.offset+=z===-3?2:1,W()):z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=z}function R(z,$){const ae=$||{};return ae.type=z,ae.start=v(),d.events.push(["enter",ae,d]),o.push(ae),ae}function P(z){const $=o.pop();return $.end=v(),d.events.push(["exit",$,d]),$}function V(z,$){H(z,$.from)}function U(z,$){$.restore()}function D(z,$){return ae;function ae(J,xe,ee){let ce,se,be,Z;return Array.isArray(J)?B(J):"tokenize"in J?B([J]):ne(J);function ne(we){return Ee;function Ee(ue){const Ae=ue!==null&&we[ue],Ie=ue!==null&&we.null,We=[...Array.isArray(Ae)?Ae:Ae?[Ae]:[],...Array.isArray(Ie)?Ie:Ie?[Ie]:[]];return B(We)(ue)}}function B(we){return ce=we,se=0,we.length===0?ee:O(we[se])}function O(we){return Ee;function Ee(ue){return Z=q(),be=we,we.partial||(d.currentConstruct=we),we.name&&d.parser.constructs.disable.null.includes(we.name)?he():we.tokenize.call($?Object.assign(Object.create(d),$):d,c,K,he)(ue)}}function K(we){return z(be,Z),xe}function he(we){return Z.restore(),++se<ce.length?O(ce[se]):ee}}}function H(z,$){z.resolveAll&&!s.includes(z)&&s.push(z),z.resolve&&So(d.events,$,d.events.length-$,z.resolve(d.events.slice($),d)),z.resolveTo&&(d.events=z.resolveTo(d.events,d))}function q(){const z=v(),$=d.previous,ae=d.currentConstruct,J=d.events.length,xe=Array.from(o);return{from:J,restore:ee};function ee(){r=z,d.previous=$,d.currentConstruct=ae,d.events.length=J,o=xe,W()}}function W(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function Iae(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;let i;if(n===a)i=[e[n].slice(r,s)];else{if(i=e.slice(n,a),r>-1){const o=i[0];typeof o=="string"?i[0]=o.slice(r):i.shift()}s>0&&i.push(e[a].slice(0,s))}return i}function Bae(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const s=e[n];let i;if(typeof s=="string")i=s;else switch(s){case-5:{i="\r";break}case-4:{i=` 571`;break}case-3:{i=`\r 572`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&a)continue;i=" ";break}default:i=String.fromCharCode(s)}a=s===-2,r.push(i)}return r.join("")}function Fae(e){const r={constructs:NP([jae,...(e||{}).extensions||[]]),content:a(ere),defined:[],document:a(nre),flow:a(vae),lazy:{},string:a(Eae),text:a(kae)};return r;function a(s){return i;function i(o){return Dae(r,s,o)}}}function zae(e){for(;!OP(e););return e}const VT=/[\0\t\n\r]/g;function Hae(){let e=1,t="",n=!0,r;return a;function a(s,i,o){const c=[];let d,f,m,b,g;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(i||void 0).decode(s)),m=0,t="",n&&(s.charCodeAt(0)===65279&&m++,n=void 0);m<s.length;){if(VT.lastIndex=m,d=VT.exec(s),b=d&&d.index!==void 0?d.index:s.length,g=s.charCodeAt(b),!d){t=s.slice(m);break}if(g===10&&m===b&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),m<b&&(c.push(s.slice(m,b)),e+=b-m),g){case 0:{c.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,c.push(-2);e++<f;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}m=b+1}return o&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const Uae=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qae(e){return e.replace(Uae,Vae)}function Vae(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),s=a===120||a===88;return AP(n.slice(s?2:1),s?16:10)}return a8(n)||e}const FP={}.hasOwnProperty;function Gae(e,t,n){return typeof t!="string"&&(n=t,t=void 0),$ae(n)(zae(Fae(n).document().write(Hae()(e,t,!0))
vendor: 1,982 bytes, line 572
572))}function $ae(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(tt),autolinkProtocol:q,autolinkEmail:q,atxHeading:s(fe),blockQuote:s(Ie),characterEscape:q,characterReference:q,codeFenced:s(We),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:s(We,i),codeText:s(st,i),codeTextData:q,data:q,codeFlowValue:q,definition:s(mt),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:s(_t),hardBreakEscape:s(yt),hardBreakTrailing:s(yt),htmlFlow:s(rn,i),htmlFlowData:q,htmlText:s(rn,i),htmlTextData:q,image:s(Ht),label:i,link:s(tt),listItem:s(Lt),listItemValue:b,listOrdered:s(Kt,m),listUnordered:s(Kt),paragraph:s(Rt),reference:O,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:s(fe),strong:s(Bt),thematicBreak:s(An)},exit:{atxHeading:c(),atxHeadingSequence:V,autolink:c(),autolinkEmail:Ae,autolinkProtocol:ue,blockQuote:c(),characterEscapeValue:W,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:we,characterReference:Ee,codeFenced:c(T),codeFencedFence:E,codeFencedFenceInfo:g,codeFencedFenceMeta:v,codeFlowValue:W,codeIndented:c(_),codeText:c(xe),codeTextData:W,data:W,definition:c(),definitionDestinationString:P,definitionLabelString:A,definitionTitleString:R,emphasis:c(),hardBreakEscape:c($),hardBreakTrailing:c($),htmlFlow:c(ae),htmlFlowData:W,htmlText:c(J),htmlTextData:W,image:c(ce),label:be,labelText:se,lineEnding:z,link:c(ee),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:K,resourceDestinationString:Z,resourceTitleString:ne,resource:B,setextHeading:c(H),setextHeadingLineSequence:D,setextHeadingText:U,strong:c(),thematicBreak:c()}};zP(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(Be){let nt={type:"root",children:[]};const bt={stack:[nt],tokenStack:[],config:t,enter:o,exit:d,buffer:i,resume:f,data:n},ut=[];let Et=-1;for(;++Et<Be.length;
vendor: 16,330 bytes, lines 572-576
572)if(Be[Et][1].type==="listOrdered"||Be[Et][1].type==="listUnordered")if(Be[Et][0]==="enter")ut.push(Et);else{const Ct=ut.pop();Et=a(Be,Ct,Et)}for(Et=-1;++Et<Be.length;){const Ct=t[Be[Et][0]];FP.call(Ct,Be[Et][1].type)&&Ct[Be[Et][1].type].call(Object.assign({sliceSerialize:Be[Et][2].sliceSerialize},bt),Be[Et][1])}if(bt.tokenStack.length>0){const Ct=bt.tokenStack[bt.tokenStack.length-1];(Ct[1]||GT).call(bt,void 0,Ct[0])}for(nt.position={start:Pd(Be.length>0?Be[0][1].start:{line:1,column:1,offset:0}),end:Pd(Be.length>0?Be[Be.length-2][1].end:{line:1,column:1,offset:0})},Et=-1;++Et<t.transforms.length;)nt=t.transforms[Et](nt)||nt;return nt}function a(Be,nt,bt){let ut=nt-1,Et=-1,Ct=!1,In,hn,Yt,tn;for(;++ut<=bt;){const an=Be[ut];switch(an[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{an[0]==="enter"?Et++:Et--,tn=void 0;break}case"lineEndingBlank":{an[0]==="enter"&&(In&&!tn&&!Et&&!Yt&&(Yt=ut),tn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:tn=void 0}if(!Et&&an[0]==="enter"&&an[1].type==="listItemPrefix"||Et===-1&&an[0]==="exit"&&(an[1].type==="listUnordered"||an[1].type==="listOrdered")){if(In){let Ut=ut;for(hn=void 0;Ut--;){const Ln=Be[Ut];if(Ln[1].type==="lineEnding"||Ln[1].type==="lineEndingBlank"){if(Ln[0]==="exit")continue;hn&&(Be[hn][1].type="lineEndingBlank",Ct=!0),Ln[1].type="lineEnding",hn=Ut}else if(!(Ln[1].type==="linePrefix"||Ln[1].type==="blockQuotePrefix"||Ln[1].type==="blockQuotePrefixWhitespace"||Ln[1].type==="blockQuoteMarker"||Ln[1].type==="listItemIndent"))break}Yt&&(!hn||Yt<hn)&&(In._spread=!0),In.end=Object.assign({},hn?Be[hn][1].start:an[1].end),Be.splice(hn||ut,0,["exit",In,an[2]]),ut++,bt++}if(an[1].type==="listItemPrefix"){const Ut={type:"listItem",_spread:!1,start:Object.assign({},an[1].start),end:void 0};In=Ut,Be.splice(ut,0,["enter",Ut,an[2]]),ut++,bt++,Yt=void 0,tn=!0}}}return Be[nt][1]._spread=Ct,bt}function s(Be,nt){return bt;function bt(ut){o.call(this,Be(ut),ut),nt&&nt.call(this,ut)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(Be,nt,bt){this.stack[this.stack.length-1].children.push(Be),this.stack.push(Be),this.tokenStack.push([nt,bt||void 0]),Be.position={start:Pd(nt.start),end:void 0}}function c(Be){return nt;function nt(bt){Be&&Be.call(this,bt),d.call(this,bt)}}function d(Be,nt){const bt=this.stack.pop(),ut=this.tokenStack.pop();if(ut)ut[0].type!==Be.type&&(nt?nt.call(this,Be,ut[0]):(ut[1]||GT).call(this,Be,ut[0]));else throw new Error("Cannot close `"+Be.type+"` ("+Zm({start:Be.start,end:Be.end})+"): itâs not open");bt.position.end=Pd(Be.end)}function f(){return r8(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function b(Be){if(this.data.expectingFirstListItemValue){const nt=this.stack[this.stack.length-2];nt.start=Number.parseInt(this.sliceSerialize(Be),10),this.data.expectingFirstListItemValue=void 0}}function g(){const Be=this.resume(),nt=this.stack[this.stack.length-1];nt.lang=Be}function v(){const Be=this.resume(),nt=this.stack[this.stack.length-1];nt.meta=Be}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const Be=this.resume(),nt=this.stack[this.stack.length-1];nt.value=Be.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const Be=this.resume(),nt=this.stack[this.stack.length-1];nt.value=Be.replace(/(\r?\n|\r)$/g,"")}function A(Be){const nt=this.resume(),bt=this.stack[this.stack.length-1];bt.label=nt,bt.identifier=Nl(this.sliceSerialize(Be)).toLowerCase()}function R(){const Be=this.resume(),nt=this.stack[this.stack.length-1];nt.title=Be}function P(){const Be=this.resume(),nt=this.stack[this.stack.length-1];nt.url=Be}function V(Be){const nt=this.stack[this.stack.length-1];if(!nt.depth){const bt=this.sliceSerialize(Be).length;nt.depth=bt}}function U(){this.data.setextHeadingSlurpLineEnding=!0}function D(Be){const nt=this.stack[this.stack.length-1];nt.depth=this.sliceSerialize(Be).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function q(Be){const bt=this.stack[this.stack.length-1].children;let ut=bt[bt.length-1];(!ut||ut.type!=="text")&&(ut=mn(),ut.position={start:Pd(Be.start),end:void 0},bt.push(ut)),this.stack.push(ut)}function W(Be){const nt=this.stack.pop();nt.value+=this.sliceSerialize(Be),nt.position.end=Pd(Be.end)}function z(Be){const nt=this.stack[this.stack.length-1];if(this.data.atHardBreak){const bt=nt.children[nt.children.length-1];bt.position.end=Pd(Be.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(nt.type)&&(q.call(this,Be),W.call(this,Be))}function $(){this.data.atHardBreak=!0}function ae(){const Be=this.resume(),nt=this.stack[this.stack.length-1];nt.value=Be}function J(){const Be=this.resume(),nt=this.stack[this.stack.length-1];nt.value=Be}function xe(){const Be=this.resume(),nt=this.stack[this.stack.length-1];nt.value=Be}function ee(){const Be=this.stack[this.stack.length-1];if(this.data.inReference){const nt=this.data.referenceType||"shortcut";Be.type+="Reference",Be.referenceType=nt,delete Be.url,delete Be.title}else delete Be.identifier,delete Be.label;this.data.referenceType=void 0}function ce(){const Be=this.stack[this.stack.length-1];if(this.data.inReference){const nt=this.data.referenceType||"shortcut";Be.type+="Reference",Be.referenceType=nt,delete Be.url,delete Be.title}else delete Be.identifier,delete Be.label;this.data.referenceType=void 0}function se(Be){const nt=this.sliceSerialize(Be),bt=this.stack[this.stack.length-2];bt.label=qae(nt),bt.identifier=Nl(nt).toLowerCase()}function be(){const Be=this.stack[this.stack.length-1],nt=this.resume(),bt=this.stack[this.stack.length-1];if(this.data.inReference=!0,bt.type==="link"){const ut=Be.children;bt.children=ut}else bt.alt=nt}function Z(){const Be=this.resume(),nt=this.stack[this.stack.length-1];nt.url=Be}function ne(){const Be=this.resume(),nt=this.stack[this.stack.length-1];nt.title=Be}function B(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function K(Be){const nt=this.resume(),bt=this.stack[this.stack.length-1];bt.label=nt,bt.identifier=Nl(this.sliceSerialize(Be)).toLowerCase(),this.data.referenceType="full"}function he(Be){this.data.characterReferenceType=Be.type}function we(Be){const nt=this.sliceSerialize(Be),bt=this.data.characterReferenceType;let ut;bt?(ut=AP(nt,bt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ut=a8(nt);const Et=this.stack[this.stack.length-1];Et.value+=ut}function Ee(Be){const nt=this.stack.pop();nt.position.end=Pd(Be.end)}function ue(Be){W.call(this,Be);const nt=this.stack[this.stack.length-1];nt.url=this.sliceSerialize(Be)}function Ae(Be){W.call(this,Be);const nt=this.stack[this.stack.length-1];nt.url="mailto:"+this.sliceSerialize(Be)}function Ie(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function st(){return{type:"inlineCode",value:""}}function mt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _t(){return{type:"emphasis",children:[]}}function fe(){return{type:"heading",depth:0,children:[]}}function yt(){return{type:"break"}}function rn(){return{type:"html",value:""}}function Ht(){return{type:"image",title:null,url:"",alt:null}}function tt(){return{type:"link",title:null,url:"",children:[]}}function Kt(Be){return{type:"list",ordered:Be.type==="listOrdered",start:null,spread:Be._spread,children:[]}}function Lt(Be){return{type:"listItem",spread:Be._spread,checked:null,children:[]}}function Rt(){return{type:"paragraph",children:[]}}function Bt(){return{type:"strong",children:[]}}function mn(){return{type:"text",value:""}}function An(){return{type:"thematicBreak"}}}function Pd(e){return{line:e.line,column:e.column,offset:e.offset}}function zP(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?zP(e,r):Wae(e,r)}}function Wae(e,t){let n;for(n in t)if(FP.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function GT(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Zm({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Zm({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Zm({start:t.start,end:t.end})+") is still open")}function Yae(e){const t=this;t.parser=n;function n(r){return Gae(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Qae(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Xae(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 573`}]}function Kae(e,t){const n=t.value?t.value+` 574`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function Jae(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Zae(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ese(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=Cp(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let i,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=s+1,o+=1,e.footnoteCounts.set(r,o);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,c);const d={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,d),e.applyData(t,d)}function tse(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nse(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function HP(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),s=a[0];s&&s.type==="text"?s.value="["+s.value:a.unshift({type:"text",value:"["});const i=a[a.length-1];return i&&i.type==="text"?i.value+=r:a.push({type:"text",value:r}),a}function rse(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return HP(e,t);const a={src:Cp(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,s),e.applyData(t,s)}function ase(e,t){const n={src:Cp(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function sse(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ise(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return HP(e,t);const a={href:Cp(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function ose(e,t){const n={href:Cp(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lse(e,t,n){const r=e.all(t),a=n?cse(n):UP(t),s={},i=[];if(typeof t.checked=="boolean"){const f=r[0];let m;f&&f.type==="element"&&f.tagName==="p"?m=f:(m={type:"element",tagName:"p",properties:{},children:[]},r.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const f=r[o];(a||o!==0||f.type!=="element"||f.tagName!=="p")&&i.push({type:"text",value:` 575`}),f.type==="element"&&f.tagName==="p"&&!a?i.push(...f.children):i.push(f)}const c=r[r.length-1];c&&(a||c.type!=="element"||c.tagName!=="p")&&i.push({type:"text",value:` 576`});const d={type:"element",tagName:"li",properties:s,children:i};return e.patch(t,d),e.applyData(t,d)}function cse(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=UP(n[r])}return t}function UP(e){const t=e.spread;return t??e.children.length>1}function use(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const i=r[a];if(i.type==="element"&&i.tagName==="li"&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function dse(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hse(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function fse(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pse(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const i={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],i),a.push(i)}if(n.length>0){const i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Ic(t.children[1]),c=$5(t.children[t.children.length-1]);o&&c&&(i.position={start:o,end:c}),a.push(i)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function mse(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",i=n&&n.type==="table"?n.align:void 0,o=i?i.length:t.children.length;let c=-1;const d=[];for(;++c<o;){const m=t.children[c],b={},g=i?i[c]:void 0;g&&(b.align=g);let v={type:"element",tagName:s,properties:b,children:[]};m&&(v.children=e.all(m),e.patch(m,v),v=e.applyData(m,v)),d.push(v)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,f),e.applyData(t,f)}function gse(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const $T=9,WT=32;function xse(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const s=[];for(;r;)s.push(YT(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return s.push(YT(t.slice(a),a>0,!1)),s.join("")}function YT(e,t,n){let r=0,a=e.length;if(t){let s=e.codePointAt(r);for(;s===$T||s===WT;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(a-1);for(;s===$T||s===WT;)a--,s=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function bse(e,t){const n={type:"text",value:xse(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function yse(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const vse={blockquote:Qae,break:Xae,code:Kae,delete:Jae,emphasis:Zae,footnoteReference:ese,heading:tse,html:nse,imageReference:rse,image:ase,inlineCode:sse,linkReference:ise,link:ose,listItem:lse,list:use,paragraph:dse,root:hse,strong:fse,table:pse,tableCell:gse,tableRow:mse,text:bse,thematicBreak:yse,toml:_2,yaml:_2,definition:_2,footnoteDefinition:_2};function _2(){}const qP=-1,Q5=0,t1=1,qx=2,i8=3,o8=4,l8=5,c8=6,VP=7,GP=8,QT=typeof self=="object"?self:globalThis,wse=(e,t)=>{const n=(a,s)=>(e.set(s,a),a),r=a=>{if(e.has(a))return e.get(a);const[s,i]=t[a];switch(s){case Q5:case qP:return n(i,a);case t1:{const o=n([],a);
vendor: 4,186 bytes, line 576
576for(const c of i)o.push(r(c));return o}case qx:{const o=n({},a);for(const[c,d]of i)o[r(c)]=r(d);return o}case i8:return n(new Date(i),a);case o8:{const{source:o,flags:c}=i;return n(new RegExp(o,c),a)}case l8:{const o=n(new Map,a);for(const[c,d]of i)o.set(r(c),r(d));return o}case c8:{const o=n(new Set,a);for(const c of i)o.add(r(c));return o}case VP:{const{name:o,message:c}=i;return n(new QT[o](c),a)}case GP:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:o}=new Uint8Array(i);return n(new DataView(o),i)}}return n(new QT[s](i),a)};return r},XT=e=>wse(new Map,e)(0),_f="",{toString:Sse}={},{keys:Ese}=Object,Lm=e=>{const t=typeof e;if(t!=="object"||!e)return[Q5,t];const n=Sse.call(e).slice(8,-1);switch(n){case"Array":return[t1,_f];case"Object":return[qx,_f];case"Date":return[i8,_f];case"RegExp":return[o8,_f];case"Map":return[l8,_f];case"Set":return[c8,_f];case"DataView":return[t1,n]}return n.includes("Array")?[t1,n]:n.includes("Error")?[VP,n]:[qx,n]},T2=([e,t])=>e===Q5&&(t==="function"||t==="symbol"),kse=(e,t,n,r)=>{const a=(i,o)=>{const c=r.push(i)-1;return n.set(o,c),c},s=i=>{if(n.has(i))return n.get(i);let[o,c]=Lm(i);switch(o){case Q5:{let f=i;switch(c){case"bigint":o=GP,f=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);f=null;break;case"undefined":return a([qP],i)}return a([o,f],i)}case t1:{if(c){let b=i;return c==="DataView"?b=new Uint8Array(i.buffer):c==="ArrayBuffer"&&(b=new Uint8Array(i)),a([c,[...b]],i)}const f=[],m=a([o,f],i);for(const b of i)f.push(s(b));return m}case qx:{if(c)switch(c){case"BigInt":return a([c,i.toString()],i);case"Boolean":case"Number":case"String":return a([c,i.valueOf()],i)}if(t&&"toJSON"in i)return s(i.toJSON());const f=[],m=a([o,f],i);for(const b of Ese(i))(e||!T2(Lm(i[b])))&&f.push([s(b),s(i[b])]);return m}case i8:return a([o,i.toISOString()],i);case o8:{const{source:f,flags:m}=i;return a([o,{source:f,flags:m}],i)}case l8:{const f=[],m=a([o,f],i);for(const[b,g]of i)(e||!(T2(Lm(b))||T2(Lm(g))))&&f.push([s(b),s(g)]);return m}case c8:{const f=[],m=a([o,f],i);for(const b of i)(e||!T2(Lm(b)))&&f.push(s(b));return m}}const{message:d}=i;return a([o,{name:c,message:d}],i)};return s},KT=(e,{json:t,lossy:n}={})=>{const r=[];return kse(!(t||n),!!t,new Map,r)(e),r},cp=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?XT(KT(e,t)):structuredClone(e):(e,t)=>XT(KT(e,t));function _se(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Tse(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Cse(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||_se,r=e.options.footnoteBackLabel||Tse,a=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let c=-1;for(;++c<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[c]);if(!d)continue;const f=e.all(d),m=String(d.identifier).toUpperCase(),b=Cp(m.toLowerCase());let g=0;const v=[],E=e.footnoteCounts.get(m);for(;E!==void 0&&++g<=E;){v.length>0&&v.push({type:"text",value:" "});let A=typeof n=="string"?n:n(c,g);typeof A=="string"&&(A={type:"text",value:A}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,g),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const T=f[f.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const A=T.children[T.children.length-1];A&&A.type==="text"?A.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...v)}else f.push(...v);const _={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(f,!0)};e.patch(d,_),o.push(_)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...cp(i),id:"footnote-label"},children:[{type:"text",value:a}]}
vendor: 5,683 bytes, lines 576-582
576,{type:"text",value:` 577`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:` 578`}]}}const Z1=(function(e){if(e==null)return Mse;if(typeof e=="function")return X5(e);if(typeof e=="object")return Array.isArray(e)?Nse(e):Ase(e);if(typeof e=="string")return Lse(e);throw new Error("Expected function, string, or object as test")});function Nse(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Z1(e[n]);return X5(r);function r(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function Ase(e){const t=e;return X5(n);function n(r){const a=r;let s;for(s in e)if(a[s]!==t[s])return!1;return!0}}function Lse(e){return X5(t);function t(n){return n&&n.type===e}}function X5(e){return t;function t(n,r,a){return!!(Rse(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Mse(){return!0}function Rse(e){return e!==null&&typeof e=="object"&&"type"in e}const $P=[],Fm=!0,W3=!1,Vx="skip";function u8(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const s=Z1(a),i=r?-1:1;o(e,void 0,[])();function o(c,d,f){const m=c&&typeof c=="object"?c:{};if(typeof m.type=="string"){const g=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(c.type+(g?"<"+g+">":""))+")"})}return b;function b(){let g=$P,v,E,T;if((!t||s(c,d,f[f.length-1]||void 0))&&(g=Ose(n(c,f)),g[0]===W3))return g;if("children"in c&&c.children){const _=c;if(_.children&&g[0]!==Vx)for(E=(r?_.children.length:-1)+i,T=f.concat(_);E>-1&&E<_.children.length;){const A=_.children[E];if(v=o(A,E,T)(),v[0]===W3)return v;E=typeof v[1]=="number"?v[1]:E+i}}return g}}}function Ose(e){return Array.isArray(e)?e:typeof e=="number"?[Fm,e]:e==null?$P:[e]}function xh(e,t,n,r){let a,s,i;typeof t=="function"&&typeof n!="function"?(s=void 0,i=t,a=n):(s=t,i=n,a=r),u8(e,s,o,a);function o(c,d){const f=d[d.length-1],m=f?f.children.indexOf(c):void 0;return i(c,m,f)}}const Y3={}.hasOwnProperty,Pse={};function jse(e,t){const n=t||Pse,r=new Map,a=new Map,s=new Map,i={...vse,...n.handlers},o={all:d,applyData:Ise,definitionById:r,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:i,one:c,options:n,patch:Dse,wrap:Fse};return xh(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const m=f.type==="definition"?r:a,b=String(f.identifier).toUpperCase();m.has(b)||m.set(b,f)}}),o;function c(f,m){const b=f.type,g=o.handlers[b];if(Y3.call(o.handlers,b)&&g)return g(o,f,m);if(o.options.passThrough&&o.options.passThrough.includes(b)){if("children"in f){const{children:E,...T}=f,_=cp(T);return _.children=o.all(f),_}return cp(f)}return(o.options.unknownHandler||Bse)(o,f,m)}function d(f){const m=[];if("children"in f){const b=f.children;let g=-1;for(;++g<b.length;){const v=o.one(b[g],f);if(v){if(g&&b[g-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=JT(v.value)),!Array.isArray(v)&&v.type==="element")){const E=v.children[0];E&&E.type==="text"&&(E.value=JT(E.value))}Array.isArray(v)?m.push(...v):m.push(v)}}}return m}}function Dse(e,t){e.position&&(t.position=Tne(e))}function Ise(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const i="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:i}}n.type==="element"&&s&&Object.assign(n.properties,cp(s)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function Bse(e,t){const n=t.data||{},r="value"in t&&!(Y3.call(n,"hProperties")||Y3.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Fse(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 579`});++r<e.length;)r&&n.push({type:"text",value:` 580`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 581`}),n}function JT(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ZT(e,t){const n=jse(e,t),r=n.one(e,void 0),a=Cse(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&s.children.push({type:"text",value:` 582`},a),s}function zse(e,t){return e&&"run"in e?async function(n,r){const a=ZT(n,{file:r,...t});await e.run(a,r)}:function(n,r){return ZT(n,{file:r,...e||t})}}function eC(e){if(e)throw e}var B4,tC;function Hse(){if(tC)return B4;tC=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},s=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var f=e.call(d,"constructor"),m=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!f&&!m)return!1;var b;for(b in d);return typeof b>"u"||e.call(d,b)},i=function(d,f){n&&f.name==="__proto__"?n(d,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):d[f.name]=f.newValue},o=function(d,f){if(f==="__proto__")if(e.call(d,f)){if(r)return r(d,f).value}else return;return d[f]};return B4=function c(){var d,f,m,b,g,v,E=arguments[0],T=1,_=arguments.length,A=!1;for(typeof E=="boolean"&&(A=E,E=arguments[1]||{},T=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});T<_;++T)if(d=arguments[T],d!=null)for(f in d)m=o(E,f),b=o(d,f),E!==b&&(A&&b&&(s(b)||(g=a(b)))?(g?(g=!1,v=m&&a(m)?m:[]):v=m&&s(m)?m:{},i(E,{name:f,newValue:c(A,v,b)})):typeof b<"u"&&i(E,{name:f,newValue:b}));return E},B4}var Use=Hse();const F4=x5(Use);function Q3(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);
vendor: 4,474 bytes, line 582
582return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qse(){const e=[],t={run:n,use:r};return t;function n(...a){let s=-1;const i=a.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);o(null,...a);function o(c,...d){const f=e[++s];let m=-1;if(c){i(c);return}for(;++m<a.length;)(d[m]===null||d[m]===void 0)&&(d[m]=a[m]);a=d,f?Vse(f,o)(...d):i(null,...d)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Vse(e,t){let n;return r;function r(...i){const o=e.length>i.length;let c;o&&i.push(a);try{c=e.apply(this,i)}catch(d){const f=d;if(o&&n)throw f;return a(f)}o||(c&&c.then&&typeof c.then=="function"?c.then(s,a):c instanceof Error?a(c):s(c))}function a(i,...o){n||(n=!0,t(i,...o))}function s(i){a(null,i)}}const bc={basename:Gse,dirname:$se,extname:Wse,join:Yse,sep:"/"};function Gse(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');eg(e);let n=0,r=-1,a=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else r<0&&(s=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let i=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else i<0&&(s=!0,i=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(r=a):(o=-1,r=i));return n===r?r=i:r<0&&(r=e.length),e.slice(n,r)}function $se(e){if(eg(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Wse(e){eg(e);let t=e.length,n=-1,r=0,a=-1,s=0,i;for(;t--;){const o=e.codePointAt(t);if(o===47){if(i){r=t+1;break}continue}n<0&&(i=!0,n=t+1),o===46?a<0?a=t:s!==1&&(s=1):a>-1&&(s=-1)}return a<0||n<0||s===0||s===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Yse(...e){let t=-1,n;for(;++t<e.length;)eg(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Qse(n)}function Qse(e){eg(e);const t=e.codePointAt(0)===47;let n=Xse(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Xse(e,t){let n="",r=0,a=-1,s=0,i=-1,o,c;for(;++i<=e.length;){if(i<e.length)o=e.codePointAt(i);else{if(o===47)break;o=47}if(o===47){if(!(a===i-1||s===1))if(a!==i-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),a=i,s=0;continue}}else if(n.length>0){n="",r=0,a=i,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,i):n=e.slice(a+1,i),r=i-a-1;a=i,s=0}else o===46&&s>-1?s++:s=-1}return n}function eg(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Kse={cwd:Jse};function Jse(){return"/"}function X3(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Zse(e){if(typeof e=="string")e=new URL(e);else if(!X3(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return eie(e)}function eie(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const z4=["history","path","basename","stem","extname","dirname"];class WP{constructor(t){let n;t?X3(t)?n={path:t}:typeof t=="string"||tie(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Kse.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<z4.length;){const s=z4[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let a;for(a in n)z4.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?bc.basename(this.path):void 0}
vendor: 4,241 bytes, line 582
582set basename(t){U4(t,"basename"),H4(t,"basename"),this.path=bc.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?bc.dirname(this.path):void 0}set dirname(t){nC(this.basename,"dirname"),this.path=bc.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?bc.extname(this.path):void 0}set extname(t){if(H4(t,"extname"),nC(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=bc.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){X3(t)&&(t=Zse(t)),U4(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?bc.basename(this.path,this.extname):void 0}set stem(t){U4(t,"stem"),H4(t,"stem"),this.path=bc.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new ti(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function H4(e,t){if(e&&e.includes(bc.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+bc.sep+"`")}function U4(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function nC(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function tie(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const nie=(function(e){const r=this.constructor.prototype,a=r[e],s=function(){return a.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),rie={}.hasOwnProperty;class d8 extends nie{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=qse()}copy(){const t=new d8;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(F4(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(G4("data",this.frozen),this.namespace[t]=n,this):rie.call(this.namespace,t)&&this.namespace[t]||void 0:t?(G4("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=C2(t),r=this.parser||this.Parser;return q4("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),q4("process",this.parser||this.Parser),V4("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(s,i){const o=C2(t),c=r.parse(o);r.run(c,o,function(f,m,b){if(f||!m||!b)return d(f);const g=m,v=r.stringify(g,b);iie(v)?b.value=v:b.result=v,d(f,b)});function d(f,m){f||!m?i(f):s?s(m):n(void 0,m)}}}processSync(t){let n=!1,r;return this.freeze(),q4("processSync",this.parser||this.Parser),V4("processSync",this.compiler||this.Compiler),this.process(t,a),aC("processSync","process",n),r;function a(s,i){n=!0,eC(s),r=i}}run(t,n,r){rC(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(i,o){const c=C2(n);a.run(t,c,d);function d(f,m,b){const g=m||t;f?o(f):i?i(g):r(void 0,g,b)}}}runSync(t,n){let r=!1,a;return this.run(t,n,s),aC("runSync","run",r),a;function s(i,o){eC(i),a=o,r=!0}}stringify(t,n){this.freeze();const r=C2(n),a=this.compiler||this.Compiler;return V4("stringify",a),rC(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(G4("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):i(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(d){if(typeof d=="function")c(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[f,...m]=d;c(f,m)}
vendor: 5,227 bytes, line 582
582else i(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function i(d){if(!("plugins"in d)&&!("settings"in d))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(d.plugins),d.settings&&(a.settings=F4(!0,a.settings,d.settings))}function o(d){let f=-1;if(d!=null)if(Array.isArray(d))for(;++f<d.length;){const m=d[f];s(m)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function c(d,f){let m=-1,b=-1;for(;++m<r.length;)if(r[m][0]===d){b=m;break}if(b===-1)r.push([d,...f]);else if(f.length>0){let[g,...v]=f;const E=r[b][1];Q3(E)&&Q3(g)&&(g=F4(!0,E,g)),r[b]=[d,g,...v]}}}}const aie=new d8().freeze();function q4(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function V4(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function G4(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function rC(e){if(!Q3(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function aC(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function C2(e){return sie(e)?e:new WP(e)}function sie(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function iie(e){return typeof e=="string"||oie(e)}function oie(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const lie="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",sC=[],iC={allowDangerousHtml:!0},cie=/^(https?|ircs?|mailto|xmpp)$/i,uie=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function die(e){const t=hie(e),n=fie(e);return pie(t.runSync(t.parse(n),n),e)}function hie(e){const t=e.rehypePlugins||sC,n=e.remarkPlugins||sC,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...iC}:iC;return aie().use(Yae).use(n).use(zse,r).use(t)}function fie(e){const t=e.children||"",n=new WP;return typeof t=="string"&&(n.value=t),n}function pie(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,s=t.disallowedElements,i=t.skipHtml,o=t.unwrapDisallowed,c=t.urlTransform||mie;for(const f of uie)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+lie+f.id,void 0);return xh(e,d),Mne(e,{Fragment:h.Fragment,components:a,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function d(f,m,b){if(f.type==="raw"&&b&&typeof m=="number")return i?b.children.splice(m,1):b.children[m]={type:"text",value:f.value},m;if(f.type==="element"){let g;for(g in j4)if(Object.hasOwn(j4,g)&&Object.hasOwn(f.properties,g)){const v=f.properties[g],E=j4[g];(E===null||E.includes(f.tagName))&&(f.properties[g]=c(String(v||""),g,f))}}if(f.type==="element"){let g=n?!n.includes(f.tagName):s?s.includes(f.tagName):!1;if(!g&&r&&typeof m=="number"&&(g=!r(f,m,b)),g&&b&&typeof m=="number")return o&&f.children?b.children.splice(m,1,...f.children):b.children.splice(m,1),m}}}function mie(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||cie.test(e.slice(0,t))?e:""}const oC=/[#.]/g;function gie(e,t){const n=e||"",r={};let a=0,s,i;for(;a<n.length;){oC.lastIndex=a;const o=oC.exec(n),c=n.slice(a,o?o.index:n.length);c&&(s?s==="#"?r.id=c:Array.isArray(r.className)?r.className.push(c):r.className=[c]:i=c,a+=c.length),o&&(s=o[0],a++)}return{type:"element",tagName:i||t||"div",properties:r,children:[]}}function YP(e,t,n){const r=n?vie(n):void 0;function a(s,i,...o){let c;if(s==null){c={type:"root",children:[]};const d=i;o.unshift(d)}else{c=gie(s,t);const d=c.tagName.toLowerCase(),f=r?r.get(d):void 0;if(c.tagName=f||d,xie(i))o.unshift(i);else for(const[m,b]of Object.entries(i))bie(e,c.properties,m,b)}for(const d of o)K3(c.children,d);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function xie(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;
vendor: 10,336 bytes, lines 582-584
582if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const s=a;for(const i of s)if(typeof i!="number"&&typeof i!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function bie(e,t,n,r){const a=G5(e,n);let s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?a.spaceSeparated?s=NT(r):a.commaSeparated?s=ET(r):a.commaOrSpaceSeparated?s=NT(ET(r).join(" ")):s=lC(a,a.property,r):Array.isArray(r)?s=[...r]:s=a.property==="style"?yie(r):String(r);if(Array.isArray(s)){const i=[];for(const o of s)i.push(lC(a,a.property,o));s=i}a.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[a.property]=s}}function K3(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(const n of t)K3(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?K3(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function lC(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||A1(n)===A1(t)))return!0}return n}function yie(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function vie(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const wie=["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"],QP=YP(K1,"div"),XP=YP(c0,"g",wie),_c={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Sie(e,t){return KP(e,{})||{type:"root",children:[]}}function KP(e,t){const n=Eie(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Eie(e,t){switch(e.nodeType){case 1:return Cie(e,t);case 3:return _ie(e);case 8:return Tie(e);case 9:return cC(e,t);case 10:return kie();case 11:return cC(e,t);default:return}}function cC(e,t){return{type:"root",children:JP(e,t)}}function kie(){return{type:"doctype"}}function _ie(e){return{type:"text",value:e.nodeValue||""}}function Tie(e){return{type:"comment",value:e.nodeValue||""}}function Cie(e,t){const n=e.namespaceURI,r=n===_c.svg?XP:QP,a=n===_c.html?e.tagName.toLowerCase():e.tagName,s=n===_c.html&&a==="template"?e.content:e,i=e.getAttributeNames(),o={};let c=-1;for(;++c<i.length;)o[i[c]]=e.getAttribute(i[c])||"";return r(a,o,JP(s,t))}function JP(e,t){const n=e.childNodes,r=[];let a=-1;for(;++a<n.length;){const s=KP(n[a],t);s!==void 0&&r.push(s)}return r}new DOMParser;function Nie(e,t){const n=Aie(e);return Sie(n)}function Aie(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const uC=(function(e,t,n){const r=Z1(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]}),Th=(function(e){if(e==null)return Rie;if(typeof e=="string")return Mie(e);if(typeof e=="object")return Lie(e);if(typeof e=="function")return h8(e);throw new Error("Expected function, string, or array as `test`")});function Lie(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Th(e[n]);return h8(r);function r(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function Mie(e){return h8(t);function t(n){return n.tagName===e}}function h8(e){return t;function t(n,r,a){return!!(Oie(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Rie(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Oie(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const dC=/\n/g,hC=/[\t ]+/g,J3=Th("br"),fC=Th(Hie),Pie=Th("p"),pC=Th("tr"),jie=Th(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",zie,Uie]),ZP=Th(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Die(e,t){const n=t||{},r="children"in e?e.children:[],a=ZP(e),s=nj(e,{whitespace:n.whitespace||"normal"}),i=[];(e.type==="text"||e.type==="comment")&&i.push(...tj(e,{breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<r.length;)i.push(...ej(r[o],e,{whitespace:s,breakBefore:o?void 0:a,breakAfter:o<r.length-1?J3(r[o+1]):a}));const c=[];let d;for(o=-1;++o<i.length;){const f=i[o];typeof f=="number"?d!==void 0&&f>d&&(d=f):f&&(d!==void 0&&d>-1&&c.push(` 583`.repeat(d)||" "),d=-1,c.push(f))}return c.join("")}function ej(e,t,n){return e.type==="element"?Iie(e,t,n):e.type==="text"?n.whitespace==="normal"?tj(e,n):Bie(e):[]}function Iie(e,t,n){const r=nj(e,n),a=e.children||[];let s=-1,i=[];if(jie(e))return i;let o,c;for(J3(e)||pC(e)&&uC(t,e,pC)?c=` 584`:Pie(e)?(o=2,c=2):ZP(e)&&(o=1,c=1);++s<a.length;)i=i.concat(ej(a[s],e,{whitespace:r,breakBefore:s?void 0:o,breakAfter:s<a.length-1?J3(a[s+1]):c}));return fC(e)&&uC(t,e,fC)&&i.push(" "),o&&i.unshift(o),c&&i.push(c),i}function tj(e,t){const n=String(e.value),r=[],a=[];let s=0;for(;s<=n.length;){dC.lastIndex=s;const c=dC.exec(n),d=c&&"index"in c?c.index:n.length;r.push(Fie(n.slice(s,d).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?t.breakBefore:!0,d===n.length?t.breakAfter:!0)),s=d+1}let i=-1,o;for(;++i<r.length;)r[i].charCodeAt(r[i].length-1)===8203||i<r.length-1&&r[i+1].charCodeAt(0)===8203?(a.push(r[i]),o=void 0):r[i]?(typeof o=="number"&&a.push(o),a.push(r[i]),o=0):(i===0||i===r.length-1)&&a.push(0);return a}function Bie(e){return[String(e.value)]}function Fie(e,t,n){const r=[];let a=0,s;for(;a<e.length;){hC.lastIndex=a;const i=hC.exec(e);s=i?i.index:e.length,!a&&!s&&i&&!t&&r.push(""),a!==s&&r.push(e.slice(a,s)),a=i?s+i[0].length:s}return a!==s&&!n&&r.push(""),r.join(" ")}function nj(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function zie(e){return!!(e.properties||{}).hidden}function Hie(e){return e.tagName==="td"||e.tagName==="th"}function Uie(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class Hi{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new Hi(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Eo{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new Eo(n,Hi.range(this,t))}}class pt{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,a,s,i=n&&n.loc;if(i&&i.start<=i.end){var o=i.lexer.input;a=i.start,s=i.end,a===o.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var c=o.slice(a,s).replace(/[^]/g,"$&̲"),d;a>15?d="â¦"+o.slice(a-15,a):d=o.slice(0,a);var f;s+15<o.length?f=o.slice(s,s+15)+"â¦":f=o.slice(s),r+=d+c+f}var m=new Error(r);return m.name="ParseError",m.__proto__=pt.prototype,m.position=a,a!=null&&s!=null&&(m.length=s-a),m.rawMessage=t,m}}pt.prototype.__proto__=Error.prototype;var qie=function(t,n){return t===void 0?n:t},Vie=/([A-Z])/g,Gie=function(t){return t.replace(Vie,"-$1").toLowerCase()},$ie={"&":"&",">":">","<":"<",'"':""","'":"'"},Wie=/[&><"']/g;function Yie(e){return String(e).replace(Wie,t=>$ie[t])}var rj=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},Qie=function(t){var n=rj(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},Xie=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},Kie=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},lr={deflt:qie,escape:Yie,hyphenate:Gie,getBaseElem:rj,isCharacterBox:Qie,protocolFromUrl:Kie},n1={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>
vendor: 4,531 bytes, line 584
584(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function Jie(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class f8{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in n1)if(n1.hasOwnProperty(n)){var r=n1[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:Jie(r)}}reportNonstrict(t,n,r){var a=this.strict;if(typeof a=="function"&&(a=a(t,n,r)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new pt("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var a=this.strict;if(typeof a=="function")try{a=a(t,n,r)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=lr.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class jd{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return wc[Zie[this.id]]}sub(){return wc[eoe[this.id]]}fracNum(){return wc[toe[this.id]]}fracDen(){return wc[noe[this.id]]}cramp(){return wc[roe[this.id]]}text(){return wc[aoe[this.id]]}isTight(){return this.size>=2}}var p8=0,Gx=1,Kf=2,Du=3,M1=4,Go=5,up=6,mi=7,wc=[new jd(p8,0,!1),new jd(Gx,0,!0),new jd(Kf,1,!1),new jd(Du,1,!0),new jd(M1,2,!1),new jd(Go,2,!0),new jd(up,3,!1),new jd(mi,3,!0)],Zie=[M1,Go,M1,Go,up,mi,up,mi],eoe=[Go,Go,Go,Go,mi,mi,mi,mi],toe=[Kf,Du,M1,Go,up,mi,up,mi],noe=[Du,Du,Go,Go,mi,mi,mi,mi],roe=[Gx,Gx,Du,Du,Go,Go,mi,mi],aoe=[p8,Gx,Kf,Du,Kf,Du,Kf,Du],dn={DISPLAY:wc[p8],TEXT:wc[Kf],SCRIPT:wc[M1],SCRIPTSCRIPT:wc[up]},Z3=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function soe(e){for(var t=0;t<Z3.length;t++)for(var n=Z3[t],r=0;r<n.blocks.length;r++){var a=n.blocks[r];if(e>=a[0]&&e<=a[1])return n.name}return null}var mx=[];
vendor: 4,413 bytes, lines 584-635
584Z3.forEach(e=>e.blocks.forEach(t=>mx.push(...t)));function aj(e){for(var t=0;t<mx.length;t+=2)if(e>=mx[t]&&e<=mx[t+1])return!0;return!1}var Tf=80,ioe=function(t,n){return"M95,"+(622+t+n)+` 585c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 586c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 587c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 588s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 589c69,-144,104.5,-217.7,106.5,-221 590l`+t/2.075+" -"+t+` 591c5.3,-9.3,12,-14,20,-14 592H400000v`+(40+t)+`H845.2724 593s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 594c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z 595M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},ooe=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 596c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 597c340,-704.7,510.7,-1060.3,512,-1067 598l`+t/2.084+" -"+t+` 599c4.7,-7.3,11,-11,19,-11 600H40000v`+(40+t)+`H1012.3 601s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 602c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 603s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 604c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z 605M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},loe=function(t,n){return"M983 "+(10+t+n)+` 606l`+t/3.13+" -"+t+` 607c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` 608H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 609s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 610c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 611c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 612c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 613c53.7,-170.3,84.5,-266.8,92.5,-289.5z 614M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},coe=function(t,n){return"M424,"+(2398+t+n)+` 615c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 616c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 617s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 618s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 619l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 620v`+(40+t)+`H1014.6 621s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 622c-2,6,-10,9,-24,9 623c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+` 624h400000v`+(40+t)+"h-400000z"},uoe=function(t,n){return"M473,"+(2713+t+n)+` 625c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` 626c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 627s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 628c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 629c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 630s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 631606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},doe=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},hoe=function(t,n,r){var a=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` 632H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 633h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 634c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 635219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},foe=function(t,n,r){n=1e3*n;var a="";switch(t){case"sqrtMain":a=ioe(n,Tf);break;case"sqrtSize1":a=ooe(n,Tf);break;case"sqrtSize2":a=loe(n,Tf);break;case"sqrtSize3":a=coe(n,Tf);break;case"sqrtSize4":a=uoe(n,Tf);break;case"sqrtTall":a=hoe(n,Tf,r)}return a},poe=function(t,n){switch(t){case"â":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"â£":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"â¥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"â":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"â¢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"â¥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"âª":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"â":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"â":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},mC
vendor: 15,381 bytes, lines 635-810
635={doubleleftarrow:`M262 157 636l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 637 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 638 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 639c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 640 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 641-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 642-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z 643m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l 644-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 645 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 646-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 647-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 648-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 649c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 650-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 651 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 652-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 653c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 654 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 655 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 656 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 657-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 658 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 659 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 660 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 661-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 662H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 663 435 0h399565z`,leftgroupunder:`M400000 262 664H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 665 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 666-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 667-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 668-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 669 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 670-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 671-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z 672m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 673 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 674 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 675-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 676 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 677-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 678v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 679-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 680-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 681 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z 682M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z 683M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 684-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 685c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 686 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z 687M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 688c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 689-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 690 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 691 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 692c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 693 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 694 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 695-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 696-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z 697m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 69860.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 699-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z 700m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 701c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 702-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z 703m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 70485.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 705-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z 706m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 707c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 708-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 709 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 710 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 711-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 712-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 713 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l 714-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 715s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 716c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 717 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 718-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 719 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 720 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 721-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 722-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 723 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 724-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 725 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z 726m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 727 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 728-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 729-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 730 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 731 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 732-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z 733m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 734 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 735-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 736 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z 737M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 738 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 739-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 740-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 741 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 742-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 743-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 744-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 745 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 746c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 747 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 748 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 749-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 750 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 751-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 752 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 753 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 754-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 755-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 756 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 757c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 758 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 759-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 760 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 761 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 762 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 763-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 764 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 765 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 766 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 7673.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 76810.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 769-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 770-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 771H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 772c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 773c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 774-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 775-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 776-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, 777-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 778-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 779-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 780-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 781c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 782c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 783s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 784121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 785s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 786c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z 787M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 788-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 78913.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 790-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 791-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 792-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 793151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 794c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 795c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 796c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 797c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z 798M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 799c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 800-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 801c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z 802M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 803c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, 8041c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, 805-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z 806M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 807c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 808-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 809c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z 810M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
vendor: 3,201 bytes, lines 810-838
810moe=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 811H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z 812M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 813c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 814c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 815c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 816c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z 817M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15 818c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 819c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z 820MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z 821MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z 822M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z 823M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 824c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, 825-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 826949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 827c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, 828-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 829l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, 830-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, 83163,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 832c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+` 833c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 834c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 835c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 836c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 837l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, 838-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class tg{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){var t=n=>n.toText();return this.children.map(t).join("")}}var Tc
vendor: 57,629 bytes, line 838
838={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},
vendor: 2,747 bytes, line 838
838N2={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},gC={Ã
:"A",Ã:"D",Ã:"o",Ã¥:"a",ð:"d",þ:"o",Ð:"A",Ð:"B",Ð:"B",Ð:"F",Ð:"A",Ð:"E",Ð:"K",Ð:"3",Ð:"N",Ð:"N",Ð:"K",Ð:"N",Ð:"M",Ð:"H",Ð:"O",Ð:"N",Ð :"P",С:"C",Т:"T",У:"y",Ф:"O",Ð¥:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Ð:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",Ñ:"p",Ñ:"c",Ñ:"o",Ñ:"y",Ñ:"b",Ñ
:"x",Ñ:"n",Ñ:"n",Ñ:"w",Ñ:"w",Ñ:"a",Ñ:"m",Ñ:"a",Ñ:"e",Ñ:"m",Ñ:"r"};function sj(e,t){Tc[e]=t}function m8(e,t,n){if(!Tc[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),a=Tc[t][r];if(!a&&e[0]in gC&&(r=gC[e[0]].charCodeAt(0),a=Tc[t][r]),!a&&n==="text"&&aj(r)&&(a=Tc[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var $4={};function goe(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!$4[t]){var n=$4[t]={cssEmPerMu:N2.quad[t]/18};for(var r in N2)N2.hasOwnProperty(r)&&(n[r]=N2[r][t])}return $4[t]}var xoe=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],xC=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],bC=function(t,n){return n.size<2?t:xoe[t-1][n.size-1]};class Mu{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Mu.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=xC[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,ph
vendor: 12,851 bytes, line 838
838antom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Mu(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:bC(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:xC[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=bC(Mu.BASESIZE,t);return this.size===n&&this.textSize===Mu.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Mu.BASESIZE?["sizing","reset-size"+this.size,"size"+Mu.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=goe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Mu.BASESIZE=6;var e6={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},boe={ex:!0,em:!0,mu:!0},ij=function(t){return typeof t!="string"&&(t=t.unit),t in e6||t in boe||t==="ex"},ma=function(t,n){var r;if(t.unit in e6)r=e6[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var a;if(n.style.isTight()?a=n.havingStyle(n.style.text()):a=n,t.unit==="ex")r=a.fontMetrics().xHeight;else if(t.unit==="em")r=a.fontMetrics().quad;else throw new pt("Invalid unit: '"+t.unit+"'");a!==n&&(r*=a.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},wt=function(t){return+t.toFixed(4)+"em"},a0=function(t){return t.filter(n=>n).join(" ")},oj=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var a=n.getColor();a&&(this.style.color=a)}},lj=function(t){var n=document.createElement(t);n.className=a0(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&n.setAttribute(a,this.attributes[a]);for(var s=0;s<this.children.length;s++)n.appendChild(this.children[s].toNode());return n},yoe=/[\s"'>/=\x00-\x1f]/,cj=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+lr.escape(a0(this.classes))+'"');var r="";for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=lr.hyphenate(a)+":"+this.style[a]+";");r&&(n+=' style="'+lr.escape(r)+'"');for(var s in this.attributes)if(this.attributes.hasOwnProperty(s)){if(yoe.test(s))throw new pt("Invalid attribute name '"+s+"'");n+=" "+s+'="'+lr.escape(this.attributes[s])+'"'}n+=">";for(var i=0;i<this.children.length;i++)n+=this.children[i].toMarkup();return n+="</"+t+">",n};class ng{constructor(t,n,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,oj.call(this,t,r,a),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return lj.call(this,"span")}toMarkup(){return cj.call(this,"span")}}class g8{constructor(t,n,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,oj.call(this,n,a),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return lj.call(this,"a")}toMarkup(){return cj.call(this,"a")}}class voe{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t='<img src="'+lr.escape(this.src)+'"'+(' alt="'+lr.escape(this.alt)+'"'),n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=lr.hyphenate(r)+":"+this.style[r]+";");return n&&(t+=' style="'+lr.escape(n)+'"'),t+="'/>",t}}var woe={î:"ıÌ",ï:"ıÌ",Ã:"ıÌ",ì:"ıÌ"};class Qo{constructor(t,n,r,a,s,i,o,c){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=n||0,this.depth=r||0,this.italic=a||0,this.skew=s||0,this.width=i||0,this.classes=o||[],this.style=c||{},this.maxFontSize=0;var d=soe(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïÃì]/.test(this.text)&&(this.text=woe[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=wt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=a0(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=lr.escape(a0(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=lr.hyphenate(a)+":"+this.style[a]+";");r&&(t=!0,n+=' style="'+lr.escape(r)+'"');var s=lr.escape(this.text);return t?(n+=">",n+=s,n+="</span>",n):s}}class Vu{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+lr.escape(this.attributes[n])+'"');t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class s0{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",mC[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+lr.escape(this.alternate)+'"/>':'<path d="'+lr.escape(mC[this.pathName])+'"/>'}}class t6{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+lr.escape(this.attributes[n])+'"');return t+="/>",t}}function yC(e){if(e instanceof Qo)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Soe(e){if(e instanceof ng)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var Eoe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},koe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Gr={math:{},text:{}};function M(e,t,n,r,a,s){Gr[e][a]={font:t,group:n,replace:r},s&&r&&(Gr[e][r]=Gr[e][a])}var j="math",lt="text",X="main",ke="ams",ua="accent-token",jt="bin",xi="close",Np="inner",un="mathord",Ja="op-token",_o="open",K5="punct",_e="rel",Yu="spacing",Re="textord";M(j,X,_e,"â¡","\\equiv",!0);M(j,X,_e,"âº","\\prec",!0);M(j,X,_e,"â»","\\succ",!0);M(j,X,_e,"â¼","\\sim",!0);M(j,X,_e,"â¥","\\perp");M(j,X,_e,"⪯","\\preceq",!0);M(j,X,_e,"⪰","\\succeq",!0);M(j,X,_e,"â","\\simeq",!0);M(j,X,_e,"â£","\\mid",!0);M(j,X,_e,"âª","\\ll",!0);M(j,X,_e,"â«","\\gg",!0);M(j,X,_e,"â","\\asymp",!0);M(j,X,_e,"â¥","\\parallel");M(j,X,_e,"â","\\bowtie",!0);M(j,X,_e,"â£","\\smile",!0);M(j,X,_e,"â","\\sqsubseteq",!0);M(j,X,_e,"â","\\sqsupseteq",!0);M(j,X,_e,"â","\\doteq",!0);M(j,X,_e,"â¢","\\frown",!0);M(j,X,_e,"â","\\ni",!0);M(j,X,_e,"â","\\propto",!0);M(j,X,_e,"â¢","\\vdash",!0);M(j,X,_e,"â£","\\dashv",!0);M(j,X,_e,"â","\\owns");M(j,X,K5,".","\\ldotp");M(j,X,K5,"â
","\\cdotp");M(j,X,Re,"#","\\#");M(lt,X,Re,"#","\\#");M(j,X,Re,"&","\\&");M(lt,X,Re,"&","\\&");M(j,X,Re,"âµ","\\aleph",!0);M(j,X,Re,"â","\\forall",!0);M(j,X,Re,"â","\\hbar",!0);M(j,X,Re,"â","\\exists",!0);M(j,X,Re,"â","\\nabla",!0);M(j,X,Re,"â","\\flat",!0);M(j,X,Re,"â","\\ell",!0);M(j,X,Re,"â®","\\natural",!0);M(j,X,Re,"â£","\\clubsuit",!0);M(j,X,Re,"â","\\wp",!0);M(j,X,Re,"â¯","\\sharp",!0);M(j,X,Re,"â¢","\\diamondsuit",!0);M(j,X,Re,"â","\\Re",!0);M(j,X,Re,"â¡","\\heartsuit",!0);M(j,X,Re,"â","\\Im",!0);M(j,X,Re,"â ","\\spadesuit",!0);M(j,X,Re,"§","\\S",!0);M(lt,X,Re,"§","\\S");M(j,X,Re,"¶","\\P",!0);M(lt,X,Re,"¶","\\P");M(j,X,Re,"â ","\\dag");M(lt,X,Re,"â ","\\dag");M(lt,X,Re,"â ","\\textdagger");M(j,X,Re,"â¡","\\ddag");M(lt,X,Re,"â¡","\\ddag");M(lt,X,Re,"â¡","\\textdaggerdbl");M(j,X,xi,"â±","\\rmoustache",!0);M(j,X,_o,"â°","\\lmoustache",!0);M(j,X,xi,"â¯","\\rgroup",!0);M(j,X,_o,"â®","\\lgroup",!0);M(j,X,jt,"â","\\mp",!0);M(j,X,jt,"â","\\ominus",!0);M(j,X,jt,"â","\\uplus",!0);M(j,X,jt,"â","\\sqcap",!0);M(j,X,jt,"â","\\ast");M(j,X,jt,"â","\\sqcup",!0);M(j,X,jt,"â¯","\\bigcirc",!0);M(j,X,jt,"â","\\bullet",!0);M(j,X,jt,"â¡","\\ddagger");M(j,X,jt,"â","\\wr",!0);M(j,X,jt,"⨿","\\amalg");M(j,X,jt,"&","\\And");M(j,X,_e,"âµ","\\longleftarrow",!0);M(j,X,_e,"â","\\Leftarrow",!0);M(j,X,_e,"â¸","\\Longleftarrow",!0);M(j,X,_e,"â¶","\\longrightarrow",!0);M(j,X,_e,"â","\\Rightarrow",!0);M(j,X,_e,"â¹","\\Longrightarrow",!0);M(j,X,_e,"â","\\leftrightarrow",!0);M(j,X,_e,"â·","\\longleftrightarrow",!0);M(j,X,_e,"â","\\Leftrightarrow",!0);M(j,X,_e,"âº","\\Longleftrightarrow",!0);M(j,X,_e,"â¦","\\mapsto",!0);M(j,X,_e,"â¼","\\longmapsto",!0);M(j,X,_e,"â","\\nearrow",!0);M(j,X,_e,"â©","\\hookleftarrow",!0);M(j,X,_e,"âª","\\hookrightarrow",!0);M(j,X,_e,"â","\\searrow",!0);M(j,X,_e,"â¼","\\leftharpoonup",!0);M(j,X,_e,"â","\\rightharpoonup",!0);M(j,X,_e,"â","\\swarrow",!0);M(j,X,_e,"â½","\\leftharpoondown",!0);M(j,X,_e,"â","\\rightharpoondown",!0);M(j,X,_e,"â","\\nwarrow",!0);M(j,X,_e,"â","\\rightleftharpoons",!0);M(j,ke,_e,"â®","\\nless",!0);M(j,ke,_e,"î","\\@nleqslant");M(j,ke,_e,"î","\\@nleqq");M(j,ke,_e,"âª","\\lneq",!0);M(j,ke,_e,"â¨","\\lneqq",!0);M(j,ke,_e,"î","\\@lvertneqq");M(j,ke,_e,"â¦","\\lnsim",!0);M(j,ke,_e,"âª","\\lnapprox",!0);M(j,ke,_e,"â","\\nprec",!0);M(j,ke,_e,"â ","\\npreceq",!0);M(j,ke,_e,"â¨","\\precnsim",!0);M(j,ke,_e,"⪹","\\precnapprox",!0);M(j,ke,_e,"â","\\nsim",!0);M(j,ke,_e,"î","\\@nshortmid");M(j,ke,_e,"â¤","\\nmid",!0);M(j,ke,_e,"â¬","\\nvdash",!0);M(j,ke,_e,"â","\\nvDash",!0);M(j,ke,_e,"âª","\\ntriangleleft");M(j,ke,_e,"â¬","\\ntrianglelefteq",!0);M(j,ke,_e,"â","\\subsetneq",!0);M(j,ke,_e,"î","\\@varsubsetneq");M(j,ke,_e,"â«","\\subsetneqq",!0);M(j,ke,_e,"î","\\@varsubsetneqq");M(j,ke,_e,"â¯","\\ngtr",!0);M(j,ke,_e,"î","\\@ngeqslant");M(j,ke,_e,"î","\\@ngeqq");M(j,ke,_e,"âª","\\gneq",!0);M(j,ke,_e,"â©","\\gneqq",!0);M(j,ke,_e,"î","\\@gvertneqq");M(j,ke,_e,"â§","\\gnsim",!0);M(j,ke,_e,"âª","\\gnapprox",!0);M(j,ke,_e,"â","\\nsucc",!0);M(j,ke,_e,"â¡","\\nsucceq",!0);M(j,ke,_e,"â©","\\succnsim",!0);M(j,ke,_e,"⪺","\\succnapprox",!0);M(j,ke,_e,"â","\\ncong",!0);M(j,ke,_e,"î","\\@nshortparallel");M(j,ke,_e,"â¦","\\nparallel",!0);M(j,ke,_e,"â¯","\\nVDash",!0);M(j,ke,_e,"â«","\\ntriangleright");M(j,ke,_e,"â","\\ntrianglerighteq",!0);M(j,ke,_e,"î","\\@nsupseteqq");M(j,ke,_e,"â","\\supsetneq",!0);M(j,ke,_e,"î","\\@varsupsetneq");M(j,ke,_e,"â«","\\supsetneqq",!0);M(j,ke,_e,"î","\\@varsupsetneqq");M(j,ke,_e,"â®","\\nVdash",!0);M(j,ke,_e,"⪵","\\precneqq",!0);M(j,ke,_e,"⪶","\\succneqq",!0);
838M(j,ke,_e,"î","\\@nsubseteqq");M(j,ke,jt,"â´","\\unlhd");M(j,ke,jt,"âµ","\\unrhd");M(j,ke,_e,"â","\\nleftarrow",!0);M(j,ke,_e,"â","\\nrightarrow",!0);M(j,ke,_e,"â","\\nLeftarrow",!0);M(j,ke,_e,"â","\\nRightarrow",!0);M(j,ke,_e,"â®","\\nleftrightarrow",!0);M(j,ke,_e,"â","\\nLeftrightarrow",!0);M(j,ke,_e,"â³","\\vartriangle");M(j,ke,Re,"â","\\hslash");M(j,ke,Re,"â½","\\triangledown");M(j,ke,Re,"â","\\lozenge");M(j,ke,Re,"â","\\circledS");M(j,ke,Re,"®","\\circledR");M(lt,ke,Re,"®","\\circledR");M(j,ke,Re,"â¡","\\measuredangle",!0);M(j,ke,Re,"â","\\nexists");M(j,ke,Re,"â§","\\mho");M(j,ke,Re,"â²","\\Finv",!0);M(j,ke,Re,"â
","\\Game",!0);M(j,ke,Re,"âµ","\\backprime");M(j,ke,Re,"â²","\\blacktriangle");M(j,ke,Re,"â¼","\\blacktriangledown");M(j,ke,Re,"â ","\\blacksquare");M(j,ke,Re,"â§«","\\blacklozenge");M(j,ke,Re,"â
","\\bigstar");M(j,ke,Re,"â¢","\\sphericalangle",!0);M(j,ke,Re,"â","\\complement",!0);M(j,ke,Re,"ð","\\eth",!0);M(lt,X,Re,"ð","ð");M(j,ke,Re,"â±","\\diagup");M(j,ke,Re,"â²","\\diagdown");M(j,ke,Re,"â¡","\\square");M(j,ke,Re,"â¡","\\Box");M(j,ke,Re,"â","\\Diamond");M(j,ke,Re,"Â¥","\\yen",!0);M(lt,ke,Re,"Â¥","\\yen",!0);M(j,ke,Re,"â","\\checkmark",!0);M(lt,ke,Re,"â","\\checkmark");M(j,ke,Re,"â¶","\\beth",!0);M(j,ke,Re,"â¸","\\daleth",!0);M(j,ke,Re,"â·","\\gimel",!0);M(j,ke,Re,"Ï","\\digamma",!0);M(j,ke,Re,"ϰ","\\varkappa");M(j,ke,_o,"â","\\@ulcorner",!0);M(j,ke,xi,"â","\\@urcorner",!0);M(j,ke,_o,"â","\\@llcorner",!0);M(j,ke,xi,"â","\\@lrcorner",!0);M(j,ke,_e,"â¦","\\leqq",!0);M(j,ke,_e,"⩽","\\leqslant",!0);M(j,ke,_e,"âª","\\eqslantless",!0);M(j,ke,_e,"â²","\\lesssim",!0);M(j,ke,_e,"âª
","\\lessapprox",!0);M(j,ke,_e,"â","\\approxeq",!0);M(j,ke,jt,"â","\\lessdot");M(j,ke,_e,"â","\\lll",!0);M(j,ke,_e,"â¶","\\lessgtr",!0);M(j,ke,_e,"â","\\lesseqgtr",!0);M(j,ke,_e,"âª","\\lesseqqgtr",!0);M(j,ke,_e,"â","\\doteqdot");M(j,ke,_e,"â","\\risingdotseq",!0);M(j,ke,_e,"â","\\fallingdotseq",!0);M(j,ke,_e,"â½","\\backsim",!0);M(j,ke,_e,"â","\\backsimeq",!0);M(j,ke,_e,"â«
","\\subseteqq",!0);M(j,ke,_e,"â","\\Subset",!0);M(j,ke,_e,"â","\\sqsubset",!0);M(j,ke,_e,"â¼","\\preccurlyeq",!0);M(j,ke,_e,"â","\\curlyeqprec",!0);M(j,ke,_e,"â¾","\\precsim",!0);M(j,ke,_e,"⪷","\\precapprox",!0);M(j,ke,_e,"â²","\\vartriangleleft");M(j,ke,_e,"â´","\\trianglelefteq");M(j,ke,_e,"â¨","\\vDash",!0);M(j,ke,_e,"âª","\\Vvdash",!0);M(j,ke,_e,"â£","\\smallsmile");M(j,ke,_e,"â¢","\\smallfrown");M(j,ke,_e,"â","\\bumpeq",!0);M(j,ke,_e,"â","\\Bumpeq",!0);M(j,ke,_e,"â§","\\geqq",!0);M(j,ke,_e,"⩾","\\geqslant",!0);M(j,ke,_e,"âª","\\eqslantgtr",!0);M(j,ke,_e,"â³","\\gtrsim",!0);M(j,ke,_e,"âª","\\gtrapprox",!0);M(j,ke,jt,"â","\\gtrdot");M(j,ke,_e,"â","\\ggg",!0);M(j,ke,_e,"â·","\\gtrless",!0);M(j,ke,_e,"â","\\gtreqless",!0);M(j,ke,_e,"âª","\\gtreqqless",!0);M(j,ke,_e,"â","\\eqcirc",!0);M(j,ke,_e,"â","\\circeq",!0);M(j,ke,_e,"â","\\triangleq",!0);M(j,ke,_e,"â¼","\\thicksim");M(j,ke,_e,"â","\\thickapprox");M(j,ke,_e,"â«","\\supseteqq",!0);M(j,ke,_e,"â","\\Supset",!0);M(j,ke,_e,"â","\\sqsupset",!0);M(j,ke,_e,"â½","\\succcurlyeq",!0);M(j,ke,_e,"â","\\curlyeqsucc",!0);M(j,ke,_e,"â¿","\\succsim",!0);M(j,ke,_e,"⪸","\\succapprox",!0);M(j,ke,_e,"â³","\\vartriangleright");M(j,ke,_e,"âµ","\\trianglerighteq");M(j,ke,_e,"â©","\\Vdash",!0);M(j,ke,_e,"â£","\\shortmid");M(j,ke,_e,"â¥","\\shortparallel");M(j,ke,_e,"â¬","\\between",!0);M(j,ke,_e,"â","\\pitchfork",!0);M(j,ke,_e,"â","\\varpropto");M(j,ke,_e,"â","\\blacktriangleleft");M(j,ke,_e,"â´","\\therefore",!0);M(j,ke,_e,"â","\\backepsilon");M(j,ke,_e,"â¶","\\blacktriangleright");M(j,ke,_e,"âµ","\\because",!0);M(j,ke,_e,"â","\\llless");M(j,ke,_e,"â","\\gggtr");M(j,ke,jt,"â²","\\lhd");M(j,ke,jt,"â³","\\rhd");M(j,ke,_e,"â","\\eqsim",!0);M(j,X,_e,"â","\\Join");M(j,ke,_e,"â","\\Doteq",!0);M(j,ke,jt,"â","\\dotplus",!0);M(j,ke,jt,"â","\\smallsetminus");M(j,ke,jt,"â","\\Cap",!0);M(j,ke,jt,"â","\\Cup",!0);M(j,ke,jt,"â©","\\doublebarwedge",!0);M(j,ke,jt,"â","\\boxminus",!0);M(j,ke,jt,"â","\\boxplus",!0);
838M(j,ke,jt,"â","\\divideontimes",!0);M(j,ke,jt,"â","\\ltimes",!0);M(j,ke,jt,"â","\\rtimes",!0);M(j,ke,jt,"â","\\leftthreetimes",!0);M(j,ke,jt,"â","\\rightthreetimes",!0);M(j,ke,jt,"â","\\curlywedge",!0);M(j,ke,jt,"â","\\curlyvee",!0);M(j,ke,jt,"â","\\circleddash",!0);M(j,ke,jt,"â","\\circledast",!0);M(j,ke,jt,"â
","\\centerdot");M(j,ke,jt,"âº","\\intercal",!0);M(j,ke,jt,"â","\\doublecap");M(j,ke,jt,"â","\\doublecup");M(j,ke,jt,"â ","\\boxtimes",!0);M(j,ke,_e,"â¢","\\dashrightarrow",!0);M(j,ke,_e,"â ","\\dashleftarrow",!0);M(j,ke,_e,"â","\\leftleftarrows",!0);M(j,ke,_e,"â","\\leftrightarrows",!0);M(j,ke,_e,"â","\\Lleftarrow",!0);M(j,ke,_e,"â","\\twoheadleftarrow",!0);M(j,ke,_e,"â¢","\\leftarrowtail",!0);M(j,ke,_e,"â«","\\looparrowleft",!0);M(j,ke,_e,"â","\\leftrightharpoons",!0);M(j,ke,_e,"â¶","\\curvearrowleft",!0);M(j,ke,_e,"âº","\\circlearrowleft",!0);M(j,ke,_e,"â°","\\Lsh",!0);M(j,ke,_e,"â","\\upuparrows",!0);M(j,ke,_e,"â¿","\\upharpoonleft",!0);M(j,ke,_e,"â","\\downharpoonleft",!0);M(j,X,_e,"â¶","\\origof",!0);M(j,X,_e,"â·","\\imageof",!0);M(j,ke,_e,"â¸","\\multimap",!0);M(j,ke,_e,"â","\\leftrightsquigarrow",!0);M(j,ke,_e,"â","\\rightrightarrows",!0);M(j,ke,_e,"â","\\rightleftarrows",!0);M(j,ke,_e,"â ","\\twoheadrightarrow",!0);M(j,ke,_e,"â£","\\rightarrowtail",!0);M(j,ke,_e,"â¬","\\looparrowright",!0);M(j,ke,_e,"â·","\\curvearrowright",!0);M(j,ke,_e,"â»","\\circlearrowright",!0);M(j,ke,_e,"â±","\\Rsh",!0);M(j,ke,_e,"â","\\downdownarrows",!0);M(j,ke,_e,"â¾","\\upharpoonright",!0);M(j,ke,_e,"â","\\downharpoonright",!0);M(j,ke,_e,"â","\\rightsquigarrow",!0);M(j,ke,_e,"â","\\leadsto");M(j,ke,_e,"â","\\Rrightarrow",!0);M(j,ke,_e,"â¾","\\restriction");M(j,X,Re,"â","`");M(j,X,Re,"$","\\$");M(lt,X,Re,"$","\\$");M(lt,X,Re,"$","\\textdollar");M(j,X,Re,"%","\\%");M(lt,X,Re,"%","\\%");M(j,X,Re,"_","\\_");M(lt,X,Re,"_","\\_");M(lt,X,Re,"_","\\textunderscore");M(j,X,Re,"â ","\\angle",!0);M(j,X,Re,"â","\\infty",!0);M(j,X,Re,"â²","\\prime");M(j,X,Re,"â³","\\triangle");M(j,X,Re,"Î","\\Gamma",!0);M(j,X,Re,"Î","\\Delta",!0);M(j,X,Re,"Î","\\Theta",!0);M(j,X,Re,"Î","\\Lambda",!0);M(j,X,Re,"Î","\\Xi",!0);M(j,X,Re,"Î ","\\Pi",!0);M(j,X,Re,"Σ","\\Sigma",!0);M(j,X,Re,"Î¥","\\Upsilon",!0);M(j,X,Re,"Φ","\\Phi",!0);M(j,X,Re,"Ψ","\\Psi",!0);M(j,X,Re,"Ω","\\Omega",!0);M(j,X,Re,"A","Î");M(j,X,Re,"B","Î");M(j,X,Re,"E","Î");M(j,X,Re,"Z","Î");M(j,X,Re,"H","Î");M(j,X,Re,"I","Î");M(j,X,Re,"K","Î");M(j,X,Re,"M","Î");M(j,X,Re,"N","Î");M(j,X,Re,"O","Î");M(j,X,Re,"P","Ρ");M(j,X,Re,"T","Τ");M(j,X,Re,"X","Χ");M(j,X,Re,"¬","\\neg",!0);M(j,X,Re,"¬","\\lnot");M(j,X,Re,"â¤","\\top");M(j,X,Re,"â¥","\\bot");M(j,X,Re,"â
","\\emptyset");M(j,ke,Re,"â
","\\varnothing");M(j,X,un,"α","\\alpha",!0);M(j,X,un,"β","\\beta",!0);M(j,X,un,"γ","\\gamma",!0);M(j,X,un,"δ","\\delta",!0);M(j,X,un,"ϵ","\\epsilon",!0);M(j,X,un,"ζ","\\zeta",!0);M(j,X,un,"η","\\eta",!0);M(j,X,un,"θ","\\theta",!0);M(j,X,un,"ι","\\iota",!0);M(j,X,un,"κ","\\kappa",!0);M(j,X,un,"λ","\\lambda",!0);M(j,X,un,"μ","\\mu",!0);M(j,X,un,"ν","\\nu",!0);M(j,X,un,"ξ","\\xi",!0);M(j,X,un,"ο","\\omicron",!0);M(j,X,un,"Ï","\\pi",!0);M(j,X,un,"Ï","\\rho",!0);M(j,X,un,"Ï","\\sigma",!0);M(j,X,un,"Ï","\\tau",!0);M(j,X,un,"Ï
","\\upsilon",!0);M(j,X,un,"Ï","\\phi",!0);M(j,X,un,"Ï","\\chi",!0);M(j,X,un,"Ï","\\psi",!0);M(j,X,un,"Ï","\\omega",!0);M(j,X,un,"ε","\\varepsilon",!0);M(j,X,un,"Ï","\\vartheta",!0);M(j,X,un,"Ï","\\varpi",!0);M(j,X,un,"ϱ","\\varrho",!0);M(j,X,un,"Ï","\\varsigma",!0);M(j,X,un,"Ï","\\varphi",!0);M(j,X,jt,"â","*",!0);M(j,X,jt,"+","+");M(j,X,jt,"â","-",!0);M(j,X,jt,"â
","\\cdot",!0);M(j,X,jt,"â","\\circ",!0);M(j,X,jt,"÷","\\div",!0);M(j,X,jt,"±","\\pm",!0);M(j,X,jt,"Ã","\\times",!0);M(j,X,jt,"â©","\\cap",!0);M(j,X,jt,"âª","\\cup",!0);M(j,X,jt,"â","\\setminus",!0);M(j,X,jt,"â§","\\land");M(j,X,jt,"â¨","\\lor");M(j,X,jt,"â§","\\wedge",!0);M(j,X,jt,"â¨","\\vee",!0);M(j,X,Re,"â","\\surd");M(j,X,_o,"â¨","\\langle",!0);M(j,X,_o,"â£","\\lvert");M(j,X,_o,"â¥","\\lVert");M(j,X,xi,"?","?");M(j,X,xi,"!","!");M(j,X,xi,"â©","\\rangle",!0);M(j,X,xi,"â£","\\rvert");M(j,X,xi,"â¥","\\rVert");M(j,X,_e,"=","=");M(j,X,_e,":",":");M(j,X,_e,"â","\\approx",!0);M(j,X,_e,"â
","\\cong",!0);M(j,X,_e,"â¥","\\ge");M(j,X,_e,"â¥","\\geq",!0);M(j,X,_e,"â","\\gets");M(j,X,_e,">","\\gt",!0);M(j,X,_e,"â","\\in",!0);M(j,X,_e,"î ","\\@not");M(j,X,_e,"â","\\subset",!0);M(j,X,_e,"â","\\supset",!0);M(j,X,_e,"â","\\subseteq",!0);M(j,X,_e,"â","\\supseteq",!0);M(j,ke,_e,"â","\\nsubseteq",!0);M(j,ke,_e,"â","\\nsupseteq",!0);M(j,X,_e,"â¨","\\models");M(j,X,_e,"â","\\leftarrow",!0);M(j,X,_e,"â¤","\\le");M(j,X,_e,"â¤","\\leq",!0);M(j,X,_e,"<","\\lt",!0);M(j,X,_e,"â","\\rightarrow",!0);M(j,X,_e,"â","\\to");M(j,ke,_e,"â±","\\ngeq",!0);M(j,ke,_e,"â°","\\nleq",!0);M(j,X,Yu," ","\\ ");M(j,X,Yu," ","\\space");M(j,X,Yu," ","\\nobreakspace");M(lt,X,Yu," ","\\ ");M(lt,X,Yu," "," ");M(lt,X,Yu," ","\\space");M(lt,X,Yu," ","\\nobreakspace");M(j,X,Yu,null,"\\nobreak");M(j,X,Yu,null,"\\allowbreak");M(j,X,K5,",",",");M(j,X,K5,";",";");M(j,ke,jt,"â¼","\\barwedge",!0);M(j,ke,jt,"â»","\\veebar",!0);M(j,X,jt,"â","\\odot",!0);M(j,X,jt,"â","\\oplus",!0);M(j,X,jt,"â","\\otimes",!0);M(j,X,Re,"â","\\partial",!0);M(j,X,jt,"â","\\oslash",!0);M(j,ke,jt,"â","\\circledcirc",!0);M(j,ke,jt,"â¡","\\boxdot",!0);
vendor: 8,412 bytes, line 838
838M(j,X,jt,"â³","\\bigtriangleup");M(j,X,jt,"â½","\\bigtriangledown");M(j,X,jt,"â ","\\dagger");M(j,X,jt,"â","\\diamond");M(j,X,jt,"â","\\star");M(j,X,jt,"â","\\triangleleft");M(j,X,jt,"â¹","\\triangleright");M(j,X,_o,"{","\\{");M(lt,X,Re,"{","\\{");M(lt,X,Re,"{","\\textbraceleft");M(j,X,xi,"}","\\}");M(lt,X,Re,"}","\\}");M(lt,X,Re,"}","\\textbraceright");M(j,X,_o,"{","\\lbrace");M(j,X,xi,"}","\\rbrace");M(j,X,_o,"[","\\lbrack",!0);M(lt,X,Re,"[","\\lbrack",!0);M(j,X,xi,"]","\\rbrack",!0);M(lt,X,Re,"]","\\rbrack",!0);M(j,X,_o,"(","\\lparen",!0);M(j,X,xi,")","\\rparen",!0);M(lt,X,Re,"<","\\textless",!0);M(lt,X,Re,">","\\textgreater",!0);M(j,X,_o,"â","\\lfloor",!0);M(j,X,xi,"â","\\rfloor",!0);M(j,X,_o,"â","\\lceil",!0);M(j,X,xi,"â","\\rceil",!0);M(j,X,Re,"\\","\\backslash");M(j,X,Re,"â£","|");M(j,X,Re,"â£","\\vert");M(lt,X,Re,"|","\\textbar",!0);M(j,X,Re,"â¥","\\|");M(j,X,Re,"â¥","\\Vert");M(lt,X,Re,"â¥","\\textbardbl");M(lt,X,Re,"~","\\textasciitilde");M(lt,X,Re,"\\","\\textbackslash");M(lt,X,Re,"^","\\textasciicircum");M(j,X,_e,"â","\\uparrow",!0);M(j,X,_e,"â","\\Uparrow",!0);M(j,X,_e,"â","\\downarrow",!0);M(j,X,_e,"â","\\Downarrow",!0);M(j,X,_e,"â","\\updownarrow",!0);M(j,X,_e,"â","\\Updownarrow",!0);M(j,X,Ja,"â","\\coprod");M(j,X,Ja,"â","\\bigvee");M(j,X,Ja,"â","\\bigwedge");M(j,X,Ja,"â¨","\\biguplus");M(j,X,Ja,"â","\\bigcap");M(j,X,Ja,"â","\\bigcup");M(j,X,Ja,"â«","\\int");M(j,X,Ja,"â«","\\intop");M(j,X,Ja,"â¬","\\iint");M(j,X,Ja,"â","\\iiint");M(j,X,Ja,"â","\\prod");M(j,X,Ja,"â","\\sum");M(j,X,Ja,"â¨","\\bigotimes");M(j,X,Ja,"â¨","\\bigoplus");M(j,X,Ja,"â¨","\\bigodot");M(j,X,Ja,"â®","\\oint");M(j,X,Ja,"â¯","\\oiint");M(j,X,Ja,"â°","\\oiiint");M(j,X,Ja,"â¨","\\bigsqcup");M(j,X,Ja,"â«","\\smallint");M(lt,X,Np,"â¦","\\textellipsis");M(j,X,Np,"â¦","\\mathellipsis");M(lt,X,Np,"â¦","\\ldots",!0);M(j,X,Np,"â¦","\\ldots",!0);M(j,X,Np,"â¯","\\@cdots",!0);M(j,X,Np,"â±","\\ddots",!0);M(j,X,Re,"â®","\\varvdots");M(lt,X,Re,"â®","\\varvdots");M(j,X,ua,"Ë","\\acute");M(j,X,ua,"Ë","\\grave");M(j,X,ua,"¨","\\ddot");M(j,X,ua,"~","\\tilde");M(j,X,ua,"Ë","\\bar");M(j,X,ua,"Ë","\\breve");M(j,X,ua,"Ë","\\check");M(j,X,ua,"^","\\hat");M(j,X,ua,"â","\\vec");M(j,X,ua,"Ë","\\dot");M(j,X,ua,"Ë","\\mathring");M(j,X,un,"î±","\\@imath");M(j,X,un,"î·","\\@jmath");M(j,X,Re,"ı","ı");M(j,X,Re,"È·","È·");M(lt,X,Re,"ı","\\i",!0);M(lt,X,Re,"È·","\\j",!0);M(lt,X,Re,"Ã","\\ss",!0);M(lt,X,Re,"æ","\\ae",!0);M(lt,X,Re,"Å","\\oe",!0);M(lt,X,Re,"ø","\\o",!0);M(lt,X,Re,"Ã","\\AE",!0);M(lt,X,Re,"Å","\\OE",!0);M(lt,X,Re,"Ã","\\O",!0);M(lt,X,ua,"Ë","\\'");M(lt,X,ua,"Ë","\\`");M(lt,X,ua,"Ë","\\^");M(lt,X,ua,"Ë","\\~");M(lt,X,ua,"Ë","\\=");M(lt,X,ua,"Ë","\\u");M(lt,X,ua,"Ë","\\.");M(lt,X,ua,"¸","\\c");M(lt,X,ua,"Ë","\\r");M(lt,X,ua,"Ë","\\v");M(lt,X,ua,"¨",'\\"');M(lt,X,ua,"Ë","\\H");M(lt,X,ua,"â¯","\\textcircled");var uj={"--":!0,"---":!0,"``":!0,"''":!0};M(lt,X,Re,"â","--",!0);M(lt,X,Re,"â","\\textendash");M(lt,X,Re,"â","---",!0);M(lt,X,Re,"â","\\textemdash");M(lt,X,Re,"â","`",!0);M(lt,X,Re,"â","\\textquoteleft");M(lt,X,Re,"â","'",!0);M(lt,X,Re,"â","\\textquoteright");M(lt,X,Re,"â","``",!0);M(lt,X,Re,"â","\\textquotedblleft");M(lt,X,Re,"â","''",!0);M(lt,X,Re,"â","\\textquotedblright");M(j,X,Re,"°","\\degree",!0);M(lt,X,Re,"°","\\degree");M(lt,X,Re,"°","\\textdegree",!0);M(j,X,Re,"£","\\pounds");M(j,X,Re,"£","\\mathsterling",!0);M(lt,X,Re,"£","\\pounds");M(lt,X,Re,"£","\\textsterling",!0);M(j,ke,Re,"â ","\\maltese");M(lt,ke,Re,"â ","\\maltese");var vC='0123456789/@."';for(var W4=0;W4<vC.length;W4++){var wC=vC.charAt(W4);M(j,X,Re,wC,wC)}var SC='0123456789!@*()-=+";:?/.,';for(var Y4=0;Y4<SC.length;Y4++){var EC=SC.charAt(Y4);M(lt,X,Re,EC,EC)}var $x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Q4=0;Q4<$x.length;Q4++){var A2=$x.charAt(Q4);M(j,X,un,A2,A2),M(lt,X,Re,A2,A2)}M(j,ke,Re,"C","â");M(lt,ke,Re,"C","â");M(j,ke,Re,"H","â");M(lt,ke,Re,"H","â");M(j,ke,Re,"N","â");M(lt,ke,Re,"N","â");M(j,ke,Re,"P","â");M(lt,ke,Re,"P","â");M(j,ke,Re,"Q","â");M(lt,ke,Re,"Q","â");M(j,ke,Re,"R","â");M(lt,ke,Re,"R","â");M(j,ke,Re,"Z","â¤");M(lt,ke,Re,"Z","â¤");M(j,X,un,"h","â");M(lt,X,un,"h","â");var gn="";for(var di=0;di<$x.length;di++){var Ta=$x.charAt(di);gn=String.fromCharCode(55349,56320+di),M(j,X,un,Ta,gn),M(lt,X,Re,Ta,gn),gn=String.fromCharCode(55349,56372+di),M(j,X,un,Ta,gn),M(lt,X,Re,Ta,gn),gn=String.fromCharCode(55349,56424+di),M(j,X,un,Ta,gn),M(lt,X,Re,Ta,gn),gn=String.fromCharCode(55349,56580+di),M(j,X,un,Ta,gn),M(lt,X,Re,Ta,gn),gn=String.fromCharCode(55349,56684+di),M(j,X,un,Ta,gn),M(lt,X,Re,Ta,gn),gn=String.fromCharCode(55349,56736+di),M(j,X,un,Ta,gn),M(lt,X,Re,Ta,gn),gn=String.fromCharCode(55349,56788+di),M(j,X,un,Ta,gn),M(lt,X,Re,Ta,gn),gn=String.fromCharCode(55349,56840+di),M(j,X,un,Ta,gn),M(lt,X,Re,Ta,gn),gn=String.fromCharCode(55349,56944+di),M(j,X,un,Ta,gn),M(lt,X,Re,Ta,gn),di<26&&(gn=String.fromCharCode(55349,56632+di),M(j,X,un,Ta,gn),M(lt,X,Re,Ta,gn),gn=String.fromCharCode(55349,56476+di),M(j,X,un,Ta,gn),M(lt,X,Re,Ta,gn))}gn="ð";M(j,X,un,"k",gn);M(lt,X,Re,"k",gn);for(var q0=0;q0<10;q0++){var Dd=q0.toString();gn=String.fromCharCode(55349,57294+q0),M(j,X,un,Dd,gn),M(lt,X,Re,Dd,gn),gn=String.fromCharCode(55349,57314+q0),M(j,X,un,Dd,gn),M(lt,X,Re,Dd,gn),gn=String.fromCharCode(55349,57324+q0),M(j,X,un,Dd,gn),M(lt,X,Re,Dd,gn),gn=String.fromCharCode(55349,57334+q0),M(j,X,un,Dd,gn),M(lt,X,Re,Dd,gn)}var n6="ÃÃþ";for(var X4=0;X4<n6.length;X4++){var L2=n6.charAt(X4);M(j,X,un,L2,L2),M(lt,X,Re,L2,L2)}var M2=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],kC=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],_oe=function(t,n){var r=t.charCodeAt(0),a=t.charCodeAt(1),s=(r-55296)*1024+(a-56320)+65536,i=n==="math"?0:1;if(119808<=s&&s<120484){var o=Math.floor((s-119808)/26);return[M2[o][2],M2[o][i]]}else if(120782<=s&&s<=120831){var c=Math.floor((s-120782)/10);return[kC[c][2],kC[c][i]]}else{if(s===120485||s===120486)return[M2[0][2],M2[0][i]];if(120486<s&&s<120782)return["",""];throw new pt("Unsupported character: "+t)}},J5=function(t,n,r){return Gr[r][t]&&Gr[r][t].replace&&(t=Gr[r][t].replace),{value:t,metrics:m8(t,n,r)}},kl=function(t,n,r,a,s){var i=J5(t,n,r),o=i.metrics;t=i.value;var c;if(o){var d=o.italic;(r==="text"||a&&a.font==="mathit")&&(d=0),c=new Qo(t,o.height,o.depth,d,o.skew,o.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),c=new Qo(t,0,0,0,0,0,s);if(a){c.maxFontSize=a.sizeMultiplier,a.style.isTight()&&c.classes.push("mtight");var f=a.getColor();f&&(c.style.color=f)}return c},Toe=function(t,n,r,a){return a===void 0&&(a=[]),r.font==="boldsymbol"&&J5(t,"Main-Bold",n).metrics?kl(t,"Main-Bold",n,r,a.concat(["mathbf"])):t==="\\"||Gr[n][t].font==="main"?kl(t,"Main-Regular",n,r,a):kl(t,"AMS-Regular",n,r,a.concat(["amsrm"]))},Coe=function(t,n,r,a,s){return s!=="textord"&&J5(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Noe=function(t,n,r){var a=t.mode,s=t.text,i=["mord"],o=a==="math"||a==="text"&&n.font,c=o?n.font:n.fontFamily,d="",f="";if(s.charCodeAt(0)===55349&&([d,f]=_oe(s,a)),d.length>0)return kl(s,d,a,n,i.concat(f));if(c){var m,b;if(c==="boldsymbol"){var g=Coe(s,a,n,i,r);m=g.fontName,b=[g.fontClass]}
vendor: 5,231 bytes, line 838
838else o?(m=fj[c].fontName,b=[c]):(m=R2(c,n.fontWeight,n.fontShape),b=[c,n.fontWeight,n.fontShape]);if(J5(s,m,a).metrics)return kl(s,m,a,n,i.concat(b));if(uj.hasOwnProperty(s)&&m.slice(0,10)==="Typewriter"){for(var v=[],E=0;E<s.length;E++)v.push(kl(s[E],m,a,n,i.concat(b)));return hj(v)}}if(r==="mathord")return kl(s,"Math-Italic",a,n,i.concat(["mathnormal"]));if(r==="textord"){var T=Gr[a][s]&&Gr[a][s].font;if(T==="ams"){var _=R2("amsrm",n.fontWeight,n.fontShape);return kl(s,_,a,n,i.concat("amsrm",n.fontWeight,n.fontShape))}else if(T==="main"||!T){var A=R2("textrm",n.fontWeight,n.fontShape);return kl(s,A,a,n,i.concat(n.fontWeight,n.fontShape))}else{var R=R2(T,n.fontWeight,n.fontShape);return kl(s,R,a,n,i.concat(R,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},Aoe=(e,t)=>{if(a0(e.classes)!==a0(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},Loe=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Qo&&r instanceof Qo&&Aoe(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},x8=function(t){for(var n=0,r=0,a=0,s=0;s<t.children.length;s++){var i=t.children[s];i.height>n&&(n=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>a&&(a=i.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=a},Fi=function(t,n,r,a){var s=new ng(t,n,r,a);return x8(s),s},dj=(e,t,n,r)=>new ng(e,t,n,r),Moe=function(t,n,r){var a=Fi([t],[],n);return a.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),a.style.borderBottomWidth=wt(a.height),a.maxFontSize=1,a},Roe=function(t,n,r,a){var s=new g8(t,n,r,a);return x8(s),s},hj=function(t){var n=new tg(t);return x8(n),n},Ooe=function(t,n){return t instanceof tg?Fi([],[t],n):t},Poe=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],a=-n[0].shift-n[0].elem.depth,s=a,i=1;i<n.length;i++){var o=-n[i].shift-s-n[i].elem.depth,c=o-(n[i-1].elem.height+n[i-1].elem.depth);s=s+o,r.push({type:"kern",size:c}),r.push(n[i])}return{children:r,depth:a}}var d;if(t.positionType==="top"){for(var f=t.positionData,m=0;m<t.children.length;m++){var b=t.children[m];f-=b.type==="kern"?b.size:b.elem.height+b.elem.depth}d=f}else if(t.positionType==="bottom")d=-t.positionData;else{var g=t.children[0];if(g.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")d=-g.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")d=-g.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:d}},joe=function(t,n){for(var{children:r,depth:a}=Poe(t),s=0,i=0;i<r.length;i++){var o=r[i];if(o.type==="elem"){var c=o.elem;s=Math.max(s,c.maxFontSize,c.height)}}s+=2;var d=Fi(["pstrut"],[]);d.style.height=wt(s);for(var f=[],m=a,b=a,g=a,v=0;v<r.length;v++){var E=r[v];if(E.type==="kern")g+=E.size;else{var T=E.elem,_=E.wrapperClasses||[],A=E.wrapperStyle||{},R=Fi(_,[d,T],void 0,A);R.style.top=wt(-s-g-T.depth),E.marginLeft&&(R.style.marginLeft=E.marginLeft),E.marginRight&&(R.style.marginRight=E.marginRight),f.push(R),g+=T.height+T.depth}m=Math.min(m,g),b=Math.max(b,g)}var P=Fi(["vlist"],f);P.style.height=wt(b);var V;if(m<0){var U=Fi([],[]),D=Fi(["vlist"],[U]);D.style.height=wt(-m);var H=Fi(["vlist-s"],[new Qo("â")]);V=[Fi(["vlist-r"],[P,H]),Fi(["vlist-r"],[D])]}else V=[Fi(["vlist-r"],[P])];var q=Fi(["vlist-t"],V);return V.length===2&&q.classes.push("vlist-t2"),q.height=b,q.depth=-m,q},Doe=(e,t)=>{var n=Fi(["mspace"],[],t),r=ma(e,t);return n.style.marginRight=wt(r),n},R2=function(t,n,r){var a="";switch(t){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=t}var s;return n==="textbf"&&r==="textit"?s="BoldItalic":n==="textbf"?s="Bold":n==="textit"?s="Italic":s="Regular",a+"-"+s},fj={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},pj={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ioe=function(t,n){var[r,a,s]=pj[t],i=new s0(r),o=new Vu([i],{width:wt(a),height:wt(s),style:"width:"+wt(a),viewBox:"0 0 "+1e3*a+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),c=dj(["overlay"],[o],n);return c.height=s,c.style.height=wt(s),c.style.width=wt(a),c}
vendor: 15,338 bytes, line 838
838,qe={fontMap:fj,makeSymbol:kl,mathsym:Toe,makeSpan:Fi,makeSvgSpan:dj,makeLineSpan:Moe,makeAnchor:Roe,makeFragment:hj,wrapFragment:Ooe,makeVList:joe,makeOrd:Noe,makeGlue:Doe,staticSvg:Ioe,svgData:pj,tryCombineChars:Loe},pa={number:3,unit:"mu"},V0={number:4,unit:"mu"},Cu={number:5,unit:"mu"},Boe={mord:{mop:pa,mbin:V0,mrel:Cu,minner:pa},mop:{mord:pa,mop:pa,mrel:Cu,minner:pa},mbin:{mord:V0,mop:V0,mopen:V0,minner:V0},mrel:{mord:Cu,mop:Cu,mopen:Cu,minner:Cu},mopen:{},mclose:{mop:pa,mbin:V0,mrel:Cu,minner:pa},mpunct:{mord:pa,mop:pa,mrel:Cu,mopen:pa,mclose:pa,mpunct:pa,minner:pa},minner:{mord:pa,mop:pa,mbin:V0,mrel:Cu,mopen:pa,mpunct:pa,minner:pa}},Foe={mord:{mop:pa},mop:{mord:pa,mop:pa},mbin:{},mrel:{},mopen:{},mclose:{mop:pa},mpunct:{},minner:{mop:pa}},mj={},Wx={},Yx={};function At(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:s,mathmlBuilder:i}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:a},c=0;c<n.length;++c)mj[n[c]]=o;t&&(s&&(Wx[t]=s),i&&(Yx[t]=i))}function Ch(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;At({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var Qx=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},qa=function(t){return t.type==="ordgroup"?t.body:[t]},Gu=qe.makeSpan,zoe=["leftmost","mbin","mopen","mrel","mop","mpunct"],Hoe=["rightmost","mrel","mclose","mpunct"],Uoe={display:dn.DISPLAY,text:dn.TEXT,script:dn.SCRIPT,scriptscript:dn.SCRIPTSCRIPT},qoe={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},hs=function(t,n,r,a){a===void 0&&(a=[null,null]);for(var s=[],i=0;i<t.length;i++){var o=rr(t[i],n);if(o instanceof tg){var c=o.children;s.push(...c)}else s.push(o)}if(qe.tryCombineChars(s),!r)return s;var d=n;if(t.length===1){var f=t[0];f.type==="sizing"?d=n.havingSize(f.size):f.type==="styling"&&(d=n.havingStyle(Uoe[f.style]))}var m=Gu([a[0]||"leftmost"],[],n),b=Gu([a[1]||"rightmost"],[],n),g=r==="root";return _C(s,(v,E)=>{var T=E.classes[0],_=v.classes[0];T==="mbin"&&Hoe.includes(_)?E.classes[0]="mord":_==="mbin"&&zoe.includes(T)&&(v.classes[0]="mord")},{node:m},b,g),_C(s,(v,E)=>{var T=r6(E),_=r6(v),A=T&&_?v.hasClass("mtight")?Foe[T][_]:Boe[T][_]:null;if(A)return qe.makeGlue(A,d)},{node:m},b,g),s},_C=function e(t,n,r,a,s){a&&t.push(a);for(var i=0;i<t.length;i++){var o=t[i],c=gj(o);if(c){e(c.children,n,r,null,s);continue}var d=!o.hasClass("mspace");if(d){var f=n(o,r.node);f&&(r.insertAfter?r.insertAfter(f):(t.unshift(f),i++))}d?r.node=o:s&&o.hasClass("newline")&&(r.node=Gu(["leftmost"])),r.insertAfter=(m=>b=>{t.splice(m+1,0,b),i++})(i)}a&&t.pop()},gj=function(t){return t instanceof tg||t instanceof g8||t instanceof ng&&t.hasClass("enclosing")?t:null},Voe=function e(t,n){var r=gj(t);if(r){var a=r.children;if(a.length){if(n==="right")return e(a[a.length-1],"right");if(n==="left")return e(a[0],"left")}}return t},r6=function(t,n){return t?(n&&(t=Voe(t,n)),qoe[t.classes[0]]||null):null},R1=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return Gu(n.concat(r))},rr=function(t,n,r){if(!t)return Gu();if(Wx[t.type]){var a=Wx[t.type](t,n);if(r&&n.size!==r.size){a=Gu(n.sizingClasses(r),[a],n);var s=n.sizeMultiplier/r.sizeMultiplier;a.height*=s,a.depth*=s}return a}else throw new pt("Got group of unknown type: '"+t.type+"'")};function O2(e,t){var n=Gu(["base"],e,t),r=Gu(["strut"]);return r.style.height=wt(n.height+n.depth),n.depth&&(r.style.verticalAlign=wt(-n.depth)),n.children.unshift(r),n}function a6(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=hs(e,t,"root"),a;r.length===2&&r[1].hasClass("tag")&&(a=r.pop());for(var s=[],i=[],o=0;o<r.length;o++)if(i.push(r[o]),r[o].hasClass("mbin")||r[o].hasClass("mrel")||r[o].hasClass("allowbreak")){for(var c=!1;o<r.length-1&&r[o+1].hasClass("mspace")&&!r[o+1].hasClass("newline");)o++,i.push(r[o]),r[o].hasClass("nobreak")&&(c=!0);c||(s.push(O2(i,t)),i=[])}else r[o].hasClass("newline")&&(i.pop(),i.length>0&&(s.push(O2(i,t)),i=[]),s.push(r[o]));i.length>0&&s.push(O2(i,t));var d;n?(d=O2(hs(n,t,!0)),d.classes=["tag"],s.push(d)):a&&s.push(a);var f=Gu(["katex-html"],s);if(f.setAttribute("aria-hidden","true"),d){var m=d.children[0];m.style.height=wt(f.height+f.depth),f.depth&&(m.style.verticalAlign=wt(-f.depth))}return f}function xj(e){return new tg(e)}class yo{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=a0(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof Cc&&this.children[r+1]instanceof Cc){for(var a=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof Cc;)a+=this.children[++r].toText();t.appendChild(new Cc(a).toNode())}else t.appendChild(this.children[r].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=lr.escape(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+lr.escape(a0(this.classes))+'"'),t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Cc{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return lr.escape(this.toText())}toText(){return this.text}}class Goe{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character="â":t>=.1666&&t<=.1667?this.character="â":t>=.2222&&t<=.2223?this.character="â
":t>=.2777&&t<=.2778?this.character="â
â":t>=-.05556&&t<=-.05555?this.character="ââ£":t>=-.1667&&t<=-.1666?this.character="ââ£":t>=-.2223&&t<=-.2222?this.character="ââ£":t>=-.2778&&t<=-.2777?this.character="â
â£":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",wt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+wt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var ft={MathNode:yo,TextNode:Cc,SpaceNode:Goe,newDocumentFragment:xj},Xo=function(t,n,r){return Gr[n][t]&&Gr[n][t].replace&&t.charCodeAt(0)!==55349&&!(uj.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Gr[n][t].replace),new ft.TextNode(t)},b8=function(t){return t.length===1?t[0]:new ft.MathNode("mrow",t)},y8=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var a=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var s=t.text;if(["\\imath","\\jmath"].includes(s))return null;Gr[a][s]&&Gr[a][s].replace&&(s=Gr[a][s].replace);var i=qe.fontMap[r].fontName;return m8(s,i,a)?qe.fontMap[r].variant:null};function K4(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Cc&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof Cc&&n.text===","}else return!1}var $i=function(t,n,r){if(t.length===1){var a=Hr(t[0],n);return r&&a instanceof yo&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var s=[],i,o=0;o<t.length;o++){var c=Hr(t[o],n);if(c instanceof yo&&i instanceof yo){if(c.type==="mtext"&&i.type==="mtext"&&c.getAttribute("mathvariant")===i.getAttribute("mathvariant")){i.children.push(...c.children);continue}else if(c.type==="mn"&&i.type==="mn"){i.children.push(...c.children);continue}else if(K4(c)&&i.type==="mn"){i.children.push(...c.children);continue}else if(c.type==="mn"&&K4(i))c.children=[...i.children,...c.children],s.pop();else if((c.type==="msup"||c.type==="msub")&&c.children.length>=1&&(i.type==="mn"||K4(i))){var d=c.children[0];d instanceof yo&&d.type==="mn"&&(d.children=[...i.children,...d.children],s.pop())}else if(i.type==="mi"&&i.children.length===1){var f=i.children[0];if(f instanceof Cc&&f.text==="̸"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var m=c.children[0];m instanceof Cc&&m.text.length>0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),s.pop())}}}s.push(c),i=c}return s},i0=function(t,n,r){return b8($i(t,n,r))},Hr=function(t,n){if(!t)return new ft.MathNode("mrow");if(Yx[t.type]){var r=Yx[t.type](t,n);return r}else throw new pt("Got group of unknown type: '"+t.type+"'")};function TC(e,t,n,r,a){var s=$i(e,n),i;s.length===1&&s[0]instanceof yo&&["mrow","mtable"].includes(s[0].type)?i=s[0]:i=new ft.MathNode("mrow",s);var o=new ft.MathNode("annotation",[new ft.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var c=new ft.MathNode("semantics",[i,o]),d=new ft.MathNode("math",[c]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&d.setAttribute("display","block");var f=a?"katex":"katex-mathml";return qe.makeSpan([f],[d])}var bj=function(t){return new Mu({style:t.displayMode?dn.DISPLAY:dn.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},yj=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=qe.makeSpan(r,[t])}return t},$oe=function(t,n,r){var a=bj(r),s;if(r.output==="mathml")return TC(t,n,a,r.displayMode,!0);if(r.output==="html"){var i=a6(t,a);s=qe.makeSpan(["katex"],[i])}else{var o=TC(t,n,a,r.displayMode,!1),c=a6(t,a);s=qe.makeSpan(["katex"],[o,c])}return yj(s,r)},Woe=function(t,n,r){var a=bj(r),s=a6(t,a),i=qe.makeSpan(["katex"],[s]);return yj(i,r)},Yoe={widehat:"^",widecheck:"Ë",widetilde:"~",utilde:"~",overleftarrow:"â",underleftarrow:"â",xleftarrow:"â",overrightarrow:"â",underrightarrow:"â",xrightarrow:"â",underbrace:"â",overbrace:"â",overgroup:"â ",undergroup:"â¡",overleftrightarrow:"â",underleftrightarrow:"â",xleftrightarrow:"â",Overrightarrow:"â",xRightarrow:"â",overleftharpoon:"â¼",xleftharpoonup:"â¼",overrightharpoon:"â",xrightharpoonup:"â",xLeftarrow:"â",xLeftrightarrow:"â",xhookleftarrow:"â©",xhookrightarrow:"âª",xmapsto:"â¦",xrightharpoondown:"â",xleftharpoondown:"â½",xrightleftharpoons:"â",xleftrightharpoons:"â",xtwoheadleftarrow:"â",xtwoheadrightarrow:"â ",xlongequal:"=",xtofrom:"â",xrightleftarrows:"â",xrightequilibrium:"â",xleftequilibrium:"â","\\cdrightarrow":"â","\\cdleftarrow":"â","\\cdlongequal":"="},Qoe=function(t){var n=new ft.MathNode("mo",[new ft.TextNode(Yoe[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Xoe={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Koe=function(t){return t.type==="ordgroup"?t.body.length:1},Joe=function(t,n){function r(){var o=4e5,c=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(c)){var d=t,f=Koe(d.base),m,b,g;if(f>5)c==="widehat"||c==="widecheck"?(m=420,o=2364,g=.42,b=c+"4"):(m=312,o=2340,g=.34,b="tilde4");else{var v=[1,1,2,2,3,3][f];c==="widehat"||c==="widecheck"?(o=[0,1062,2364,2364,2364][v],m=[0,239,300,360,420][v],g=[0,.24,.3,.3,.36,.42][v],b=c+v):(o=[0,600,1033,2339,2340][v],m=[0,260,286,306,312][v],g=[0,.26,.286,.3,.306,.34][v],b="tilde"+v)}var E=new s0(b),T=new Vu([E],{width:"100%",height:wt(g),viewBox:"0 0 "+o+" "+m,preserveAspectRatio:"none"});return{span:qe.makeSvgSpan([],[T],n),minWidth:0,height:g}}else{var _=[],A=Xoe[c],[R,P,V]=A,U=V/1e3,D=R.length,H,q;if(D===1){var W=A[3];H=["hide-tail"],q=[W]}else if(D===2)H=["halfarrow-left","halfarrow-right"],q=["xMinYMin","xMaxYMin"];else if(D===3)H=["brace-left","brace-center","brace-right"],q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to supp
838ort 839 `+D+" children.");for(var z=0;z<D;z++){var $=new s0(R[z]),ae=new Vu([$],{width:"400em",height:wt(U),viewBox:"0 0 "+o+" "+V,preserveAspectRatio:q[z]+" slice"}),J=qe.makeSvgSpan([H[z]],[ae],n);if(D===1)return{span:J,minWidth:P,height:U};J.style.height=wt(U),_.push(J)}return{span:qe.makeSpan(["stretchy"],_,n),minWidth:P,height:U}}}var{span:a,minWidth:s,height:i}=r();return a.height=i,a.style.height=wt(i),s>0&&(a.style.minWidth=wt(s)),a},Zoe=function(t,n,r,a,s){var i,o=t.height+t.depth+r+a;if(/fbox|color|angl/.test(n)){if(i=qe.makeSpan(["stretchy",n],[],s),n==="fbox"){var c=s.color&&s.getColor();c&&(i.style.borderColor=c)}}else{var d=[];/^[bx]cancel$/.test(n)&&d.push(new t6({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&d.push(new t6({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var f=new Vu(d,{width:"100%",height:wt(o)});i=qe.makeSvgSpan([],[f],s)}return i.height=o,i.style.height=wt(o),i},$u={encloseSpan:Zoe,mathMLnode:Qoe,svgSpan:Joe};function Pn(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function v8(e){var t=Z5(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Z5(e){return e&&(e.type==="atom"||koe.hasOwnProperty(e.type))?e:null}var w8=(e,t)=>{var n,r,a;e&&e.type==="supsub"?(r=Pn(e.base,"accent"),n=r.base,e.base=n,a=Soe(rr(e,t)),e.base=r):(r=Pn(e,"accent"),n=r.base);var s=rr(n,t.havingCrampedStyle()),i=r.isShifty&&lr.isCharacterBox(n),o=0;if(i){var c=lr.getBaseElem(n),d=rr(c,t.havingCrampedStyle());o=yC(d).skew}var f=r.label==="\\c",m=f?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),b;if(r.isStretchy)b=$u.svgSpan(r,t),b=qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:b,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+wt(2*o)+")",marginLeft:wt(2*o)}:void 0}]},t);else{var g,v;r.label==="\\vec"?(g=qe.staticSvg("vec",t),v=qe.svgData.vec[1]):(g=qe.makeOrd({mode:r.mode,text:r.label},t,"textord"),g=yC(g),g.italic=0,v=g.width,f&&(m+=g.depth)),b=qe.makeSpan(["accent-body"],[g]);var E=r.label==="\\textcircled";E&&(b.classes.push("accent-full"),m=s.height);var T=o;E||(T-=v/2),b.style.left=wt(T),r.label==="\\textcircled"&&(b.style.top=".2em"),b=qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-m},{type:"elem",elem:b}]},t)}var _=qe.makeSpan(["mord","accent"],[b],t);return a?(a.children[0]=_,a.height=Math.max(_.height,a.height),a.classes[0]="mord",a):_},vj=(e,t)=>{var n=e.isStretchy?$u.mathMLnode(e.label):new ft.MathNode("mo",[Xo(e.label,e.mode)]),r=new ft.MathNode("mover",[Hr(e.base,t),n]);return r.setAttribute("accent","true"),r},ele=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));At({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=Qx(t[0]),r=!ele.test(e.funcName),a=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:a,base:n}},htmlBuilder:w8,mathmlBuilder:vj});At({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:w8,mathmlBuilder:vj});At({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:a}},htmlBuilder:(e,t)=>{var n=rr(e.base,t),r=$u.svgSpan(e,t),a=e.label==="\\utilde"?.12:0,s=qe.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]},t);return qe.makeSpan(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var n=$u.mathMLnode(e.label),r=new ft.MathNode("munder",[Hr(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var P2=e=>{var t=new ft.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};At({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:a}=e;return{type:"xArrow",mode:r.mode,label:a,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),a=qe.wrapFragment(rr(e.body,r,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(s+"-arrow-pad");var i;e.below&&(r=t.havingStyle(n.sub()),i=qe.wrapFragment(rr(e.below,r,t),t),i.classes.push(s+"-arrow-pad"));var o=$u.svgSpan(e,t),c=-t.fontMetrics().axisHeight+.5*o.height,d=-t.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(d-=a.depth);var f;if(i){var m=-t.fontMetrics().axisHeight+i.height+.5*o.height+.111;f=qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:d},{type:"elem",elem:o,shift:c},{type:"elem",elem:i,shift:m}]},t)}else f=qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:d},{type:"elem",elem:o,shift:c}]},t);return f.children[0].children[0].children[1].classes.push("svg-align"),qe.makeSpan(["mrel","x-arrow"],[f],t)},mathmlBuilder(e,t){var n=$u.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var a=P2(Hr(e.body,t));if(e.below){var s=P2(Hr(e.below,t));r=new ft.MathNode("munderover",[n,s,a])}else r=new ft.MathNode("mover",[n,a])}else if(e.below){var i=P2(Hr(e.below,t));r=new ft.MathNode("munder",[n,i])}
vendor: 7,247 bytes, line 839
839else r=P2(),r=new ft.MathNode("mover",[n,r]);return r}});var tle=qe.makeSpan;function wj(e,t){var n=hs(e.body,t,!0);return tle([e.mclass],n,t)}function Sj(e,t){var n,r=$i(e.body,t);return e.mclass==="minner"?n=new ft.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new ft.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new ft.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}At({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:qa(a),isCharacterBox:lr.isCharacterBox(a)}},htmlBuilder:wj,mathmlBuilder:Sj});var eb=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};At({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:eb(t[0]),body:qa(t[1]),isCharacterBox:lr.isCharacterBox(t[1])}}});At({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,a=t[1],s=t[0],i;r!=="\\stackrel"?i=eb(a):i="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:qa(a)},c={type:"supsub",mode:s.mode,base:o,sup:r==="\\underset"?null:s,sub:r==="\\underset"?s:null};return{type:"mclass",mode:n.mode,mclass:i,body:[c],isCharacterBox:lr.isCharacterBox(c)}},htmlBuilder:wj,mathmlBuilder:Sj});At({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:eb(t[0]),body:qa(t[0])}},htmlBuilder(e,t){var n=hs(e.body,t,!0),r=qe.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=$i(e.body,t),r=new ft.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var nle={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},CC=()=>({type:"styling",body:[],mode:"math",style:"display"}),NC=e=>e.type==="textord"&&e.text==="@",rle=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function ale(e,t,n){var r=nle[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=n.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:r,mode:"math",family:"rel"},i=n.callFunction("\\Big",[s],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),c={type:"ordgroup",mode:"math",body:[a,i,o]};return n.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function sle(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new pt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],a=[r],s=0;s<t.length;s++){for(var i=t[s],o=CC(),c=0;c<i.length;c++)if(!NC(i[c]))o.body.push(i[c]);else{r.push(o),c+=1;var d=v8(i[c]).text,f=new Array(2);if(f[0]={type:"ordgroup",mode:"math",body:[]},f[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(d)>-1))if("<>AV".indexOf(d)>-1)for(var m=0;m<2;m++){for(var b=!0,g=c+1;g<i.length;g++){if(rle(i[g],d)){b=!1,c=g;break}if(NC(i[g]))throw new pt("Missing a "+d+" character to complete a CD arrow.",i[g]);f[m].body.push(i[g])}if(b)throw new pt("Missing a "+d+" character to complete a CD arrow.",i[c])}else throw new pt('Expected one of "<>AV=|." after @',i[c]);var v=ale(d,f,e),E={type:"styling",body:[v],mode:"math",style:"display"};r.push(E),o=CC()}s%2===0?r.push(o):r.shift(),r=[],a.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var T=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:T,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}At({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=qe.wrapFragment(rr(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=wt(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ft.MathNode("mrow",[Hr(e.label,t)]);return n=new ft.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ft.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});At({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=qe.wrapFragment(rr(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ft.MathNode("mrow",[Hr(e.fragment,t)])}});At({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=Pn(t[0],"ordgroup"),a=r.body,s="",i=0;i<a.length;i++){var o=Pn(a[i],"textord");s+=o.text}var c=parseInt(s),d;if(isNaN(c))throw new pt("\\@char has non-numeric argument "+s);if(c<0||c>=1114111)throw new pt("\\@char with invalid code point "+s);return c<=65535?d=String.fromCharCode(c):(c-=65536,d=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:"textord",mode:n.mode,text:d}}});var Ej=(e,t)=>{var n=hs(e.body,t.withColor(e.color),!1);return qe.makeFragment(n)},kj=(e,t)=>{var n=$i(e.body,t.withColor(e.color)),r=new ft.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};At({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=Pn(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:r,body:qa(a)}},htmlBuilder:Ej,mathmlBuilder:kj});At({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,a=Pn(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);var s=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:a,body:s}},htmlBuilder:Ej,mathmlBuilder:kj});At({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,a=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,s=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTe
839X, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:s,size:a&&Pn(a,"size").value}},htmlBuilder(e,t){var n=qe.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=wt(ma(e.size,t)))),n},mathmlBuilder(e,t){var n=new ft.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",wt(ma(e.size,t)))),n}});var s6={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},_j=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new pt("Expected a control sequence",e);return t},ile=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Tj=(e,t,n,r)=>{var a=e.gullet.macros.get(n.text);a==null&&(n.noexpand=!0,a={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,a,r)};At({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(s6[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=s6[r.text]),Pn(t.parseFunction(),"internal");throw new pt("Invalid token after macro prefix",r)}});At({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),a=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new pt("Expected a control sequence",r);for(var s=0,i,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){i=t.gullet.future(),o[s].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new pt('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==s+1)throw new pt('Argument number "'+r.text+'" out of order');s++,o.push([])}else{if(r.text==="EOF")throw new pt("Expected a macro definition");o[s].push(r.text)}var{tokens:c}=t.gullet.consumeArg();return i&&c.unshift(i),(n==="\\edef"||n==="\\xdef")&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(a,{tokens:c,numArgs:s,delimiters:o},n===s6[n]),{type:"internal",mode:t.mode}}});At({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=_j(t.gullet.popToken());t.gullet.consumeSpaces();var a=ile(t);return Tj(t,r,a,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});At({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=_j(t.gullet.popToken()),a=t.gullet.popToken(),s=t.gullet.popToken();return Tj(t,r,s,n==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var zm=function(t,n,r){var a=Gr.math[t]&&Gr.math[t].replace,s=m8(a||t,n,r);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return s},S8=function(t,n,r,a){var s=r.havingBaseStyle(n),i=qe.makeSpan(a.concat(s.sizingClasses(r)),[t],r),o=s.sizeMultiplier/r.sizeMultiplier;return i.height*=o,i.depth*=o,i.maxFontSize=s.sizeMultiplier,i},Cj=function(t,n,r){var a=n.havingBaseStyle(r),s=(1-n.sizeMultiplier/a.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=wt(s),t.height-=s,t.depth+=s},ole=function(t,n,r,a,s,i){var o=qe.makeSymbol(t,"Main-Regular",s,a),c=S8(o,n,a,i);return r&&Cj(c,a,n),c},lle=function(t,n,r,a){return qe.makeSymbol(t,"Size"+n+"-Regular",r,a)},Nj=function(t,n,r,a,s,i){var o=lle(t,n,s,a),c=S8(qe.makeSpan(["delimsizing","size"+n],[o],a),dn.TEXT,a,i);return r&&Cj(c,a,dn.TEXT),c},J4=function(t,n,r){var a;n==="Size1-Regular"?a="delim-size1":a="delim-size4";var s=qe.makeSpan(["delimsizinginner",a],[qe.makeSpan([],[qe.makeSymbol(t,n,r)])]);return{type:"elem",elem:s}},Z4=function(t,n,r){var a=Tc["Size4-Regular"][t.charCodeAt(0)]?Tc["Size4-Regular"][t.charCodeAt(0)][4]:Tc["Size1-Regular"][t.charCodeAt(0)][4],s=new s0("inner",poe(t,Math.round(1e3*n))),i=new Vu([s],{width:wt(a),height:wt(n),style:"width:"+wt(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=qe.makeSvgSpan([],[i],r);return o.height=n,o.style.height=wt(n),o.style.width=wt(a),{type:"elem",elem:o}},i6=.008,j2={type:"kern",size:-1*i6},cle=["|","\\lvert","\\rvert","\\vert"],ule=["\\|","\\lVert","\\rVert","\\Vert"],Aj=function(t,n,r,a,s,i){var o,c,d,f,m="",b=0;o=d=f=t,c=null;var g="Size1-Regular";t==="\\uparrow"?d=f="â":t==="\\Uparrow"?d=f="â":t==="\\downarrow"?o=d="â":t==="\\Downarrow"?o=d="â":t==="\\updownarrow"?(o="\\uparrow",d="â",f="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",d="â",f="\\Downarrow"):cle.includes(t)?(d="â£",m="vert",b=333):ule.includes(t)?(d="â¥",m="doublevert",b=556):t==="["||t==="\\lbrack"?(o="â¡",d="â¢",f="â£",g="Size4-Regular",m="lbrack",b=667):t==="]"||t==="\\rbrack"?(o="â¤",d="â¥",f="â¦",g="Size4-Regular",m="rbrack",b=667):t==="\\lfloor"||t==="â"?(d=o="â¢",f="â£",g="Size4-Regular",m="lfloor",b=667):t==="\\lceil"||t==="â"?(o="â¡",d=f="â¢",g="Size4-Regular",m="lceil",b=667):t==="\\rfloor"||t==="â"?(d=o="â¥",f="â¦",g="Size4-Regular",m="rfloor",b=667):t==="\\rceil"||t==="â"?(o="â¤",d=f="â¥",g="Size4-Regular",m="rceil",b=667):t==="("||t==="\\lparen"?(o="â",d="â",f="â",g="Size4-Regular",m="lparen",b=87
vendor: 6,993 bytes, line 839
8395):t===")"||t==="\\rparen"?(o="â",d="â",f="â ",g="Size4-Regular",m="rparen",b=875):t==="\\{"||t==="\\lbrace"?(o="â§",c="â¨",f="â©",d="âª",g="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="â«",c="â¬",f="â",d="âª",g="Size4-Regular"):t==="\\lgroup"||t==="â®"?(o="â§",f="â©",d="âª",g="Size4-Regular"):t==="\\rgroup"||t==="â¯"?(o="â«",f="â",d="âª",g="Size4-Regular"):t==="\\lmoustache"||t==="â°"?(o="â§",f="â",d="âª",g="Size4-Regular"):(t==="\\rmoustache"||t==="â±")&&(o="â«",f="â©",d="âª",g="Size4-Regular");var v=zm(o,g,s),E=v.height+v.depth,T=zm(d,g,s),_=T.height+T.depth,A=zm(f,g,s),R=A.height+A.depth,P=0,V=1;if(c!==null){var U=zm(c,g,s);P=U.height+U.depth,V=2}var D=E+R+P,H=Math.max(0,Math.ceil((n-D)/(V*_))),q=D+H*V*_,W=a.fontMetrics().axisHeight;r&&(W*=a.sizeMultiplier);var z=q/2-W,$=[];if(m.length>0){var ae=q-E-R,J=Math.round(q*1e3),xe=moe(m,Math.round(ae*1e3)),ee=new s0(m,xe),ce=(b/1e3).toFixed(3)+"em",se=(J/1e3).toFixed(3)+"em",be=new Vu([ee],{width:ce,height:se,viewBox:"0 0 "+b+" "+J}),Z=qe.makeSvgSpan([],[be],a);Z.height=J/1e3,Z.style.width=ce,Z.style.height=se,$.push({type:"elem",elem:Z})}else{if($.push(J4(f,g,s)),$.push(j2),c===null){var ne=q-E-R+2*i6;$.push(Z4(d,ne,a))}else{var B=(q-E-R-P)/2+2*i6;$.push(Z4(d,B,a)),$.push(j2),$.push(J4(c,g,s)),$.push(j2),$.push(Z4(d,B,a))}$.push(j2),$.push(J4(o,g,s))}var O=a.havingBaseStyle(dn.TEXT),K=qe.makeVList({positionType:"bottom",positionData:z,children:$},O);return S8(qe.makeSpan(["delimsizing","mult"],[K],O),dn.TEXT,a,i)},ev=80,tv=.08,nv=function(t,n,r,a,s){var i=foe(t,a,r),o=new s0(t,i),c=new Vu([o],{width:"400em",height:wt(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return qe.makeSvgSpan(["hide-tail"],[c],s)},dle=function(t,n){var r=n.havingBaseSizing(),a=Oj("\\surd",t*r.sizeMultiplier,Rj,r),s=r.sizeMultiplier,i=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,c=0,d=0,f=0,m;return a.type==="small"?(f=1e3+1e3*i+ev,t<1?s=1:t<1.4&&(s=.7),c=(1+i+tv)/s,d=(1+i)/s,o=nv("sqrtMain",c,f,i,n),o.style.minWidth="0.853em",m=.833/s):a.type==="large"?(f=(1e3+ev)*r1[a.size],d=(r1[a.size]+i)/s,c=(r1[a.size]+i+tv)/s,o=nv("sqrtSize"+a.size,c,f,i,n),o.style.minWidth="1.02em",m=1/s):(c=t+i+tv,d=t+i,f=Math.floor(1e3*t+i)+ev,o=nv("sqrtTall",c,f,i,n),o.style.minWidth="0.742em",m=1.056),o.height=d,o.style.height=wt(c),{span:o,advanceWidth:m,ruleWidth:(n.fontMetrics().sqrtRuleThickness+i)*s}},Lj=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","â","â","\\lceil","\\rceil","â","â","\\surd"],hle=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","â®","â¯","\\lmoustache","\\rmoustache","â°","â±"],Mj=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],r1=[0,1.2,1.8,2.4,3],fle=function(t,n,r,a,s){if(t==="<"||t==="\\lt"||t==="â¨"?t="\\langle":(t===">"||t==="\\gt"||t==="â©")&&(t="\\rangle"),Lj.includes(t)||Mj.includes(t))return Nj(t,n,!1,r,a,s);if(hle.includes(t))return Aj(t,r1[n],!1,r,a,s);throw new pt("Illegal delimiter: '"+t+"'")},ple=[{type:"small",style:dn.SCRIPTSCRIPT},{type:"small",style:dn.SCRIPT},{type:"small",style:dn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],mle=[{type:"small",style:dn.SCRIPTSCRIPT},{type:"small",style:dn.SCRIPT},{type:"small",style:dn.TEXT},{type:"stack"}],Rj=[{type:"small",style:dn.SCRIPTSCRIPT},{type:"small",style:dn.SCRIPT},{type:"small",style:dn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],gle=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},Oj=function(t,n,r,a){for(var s=Math.min(2,3-a.style.size),i=s;i<r.length&&r[i].type!=="stack";i++){var o=zm(t,gle(r[i]),"math"),c=o.height+o.depth;if(r[i].type==="small"){var d=a.havingBaseStyle(r[i].style);c*=d.sizeMultiplier}if(c>n)return r[i]}return r[r.length-1]},Pj=function(t,n,r,a,s,i){t==="<"||t==="\\lt"||t==="â¨"?t="\\langle":(t===">"||t==="\\gt"||t==="â©")&&(t="\\rangle");var o;Mj.includes(t)?o=ple:Lj.includes(t)?o=Rj:o=mle;var c=Oj(t,n,o,a);return c.type==="small"?ole(t,c.style,r,a,s,i):c.type==="large"?Nj(t,c.size,r,a,s,i):Aj(t,n,r,a,s,i)},xle=function(t,n,r,a,s,i){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,c=901,d=5/a.fontMetrics().ptPerEm,f=Math.max(n-o,r+o),m=Math.max(f/500*c,2*f-d);return Pj(t,m,!0,a,s,i)},Iu={sqrtImage:dle,sizedDelim:fle,sizeToMaxHeight:r1,customSizedDelim:Pj,leftRightDelim:xle},AC={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},ble=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","â","â","\\lceil","\\rceil","â","â","<",">","\\langle","â¨","\\rangle","â©","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","â®","â¯","\\lmoustache","\\rmoustache","â°","â±","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function tb(e,t){var n=Z5(e);if(n&&ble.includes(n.text))return n;throw n?new pt("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new pt("Invalid delimiter type '"+e.type+"'",e)}At({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=tb(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:AC[e.funcName].size,mclass:AC[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?qe.makeSpan([e.mclass]):Iu.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Xo(e.delim,e.mode));var n=new ft.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=wt(Iu.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function LC(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}At({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");
vendor: 12,922 bytes, line 839
839if(n&&typeof n!="string")throw new pt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:tb(t[0],e).text,color:n}}});At({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=tb(t[0],e),r=e.parser;++r.leftrightDepth;var a=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var s=Pn(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:a,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{LC(e);for(var n=hs(e.body,t,!0,["mopen","mclose"]),r=0,a=0,s=!1,i=0;i<n.length;i++)n[i].isMiddle?s=!0:(r=Math.max(n[i].height,r),a=Math.max(n[i].depth,a));r*=t.sizeMultiplier,a*=t.sizeMultiplier;var o;if(e.left==="."?o=R1(t,["mopen"]):o=Iu.leftRightDelim(e.left,r,a,t,e.mode,["mopen"]),n.unshift(o),s)for(var c=1;c<n.length;c++){var d=n[c],f=d.isMiddle;f&&(n[c]=Iu.leftRightDelim(f.delim,r,a,f.options,e.mode,[]))}var m;if(e.right===".")m=R1(t,["mclose"]);else{var b=e.rightColor?t.withColor(e.rightColor):t;m=Iu.leftRightDelim(e.right,r,a,b,e.mode,["mclose"])}return n.push(m),qe.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{LC(e);var n=$i(e.body,t);if(e.left!=="."){var r=new ft.MathNode("mo",[Xo(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var a=new ft.MathNode("mo",[Xo(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),n.push(a)}return b8(n)}});At({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=tb(t[0],e);if(!e.parser.leftrightDepth)throw new pt("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=R1(t,[]);else{n=Iu.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Xo("|","text"):Xo(e.delim,e.mode),r=new ft.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var E8=(e,t)=>{var n=qe.wrapFragment(rr(e.body,t),t),r=e.label.slice(1),a=t.sizeMultiplier,s,i=0,o=lr.isCharacterBox(e.body);if(r==="sout")s=qe.makeSpan(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/a,i=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var c=ma({number:.6,unit:"pt"},t),d=ma({number:.35,unit:"ex"},t),f=t.havingBaseSizing();a=a/f.sizeMultiplier;var m=n.height+n.depth+c+d;n.style.paddingLeft=wt(m/2+c);var b=Math.floor(1e3*m*a),g=doe(b),v=new Vu([new s0("phase",g)],{width:"400em",height:wt(b/1e3),viewBox:"0 0 400000 "+b,preserveAspectRatio:"xMinYMin slice"});s=qe.makeSvgSpan(["hide-tail"],[v],t),s.style.height=wt(m),i=n.depth+c+d}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var E=0,T=0,_=0;/box/.test(r)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),E=t.fontMetrics().fboxsep+(r==="colorbox"?0:_),T=E):r==="angl"?(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),E=4*_,T=Math.max(0,.25-n.depth)):(E=o?.2:0,T=E),s=$u.encloseSpan(n,r,E,T,t),/fbox|boxed|fcolorbox/.test(r)?(s.style.borderStyle="solid",s.style.borderWidth=wt(_)):r==="angl"&&_!==.049&&(s.style.borderTopWidth=wt(_),s.style.borderRightWidth=wt(_)),i=n.depth+T,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var A;if(e.backgroundColor)A=qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:i},{type:"elem",elem:n,shift:0}]},t);else{var R=/cancel|phase/.test(r)?["svg-align"]:[];A=qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:s,shift:i,wrapperClasses:R}]},t)}return/cancel/.test(r)&&(A.height=n.height,A.depth=n.depth),/cancel/.test(r)&&!o?qe.makeSpan(["mord","cancel-lap"],[A],t):qe.makeSpan(["mord"],[A],t)},k8=(e,t)=>{var n=0,r=new ft.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Hr(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};At({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:a}=e,s=Pn(t[0],"color-token").color,i=t[1];return{type:"enclose",mode:r.mode,label:a,backgroundColor:s,body:i}},htmlBuilder:E8,mathmlBuilder:k8});At({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:a}=e,s=Pn(t[0],"color-token").color,i=Pn(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:a,backgroundColor:i,borderColor:s,body:o}},htmlBuilder:E8,mathmlBuilder:k8});At({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});At({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:E8,mathmlBuilder:k8});At({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var jj={};function Bc(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:s,mathmlBuilder:i}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},c=0;c<n.length;++c)jj[n[c]]=o;s&&(Wx[t]=s),i&&(Yx[t]=i)}var Dj={};function oe(e,t){Dj[e]=t}function MC(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var nb=e=>{var t=e.parser.settings;if(!t.displayMode)throw new pt("{"+e.envName+"} can be used only in display mode.")};function _8(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function d0(e,t,n){var{hskipBeforeAndAfter:r,addJot:a,cols:s,arraystretch:i,colSeparationType:o,autoTag:c,singleRow:d,emptySingleRow:f,maxNumCols:m,leqno:b}=t;if(e.gullet.beginGroup(),d||e.gullet.macros.set("\\cr","\\\\\\relax"),!i){var g=e.gullet.expandMacroAsText("\\arraystretch");if(g==null)i=1;else if(i=parseFloat(g),!i||i<0)throw new pt("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var v=[],E=[v],T=[],_=[],A=c!=null?[]:void 0;function R(){c&&e.gullet.macros.set("\\@eqnsw","1",!0)}function P(){A&&(e.gullet.macros.get("\\df@tag")?(A.push(e.subparse([new Eo("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):A.push(!!c&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(R(),_.push(MC(e));;){var V=e.parseExpression(!1,d?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),V={type:"ordgroup",mode:e.mode,body:V},n&&(V={type:"styling",mode:e.mode,style:n,body:[V]}),v.push(V);var U=e.fetch().text;if(U==="&"){if(m&&v.length===m){if(d||o)throw new pt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(U==="\\end"){P(),v.length===1&&V.type==="styling"&&V.body[0].body.length===0&&(E.length>1||!f)&&E.pop(),_.length<E.length+1&&_.push([]);break}else if(U==="\\\\"){e.consume();var D=void 0;e.gullet.future().text!==" "&&(D=e.parseSizeGroup(!0)),T.push(D?D.value:null),P(),_.push(MC(e)),v=[],E.push(v),R()}else throw new pt("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:i,body:E,cols:s,rowGaps:T,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:o,tags:A,leqno:b}}function T8(e){return e.slice(0,1)==="d"?"display":"text"}var Fc=function(t,n){var r,a,s=t.body.length,i=t.hLinesBeforeRow,o=0,c=new Array(s),d=[],f=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),m=1/n.fontMetrics().ptPerEm,b=5*m;if(t.colSeparationType&&t.colSeparationType==="small"){var g=n.havingStyle(dn.SCRIPT).sizeMultiplier;b=.2778*(g/n.sizeMultiplier)}var v=t.colSeparationType==="CD"?ma({number:3,unit:"ex"},n):12*m,E=3*m,T=t.arraystretch*v,_=.7*T,A=.3*T,R=0;function P(Ht){for(var tt=0;tt<Ht.length;++tt)tt>0&&(R+=.25),d.push({pos:R,isDashed:Ht[tt]})}for(P(i[0]),r=0;r<t.body.length;++r){var V=t.body[r],U=_,D=A;o<V.length&&(o=V.length);var H=new Array(V.length);for(a=0;a<V.length;++a){var q=rr(V[a],n);D<q.depth&&(D=q.depth),U<q.height&&(U=q.height),H[a]=q}var W=t.rowGaps[r],z=0;W&&(z=ma(W,n),z>0&&(z+=A,D<z&&(D=z),z=0)),t.addJot&&(D+=E),H.height=U,H.depth=D,R+=U,H.pos=R,R+=D+z,c[r]=H,P(i[r+1])}var $=R/2+n.fontMetrics().axisHeight,ae=t.cols||[],J=[],xe,ee,ce=[];if(t.tags&&t.tags.some(Ht=>Ht))for(r=0;r<s;++r){var se=c[r],be=se.pos-$,Z=t.tags[r],ne=void 0;Z===!0?ne=qe.makeSpan(["eqn-num"],[],n):Z===!1?ne=qe.makeSpan([],[],n):ne=qe.makeSpan([],hs(Z,n,!0),n),ne.depth=se.depth,ne.height=se.height,ce.push({type:"elem",elem:ne,shift:be})}for(a=0,ee=0;a<o||ee<ae.length;++a,++ee){for(var B=ae[ee]||{},O=!0;B.type==="separator";){if(O||(xe=qe.makeSpan(["arraycolsep"],[]),xe.style.width=wt(n.fontMetrics().doubleRuleSep),J.push(xe)),B.separator==="|"||B.separator===":"){var K=B.separator==="|"?"solid":"dashed",he=qe.makeSpan(["vertical-separator"],[],n);he.style.height=wt(R),he.style.borderRightWidth=wt(f),he.style.borderRightStyle=K,he.style.margin="0 "+wt(-f/2);var we=R-$;we&&(he.style.verticalAlign=wt(-we)),J.push(he)}else throw new pt("Invalid separator type: "+B.separator);ee++,B=ae[ee]||{},O=!1}if(!(a>=o)){var Ee=void 0;(a>0||t.hskipBeforeAndAfter)&&(Ee=lr.deflt(B.pregap,b),Ee!==0&&(xe=qe.makeSpan(["arraycolsep"],[]),xe.style.width=wt(Ee),J.push(xe)));var ue=[];for(r=0;r<s;++r){var Ae=c[r],Ie=Ae[a];if(Ie){var We=Ae.pos-$;Ie.depth=Ae.depth,Ie.height=Ae.height,ue.push({type:"elem",elem:Ie,shift:We})}}ue=qe.makeVList({positionType:"individualShift",children:ue},n),ue=qe.makeSpan(["col-align-"+(B.align||"c")],[ue]),J.push(ue),(a<o-1||t.hskipBeforeAndAfter)&&(Ee=lr.deflt(B.postgap,b),Ee!==0&&(xe=qe.makeSpan(["arraycolsep"],[]),xe.style.width=wt(Ee),J.push(xe)))}}if(c=qe.makeSpan(["mtable"],J),d.length>0){for(var st=qe.makeLineSpan("hline",n,f),mt=qe.makeLineSpan("hdashline",n,f),_t=[{type:"elem",elem:c,shift:0}];d.length>0;){var fe=d.pop(),yt=fe.pos-$;fe.isDashed?_t.push({type:"elem",elem:mt,shift:yt}):_t.push({type:"elem",elem:st,shift:yt})}c=qe.makeVList({positionType:"individualShift",children:_t},n)}if(ce.length===0)return qe.makeSpan(["mord"],[c],n);var rn=qe.makeVList({positionType:"individualShift",children:ce},n);return rn=qe.makeSpan(["tag"],[rn],n),qe.makeFragment([c,rn])},yle={c:"center ",l:"left ",r:"right "},zc=function(t,n){for(var r=[],a=new ft.MathNode("mtd",[],["mtr-glue"]),s=new ft.MathNode("mtd",[],["mml-eqn-num"]),i=0;i<t.body.length;i++){for(var o=t.body[i],c=[],d=0;d<o.length;d++)c.push(new ft.MathNode("mtd",[Hr(o[d],n)]));t.tags&&t.tags[i]&&(c.unshift(a),c.push(a),t.leqno?c.unshift(s):c.push(s)),r.push(new ft.MathNode("mtr",c))}var f=new ft.MathNode("mtable",r),m=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);f.setAttribute("rowspacing",wt(m));var b="",g="";if(t.cols&&t.cols.length>0){var v=t.cols,E="",T=!1,_=0,A=v.length;v[0].type==="separator"&&(b+="top ",_=1),v[v.length-1].type==="separator"&&(b+="bottom ",A-=1);for(var R=_;R<A;R++)v[R].type==="align"?(g+=yle[v[R].align],T&&(E+="none "),T=!0):v[R].type==="separator"&&T&&(E+=v[R].separator==="|"?"solid ":"dashed ",T=!1);f.setAttribute("columnalign",g.trim()),/[sd]/.test(E)&&f.setAttribute("columnlines",E.trim())}if(t.colSeparationType==="align"){for(var P=t.cols||[],V="",U=1;U<P.length;U++)V+=U%2?"0em ":"1em ";f.setAttribute("columnspacing",V.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?f.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?f.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?f.setAttribute("columnspacing","0.5em"):f.setAttribute("columnspacing","1em");
vendor: 5,713 bytes, line 839
839var D="",H=t.hLinesBeforeRow;b+=H[0].length>0?"left ":"",b+=H[H.length-1].length>0?"right ":"";for(var q=1;q<H.length-1;q++)D+=H[q].length===0?"none ":H[q][0]?"dashed ":"solid ";return/[sd]/.test(D)&&f.setAttribute("rowlines",D.trim()),b!==""&&(f=new ft.MathNode("menclose",[f]),f.setAttribute("notation",b.trim())),t.arraystretch&&t.arraystretch<1&&(f=new ft.MathNode("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},Ij=function(t,n){t.envName.indexOf("ed")===-1&&nb(t);var r=[],a=t.envName.indexOf("at")>-1?"alignat":"align",s=t.envName==="split",i=d0(t.parser,{cols:r,addJot:!0,autoTag:s?void 0:_8(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),o,c=0,d={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var f="",m=0;m<n[0].body.length;m++){var b=Pn(n[0].body[m],"textord");f+=b.text}o=Number(f),c=o*2}var g=!c;i.body.forEach(function(_){for(var A=1;A<_.length;A+=2){var R=Pn(_[A],"styling"),P=Pn(R.body[0],"ordgroup");P.body.unshift(d)}if(g)c<_.length&&(c=_.length);else{var V=_.length/2;if(o<V)throw new pt("Too many math in a row: "+("expected "+o+", but got "+V),_[0])}});for(var v=0;v<c;++v){var E="r",T=0;v%2===1?E="l":v>0&&g&&(T=1),r[v]={type:"align",align:E,pregap:T,postgap:0}}return i.colSeparationType=g?"align":"alignat",i};Bc({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Z5(t[0]),r=n?[t[0]]:Pn(t[0],"ordgroup").body,a=r.map(function(i){var o=v8(i),c=o.text;if("lcr".indexOf(c)!==-1)return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new pt("Unknown column alignment: "+c,i)}),s={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return d0(e.parser,s,T8(e.envName))},htmlBuilder:Fc,mathmlBuilder:zc});Bc({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),n=a.fetch().text,"lcr".indexOf(n)===-1)throw new pt("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),r.cols=[{type:"align",align:n}]}}var s=d0(e.parser,r,T8(e.envName)),i=Math.max(0,...s.body.map(o=>o.length));return s.cols=new Array(i).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:Fc,mathmlBuilder:zc});Bc({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=d0(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Fc,mathmlBuilder:zc});Bc({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Z5(t[0]),r=n?[t[0]]:Pn(t[0],"ordgroup").body,a=r.map(function(i){var o=v8(i),c=o.text;if("lc".indexOf(c)!==-1)return{type:"align",align:c};throw new pt("Unknown column alignment: "+c,i)});if(a.length>1)throw new pt("{subarray} can contain only one column");var s={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=d0(e.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new pt("{subarray} can contain only one column");return s},htmlBuilder:Fc,mathmlBuilder:zc});Bc({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=d0(e.parser,t,T8(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Fc,mathmlBuilder:zc});Bc({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Ij,htmlBuilder:Fc,mathmlBuilder:zc});Bc({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&nb(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:_8(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return d0(e.parser,t,"display")},htmlBuilder:Fc,mathmlBuilder:zc});Bc({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Ij,htmlBuilder:Fc,mathmlBuilder:zc});Bc({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){nb(e);var t={autoTag:_8(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return d0(e.parser,t,"display")},htmlBuilder:Fc,mathmlBuilder:zc});Bc({type:"array",names:["CD"],props:{numArgs:0},handler(e){return nb(e),sle(e.parser)},htmlBuilder:Fc,mathmlBuilder:zc});oe("\\nonumber","\\gdef\\@eqnsw{0}");oe("\\notag","\\nonumber");At({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new pt(e.funcName+" valid only within array environment")}});var RC=jj;At({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];if(a.type!=="ordgroup")throw new pt("Invalid environment name",a);for(var s="",i=0;i<a.body.length;++i)s+=Pn(a.body[i],"textord").text;if(r==="\\begin"){if(!RC.hasOwnProperty(s))throw new pt("No such environment: "+s,a);var o=RC[s],{args:c,optArgs:d}=n.parseArguments("\\begin{"+s+"}",o),f={mode:n.mode,envName:s,parser:n},m=o.handler(f,c,d);n.expect("\\end",!1);var b=n.nextToken,g=Pn(n.parseFunction(),"environment");
vendor: 17,881 bytes, line 839
839if(g.name!==s)throw new pt("Mismatch: \\begin{"+s+"} matched by \\end{"+g.name+"}",b);return m}return{type:"environment",mode:n.mode,name:s,nameGroup:a}}});var Bj=(e,t)=>{var n=e.font,r=t.withFont(n);return rr(e.body,r)},Fj=(e,t)=>{var n=e.font,r=t.withFont(n);return Hr(e.body,r)},OC={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};At({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=Qx(t[0]),s=r;return s in OC&&(s=OC[s]),{type:"font",mode:n.mode,font:s.slice(1),body:a}},htmlBuilder:Bj,mathmlBuilder:Fj});At({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],a=lr.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:eb(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:a}}});At({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:a}=e,{mode:s}=n,i=n.parseExpression(!0,a),o="math"+r.slice(1);return{type:"font",mode:s,font:o,body:{type:"ordgroup",mode:n.mode,body:i}}},htmlBuilder:Bj,mathmlBuilder:Fj});var zj=(e,t)=>{var n=t;return e==="display"?n=n.id>=dn.SCRIPT.id?n.text():dn.DISPLAY:e==="text"&&n.size===dn.DISPLAY.size?n=dn.TEXT:e==="script"?n=dn.SCRIPT:e==="scriptscript"&&(n=dn.SCRIPTSCRIPT),n},C8=(e,t)=>{var n=zj(e.size,t.style),r=n.fracNum(),a=n.fracDen(),s;s=t.havingStyle(r);var i=rr(e.numer,s,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;i.height=i.height<o?o:i.height,i.depth=i.depth<c?c:i.depth}s=t.havingStyle(a);var d=rr(e.denom,s,t),f,m,b;e.hasBarLine?(e.barSize?(m=ma(e.barSize,t),f=qe.makeLineSpan("frac-line",t,m)):f=qe.makeLineSpan("frac-line",t),m=f.height,b=f.height):(f=null,m=0,b=t.fontMetrics().defaultRuleThickness);var g,v,E;n.size===dn.DISPLAY.size||e.size==="display"?(g=t.fontMetrics().num1,m>0?v=3*b:v=7*b,E=t.fontMetrics().denom1):(m>0?(g=t.fontMetrics().num2,v=b):(g=t.fontMetrics().num3,v=3*b),E=t.fontMetrics().denom2);var T;if(f){var A=t.fontMetrics().axisHeight;g-i.depth-(A+.5*m)<v&&(g+=v-(g-i.depth-(A+.5*m))),A-.5*m-(d.height-E)<v&&(E+=v-(A-.5*m-(d.height-E)));var R=-(A-.5*m);T=qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:E},{type:"elem",elem:f,shift:R},{type:"elem",elem:i,shift:-g}]},t)}else{var _=g-i.depth-(d.height-E);_<v&&(g+=.5*(v-_),E+=.5*(v-_)),T=qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:E},{type:"elem",elem:i,shift:-g}]},t)}s=t.havingStyle(n),T.height*=s.sizeMultiplier/t.sizeMultiplier,T.depth*=s.sizeMultiplier/t.sizeMultiplier;var P;n.size===dn.DISPLAY.size?P=t.fontMetrics().delim1:n.size===dn.SCRIPTSCRIPT.size?P=t.havingStyle(dn.SCRIPT).fontMetrics().delim2:P=t.fontMetrics().delim2;var V,U;return e.leftDelim==null?V=R1(t,["mopen"]):V=Iu.customSizedDelim(e.leftDelim,P,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?U=qe.makeSpan([]):e.rightDelim==null?U=R1(t,["mclose"]):U=Iu.customSizedDelim(e.rightDelim,P,!0,t.havingStyle(n),e.mode,["mclose"]),qe.makeSpan(["mord"].concat(s.sizingClasses(t)),[V,qe.makeSpan(["mfrac"],[T]),U],t)},N8=(e,t)=>{var n=new ft.MathNode("mfrac",[Hr(e.numer,t),Hr(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=ma(e.barSize,t);n.setAttribute("linethickness",wt(r))}var a=zj(e.size,t.style);if(a.size!==t.style.size){n=new ft.MathNode("mstyle",[n]);var s=a.size===dn.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",s),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var o=new ft.MathNode("mo",[new ft.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),i.push(o)}if(i.push(n),e.rightDelim!=null){var c=new ft.MathNode("mo",[new ft.TextNode(e.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),i.push(c)}return b8(i)}return n};At({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],s=t[1],i,o=null,c=null,d="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,o="(",c=")";break;case"\\\\bracefrac":i=!1,o="\\{",c="\\}";break;case"\\\\brackfrac":i=!1,o="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":d="display";break;case"\\tfrac":case"\\tbinom":d="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:a,denom:s,hasBarLine:i,leftDelim:o,rightDelim:c,size:d,barSize:null}},htmlBuilder:C8,mathmlBuilder:N8});At({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],s=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:a,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});At({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,a;switch(n){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:a,token:r}}});var PC=["display","text","script","scriptscript"],jC=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};At({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],a=t[5],s=Qx(t[0]),i=s.type==="atom"&&s.family==="open"?jC(s.text):null,o=Qx(t[1]),c=o.type==="atom"&&o.family==="close"?jC(o.text):null,d=Pn(t[2],"size"),f,m=null;d.isBlank?f=!0:(m=d.value,f=m.number>0);var b="auto",g=t[3];if(g.type==="ordgroup"){if(g.body.length>0){var v=Pn(g.body[0],"textord");b=PC[Number(v.text)]}}else g=Pn(g,"textord"),b=PC[Number(g.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:f,barSize:m,leftDelim:i,rightDelim:c,size:b}},htmlBuilder:C8,mathmlBuilder:N8});At({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:a}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Pn(t[0],"size").value,token:a}}});At({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],s=Xie(Pn(t[1],"infix").size),i=t[2],o=s.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:i,continued:!1,hasBarLine:o,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:C8,mathmlBuilder:N8});var Hj=(e,t)=>{var n=t.style,r,a;e.type==="supsub"?(r=e.sup?rr(e.sup,t.havingStyle(n.sup()),t):rr(e.sub,t.havingStyle(n.sub()),t),a=Pn(e.base,"horizBrace")):a=Pn(e,"horizBrace");var s=rr(a.base,t.havingBaseStyle(dn.DISPLAY)),i=$u.svgSpan(a,t),o;if(a.isOver?(o=qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=qe.makeVList({positionType:"bottom",positionData:s.depth+.1+i.height,children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var c=qe.makeSpan(["mord",a.isOver?"mover":"munder"],[o],t);a.isOver?o=qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=qe.makeVList({positionType:"bottom",positionData:c.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:c}]},t)}return qe.makeSpan(["mord",a.isOver?"mover":"munder"],[o],t)},vle=(e,t)=>{var n=$u.mathMLnode(e.label);return new ft.MathNode(e.isOver?"mover":"munder",[Hr(e.base,t),n])};At({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Hj,mathmlBuilder:vle});At({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],a=Pn(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:qa(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=hs(e.body,t,!1);return qe.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=i0(e.body,t);return n instanceof yo||(n=new yo("mrow",[n])),n.setAttribute("href",e.href),n}});At({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=Pn(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var a=[],s=0;s<r.length;s++){var i=r[s];i==="~"&&(i="\\textasciitilde"),a.push({type:"textord",mode:"text",text:i})}var o={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:r,body:qa(o)}}});At({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:qa(t[0])}},htmlBuilder(e,t){var n=hs(e.body,t,!1);return qe.makeFragment(n)},mathmlBuilder(e,t){return new ft.MathNode("mrow",$i(e.body,t))}});At({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:a}=e,s=Pn(t[0],"raw").string,i=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,c={};switch(r){case"\\htmlClass":c.class=s,o={command:"\\htmlClass",class:s};break;case"\\htmlId":c.id=s,o={command:"\\htmlId",id:s};break;case"\\htmlStyle":c.style=s,o={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var d=s.split(","),f=0;f<d.length;f++){var m=d[f].split("=");if(m.length!==2)throw new pt("Error parsing key-value for \\htmlData");c["data-"+m[0].trim()]=m[1].trim()}o={command:"\\htmlData",attributes:c};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(o)?{type:"html",mode:n.mode,attributes:c,body:qa(i)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=hs(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var a=qe.makeSpan(r,n,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&a.setAttribute(s,e.attributes[s]);return a},mathmlBuilder:(e,t)=>i0(e.body,t)});At({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:qa(t[0]),mathml:qa(t[1])}},htmlBuilder:(e,t)=>{var n=hs(e.html,t,!1);return qe.makeFragment(n)},mathmlBuilder:(e,t)=>i0(e.mathml,t)});var rv=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new pt("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!ij(r))throw new pt("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};At({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,a={number:0,unit:"em"},s={number:.9,unit:"em"},i={number:0,unit:"em"},o="";if(n[0])for(var c=Pn(n[0],"raw").string,d=c.split(","),f=0;f<d.length;f++){var m=d[f].split("=");if(m.length===2){var b=m[1].trim();switch(m[0].trim()){case"alt":o=b;break;case"width":a=rv(b);break;case"height":s=rv(b);break;case"totalheight":i=rv(b);break;default:throw new pt("Invalid key: '"+m[0]+"' in \\includegraphics.")}}}var g=Pn(t[0],"url").url;return o===""&&(o=g,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:g})?{type:"includegraphics",mode:r.mode,alt:o,width:a,height:s,totalheight:i,src:g}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=ma(e.height,t),r=0;e.totalheight.number>0&&(r=ma(e.totalheight,t)-n);var a=0;e.width.number>0&&(a=ma(e.width,t));var s={height:wt(n+r)};a>0&&(s.width=wt(a)),r>0&&(s.verticalAlign=wt(-r));var i=new voe(e.src,e.alt,s);return i.height=n,i.depth=r,i},mathmlBuilder:(e,t)=>{var n=new ft.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=ma(e.height,t),a=0;if(e.totalheight.number>0&&(a=ma(e.totalheight,t)-r,n.setAttribute("valign",wt(-a))),n.setAttribute("height",wt(r+a)),e.width.number>0){var s=ma(e.width,t);n.setAttribute("width",wt(s))}return n.setAttribute("src",e.src),n}});At({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=Pn(t[0],"size");if(n.settings.strict){var s=r[1]==="m",i=a.value.unit==="mu";s?(i||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+a.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):i&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:a.value}},htmlBuilder(e,t){return qe.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=ma(e.dimension,t);return new ft.SpaceNode(n)}});At({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:a}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=qe.makeSpan([],[rr(e.body,t)]),n=qe.makeSpan(["inner"],[n],t)):n=qe.makeSpan(["inner"],[rr(e.body,t)]);var r=qe.makeSpan(["fix"],[]),a=qe.makeSpan([e.alignment],[n,r],t),s=qe.makeSpan(["strut"]);return s.style.height=wt(a.height+a.depth),a.depth&&(s.style.verticalAlign=wt(-a.depth)),a.children.unshift(s),a=qe.makeSpan(["thinbox"],[a],t),qe.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var n=new ft.MathNode("mpadded",[Hr(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});At({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,a=r.mode;r.switchMode("math");var s=n==="\\("?"\\)":"$",i=r.parseExpression(!1,s);return r.expect(s),r.switchMode(a),{type:"styling",mode:r.mode,style:"text",body:i}}});At({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new pt("Mismatched "+e.funcName)}});var DC=(e,t)=>{switch(t.style.size){case dn.DISPLAY.size:return e.display;case dn.TEXT.size:return e.text;case dn.SCRIPT.size:return e.script;case dn.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};At({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:qa(t[0]),text:qa(t[1]),script:qa(t[2]),scriptscript:qa(t[3])}},htmlBuilder:(e,t)=>{var n=DC(e,t),r=hs(n,t,!1);return qe.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=DC(e,t);return i0(n,t)}});var Uj=(e,t,n,r,a,s,i)=>{e=qe.makeSpan([],[e]);var o=n&&lr.isCharacterBox(n),c,d;if(t){var f=rr(t,r.havingStyle(a.sup()),r);d={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-f.depth)}}if(n){var m=rr(n,r.havingStyle(a.sub()),r);c={elem:m,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-m.height)}}var b;if(d&&c){var g=r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+i;b=qe.makeVList({positionType:"bottom",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:wt(-s)},{type:"kern",size:c.kern},{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:wt(s)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(c){var v=e.height-i;b=qe.makeVList({positionType:"top",positionData:v,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:wt(-s)},{type:"kern",size:c.kern},{type:"elem",elem:e}]},r)}else if(d){var E=e.depth+i;b=qe.makeVList({positionType:"bottom",positionData:E,children:[{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:wt(s)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var T=[b];if(c&&s!==0&&!o){var _=qe.makeSpan(["mspace"],[],r);_.style.marginRight=wt(s),T.unshift(_)}return qe.makeSpan(["mop","op-limits"],T,r)},qj=["\\smallint"],Ap=(e,t)=>{var n,r,a=!1,s;e.type==="supsub"?(n=e.sup,r=e.sub,s=Pn(e.base,"op"),a=!0):s=Pn(e,"op");var i=t.style,o=!1;i.size===dn.DISPLAY.size&&s.symbol&&!qj.includes(s.name)&&(o=!0);var c;if(s.symbol){var d=o?"Size2-Regular":"Size1-Regular",f="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(f=s.name.slice(1),s.name=f==="oiint"?"\\iint":"\\iiint"),c=qe.makeSymbol(s.name,d,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),f.length>0){var m=c.italic,b=qe.staticSvg(f+"Size"+(o?"2":"1"),t);c=qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:b,shift:o?.08:0}]},t),s.name="\\"+f,c.classes.unshift("mop"),c.italic=m}}else if(s.body){var g=hs(s.body,t,!0);g.length===1&&g[0]instanceof Qo?(c=g[0],c.classes[0]="mop"):c=qe.makeSpan(["mop"],g,t)}else{for(var v=[],E=1;E<s.name.length;
vendor: 4,707 bytes, line 839
839E++)v.push(qe.mathsym(s.name[E],s.mode,t));c=qe.makeSpan(["mop"],v,t)}var T=0,_=0;return(c instanceof Qo||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(T=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic),a?Uj(c,n,r,t,i,_,T):(T&&(c.style.position="relative",c.style.top=wt(T)),c)},rg=(e,t)=>{var n;if(e.symbol)n=new yo("mo",[Xo(e.name,e.mode)]),qj.includes(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new yo("mo",$i(e.body,t));else{n=new yo("mi",[new Cc(e.name.slice(1))]);var r=new yo("mo",[Xo("â¡","text")]);e.parentIsSupSub?n=new yo("mrow",[n,r]):n=xj([n,r])}return n},wle={"â":"\\prod","â":"\\coprod","â":"\\sum","â":"\\bigwedge","â":"\\bigvee","â":"\\bigcap","â":"\\bigcup","â¨":"\\bigodot","â¨":"\\bigoplus","â¨":"\\bigotimes","â¨":"\\biguplus","â¨":"\\bigsqcup"};At({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","â","â","â","â","â","â","â","â¨","â¨","â¨","â¨","â¨"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=r;return a.length===1&&(a=wle[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Ap,mathmlBuilder:rg});At({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:qa(r)}},htmlBuilder:Ap,mathmlBuilder:rg});var Sle={"â«":"\\int","â¬":"\\iint","â":"\\iiint","â®":"\\oint","â¯":"\\oiint","â°":"\\oiiint"};At({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Ap,mathmlBuilder:rg});At({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Ap,mathmlBuilder:rg});At({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","â«","â¬","â","â®","â¯","â°"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Sle[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Ap,mathmlBuilder:rg});var Vj=(e,t)=>{var n,r,a=!1,s;e.type==="supsub"?(n=e.sup,r=e.sub,s=Pn(e.base,"operatorname"),a=!0):s=Pn(e,"operatorname");var i;if(s.body.length>0){for(var o=s.body.map(m=>{var b=m.text;return typeof b=="string"?{type:"textord",mode:m.mode,text:b}:m}),c=hs(o,t.withFont("mathrm"),!0),d=0;d<c.length;d++){var f=c[d];f instanceof Qo&&(f.text=f.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=qe.makeSpan(["mop"],c,t)}else i=qe.makeSpan(["mop"],[],t);return a?Uj(i,n,r,t,t.style,0,0):i},Ele=(e,t)=>{for(var n=$i(e.body,t.withFont("mathrm")),r=!0,a=0;a<n.length;a++){var s=n[a];if(!(s instanceof ft.SpaceNode))if(s instanceof ft.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var i=s.children[0];s.children.length===1&&i instanceof ft.TextNode?i.text=i.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var o=n.map(f=>f.toText()).join("");n=[new ft.TextNode(o)]}var c=new ft.MathNode("mi",n);c.setAttribute("mathvariant","normal");var d=new ft.MathNode("mo",[Xo("â¡","text")]);return e.parentIsSupSub?new ft.MathNode("mrow",[c,d]):ft.newDocumentFragment([c,d])};At({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"operatorname",mode:n.mode,body:qa(a),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Vj,mathmlBuilder:Ele});oe("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Ch({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?qe.makeFragment(hs(e.body,t,!1)):qe.makeSpan(["mord"],hs(e.body,t,!0),t)},mathmlBuilder(e,t){return i0(e.body,t,!0)}});At({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=rr(e.body,t.havingCrampedStyle()),r=qe.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,s=qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a}
vendor: 10,387 bytes, line 839
839,{type:"elem",elem:r},{type:"kern",size:a}]},t);return qe.makeSpan(["mord","overline"],[s],t)},mathmlBuilder(e,t){var n=new ft.MathNode("mo",[new ft.TextNode("â¾")]);n.setAttribute("stretchy","true");var r=new ft.MathNode("mover",[Hr(e.body,t),n]);return r.setAttribute("accent","true"),r}});At({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:qa(r)}},htmlBuilder:(e,t)=>{var n=hs(e.body,t.withPhantom(),!1);return qe.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=$i(e.body,t);return new ft.MathNode("mphantom",n)}});At({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=qe.makeSpan([],[rr(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),qe.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=$i(qa(e.body),t),r=new ft.MathNode("mphantom",n),a=new ft.MathNode("mpadded",[r]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}});At({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=qe.makeSpan(["inner"],[rr(e.body,t.withPhantom())]),r=qe.makeSpan(["fix"],[]);return qe.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=$i(qa(e.body),t),r=new ft.MathNode("mphantom",n),a=new ft.MathNode("mpadded",[r]);return a.setAttribute("width","0px"),a}});At({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Pn(t[0],"size").value,a=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:a}},htmlBuilder(e,t){var n=rr(e.body,t),r=ma(e.dy,t);return qe.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new ft.MathNode("mpadded",[Hr(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});At({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});At({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,a=n[0],s=Pn(t[0],"size"),i=Pn(t[1],"size");return{type:"rule",mode:r.mode,shift:a&&Pn(a,"size").value,width:s.value,height:i.value}},htmlBuilder(e,t){var n=qe.makeSpan(["mord","rule"],[],t),r=ma(e.width,t),a=ma(e.height,t),s=e.shift?ma(e.shift,t):0;return n.style.borderRightWidth=wt(r),n.style.borderTopWidth=wt(a),n.style.bottom=wt(s),n.width=r,n.height=a+s,n.depth=-s,n.maxFontSize=a*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=ma(e.width,t),r=ma(e.height,t),a=e.shift?ma(e.shift,t):0,s=t.color&&t.getColor()||"black",i=new ft.MathNode("mspace");i.setAttribute("mathbackground",s),i.setAttribute("width",wt(n)),i.setAttribute("height",wt(r));var o=new ft.MathNode("mpadded",[i]);return a>=0?o.setAttribute("height",wt(a)):(o.setAttribute("height",wt(a)),o.setAttribute("depth",wt(-a))),o.setAttribute("voffset",wt(a)),o}});function Gj(e,t,n){for(var r=hs(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier,s=0;s<r.length;s++){var i=r[s].classes.indexOf("sizing");i<0?Array.prototype.push.apply(r[s].classes,t.sizingClasses(n)):r[s].classes[i+1]==="reset-size"+t.size&&(r[s].classes[i+1]="reset-size"+n.size),r[s].height*=a,r[s].depth*=a}return qe.makeFragment(r)}var IC=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],kle=(e,t)=>{var n=t.havingSize(e.size);return Gj(e.body,n,t)};At({type:"sizing",names:IC,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:a}=e,s=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:IC.indexOf(r)+1,body:s}},htmlBuilder:kle,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=$i(e.body,n),a=new ft.MathNode("mstyle",r);return a.setAttribute("mathsize",wt(n.sizeMultiplier)),a}});At({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,a=!1,s=!1,i=n[0]&&Pn(n[0],"ordgroup");if(i)for(var o="",c=0;c<i.body.length;++c){var d=i.body[c];if(o=d.text,o==="t")a=!0;else if(o==="b")s=!0;else{a=!1,s=!1;break}}else a=!0,s=!0;var f=t[0];return{type:"smash",mode:r.mode,body:f,smashHeight:a,smashDepth:s}},htmlBuilder:(e,t)=>{var n=qe.makeSpan([],[rr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var a=0;a<n.children.length;a++)n.children[a].depth=0;var s=qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return qe.makeSpan(["mord"],[s],t)},mathmlBuilder:(e,t)=>{var n=new ft.MathNode("mpadded",[Hr(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});At({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,a=n[0],s=t[0];return{type:"sqrt",mode:r.mode,body:s,index:a}},htmlBuilder(e,t){var n=rr(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=qe.wrapFragment(n,t);var r=t.fontMetrics(),a=r.defaultRuleThickness,s=a;t.style.id<dn.TEXT.id&&(s=t.fontMetrics().xHeight);var i=a+s/4,o=n.height+n.depth+i+a,{span:c,ruleWidth:d,advanceWidth:f}=Iu.sqrtImage(o,t),m=c.height-d;m>n.height+n.depth+i&&(i=(i+m-n.height-n.depth)/2);var b=c.height-n.height-i-d;n.style.paddingLeft=wt(f);var g=qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+b)},{type:"elem",elem:c},{type:"kern",size:d}]},t);if(e.index){var v=t.havingStyle(dn.SCRIPTSCRIPT),E=rr(e.index,v,t),T=.6*(g.height-g.depth),_=qe.makeVList({positionType:"shift",positionData:-T,children:[{type:"elem",elem:E}]},t),A=qe.makeSpan(["root"],[_]);return qe.makeSpan(["mord","sqrt"],[A,g],t)}else return qe.makeSpan(["mord","sqrt"],[g],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ft.MathNode("mroot",[Hr(n,t),Hr(r,t)]):new ft.MathNode("msqrt",[Hr(n,t)])}});var BC={display:dn.DISPLAY,text:dn.TEXT,script:dn.SCRIPT,scriptscript:dn.SCRIPTSCRIPT};At({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:a}=e,s=a.parseExpression(!0,n),i=r.slice(1,r.length-5);return{type:"styling",mode:a.mode,style:i,body:s}},htmlBuilder(e,t){var n=BC[e.style],r=t.havingStyle(n).withFont("");return Gj(e.body,r,t)},mathmlBuilder(e,t){var n=BC[e.style],r=t.havingStyle(n),a=$i(e.body,r),s=new ft.MathNode("mstyle",a),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=i[e.style];return s.setAttribute("scriptlevel",o[0]),s.setAttribute("displaystyle",o[1]),s}});var _le=function(t,n){var r=t.base;if(r)if(r.type==="op"){var a=r.limits&&(n.style.size===dn.DISPLAY.size||r.alwaysHandleSupSub);return a?Ap:null}else if(r.type==="operatorname"){var s=r.alwaysHandleSupSub&&(n.style.size===dn.DISPLAY.size||r.limits);return s?Vj:null}else{if(r.type==="accent")return lr.isCharacterBox(r.base)?w8:null;if(r.type==="horizBrace"){var i=!t.sub;return i===r.isOver?Hj:null}else return null}else return null};Ch({type:"supsub",htmlBuilder(e,t){var n=_le(e,t);if(n)return n(e,t);var{base:r,sup:a,sub:s}=e,i=rr(r,t),o,c,d=t.fontMetrics(),f=0,m=0,b=r&&lr.isCharacterBox(r);if(a){var g=t.havingStyle(t.style.sup());o=rr(a,g,t),b||(f=i.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(s){var v=t.havingStyle(t.style.sub());c=rr(s,v,t),b||(m=i.depth+v.fontMetrics().subDrop*v.sizeMultiplier/t.sizeMultiplier)}var E;t.style===dn.DISPLAY?E=d.sup1:t.style.cramped?E=d.sup3:E=d.sup2;var T=t.sizeMultiplier,_=wt(.5/d.ptPerEm/T),A=null;if(c){var R=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(i instanceof Qo||R)&&(A=wt(-i.italic))}var P;if(o&&c){f=Math.max(f,E,o.depth+.25*d.xHeight),m=Math.max(m,d.sub2);var V=d.defaultRuleThickness,U=4*V;if(f-o.depth-(c.height-m)<U){m=U-(f-o.depth)+c.height;var D=.8*d.xHeight-(f-o.depth);D>0&&(f+=D,m-=D)}var H=[{type:"elem",elem:c,shift:m,marginRight:_,marginLeft:A},{type:"elem",elem:o,shift:-f,marginRight:_}];P=qe.makeVList({positionType:"individualShift",children:H},t)}else if(c){m=Math.max(m,d.sub1,c.height-.8*d.xHeight);var q=[{type:"elem",elem:c,marginLeft:A,marginRight:_}];P=qe.makeVList({positionType:"shift",positionData:m,children:q},t)}else if(o)f=Math.max(f,E,o.depth+.25*d.xHeight),P=qe.makeVList({positionType:"shift",positionData:-f,children:[{type:"elem",elem:o,marginRight:_}]},t);else throw new Error("supsub must have either sup or sub.");var W=r6(i,"right")||"mord";return qe.makeSpan([W],[i,qe.makeSpan(["msupsub"],[P])],t)},mathmlBuilder(e,t){var n=!1,r,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[Hr(e.base,t)];e.sub&&s.push(Hr(e.sub,t)),e.sup&&s.push(Hr(e.sup,t));var i;if(n)i=r?"mover":"munder";else if(e.sub)if(e.sup){var d=e.base;d&&d.type==="op"&&d.limits&&t.style===dn.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(t.style===dn.DISPLAY||d.limits)?i="munderover":i="msubsup"}else{var c=e.base;c&&c.type==="op"&&c.limits&&(t.style===dn.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||t.style===dn.DISPLAY)?i="munder":i="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===dn.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===dn.DISPLAY)?i="mover":i="msup"}return new ft.MathNode(i,s)}});Ch({type:"atom",htmlBuilder(e,t){return qe.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ft.MathNode("mo",[Xo(e.text,e.mode)]);if(e.family==="bin"){var r=y8(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}
vendor: 9,375 bytes, lines 839-843
839else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var $j={mi:"italic",mn:"normal",mtext:"normal"};Ch({type:"mathord",htmlBuilder(e,t){return qe.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new ft.MathNode("mi",[Xo(e.text,e.mode,t)]),r=y8(e,t)||"italic";return r!==$j[n.type]&&n.setAttribute("mathvariant",r),n}});Ch({type:"textord",htmlBuilder(e,t){return qe.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Xo(e.text,e.mode,t),r=y8(e,t)||"normal",a;return e.mode==="text"?a=new ft.MathNode("mtext",[n]):/[0-9]/.test(e.text)?a=new ft.MathNode("mn",[n]):e.text==="\\prime"?a=new ft.MathNode("mo",[n]):a=new ft.MathNode("mi",[n]),r!==$j[a.type]&&a.setAttribute("mathvariant",r),a}});var av={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},sv={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ch({type:"spacing",htmlBuilder(e,t){if(sv.hasOwnProperty(e.text)){var n=sv[e.text].className||"";if(e.mode==="text"){var r=qe.makeOrd(e,t,"textord");return r.classes.push(n),r}else return qe.makeSpan(["mspace",n],[qe.mathsym(e.text,e.mode,t)],t)}else{if(av.hasOwnProperty(e.text))return qe.makeSpan(["mspace",av[e.text]],[],t);throw new pt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(sv.hasOwnProperty(e.text))n=new ft.MathNode("mtext",[new ft.TextNode(" ")]);else{if(av.hasOwnProperty(e.text))return new ft.MathNode("mspace");throw new pt('Unknown type of space "'+e.text+'"')}return n}});var FC=()=>{var e=new ft.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Ch({type:"tag",mathmlBuilder(e,t){var n=new ft.MathNode("mtable",[new ft.MathNode("mtr",[FC(),new ft.MathNode("mtd",[i0(e.body,t)]),FC(),new ft.MathNode("mtd",[i0(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var zC={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},HC={"\\textbf":"textbf","\\textmd":"textmd"},Tle={"\\textit":"textit","\\textup":"textup"},UC=(e,t)=>{var n=e.font;if(n){if(zC[n])return t.withTextFontFamily(zC[n]);if(HC[n])return t.withTextFontWeight(HC[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Tle[n])};At({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"text",mode:n.mode,body:qa(a),font:r}},htmlBuilder(e,t){var n=UC(e,t),r=hs(e.body,n,!0);return qe.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=UC(e,t);return i0(e.body,n)}});At({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=rr(e.body,t),r=qe.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,s=qe.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n}]},t);return qe.makeSpan(["mord","underline"],[s],t)},mathmlBuilder(e,t){var n=new ft.MathNode("mo",[new ft.TextNode("â¾")]);n.setAttribute("stretchy","true");var r=new ft.MathNode("munder",[Hr(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});At({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=rr(e.body,t),r=t.fontMetrics().axisHeight,a=.5*(n.height-r-(n.depth+r));return qe.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new ft.MathNode("mpadded",[Hr(e.body,t)],["vcenter"])}});At({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new pt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=qC(e),r=[],a=t.havingStyle(t.style.text()),s=0;s<n.length;s++){var i=n[s];i==="~"&&(i="\\textasciitilde"),r.push(qe.makeSymbol(i,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return qe.makeSpan(["mord","text"].concat(a.sizingClasses(t)),qe.tryCombineChars(r),a)},mathmlBuilder(e,t){var n=new ft.TextNode(qC(e)),r=new ft.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var qC=e=>e.body.replace(/ /g,e.star?"â£":" "),$d=mj,Wj=`[ \r 840 ]`,Cle="\\\\[a-zA-Z@]+",Nle="\\\\[^\uD800-\uDFFF]",Ale="("+Cle+")"+Wj+"*",Lle=`\\\\( 841|[ \r ]+ 842?)[ \r ]*`,o6="[Ì-ͯ]",Mle=new RegExp(o6+"+$"),Rle="("+Wj+"+)|"+(Lle+"|")+"([!-\\[\\]-â§âª-í¿ï¤-ï¿¿]"+(o6+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(o6+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Ale)+("|"+Nle+")");class VC{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(Rle,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new Eo("EOF",new Hi(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new pt("Unexpected character: '"+t[n]+"'",new Eo(t[n],new Hi(this,n,n+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[a]===14){var s=t.indexOf(` 843`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Eo(a,new Hi(this,n,this.tokenRegex.lastIndex))}}class Ole{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new pt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(t)&&(s[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var Ple=Dj;oe("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});oe("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});oe("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});oe("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});oe("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});oe("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");oe("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var GC={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};oe("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new pt("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=GC[t.text],r==null||r>=n)throw new pt("Invalid base-"+n+" digit "+t.text);for(var a;(a=GC[e.future().text])!=null&&a<n;)r*=n,r+=a,e.popToken()}return"\\@char{"+r+"}"});var A8=(e,t,n,r)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new pt("\\newcommand's first argument must be a macro name");var s=a[0].text,i=e.isDefined(s);if(i&&!t)throw new pt("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!i&&!n)throw new pt("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var o=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var c="",d=e.expandNextToken();d.text!=="]"&&d.text!=="EOF";)c+=d.text,d=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new pt("Invalid number of arguments: "+c);o=parseInt(c),a=e.consumeArg().tokens}return i&&r||e.macros.set(s,{tokens:a,numArgs:o}),""};oe("\\newcommand",e=>A8(e,!1,!0,!1));oe("\\renewcommand",e=>A8(e,!0,!1,!1));oe("\\providecommand",e=>A8(e,!0,!0,!0));oe("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});oe("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});oe("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),$d[n],Gr.math[n],Gr.text[n]),""});oe("\\bgroup","{");oe("\\egroup","}");
vendor: 6,683 bytes, line 843
843oe("~","\\nobreakspace");oe("\\lq","`");oe("\\rq","'");oe("\\aa","\\r a");oe("\\AA","\\r A");oe("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");oe("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");oe("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");oe("â¬","\\mathscr{B}");oe("â°","\\mathscr{E}");oe("â±","\\mathscr{F}");oe("â","\\mathscr{H}");oe("â","\\mathscr{I}");oe("â","\\mathscr{L}");oe("â³","\\mathscr{M}");oe("â","\\mathscr{R}");oe("â","\\mathfrak{C}");oe("â","\\mathfrak{H}");oe("â¨","\\mathfrak{Z}");oe("\\Bbbk","\\Bbb{k}");oe("·","\\cdotp");oe("\\llap","\\mathllap{\\textrm{#1}}");oe("\\rlap","\\mathrlap{\\textrm{#1}}");oe("\\clap","\\mathclap{\\textrm{#1}}");oe("\\mathstrut","\\vphantom{(}");oe("\\underbar","\\underline{\\text{#1}}");oe("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');oe("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`â }}");oe("\\ne","\\neq");oe("â ","\\neq");oe("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`â}}");oe("â","\\notin");oe("â","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`â}}");oe("â","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`â}}");oe("â","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`â}}");oe("â","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`â}}");oe("â","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`â}}");oe("â","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`â}}");oe("â","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`â}}");oe("â","\\perp");oe("â¼","\\mathclose{!\\mkern-0.8mu!}");oe("â","\\notni");oe("â","\\ulcorner");oe("â","\\urcorner");oe("â","\\llcorner");oe("â","\\lrcorner");oe("©","\\copyright");oe("®","\\textregistered");oe("ï¸","\\textregistered");oe("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');oe("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');oe("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');oe("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');oe("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");oe("â®","\\vdots");oe("\\varGamma","\\mathit{\\Gamma}");oe("\\varDelta","\\mathit{\\Delta}");oe("\\varTheta","\\mathit{\\Theta}");oe("\\varLambda","\\mathit{\\Lambda}");oe("\\varXi","\\mathit{\\Xi}");oe("\\varPi","\\mathit{\\Pi}");oe("\\varSigma","\\mathit{\\Sigma}");oe("\\varUpsilon","\\mathit{\\Upsilon}");oe("\\varPhi","\\mathit{\\Phi}");oe("\\varPsi","\\mathit{\\Psi}");oe("\\varOmega","\\mathit{\\Omega}");oe("\\substack","\\begin{subarray}{c}#1\\end{subarray}");oe("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");oe("\\boxed","\\fbox{$\\displaystyle{#1}$}");oe("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");oe("\\implies","\\DOTSB\\;\\Longrightarrow\\;");oe("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");oe("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");oe("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var $C={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};oe("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in $C?t=$C[n]:(n.slice(0,4)==="\\not"||n in Gr.math&&["bin","rel"].includes(Gr.math[n].group))&&(t="\\dotsb"),t});var L8={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};oe("\\dotso",function(e){var t=e.future().text;return t in L8?"\\ldots\\,":"\\ldots"});oe("\\dotsc",function(e){var t=e.future().text;return t in L8&&t!==","?"\\ldots\\,":"\\ldots"});oe("\\cdots",function(e){var t=e.future().text;return t in L8?"\\@cdots\\,":"\\@cdots"});oe("\\dotsb","\\cdots");oe("\\dotsm","\\cdots");oe("\\dotsi","\\!\\cdots");oe("\\dotsx","\\ldots\\,");oe("\\DOTSI","\\relax");oe("\\DOTSB","\\relax");oe("\\DOTSX","\\relax");oe("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");oe("\\,","\\tmspace+{3mu}{.1667em}");oe("\\thinspace","\\,");oe("\\>","\\mskip{4mu}");oe("\\:","\\tmspace+{4mu}{.2222em}");oe("\\medspace","\\:");oe("\\;","\\tmspace+{5mu}{.2777em}");oe("\\thickspace","\\;");oe("\\!","\\tmspace-{3mu}{.1667em}");oe("\\negthinspace","\\!");oe("\\negmedspace","\\tmspace-{4mu}{.2222em}");oe("\\negthickspace","\\tmspace-{5mu}{.277em}");oe("\\enspace","\\kern.5em ");oe("\\enskip","\\hskip.5em\\relax");oe("\\quad","\\hskip1em\\relax");oe("\\qquad","\\hskip2em\\relax");oe("\\tag","\\@ifstar\\tag@literal\\tag@paren");oe("\\tag@paren","\\tag@literal{({#1})}");oe("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new pt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});oe("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");oe("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");oe("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");oe("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");oe("\\newline","\\\\\\relax");oe("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Yj=wt(Tc["Main-Regular"][84][1]-.7*Tc["Main-Regular"][65][1]);oe("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Yj+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");oe("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Yj+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");
843oe("\\hspace","\\@ifstar\\@hspacer\\@hspace");oe("\\@hspace","\\hskip #1\\relax");oe("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");oe("\\ordinarycolon",":");oe("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");oe("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');oe("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');oe("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');oe("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');oe("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');oe("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');oe("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');oe("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');oe("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');oe("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');oe("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');oe("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');oe("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');oe("â·","\\dblcolon");oe("â¹","\\eqcolon");oe("â","\\coloneqq");oe("â","\\eqqcolon");oe("â©´","\\Coloneqq");oe("\\ratio","\\vcentcolon");oe("\\coloncolon","\\dblcolon");oe("\\colonequals","\\coloneqq");oe("\\coloncolonequals","\\Coloneqq");oe("\\equalscolon","\\eqqcolon");oe("\\equalscoloncolon","\\Eqqcolon");oe("\\colonminus","\\coloneq");oe("\\coloncolonminus","\\Coloneq");oe("\\minuscolon","\\eqcolon");oe("\\minuscoloncolon","\\Eqcolon");oe("\\coloncolonapprox","\\Colonapprox");oe("\\coloncolonsim","\\Colonsim");oe("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");oe("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");oe("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");oe("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");oe("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`â}}");oe("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");oe("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");oe("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");oe("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");oe("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");oe("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");oe("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");oe("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");oe("\\gvertneqq","\\html@mathml{\\@gvertneqq}{â©}");oe("\\lvertneqq","\\html@mathml{\\@lvertneqq}{â¨}");oe("\\ngeqq","\\html@mathml{\\@ngeqq}{â±}");oe("\\ngeqslant","\\html@mathml{\\@ngeqslant}{â±}");oe("\\nleqq","\\html@mathml{\\@nleqq}{â°}");oe("\\nleqslant","\\html@mathml{\\@nleqslant}{â°}");oe("\\nshortmid","\\html@mathml{\\@nshortmid}{â¤}");oe("\\nshortparallel","\\html@mathml{\\@nshortparallel}{â¦}");oe("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{â}");oe("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{â}");oe("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{â}");oe("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{â«}");oe("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{â}");oe("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{â«}");oe("\\imath","\\html@mathml{\\@imath}{ı}");oe("\\jmath","\\html@mathml{\\@jmath}{È·}");oe("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`â¦}}");oe("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`â§}}");oe("â¦","\\llbracket");oe("â§","\\rrbracket");oe("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}
843{\\mathopen{\\char`â¦}}");oe("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`â¦}}");oe("â¦","\\lBrace");oe("â¦","\\rBrace");oe("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");oe("⦵","\\minuso");oe("\\darr","\\downarrow");oe("\\dArr","\\Downarrow");oe("\\Darr","\\Downarrow");oe("\\lang","\\langle");oe("\\rang","\\rangle");oe("\\uarr","\\uparrow");oe("\\uArr","\\Uparrow");oe("\\Uarr","\\Uparrow");oe("\\N","\\mathbb{N}");oe("\\R","\\mathbb{R}");oe("\\Z","\\mathbb{Z}");oe("\\alef","\\aleph");oe("\\alefsym","\\aleph");oe("\\Alpha","\\mathrm{A}");oe("\\Beta","\\mathrm{B}");oe("\\bull","\\bullet");oe("\\Chi","\\mathrm{X}");oe("\\clubs","\\clubsuit");oe("\\cnums","\\mathbb{C}");oe("\\Complex","\\mathbb{C}");oe("\\Dagger","\\ddagger");oe("\\diamonds","\\diamondsuit");oe("\\empty","\\emptyset");oe("\\Epsilon","\\mathrm{E}");oe("\\Eta","\\mathrm{H}");oe("\\exist","\\exists");oe("\\harr","\\leftrightarrow");oe("\\hArr","\\Leftrightarrow");oe("\\Harr","\\Leftrightarrow");oe("\\hearts","\\heartsuit");oe("\\image","\\Im");oe("\\infin","\\infty");oe("\\Iota","\\mathrm{I}");oe("\\isin","\\in");oe("\\Kappa","\\mathrm{K}");oe("\\larr","\\leftarrow");oe("\\lArr","\\Leftarrow");oe("\\Larr","\\Leftarrow");oe("\\lrarr","\\leftrightarrow");oe("\\lrArr","\\Leftrightarrow");oe("\\Lrarr","\\Leftrightarrow");oe("\\Mu","\\mathrm{M}");oe("\\natnums","\\mathbb{N}");oe("\\Nu","\\mathrm{N}");oe("\\Omicron","\\mathrm{O}");oe("\\plusmn","\\pm");oe("\\rarr","\\rightarrow");oe("\\rArr","\\Rightarrow");oe("\\Rarr","\\Rightarrow");oe("\\real","\\Re");oe("\\reals","\\mathbb{R}");oe("\\Reals","\\mathbb{R}");oe("\\Rho","\\mathrm{P}");oe("\\sdot","\\cdot");oe("\\sect","\\S");oe("\\spades","\\spadesuit");oe("\\sub","\\subset");oe("\\sube","\\subseteq");oe("\\supe","\\supseteq");oe("\\Tau","\\mathrm{T}");oe("\\thetasym","\\vartheta");oe("\\weierp","\\wp");oe("\\Zeta","\\mathrm{Z}");oe("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");oe("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");oe("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");oe("\\bra","\\mathinner{\\langle{#1}|}");oe("\\ket","\\mathinner{|{#1}\\rangle}");oe("\\braket","\\mathinner{\\langle{#1}\\rangle}");oe("\\Bra","\\left\\langle#1\\right|");oe("\\Ket","\\left|#1\\right\\rangle");var Qj=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.consumeArg().tokens,i=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var c=m=>b=>{e&&(b.macros.set("|",i),a.length&&b.macros.set("\\|",o));var g=m;if(!m&&a.length){var v=b.future();v.text==="|"&&(b.popToken(),g=!0)}return{tokens:g?a:r,numArgs:0}};t.macros.set("|",c(!1)),a.length&&t.macros.set("\\|",c(!0));var d=t.consumeArg().tokens,f=t.expandTokens([...s,...d,...n]);return t.macros.endGroup(),{tokens:f.reverse(),numArgs:0}};oe("\\bra@ket",Qj(!1));oe("\\bra@set",Qj(!0));oe("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");oe("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");oe("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");oe("\\angln","{\\angl n}");oe("\\blue","\\textcolor{##6495ed}{#1}");oe("\\orange","\\textcolor{##ffa500}{#1}");oe("\\pink","\\textcolor{##ff00af}{#1}");oe("\\red","\\textcolor{##df0030}{#1}");oe("\\green","\\textcolor{##28ae7b}{#1}");oe("\\gray","\\textcolor{gray}{#1}");oe("\\purple","\\textcolor{##9d38bd}{#1}");oe("\\blueA","\\textcolor{##ccfaff}{#1}");oe("\\blueB","\\textcolor{##80f6ff}{#1}");oe("\\blueC","\\textcolor{##63d9ea}{#1}");oe("\\blueD","\\textcolor{##11accd}{#1}");oe("\\blueE","\\textcolor{##0c7f99}{#1}");oe("\\tealA","\\textcolor{##94fff5}{#1}");oe("\\tealB","\\textcolor{##26edd5}{#1}");oe("\\tealC","\\textcolor{##01d1c1}{#1}");oe("\\tealD","\\textcolor{##01a995}{#1}");oe("\\tealE","\\textcolor{##208170}{#1}");oe("\\greenA","\\textcolor{##b6ffb0}{#1}");
vendor: 5,129 bytes, line 843
843oe("\\greenB","\\textcolor{##8af281}{#1}");oe("\\greenC","\\textcolor{##74cf70}{#1}");oe("\\greenD","\\textcolor{##1fab54}{#1}");oe("\\greenE","\\textcolor{##0d923f}{#1}");oe("\\goldA","\\textcolor{##ffd0a9}{#1}");oe("\\goldB","\\textcolor{##ffbb71}{#1}");oe("\\goldC","\\textcolor{##ff9c39}{#1}");oe("\\goldD","\\textcolor{##e07d10}{#1}");oe("\\goldE","\\textcolor{##a75a05}{#1}");oe("\\redA","\\textcolor{##fca9a9}{#1}");oe("\\redB","\\textcolor{##ff8482}{#1}");oe("\\redC","\\textcolor{##f9685d}{#1}");oe("\\redD","\\textcolor{##e84d39}{#1}");oe("\\redE","\\textcolor{##bc2612}{#1}");oe("\\maroonA","\\textcolor{##ffbde0}{#1}");oe("\\maroonB","\\textcolor{##ff92c6}{#1}");oe("\\maroonC","\\textcolor{##ed5fa6}{#1}");oe("\\maroonD","\\textcolor{##ca337c}{#1}");oe("\\maroonE","\\textcolor{##9e034e}{#1}");oe("\\purpleA","\\textcolor{##ddd7ff}{#1}");oe("\\purpleB","\\textcolor{##c6b9fc}{#1}");oe("\\purpleC","\\textcolor{##aa87ff}{#1}");oe("\\purpleD","\\textcolor{##7854ab}{#1}");oe("\\purpleE","\\textcolor{##543b78}{#1}");oe("\\mintA","\\textcolor{##f5f9e8}{#1}");oe("\\mintB","\\textcolor{##edf2df}{#1}");oe("\\mintC","\\textcolor{##e0e5cc}{#1}");oe("\\grayA","\\textcolor{##f6f7f7}{#1}");oe("\\grayB","\\textcolor{##f0f1f2}{#1}");oe("\\grayC","\\textcolor{##e3e5e6}{#1}");oe("\\grayD","\\textcolor{##d6d8da}{#1}");oe("\\grayE","\\textcolor{##babec2}{#1}");oe("\\grayF","\\textcolor{##888d93}{#1}");oe("\\grayG","\\textcolor{##626569}{#1}");oe("\\grayH","\\textcolor{##3b3e40}{#1}");oe("\\grayI","\\textcolor{##21242c}{#1}");oe("\\kaBlue","\\textcolor{##314453}{#1}");oe("\\kaGreen","\\textcolor{##71B307}{#1}");var Xj={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class jle{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new Ole(Ple,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new VC(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:a,end:r}=this.consumeArg(["]"])}else({tokens:a,start:n,end:r}=this.consumeArg());return this.pushToken(new Eo("EOF",r.loc)),this.pushTokens(a),new Eo("",Hi.range(n,r))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var a=this.future(),s,i=0,o=0;do{if(s=this.popToken(),n.push(s),s.text==="{")++i;else if(s.text==="}"){if(--i,i===-1)throw new pt("Extra }",s)}else if(s.text==="EOF")throw new pt("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",s);if(t&&r)if((i===0||i===1&&t[o]==="{")&&s.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(i!==0||r);return a.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:a,end:s}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new pt("The length of delimiters doesn't match the number of args!");for(var r=n[0],a=0;a<r.length;a++){var s=this.popToken();if(r[a]!==s.text)throw new pt("Use of the macro doesn't match its definition",s)}}for(var i=[],o=0;o<t;o++)i.push(this.consumeArg(n&&n[o+1]).tokens);return i}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new pt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,a=n.noexpand?null:this._getExpansion(r);if(a==null||t&&a.unexpandable){if(t&&a==null&&r[0]==="\\"&&!this.isDefined(r))throw new pt("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var s=a.tokens,i=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){s=s.slice();for(var o=s.length-1;o>=0;--o){var c=s[o];if(c.text==="#"){if(o===0)throw new pt("Incomplete placeholder at end of macro body",c);if(c=s[--o],c.text==="#")s.splice(o+1,1);else if(/^[1-9]$/.test(c.text))s.splice(o,2,...i[+c.text-1]);else throw new pt("Not a valid argument number",c)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Eo(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),n.push(a)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];
vendor: 5,115 bytes, line 843
843if(r!=null&&r!==13)return}var a=typeof n=="function"?n(this):n;if(typeof a=="string"){var s=0;if(a.indexOf("#")!==-1)for(var i=a.replace(/##/g,"");i.indexOf("#"+(s+1))!==-1;)++s;for(var o=new VC(a,this.settings),c=[],d=o.lex();d.text!=="EOF";)c.push(d),d=o.lex();c.reverse();var f={tokens:c,numArgs:s};return f}return a}isDefined(t){return this.macros.has(t)||$d.hasOwnProperty(t)||Gr.math.hasOwnProperty(t)||Gr.text.hasOwnProperty(t)||Xj.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:$d.hasOwnProperty(t)&&!$d[t].primitive}}var WC=/^[âââââââââââ
âââââââᵢⱼââââââáµ£ââᵤᵥâᵦᵧᵨᵩᵪ]/,D2=Object.freeze({"â":"+","â":"-","â":"=","â":"(","â":")","â":"0","â":"1","â":"2","â":"3","â":"4","â
":"5","â":"6","â":"7","â":"8","â":"9","â":"a","â":"e","â":"h","áµ¢":"i","â±¼":"j","â":"k","â":"l","â":"m","â":"n","â":"o","â":"p","áµ£":"r","â":"s","â":"t","ᵤ":"u","áµ¥":"v","â":"x","ᵦ":"β","áµ§":"γ","ᵨ":"Ï","ᵩ":"Ï","ᵪ":"Ï","âº":"+","â»":"-","â¼":"=","â½":"(","â¾":")","â°":"0","¹":"1","²":"2","³":"3","â´":"4","âµ":"5","â¶":"6","â·":"7","â¸":"8","â¹":"9","á´¬":"A","á´®":"B","á´°":"D","á´±":"E","á´³":"G","á´´":"H","á´µ":"I","á´¶":"J","á´·":"K","á´¸":"L","á´¹":"M","á´º":"N","á´¼":"O","á´¾":"P","á´¿":"R","áµ":"T","áµ":"U","â±½":"V","áµ":"W","áµ":"a","áµ":"b","á¶":"c","áµ":"d","áµ":"e","á¶ ":"f","áµ":"g",ʰ:"h","â±":"i",ʲ:"j","áµ":"k",Ë¡:"l","áµ":"m",â¿:"n","áµ":"o","áµ":"p",ʳ:"r",Ë¢:"s","áµ":"t","áµ":"u","áµ":"v",Ê·:"w",Ë£:"x",ʸ:"y","á¶»":"z","áµ":"β","áµ":"γ","áµ":"δ","áµ ":"Ï","ᵡ":"Ï","á¶¿":"θ"}),iv={"Ì":{text:"\\'",math:"\\acute"},"Ì":{text:"\\`",math:"\\grave"},"Ì":{text:'\\"',math:"\\ddot"},"Ì":{text:"\\~",math:"\\tilde"},"Ì":{text:"\\=",math:"\\bar"},"Ì":{text:"\\u",math:"\\breve"},"Ì":{text:"\\v",math:"\\check"},"Ì":{text:"\\^",math:"\\hat"},"Ì":{text:"\\.",math:"\\dot"},"Ì":{text:"\\r",math:"\\mathring"},"Ì":{text:"\\H"},"̧":{text:"\\c"}},YC={á:"aÌ",à :"aÌ",ä:"aÌ",Ç:"aÌÌ",ã:"aÌ",Ä:"aÌ",Ä:"aÌ",ắ:"aÌÌ",ằ:"aÌÌ",ẵ:"aÌÌ",Ç:"aÌ",â:"aÌ",ấ:"aÌÌ",ầ:"aÌÌ",ẫ:"aÌÌ",ȧ:"aÌ",Ç¡:"aÌÌ",Ã¥:"aÌ",Ç»:"aÌÌ",á¸:"bÌ",Ä:"cÌ",á¸:"çÌ",Ä:"cÌ",Ä:"cÌ",Ä:"cÌ",ç:"ç",Ä:"dÌ",á¸:"dÌ",á¸:"ḑ",é:"eÌ",è:"eÌ",ë:"eÌ",ẽ:"eÌ",Ä:"eÌ",á¸:"eÌÌ",á¸:"eÌÌ",Ä:"eÌ",á¸:"ȩÌ",Ä:"eÌ",ê:"eÌ",ế:"eÌÌ",á»:"eÌÌ",á»
:"eÌÌ",Ä:"eÌ",È©:"ȩ",á¸:"fÌ",ǵ:"gÌ",ḡ:"gÌ",Ä:"gÌ",ǧ:"gÌ",Ä:"gÌ",Ä¡:"gÌ",Ä£:"ģ",ḧ:"hÌ",È:"hÌ",Ä¥:"hÌ",ḣ:"hÌ",ḩ:"ḩ",Ã:"iÌ",ì:"iÌ",ï:"iÌ",ḯ:"iÌÌ",Ä©:"iÌ",Ä«:"iÌ",Ä:"iÌ",Ç:"iÌ",î:"iÌ",ǰ:"jÌ",ĵ:"jÌ",ḱ:"kÌ",Ç©:"kÌ",Ä·:"ķ",ĺ:"lÌ",ľ:"lÌ",ļ:"ļ",ḿ:"mÌ",á¹:"mÌ",Å:"nÌ",ǹ:"nÌ",ñ:"nÌ",Å:"nÌ",á¹
:"nÌ",Å:"ņ",ó:"oÌ",ò:"oÌ",ö:"oÌ",È«:"oÌÌ",õ:"oÌ",á¹:"oÌÌ",á¹:"oÌÌ",È:"oÌÌ",Å:"oÌ",á¹:"oÌÌ",á¹:"oÌÌ",Å:"oÌ",Ç:"oÌ",ô:"oÌ",á»:"oÌÌ",á»:"oÌÌ",á»:"oÌÌ",ȯ:"oÌ",ȱ:"oÌÌ",Å:"oÌ",á¹:"pÌ",á¹:"pÌ",Å:"rÌ",Å:"rÌ",á¹:"rÌ",Å:"ŗ",Å:"sÌ",á¹¥:"sÌÌ",Å¡:"sÌ",á¹§:"sÌÌ",Å:"sÌ",ṡ:"sÌ",Å:"ş",áº:"tÌ",Å¥:"tÌ",ṫ:"tÌ",Å£:"ţ",ú:"uÌ",ù:"uÌ",ü:"uÌ",Ç:"uÌÌ",Ç:"uÌÌ",Ç:"uÌÌ",Ç:"uÌÌ",Å©:"uÌ",á¹¹:"uÌÌ",Å«:"uÌ",á¹»:"uÌÌ",Å:"uÌ",Ç:"uÌ",û:"uÌ",ů:"uÌ",ű:"uÌ",á¹½:"vÌ",áº:"wÌ",áº:"wÌ",áº
:"wÌ",ŵ:"wÌ",áº:"wÌ",áº:"wÌ",áº:"xÌ",áº:"xÌ",ý:"yÌ",ỳ:"yÌ",ÿ:"yÌ",ỹ:"yÌ",ȳ:"yÌ",Å·:"yÌ",áº:"yÌ",áº:"yÌ",ź:"zÌ",ž:"zÌ",áº:"zÌ",ż:"zÌ",Ã:"AÌ",Ã:"AÌ",Ã:"AÌ",Ç:"AÌÌ",Ã:"AÌ",Ä:"AÌ",Ä:"AÌ",Ắ:"AÌÌ",Ằ:"AÌÌ",Ẵ:"AÌÌ",Ç:"AÌ",Ã:"AÌ",Ấ:"AÌÌ",Ầ:"AÌÌ",Ẫ:"AÌÌ",Ȧ:"AÌ",Ç :"AÌÌ",Ã
:"AÌ",Ǻ:"AÌÌ",á¸:"BÌ",Ä:"CÌ",á¸:"ÇÌ",Ä:"CÌ",Ä:"CÌ",Ä:"CÌ",Ã:"Ç",Ä:"DÌ",á¸:"DÌ",á¸:"Ḑ",Ã:"EÌ",Ã:"EÌ",Ã:"EÌ",Ẽ:"EÌ",Ä:"EÌ",á¸:"EÌÌ",á¸:"EÌÌ",Ä:"EÌ",á¸:"ȨÌ",Ä:"EÌ",Ã:"EÌ",Ế:"EÌÌ",á»:"EÌÌ",á»:"EÌÌ",Ä:"EÌ",Ȩ:"Ȩ",á¸:"FÌ",Ç´:"GÌ",Ḡ:"GÌ",Ä:"GÌ",Ǧ:"GÌ",Ä:"GÌ",Ä :"GÌ",Ä¢:"Ģ",Ḧ:"HÌ",È:"HÌ",Ĥ:"HÌ",Ḣ:"HÌ",Ḩ:"Ḩ",Ã:"IÌ",Ã:"IÌ",Ã:"IÌ",Ḯ:"IÌÌ",Ĩ:"IÌ",Ī:"IÌ",Ĭ:"IÌ",Ç:"IÌ",Ã:"IÌ",İ:"IÌ",Ä´:"JÌ",Ḱ:"KÌ",Ǩ:"KÌ",Ķ:"Ķ",Ĺ:"LÌ",Ľ:"LÌ",Ä»:"Ļ",Ḿ:"MÌ",á¹:"MÌ",Å:"NÌ",Ǹ:"NÌ",Ã:"NÌ",Å:"NÌ",á¹:"NÌ",Å
:"Ņ",Ã:"OÌ",Ã:"OÌ",Ã:"OÌ",Ȫ:"OÌÌ",Ã:"OÌ",á¹:"OÌÌ",á¹:"OÌÌ",Ȭ:"OÌÌ",Å:"OÌ",á¹:"OÌÌ",á¹:"OÌÌ",Å:"OÌ",Ç:"OÌ",Ã:"OÌ",á»:"OÌÌ",á»:"OÌÌ",á»:"OÌÌ",È®:"OÌ",Ȱ:"OÌÌ",Å:"OÌ",á¹:"PÌ",á¹:"PÌ",Å:"RÌ",Å:"RÌ",á¹:"RÌ",Å:"Ŗ",Å:"SÌ",Ṥ:"SÌÌ",Å :"SÌ",Ṧ:"SÌÌ",Å:"SÌ",á¹ :"SÌ",Å:"Ş",Ť:"TÌ",Ṫ:"TÌ",Å¢:"Ţ",Ã:"UÌ",Ã:"UÌ",Ã:"UÌ",Ç:"UÌÌ",Ç:"UÌÌ",Ç:"UÌÌ",Ç:"UÌÌ",Ũ:"UÌ",Ṹ:"UÌÌ",Ū:"UÌ",Ṻ:"UÌÌ",Ŭ:"UÌ",Ç:"UÌ",Ã:"UÌ",Å®:"UÌ",Ű:"UÌ",á¹¼:"VÌ",áº:"WÌ",áº:"WÌ",áº:"WÌ",Å´:"WÌ",áº:"WÌ",áº:"XÌ",áº:"XÌ",Ã:"YÌ",Ỳ:"YÌ",Ÿ:"YÌ",Ỹ:"YÌ",Ȳ
vendor: 16,786 bytes, lines 843-845
843:"YÌ",Ŷ:"YÌ",áº:"YÌ",Ź:"ZÌ",Ž:"ZÌ",áº:"ZÌ",Å»:"ZÌ",ά:"αÌ",á½°:"αÌ",á¾±:"αÌ",á¾°:"αÌ",Î:"εÌ",á½²:"εÌ",ή:"ηÌ",á½´:"ηÌ",ί:"ιÌ",á½¶:"ιÌ",Ï:"ιÌ",Î:"ιÌÌ",á¿:"ιÌÌ",á¿:"ιÌ",á¿:"ιÌ",Ï:"οÌ",ὸ:"οÌ",Ï:"Ï Ì",ὺ:"Ï Ì",Ï:"Ï Ì",ΰ:"Ï ÌÌ",á¿¢:"Ï ÌÌ",á¿¡:"Ï Ì",á¿ :"Ï Ì",Ï:"ÏÌ",á½¼:"ÏÌ",Î:"Î¥Ì",Ὺ:"Î¥Ì",Ϋ:"Î¥Ì",á¿©:"Î¥Ì",Ῠ:"Î¥Ì",Î:"ΩÌ",Ὼ:"ΩÌ"};let Kj=class Jj{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new jle(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new pt("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Eo("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(Jj.endOfExpression.indexOf(a.text)!==-1||n&&a.text===n||t&&$d[a.text]&&$d[a.text].infix)break;var s=this.parseAtom(n);if(s){if(s.type==="internal")continue}else break;r.push(s)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,a=0;a<t.length;a++)if(t[a].type==="infix"){if(n!==-1)throw new pt("only one infix operator per group",t[a].token);n=a,r=t[a].replaceWith}if(n!==-1&&r){var s,i,o=t.slice(0,n),c=t.slice(n+1);o.length===1&&o[0].type==="ordgroup"?s=o[0]:s={type:"ordgroup",mode:this.mode,body:o},c.length===1&&c[0].type==="ordgroup"?i=c[0]:i={type:"ordgroup",mode:this.mode,body:c};var d;return r==="\\\\abovefrac"?d=this.callFunction(r,[s,t[n],i],[]):d=this.callFunction(r,[s,i],[]),[d]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var a;do{var s;a=this.parseGroup(t)}while(((s=a)==null?void 0:s.type)==="internal");if(!a)throw new pt("Expected group after '"+r+"'",n);return a}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var a={type:"text",mode:this.mode,body:n},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return s}parseAtom(t){var n=this.parseGroup("atom",t);if(n?.type==="internal"||this.mode==="text")return n;for(var r,a;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(n&&n.type==="op"){var i=s.text==="\\limits";n.limits=i,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=s.text==="\\limits");else throw new pt("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(r)throw new pt("Double superscript",s);r=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(a)throw new pt("Double subscript",s);a=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(r)throw new pt("Double superscript",s);var o={type:"textord",mode:this.mode,text:"\\prime"},c=[o];for(this.consume();this.fetch().text==="'";)c.push(o),this.consume();this.fetch().text==="^"&&c.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:c}}else if(D2[s.text]){var d=WC.test(s.text),f=[];for(f.push(new Eo(D2[s.text])),this.consume();;){var m=this.fetch().text;if(!D2[m]||WC.test(m)!==d)break;f.unshift(new Eo(D2[m])),this.consume()}var b=this.subparse(f);d?a={type:"ordgroup",mode:"math",body:b}:r={type:"ordgroup",mode:"math",body:b}}else break}return r||a?{type:"supsub",mode:this.mode,base:n,sup:r,sub:a}:n}parseFunction(t,n){var r=this.fetch(),a=r.text,s=$d[a];if(!s)return null;if(this.consume(),n&&n!=="atom"&&!s.allowedInArgument)throw new pt("Got function '"+a+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!s.allowedInText)throw new pt("Can't use function '"+a+"' in text mode",r);if(this.mode==="math"&&s.allowedInMath===!1)throw new pt("Can't use function '"+a+"' in math mode",r);var{args:i,optArgs:o}=this.parseArguments(a,s);return this.callFunction(a,i,o,r,t)}callFunction(t,n,r,a,s){var i={funcName:t,parser:this,token:a,breakOnTokenText:s},o=$d[t];if(o&&o.handler)return o.handler(i,n,r);throw new pt("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var a=[],s=[],i=0;i<r;i++){var o=n.argTypes&&n.argTypes[i],c=i<n.numOptionalArgs;(n.primitive&&o==null||n.type==="sqrt"&&i===1&&s[0]==null)&&(o="primitive");var d=this.parseGroupOfType("argument to '"+t+"'",o,c);if(c)s.push(d);else if(d!=null)a.push(d);else throw new pt("Null argument, please report this as a bug")}return{args:a,optArgs:s}}parseGroupOfType(t,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var a=this.parseArgumentGroup(r,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",r);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(r)throw new pt("A primitive argument cannot be optional");var i=this.parseGroup(t);if(i==null)throw new pt("Expected group as "+t,this.fetch());return i}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new pt("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var a="",s;(s=this.fetch()).text!=="EOF";)a+=s.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(t,n){for(var r=this.fetch(),a=r,s="",i;(i=this.fetch()).text!=="EOF"&&t.test(s+i.text);)a=i,s+=a.text,this.consume();if(s==="")throw new pt("Invalid "+n+": '"+r.text+"'",r);return r.range(a,s)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new pt("Invalid color: '"+n.text+"'",n);var a=r[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var n,r=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",r=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!a)throw new pt("Invalid size: '"+n.text+"'",n);var s={number:+(a[1]+a[2]),unit:a[3]};if(!ij(s))throw new pt("Invalid unit: '"+s.unit+"'",n);return{type:"size",mode:this.mode,value:s,isBlank:r}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(t,n){var r=this.gullet.scanArgument(t);if(r==null)return null;var a=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:r.loc,body:s};return n&&this.switchMode(a),i}parseGroup(t,n){var r=this.fetch(),a=r.text,s;if(a==="{"||a==="\\begingroup"){this.consume();var i=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,i),c=this.fetch();this.expect(i),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:Hi.range(r,c),body:o,semisimple:a==="\\begingroup"||void 0}}else if(s=this.parseFunction(n,t)||this.parseSymbol(),s==null&&a[0]==="\\"&&!Xj.hasOwnProperty(a)){if(this.settings.throwOnError)throw new pt("Undefined control sequence: "+a,r);s=this.formatUnsupportedCmd(a),this.consume()}return s}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var a=t[r],s=a.text;s==="-"&&t[r+1].text==="-"&&(r+1<n&&t[r+2].text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:Hi.range(a,t[r+2]),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:Hi.range(a,t[r+1]),text:"--"}),n-=1)),(s==="'"||s==="`")&&t[r+1].text===s&&(t.splice(r,2,{type:"textord",mode:"text",loc:Hi.range(a,t[r+1]),text:s+s}),n-=1)}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),a=r.charAt(0)==="*";if(a&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new pt(`\\verb assertion failed -- 844 please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:a}}YC.hasOwnProperty(n[0])&&!Gr[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=YC[n[0]]+n.slice(1));var s=Mle.exec(n);s&&(n=n.substring(0,s.index),n==="i"?n="ı":n==="j"&&(n="È·"));var i;if(Gr[this.mode][n]){this.settings.strict&&this.mode==="math"&&n6.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=Gr[this.mode][n].group,c=Hi.range(t),d;if(Eoe.hasOwnProperty(o)){var f=o;d={type:"atom",mode:this.mode,family:f,loc:c,text:n}}else d={type:o,mode:this.mode,loc:c,text:n};i=d}else if(n.charCodeAt(0)>=128)this.settings.strict&&(aj(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),i={type:"textord",mode:"text",loc:Hi.range(t),text:n};else return null;if(this.consume(),s)for(var m=0;m<s[0].length;m++){var b=s[0][m];if(!iv[b])throw new pt("Unknown accent ' "+b+"'",t);var g=iv[b][this.mode]||iv[b].text;if(!g)throw new pt("Accent "+b+" unsupported in "+this.mode+" mode",t);i={type:"accent",mode:this.mode,loc:Hi.range(t),label:g,isStretchy:!1,isShifty:!0,base:i}}return i}};Kj.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var M8=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Kj(t,n);delete r.gullet.macros.current["\\df@tag"];var a=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new pt("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:r.subparse([new Eo("\\df@tag")])}]}return a},R8=function(t,n,r){n.textContent="";var a=rb(t,r).toNode();n.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),R8=function(){throw new pt("KaTeX doesn't work in quirks mode.")});var Zj=function(t,n){var r=rb(t,n).toMarkup();return r},eD=function(t,n){var r=new f8(n);return M8(t,r)},tD=function(t,n,r){if(r.throwOnError||!(t instanceof pt))throw t;var a=qe.makeSpan(["katex-error"],[new Qo(n)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+r.errorColor),a},rb=function(t,n){var r=new f8(n);try{var a=M8(t,r);return $oe(a,t,r)}catch(s){return tD(s,t,r)}},nD=function(t,n){var r=new f8(n);try{var a=M8(t,r);return Woe(a,t,r)}catch(s){return tD(s,t,r)}},rD="0.16.25",aD={Span:ng,Anchor:g8,SymbolNode:Qo,SvgNode:Vu,PathNode:s0,LineNode:t6},l6={version:rD,render:R8,renderToString:Zj,ParseError:pt,SETTINGS_SCHEMA:n1,__parse:eD,__renderToDomTree:rb,__renderToHTMLTree:nD,__setFontMetrics:sj,__defineSymbol:M,__defineFunction:At,__defineMacro:oe,__domTree:aD};const T5e=Object.freeze(Object.defineProperty({__proto__:null,ParseError:pt,SETTINGS_SCHEMA:n1,__defineFunction:At,__defineMacro:oe,__defineSymbol:M,__domTree:aD,__parse:eD,__renderToDomTree:rb,__renderToHTMLTree:nD,__setFontMetrics:sj,default:l6,get render(){return R8},renderToString:Zj,version:rD},Symbol.toStringTag,{value:"Module"})),Dle={},Ile=[];function Ble(e){const t=e||Dle;return function(n,r){u8(n,"element",function(a,s){const i=Array.isArray(a.properties.className)?a.properties.className:Ile,o=i.includes("language-math"),c=i.includes("math-display"),d=i.includes("math-inline");let f=c;if(!o&&!c&&!d)return;let m=s[s.length-1],b=a;if(a.tagName==="code"&&o&&m&&m.type==="element"&&m.tagName==="pre"&&(b=m,m=s[s.length-2],f=!0),!m)return;const g=Die(b,{whitespace:"pre"});let v;try{v=l6.renderToString(g,{...t,displayMode:f,throwOnError:!0})}catch(T){const _=T,A=_.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...s,a],cause:_,place:a.position,ruleId:A,source:"rehype-katex"});try{v=l6.renderToString(g,{...t,displayMode:f,strict:"ignore",throwOnError:!1})}catch{v=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(T)},children:[{type:"text",value:g}]}]}}typeof v=="string"&&(v=Nie(v).children);const E=m.children.indexOf(b);return m.children.splice(E,1,...v),Vx})}}function Fle(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=t.length){let i=0;for(;;){let o=n[i];if(o===void 0){const c=QC(t,n[i-1]);o=c===-1?t.length+1:c+1,n[i]=o}if(o>s)return{line:i+1,column:s-(i>0?n[i-1]:0)+1,offset:s};i++}}}function a(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;n.length<s.line;){const o=n[n.length-1],c=QC(t,o),d=c===-1?t.length+1:c+1;if(o===d)break;n.push(d)}const i=(s.line>1?n[s.line-2]:0)+s.column-1;if(i<n[s.line-1])return i}}}function QC(e,t){const n=e.indexOf("\r",t),r=e.indexOf(` 845`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const sD={}.hasOwnProperty,zle=Object.prototype;function Hle(e,t){const n=t||{};return O8({file:n.file||void 0,location:!1,schema:n.space==="svg"?c0:K1,verbose:n.verbose||!1},e)}function O8(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},gx(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:iD(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const s=String(e.file),i=Fle(s),o=i.toPoint(0),c=i.toPoint(s.length);n.position={start:o,end:c}}return n}case"#documentType":{const r=t;return n={type:"doctype"},gx(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},gx(e,r,n),n}default:return n=Ule(e,t),n}}function iD(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=O8(e,t[n]);r.push(a)}return r}function Ule(e,t){const n=e.schema;e.schema=t.namespaceURI===_c.svg?c0:K1;let r=-1;const a={};for(;++r<t.attrs.length;){const o=t.attrs[r],c=(o.prefix?o.prefix+":":"")+o.name;sD.call(zle,c)||(a[c]=o.value)}const i=(e.schema.space==="svg"?XP:QP)(t.tagName,a,iD(e,t.childNodes));if(gx(e,t,i),i.tagName==="template"){const o=t,c=o.sourceCodeLocation,d=c&&c.startTag&&Hf(c.startTag),f=c&&c.endTag&&Hf(c.endTag),m=O8(e,o.content);d&&f&&e.file&&(m.position={start:d.end,end:f.start}),i.content=m}return e.schema=n,i}function gx(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=qle(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function qle(e,t,n){const r=Hf(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const s={};let i;if(n.attrs)for(i in n.attrs)sD.call(n.attrs,i)&&(s[G5(e.schema,i).property]=Hf(n.attrs[i]));n.startTag;const o=Hf(n.startTag),c=n.endTag?Hf(n.endTag):void 0,d={opening:o};c&&(d.closing=c),d.properties=s,t.data={position:d}}}return r}function Hf(e){const t=XC({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=XC({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function XC(e){return e.line&&e.column?e:void 0}class ag{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}ag.prototype.property={};ag.prototype.normal={};ag.prototype.space=null;function oD(e,t){const n={},r={};let a=-1;for(;++a<e.length;
vendor: 4,196 bytes, line 845
845)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new ag(n,r,t)}function c6(e){return e.toLowerCase()}class Zo{constructor(t,n){this.property=t,this.attribute=n}}Zo.prototype.space=null;Zo.prototype.boolean=!1;Zo.prototype.booleanish=!1;Zo.prototype.overloadedBoolean=!1;Zo.prototype.number=!1;Zo.prototype.commaSeparated=!1;Zo.prototype.spaceSeparated=!1;Zo.prototype.commaOrSpaceSeparated=!1;Zo.prototype.mustUseProperty=!1;Zo.prototype.defined=!1;let Vle=0;const Mn=Nh(),Qa=Nh(),lD=Nh(),xt=Nh(),Vr=Nh(),Jf=Nh(),mo=Nh();function Nh(){return 2**++Vle}const u6=Object.freeze(Object.defineProperty({__proto__:null,boolean:Mn,booleanish:Qa,commaOrSpaceSeparated:mo,commaSeparated:Jf,number:xt,overloadedBoolean:lD,spaceSeparated:Vr},Symbol.toStringTag,{value:"Module"})),ov=Object.keys(u6);class P8 extends Zo{constructor(t,n,r,a){let s=-1;if(super(t,n),KC(this,"space",a),typeof r=="number")for(;++s<ov.length;){const i=ov[s];KC(this,ov[s],(r&u6[i])===u6[i])}}}P8.prototype.defined=!0;function KC(e,t,n){n&&(e[t]=n)}const Gle={}.hasOwnProperty;function Lp(e){const t={},n={};let r;for(r in e.properties)if(Gle.call(e.properties,r)){const a=e.properties[r],s=new P8(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[c6(r)]=r,n[c6(s.attribute)]=r}return new ag(t,n,e.space)}const cD=Lp({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),uD=Lp({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function dD(e,t){return t in e?e[t]:t}function hD(e,t){return dD(e,t.toLowerCase())}const fD=Lp({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:hD,properties:{xmlns:null,xmlnsXLink:null}}),pD=Lp({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Qa,ariaAutoComplete:null,ariaBusy:Qa,ariaChecked:Qa,ariaColCount:xt,ariaColIndex:xt,ariaColSpan:xt,ariaControls:Vr,ariaCurrent:null,ariaDescribedBy:Vr,ariaDetails:null,ariaDisabled:Qa,ariaDropEffect:Vr,ariaErrorMessage:null,ariaExpanded:Qa,ariaFlowTo:Vr,ariaGrabbed:Qa,ariaHasPopup:null,ariaHidden:Qa,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Vr,ariaLevel:xt,ariaLive:null,ariaModal:Qa,ariaMultiLine:Qa,ariaMultiSelectable:Qa,ariaOrientation:null,ariaOwns:Vr,ariaPlaceholder:null,ariaPosInSet:xt,ariaPressed:Qa,ariaReadOnly:Qa,ariaRelevant:null,ariaRequired:Qa,ariaRoleDescription:Vr,ariaRowCount:xt,ariaRowIndex:xt,ariaRowSpan:xt,ariaSelected:Qa,ariaSetSize:xt,ariaSort:null,ariaValueMax:xt,ariaValueMin:xt,ariaValueNow:xt,ariaValueText:null,role:null}}),$le=Lp({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:hD,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Jf,acceptCharset:Vr,accessKey:Vr,action:null,allow:null,allowFullScreen:Mn,allowPaymentRequest:Mn,allowUserMedia:Mn,alt:null,as:null,async:Mn,autoCapitalize:null,autoComplete:Vr,autoFocus:Mn,autoPlay:Mn,blocking:Vr,capture:null,charSet:null,checked:Mn,cite:null,className:Vr,cols:xt,colSpan:null,content:null,contentEditable:Qa,controls:Mn,controlsList:Vr,coords:xt|Jf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mn,defer:Mn,dir:null,dirName:null,disabled:Mn,download:lD,draggable:Qa,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mn,formTarget:null,headers:Vr,height:xt,hidden:Mn,high:xt,href:null,hrefLang:null,htmlFor:Vr,httpEquiv:Vr,id:null,imageSizes:null,imageSrcSet:null,inert:Mn,inputMode:null,integrity:null,is:null,isMap:Mn,itemId:null,itemProp:Vr,itemRef:Vr,itemScope:Mn,itemType:Vr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mn,low:xt,manifest:null,max:null,maxLength:xt,media:null,method:null,min:null,minLength:xt,multiple:Mn,muted:Mn,name:null,nonce:null,noModule:Mn,noValidate:Mn,onAbort:null,onAfterPrint:null,onAuxCl
845ick: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:Mn,optimum:xt,pattern:null,ping:Vr,placeholder:null,playsInline:Mn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Mn,referrerPolicy:null,rel:Vr,required:Mn,reversed:Mn,rows:xt,rowSpan:xt,sandbox:Vr,scope:null,scoped:Mn,seamless:Mn,selected:Mn,shadowRootClonable:Mn,shadowRootDelegatesFocus:Mn,shadowRootMode:null,shape:null,size:xt,sizes:null,slot:null,span:xt,spellCheck:Qa,src:null,srcDoc:null,srcLang:null,srcSet:null,start:xt,step:null,style:null,tabIndex:xt,target:null,title:null,translate:null,type:null,typeMustMatch:Mn,useMap:null,value:Qa,width:xt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Vr,axis:null,background:null,bgColor:null,border:xt,borderColor:null,bottomMargin:xt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Mn,declare:Mn,event:null,face:null,frame:null,frameBorder:null,hSpace:xt,leftMargin:xt,link:null,longDesc:null,lowSrc:null,marginHeight:xt,marginWidth:xt,noResize:Mn,noHref:Mn,noShade:Mn,noWrap:Mn,object:null,profile:null,prompt:null,rev:null,rightMargin:xt,rules:null,scheme:null,scrolling:Qa,standby:null,summary:null,text:null,topMargin:xt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:xt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Mn,disableRemotePlayback:Mn,prefix:null,property:null,results:xt,security:null,unselectable:null}}),Wle=Lp({space:"svg",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",navDown:"nav-down",navDownLeft:"nav
845-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"},transform:dD,properties:{about:mo,accentHeight:xt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:xt,amplitude:xt,arabicForm:null,ascent:xt,attributeName:null,attributeType:null,azimuth:xt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:xt,by:null,calcMode:null,capHeight:xt,className:Vr,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:xt,diffuseConstant:xt,direction:null,display:null,dur:null,divisor:xt,dominantBaseline:null,download:Mn,dx:null,dy:null,edgeMode:null,editable:null,elevation:xt,enableBackgroun
845d:null,end:null,event:null,exponent:xt,externalResourcesRequired:null,fill:null,fillOpacity:xt,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:Jf,g2:Jf,glyphName:Jf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:xt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:xt,horizOriginX:xt,horizOriginY:xt,id:null,ideographic:xt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:xt,k:xt,k1:xt,k2:xt,k3:xt,k4:xt,kernelMatrix:mo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:xt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:xt,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:xt,overlineThickness:xt,paintOrder:null,panose1:null,path:null,pathLength:xt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Vr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:xt,pointsAtY:xt,pointsAtZ:xt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mo,rev:mo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mo,requiredFeatures:mo,requiredFonts:mo,requiredFormats:mo,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:xt,specularExponent:xt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:xt,strikethroughThickness:xt,string:null,stroke:null,strokeDashArray:mo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:xt,strokeOpacity:xt,strokeWidth:null,style:null,surfaceScale:xt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mo,tabIndex:xt,tableValues:null,target:null,targetX:xt,targetY:xt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mo,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:xt,underlineThickness:xt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:xt,values:null,vAlphabetic:xt,vMathematical:xt,vectorEffect:null,vHanging:xt,vIdeographic:xt,ver
vendor: 5,540 bytes, line 845
845sion:null,vertAdvY:xt,vertOriginX:xt,vertOriginY:xt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:xt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Yle=/^data[-\w.:]+$/i,JC=/-[a-z]/g,Qle=/[A-Z]/g;function Xle(e,t){const n=c6(t);let r=t,a=Zo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Yle.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(JC,Jle);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!JC.test(s)){let i=s.replace(Qle,Kle);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}a=P8}return new a(r,t)}function Kle(e){return"-"+e.toLowerCase()}function Jle(e){return e.charAt(1).toUpperCase()}const Zle=oD([uD,cD,fD,pD,$le],"html"),mD=oD([uD,cD,fD,pD,Wle],"svg"),ZC={}.hasOwnProperty;function j8(e,t){const n=t||{};function r(a,...s){let i=r.invalid;const o=r.handlers;if(a&&ZC.call(a,e)){const c=String(a[e]);i=ZC.call(o,c)?o[c]:r.unknown}if(i)return i.call(this,a,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const ece={},tce={}.hasOwnProperty,gD=j8("type",{handlers:{root:rce,element:lce,text:ice,comment:oce,doctype:sce}});function nce(e,t){const r=(t||ece).space;return gD(e,r==="svg"?mD:Zle)}function rce(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=D8(e.children,n,t),Mp(e,n),n}function ace(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=D8(e.children,n,t),Mp(e,n),n}function sce(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Mp(e,t),t}function ice(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Mp(e,t),t}function oce(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Mp(e,t),t}function lce(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=mD);const a=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&tce.call(e.properties,s)){const c=cce(r,s,e.properties[s]);c&&a.push(c)}}const i=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:_c[i],childNodes:[],parentNode:null};return o.childNodes=D8(e.children,o,r),Mp(e,o),e.tagName==="template"&&e.content&&(o.content=ace(e.content,r)),o}function cce(e,t,n){const r=Xle(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Kw(n):Zw(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const s=a.name.indexOf(":");s<0?a.prefix="":(a.name=a.name.slice(s+1),a.prefix=r.attribute.slice(0,s)),a.namespace=_c[r.space]}return a}function D8(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const s=gD(e[r],n);s.parentNode=t,a.push(s)}return a}function Mp(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const xD=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],uce=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),la="�";var pe;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(pe||(pe={}));const Ii={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function bD(e){return e>=55296&&e<=57343}function dce(e){return e>=56320&&e<=57343}function hce(e,t){return(e-55296)*1024+9216+t}function yD(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function vD(e){return e>=64976&&e<=65007||uce.has(e)}var Ye;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invali
vendor: 6,689 bytes, line 845
845dFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Ye||(Ye={}));const fce=65536;class pce{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=fce,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:s}=this,i=a+n,o=s+n;return{code:t,startLine:r,endLine:r,startCol:i,endCol:i,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(dce(n))return this.pos++,this._addGap(),hce(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,pe.EOF;return this._err(Ye.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,pe.EOF;const r=this.html.charCodeAt(n);return r===pe.CARRIAGE_RETURN?pe.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,pe.EOF;let t=this.html.charCodeAt(this.pos);return t===pe.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,pe.LINE_FEED):t===pe.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,bD(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===pe.LINE_FEED||t===pe.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){yD(t)?this._err(Ye.controlCharacterInInputStream):vD(t)&&this._err(Ye.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Fn;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Fn||(Fn={}));function wD(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const mce=new Uint16Array('
vendor: 16,129 bytes, line 845
845áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
vendor: 4,294 bytes, line 845
845ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»Â ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
vendor: 6,210 bytes, line 845
845astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ
845'.split("").map(e=>e.charCodeAt(0))),gce=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function xce(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=gce.get(e))!==null&&t!==void 0?t:e}var As;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(As||(As={}));const bce=32;var Wd;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Wd||(Wd={}));function d6(e){return e>=As.ZERO&&e<=As.NINE}function yce(e){return e>=As.UPPER_A&&e<=As.UPPER_F||e>=As.LOWER_A&&e<=As.LOWER_F}function vce(e){return e>=As.UPPER_A&&e<=As.UPPER_Z||e>=As.LOWER_A&&e<=As.LOWER_Z||d6(e)}function wce(e){return e===As.EQUALS||vce(e)}var Ts;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ts||(Ts={}));var Ou;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ou||(Ou={}));class Sce{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Ts.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ou.Strict}startEntity(t){this.decodeMode=t,this.state=Ts.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ts.EntityStart:return t.charCodeAt(n)===As.NUM?(this.state=Ts.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ts.NamedEntity,this.stateNamedEntity(t,n));case Ts.NumericStart:return this.stateNumericStart(t,n);case Ts.NumericDecimal:return this.stateNumericDecimal(t,n);case Ts.NumericHex:return this.stateNumericHex(t,n);case Ts.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|bce)===As.LOWER_X?(this.state=Ts.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ts.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const s=r-n;this.result=this.result*Math.pow(a,s)+Number.parseInt(t.substr(n,s),a),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(d6(a)||yce(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(d6(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===As.SEMI)this.consumed+=1;else if(this.decodeMode===Ou.Strict)return 0;return this.emitCodePoint(xce(this.result),this.consumed),this.errors&&(t!==As.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],s=(a&Wd.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const i=t.charCodeAt(n);if(this.treeIndex=Ece(r,a,this.treeIndex+Math.max(1,s),i),this.treeIndex<0)return this.result===0||this.decodeMode===Ou.Attribute&&(s===0||wce(i))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],s=(a&Wd.VALUE_LENGTH)>>14,s!==0){if(i===As.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Ou.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&Wd.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~Wd.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Ts.NamedEntity:return this.result!==0&&(this.decodeMode!==Ou.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ts.NumericDecimal:return this.emitNumericEntity(0,2);case Ts.NumericHex:return this.emitNumericEntity(0,3);case Ts.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ts.EntityStart:return 0}}}function Ece(e,t,n,r){const a=(t&Wd.BRANCH_LENGTH)>>7,s=t&Wd.JUMP_TABLE;if(a===0)return s!==0&&r===s?n:-1;if(s){const c=r-s;return c<0||c>=a?-1:e[n+c]-1}let i=n,o=i+a-1;for(;i<=o;){const c=i+o>>>1,d=e[c];if(d<r)i=c+1;else if(d>r)o=c-1;else return e[c+a]}return-1}var ct;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(ct||(ct={}));var uh;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(uh||(uh={}));var Ho;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ho||(Ho={}));var ze;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="str
845ike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(ze||(ze={}));var C;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(C||(C={}));const kce=new Map([[ze.A,C.A],[ze.ADDRESS,C.ADDRESS],[ze.ANNOTATION_XML,C.ANNOTATION_XML],[ze.APPLET,C.APPLET],[ze.AREA,C.AREA],[ze.ARTICLE,C.ARTICLE],[ze.ASIDE,C.ASIDE],[ze.B,C.B],[ze.BASE,C.BASE],[ze.BASEFONT,C.BASEFONT],[ze.BGSOUND,C.BGSOUND],[ze.BIG,C.BIG],[ze.BLOCKQUOTE,C.BLOCKQUOTE],[ze.BODY,C.BODY],[ze.BR,C.BR],[ze.BUTTON,C.BUTTON],[ze.CAPTION,C.CAPTION],[ze.CENTER,C.CENTER],[ze.CODE,C.CODE],[ze.COL,C.COL],[ze.COLGROUP,C.COLGROUP],[ze.DD,C.DD],[ze.DESC,C.DESC],[ze.DETAILS,C.DETAILS],[ze.DIALOG,C.DIALOG],[ze.DIR,C.DIR],[ze.DIV,C.DIV],[ze.DL,C.DL],[ze.DT,C.DT],[ze.EM,C.EM],[ze.EMBED,C.EMBED],[ze.FIELDSET,C.FIELDSET],[ze.FIGCAPTION,C.FIGCAPTION],[ze.FIGURE,C.FIGURE],[ze.FONT,C.FONT],[ze.FOOTER,C.FOOTER],[ze.FOREIGN_OBJECT,C.FOREIGN_OBJECT],[ze.FORM,C.FORM],[ze.FRAME,C.FRAME],[ze.FRAMESET,C.FRAMESET],[ze.H1,C.H1],[ze.H2,C.H2],[ze.H3,C.H3],[ze.H4,C.H4],[ze.H5,C.H5],[ze.H6,C.H6],[ze.HEAD,C.HEAD],[ze.HEADER,C.HEADER],[ze.HGROUP,C.HGROUP],[ze.HR,C.HR],[ze.HTML,C.HTML],[ze.I,C.I],[ze.IMG,C.IMG],[ze.IMAGE,C.IMAGE],[ze.INPUT,C.INPUT],[ze.IFRAME,C.IFRAME],[ze.KEYGEN,C.KEYGEN],[ze.LABEL,C.LABEL],[ze.LI,C.LI],[ze.LINK,C.LINK],[ze.LISTING,C.LISTING],[ze.MAIN,C.MAIN],[ze.MALIGNMARK,C.MALIGNMARK],[ze.MARQUEE,C.MARQUEE],[ze.MATH,C.MATH],[ze.MENU,C.MENU],[ze.META,C.META],[ze.MGLYPH,C.MGLYPH],[ze.MI,C.MI],[ze.MO,C.MO],[ze.MN,C.MN],[ze.MS,C.MS],[ze.MTEXT,C.MTEXT],[ze.NAV,C.NAV],[ze.NOBR,C.NOBR],[ze.NOFRAMES,C.NOFRAMES],[ze.NOEMBED,C.NOEMBED],[ze.NOSCRIPT,C.NOSCRIPT],[ze.OBJECT,C.OBJECT],[ze.OL,C.O
vendor: 118,695 bytes, line 845
845L],[ze.OPTGROUP,C.OPTGROUP],[ze.OPTION,C.OPTION],[ze.P,C.P],[ze.PARAM,C.PARAM],[ze.PLAINTEXT,C.PLAINTEXT],[ze.PRE,C.PRE],[ze.RB,C.RB],[ze.RP,C.RP],[ze.RT,C.RT],[ze.RTC,C.RTC],[ze.RUBY,C.RUBY],[ze.S,C.S],[ze.SCRIPT,C.SCRIPT],[ze.SEARCH,C.SEARCH],[ze.SECTION,C.SECTION],[ze.SELECT,C.SELECT],[ze.SOURCE,C.SOURCE],[ze.SMALL,C.SMALL],[ze.SPAN,C.SPAN],[ze.STRIKE,C.STRIKE],[ze.STRONG,C.STRONG],[ze.STYLE,C.STYLE],[ze.SUB,C.SUB],[ze.SUMMARY,C.SUMMARY],[ze.SUP,C.SUP],[ze.TABLE,C.TABLE],[ze.TBODY,C.TBODY],[ze.TEMPLATE,C.TEMPLATE],[ze.TEXTAREA,C.TEXTAREA],[ze.TFOOT,C.TFOOT],[ze.TD,C.TD],[ze.TH,C.TH],[ze.THEAD,C.THEAD],[ze.TITLE,C.TITLE],[ze.TR,C.TR],[ze.TRACK,C.TRACK],[ze.TT,C.TT],[ze.U,C.U],[ze.UL,C.UL],[ze.SVG,C.SVG],[ze.VAR,C.VAR],[ze.WBR,C.WBR],[ze.XMP,C.XMP]]);function Rp(e){var t;return(t=kce.get(e))!==null&&t!==void 0?t:C.UNKNOWN}const ht=C,_ce={[ct.HTML]:new Set([ht.ADDRESS,ht.APPLET,ht.AREA,ht.ARTICLE,ht.ASIDE,ht.BASE,ht.BASEFONT,ht.BGSOUND,ht.BLOCKQUOTE,ht.BODY,ht.BR,ht.BUTTON,ht.CAPTION,ht.CENTER,ht.COL,ht.COLGROUP,ht.DD,ht.DETAILS,ht.DIR,ht.DIV,ht.DL,ht.DT,ht.EMBED,ht.FIELDSET,ht.FIGCAPTION,ht.FIGURE,ht.FOOTER,ht.FORM,ht.FRAME,ht.FRAMESET,ht.H1,ht.H2,ht.H3,ht.H4,ht.H5,ht.H6,ht.HEAD,ht.HEADER,ht.HGROUP,ht.HR,ht.HTML,ht.IFRAME,ht.IMG,ht.INPUT,ht.LI,ht.LINK,ht.LISTING,ht.MAIN,ht.MARQUEE,ht.MENU,ht.META,ht.NAV,ht.NOEMBED,ht.NOFRAMES,ht.NOSCRIPT,ht.OBJECT,ht.OL,ht.P,ht.PARAM,ht.PLAINTEXT,ht.PRE,ht.SCRIPT,ht.SECTION,ht.SELECT,ht.SOURCE,ht.STYLE,ht.SUMMARY,ht.TABLE,ht.TBODY,ht.TD,ht.TEMPLATE,ht.TEXTAREA,ht.TFOOT,ht.TH,ht.THEAD,ht.TITLE,ht.TR,ht.TRACK,ht.UL,ht.WBR,ht.XMP]),[ct.MATHML]:new Set([ht.MI,ht.MO,ht.MN,ht.MS,ht.MTEXT,ht.ANNOTATION_XML]),[ct.SVG]:new Set([ht.TITLE,ht.FOREIGN_OBJECT,ht.DESC]),[ct.XLINK]:new Set,[ct.XML]:new Set,[ct.XMLNS]:new Set},h6=new Set([ht.H1,ht.H2,ht.H3,ht.H4,ht.H5,ht.H6]);ze.STYLE,ze.SCRIPT,ze.XMP,ze.IFRAME,ze.NOEMBED,ze.NOFRAMES,ze.PLAINTEXT;var Se;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(Se||(Se={}));const Ua={DATA:Se.DATA,RCDATA:Se.RCDATA,RAWTEXT:Se.RAWTEXT,SCRIPT_DATA:Se.SCRIPT_DATA,PLAINTEXT:Se.PLAINTEXT,CDATA_SECTION:Se.CDATA_SECTION};function Tce(e){return e>=pe.DIGIT_0&&e<=pe.DIGIT_9}function Hm(e){return e>=pe.LATIN_CAPITAL_A&&e<=pe.LATIN_CAPITAL_Z}function Cce(e){return e>=pe.LATIN_SMALL_A&&e<=pe.LATIN_SMALL_Z}function zd(e){return Cce(e)||Hm(e)}function eN(e){return zd(e)||Tce(e)}function I2(e){return e+32}function SD(e){return e===pe.SPACE||e===pe.LINE_FEED||e===pe.TABULATION||e===pe.FORM_FEED}function tN(e){return SD(e)||e===pe.SOLIDUS||e===pe.GREATER_THAN_SIGN}function Nce(e){return e===pe.NULL?Ye.nullCharacterReference:e>1114111?Ye.characterReferenceOutsideUnicodeRange:bD(e)?Ye.surrogateCharacterReference:vD(e)?Ye.noncharacterCharacterReference:yD(e)||e===pe.CARRIAGE_RETURN?Ye.controlCharacterReference:null}class Ace{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Se.DATA,this.returnState=Se.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new pce(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Sce(mce,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Ye.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(Ye.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=Nce(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Fn.START_TAG,tagName:"",tagID:C.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Fn.END_TAG,tagName:"",tagID:C.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Fn.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Fn.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(wD(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Ye.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Rp(t.tagName),t.type===Fn.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Ye.endTagWithAttributes),t.selfClosing&&this._err(Ye.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Fn.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Fn.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Fn.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Fn.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=SD(t)?Fn.WHITESPACE_CHARACTER:t===pe.NULL?Fn.NULL_CHARACTER:Fn.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Fn.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=Se.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ou.Attribute:Ou.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Se.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Se.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Se.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case Se.DATA:{this._stateData(t);break}case Se.RCDATA:{this._stateRcdata(t);break}case Se.RAWTEXT:{this._stateRawtext(t);break}case Se.SCRIPT_DATA:{this._stateScriptData(t);break}case Se.PLAINTEXT:{this._statePlaintext(t);break}case Se.TAG_OPEN:{this._stateTagOpen(t);break}case Se.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case Se.TAG_NAME:{this._stateTagName(t);break}case Se.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case Se.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case Se.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case Se.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case Se.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case Se.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case Se.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case Se.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case Se.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case Se.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case Se.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case Se.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case Se.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case Se.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case Se.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case Se.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case Se.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case Se.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case Se.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case Se.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case Se.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case Se.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case Se.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case Se.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case Se.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case Se.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case Se.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case Se.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case Se.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case Se.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case Se.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case Se.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case Se.BOGUS_COMMENT:{this._stateBogusComment(t);break}case Se.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case Se.COMMENT_START:{this._stateCommentStart(t);break}case Se.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case Se.COMMENT:{this._stateComment(t);break}case Se.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case Se.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case Se.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case Se.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case Se.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case Se.COMMENT_END:{this._stateCommentEnd(t);break}case Se.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case Se.DOCTYPE:{this._stateDoctype(t);break}case Se.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case Se.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case Se.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case Se.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case Se.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case Se.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case Se.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case Se.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case Se.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case Se.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case Se.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case Se.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case Se.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case Se.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case Se.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case Se.CDATA_SECTION:{this._stateCdataSection(t);break}case Se.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case Se.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case Se.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case Se.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case pe.LESS_THAN_SIGN:{this.state=Se.TAG_OPEN;break}case pe.AMPERSAND:{this._startCharacterReference();break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this._emitCodePoint(t);break}case pe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case pe.AMPERSAND:{this._startCharacterReference();break}case pe.LESS_THAN_SIGN:{this.state=Se.RCDATA_LESS_THAN_SIGN;break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this._emitChars(la);break}case pe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case pe.LESS_THAN_SIGN:{this.state=Se.RAWTEXT_LESS_THAN_SIGN;break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this._emitChars(la);break}case pe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case pe.LESS_THAN_SIGN:{this.state=Se.SCRIPT_DATA_LESS_THAN_SIGN;break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this._emitChars(la);break}case pe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this._emitChars(la);break}case pe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(zd(t))this._createStartTagToken(),this.state=Se.TAG_NAME,this._stateTagName(t);else switch(t){case pe.EXCLAMATION_MARK:{this.state=Se.MARKUP_DECLARATION_OPEN;break}case pe.SOLIDUS:{this.state=Se.END_TAG_OPEN;break}case pe.QUESTION_MARK:{this._err(Ye.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Se.BOGUS_COMMENT,this._stateBogusComment(t);break}case pe.EOF:{this._err(Ye.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ye.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Se.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(zd(t))this._createEndTagToken(),this.state=Se.TAG_NAME,this._stateTagName(t);else switch(t){case pe.GREATER_THAN_SIGN:{this._err(Ye.missingEndTagName),this.state=Se.DATA;break}case pe.EOF:{this._err(Ye.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Ye.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Se.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:{this.state=Se.BEFORE_ATTRIBUTE_NAME;break}case pe.SOLIDUS:{this.state=Se.SELF_CLOSING_START_TAG;break}case pe.GREATER_THAN_SIGN:{this.state=Se.DATA,this.emitCurrentTagToken();break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),n.tagName+=la;break}case pe.EOF:{this._err(Ye.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Hm(t)?I2(t):t)}}_stateRcdataLessThanSign(t){t===pe.SOLIDUS?this.state=Se.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Se.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){zd(t)?(this.state=Se.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=Se.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Se.BEFORE_ATTRIBUTE_NAME,!1;case pe.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Se.SELF_CLOSING_START_TAG,!1;case pe.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Se.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Se.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===pe.SOLIDUS?this.state=Se.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Se.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){zd(t)?(this.state=Se.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=Se.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Se.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case pe.SOLIDUS:{this.state=Se.SCRIPT_DATA_END_TAG_OPEN;break}case pe.EXCLAMATION_MARK:{this.state=Se.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=Se.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){zd(t)?(this.state=Se.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=Se.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Se.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===pe.HYPHEN_MINUS?(this.state=Se.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Se.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===pe.HYPHEN_MINUS?(this.state=Se.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Se.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case pe.HYPHEN_MINUS:{this.state=Se.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case pe.LESS_THAN_SIGN:{this.state=Se.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this._emitChars(la);break}case pe.EOF:{this._err(Ye.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case pe.HYPHEN_MINUS:{this.state=Se.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case pe.LESS_THAN_SIGN:{this.state=Se.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this.state=Se.SCRIPT_DATA_ESCAPED,this._emitChars(la);break}case pe.EOF:{this._err(Ye.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Se.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case pe.HYPHEN_MINUS:{this._emitChars("-");break}case pe.LESS_THAN_SIGN:{this.state=Se.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case pe.GREATER_THAN_SIGN:{this.state=Se.SCRIPT_DATA,this._emitChars(">");break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this.state=Se.SCRIPT_DATA_ESCAPED,this._emitChars(la);break}case pe.EOF:{this._err(Ye.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Se.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===pe.SOLIDUS?this.state=Se.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:zd(t)?(this._emitChars("<"),this.state=Se.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=Se.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){zd(t)?(this.state=Se.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=Se.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Se.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ii.SCRIPT,!1)&&tN(this.preprocessor.peek(Ii.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ii.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=Se.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Se.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case pe.HYPHEN_MINUS:{this.state=Se.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case pe.LESS_THAN_SIGN:{this.state=Se.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this._emitChars(la);break}case pe.EOF:{this._err(Ye.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case pe.HYPHEN_MINUS:{this.state=Se.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case pe.LESS_THAN_SIGN:{this.state=Se.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this.state=Se.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(la);break}case pe.EOF:{this._err(Ye.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Se.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case pe.HYPHEN_MINUS:{this._emitChars("-");break}case pe.LESS_THAN_SIGN:{this.state=Se.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case pe.GREATER_THAN_SIGN:{this.state=Se.SCRIPT_DATA,this._emitChars(">");break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this.state=Se.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(la);break}case pe.EOF:{this._err(Ye.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Se.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===pe.SOLIDUS?(this.state=Se.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Se.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ii.SCRIPT,!1)&&tN(this.preprocessor.peek(Ii.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ii.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=Se.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Se.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:break;case pe.SOLIDUS:case pe.GREATER_THAN_SIGN:case pe.EOF:{this.state=Se.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case pe.EQUALS_SIGN:{this._err(Ye.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Se.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=Se.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:case pe.SOLIDUS:case pe.GREATER_THAN_SIGN:case pe.EOF:{this._leaveAttrName(),this.state=Se.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case pe.EQUALS_SIGN:{this._leaveAttrName(),this.state=Se.BEFORE_ATTRIBUTE_VALUE;break}case pe.QUOTATION_MARK:case pe.APOSTROPHE:case pe.LESS_THAN_SIGN:{this._err(Ye.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this.currentAttr.name+=la;break}default:this.currentAttr.name+=String.fromCodePoint(Hm(t)?I2(t):t)}}_stateAfterAttributeName(t){switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:break;case pe.SOLIDUS:{this.state=Se.SELF_CLOSING_START_TAG;break}case pe.EQUALS_SIGN:{this.state=Se.BEFORE_ATTRIBUTE_VALUE;break}case pe.GREATER_THAN_SIGN:{this.state=Se.DATA,this.emitCurrentTagToken();break}case pe.EOF:{this._err(Ye.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=Se.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:break;case pe.QUOTATION_MARK:{this.state=Se.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case pe.APOSTROPHE:{this.state=Se.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case pe.GREATER_THAN_SIGN:{this._err(Ye.missingAttributeValue),this.state=Se.DATA,this.emitCurrentTagToken();break}default:this.state=Se.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case pe.QUOTATION_MARK:{this.state=Se.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case pe.AMPERSAND:{this._startCharacterReference();break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this.currentAttr.value+=la;break}case pe.EOF:{this._err(Ye.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case pe.APOSTROPHE:{this.state=Se.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case pe.AMPERSAND:{this._startCharacterReference();break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this.currentAttr.value+=la;break}case pe.EOF:{this._err(Ye.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:{this._leaveAttrValue(),this.state=Se.BEFORE_ATTRIBUTE_NAME;break}case pe.AMPERSAND:{this._startCharacterReference();break}case pe.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Se.DATA,this.emitCurrentTagToken();break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this.currentAttr.value+=la;break}case pe.QUOTATION_MARK:case pe.APOSTROPHE:case pe.LESS_THAN_SIGN:case pe.EQUALS_SIGN:case pe.GRAVE_ACCENT:{this._err(Ye.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case pe.EOF:{this._err(Ye.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:{this._leaveAttrValue(),this.state=Se.BEFORE_ATTRIBUTE_NAME;break}case pe.SOLIDUS:{this._leaveAttrValue(),this.state=Se.SELF_CLOSING_START_TAG;break}case pe.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=Se.DATA,this.emitCurrentTagToken();break}case pe.EOF:{this._err(Ye.eofInTag),this._emitEOFToken();break}default:this._err(Ye.missingWhitespaceBetweenAttributes),this.state=Se.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case pe.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=Se.DATA,this.emitCurrentTagToken();break}case pe.EOF:{this._err(Ye.eofInTag),this._emitEOFToken();break}default:this._err(Ye.unexpectedSolidusInTag),this.state=Se.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case pe.GREATER_THAN_SIGN:{this.state=Se.DATA,this.emitCurrentComment(n);break}case pe.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),n.data+=la;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ii.DASH_DASH,!0)?(this._createCommentToken(Ii.DASH_DASH.length+1),this.state=Se.COMMENT_START):this._consumeSequenceIfMatch(Ii.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ii.DOCTYPE.length+1),this.state=Se.DOCTYPE):this._consumeSequenceIfMatch(Ii.CDATA_START,!0)?this.inForeignNode?this.state=Se.CDATA_SECTION:(this._err(Ye.cdataInHtmlContent),this._createCommentToken(Ii.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=Se.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Ye.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Se.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case pe.HYPHEN_MINUS:{this.state=Se.COMMENT_START_DASH;break}case pe.GREATER_THAN_SIGN:{this._err(Ye.abruptClosingOfEmptyComment),this.state=Se.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=Se.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case pe.HYPHEN_MINUS:{this.state=Se.COMMENT_END;break}case pe.GREATER_THAN_SIGN:{this._err(Ye.abruptClosingOfEmptyComment),this.state=Se.DATA,this.emitCurrentComment(n);break}case pe.EOF:{this._err(Ye.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=Se.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case pe.HYPHEN_MINUS:{this.state=Se.COMMENT_END_DASH;break}case pe.LESS_THAN_SIGN:{n.data+="<",this.state=Se.COMMENT_LESS_THAN_SIGN;break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),n.data+=la;break}case pe.EOF:{this._err(Ye.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case pe.EXCLAMATION_MARK:{n.data+="!",this.state=Se.COMMENT_LESS_THAN_SIGN_BANG;break}case pe.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=Se.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===pe.HYPHEN_MINUS?this.state=Se.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Se.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===pe.HYPHEN_MINUS?this.state=Se.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Se.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==pe.GREATER_THAN_SIGN&&t!==pe.EOF&&this._err(Ye.nestedComment),this.state=Se.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case pe.HYPHEN_MINUS:{this.state=Se.COMMENT_END;break}case pe.EOF:{this._err(Ye.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=Se.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case pe.GREATER_THAN_SIGN:{this.state=Se.DATA,this.emitCurrentComment(n);break}case pe.EXCLAMATION_MARK:{this.state=Se.COMMENT_END_BANG;break}case pe.HYPHEN_MINUS:{n.data+="-";break}case pe.EOF:{this._err(Ye.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=Se.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case pe.HYPHEN_MINUS:{n.data+="--!",this.state=Se.COMMENT_END_DASH;break}case pe.GREATER_THAN_SIGN:{this._err(Ye.incorrectlyClosedComment),this.state=Se.DATA,this.emitCurrentComment(n);break}case pe.EOF:{this._err(Ye.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=Se.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:{this.state=Se.BEFORE_DOCTYPE_NAME;break}case pe.GREATER_THAN_SIGN:{this.state=Se.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case pe.EOF:{this._err(Ye.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ye.missingWhitespaceBeforeDoctypeName),this.state=Se.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Hm(t))this._createDoctypeToken(String.fromCharCode(I2(t))),this.state=Se.DOCTYPE_NAME;else switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:break;case pe.NULL:{this._err(Ye.unexpectedNullCharacter),this._createDoctypeToken(la),this.state=Se.DOCTYPE_NAME;break}case pe.GREATER_THAN_SIGN:{this._err(Ye.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Se.DATA;break}case pe.EOF:{this._err(Ye.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=Se.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:{this.state=Se.AFTER_DOCTYPE_NAME;break}case pe.GREATER_THAN_SIGN:{this.state=Se.DATA,this.emitCurrentDoctype(n);break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),n.name+=la;break}case pe.EOF:{this._err(Ye.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Hm(t)?I2(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:break;case pe.GREATER_THAN_SIGN:{this.state=Se.DATA,this.emitCurrentDoctype(n);break}case pe.EOF:{this._err(Ye.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ii.PUBLIC,!1)?this.state=Se.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ii.SYSTEM,!1)?this.state=Se.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Ye.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=Se.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:{this.state=Se.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case pe.QUOTATION_MARK:{this._err(Ye.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=Se.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case pe.APOSTROPHE:{this._err(Ye.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=Se.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case pe.GREATER_THAN_SIGN:{this._err(Ye.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Se.DATA,this.emitCurrentDoctype(n);break}case pe.EOF:{this._err(Ye.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ye.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Se.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:break;case pe.QUOTATION_MARK:{n.publicId="",this.state=Se.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case pe.APOSTROPHE:{n.publicId="",this.state=Se.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case pe.GREATER_THAN_SIGN:{this._err(Ye.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Se.DATA,this.emitCurrentDoctype(n);break}case pe.EOF:{this._err(Ye.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ye.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=Se.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case pe.QUOTATION_MARK:{this.state=Se.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),n.publicId+=la;break}case pe.GREATER_THAN_SIGN:{this._err(Ye.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Se.DATA;break}case pe.EOF:{this._err(Ye.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case pe.APOSTROPHE:{this.state=Se.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),n.publicId+=la;break}case pe.GREATER_THAN_SIGN:{this._err(Ye.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Se.DATA;break}case pe.EOF:{this._err(Ye.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:{this.state=Se.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case pe.GREATER_THAN_SIGN:{this.state=Se.DATA,this.emitCurrentDoctype(n);break}case pe.QUOTATION_MARK:{this._err(Ye.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=Se.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case pe.APOSTROPHE:{this._err(Ye.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=Se.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case pe.EOF:{this._err(Ye.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ye.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Se.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:break;case pe.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=Se.DATA;break}case pe.QUOTATION_MARK:{n.systemId="",this.state=Se.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case pe.APOSTROPHE:{n.systemId="",this.state=Se.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case pe.EOF:{this._err(Ye.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ye.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Se.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:{this.state=Se.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case pe.QUOTATION_MARK:{this._err(Ye.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=Se.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case pe.APOSTROPHE:{this._err(Ye.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=Se.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case pe.GREATER_THAN_SIGN:{this._err(Ye.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Se.DATA,this.emitCurrentDoctype(n);break}case pe.EOF:{this._err(Ye.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ye.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Se.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:break;case pe.QUOTATION_MARK:{n.systemId="",this.state=Se.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case pe.APOSTROPHE:{n.systemId="",this.state=Se.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case pe.GREATER_THAN_SIGN:{this._err(Ye.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Se.DATA,this.emitCurrentDoctype(n);break}case pe.EOF:{this._err(Ye.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ye.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=Se.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case pe.QUOTATION_MARK:{this.state=Se.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),n.systemId+=la;break}case pe.GREATER_THAN_SIGN:{this._err(Ye.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Se.DATA;break}case pe.EOF:{this._err(Ye.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case pe.APOSTROPHE:{this.state=Se.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter),n.systemId+=la;break}case pe.GREATER_THAN_SIGN:{this._err(Ye.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=Se.DATA;break}case pe.EOF:{this._err(Ye.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case pe.SPACE:case pe.LINE_FEED:case pe.TABULATION:case pe.FORM_FEED:break;case pe.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=Se.DATA;break}case pe.EOF:{this._err(Ye.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ye.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Se.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case pe.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=Se.DATA;break}case pe.NULL:{this._err(Ye.unexpectedNullCharacter);break}case pe.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case pe.RIGHT_SQUARE_BRACKET:{this.state=Se.CDATA_SECTION_BRACKET;break}case pe.EOF:{this._err(Ye.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===pe.RIGHT_SQUARE_BRACKET?this.state=Se.CDATA_SECTION_END:(this._emitChars("]"),this.state=Se.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case pe.GREATER_THAN_SIGN:{this.state=Se.DATA;break}case pe.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=Se.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(pe.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&eN(this.preprocessor.peek(1))?Se.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){eN(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===pe.SEMICOLON&&this._err(Ye.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const ED=new Set([C.DD,C.DT,C.LI,C.OPTGROUP,C.OPTION,C.P,C.RB,C.RP,C.RT,C.RTC]),nN=new Set([...ED,C.CAPTION,C.COLGROUP,C.TBODY,C.TD,C.TFOOT,C.TH,C.THEAD,C.TR]),Xx=new Set([C.APPLET,C.CAPTION,C.HTML,C.MARQUEE,C.OBJECT,C.TABLE,C.TD,C.TEMPLATE,C.TH]),Lce=new Set([...Xx,C.OL,C.UL]),Mce=new Set([...Xx,C.BUTTON]),rN=new Set([C.ANNOTATION_XML,C.MI,C.MN,C.MO,C.MS,C.MTEXT]),aN=new Set([C.DESC,C.FOREIGN_OBJECT,C.TITLE]),Rce=new Set([C.TR,C.TEMPLATE,C.HTML]),Oce=new Set([C.TBODY,C.TFOOT,C.THEAD,C.TEMPLATE,C.HTML]),Pce=new Set([C.TABLE,C.TEMPLATE,C.HTML]),jce=new Set([C.TD,C.TH]);class Dce{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=C.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===C.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ct.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==ct.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(h6,ct.HTML)}popUntilTableCellPopped(){this.popUntilPopped(jce,ct.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Pce,ct.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Oce,ct.HTML)}clearBackToTableRowContext(){this.clearBackTo(Rce,ct.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===C.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===C.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case ct.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case ct.SVG:{if(aN.has(a))return!1;break}case ct.MATHML:{if(rN.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Xx)}hasInListItemScope(t){return this.hasInDynamicScope(t,Lce)}hasInButtonScope(t){return this.hasInDynamicScope(t,Mce)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ct.HTML:{if(h6.has(n))return!0;if(Xx.has(n))return!1;break}case ct.SVG:{if(aN.has(n))return!1;break}case ct.MATHML:{if(rN.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ct.HTML)switch(this.tagIDs[n]){case t:return!0;case C.TABLE:case C.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ct.HTML)switch(this.tagIDs[t]){case C.TBODY:case C.THEAD:case C.TFOOT:return!0;case C.TABLE:case C.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ct.HTML)switch(this.tagIDs[n]){case t:return!0;case C.OPTION:case C.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&ED.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&nN.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&nN.has(this.currentTagId);)this.pop()}}const lv=3;var Sc;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Sc||(Sc={}));const sN={type:Sc.Marker};class Ice{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,s=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const c=this.entries[o];if(c.type===Sc.Marker)break;const{element:d}=c;if(this.treeAdapter.getTagName(d)===s&&this.treeAdapter.getNamespaceURI(d)===i){const f=this.treeAdapter.getAttrList(d);f.length===a&&r.push({idx:o,attrs:f})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<lv)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<lv)return;const a=new Map(n.map(i=>[i.name,i.value]));let s=0;for(let i=0;i<r.length;i++){const o=r[i];o.attrs.every(c=>a.get(c.name)===c.value)&&(s+=1,s>=lv&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(sN)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Sc.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Sc.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(sN);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Sc.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Sc.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Sc.Element&&n.element===t)}}const Hd={createDocument(){return{nodeName:"#document",mode:Ho.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(s=>s.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Hd.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Hd.isTextNode(n)){n.value+=t;return}}Hd.appendChild(e,Hd.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Hd.isTextNode(r)?r.value+=t:Hd.insertBefore(e,Hd.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},kD="html",Bce="about:legacy-compat",Fce="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",_D=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],zce=[..._D,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Hce=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),TD=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Uce=[...TD,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function iN(e,t){return t.some(n=>e.startsWith(n))}function qce(e){return e.name===kD&&e.publicId===null&&(e.systemId===null||e.systemId===Bce)}function Vce(e){if(e.name!==kD)return Ho.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Fce)return Ho.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Hce.has(n))return Ho.QUIRKS;let r=t===null?zce:_D;if(iN(n,r))return Ho.QUIRKS;if(r=t===null?TD:Uce,iN(n,r))return Ho.LIMITED_QUIRKS}return Ho.NO_QUIRKS}const oN={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Gce="definitionurl",$ce="definitionURL",Wce=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Yce=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ct.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ct.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ct.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ct.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ct.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ct.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ct.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ct.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ct.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ct.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ct.XMLNS}]]),Qce=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Xce=new Set([C.B,C.BIG,C.BLOCKQUOTE,C.BODY,C.BR,C.CENTER,C.CODE,C.DD,C.DIV,C.DL,C.DT,C.EM,C.EMBED,C.H1,C.H2,C.H3,C.H4,C.H5,C.H6,C.HEAD,C.HR,C.I,C.IMG,C.LI,C.LISTING,C.MENU,C.META,C.NOBR,C.OL,C.P,C.PRE,C.RUBY,C.S,C.SMALL,C.SPAN,C.STRONG,C.STRIKE,C.SUB,C.SUP,C.TABLE,C.TT,C.U,C.UL,C.VAR]);function Kce(e){const t=e.tagID;return t===C.FONT&&e.attrs.some(({name:r})=>r===uh.COLOR||r===uh.SIZE||r===uh.FACE)||Xce.has(t)}function CD(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Gce){e.attrs[t].name=$ce;break}}function ND(e){for(let t=0;t<e.attrs.length;t++){const n=Wce.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function I8(e){for(let t=0;t<e.attrs.length;t++){const n=Yce.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Jce(e){const t=Qce.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Rp(e.tagName))}function Zce(e,t){return t===ct.MATHML&&(e===C.MI||e===C.MO||e===C.MN||e===C.MS||e===C.MTEXT)}function eue(e,t,n){if(t===ct.MATHML&&e===C.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===uh.ENCODING){const a=n[r].value.toLowerCase();return a===oN.TEXT_HTML||a===oN.APPLICATION_XML}}return t===ct.SVG&&(e===C.FOREIGN_OBJECT||e===C.DESC||e===C.TITLE)}function tue(e,t,n,r){return(!r||r===ct.HTML)&&eue(e,t,n)||(!r||r===ct.MATHML)&&Zce(e,t)}const nue="hidden",rue=8,aue=3;var Te;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(Te||(Te={}));const sue={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},AD=new Set([C.TABLE,C.TBODY,C.TFOOT,C.THEAD,C.TR]),lN={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Hd,onParseError:null};class cN{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=Te.INITIAL,this.originalInsertionMode=Te.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...lN,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Ace(this.options,this),this.activeFormattingElements=new Ice(this.treeAdapter),this.fragmentContextID=r?Rp(this.treeAdapter.getTagName(r)):C.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Dce(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...lN,...n};t??(t=r.treeAdapter.createElement(ze.TEMPLATE,ct.HTML,[]));const a=r.treeAdapter.createElement("documentmock",ct.HTML,[]),s=new this(r,a,t);return s.fragmentContextID===C.TEMPLATE&&s.tmplInsertionModeStack.unshift(Te.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const s=(a=t.location)!==null&&a!==void 0?a:sue,i={code:n,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(i)}onItemPush(t,n,r){var a,s;(s=(a=this.treeAdapter).onItemPush)===null||s===void 0||s.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let s,i;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,i=this.fragmentContextID):{current:s,currentTagId:i}=this.openElements,this._setContextModes(s,i)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ct.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,ct.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Te.TEXT}switchToPlaintextParsing(){this.insertionMode=Te.TEXT,this.originalInsertionMode=Te.IN_BODY,this.tokenizer.state=Ua.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===ze.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ct.HTML))switch(this.fragmentContextID){case C.TITLE:case C.TEXTAREA:{this.tokenizer.state=Ua.RCDATA;break}case C.STYLE:case C.XMP:case C.IFRAME:case C.NOEMBED:case C.NOFRAMES:case C.NOSCRIPT:{this.tokenizer.state=Ua.RAWTEXT;break}case C.SCRIPT:{this.tokenizer.state=Ua.SCRIPT_DATA;break}case C.PLAINTEXT:{this.tokenizer.state=Ua.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const i=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));i&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,ct.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,ct.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(ze.HTML,ct.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,C.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),s=r?a.lastIndexOf(r):a.length,i=a[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:c,endCol:d,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:c,endCol:d,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),s=n.type===Fn.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===C.SVG&&this.treeAdapter.getTagName(n)===ze.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===ct.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===C.MGLYPH||t.tagID===C.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,ct.HTML)}_processToken(t){switch(t.type){case Fn.CHARACTER:{this.onCharacter(t);break}case Fn.NULL_CHARACTER:{this.onNullCharacter(t);break}case Fn.COMMENT:{this.onComment(t);break}case Fn.DOCTYPE:{this.onDoctype(t);break}case Fn.START_TAG:{this._processStartTag(t);break}case Fn.END_TAG:{this.onEndTag(t);break}case Fn.EOF:{this.onEof(t);break}case Fn.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),s=this.treeAdapter.getAttrList(n);return tue(t,a,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===Sc.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const s=this.activeFormattingElements.entries[a];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Te.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(C.P),this.openElements.popUntilTagNamePopped(C.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case C.TR:{this.insertionMode=Te.IN_ROW;return}case C.TBODY:case C.THEAD:case C.TFOOT:{this.insertionMode=Te.IN_TABLE_BODY;return}case C.CAPTION:{this.insertionMode=Te.IN_CAPTION;return}case C.COLGROUP:{this.insertionMode=Te.IN_COLUMN_GROUP;return}case C.TABLE:{this.insertionMode=Te.IN_TABLE;return}case C.BODY:{this.insertionMode=Te.IN_BODY;return}case C.FRAMESET:{this.insertionMode=Te.IN_FRAMESET;return}case C.SELECT:{this._resetInsertionModeForSelect(t);return}case C.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case C.HTML:{this.insertionMode=this.headElement?Te.AFTER_HEAD:Te.BEFORE_HEAD;return}case C.TD:case C.TH:{if(t>0){this.insertionMode=Te.IN_CELL;return}break}case C.HEAD:{if(t>0){this.insertionMode=Te.IN_HEAD;return}break}}this.insertionMode=Te.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===C.TEMPLATE)break;if(r===C.TABLE){this.insertionMode=Te.IN_SELECT_IN_TABLE;return}}this.insertionMode=Te.IN_SELECT}_isElementCausesFosterParenting(t){return AD.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case C.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===ct.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case C.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return _ce[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){jde(this,t);return}switch(this.insertionMode){case Te.INITIAL:{Mm(this,t);break}case Te.BEFORE_HTML:{a1(this,t);break}case Te.BEFORE_HEAD:{s1(this,t);break}case Te.IN_HEAD:{i1(this,t);break}case Te.IN_HEAD_NO_SCRIPT:{o1(this,t);break}case Te.AFTER_HEAD:{l1(this,t);break}case Te.IN_BODY:case Te.IN_CAPTION:case Te.IN_CELL:case Te.IN_TEMPLATE:{MD(this,t);break}case Te.TEXT:case Te.IN_SELECT:case Te.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Te.IN_TABLE:case Te.IN_TABLE_BODY:case Te.IN_ROW:{cv(this,t);break}case Te.IN_TABLE_TEXT:{ID(this,t);break}case Te.IN_COLUMN_GROUP:{Kx(this,t);break}case Te.AFTER_BODY:{Jx(this,t);break}case Te.AFTER_AFTER_BODY:{xx(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Pde(this,t);return}switch(this.insertionMode){case Te.INITIAL:{Mm(this,t);break}case Te.BEFORE_HTML:{a1(this,t);break}case Te.BEFORE_HEAD:{s1(this,t);break}case Te.IN_HEAD:{i1(this,t);break}case Te.IN_HEAD_NO_SCRIPT:{o1(this,t);break}case Te.AFTER_HEAD:{l1(this,t);break}case Te.TEXT:{this._insertCharacters(t);break}case Te.IN_TABLE:case Te.IN_TABLE_BODY:case Te.IN_ROW:{cv(this,t);break}case Te.IN_COLUMN_GROUP:{Kx(this,t);break}case Te.AFTER_BODY:{Jx(this,t);break}case Te.AFTER_AFTER_BODY:{xx(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){f6(this,t);return}switch(this.insertionMode){case Te.INITIAL:case Te.BEFORE_HTML:case Te.BEFORE_HEAD:case Te.IN_HEAD:case Te.IN_HEAD_NO_SCRIPT:case Te.AFTER_HEAD:case Te.IN_BODY:case Te.IN_TABLE:case Te.IN_CAPTION:case Te.IN_COLUMN_GROUP:case Te.IN_TABLE_BODY:case Te.IN_ROW:case Te.IN_CELL:case Te.IN_SELECT:case Te.IN_SELECT_IN_TABLE:case Te.IN_TEMPLATE:case Te.IN_FRAMESET:case Te.AFTER_FRAMESET:{f6(this,t);break}case Te.IN_TABLE_TEXT:{Rm(this,t);break}case Te.AFTER_BODY:{hue(this,t);break}case Te.AFTER_AFTER_BODY:case Te.AFTER_AFTER_FRAMESET:{fue(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Te.INITIAL:{pue(this,t);break}case Te.BEFORE_HEAD:case Te.IN_HEAD:case Te.IN_HEAD_NO_SCRIPT:case Te.AFTER_HEAD:{this._err(t,Ye.misplacedDoctype);break}case Te.IN_TABLE_TEXT:{Rm(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Ye.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Dde(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Te.INITIAL:{Mm(this,t);break}case Te.BEFORE_HTML:{mue(this,t);break}case Te.BEFORE_HEAD:{xue(this,t);break}case Te.IN_HEAD:{Dl(this,t);break}case Te.IN_HEAD_NO_SCRIPT:{vue(this,t);break}case Te.AFTER_HEAD:{Sue(this,t);break}case Te.IN_BODY:{ni(this,t);break}case Te.IN_TABLE:{dp(this,t);break}case Te.IN_TABLE_TEXT:{Rm(this,t);break}case Te.IN_CAPTION:{bde(this,t);break}case Te.IN_COLUMN_GROUP:{z8(this,t);break}case Te.IN_TABLE_BODY:{ib(this,t);break}case Te.IN_ROW:{ob(this,t);break}case Te.IN_CELL:{wde(this,t);break}case Te.IN_SELECT:{zD(this,t);break}case Te.IN_SELECT_IN_TABLE:{Ede(this,t);break}case Te.IN_TEMPLATE:{_de(this,t);break}case Te.AFTER_BODY:{Cde(this,t);break}case Te.IN_FRAMESET:{Nde(this,t);break}case Te.AFTER_FRAMESET:{Lde(this,t);break}case Te.AFTER_AFTER_BODY:{Rde(this,t);break}case Te.AFTER_AFTER_FRAMESET:{Ode(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Ide(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Te.INITIAL:{Mm(this,t);break}case Te.BEFORE_HTML:{gue(this,t);break}case Te.BEFORE_HEAD:{bue(this,t);break}case Te.IN_HEAD:{yue(this,t);break}case Te.IN_HEAD_NO_SCRIPT:{wue(this,t);break}case Te.AFTER_HEAD:{Eue(this,t);break}case Te.IN_BODY:{sb(this,t);break}case Te.TEXT:{lde(this,t);break}case Te.IN_TABLE:{O1(this,t);break}case Te.IN_TABLE_TEXT:{Rm(this,t);break}case Te.IN_CAPTION:{yde(this,t);break}case Te.IN_COLUMN_GROUP:{vde(this,t);break}case Te.IN_TABLE_BODY:{p6(this,t);break}case Te.IN_ROW:{FD(this,t);break}case Te.IN_CELL:{Sde(this,t);break}case Te.IN_SELECT:{HD(this,t);break}case Te.IN_SELECT_IN_TABLE:{kde(this,t);break}case Te.IN_TEMPLATE:{Tde(this,t);break}case Te.AFTER_BODY:{qD(this,t);break}case Te.IN_FRAMESET:{Ade(this,t);break}case Te.AFTER_FRAMESET:{Mde(this,t);break}case Te.AFTER_AFTER_BODY:{xx(this,t);break}}}onEof(t){switch(this.insertionMode){case Te.INITIAL:{Mm(this,t);break}case Te.BEFORE_HTML:{a1(this,t);break}case Te.BEFORE_HEAD:{s1(this,t);break}case Te.IN_HEAD:{i1(this,t);break}case Te.IN_HEAD_NO_SCRIPT:{o1(this,t);break}case Te.AFTER_HEAD:{l1(this,t);break}case Te.IN_BODY:case Te.IN_TABLE:case Te.IN_CAPTION:case Te.IN_COLUMN_GROUP:case Te.IN_TABLE_BODY:case Te.IN_ROW:case Te.IN_CELL:case Te.IN_SELECT:case Te.IN_SELECT_IN_TABLE:{jD(this,t);break}case Te.TEXT:{cde(this,t);break}case Te.IN_TABLE_TEXT:{Rm(this,t);break}case Te.IN_TEMPLATE:{UD(this,t);break}case Te.AFTER_BODY:case Te.IN_FRAMESET:case Te.AFTER_FRAMESET:case Te.AFTER_AFTER_BODY:case Te.AFTER_AFTER_FRAMESET:{F8(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===pe.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case Te.IN_HEAD:case Te.IN_HEAD_NO_SCRIPT:case Te.AFTER_HEAD:case Te.TEXT:case Te.IN_COLUMN_GROUP:case Te.IN_SELECT:case Te.IN_SELECT_IN_TABLE:case Te.IN_FRAMESET:case Te.AFTER_FRAMESET:{this._insertCharacters(t);break}case Te.IN_BODY:case Te.IN_CAPTION:case Te.IN_CELL:case Te.IN_TEMPLATE:case Te.AFTER_BODY:case Te.AFTER_AFTER_BODY:case Te.AFTER_AFTER_FRAMESET:{LD(this,t);break}case Te.IN_TABLE:case Te.IN_TABLE_BODY:case Te.IN_ROW:{cv(this,t);break}case Te.IN_TABLE_TEXT:{DD(this,t);break}}}}function iue(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):PD(e,t),n}function oue(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function lue(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let s=0,i=a;i!==n;s++,i=a){a=e.openElements.getCommonAncestor(i);const o=e.activeFormattingElements.getElementEntry(i),c=o&&s>=aue;!o||c?(c&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(i)):(i=cue(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function cue(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function uue(e,t,n){const r=e.treeAdapter.getTagName(t),a=Rp(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);a===C.TEMPLATE&&s===ct.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function due(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,s=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,a.tagID)}function B8(e,t){for(let n=0;n<rue;n++){const r=iue(e,t);if(!r)break;const a=oue(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const s=lue(e,a,r.element),i=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),i&&uue(e,i,s),due(e,a,r)}}function f6(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function hue(e,t){e._appendCommentNode(t,e.openElements.items[0])}function fue(e,t){e._appendCommentNode(t,e.document)}function F8(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(s);i&&!i.endTag&&e._setEndLocation(s,t)}}}}function pue(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ho.QUIRKS:Vce(t);qce(t)||e._err(t,Ye.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Te.BEFORE_HTML}function Mm(e,t){e._err(t,Ye.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ho.QUIRKS),e.insertionMode=Te.BEFORE_HTML,e._processToken(t)}function mue(e,t){t.tagID===C.HTML?(e._insertElement(t,ct.HTML),e.insertionMode=Te.BEFORE_HEAD):a1(e,t)}function gue(e,t){const n=t.tagID;(n===C.HTML||n===C.HEAD||n===C.BODY||n===C.BR)&&a1(e,t)}function a1(e,t){e._insertFakeRootElement(),e.insertionMode=Te.BEFORE_HEAD,e._processToken(t)}function xue(e,t){switch(t.tagID){case C.HTML:{ni(e,t);break}case C.HEAD:{e._insertElement(t,ct.HTML),e.headElement=e.openElements.current,e.insertionMode=Te.IN_HEAD;break}default:s1(e,t)}}function bue(e,t){const n=t.tagID;n===C.HEAD||n===C.BODY||n===C.HTML||n===C.BR?s1(e,t):e._err(t,Ye.endTagWithoutMatchingOpenElement)}function s1(e,t){e._insertFakeElement(ze.HEAD,C.HEAD),e.headElement=e.openElements.current,e.insertionMode=Te.IN_HEAD,e._processToken(t)}function Dl(e,t){switch(t.tagID){case C.HTML:{ni(e,t);break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:{e._appendElement(t,ct.HTML),t.ackSelfClosing=!0;break}case C.TITLE:{e._switchToTextParsing(t,Ua.RCDATA);break}case C.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ua.RAWTEXT):(e._insertElement(t,ct.HTML),e.insertionMode=Te.IN_HEAD_NO_SCRIPT);break}case C.NOFRAMES:case C.STYLE:{e._switchToTextParsing(t,Ua.RAWTEXT);break}case C.SCRIPT:{e._switchToTextParsing(t,Ua.SCRIPT_DATA);break}case C.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Te.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Te.IN_TEMPLATE);break}case C.HEAD:{e._err(t,Ye.misplacedStartTagForHeadElement);break}default:i1(e,t)}}function yue(e,t){switch(t.tagID){case C.HEAD:{e.openElements.pop(),e.insertionMode=Te.AFTER_HEAD;break}case C.BODY:case C.BR:case C.HTML:{i1(e,t);break}case C.TEMPLATE:{Ah(e,t);break}default:e._err(t,Ye.endTagWithoutMatchingOpenElement)}}function Ah(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==C.TEMPLATE&&e._err(t,Ye.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Ye.endTagWithoutMatchingOpenElement)}function i1(e,t){e.openElements.pop(),e.insertionMode=Te.AFTER_HEAD,e._processToken(t)}function vue(e,t){switch(t.tagID){case C.HTML:{ni(e,t);break}case C.BASEFONT:case C.BGSOUND:case C.HEAD:case C.LINK:case C.META:case C.NOFRAMES:case C.STYLE:{Dl(e,t);break}case C.NOSCRIPT:{e._err(t,Ye.nestedNoscriptInHead);break}default:o1(e,t)}}function wue(e,t){switch(t.tagID){case C.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Te.IN_HEAD;break}case C.BR:{o1(e,t);break}default:e._err(t,Ye.endTagWithoutMatchingOpenElement)}}function o1(e,t){const n=t.type===Fn.EOF?Ye.openElementsLeftAfterEof:Ye.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Te.IN_HEAD,e._processToken(t)}function Sue(e,t){switch(t.tagID){case C.HTML:{ni(e,t);break}case C.BODY:{e._insertElement(t,ct.HTML),e.framesetOk=!1,e.insertionMode=Te.IN_BODY;break}case C.FRAMESET:{e._insertElement(t,ct.HTML),e.insertionMode=Te.IN_FRAMESET;break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{e._err(t,Ye.abandonedHeadElementChild),e.openElements.push(e.headElement,C.HEAD),Dl(e,t),e.openElements.remove(e.headElement);break}case C.HEAD:{e._err(t,Ye.misplacedStartTagForHeadElement);break}default:l1(e,t)}}function Eue(e,t){switch(t.tagID){case C.BODY:case C.HTML:case C.BR:{l1(e,t);break}case C.TEMPLATE:{Ah(e,t);break}default:e._err(t,Ye.endTagWithoutMatchingOpenElement)}}function l1(e,t){e._insertFakeElement(ze.BODY,C.BODY),e.insertionMode=Te.IN_BODY,ab(e,t)}function ab(e,t){switch(t.type){case Fn.CHARACTER:{MD(e,t);break}case Fn.WHITESPACE_CHARACTER:{LD(e,t);break}case Fn.COMMENT:{f6(e,t);break}case Fn.START_TAG:{ni(e,t);break}case Fn.END_TAG:{sb(e,t);break}case Fn.EOF:{jD(e,t);break}}}function LD(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function MD(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function kue(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function _ue(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Tue(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ct.HTML),e.insertionMode=Te.IN_FRAMESET)}function Cue(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ct.HTML)}function Nue(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&h6.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ct.HTML)}function Aue(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ct.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Lue(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ct.HTML),n||(e.formElement=e.openElements.current))}function Mue(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===C.LI&&a===C.LI||(n===C.DD||n===C.DT)&&(a===C.DD||a===C.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==C.ADDRESS&&a!==C.DIV&&a!==C.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ct.HTML)}function Rue(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ct.HTML),e.tokenizer.state=Ua.PLAINTEXT}function Oue(e,t){e.openElements.hasInScope(C.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ct.HTML),e.framesetOk=!1}function Pue(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(ze.A);n&&(B8(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ct.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function jue(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ct.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Due(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(C.NOBR)&&(B8(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ct.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Iue(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ct.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Bue(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ho.QUIRKS&&e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ct.HTML),e.framesetOk=!1,e.insertionMode=Te.IN_TABLE}function RD(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ct.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function OD(e){const t=wD(e,uh.TYPE);return t!=null&&t.toLowerCase()===nue}function Fue(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ct.HTML),OD(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function zue(e,t){e._appendElement(t,ct.HTML),t.ackSelfClosing=!0}function Hue(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._appendElement(t,ct.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Uue(e,t){t.tagName=ze.IMG,t.tagID=C.IMG,RD(e,t)}function que(e,t){e._insertElement(t,ct.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ua.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Te.TEXT}function Vue(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ua.RAWTEXT)}function Gue(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ua.RAWTEXT)}function uN(e,t){e._switchToTextParsing(t,Ua.RAWTEXT)}function $ue(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ct.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Te.IN_TABLE||e.insertionMode===Te.IN_CAPTION||e.insertionMode===Te.IN_TABLE_BODY||e.insertionMode===Te.IN_ROW||e.insertionMode===Te.IN_CELL?Te.IN_SELECT_IN_TABLE:Te.IN_SELECT}function Wue(e,t){e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ct.HTML)}function Yue(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ct.HTML)}function Que(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(C.RTC),e._insertElement(t,ct.HTML)}function Xue(e,t){e._reconstructActiveFormattingElements(),CD(t),I8(t),t.selfClosing?e._appendElement(t,ct.MATHML):e._insertElement(t,ct.MATHML),t.ackSelfClosing=!0}function Kue(e,t){e._reconstructActiveFormattingElements(),ND(t),I8(t),t.selfClosing?e._appendElement(t,ct.SVG):e._insertElement(t,ct.SVG),t.ackSelfClosing=!0}function dN(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ct.HTML)}function ni(e,t){switch(t.tagID){case C.I:case C.S:case C.B:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.SMALL:case C.STRIKE:case C.STRONG:{jue(e,t);break}case C.A:{Pue(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{Nue(e,t);break}case C.P:case C.DL:case C.OL:case C.UL:case C.DIV:case C.DIR:case C.NAV:case C.MAIN:case C.MENU:case C.ASIDE:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.DETAILS:case C.ADDRESS:case C.ARTICLE:case C.SEARCH:case C.SECTION:case C.SUMMARY:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{Cue(e,t);break}case C.LI:case C.DD:case C.DT:{Mue(e,t);break}case C.BR:case C.IMG:case C.WBR:case C.AREA:case C.EMBED:case C.KEYGEN:{RD(e,t);break}case C.HR:{Hue(e,t);break}case C.RB:case C.RTC:{Yue(e,t);break}case C.RT:case C.RP:{Que(e,t);break}case C.PRE:case C.LISTING:{Aue(e,t);break}case C.XMP:{Vue(e,t);break}case C.SVG:{Kue(e,t);break}case C.HTML:{kue(e,t);break}case C.BASE:case C.LINK:case C.META:case C.STYLE:case C.TITLE:case C.SCRIPT:case C.BGSOUND:case C.BASEFONT:case C.TEMPLATE:{Dl(e,t);break}case C.BODY:{_ue(e,t);break}case C.FORM:{Lue(e,t);break}case C.NOBR:{Due(e,t);break}case C.MATH:{Xue(e,t);break}case C.TABLE:{Bue(e,t);break}case C.INPUT:{Fue(e,t);break}case C.PARAM:case C.TRACK:case C.SOURCE:{zue(e,t);break}case C.IMAGE:{Uue(e,t);break}case C.BUTTON:{Oue(e,t);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{Iue(e,t);break}case C.IFRAME:{Gue(e,t);break}case C.SELECT:{$ue(e,t);break}case C.OPTION:case C.OPTGROUP:{Wue(e,t);break}case C.NOEMBED:case C.NOFRAMES:{uN(e,t);break}case C.FRAMESET:{Tue(e,t);break}case C.TEXTAREA:{que(e,t);break}case C.NOSCRIPT:{e.options.scriptingEnabled?uN(e,t):dN(e,t);break}case C.PLAINTEXT:{Rue(e,t);break}case C.COL:case C.TH:case C.TD:case C.TR:case C.HEAD:case C.FRAME:case C.TBODY:case C.TFOOT:case C.THEAD:case C.CAPTION:case C.COLGROUP:break;default:dN(e,t)}}function Jue(e,t){if(e.openElements.hasInScope(C.BODY)&&(e.insertionMode=Te.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Zue(e,t){e.openElements.hasInScope(C.BODY)&&(e.insertionMode=Te.AFTER_BODY,qD(e,t))}function ede(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function tde(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(C.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(C.FORM):n&&e.openElements.remove(n))}function nde(e){e.openElements.hasInButtonScope(C.P)||e._insertFakeElement(ze.P,C.P),e._closePElement()}function rde(e){e.openElements.hasInListItemScope(C.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(C.LI),e.openElements.popUntilTagNamePopped(C.LI))}function ade(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function sde(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function ide(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ode(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(ze.BR,C.BR),e.openElements.pop(),e.framesetOk=!1}function PD(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const s=e.openElements.items[a],i=e.openElements.tagIDs[a];if(r===i&&(r!==C.UNKNOWN||e.treeAdapter.getTagName(s)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(s,i))break}}function sb(e,t){switch(t.tagID){case C.A:case C.B:case C.I:case C.S:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.NOBR:case C.SMALL:case C.STRIKE:case C.STRONG:{B8(e,t);break}case C.P:{nde(e);break}case C.DL:case C.UL:case C.OL:case C.DIR:case C.DIV:case C.NAV:case C.PRE:case C.MAIN:case C.MENU:case C.ASIDE:case C.BUTTON:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.ADDRESS:case C.ARTICLE:case C.DETAILS:case C.SEARCH:case C.SECTION:case C.SUMMARY:case C.LISTING:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{ede(e,t);break}case C.LI:{rde(e);break}case C.DD:case C.DT:{ade(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{sde(e);break}case C.BR:{ode(e);break}case C.BODY:{Jue(e,t);break}case C.HTML:{Zue(e,t);break}case C.FORM:{tde(e);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{ide(e,t);break}case C.TEMPLATE:{Ah(e,t);break}default:PD(e,t)}}function jD(e,t){e.tmplInsertionModeStack.length>0?UD(e,t):F8(e,t)}function lde(e,t){var n;t.tagID===C.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function cde(e,t){e._err(t,Ye.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function cv(e,t){if(e.openElements.currentTagId!==void 0&&AD.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Te.IN_TABLE_TEXT,t.type){case Fn.CHARACTER:{ID(e,t);break}case Fn.WHITESPACE_CHARACTER:{DD(e,t);break}}else sg(e,t)}function ude(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ct.HTML),e.insertionMode=Te.IN_CAPTION}function dde(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ct.HTML),e.insertionMode=Te.IN_COLUMN_GROUP}function hde(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ze.COLGROUP,C.COLGROUP),e.insertionMode=Te.IN_COLUMN_GROUP,z8(e,t)}function fde(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ct.HTML),e.insertionMode=Te.IN_TABLE_BODY}function pde(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ze.TBODY,C.TBODY),e.insertionMode=Te.IN_TABLE_BODY,ib(e,t)}function mde(e,t){e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function gde(e,t){OD(t)?e._appendElement(t,ct.HTML):sg(e,t),t.ackSelfClosing=!0}function xde(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ct.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function dp(e,t){switch(t.tagID){case C.TD:case C.TH:case C.TR:{pde(e,t);break}case C.STYLE:case C.SCRIPT:case C.TEMPLATE:{Dl(e,t);break}case C.COL:{hde(e,t);break}case C.FORM:{xde(e,t);break}case C.TABLE:{mde(e,t);break}case C.TBODY:case C.TFOOT:case C.THEAD:{fde(e,t);break}case C.INPUT:{gde(e,t);break}case C.CAPTION:{ude(e,t);break}case C.COLGROUP:{dde(e,t);break}default:sg(e,t)}}function O1(e,t){switch(t.tagID){case C.TABLE:{e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode());break}case C.TEMPLATE:{Ah(e,t);break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TBODY:case C.TD:case C.TFOOT:case C.TH:case C.THEAD:case C.TR:break;default:sg(e,t)}}function sg(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ab(e,t),e.fosterParentingEnabled=n}function DD(e,t){e.pendingCharacterTokens.push(t)}function ID(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Rm(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)sg(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const BD=new Set([C.CAPTION,C.COL,C.COLGROUP,C.TBODY,C.TD,C.TFOOT,C.TH,C.THEAD,C.TR]);function bde(e,t){const n=t.tagID;BD.has(n)?e.openElements.hasInTableScope(C.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Te.IN_TABLE,dp(e,t)):ni(e,t)}function yde(e,t){const n=t.tagID;switch(n){case C.CAPTION:case C.TABLE:{e.openElements.hasInTableScope(C.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Te.IN_TABLE,n===C.TABLE&&O1(e,t));break}case C.BODY:case C.COL:case C.COLGROUP:case C.HTML:case C.TBODY:case C.TD:case C.TFOOT:case C.TH:case C.THEAD:case C.TR:break;default:sb(e,t)}}function z8(e,t){switch(t.tagID){case C.HTML:{ni(e,t);break}case C.COL:{e._appendElement(t,ct.HTML),t.ackSelfClosing=!0;break}case C.TEMPLATE:{Dl(e,t);break}default:Kx(e,t)}}function vde(e,t){switch(t.tagID){case C.COLGROUP:{e.openElements.currentTagId===C.COLGROUP&&(e.openElements.pop(),e.insertionMode=Te.IN_TABLE);break}case C.TEMPLATE:{Ah(e,t);break}case C.COL:break;default:Kx(e,t)}}function Kx(e,t){e.openElements.currentTagId===C.COLGROUP&&(e.openElements.pop(),e.insertionMode=Te.IN_TABLE,e._processToken(t))}function ib(e,t){switch(t.tagID){case C.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ct.HTML),e.insertionMode=Te.IN_ROW;break}case C.TH:case C.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(ze.TR,C.TR),e.insertionMode=Te.IN_ROW,ob(e,t);break}case C.CAPTION:case C.COL:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Te.IN_TABLE,dp(e,t));break}default:dp(e,t)}}function p6(e,t){const n=t.tagID;switch(t.tagID){case C.TBODY:case C.TFOOT:case C.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Te.IN_TABLE);break}case C.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Te.IN_TABLE,O1(e,t));break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TD:case C.TH:case C.TR:break;default:O1(e,t)}}function ob(e,t){switch(t.tagID){case C.TH:case C.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ct.HTML),e.insertionMode=Te.IN_CELL,e.activeFormattingElements.insertMarker();break}case C.CAPTION:case C.COL:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:case C.TR:{e.openElements.hasInTableScope(C.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Te.IN_TABLE_BODY,ib(e,t));break}default:dp(e,t)}}function FD(e,t){switch(t.tagID){case C.TR:{e.openElements.hasInTableScope(C.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Te.IN_TABLE_BODY);break}case C.TABLE:{e.openElements.hasInTableScope(C.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Te.IN_TABLE_BODY,p6(e,t));break}case C.TBODY:case C.TFOOT:case C.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(C.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Te.IN_TABLE_BODY,p6(e,t));break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TD:case C.TH:break;default:O1(e,t)}}function wde(e,t){const n=t.tagID;BD.has(n)?(e.openElements.hasInTableScope(C.TD)||e.openElements.hasInTableScope(C.TH))&&(e._closeTableCell(),ob(e,t)):ni(e,t)}function Sde(e,t){const n=t.tagID;switch(n){case C.TD:case C.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Te.IN_ROW);break}case C.TABLE:case C.TBODY:case C.TFOOT:case C.THEAD:case C.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),FD(e,t));break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:break;default:sb(e,t)}}function zD(e,t){switch(t.tagID){case C.HTML:{ni(e,t);break}case C.OPTION:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e._insertElement(t,ct.HTML);break}case C.OPTGROUP:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ct.HTML);break}case C.HR:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ct.HTML),t.ackSelfClosing=!0;break}case C.INPUT:case C.KEYGEN:case C.TEXTAREA:case C.SELECT:{e.openElements.hasInSelectScope(C.SELECT)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),t.tagID!==C.SELECT&&e._processStartTag(t));break}case C.SCRIPT:case C.TEMPLATE:{Dl(e,t);break}}}function HD(e,t){switch(t.tagID){case C.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===C.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===C.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop();break}case C.OPTION:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop();break}case C.SELECT:{e.openElements.hasInSelectScope(C.SELECT)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode());break}case C.TEMPLATE:{Ah(e,t);break}}}function Ede(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e._processStartTag(t)):zD(e,t)}function kde(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e.onEndTag(t)):HD(e,t)}function _de(e,t){switch(t.tagID){case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{Dl(e,t);break}case C.CAPTION:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:{e.tmplInsertionModeStack[0]=Te.IN_TABLE,e.insertionMode=Te.IN_TABLE,dp(e,t);break}case C.COL:{e.tmplInsertionModeStack[0]=Te.IN_COLUMN_GROUP,e.insertionMode=Te.IN_COLUMN_GROUP,z8(e,t);break}case C.TR:{e.tmplInsertionModeStack[0]=Te.IN_TABLE_BODY,e.insertionMode=Te.IN_TABLE_BODY,ib(e,t);break}case C.TD:case C.TH:{e.tmplInsertionModeStack[0]=Te.IN_ROW,e.insertionMode=Te.IN_ROW,ob(e,t);break}default:e.tmplInsertionModeStack[0]=Te.IN_BODY,e.insertionMode=Te.IN_BODY,ni(e,t)}}function Tde(e,t){t.tagID===C.TEMPLATE&&Ah(e,t)}function UD(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):F8(e,t)}function Cde(e,t){t.tagID===C.HTML?ni(e,t):Jx(e,t)}function qD(e,t){var n;if(t.tagID===C.HTML){if(e.fragmentContext||(e.insertionMode=Te.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===C.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Jx(e,t)}function Jx(e,t){e.insertionMode=Te.IN_BODY,ab(e,t)}function Nde(e,t){switch(t.tagID){case C.HTML:{ni(e,t);break}case C.FRAMESET:{e._insertElement(t,ct.HTML);break}case C.FRAME:{e._appendElement(t,ct.HTML),t.ackSelfClosing=!0;break}case C.NOFRAMES:{Dl(e,t);break}}}function Ade(e,t){t.tagID===C.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==C.FRAMESET&&(e.insertionMode=Te.AFTER_FRAMESET))}function Lde(e,t){switch(t.tagID){case C.HTML:{ni(e,t);break}case C.NOFRAMES:{Dl(e,t);break}}}function Mde(e,t){t.tagID===C.HTML&&(e.insertionMode=Te.AFTER_AFTER_FRAMESET)}function Rde(e,t){t.tagID===C.HTML?ni(e,t):xx(e,t)}function xx(e,t){e.insertionMode=Te.IN_BODY,ab(e,t)}function Ode(e,t){switch(t.tagID){case C.HTML:{ni(e,t);break}case C.NOFRAMES:{Dl(e,t);break}}}function Pde(e,t){t.chars=la,e._insertCharacters(t)}function jde(e,t){e._insertCharacters(t),e.framesetOk=!1}function VD(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ct.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Dde(e,t){if(Kce(t))VD(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ct.MATHML?CD(t):r===ct.SVG&&(Jce(t),ND(t)),I8(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Ide(e,t){if(t.tagID===C.P||t.tagID===C.BR){VD(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===ct.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}ze.AREA,ze.BASE,ze.BASEFONT,ze.BGSOUND,ze.BR,ze.COL,ze.EMBED,ze.FRAME,ze.HR,ze.IMG,ze.INPUT,ze.KEYGEN,ze.LINK,ze.META,ze.PARAM,ze.SOURCE,ze.TRACK,ze.WBR;const Bde=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Fde=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),hN={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function GD(e,t){const n=Qde(e),r=j8("type",{handlers:{root:zde,element:Hde,text:Ude,comment:WD,doctype:qde,raw:Gde},unknown:$de}),a={parser:n?new cN(hN):cN.getFragmentParser(void 0,hN),handle(o){r(o,a)},stitches:!1,options:t||{}};r(e,a),Op(a,Ic());const s=n?a.parser.document:a.parser.getFragment(),i=Hle(s,{file:a.options.file});return a.stitches&&xh(i,"comment",function(o,c,d){const f=o;if(f.value.stitch&&d&&c!==void 0){const m=d.children;return m[c]=f.value.stitch,c}}),i.type==="root"&&i.children.length===1&&i.children[0].type===e.type?i.children[0]:i}function $D(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function zde(e,t){$D(e.children,t)}function Hde(e,t){Wde(e,t),$D(e.children,t),Yde(e,t)}function Ude(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Fn.CHARACTER,chars:e.value,location:ig(e)};Op(t,Ic(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function qde(e,t){const n={type:Fn.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ig(e)};Op(t,Ic(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Vde(e,t){t.stitches=!0;const n=Xde(e);if("children"in e&&"children"in n){const r=GD({type:"root",children:e.children},t.options);n.children=r.children}WD({type:"comment",value:{stitch:n}},t)}function WD(e,t){const n=e.value,r={type:Fn.COMMENT,data:n,location:ig(e)};Op(t,Ic(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Gde(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,YD(t,Ic(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Bde,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function $de(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Vde(n,t);else{let r="";throw Fde.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Op(e,t){YD(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ua.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function YD(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Wde(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ua.PLAINTEXT)return;Op(t,Ic(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:_c.html;a===_c.html&&n==="svg"&&(a=_c.svg);const s=nce({...e,children:[]},{space:a===_c.svg?"svg":"html"}),i={type:Fn.START_TAG,tagName:n,tagID:Rp(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:ig(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Yde(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&xD.includes(n)||t.parser.tokenizer.state===Ua.PLAINTEXT)return;Op(t,$5(e));const r={type:Fn.END_TAG,tagName:n,tagID:Rp(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ig(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ua.RCDATA||t.parser.tokenizer.state===Ua.RAWTEXT||t.parser.tokenizer.state===Ua.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ua.DATA)}function Qde(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function ig(e){const t=Ic(e)||{line:void 0,column:void 0,offset:void 0},n=$5(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Xde(e){return"children"in e?cp({...e,children:[]}):cp(e)}function Kde(e){return function(t,n){return GD(t,{...e,file:n})}}function Zx(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function Jde(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Zde(e,t,n){const a=Z1((n||{}).ignore||[]),s=e0e(t);let i=-1;for(;++i<s.length;)u8(e,"text",o);function o(d,f){let m=-1,b;for(;++m<f.length;){const g=f[m],v=b?b.children:void 0;if(a(g,v?v.indexOf(g):void 0,b))return;b=g}if(b)return c(d,f)}function c(d,f){const m=f[f.length-1],b=s[i][0],g=s[i][1];let v=0;const T=m.children.indexOf(d);let _=!1,A=[];b.lastIndex=0;let R=b.exec(d.value);for(;R;){const P=R.index,V={index:R.index,input:R.input,stack:[...f,d]};let U=g(...R,V);if(typeof U=="string"&&(U=U.length>0?{type:"text",value:U}:void 0),U===!1?b.lastIndex=P+1:(v!==P&&A.push({type:"text",value:d.value.slice(v,P)}),Array.isArray(U)?A.push(...U):U&&A.push(U),v=P+R[0].length,_=!0),!b.global)break;R=b.exec(d.value)}return _?(v<d.value.length&&A.push({type:"text",value:d.value.slice(v)}
vendor: 10,922 bytes, lines 845-858
845),m.children.splice(T,1,...A)):A=[d],T+A.length}}function e0e(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([t0e(a[0]),n0e(a[1])])}return t}function t0e(e){return typeof e=="string"?new RegExp(Jde(e),"g"):e}function n0e(e){return typeof e=="function"?e:function(){return e}}const uv="phrasing",dv=["autolink","link","image","label"];function r0e(){return{transforms:[u0e],enter:{literalAutolink:s0e,literalAutolinkEmail:hv,literalAutolinkHttp:hv,literalAutolinkWww:hv},exit:{literalAutolink:c0e,literalAutolinkEmail:l0e,literalAutolinkHttp:i0e,literalAutolinkWww:o0e}}}function a0e(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:uv,notInConstruct:dv},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:uv,notInConstruct:dv},{character:":",before:"[ps]",after:"\\/",inConstruct:uv,notInConstruct:dv}]}}function s0e(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function hv(e){this.config.enter.autolinkProtocol.call(this,e)}function i0e(e){this.config.exit.autolinkProtocol.call(this,e)}function o0e(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function l0e(e){this.config.exit.autolinkEmail.call(this,e)}function c0e(e){this.exit(e)}function u0e(e){Zde(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,d0e],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),h0e]],{ignore:["link","linkReference"]})}function d0e(e,t,n,r,a){let s="";if(!QD(a)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!f0e(n)))return!1;const i=p0e(n+r);if(!i[0])return!1;const o={type:"link",title:null,url:s+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[o,{type:"text",value:i[1]}]:o}function h0e(e,t,n,r){return!QD(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function f0e(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function p0e(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=Zx(e,"(");let s=Zx(e,")");for(;r!==-1&&a>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function QD(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||gh(n)||W5(n))&&(!t||n!==47)}XD.peek=E0e;function m0e(){this.buffer()}function g0e(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function x0e(){this.buffer()}function b0e(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function y0e(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Nl(this.sliceSerialize(e)).toLowerCase(),n.label=t}function v0e(e){this.exit(e)}function w0e(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Nl(this.sliceSerialize(e)).toLowerCase(),n.label=t}function S0e(e){this.exit(e)}function E0e(){return"["}function XD(e,t,n,r){const a=n.createTracker(r);let s=a.move("[^");const i=n.enter("footnoteReference"),o=n.enter("reference");return s+=a.move(n.safe(n.associationId(e),{after:"]",before:s})),o(),i(),s+=a.move("]"),s}function k0e(){return{enter:{gfmFootnoteCallString:m0e,gfmFootnoteCall:g0e,gfmFootnoteDefinitionLabelString:x0e,gfmFootnoteDefinition:b0e},exit:{gfmFootnoteCallString:y0e,gfmFootnoteCall:v0e,gfmFootnoteDefinitionLabelString:w0e,gfmFootnoteDefinition:S0e}}}function _0e(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:XD},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,s,i){const o=s.createTracker(i);let c=o.move("[^");const d=s.enter("footnoteDefinition"),f=s.enter("label");return c+=o.move(s.safe(s.associationId(r),{before:c,after:"]"})),f(),c+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),c+=o.move((t?` 846`:" ")+s.indentLines(s.containerFlow(r,o.current()),t?KD:T0e))),d(),c}}function T0e(e,t,n){return t===0?e:KD(e,t,n)}function KD(e,t,n){return(n?"":" ")+e}const C0e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];JD.peek=R0e;function N0e(){return{canContainEols:["delete"],enter:{strikethrough:L0e},exit:{strikethrough:M0e}}}function A0e(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:C0e}],handlers:{delete:JD}}}function L0e(e){this.enter({type:"delete",children:[]},e)}function M0e(e){this.exit(e)}function JD(e,t,n,r){const a=n.createTracker(r),s=n.enter("strikethrough");let i=a.move("~~");return i+=n.containerPhrasing(e,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),s(),i}function R0e(){return"~"}function O0e(e){return e.length}function P0e(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||O0e,s=[],i=[],o=[],c=[];let d=0,f=-1;for(;++f<e.length;){const E=[],T=[];let _=-1;for(e[f].length>d&&(d=e[f].length);++_<e[f].length;){const A=j0e(e[f][_]);if(n.alignDelimiters!==!1){const R=a(A);T[_]=R,(c[_]===void 0||R>c[_])&&(c[_]=R)}E.push(A)}i[f]=E,o[f]=T}let m=-1;if(typeof r=="object"&&"length"in r)for(;++m<d;)s[m]=fN(r[m]);else{const E=fN(r);for(;++m<d;)s[m]=E}m=-1;const b=[],g=[];for(;++m<d;){const E=s[m];let T="",_="";E===99?(T=":",_=":"):E===108?T=":":E===114&&(_=":");let A=n.alignDelimiters===!1?1:Math.max(1,c[m]-T.length-_.length);const R=T+"-".repeat(A)+_;n.alignDelimiters!==!1&&(A=T.length+A+_.length,A>c[m]&&(c[m]=A),g[m]=A),b[m]=R}i.splice(1,0,b),o.splice(1,0,g),f=-1;const v=[];for(;++f<i.length;){const E=i[f],T=o[f];m=-1;const _=[];for(;++m<d;){const A=E[m]||"";let R="",P="";if(n.alignDelimiters!==!1){const V=c[m]-(T[m]||0),U=s[m];U===114?R=" ".repeat(V):U===99?V%2?(R=" ".repeat(V/2+.5),P=" ".repeat(V/2-.5)):(R=" ".repeat(V/2),P=R):P=" ".repeat(V)}n.delimiterStart!==!1&&!m&&_.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&A==="")&&(n.delimiterStart!==!1||m)&&_.push(" "),n.alignDelimiters!==!1&&_.push(R),_.push(A),n.alignDelimiters!==!1&&_.push(P),n.padding!==!1&&_.push(" "),(n.delimiterEnd!==!1||m!==d-1)&&_.push("|")}v.push(n.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return v.join(` 847`)}function j0e(e){return e==null?"":String(e)}function fN(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function D0e(e,t,n,r){const a=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const i=n.indentLines(n.containerFlow(e,s.current()),I0e);return a(),i}function I0e(e,t,n){return">"+(n?"":" ")+e}function B0e(e,t){return pN(e,t.inConstruct,!0)&&!pN(e,t.notInConstruct,!1)}function pN(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function mN(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===` 848`&&B0e(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\ 849`}function ZD(e,t){const n=String(e);let r=n.indexOf(t),a=r,s=0,i=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++s>i&&(i=s):s=1,a=r+t.length,r=n.indexOf(t,a);return i}function F0e(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function z0e(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function H0e(e,t,n,r){const a=z0e(n),s=e.value||"",i=a==="`"?"GraveAccent":"Tilde";if(F0e(e,n)){const m=n.enter("codeIndented"),b=n.indentLines(s,U0e);return m(),b}const o=n.createTracker(r),c=a.repeat(Math.max(ZD(s,a)+1,3)),d=n.enter("codeFenced");let f=o.move(c);if(e.lang){const m=n.enter(`codeFencedLang${i}`);f+=o.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...o.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${i}`);f+=o.move(" "),f+=o.move(n.safe(e.meta,{before:f,after:` 850`,encode:["`"],...o.current()})),m()}return f+=o.move(` 851`),s&&(f+=o.move(s+` 852`)),f+=o.move(c),d(),f}function U0e(e,t,n){return(n?"":" ")+e}function H8(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function q0e(e,t,n,r){const a=H8(n),s=a==='"'?"Quote":"Apostrophe",i=n.enter("definition");let o=n.enter("label");const c=n.createTracker(r);let d=c.move("[");return d+=c.move(n.safe(n.associationId(e),{before:d,after:"]",...c.current()})),d+=c.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(n.safe(e.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(o=n.enter("destinationRaw"),d+=c.move(n.safe(e.url,{before:d,after:e.title?" ":` 853`,...c.current()}))),o(),e.title&&(o=n.enter(`title${s}`),d+=c.move(" "+a),d+=c.move(n.safe(e.title,{before:d,after:a,...c.current()})),d+=c.move(a),o()),i(),d}function V0e(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function P1(e){return"&#x"+e.toString(16).toUpperCase()+";"}function e5(e,t,n){const r=lp(e),a=lp(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}eI.peek=G0e;function eI(e,t,n,r){const a=V0e(n),s=n.enter("emphasis"),i=n.createTracker(r),o=i.move(a);let c=i.move(n.containerPhrasing(e,{after:a,before:o,...i.current()}));const d=c.charCodeAt(0),f=e5(r.before.charCodeAt(r.before.length-1),d,a);f.inside&&(c=P1(d)+c.slice(1));const m=c.charCodeAt(c.length-1),b=e5(r.after.charCodeAt(0),m,a);b.inside&&(c=c.slice(0,-1)+P1(m));const g=i.move(a);return s(),n.attentionEncodeSurroundingInfo={after:b.outside,before:f.outside},o+c+g}function G0e(e,t,n){return n.options.emphasis||"*"}function $0e(e,t){let n=!1;return xh(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,W3}),!!((!e.depth||e.depth<3)&&r8(e)&&(t.options.setext||n))}function W0e(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if($0e(e,n)){const f=n.enter("headingSetext"),m=n.enter("phrasing"),b=n.containerPhrasing(e,{...s.current(),before:` 854`,after:` 855`});return m(),f(),b+` 856`+(a===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(` 857`))+1))}const i="#".repeat(a),o=n.enter("headingAtx"),c=n.enter("phrasing");s.move(i+" ");let d=n.containerPhrasing(e,{before:"# ",after:` 858`,...s.current()});
vendor: 5,301 bytes, line 858
858return/^[\t ]/.test(d)&&(d=P1(d.charCodeAt(0))+d.slice(1)),d=d?i+" "+d:i,n.options.closeAtx&&(d+=" "+i),c(),o(),d}tI.peek=Y0e;function tI(e){return e.value||""}function Y0e(){return"<"}nI.peek=Q0e;function nI(e,t,n,r){const a=H8(n),s=a==='"'?"Quote":"Apostrophe",i=n.enter("image");let o=n.enter("label");const c=n.createTracker(r);let d=c.move("![");return d+=c.move(n.safe(e.alt,{before:d,after:"]",...c.current()})),d+=c.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(n.safe(e.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(o=n.enter("destinationRaw"),d+=c.move(n.safe(e.url,{before:d,after:e.title?" ":")",...c.current()}))),o(),e.title&&(o=n.enter(`title${s}`),d+=c.move(" "+a),d+=c.move(n.safe(e.title,{before:d,after:a,...c.current()})),d+=c.move(a),o()),d+=c.move(")"),i(),d}function Q0e(){return"!"}rI.peek=X0e;function rI(e,t,n,r){const a=e.referenceType,s=n.enter("imageReference");let i=n.enter("label");const o=n.createTracker(r);let c=o.move("![");const d=n.safe(e.alt,{before:c,after:"]",...o.current()});c+=o.move(d+"]["),i();const f=n.stack;n.stack=[],i=n.enter("reference");const m=n.safe(n.associationId(e),{before:c,after:"]",...o.current()});return i(),n.stack=f,s(),a==="full"||!d||d!==m?c+=o.move(m+"]"):a==="shortcut"?c=c.slice(0,-1):c+=o.move("]"),c}function X0e(){return"!"}aI.peek=K0e;function aI(e,t,n){let r=e.value||"",a="`",s=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const i=n.unsafe[s],o=n.compilePattern(i);let c;if(i.atBreak)for(;c=o.exec(r);){let d=c.index;r.charCodeAt(d)===10&&r.charCodeAt(d-1)===13&&d--,r=r.slice(0,d)+" "+r.slice(c.index+1)}}return a+r+a}function K0e(){return"`"}function sI(e,t){const n=r8(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}iI.peek=J0e;function iI(e,t,n,r){const a=H8(n),s=a==='"'?"Quote":"Apostrophe",i=n.createTracker(r);let o,c;if(sI(e,n)){const f=n.stack;n.stack=[],o=n.enter("autolink");let m=i.move("<");return m+=i.move(n.containerPhrasing(e,{before:m,after:">",...i.current()})),m+=i.move(">"),o(),n.stack=f,m}o=n.enter("link"),c=n.enter("label");let d=i.move("[");return d+=i.move(n.containerPhrasing(e,{before:d,after:"](",...i.current()})),d+=i.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=i.move("<"),d+=i.move(n.safe(e.url,{before:d,after:">",...i.current()})),d+=i.move(">")):(c=n.enter("destinationRaw"),d+=i.move(n.safe(e.url,{before:d,after:e.title?" ":")",...i.current()}))),c(),e.title&&(c=n.enter(`title${s}`),d+=i.move(" "+a),d+=i.move(n.safe(e.title,{before:d,after:a,...i.current()})),d+=i.move(a),c()),d+=i.move(")"),o(),d}function J0e(e,t,n){return sI(e,n)?"<":"["}oI.peek=Z0e;function oI(e,t,n,r){const a=e.referenceType,s=n.enter("linkReference");let i=n.enter("label");const o=n.createTracker(r);let c=o.move("[");const d=n.containerPhrasing(e,{before:c,after:"]",...o.current()});c+=o.move(d+"]["),i();const f=n.stack;n.stack=[],i=n.enter("reference");const m=n.safe(n.associationId(e),{before:c,after:"]",...o.current()});return i(),n.stack=f,s(),a==="full"||!d||d!==m?c+=o.move(m+"]"):a==="shortcut"?c=c.slice(0,-1):c+=o.move("]"),c}function Z0e(){return"["}function U8(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ehe(e){const t=U8(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function the(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function lI(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function nhe(e,t,n,r){const a=n.enter("list"),s=n.bulletCurrent;let i=e.ordered?the(n):U8(n);const o=e.ordered?i==="."?")":".":ehe(n);let c=t&&n.bulletLastUsed?i===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((i==="*"||i==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),lI(n)===i&&f){let m=-1;for(;++m<e.children.length;){const b=e.children[m];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(i=o),n.bulletCurrent=i;const d=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=s,a(),d}function rhe(e){const t=e.options.listItemIndent||"one";
vendor: 5,740 bytes, lines 858-860
858if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function ahe(e,t,n,r){const a=rhe(n);let s=n.bulletCurrent||U8(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let i=s.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);const o=n.createTracker(r);o.move(s+" ".repeat(i-s.length)),o.shift(i);const c=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,o.current()),f);return c(),d;function f(m,b,g){return b?(g?"":" ".repeat(i))+m:(g?s:s+" ".repeat(i-s.length))+m}}function she(e,t,n,r){const a=n.enter("paragraph"),s=n.enter("phrasing"),i=n.containerPhrasing(e,r);return s(),a(),i}const ihe=Z1(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ohe(e,t,n,r){return(e.children.some(function(i){return ihe(i)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function lhe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}cI.peek=che;function cI(e,t,n,r){const a=lhe(n),s=n.enter("strong"),i=n.createTracker(r),o=i.move(a+a);let c=i.move(n.containerPhrasing(e,{after:a,before:o,...i.current()}));const d=c.charCodeAt(0),f=e5(r.before.charCodeAt(r.before.length-1),d,a);f.inside&&(c=P1(d)+c.slice(1));const m=c.charCodeAt(c.length-1),b=e5(r.after.charCodeAt(0),m,a);b.inside&&(c=c.slice(0,-1)+P1(m));const g=i.move(a+a);return s(),n.attentionEncodeSurroundingInfo={after:b.outside,before:f.outside},o+c+g}function che(e,t,n){return n.options.strong||"*"}function uhe(e,t,n,r){return n.safe(e.value,r)}function dhe(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function hhe(e,t,n){const r=(lI(n)+(n.options.ruleSpaces?" ":"")).repeat(dhe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const uI={blockquote:D0e,break:mN,code:H0e,definition:q0e,emphasis:eI,hardBreak:mN,heading:W0e,html:tI,image:nI,imageReference:rI,inlineCode:aI,link:iI,linkReference:oI,list:nhe,listItem:ahe,paragraph:she,root:ohe,strong:cI,text:uhe,thematicBreak:hhe};function fhe(){return{enter:{table:phe,tableData:gN,tableHeader:gN,tableRow:ghe},exit:{codeText:xhe,table:mhe,tableData:fv,tableHeader:fv,tableRow:fv}}}function phe(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function mhe(e){this.exit(e),this.data.inTable=void 0}function ghe(e){this.enter({type:"tableRow",children:[]},e)}function fv(e){this.exit(e)}function gN(e){this.enter({type:"tableCell",children:[]},e)}function xhe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bhe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function bhe(e,t){return t==="|"?t:e}function yhe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 859`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:i,tableCell:c,tableRow:o}};function i(g,v,E,T){return d(f(g,E,T),g.align)}function o(g,v,E,T){const _=m(g,E,T),A=d([_]);return A.slice(0,A.indexOf(` 860`))}function c(g,v,E,T){const _=E.enter("tableCell"),A=E.enter("phrasing"),R=E.containerPhrasing(g,{...T,before:s,after:s});return A(),_(),R}function d(g,v){return P0e(g,{align:v,alignDelimiters:r,padding:n,stringLength:a})}function f(g,v,E){const T=g.children;let _=-1;const A=[],R=v.enter("table");for(;++_<T.length;)A[_]=m(T[_],v,E);return R(),A}function m(g,v,E){const T=g.children;let _=-1;const A=[],R=v.enter("tableRow");for(;++_<T.length;)A[_]=c(T[_],g,v,E);return R(),A}function b(g,v,E){let T=uI.inlineCode(g,v,E);return E.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function vhe(){return{exit:{taskListCheckValueChecked:xN,taskListCheckValueUnchecked:xN,paragraph:She}}}function whe(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ehe}}}function xN(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function She(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let s=-1,i;for(;++s<a.length;){const o=a[s];if(o.type==="paragraph"){i=o;break}}i===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Ehe(e,t,n,r){const a=e.children[0],s=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);s&&o.move(i);let c=uI.listItem(e,t,n,{...r,...o.current()});return s&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),c;function d(f){return f+i}}function khe(){return[r0e(),k0e(),N0e(),fhe(),vhe()]}function _he(e){return{extensions:[a0e(),_0e(e),A0e(),yhe(e),whe()]}}const The={tokenize:Rhe,partial:!0},dI={tokenize:Ohe,partial:!0},hI={tokenize:Phe,partial:!0},fI={tokenize:jhe,partial:!0}
vendor: 8,738 bytes, line 860
860,Che={tokenize:Dhe,partial:!0},pI={name:"wwwAutolink",tokenize:Lhe,previous:gI},mI={name:"protocolAutolink",tokenize:Mhe,previous:xI},Qu={name:"emailAutolink",tokenize:Ahe,previous:bI},Hc={};function Nhe(){return{text:Hc}}let G0=48;for(;G0<123;)Hc[G0]=Qu,G0++,G0===58?G0=65:G0===91&&(G0=97);Hc[43]=Qu;Hc[45]=Qu;Hc[46]=Qu;Hc[95]=Qu;Hc[72]=[Qu,mI];Hc[104]=[Qu,mI];Hc[87]=[Qu,pI];Hc[119]=[Qu,pI];function Ahe(e,t,n){const r=this;let a,s;return i;function i(m){return!m6(m)||!bI.call(r,r.previous)||q8(r.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(m))}function o(m){return m6(m)?(e.consume(m),o):m===64?(e.consume(m),c):n(m)}function c(m){return m===46?e.check(Che,f,d)(m):m===45||m===95||Js(m)?(s=!0,e.consume(m),c):f(m)}function d(m){return e.consume(m),a=!0,c}function f(m){return s&&a&&fi(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function Lhe(e,t,n){const r=this;return a;function a(i){return i!==87&&i!==119||!gI.call(r,r.previous)||q8(r.events)?n(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(The,e.attempt(dI,e.attempt(hI,s),n),n)(i))}function s(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function Mhe(e,t,n){const r=this;let a="",s=!1;return i;function i(m){return(m===72||m===104)&&xI.call(r,r.previous)&&!q8(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(m),e.consume(m),o):n(m)}function o(m){if(fi(m)&&a.length<5)return a+=String.fromCodePoint(m),e.consume(m),o;if(m===58){const b=a.toLowerCase();if(b==="http"||b==="https")return e.consume(m),c}return n(m)}function c(m){return m===47?(e.consume(m),s?d:(s=!0,c)):n(m)}function d(m){return m===null||Ux(m)||zr(m)||gh(m)||W5(m)?n(m):e.attempt(dI,e.attempt(hI,f),n)(m)}function f(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function Rhe(e,t,n){let r=0;return a;function a(i){return(i===87||i===119)&&r<3?(r++,e.consume(i),a):i===46&&r===3?(e.consume(i),s):n(i)}function s(i){return i===null?n(i):t(i)}}function Ohe(e,t,n){let r,a,s;return i;function i(d){return d===46||d===95?e.check(fI,c,o)(d):d===null||zr(d)||gh(d)||d!==45&&W5(d)?c(d):(s=!0,e.consume(d),i)}function o(d){return d===95?r=!0:(a=r,r=void 0),e.consume(d),i}function c(d){return a||r||!s?n(d):t(d)}}function Phe(e,t){let n=0,r=0;return a;function a(i){return i===40?(n++,e.consume(i),a):i===41&&r<n?s(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(fI,t,s)(i):i===null||zr(i)||gh(i)?t(i):(e.consume(i),a)}function s(i){return i===41&&r++,e.consume(i),a}}function jhe(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),s):o===93?(e.consume(o),a):o===60||o===null||zr(o)||gh(o)?t(o):n(o)}function a(o){return o===null||o===40||o===91||zr(o)||gh(o)?t(o):r(o)}function s(o){return fi(o)?i(o):n(o)}function i(o){return o===59?(e.consume(o),r):fi(o)?(e.consume(o),i):n(o)}}function Dhe(e,t,n){return r;function r(s){return e.consume(s),a}function a(s){return Js(s)?n(s):t(s)}}function gI(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||zr(e)}function xI(e){return!fi(e)}function bI(e){return!(e===47||m6(e))}function m6(e){return e===43||e===45||e===46||e===95||Js(e)}function q8(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Ihe={tokenize:Ghe,partial:!0};function Bhe(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Uhe,continuation:{tokenize:qhe},exit:Vhe}},text:{91:{name:"gfmFootnoteCall",tokenize:Hhe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Fhe,resolveTo:zhe}}}}function Fhe(e,t,n){const r=this;let a=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const c=r.events[a][1];if(c.type==="labelImage"){i=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return o;function o(c){if(!i||!i._balanced)return n(c);const d=Nl(r.sliceSerialize({start:i.end,end:r.now()}));return d.codePointAt(0)!==94||!s.includes(d.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function zhe(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",s,t],["enter",i,t],["exit",i,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function Hhe(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,i;return o;function o(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),c}function c(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(m){if(s>999||m===93&&!i||m===null||m===91||zr(m))return n(m);if(m===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return a.includes(Nl(r.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return zr(m)||(i=!0),s++,e.consume(m),m===92?f:d}function f(m){return m===91||m===92||m===93?(e.consume(m),s++,d):d(m)}}function Uhe(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,i=0,o;return c;function c(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(v)}function f(v){if(i>999||v===93&&!o||v===null||v===91||zr(v))return n(v);if(v===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return s=Nl(r.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return zr(v)||(o=!0),i++,e.consume(v),v===92?m:f}function m(v){return v===91||v===92||v===93?(e.consume(v),i++,f):f(v)}function b(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),a.includes(s)||a.push(s),zn(e,g,"gfmFootnoteDefinitionWhitespace")):n(v)}function g(v){return t(v)}}function qhe(e,t,n){return e.check(J1,t,e.attempt(Ihe,t,n))}function Vhe(e){e.exit("gfmFootnoteDefinition")}function Ghe(e,t,n){const r=this;return zn(e,a,"gfmFootnoteDefinitionIndent",5);function a(s){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(s):n(s)}}function $he(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(i,o){let c=-1;for(;++c<i.length;)if(i[c][0]==="enter"&&i[c][1].type==="strikethroughSequenceTemporary"&&i[c][1]._close){let d=c;for(;d--;)if(i[d][0]==="exit"&&i[d][1].type==="strikethroughSequenceTemporary"&&i[d][1]._open&&i[c][1].end.offset-i[c][1].start.offset===i[d][1].end.offset-i[d][1].start.offset){i[c][1].type="strikethroughSequence",i[d][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},i[d][1].start),end:Object.assign({},i[c][1].end)},m={type:"strikethroughText",start:Object.assign({},i[d][1].end),end:Object.assign({},i[c][1].start)},b=[["enter",f,o],["enter",i[d][1],o],["exit",i[d][1],o],["enter",m,o]],g=o.parser.constructs.insideSpan.null;g&&So(b,b.length,0,Y5(g,i.slice(d+1,c),o)),So(b,b.length,0,[["exit",m,o],["enter",i[
vendor: 4,297 bytes, line 860
860c][1],o],["exit",i[c][1],o],["exit",f,o]]),So(i,d-1,c-d+3,b),c=d+b.length-2;break}}for(c=-1;++c<i.length;)i[c][1].type==="strikethroughSequenceTemporary"&&(i[c][1].type="data");return i}function s(i,o,c){const d=this.previous,f=this.events;let m=0;return b;function b(v){return d===126&&f[f.length-1][1].type!=="characterEscape"?c(v):(i.enter("strikethroughSequenceTemporary"),g(v))}function g(v){const E=lp(d);if(v===126)return m>1?c(v):(i.consume(v),m++,g);if(m<2&&!n)return c(v);const T=i.exit("strikethroughSequenceTemporary"),_=lp(v);return T._open=!_||_===2&&!!E,T._close=!E||E===2&&!!_,o(v)}}}class Whe{constructor(){this.map=[]}add(t,n,r){Yhe(this,t,n,r)}consume(t){if(this.map.sort(function(s,i){return s[0]-i[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const s of a)t.push(s);a=r.pop()}this.map.length=0}}function Yhe(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function Qhe(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Xhe(){return{flow:{null:{name:"table",tokenize:Khe,resolveAll:Jhe}}}}function Khe(e,t,n){const r=this;let a=0,s=0,i;return o;function o(W){let z=r.events.length-1;for(;z>-1;){const J=r.events[z][1].type;if(J==="lineEnding"||J==="linePrefix")z--;else break}const $=z>-1?r.events[z][1].type:null,ae=$==="tableHead"||$==="tableRow"?U:c;return ae===U&&r.parser.lazy[r.now().line]?n(W):ae(W)}function c(W){return e.enter("tableHead"),e.enter("tableRow"),d(W)}function d(W){return W===124||(i=!0,s+=1),f(W)}function f(W){return W===null?n(W):Zt(W)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(W),e.exit("lineEnding"),g):n(W):Gn(W)?zn(e,f,"whitespace")(W):(s+=1,i&&(i=!1,a+=1),W===124?(e.enter("tableCellDivider"),e.consume(W),e.exit("tableCellDivider"),i=!0,f):(e.enter("data"),m(W)))}function m(W){return W===null||W===124||zr(W)?(e.exit("data"),f(W)):(e.consume(W),W===92?b:m)}function b(W){return W===92||W===124?(e.consume(W),m):m(W)}function g(W){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(W):(e.enter("tableDelimiterRow"),i=!1,Gn(W)?zn(e,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):v(W))}function v(W){return W===45||W===58?T(W):W===124?(i=!0,e.enter("tableCellDivider"),e.consume(W),e.exit("tableCellDivider"),E):V(W)}function E(W){return Gn(W)?zn(e,T,"whitespace")(W):T(W)}function T(W){return W===58?(s+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(W),e.exit("tableDelimiterMarker"),_):W===45?(s+=1,_(W)):W===null||Zt(W)?P(W):V(W)}function _(W){return W===45?(e.enter("tableDelimiterFiller"),A(W)):V(W)}function A(W){return W===45?(e.consume(W),A):W===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(W),e.exit("tableDelimiterMarker"),R):(e.exit("tableDelimiterFiller"),R(W))}function R(W){return Gn(W)?zn(e,P,"whitespace")(W):P(W)}function P(W){return W===124?v(W):W===null||Zt(W)?!i||a!==s?V(W):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(W)):V(W)}function V(W){return n(W)}function U(W){return e.enter("tableRow"),D(W)}function D(W){return W===124?(e.enter("tableCellDivider"),e.consume(W),e.exit("tableCellDivider"),D):W===null||Zt(W)?(e.exit("tableRow"),t(W)):Gn(W)?zn(e,D,"whitespace")(W):(e.enter("data"),H(W))}function H(W){return W===null||W===124||zr(W)?(e.exit("data"),D(W)):(e.consume(W),W===92?q:H)}function q(W){return W===92||W===124?(e.consume(W),H):H(W)}}function Jhe(e,t){let n=-1,r=!0,a=0,s=[0,0,0,0],i=[0,0,0,0],o=!1,c=0,d,f,m;const b=new Whe;for(;++n<e.length;){const g=e[n],v=g[1];g[0]==="enter"?v.type==="tableHead"?(o=!1,c!==0&&(bN(b,t,c,d,f),f=void 0,c=0),d={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)}
vendor: 14,011 bytes, lines 860-899
860,b.add(n,0,[["enter",d,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(r=!0,m=void 0,s=[0,0,0,0],i=[0,n+1,0,0],o&&(o=!1,f={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},b.add(n,0,[["enter",f,t]])),a=v.type==="tableDelimiterRow"?2:f?3:1):a&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(r=!1,i[2]===0&&(s[1]!==0&&(i[0]=i[1],m=B2(b,t,s,a,void 0,m),s=[0,0,0,0]),i[2]=n)):v.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(i[0]=i[1],m=B2(b,t,s,a,void 0,m)),s=i,i=[s[1],n,0,0])):v.type==="tableHead"?(o=!0,c=n):v.type==="tableRow"||v.type==="tableDelimiterRow"?(c=n,s[1]!==0?(i[0]=i[1],m=B2(b,t,s,a,n,m)):i[1]!==0&&(m=B2(b,t,i,a,n,m)),a=0):a&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(i[3]=n)}for(c!==0&&bN(b,t,c,d,f),b.consume(t.events),n=-1;++n<t.events.length;){const g=t.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=Qhe(t.events,n))}return e}function B2(e,t,n,r,a,s){const i=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(s.end=Object.assign({},Mf(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const c=Mf(t.events,n[1]);if(s={type:i,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const d=Mf(t.events,n[2]),f=Mf(t.events,n[3]),m={type:o,start:Object.assign({},d),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",m,t]]),r!==2){const b=t.events[n[2]],g=t.events[n[3]];if(b[1].end=Object.assign({},g[1].end),b[1].type="chunkText",b[1].contentType="text",n[3]>n[2]+1){const v=n[2]+1,E=n[3]-n[2]-1;e.add(v,E,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return a!==void 0&&(s.end=Object.assign({},Mf(t.events,a)),e.add(a,0,[["exit",s,t]]),s=void 0),s}function bN(e,t,n,r,a){const s=[],i=Mf(t.events,n);a&&(a.end=Object.assign({},i),s.push(["exit",a,t])),r.end=Object.assign({},i),s.push(["exit",r,t]),e.add(n+1,0,s)}function Mf(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Zhe={name:"tasklistCheck",tokenize:tfe};function efe(){return{text:{91:Zhe}}}function tfe(e,t,n){const r=this;return a;function a(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),s)}function s(c){return zr(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),i):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),i):n(c)}function i(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(c)}function o(c){return Zt(c)?t(c):Gn(c)?e.check({tokenize:nfe},t,n)(c):n(c)}}function nfe(e,t,n){return zn(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function rfe(e){return NP([Nhe(),Bhe(),$he(e),Xhe(),efe()])}const afe={};function sfe(e){const t=this,n=e||afe,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(rfe(n)),s.push(khe()),i.push(_he(n))}function ife(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:s},exit:{mathFlow:a,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:i,mathTextData:o}};function e(c){const d={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[d]}},c)}function t(){this.buffer()}function n(){const c=this.resume(),d=this.stack[this.stack.length-1];d.type,d.meta=c}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(c){const d=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),f=this.stack[this.stack.length-1];f.type,this.exit(c),f.value=d;const m=f.data.hChildren[0];m.type,m.tagName,m.children.push({type:"text",value:d}),this.data.mathFlowInside=void 0}function s(c){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},c),this.buffer()}function i(c){const d=this.resume(),f=this.stack[this.stack.length-1];f.type,this.exit(c),f.value=d,f.data.hChildren.push({type:"text",value:d})}function o(c){this.config.enter.data.call(this,c),this.config.exit.data.call(this,c)}}function ofe(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` 861`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(s,i,o,c){const d=s.value||"",f=o.createTracker(c),m="$".repeat(Math.max(ZD(d,"$")+1,2)),b=o.enter("mathFlow");let g=f.move(m);if(s.meta){const v=o.enter("mathFlowMeta");g+=f.move(o.safe(s.meta,{after:` 862`,before:g,encode:["$"],...f.current()})),v()}return g+=f.move(` 863`),d&&(g+=f.move(d+` 864`)),g+=f.move(m),b(),g}function r(s,i,o){let c=s.value||"",d=1;for(t||d++;new RegExp("(^|[^$])"+"\\$".repeat(d)+"([^$]|$)").test(c);)d++;const f="$".repeat(d);/[^ \r\n]/.test(c)&&(/^[ \r\n]/.test(c)&&/[ \r\n]$/.test(c)||/^\$|\$$/.test(c))&&(c=" "+c+" ");let m=-1;for(;++m<o.unsafe.length;){const b=o.unsafe[m];if(!b.atBreak)continue;const g=o.compilePattern(b);let v;for(;v=g.exec(c);){let E=v.index;c.codePointAt(E)===10&&c.codePointAt(E-1)===13&&E--,c=c.slice(0,E)+" "+c.slice(v.index+1)}}return f+c+f}function a(){return"$"}}const lfe={tokenize:cfe,concrete:!0,name:"mathFlow"},yN={tokenize:ufe,partial:!0};function cfe(e,t,n){const r=this,a=r.events[r.events.length-1],s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let i=0;return o;function o(A){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),c(A)}function c(A){return A===36?(e.consume(A),i++,c):i<2?n(A):(e.exit("mathFlowFenceSequence"),zn(e,d,"whitespace")(A))}function d(A){return A===null||Zt(A)?m(A):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===null||Zt(A)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),m(A)):A===36?n(A):(e.consume(A),f)}function m(A){return e.exit("mathFlowFence"),r.interrupt?t(A):e.attempt(yN,b,T)(A)}function b(A){return e.attempt({tokenize:_,partial:!0},T,g)(A)}function g(A){return(s?zn(e,v,"linePrefix",s+1):v)(A)}function v(A){return A===null?T(A):Zt(A)?e.attempt(yN,b,T)(A):(e.enter("mathFlowValue"),E(A))}function E(A){return A===null||Zt(A)?(e.exit("mathFlowValue"),v(A)):(e.consume(A),E)}function T(A){return e.exit("mathFlow"),t(A)}function _(A,R,P){let V=0;return zn(A,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function U(q){return A.enter("mathFlowFence"),A.enter("mathFlowFenceSequence"),D(q)}function D(q){return q===36?(V++,A.consume(q),D):V<i?P(q):(A.exit("mathFlowFenceSequence"),zn(A,H,"whitespace")(q))}function H(q){return q===null||Zt(q)?(A.exit("mathFlowFence"),R(q)):P(q)}}}function ufe(e,t,n){const r=this;return a;function a(i){return i===null?t(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),s)}function s(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}function dfe(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:hfe,previous:ffe,name:"mathText"};function r(a,s,i){let o=0,c,d;return f;function f(E){return a.enter("mathText"),a.enter("mathTextSequence"),m(E)}function m(E){return E===36?(a.consume(E),o++,m):o<2&&!n?i(E):(a.exit("mathTextSequence"),b(E))}function b(E){return E===null?i(E):E===36?(d=a.enter("mathTextSequence"),c=0,v(E)):E===32?(a.enter("space"),a.consume(E),a.exit("space"),b):Zt(E)?(a.enter("lineEnding"),a.consume(E),a.exit("lineEnding"),b):(a.enter("mathTextData"),g(E))}function g(E){return E===null||E===32||E===36||Zt(E)?(a.exit("mathTextData"),b(E)):(a.consume(E),g)}function v(E){return E===36?(a.consume(E),c++,v):c===o?(a.exit("mathTextSequence"),a.exit("mathText"),s(E)):(d.type="mathTextData",g(E))}}}function hfe(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="mathTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function ffe(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function pfe(e){return{flow:{36:lfe},text:{36:dfe(e)}}}const mfe={};function gfe(e){const t=this,n=e||mfe,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(pfe(n)),s.push(ife()),i.push(ofe(n))}function xfe({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500"}){const i=t.length&&!t.every(c=>c==="*"),o=n.length&&!n.every(c=>c==="*");if(!e&&(i||o))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return c=>{const d=vfe(e,t,n,r,a,s);xh(c,d)}}function vN(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}return null}}function bfe(e){return typeof e!="string"?!1:e.startsWith("/")}const yfe=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:"]);function wN(e,t,n,r=!1,a=!1){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!a)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return a&&r&&e.startsWith("data:image/")?e:null;const s=vN(e,n);if(!s||!yfe.has(s.protocol))return null;if(s.protocol==="mailto:")return s.href;const i=bfe(e);return s&&t.some(o=>{const c=vN(o,n);return!c||c.origin!==s.origin?!1:s.href.startsWith(c.href)})?i?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:i?s.pathname+s.search+s.hash:s.href:null}const pv=Symbol("node-seen"),vfe=(e,t,n,r,a,s)=>{const i=(o,c,d)=>{if(o.type!=="element"||o[pv])return Fm;if(o.tagName==="a"){const f=wN(o.properties.href,t,e,!1,!1);return f===null?(o[pv]=!0,xh(o,i),d&&typeof c=="number"&&(d.children[c]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(o.properties.href),class:s},children:[...o.children,{type:"text",value:" [blocked]"}]}),Vx):(o.properties.href=f,o.properties.target="_blank",o.properties.rel="noopener noreferrer",Fm)}if(o.tagName==="img"){const f=wN(o.properties.src,n,e,r,!0);return f===null?(o[pv]=!0,xh(o,i),d&&typeof c=="number"&&(d.children[c]={type:"element",tagName:"span",properties:{class:a},children:[{type:"text",value:"[Image blocked: "+String(o.properties.alt||"No description")+"]"}]}),Vx):(o.properties.src=f,Fm)}return Fm};return i};/** 865 * @license lucide-react v0.542.0 - ISC 866 * 867 * This source code is licensed under the ISC license. 868 * See the LICENSE file in the root directory of this source tree. 869 */const wfe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sfe=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),SN=e=>{const t=Sfe(e);return t.charAt(0).toUpperCase()+t.slice(1)},yI=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Efe=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** 870 * @license lucide-react v0.542.0 - ISC 871 * 872 * This source code is licensed under the ISC license. 873 * See the LICENSE file in the root directory of this source tree. 874 */var kfe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 875 * @license lucide-react v0.542.0 - ISC 876 * 877 * This source code is licensed under the ISC license. 878 * See the LICENSE file in the root directory of this source tree. 879 */const _fe=G.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:i,...o},c)=>G.createElement("svg",{ref:c,...kfe,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:yI("lucide",a),...!s&&!Efe(o)&&{"aria-hidden":"true"},...o},[...i.map(([d,f])=>G.createElement(d,f)),...Array.isArray(s)?s:[s]]));/** 880 * @license lucide-react v0.542.0 - ISC 881 * 882 * This source code is licensed under the ISC license. 883 * See the LICENSE file in the root directory of this source tree. 884 */const V8=(e,t)=>{const n=G.forwardRef(({className:r,...a},s)=>G.createElement(_fe,{ref:s,iconNode:t,className:yI(`lucide-${wfe(SN(e))}`,`lucide-${e}`,r),...a}));return n.displayName=SN(e),n};/** 885 * @license lucide-react v0.542.0 - ISC 886 * 887 * This source code is licensed under the ISC license. 888 * See the LICENSE file in the root directory of this source tree. 889 */const Tfe=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],vI=V8("check",Tfe);/** 890 * @license lucide-react v0.542.0 - ISC 891 * 892 * This source code is licensed under the ISC license. 893 * See the LICENSE file in the root directory of this source tree. 894 */const Cfe=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],wI=V8("copy",Cfe);/** 895 * @license lucide-react v0.542.0 - ISC 896 * 897 * This source code is licensed under the ISC license. 898 * See the LICENSE file in the root directory of this source tree. 899 */const Nfe=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],G8=V8("download",Nfe);
vendor: 44,321 bytes, lines 899-901
899let Ka=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Afe(e){return $8(e)}function $8(e){return Array.isArray(e)?Lfe(e):e instanceof RegExp?e:typeof e=="object"?Mfe(e):e}function Lfe(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=$8(e[n]);return t}function Mfe(e){let t={};for(let n in e)t[n]=$8(e[n]);return t}function SI(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function EI(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?EI(e.substring(0,e.length-1)):e.substr(~t+1)}var mv=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,F2=class{static hasCaptures(e){return e===null?!1:(mv.lastIndex=0,mv.test(e))}static replaceCaptures(e,t,n){return e.replace(mv,(r,a,s,i)=>{let o=n[parseInt(a||s,10)];if(o){let c=t.substring(o.start,o.end);for(;c[0]===".";)c=c.substring(1);switch(i){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return r})}};function kI(e,t){return e<t?-1:e>t?1:0}function _I(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let s=kI(e[a],t[a]);if(s!==0)return s}return 0}return n-r}function EN(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function TI(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var CI=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t5=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Pfe(e),t)}static createFromParsedTheme(e,t){return Dfe(e,t)}_cachedMatchRoot=new CI(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(a=>Rfe(e.parent,a.parentScopes));return r?new NI(r.fontStyle,r.foreground,r.background):null}},gv=class bx{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new bx(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new bx(n,t[r]);return n}push(t){return new bx(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function Rfe(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!Ofe(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Ofe(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var NI=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Pfe(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,s=t.length;a<s;a++){let i=t[a];if(!i.settings)continue;let o;if(typeof i.scope=="string"){let m=i.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),o=m.split(",")}else Array.isArray(i.scope)?o=i.scope:o=[""];let c=-1;if(typeof i.settings.fontStyle=="string"){c=0;let m=i.settings.fontStyle.split(" ");for(let b=0,g=m.length;b<g;b++)switch(m[b]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let d=null;typeof i.settings.foreground=="string"&&EN(i.settings.foreground)&&(d=i.settings.foreground);let f=null;typeof i.settings.background=="string"&&EN(i.settings.background)&&(f=i.settings.background);for(let m=0,b=o.length;m<b;m++){let v=o[m].trim().split(" "),E=v[v.length-1],T=null;v.length>1&&(T=v.slice(0,v.length-1),T.reverse()),n[r++]=new jfe(E,T,a,c,d,f)}}return n}var jfe=class{constructor(e,t,n,r,a,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=s}},Xs=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Xs||{});function Dfe(e,t){e.sort((c,d)=>{let f=kI(c.scope,d.scope);return f!==0||(f=_I(c.parentScopes,d.parentScopes),f!==0)?f:c.index-d.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let c=e.shift();c.fontStyle!==-1&&(n=c.fontStyle),c.foreground!==null&&(r=c.foreground),c.background!==null&&(a=c.background)}let s=new Ife(t),i=new NI(n,s.getId(r),s.getId(a)),o=new Ffe(new g6(0,null,-1,0,0),[]);for(let c=0,d=e.length;c<d;c++){let f=e[c];o.insert(0,f.scope,f.parentScopes,f.fontStyle,s.getId(f.foreground),s.getId(f.background))}return new t5(s,i,o)}var Ife=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Bfe=Object.freeze([]),g6=class AI{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,s){this.scopeDepth=t,this.parentScopes=n||Bfe,this.fontStyle=r,this.foreground=a,this.background=s}clone(){return new AI(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},Ffe=class x6{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const s=n.parentScopes[a].length-t.parentScopes[r].length;if(s!==0)return s;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,s;if(r===-1?(a=t,s=""):(a=t.substring(0,r),s=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(x6._cmpBySpecificity),n}insert(t,n,r,a,s,i){if(n===""){this._doInsertHere(t,r,a,s,i);return}let o=n.indexOf("."),c,d;o===-1?(c=n,d=""):(c=n.substring(0,o),d=n.substring(o+1));let f;this._children.hasOwnProperty(c)?f=this._children[c]:(f=new x6(this._mainRule.clone(),g6.cloneArr(this._rulesWithParentScopes)),this._children[c]=f),f.insert(t+1,d,r,a,s,i)}_doInsertHere(t,n,r,a,s){if(n===null){this._mainRule.acceptOverwrite(t,r,a,s);return}for(let i=0,o=this._rulesWithParentScopes.length;i<o;i++){let c=this._rulesWithParentScopes[i];if(_I(c.parentScopes,n)===0){c.acceptOverwrite(t,r,a,s);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new g6(t,n,r,a,s))}},hp=class Bo{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=Bo.getLanguageId(t),r=Bo.getTokenType(t),a=Bo.getFontStyle(t),s=Bo.getForeground(t),i=Bo.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:s,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,s,i,o){let c=Bo.getLanguageId(t),d=Bo.getTokenType(t),f=Bo.containsBalancedBrackets(t)?1:0,m=Bo.getFontStyle(t),b=Bo.getForeground(t),g=Bo.getBackground(t);return n!==0&&(c=n),r!==8&&(d=r),a!==null&&(f=a?1:0),s!==-1&&(m=s),i!==0&&(b=i),o!==0&&(g=o),(c<<0|d<<8|f<<10|m<<11|b<<15|g<<24)>>>0}};function n5(e,t){const n=[],r=zfe(e);let a=r.next();for(;a!==null;){let c=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let d=i();if(n.push({matcher:d,priority:c}),a!==",")break;a=r.next()}return n;function s(){if(a==="-"){a=r.next();const c=s();return d=>!!c&&!c(d)}if(a==="("){a=r.next();const c=o();return a===")"&&(a=r.next()),c}if(kN(a)){const c=[];do c.push(a),a=r.next();while(kN(a));return d=>t(c,d)}return null}function i(){const c=[];let d=s();for(;d;)c.push(d),d=s();return f=>c.every(m=>m(f))}function o(){const c=[];let d=i();for(;d&&(c.push(d),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");d=i()}return f=>c.some(m=>m(f))}}function kN(e){return!!e&&!!e.match(/[\w\.:]+/)}function zfe(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function LI(e){typeof e.dispose=="function"&&e.dispose()}var j1=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Hfe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Ufe=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},qfe=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new j1(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new Ufe;for(const n of e)Vfe(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof j1){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function Vfe(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof j1?yx({baseGrammar:s,selfGrammar:a},r):b6(e.ruleName,{baseGrammar:s,selfGrammar:a,repository:a.repository},r);const i=n.injections(e.scopeName);if(i)for(const o of i)r.add(new j1(o))}function b6(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];r5([r],t,n)}}function yx(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&r5(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&r5(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function r5(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?SI({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&r5(r.patterns,{...t,repository:a},n);const s=r.include;if(!s)continue;const i=MI(s);switch(i.kind){case 0:yx({...t,selfGrammar:t.baseGrammar},n);break;case 1:yx(t,n);break;case 2:b6(i.ruleName,{...t,repository:a},n);break;case 3:case 4:const o=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){const c={baseGrammar:t.baseGrammar,selfGrammar:o,repository:a};i.kind===4?b6(i.ruleName,c,n):yx(c,n)}else i.kind===4?n.add(new Hfe(i.scopeName,i.ruleName)):n.add(new j1(i.scopeName));break}}}var Gfe=class{kind=0},$fe=class{kind=1},Wfe=class{constructor(e){this.ruleName=e}kind=2},Yfe=class{constructor(e){this.scopeName=e}kind=3},Qfe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function MI(e){if(e==="$base")return new Gfe;if(e==="$self")return new $fe;const t=e.indexOf("#");if(t===-1)return new Yfe(e);if(t===0)return new Wfe(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Qfe(n,r)}}var Xfe=/\\(\d+)/,_N=/\\(\d+)/g,Kfe=-1,RI=-2;var og=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=F2.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=F2.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${EI(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:F2.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:F2.replaceCaptures(this._contentName,e,t)}},Jfe=class extends og{retokenizeCapturedWithRuleId;constructor(e,t,n,r,a){super(e,t,n,r),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},Zfe=class extends og{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,null),this._match=new D1(r,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new I1,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},TN=class extends og{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,r),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new I1,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},y6=class extends og{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a,s,i,o,c,d){super(e,t,n,r),this._begin=new D1(a,this.id),this.beginCaptures=s,this._end=new D1(i||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=c||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new I1;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},a5=class extends og{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,a,s,i,o,c){super(e,t,n,r),this._begin=new D1(a,this.id),this.beginCaptures=s,this.whileCaptures=o,this._while=new D1(i,RI),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new I1;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new I1,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}},OI=class Ws{static createCaptureRule(t,n,r,a,s){return t.registerRule(i=>new Jfe(n,i,r,a,s))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new Zfe(t.$vscodeTextmateLocation,t.id,t.name,t.match,Ws._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=SI({},r,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new TN(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Ws._compilePatterns(s,n,r))}return t.while?new a5(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ws._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Ws._compileCaptures(t.whileCaptures||t.captures,n,r),Ws._compilePatterns(t.patterns,n,r)):new y6(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ws._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Ws._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Ws._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let s=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const o=parseInt(i,10);o>s&&(s=o)}for(let i=0;i<=s;i++)a[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const o=parseInt(i,10);let c=0;t[i].patterns&&(c=Ws.getCompiledRuleId(t[i],n,r)),a[o]=Ws.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,c)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let s=0,i=t.length;s<i;s++){const o=t[s];let c=-1;if(o.include){const d=MI(o.include);switch(d.kind){case 0:case 1:c=Ws.getCompiledRuleId(r[o.include],n,r);break;case 2:let f=r[d.ruleName];f&&(c=Ws.getCompiledRuleId(f,n,r));break;case 3:case 4:const m=d.scopeName,b=d.kind===4?d.ruleName:null,g=n.getExternalGrammar(m,r);if(g)if(b){let v=g.repository[b];v&&(c=Ws.getCompiledRuleId(v,n,g.repository))}else c=Ws.getCompiledRuleId(g.repository.$self,n,g.repository);break}}else c=Ws.getCompiledRuleId(o,n,r);if(c!==-1){const d=n.getRule(c);let f=!1;if((d instanceof TN||d instanceof y6||d instanceof a5)&&d.hasMissingPatterns&&d.patterns.length===0&&(f=!0),f)continue;a.push(c)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},D1=class PI{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,s=[],i=!1;for(let o=0;o<r;o++)if(t.charAt(o)==="\\"&&o+1<r){const d=t.charAt(o+1);d==="z"?(s.push(t.substring(a,o)),s.push("$(?!\\n)(?<!\\n)"),a=o+2):(d==="A"||d==="G")&&(i=!0),o++}this.hasAnchor=i,a===0?this.source=t:(s.push(t.substring(a,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Xfe.test(this.source):this.hasBackReferences=!1}clone(){return new PI(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return _N.lastIndex=0,this.source.replace(_N,(a,s)=>TI(r[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],s,i,o,c;for(s=0,i=this.source.length;s<i;s++)o=this.source.charAt(s),t[s]=o,n[s]=o,r[s]=o,a[s]=o,o==="\\"&&s+1<i&&(c=this.source.charAt(s+1),c==="A"?(t[s+1]="ï¿¿",n[s+1]="ï¿¿",r[s+1]="A",a[s+1]="A"):c==="G"?(t[s+1]="ï¿¿",n[s+1]="G",r[s+1]="ï¿¿",a[s+1]="G"):(t[s+1]=c,n[s+1]=c,r[s+1]=c,a[s+1]=c),s++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},I1=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new CN(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(a=>a.resolveAnchors(t,n));return new CN(e,r,this._items.map(a=>a.ruleId))}},CN=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(` 900`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},xv=class{constructor(e,t){this.languageId=e,this.tokenType=t}},epe=class v6{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new xv(t,8),this._embeddedLanguagesMatcher=new tpe(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?v6._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new xv(0,0);_getBasicScopeAttributes=new CI(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new xv(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(v6.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},tpe=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>TI(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},NN=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function jI(e,t,n,r,a,s,i,o){const c=t.content.length;let d=!1,f=-1;if(i){const g=npe(e,t,n,r,a,s);a=g.stack,r=g.linePos,n=g.isFirstLine,f=g.anchorPosition}const m=Date.now();for(;!d;){if(o!==0&&Date.now()-m>o)return new NN(a,!0);b()}return new NN(a,!1);function b(){const g=rpe(e,t,n,r,a,f);if(!g){s.produce(a,c),d=!0;return}const v=g.captureIndices,E=g.matchedRuleId,T=v&&v.length>0?v[0].end>r:!1;if(E===Kfe){const _=a.getRule(e);s.produce(a,v[0].start),a=a.withContentNameScopesList(a.nameScopesList),Um(e,t,n,a,s,_.endCaptures,v),s.produce(a,v[0].end);const A=a;if(a=a.parent,f=A.getAnchorPos(),!T&&A.getEnterPos()===r){a=A,s.produce(a,c),d=!0;return}}else{const _=e.getRule(E);s.produce(a,v[0].start);const A=a,R=_.getName(t.content,v),P=a.contentNameScopesList.pushAttributed(R,e);if(a=a.push(E,r,f,v[0].end===c,null,P,P),_ instanceof y6){const V=_;Um(e,t,n,a,s,V.beginCaptures,v),s.produce(a,v[0].end),f=v[0].end;const U=V.getContentName(t.content,v),D=P.pushAttributed(U,e);if(a=a.withContentNameScopesList(D),V.endHasBackReferences&&(a=a.withEndRule(V.getEndWithResolvedBackReferences(t.content,v))),!T&&A.hasSameRuleAs(a)){a=a.pop(),s.produce(a,c),d=!0;return}}else if(_ instanceof a5){const V=_;Um(e,t,n,a,s,V.beginCaptures,v),s.produce(a,v[0].end),f=v[0].end;const U=V.getContentName(t.content,v),D=P.pushAttributed(U,e);if(a=a.withContentNameScopesList(D),V.whileHasBackReferences&&(a=a.withEndRule(V.getWhileWithResolvedBackReferences(t.content,v))),!T&&A.hasSameRuleAs(a)){a=a.pop(),s.produce(a,c),d=!0;return}}else if(Um(e,t,n,a,s,_.captures,v),s.produce(a,v[0].end),a=a.pop(),!T){a=a.safePop(),s.produce(a,c),d=!0;return}}v[0].end>r&&(r=v[0].end,n=!1)}}function npe(e,t,n,r,a,s){let i=a.beginRuleCapturedEOL?0:-1;const o=[];for(let c=a;c;c=c.pop()){const d=c.getRule(e);d instanceof a5&&o.push({rule:d,stack:c})}for(let c=o.pop();c;c=o.pop()){const{ruleScanner:d,findOptions:f}=ipe(c.rule,e,c.stack.endRule,n,r===i),m=d.findNextMatchSync(t,r,f);if(m){if(m.ruleId!==RI){a=c.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(s.produce(c.stack,m.captureIndices[0].start),Um(e,t,n,c.stack,s,c.rule.whileCaptures,m.captureIndices),s.produce(c.stack,m.captureIndices[0].end),i=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{a=c.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:i,isFirstLine:n}}function rpe(e,t,n,r,a,s){const i=ape(e,t,n,r,a,s),o=e.getInjections();if(o.length===0)return i;const c=spe(o,e,t,n,r,a,s);if(!c)return i;if(!i)return c;const d=i.captureIndices[0].start,f=c.captureIndices[0].start;return f<d||c.priorityMatch&&f===d?c:i}function ape(e,t,n,r,a,s){const i=a.getRule(e),{ruleScanner:o,findOptions:c}=DI(i,e,a.endRule,n,r===s),d=o.findNextMatchSync(t,r,c);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function spe(e,t,n,r,a,s,i){let o=Number.MAX_VALUE,c=null,d,f=0;const m=s.contentNameScopesList.getScopeNames();for(let b=0,g=e.length;b<g;b++){const v=e[b];if(!v.matcher(m))continue;const E=t.getRule(v.ruleId),{ruleScanner:T,findOptions:_}=DI(E,t,null,r,a===i),A=T.findNextMatchSync(n,a,_);if(!A)continue;const R=A.captureIndices[0].start;if(!(R>=o)&&(o=R,c=A.captureIndices,d=A.ruleId,f=v.priority,o===a))break}return c?{priorityMatch:f===-1,captureIndices:c,matchedRuleId:d}:null}function DI(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function ipe(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function Um(e,t,n,r,a,s,i){if(s.length===0)return;const o=t.content,c=Math.min(s.length,i.length),d=[],f=i[0].end;for(let m=0;m<c;m++){const b=s[m];if(b===null)continue;const g=i[m];if(g.length===0)continue;if(g.start>f)break;for(;d.length>0&&d[d.length-1].endPos<=g.start;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?a.produceFromScopes(d[d.length-1].scopes,g.start):a.produce(r,g.start),b.retokenizeCapturedWithRuleId){const E=b.getName(o,i),T=r.contentNameScopesList.pushAttributed(E,e),_=b.getContentName(o,i),A=T.pushAttributed(_,e),R=r.push(b.retokenizeCapturedWithRuleId,g.start,-1,!1,null,T,A),P=e.createOnigString(o.substring(0,g.end));jI(e,P,n&&g.start===0,g.start,R,a,!1,0),LI(P);continue}const v=b.getName(o,i);if(v!==null){const T=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(v,e);d.push(new ope(T,g.end))}}for(;d.length>0;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var ope=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function lpe(e,t,n,r,a,s,i,o){return new upe(e,t,n,r,a,s,i,o)}function AN(e,t,n,r,a){const s=n5(t,s5),i=OI.getCompiledRuleId(n,r,a.repository);for(const o of s)e.push({debugSelector:t,matcher:o.matcher,ruleId:i,grammar:a,priority:o.priority})}function s5(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(cpe(t[a],r))return n=a+1,!0;return!1})}function cpe(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var upe=class{constructor(e,t,n,r,a,s,i,o){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=o,this._basicScopeAttributesProvider=new epe(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=LN(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const c of Object.keys(a)){const d=n5(c,s5);for(const f of d)this._tokenTypeMatchers.push({matcher:f.matcher,type:a[c]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const a=r.injections;if(a)for(let i in a)AN(t,i,a[i],this,r);const s=this._grammarRepository.injections(n);s&&s.forEach(i=>{const o=this.getExternalGrammar(i);if(o){const c=o.injectionSelector;c&&AN(t,c,o,this,o)}})}return t.sort((a,s)=>a.priority-s.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=LN(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=OI.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===w6.NULL){a=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),f=this.themeProvider.getDefaults(),m=hp.set(0,d.languageId,d.tokenType,null,f.fontStyle,f.foregroundId,f.backgroundId),b=this.getRule(this._rootId).getName(null,null);let g;b?g=c1.createRootAndLookUpScopeName(b,m,this):g=c1.createRoot("unknown",m),t=new w6(null,this._rootId,-1,-1,!1,null,g,g)}else a=!1,t.reset();e=e+` 901`;const s=this.createOnigString(e),i=s.content.length,o=new hpe(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=jI(this,s,a,0,t,o,!0,r);return LI(s),{lineLength:i,lineTokens:o,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function LN(e,t){return e=Afe(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var c1=class mc{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const s of n)a=gv.push(a,s.scopeNames),r=new mc(r,a,s.encodedTokenAttributes);return r}static createRoot(t,n){return new mc(null,new gv(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),s=new gv(null,t),i=r.themeProvider.themeMatch(s),o=mc.mergeAttributes(n,a,i);return new mc(null,s,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return mc.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,s=0,i=0;return r!==null&&(a=r.fontStyle,s=r.foregroundId,i=r.backgroundId),hp.set(t,n.languageId,n.tokenType,null,a,s,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return mc._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const s of r)a=mc._pushAttributed(a,s,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),s=t.scopePath.push(n),i=r.themeProvider.themeMatch(s),o=mc.mergeAttributes(t.tokenAttributes,a,i);return new mc(t,s,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},w6=class X0{constructor(t,n,r,a,s,i,o,c){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=i,this.nameScopesList=o,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new X0(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:X0._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?c1.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){X0._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,s,i,o){return new X0(this,t,n,r,a,s,i,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new X0(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=c1.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new X0(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,c1.fromExtension(r,n.contentNameScopesList))}},dpe=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):n5(n,s5).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>n5(n,s5).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},hpe=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=e?.getScopeNames()??[];for(const i of this._tokenTypeOverrides)i.matcher(s)&&(r=hp.set(r,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(s))}if(a&&(r=hp.set(r,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,a=this._binaryTokens.length;r<a;r++)n[r]=this._binaryTokens[r];return n}},fpe=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,a){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,lpe(e,s,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},ppe=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new fpe(t5.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(t5.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new dpe(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,s){const i=new qfe(this._syncRegistry,t);for(;i.Q.length>0;)i.Q.map(o=>this._loadSingleGrammar(o.scopeName)),i.processQueue();return this._grammarForScopeName(t,n,r,a,s)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,s=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,s)}},S6=w6.NULL;const mpe=/["&'<>`]/g,gpe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xpe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,bpe=/[|\\{}()[\]^$+*?.]/g,MN=new WeakMap;function ype(e,t){if(e=e.replace(t.subset?vpe(t.subset):mpe,r),t.subset||t.escapeOnly)return e;return e.replace(gpe,n).replace(xpe,r);function n(a,s,i){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,i.charCodeAt(s+2),t)}function r(a,s,i){return t.format(a.charCodeAt(0),i.charCodeAt(s+1),t)}}function vpe(e){let t=MN.get(e);return t||(t=wpe(e),MN.set(e,t)),t}function wpe(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(bpe,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Spe=/[\dA-Fa-f]/;function Epe(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Spe.test(String.fromCharCode(t))?r:r+";"}const kpe=/\d/;function _pe(e,t,n){const r="&#"+String(e);return n&&t&&!kpe.test(String.fromCharCode(t))?r:r+";"}const Tpe=["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","oslas
901h","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],bv={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"Â¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"Â",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"Ã",Aacute:"Ã",Acirc:"Ã",Atilde:"Ã",Auml:"Ã",Aring:"Ã
",AElig:"Ã",Ccedil:"Ã",Egrave:"Ã",Eacute:"Ã",Ecirc:"Ã",Euml:"Ã",Igrave:"Ã",Iacute:"Ã",Icirc:"Ã",Iuml:"Ã",ETH:"Ã",Ntilde:"Ã",Ograve:"Ã",Oacute:"Ã",Ocirc:"Ã",Otilde:"Ã",Ouml:"Ã",times:"Ã",Oslash:"Ã",Ugrave:"Ã",Uacute:"Ã",Ucirc:"Ã",Uuml:"Ã",Yacute:"Ã",THORN:"Ã",szlig:"Ã",agrave:"à ",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"Ã¥",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"Ã",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"Æ",Alpha:"Î",Beta:"Î",Gamma:"Î",Delta:"Î",Epsilon:"Î",Zeta:"Î",Eta:"Î",Theta:"Î",Iota:"Î",Kappa:"Î",Lambda:"Î",Mu:"Î",Nu:"Î",Xi:"Î",Omicron:"Î",Pi:"Î ",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Î¥",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"Ï",rho:"Ï",sigmaf:"Ï",sigma:"Ï",tau:"Ï",upsilon:"Ï
",phi:"Ï",chi:"Ï",psi:"Ï",omega:"Ï",thetasym:"Ï",upsih:"Ï",piv:"Ï",bull:"â¢",hellip:"â¦",prime:"â²",Prime:"â³",oline:"â¾",frasl:"â",weierp:"â",image:"â",real:"â",trade:"â¢",alefsym:"âµ",larr:"â",uarr:"â",rarr:"â",darr:"â",harr:"â",crarr:"âµ",lArr:"â",uArr:"â",rArr:"â",dArr:"â",hArr:"â",forall:"â",part:"â",exist:"â",empty:"â
",nabla:"â",isin:"â",notin:"â",ni:"â",prod:"â",sum:"â",minus:"â",lowast:"â",radic:"â",prop:"â",infin:"â",ang:"â ",and:"â§",or:"â¨",cap:"â©",cup:"âª",int:"â«",there4:"â´",sim:"â¼",cong:"â
",asymp:"â",ne:"â ",equiv:"â¡",le:"â¤",ge:"â¥",sub:"â",sup:"â",nsub
vendor: 58,602 bytes, lines 901-910
901:"â",sube:"â",supe:"â",oplus:"â",otimes:"â",perp:"â¥",sdot:"â ",lceil:"â",rceil:"â",lfloor:"â",rfloor:"â",lang:"â©",rang:"âª",loz:"â",spades:"â ",clubs:"â£",hearts:"â¥",diams:"â¦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Å",oelig:"Å",Scaron:"Å ",scaron:"Å¡",Yuml:"Ÿ",circ:"Ë",tilde:"Ë",ensp:"â",emsp:"â",thinsp:"â",zwnj:"â",zwj:"â",lrm:"â",rlm:"â",ndash:"â",mdash:"â",lsquo:"â",rsquo:"â",sbquo:"â",ldquo:"â",rdquo:"â",bdquo:"â",dagger:"â ",Dagger:"â¡",permil:"â°",lsaquo:"â¹",rsaquo:"âº",euro:"â¬"},Cpe=["cent","copy","divide","gt","lt","not","para","times"],II={}.hasOwnProperty,E6={};let z2;for(z2 in bv)II.call(bv,z2)&&(E6[bv[z2]]=z2);const Npe=/[^\dA-Za-z]/;function Ape(e,t,n,r){const a=String.fromCharCode(e);if(II.call(E6,a)){const s=E6[a],i="&"+s;return n&&Tpe.includes(s)&&!Cpe.includes(s)&&(!r||t&&t!==61&&Npe.test(String.fromCharCode(t)))?i:i+";"}return""}function Lpe(e,t,n){let r=Epe(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=Ape(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const s=_pe(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Zf(e,t){return ype(e,Object.assign({format:Lpe},t))}const Mpe=/^>|^->|<!--|-->|--!>|<!-$/g,Rpe=[">"],Ope=["<",">"];function Ppe(e,t,n,r){return r.settings.bogusComments?"<?"+Zf(e.value,Object.assign({},r.settings.characterReferences,{subset:Rpe}))+">":"<!--"+e.value.replace(Mpe,a)+"-->";function a(s){return Zf(s,Object.assign({},r.settings.characterReferences,{subset:Ope}))}}function jpe(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const fs=FI(1),BI=FI(-1),Dpe=[];function FI(e){return t;function t(n,r,a){const s=n?n.children:Dpe;let i=(r||0)+e,o=s[i];if(!a)for(;o&&V5(o);)i+=e,o=s[i];return o}}const Ipe={}.hasOwnProperty;function zI(e){return t;function t(n,r,a){return Ipe.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const W8=zI({body:Fpe,caption:yv,colgroup:yv,dd:qpe,dt:Upe,head:yv,html:Bpe,li:Hpe,optgroup:Vpe,option:Gpe,p:zpe,rp:RN,rt:RN,tbody:Wpe,td:ON,tfoot:Ype,th:ON,thead:$pe,tr:Qpe});function yv(e,t,n){const r=fs(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&V5(r.value.charAt(0)))}function Bpe(e,t,n){const r=fs(n,t);return!r||r.type!=="comment"}function Fpe(e,t,n){const r=fs(n,t);return!r||r.type!=="comment"}function zpe(e,t,n){const r=fs(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Hpe(e,t,n){const r=fs(n,t);return!r||r.type==="element"&&r.tagName==="li"}function Upe(e,t,n){const r=fs(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function qpe(e,t,n){const r=fs(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function RN(e,t,n){const r=fs(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Vpe(e,t,n){const r=fs(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Gpe(e,t,n){const r=fs(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function $pe(e,t,n){const r=fs(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Wpe(e,t,n){const r=fs(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Ype(e,t,n){return!fs(n,t)}function Qpe(e,t,n){const r=fs(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function ON(e,t,n){const r=fs(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Xpe=zI({body:Zpe,colgroup:eme,head:Jpe,html:Kpe,tbody:tme});function Kpe(e){const t=fs(e,-1);return!t||t.type!=="comment"}function Jpe(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function Zpe(e){const t=fs(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&V5(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function eme(e,t,n){const r=BI(n,t),a=fs(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&W8(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function tme(e,t,n){const r=BI(n,t),a=fs(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&W8(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const H2={name:[[` 902\f\r &/=>`.split(""),` 903\f\r "&'/=>\``.split("")],[`\0 904\f\r "&'/<=>`.split(""),`\0 905\f\r "&'/<=>\``.split("")]],unquoted:[[` 906\f\r &>`.split(""),`\0 907\f\r "&'<=>\``.split("")],[`\0 908\f\r "&'<=>\``.split(""),`\0 909\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function nme(e,t,n,r){const a=r.schema,s=a.space==="svg"?!1:r.settings.omitOptionalTags;let i=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const o=[];let c;a.space==="html"&&e.tagName==="svg"&&(r.schema=c0);const d=rme(r,e.properties),f=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,f&&(i=!1),(d||!s||!Xpe(e,t,n))&&(o.push("<",e.tagName,d?" "+d:""),i&&(a.space==="svg"||r.settings.closeSelfClosing)&&(c=d.charAt(d.length-1),(!r.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(f),!i&&(!s||!W8(e,t,n))&&o.push("</"+e.tagName+">"),o.join("")}function rme(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const s=ame(e,a,t[a]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function ame(e,t,n){const r=G5(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let i=e.quote,o;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const c=Zf(r.attribute,Object.assign({},e.settings.characterReferences,{subset:H2.name[a][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Kw:Zw)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(o=Zf(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:H2.unquoted[a][s]}))),o!==n&&(e.settings.quoteSmart&&Zx(n,i)>Zx(n,e.alternative)&&(i=e.alternative),o=i+Zf(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?H2.single:H2.double)[a][s],attribute:!0}))+i),c+(o&&"="+o))}const sme=["<","&"];function HI(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Zf(e.value,Object.assign({},r.settings.characterReferences,{subset:sme}))}function ime(e,t,n,r){return r.settings.allowDangerousHtml?e.value:HI(e,t,n,r)}function ome(e,t,n,r){return r.all(e)}const lme=j8("type",{invalid:cme,unknown:ume,handlers:{comment:Ppe,doctype:jpe,element:nme,raw:ime,root:ome,text:HI}});function cme(e){throw new Error("Expected node, not `"+e+"`")}function ume(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const dme={},hme={},fme=[];function pme(e,t){const n=t||dme,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:mme,all:gme,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||xD,characterReferences:n.characterReferences||hme,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?c0:K1,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function mme(e,t,n){return lme(e,t,n,this)}function gme(e){const t=[],n=e&&e.children||fme;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function i5(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[a]=s:a===r&&Object.assign(n,s);return n}function Xd(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function xme(e){return Array.isArray(e)?e:[e]}async function UI(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Y8(e){return!e||["plaintext","txt","text","plain"].includes(e)}function qI(e){return e==="ansi"||Y8(e)}function Q8(e){return e==="none"}function VI(e){return Q8(e)}function GI(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function lb(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let s=0;s<n.length;s+=2){const i=t?n[s]+(n[s+1]||""):n[s];a.push([i,r]),r+=n[s].length,r+=n[s+1]?.length||0}return a}function bme(e){const t=lb(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let s=a,i=0;for(const o of t){if(s<o.length)break;s-=o.length,i++}return{line:i,character:s}}function r(a,s){let i=0;for(let o=0;o<a;o++)i+=t[o].length;return i+=s,i}return{lines:t,indexToPos:n,posToIndex:r}}const X8="light-dark()",yme=["color","background-color"];function vme(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function wme(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const s=n.filter(i=>a.offset<i&&i<a.offset+a.content.length).map(i=>i-a.offset).sort((i,o)=>i-o);return s.length?vme(a,s):a})):e}function Sme(e,t,n,r,a="css-vars"){const s={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(f=>o5(e.variants[f])),o=new Set(i.flatMap(f=>Object.keys(f))),c={},d=(f,m)=>{const b=m==="color"?"":m==="background-color"?"-bg":`-${m}`;return n+t[f]+(m==="color"?"":b)};return i.forEach((f,m)=>{for(const b of o){const g=f[b]||"inherit";if(m===0&&r&&yme.includes(b))if(r===X8&&i.length>1){const v=t.findIndex(A=>A==="light"),E=t.findIndex(A=>A==="dark");if(v===-1||E===-1)throw new Ka('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const T=i[v][b]||"inherit",_=i[E][b]||"inherit";c[b]=`light-dark(${T}, ${_})`,a==="css-vars"&&(c[d(m,b)]=g)}else c[b]=g;else a==="css-vars"&&(c[d(m,b)]=g)}}),s.htmlStyle=c,s}function o5(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Xs.Italic&&(t["font-style"]="italic"),e.fontStyle&Xs.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&Xs.Underline&&n.push("underline"),e.fontStyle&Xs.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function k6(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const $I=new WeakMap;function cb(e,t){$I.set(e,t)}function B1(e){return $I.get(e)}class Pp{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Pp(Object.fromEntries(xme(n).map(r=>[r,S6])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Eme(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function Eme(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const s=a?.nameScopesList?.scopeName;s&&t.push(s),a.parent&&r(a.parent)}return r(e),t}function kme(e,t){if(!(e instanceof Pp))throw new Ka("Invalid grammar state");return e.getInternalStack(t)}function _me(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new Ka(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...a.indexToPos(i),offset:i}}else{const o=a.lines[i.line];if(o===void 0)throw new Ka(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${a.lines.length}`);let c=i.character;if(c<0&&(c=o.length+c),c<0||c>o.length)throw new Ka(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${o.length}`);return{...i,character:c,offset:a.posToIndex(i.line,c)}}};const a=bme(n.source),s=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));Tme(s),e.set(n.meta,{decorations:s,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const a=t(this).decorations.flatMap(i=>[i.start.offset,i.end.offset]);return wme(n,a)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(f=>f.type==="element"&&f.tagName==="span");if(a.length!==r.converter.lines.length)throw new Ka(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function s(f,m,b,g){const v=a[f];let E="",T=-1,_=-1;if(m===0&&(T=0),b===0&&(_=0),b===Number.POSITIVE_INFINITY&&(_=v.children.length),T===-1||_===-1)for(let R=0;R<v.children.length;R++)E+=WI(v.children[R]),T===-1&&E.length===m&&(T=R+1),_===-1&&E.length===b&&(_=R+1);if(T===-1)throw new Ka(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(_===-1)throw new Ka(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);const A=v.children.slice(T,_);if(!g.alwaysWrap&&A.length===v.children.length)o(v,g,"line");else if(!g.alwaysWrap&&A.length===1&&A[0].type==="element")o(A[0],g,"token");else{const R={type:"element",tagName:"span",properties:{},children:A};o(R,g,"wrapper"),v.children.splice(T,A.length,R)}}function i(f,m){a[f]=o(a[f],m,"line")}function o(f,m,b){const g=m.properties||{},v=m.transform||(E=>E);return f.tagName=m.tagName||"span",f.properties={...f.properties,...g,class:f.properties.class},m.properties?.class&&GI(f,m.properties.class),f=v(f,b)||f,f}const c=[],d=r.decorations.sort((f,m)=>m.start.offset-f.start.offset||f.end.offset-m.end.offset);for(const f of d){const{start:m,end:b}=f;if(m.line===b.line)s(m.line,m.character,b.character,f);else if(m.line<b.line){s(m.line,m.character,Number.POSITIVE_INFINITY,f);for(let g=m.line+1;g<b.line;g++)c.unshift(()=>i(g,f));s(b.line,0,b.character,f)}}c.forEach(f=>f())}}}function Tme(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Ka(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],s=n.start.offset<=a.start.offset&&a.start.offset<n.end.offset,i=n.start.offset<a.end.offset&&a.end.offset<=n.end.offset,o=a.start.offset<=n.start.offset&&n.start.offset<a.end.offset,c=a.start.offset<n.end.offset&&n.end.offset<=a.end.offset;if(s||i||o||c){if(s&&i||o&&c||o&&n.start.offset===n.end.offset||i&&a.start.offset===a.end.offset)continue;throw new Ka(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function WI(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(WI).join(""):""}const Cme=[_me()];function l5(e){const t=Nme(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Cme]}function Nme(e){const t=[],n=[],r=[];for(const a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":n.push(a);break;default:r.push(a)}return{pre:t,post:n,normal:r}}var rh=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],vv={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Ame(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function PN(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function Lme(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)vv[r]&&t.push({type:"setDecoration",value:vv[r]});else if(r<=29){const a=vv[r-20];a&&(t.push({type:"resetDecoration",value:a}),a==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:rh[r-30]}});else if(r===38){const a=PN(e);a&&t.push({type:"setForegroundColor",value:a})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:rh[r-40]}});else if(r===48){const a=PN(e);a&&t.push({type:"setBackgroundColor",value:a})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:rh[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:rh[r-100+8]}})}return t}function Mme(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let s=0;do{const i=Ame(r,s),o=i.sequence?r.substring(s,i.startPosition):r.substring(s);if(o.length>0&&a.push({value:o,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const c=Lme(i.sequence);for(const d of c)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of c)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}s=i.position}while(s<r.length);return a}}}var Rme={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Ome(e=Rme){function t(o){return e[o]}function n(o){return`#${o.map(c=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let d=0;d<rh.length;d++)r.push(t(rh[d]));let o=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let f=0;f<6;f++)for(let m=0;m<6;m++)r.push(n([o[d],o[f],o[m]]));let c=8;for(let d=0;d<24;d++,c+=10)r.push(n([c,c,c]));return r}function s(o){return a()[o]}function i(o){switch(o.type){case"named":return t(o.name);case"rgb":return n(o.rgb);case"table":return s(o.index)}}return{value:i}}function Pme(e,t,n){const r=i5(e,n),a=lb(t),s=Ome(Object.fromEntries(rh.map(o=>[o,e.colors?.[`terminal.ansi${o[0].toUpperCase()}${o.substring(1)}`]]))),i=Mme();return a.map(o=>i.parse(o[0]).map(c=>{let d,f;c.decorations.has("reverse")?(d=c.background?s.value(c.background):e.bg,f=c.foreground?s.value(c.foreground):e.fg):(d=c.foreground?s.value(c.foreground):e.fg,f=c.background?s.value(c.background):void 0),d=Xd(d,r),f=Xd(f,r),c.decorations.has("dim")&&(d=jme(d));let m=Xs.None;return c.decorations.has("bold")&&(m|=Xs.Bold),c.decorations.has("italic")&&(m|=Xs.Italic),c.decorations.has("underline")&&(m|=Xs.Underline),c.decorations.has("strikethrough")&&(m|=Xs.Strikethrough),{content:c.value,offset:o[1],color:d,bgColor:f,fontStyle:m}}))}function jme(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function K8(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(Y8(r)||Q8(a))return lb(t).map(c=>[{content:c[0],offset:c[1]}]);const{theme:s,colorMap:i}=e.setTheme(a);if(r==="ansi")return Pme(s,t,n);const o=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new Ka(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(s.name))throw new Ka(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return Ime(t,o,s,i,n)}function Dme(...e){if(e.length===2)return B1(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:s=t.getLoadedThemes()[0]}=r;if(Y8(a)||Q8(s))throw new Ka("Plain language does not have grammar state");if(a==="ansi")throw new Ka("ANSI language does not have grammar state");const{theme:i,colorMap:o}=t.setTheme(s),c=t.getLanguage(a);return new Pp(c5(n,c,i,o,r).stateStack,c.name,i.name)}function Ime(e,t,n,r,a){const s=c5(e,t,n,r,a),i=new Pp(c5(e,t,n,r,a).stateStack,t.name,n.name);return cb(s.tokens,i),s.tokens}function c5(e,t,n,r,a){const s=i5(n,a),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:o=500}=a,c=lb(e);let d=a.grammarState?kme(a.grammarState,n.name)??S6:a.grammarContextCode!=null?c5(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:S6,f=[];const m=[];for(let b=0,g=c.length;b<g;b++){const[v,E]=c[b];if(v===""){f=[],m.push([]);continue}if(i>0&&v.length>=i){f=[],m.push([{content:v,offset:E,color:"",fontStyle:0}]);continue}let T,_,A;a.includeExplanation&&(T=t.tokenizeLine(v,d,o),_=T.tokens,A=0);const R=t.tokenizeLine2(v,d,o),P=R.tokens.length/2;for(let V=0;V<P;V++){const U=R.tokens[2*V],D=V+1<P?R.tokens[2*V+2]:v.length;if(U===D)continue;const H=R.tokens[2*V+1],q=Xd(r[hp.getForeground(H)],s),W=hp.getFontStyle(H),z={content:v.substring(U,D),offset:E+U,color:q,fontStyle:W};if(a.includeExplanation){const $=[];if(a.includeExplanation!=="scopeName")for(const J of n.settings){let xe;switch(typeof J.scope){case"string":xe=J.scope.split(/,/).map(ee=>ee.trim());break;case"object":xe=J.scope;break;default:continue}$.push({settings:J,selectors:xe.map(ee=>ee.split(/ /))})}z.explanation=[];let ae=0;for(;U+ae<D;){const J=_[A],xe=v.substring(J.startIndex,J.endIndex);ae+=xe.length,z.explanation.push({content:xe,scopes:a.includeExplanation==="scopeName"?Bme(J.scopes):Fme($,J.scopes)}),A+=1}}f.push(z)}m.push(f),f=[],d=R.ruleStack}return{tokens:m,stateStack:d}}function Bme(e){return e.map(t=>({scopeName:t}))}function Fme(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const s=t[r];n[r]={scopeName:s,themeMatches:Hme(e,s,t.slice(0,r))}}return n}function jN(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function zme(e,t,n){if(!jN(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)jN(e[r],n[a])&&(r-=1),a-=1;return r===-1}function Hme(e,t,n){const r=[];for(const{selectors:a,settings:s}of e)for(const i of a)if(zme(i,t,n)){r.push(s);break}return r}function YI(e,t,n){const r=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),a=r.map(c=>{const d=K8(e,t,{...n,theme:c.theme}),f=B1(d),m=typeof c.theme=="string"?c.theme:c.theme.name;return{tokens:d,state:f,theme:m}}),s=Ume(...a.map(c=>c.tokens)),i=s[0].map((c,d)=>c.map((f,m)=>{const b={content:f.content,variants:{},offset:f.offset};return"includeExplanation"in n&&n.includeExplanation&&(b.explanation=f.explanation),s.forEach((g,v)=>{const{content:E,explanation:T,offset:_,...A}=g[d][m];b.variants[r[v].color]=A}),b})),o=a[0].state?new Pp(Object.fromEntries(a.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),a[0].state.lang):void 0;return o&&cb(i,o),i}function Ume(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(c=>c[r]),s=t.map(()=>[]);t.forEach((c,d)=>c.push(s[d]));const i=a.map(()=>0),o=a.map(c=>c[0]);for(;o.every(c=>c);){const c=Math.min(...o.map(d=>d.content.length));for(let d=0;d<n;d++){const f=o[d];f.content.length===c?(s[d].push(f),i[d]+=1,o[d]=a[d][i[d]]):(s[d].push({...f,content:f.content.slice(0,c)}),o[d]={...f,content:f.content.slice(c),offset:f.offset+c})}}}return t}function u5(e,t,n){let r,a,s,i,o,c;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:f="--shiki-",colorsRendering:m="css-vars"}=n,b=Object.entries(n.themes).filter(_=>_[1]).map(_=>({color:_[0],theme:_[1]})).sort((_,A)=>_.color===d?-1:A.color===d?1:0);if(b.length===0)throw new Ka("`themes` option must not be empty");const g=YI(e,t,n);if(c=B1(g),d&&X8!==d&&!b.find(_=>_.color===d))throw new Ka(`\`themes\` option must contain the defaultColor key \`${d}\``);const v=b.map(_=>e.getTheme(_.theme)),E=b.map(_=>_.color);s=g.map(_=>_.map(A=>Sme(A,E,f,d,m))),c&&cb(s,c);const T=b.map(_=>i5(_.theme,n));a=DN(b,v,T,f,d,"fg",m),r=DN(b,v,T,f,d,"bg",m),i=`shiki-themes ${v.map(_=>_.name).join(" ")}`,o=d?void 0:[a,r].join(";")}else if("theme"in n){const d=i5(n.theme,n);s=K8(e,t,n);const f=e.getTheme(n.theme);r=Xd(f.bg,d),a=Xd(f.fg,d),i=f.name,c=B1(s)}else throw new Ka("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:a,bg:r,themeName:i,rootStyle:o,grammarState:c}}function DN(e,t,n,r,a,s,i){return e.map((o,c)=>{const d=Xd(t[c][s],n[c])||"inherit",f=`${r+o.color}${s==="bg"?"-bg":""}:${d}`;if(c===0&&a){if(a===X8&&e.length>1){const m=e.findIndex(E=>E.color==="light"),b=e.findIndex(E=>E.color==="dark");if(m===-1||b===-1)throw new Ka('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const g=Xd(t[m][s],n[m])||"inherit",v=Xd(t[b][s],n[b])||"inherit";return`light-dark(${g}, ${v});${f}`}return d}return i==="css-vars"?f:null}).filter(o=>!!o).join(";")}function d5(e,t,n,r={meta:{},options:n,codeToHast:(a,s)=>d5(e,a,s),codeToTokens:(a,s)=>u5(e,a,s)}){let a=t;for(const v of l5(n))a=v.preprocess?.call(r,a,n)||a;let{tokens:s,fg:i,bg:o,themeName:c,rootStyle:d,grammarState:f}=u5(e,a,n);const{mergeWhitespaces:m=!0,mergeSameStyleTokens:b=!1}=n;m===!0?s=Vme(s):m==="never"&&(s=Gme(s)),b&&(s=$me(s));const g={...r,get source(){return a}};for(const v of l5(n))s=v.tokens?.call(g,s)||s;return qme(s,{...n,fg:i,bg:o,themeName:c,rootStyle:d},g,f)}function qme(e,t,n,r=B1(e)){const a=l5(t),s=[],i={type:"root",children:[]},{structure:o="classic",tabindex:c="0"}=t;let d={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...c!==!1&&c!=null?{tabindex:c.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([v])=>!v.startsWith("_")))},children:[]},f={type:"element",tagName:"code",properties:{},children:s};const m=[],b={...n,structure:o,addClassToHast:GI,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return d},get code(){return f},get lines(){return m}};if(e.forEach((v,E)=>{E&&(o==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):o==="classic"&&s.push({type:"text",value:` 910`}));let T={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(const A of v){let R={type:"element",tagName:"span",properties:{...A.htmlAttrs},children:[{type:"text",value:A.content}]};const P=k6(A.htmlStyle||o5(A));P&&(R.properties.style=P);for(const V of a)R=V?.span?.call(b,R,E+1,_,T,A)||R;o==="inline"?i.children.push(R):o==="classic"&&T.children.push(R),_+=A.content.length}if(o==="classic"){for(const A of a)T=A?.line?.call(b,T,E+1)||T;m.push(T),s.push(T)}}),o==="classic"){for(const v of a)f=v?.code?.call(b,f)||f;d.children.push(f);for(const v of a)d=v?.pre?.call(b,d)||d;i.children.push(d)}let g=i;for(const v of a)g=v?.root?.call(b,g)||g;return r&&cb(g,r),g}function Vme(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((s,i)=>{const c=!(s.fontStyle&&(s.fontStyle&Xs.Underline||s.fontStyle&Xs.Strikethrough));c&&s.content.match(/^\s+$/)&&t[i+1]?(a||(a=s.offset),r+=s.content):r?(c?n.push({...s,offset:a,content:r+s.content}):n.push({content:r,offset:a},s),a=0,r=""):n.push(s)}),n})}function Gme(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,a,s,i]=r;if(!a&&!i)return n;const o=[{...n,offset:n.offset+a.length,content:s}];return a&&o.unshift({content:a,offset:n.offset}),i&&o.push({content:i,offset:n.offset+a.length+s.length}),o}))}function $me(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const a=n[n.length-1],s=k6(a.htmlStyle||o5(a)),i=k6(r.htmlStyle||o5(r)),o=a.fontStyle&&(a.fontStyle&Xs.Underline||a.fontStyle&Xs.Strikethrough),c=r.fontStyle&&(r.fontStyle&Xs.Underline||r.fontStyle&Xs.Strikethrough);!o&&!c&&s===i?a.content+=r.content:n.push({...r})}return n})}const Wme=pme;function Yme(e,t,n){const r={meta:{},options:n,codeToHast:(s,i)=>d5(e,s,i),codeToTokens:(s,i)=>u5(e,s,i)};let a=Wme(d5(e,t,n,r));for(const s of l5(n))a=s.postprocess?.call(r,a,n)||a;return a}const IN={light:"#333333",dark:"#bbbbbb"},BN={light:"#fffffe",dark:"#1e1e1e"},FN="__shiki_resolved";function J8(e){if(e?.[FN])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const o=t.settings?t.settings.find(c=>!c.name&&!c.scope):void 0;o?.settings?.foreground&&(r=o.settings.foreground),o?.settings?.background&&(n=o.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?IN.light:IN.dark),n||(n=t.type==="light"?BN.light:BN.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const s=new Map;function i(o){if(s.has(o))return s.get(o);a+=1;const c=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${c}`]?i(o):(s.set(o,c),c)}t.settings=t.settings.map(o=>{const c=o.settings?.foreground&&!o.settings.foreground.startsWith("#"),d=o.settings?.background&&!o.settings.background.startsWith("#");if(!c&&!d)return o;const f={...o,settings:{...o.settings}};if(c){const m=i(o.settings.foreground);t.colorReplacements[m]=o.settings.foreground,f.settings.foreground=m}if(d){const m=i(o.settings.background);t.colorReplacements[m]=o.settings.background,f.settings.background=m}return f});for(const o of Object.keys(t.colors||{}))if((o==="editor.foreground"||o==="editor.background"||o.startsWith("terminal.ansi"))&&!t.colors[o]?.startsWith("#")){const c=i(t.colors[o]);t.colorReplacements[c]=t.colors[o],t.colors[o]=c}return Object.defineProperty(t,FN,{enumerable:!1,writable:!1,value:!0}),t}async function QI(e){return Array.from(new Set((await Promise.all(e.filter(t=>!qI(t)).map(async t=>await UI(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function XI(e){return(await Promise.all(e.map(async n=>VI(n)?null:J8(await UI(n))))).filter(n=>!!n)}let Qme=3;function Xme(e,t=3){t>Qme||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let Uf=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class Kme extends ppe{constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=J8(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=t5.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new Uf(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(s=>{this._alias[s]=t.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,s])=>!s);if(r.length){const a=n.filter(([s,i])=>i&&i.embeddedLangs?.some(o=>r.map(([c])=>c).includes(o))).filter(s=>!r.includes(s));throw new Uf(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${a.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[a,s]of n)this._resolver.addLanguage(s);for(const[a,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class Jme{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let a=1;a<=n.length;a++){const s=n.slice(0,a).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let Om=0;function Zme(e){Om+=1,e.warnings!==!1&&Om>=10&&Om%10===0&&console.warn(`[Shiki] ${Om} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Uf("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(J8),a=new Jme(e.engine,n),s=new Kme(a,r,n,e.langAlias);let i;function o(A){T();const R=s.getGrammar(typeof A=="string"?A:A.name);if(!R)throw new Uf(`Language \`${A}\` not found, you may need to load it first`);return R}function c(A){if(A==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};T();const R=s.getTheme(A);if(!R)throw new Uf(`Theme \`${A}\` not found, you may need to load it first`);return R}function d(A){T();const R=c(A);i!==A&&(s.setTheme(R),i=A);const P=s.getColorMap();return{theme:R,colorMap:P}}function f(){return T(),s.getLoadedThemes()}function m(){return T(),s.getLoadedLanguages()}function b(...A){T(),s.loadLanguages(A.flat(1))}async function g(...A){return b(await QI(A))}function v(...A){T();for(const R of A.flat(1))s.loadTheme(R)}async function E(...A){return T(),v(await XI(A))}function T(){if(t)throw new Uf("Shiki instance has been disposed")}function _(){t||(t=!0,s.dispose(),Om-=1)}return{setTheme:d,getTheme:c,getLanguage:o,getLoadedThemes:f,getLoadedLanguages:m,loadLanguage:g,loadLanguageSync:b,loadTheme:E,loadThemeSync:v,dispose:_,[Symbol.dispose]:_}}async function e1e(e){e.engine||Xme("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([XI(e.themes||[]),QI(e.langs||[]),e.engine]);return Zme({...e,themes:t,langs:n,engine:r})}async function t1e(e){const t=await e1e(e);return{getLastGrammarState:(...n)=>Dme(t,...n),codeToTokensBase:(n,r)=>K8(t,n,r),codeToTokensWithThemes:(n,r)=>YI(t,n,r),codeToTokens:(n,r)=>u5(t,n,r),codeToHast:(n,r)=>d5(t,n,r),codeToHtml:(n,r)=>Yme(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function n1e(e){const t=e.langs,n=e.themes,r=e.engine;async function a(s){function i(m){if(typeof m=="string"){if(qI(m))return[];m=s.langAlias?.[m]||m;const b=t[m];if(!b)throw new Ka(`Language \`${m}\` is not included in this bundle. You may want to load it from external source.`);return b}return m}function o(m){if(VI(m))return"none";if(typeof m=="string"){const b=n[m];if(!b)throw new Ka(`Theme \`${m}\` is not included in this bundle. You may want to load it from external source.`);return b}return m}const c=(s.themes??[]).map(m=>o(m)),d=(s.langs??[]).map(m=>i(m)),f=await t1e({engine:s.engine??r(),...s,themes:c,langs:d});return{...f,loadLanguage(...m){return f.loadLanguage(...m.map(i))},loadTheme(...m){return f.loadTheme(...m.map(o))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return a}const KI=[{id:"abap",name:"ABAP",import:(()=>me(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>me(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>me(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>me(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>me(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>me(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>me(()=>import("./apex-C7Pw0Ztw.js"),[]))},{id:"apl",name:"APL",import:(()=>me(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>me(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>me(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>me(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>me(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>me(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>me(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>me(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>me(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>me(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>me(()=>import("./berry-D08WgyRC.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>me(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>me(()=>import("./bicep-6nHXG8SA.js"),[]))},{id:"blade",name:"Blade",import:(()=>me(()=>import("./blade-DVc8C-J4.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>me(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>me(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>me(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>me(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>me(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>me(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>me(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>me(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>me(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>me(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>me(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>me(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>me(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>me(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>me(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>me(()=>import("./csharp-CX12Zw3r.js"),[]))},{id:"css",name:"CSS",import:(()=>me(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>me(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>me(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>me(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>me(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>me(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>me(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>me(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>me(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>me(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>me(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>me(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>me(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>me(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>me(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>me(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>me(()=>import("./erb-BOJIQeun.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>me(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>me(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>me(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>me(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>me(()=>import("./fortran-fixed-form-BZjJHVRy.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>me(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>me(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>me(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>me(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>me(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>me(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>me(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>me(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>me(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>me(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>me(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>me(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>me(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>me(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>me(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>me(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>me(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>me(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>me(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>me(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>me(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>me(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>me(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>me(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>me(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>me(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>me(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>me(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>me(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>me(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>me(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>me(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>me(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>me(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>me(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>me(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>me(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>me(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>me(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>me(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>me(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>me(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>me(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>me(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>me(()=>import("./julia-C8NyazO9.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"kdl",name:"KDL",import:(()=>me(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>me(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>me(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>me(()=>import("./latex-BUKiar2Z.js"),__vite__mapDeps([63,64,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>me(()=>import("./lean-DP1Csr6i.js"),[]))},{id:"less",name:"Less",import:(()=>me(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>me(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>me(()=>import("./llvm-BtvRca6l.js"),[]))},{id:"log",name:"Log file",import:(()=>me(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>me(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>me(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>me(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>me(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>me(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>me(()=>import("./marko-CPi9NSCl.js"),__vite__mapDeps([66,3,67,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>me(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>me(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>me(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>me(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>me(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>me(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>me(()=>import("./move-Bu9oaDYs.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>me(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>me(()=>import("./nextflow-CUEJCptM.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>me(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26])))},{id:"nim",name:"Nim",import:(()=>me(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>me(()=>import("./nix-BbRYJGeE.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>me(()=>import("./nushell-C-sUppwS.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>me(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>me(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>me(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>me(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>me(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>me(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>me(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>me(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>me(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>me(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>me(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>me(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>me(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>me(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>me(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>me(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>me(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>me(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>me(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>me(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>me(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2])))},{id:"qmldir",name:"QML Directory",import:(()=>me(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>me(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>me(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>me(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>me(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>me(()=>import("./razor-WgofotgN.js"),__vite__mapDeps([75,1,2,3,76])))},{id:"reg",name:"Windows Registry Script",import:(()=>me(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>me(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>me(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>me(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>me(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>me(()=>import("./rst-B0xPkSld.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>me(()=>import("./ruby-BvKwtOVI.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>me(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>me(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16])))},{id:"sass",name:"Sass",import:(()=>me(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>me(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>me(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>me(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>me(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>me(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>me(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>me(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>me(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>me(()=>import("./solidity-BbcW6ACK.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>me(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>me(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>me(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>me(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>me(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>me(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>me(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>me(()=>import("./svelte-3Dk4HxPD.js"),__vite__mapDeps([87,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>me(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>me(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>me(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>me(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>me(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>me(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>me(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>me(()=>import("./terraform-BETggiCN.js"),[]))}
910,{id:"tex",name:"TeX",import:(()=>me(()=>import("./tex-Cppo0RY3.js"),__vite__mapDeps([64,62])))},{id:"toml",name:"TOML",import:(()=>me(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>me(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>me(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>me(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>me(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>me(()=>import("./twig-CO9l9SDP.js"),__vite__mapDeps([91,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>me(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>me(()=>import("./typespec-Df68jz8_.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>me(()=>import("./typst-DHCkPAjA.js"),[]))}
vendor: 5,531 bytes, line 910
910,{id:"v",name:"V",import:(()=>me(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>me(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>me(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>me(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>me(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>me(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>me(()=>import("./vue-CCoi5OLL.js"),__vite__mapDeps([92,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>me(()=>import("./vue-html-DAAvJJDi.js"),__vite__mapDeps([93,92,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>me(()=>import("./vue-vine-_Ih-lPRR.js"),__vite__mapDeps([94,3,5,67,95,12,92,2,11,9,15,1])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>me(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>me(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:(()=>me(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>me(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>me(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>me(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>me(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>me(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>me(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>me(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>me(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>me(()=>import("./zig-VOosw3JB.js"),[]))}],r1e=Object.fromEntries(KI.map(e=>[e.id,e.import])),a1e=Object.fromEntries(KI.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),JI={...r1e,...a1e},s1e=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>me(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>me(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>me(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>me(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>me(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>me(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>me(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>me(()=>import("./dark-plus-eOWES_5F.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>me(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>me(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>me(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>me(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>me(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>me(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>me(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>me(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>me(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>me(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>me(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>me(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>me(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>me(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>me(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>me(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>me(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>me(()=>
910import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>me(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>me(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>me(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>me(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>me(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>me(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>me(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>me(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>me(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>me(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>me(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>me(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>me(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>me(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>me(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>me(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>me(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>me(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>me(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>me(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>me(()=>import("./rose-pine-BHrmToEH.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>me(()=>import("./rose-pine-dawn-CnK8MTSM.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>me(()=>import("./rose-pine-moon-NleAzG8P.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>me(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>me(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>me(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>me(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>me(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>me(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>me(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>me(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>me(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>me(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>me(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],i1e=Object.fromEntries(s1e.map(e=>[e.id,e.import]));
vendor: 20,507 bytes, lines 910-942
910class Z8 extends Error{constructor(t){super(t),this.name="ShikiError"}}function o1e(){return 2147483648}function l1e(){return typeof performance<"u"?performance.now():Date.now()}const c1e=(e,t)=>e+(t-e%t)%t;async function u1e(e){let t,n;const r={};function a(g){n=g,r.HEAPU8=new Uint8Array(g),r.HEAPU32=new Uint32Array(g)}function s(g,v,E){r.HEAPU8.copyWithin(g,v,v+E)}function i(g){try{return t.grow(g-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function o(g){const v=r.HEAPU8.length;g=g>>>0;const E=o1e();if(g>E)return!1;for(let T=1;T<=4;T*=2){let _=v*(1+.2/T);_=Math.min(_,g+100663296);const A=Math.min(E,c1e(Math.max(g,_),65536));if(i(A))return!0}return!1}const c=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(g,v,E=1024){const T=v+E;let _=v;for(;g[_]&&!(_>=T);)++_;if(_-v>16&&g.buffer&&c)return c.decode(g.subarray(v,_));let A="";for(;v<_;){let R=g[v++];if(!(R&128)){A+=String.fromCharCode(R);continue}const P=g[v++]&63;if((R&224)===192){A+=String.fromCharCode((R&31)<<6|P);continue}const V=g[v++]&63;if((R&240)===224?R=(R&15)<<12|P<<6|V:R=(R&7)<<18|P<<12|V<<6|g[v++]&63,R<65536)A+=String.fromCharCode(R);else{const U=R-65536;A+=String.fromCharCode(55296|U>>10,56320|U&1023)}}return A}function f(g,v){return g?d(r.HEAPU8,g,v):""}const m={emscripten_get_now:l1e,emscripten_memcpy_big:s,emscripten_resize_heap:o,fd_write:()=>0};async function b(){const v=await e({env:m,wasi_snapshot_preview1:m});t=v.memory,a(t.buffer),Object.assign(r,v),r.UTF8ToString=f}return await b(),r}var d1e=Object.defineProperty,h1e=(e,t,n)=>t in e?d1e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,us=(e,t,n)=>h1e(e,typeof t!="symbol"?t+"":t,n);let Cs=null;function f1e(e){throw new Z8(e.UTF8ToString(e.getLastOnigError()))}class ub{constructor(t){us(this,"utf16Length"),us(this,"utf8Length"),us(this,"utf16Value"),us(this,"utf8Value"),us(this,"utf16OffsetToUtf8"),us(this,"utf8OffsetToUtf16");const n=t.length,r=ub._utf8ByteLength(t),a=r!==n,s=a?new Uint32Array(n+1):null;a&&(s[n]=r);const i=a?new Uint32Array(r+1):null;a&&(i[r]=n);const o=new Uint8Array(r);let c=0;for(let d=0;d<n;d++){const f=t.charCodeAt(d);let m=f,b=!1;if(f>=55296&&f<=56319&&d+1<n){const g=t.charCodeAt(d+1);g>=56320&&g<=57343&&(m=(f-55296<<10)+65536|g-56320,b=!0)}a&&(s[d]=c,b&&(s[d+1]=c),m<=127?i[c+0]=d:m<=2047?(i[c+0]=d,i[c+1]=d):m<=65535?(i[c+0]=d,i[c+1]=d,i[c+2]=d):(i[c+0]=d,i[c+1]=d,i[c+2]=d,i[c+3]=d)),m<=127?o[c++]=m:m<=2047?(o[c++]=192|(m&1984)>>>6,o[c++]=128|(m&63)>>>0):m<=65535?(o[c++]=224|(m&61440)>>>12,o[c++]=128|(m&4032)>>>6,o[c++]=128|(m&63)>>>0):(o[c++]=240|(m&1835008)>>>18,o[c++]=128|(m&258048)>>>12,o[c++]=128|(m&4032)>>>6,o[c++]=128|(m&63)>>>0),b&&d++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=o,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=i}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const s=t.charCodeAt(r);let i=s,o=!1;if(s>=55296&&s<=56319&&r+1<a){const c=t.charCodeAt(r+1);c>=56320&&c<=57343&&(i=(s-55296<<10)+65536|c-56320,o=!0)}i<=127?n+=1:i<=2047?n+=2:i<=65535?n+=3:n+=4,o&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const db=class gc{constructor(t){if(us(this,"id",++gc.LAST_ID),us(this,"_onigBinding"),us(this,"content"),us(this,"utf16Length"),us(this,"utf8Length"),us(this,"utf16OffsetToUtf8"),us(this,"utf8OffsetToUtf16"),us(this,"ptr"),!Cs)throw new Z8("Must invoke loadWasm first.");this._onigBinding=Cs,this.content=t;const n=new ub(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!gc._sharedPtrInUse?(gc._sharedPtr||(gc._sharedPtr=Cs.omalloc(1e4)),gc._sharedPtrInUse=!0,Cs.HEAPU8.set(n.utf8Value,gc._sharedPtr),this.ptr=gc._sharedPtr):this.ptr=n.createString(Cs)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===gc._sharedPtr?gc._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};us(db,"LAST_ID",0);us(db,"_sharedPtr",0);us(db,"_sharedPtrInUse",!1);let ZI=db;class p1e{constructor(t){if(us(this,"_onigBinding"),us(this,"_ptr"),!Cs)throw new Z8("Must invoke loadWasm first.");const n=[],r=[];for(let o=0,c=t.length;o<c;o++){const d=new ub(t[o]);n[o]=d.createString(Cs),r[o]=d.utf8Length}const a=Cs.omalloc(4*t.length);Cs.HEAPU32.set(n,a/4);const s=Cs.omalloc(4*t.length);Cs.HEAPU32.set(r,s/4);const i=Cs.createOnigScanner(a,s,t.length);for(let o=0,c=t.length;o<c;o++)Cs.ofree(n[o]);Cs.ofree(s),Cs.ofree(a),i===0&&f1e(Cs),this._onigBinding=Cs,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new ZI(t);const s=this._findNextMatchSync(t,n,!1,a);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const s=this._onigBinding,i=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(i===0)return null;const o=s.HEAPU32;let c=i/4;const d=o[c++],f=o[c++],m=[];for(let b=0;b<f;b++){const g=t.convertUtf8OffsetToUtf16(o[c++]),v=t.convertUtf8OffsetToUtf16(o[c++]);m[b]={start:g,end:v,length:v-g}}return{index:d,captureIndices:m}}}function m1e(e){return typeof e.instantiator=="function"}function g1e(e){return typeof e.default=="function"}function x1e(e){return typeof e.data<"u"}function b1e(e){return typeof Response<"u"&&e instanceof Response}function y1e(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let U2;function v1e(e){if(U2)return U2;async function t(){Cs=await u1e(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),m1e(r)?r=await r.instantiator(n):g1e(r)?r=await r.default(n):(x1e(r)&&(r=r.data),b1e(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await w1e(r)(n):r=await S1e(r)(n):y1e(r)?r=await wv(r)(n):r instanceof WebAssembly.Module?r=await wv(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await wv(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return U2=t(),U2}function wv(e){return t=>WebAssembly.instantiate(e,t)}function w1e(e){return t=>WebAssembly.instantiateStreaming(e,t)}function S1e(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function E1e(e){return e&&await v1e(e),{createScanner(t){return new p1e(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new ZI(t)}}}const zN=n1e({langs:JI,themes:i1e,engine:()=>E1e(me(()=>import("./wasm-CG6Dc4jp.js"),[]))});function jp(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function k1e(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const e7=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Ls=String.raw;function Dp(e,t){if(e==null)throw new Error(t??"Value expected");return e}const eB=Ls`\[\^?`,tB=`c.? | C(?:-.?)?|${Ls`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Ls`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Ls`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Ls`o\{[^\}]*\}?`}|${Ls`\d{1,3}`}`,t7=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,q2=new RegExp(Ls` 911 \\ (?: 912 ${tB} 913 | [gk]<[^>]*>? 914 | [gk]'[^']*'? 915 | . 916 ) 917 | \( (?: 918 \? (?: 919 [:=!>({] 920 | <[=!] 921 | <[^>]*> 922 | '[^']*' 923 | ~\|? 924 | #(?:[^)\\]|\\.?)* 925 | [^:)]*[:)] 926 )? 927 | \*[^\)]*\)? 928 )? 929 | (?:${t7.source})+ 930 | ${eB} 931 | . 932`.replace(/\s+/g,""),"gsu"),Sv=new RegExp(Ls` 933 \\ (?: 934 ${tB} 935 | . 936 ) 937 | \[:(?:\^?\p{Alpha}+|\^):\] 938 | ${eB} 939 | && 940 | . 941`.replace(/\s+/g,""),"gsu");function _1e(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=V1e(n.flags),a=[r.extended],s={captureGroup:n.rules.captureGroup,getCurrentModX(){return a.at(-1)},numOpenGroups:0,popModX(){a.pop()},pushModX(m){a.push(m)},replaceCurrentModX(m){a[a.length-1]=m},singleline:n.rules.singleline};let i=[],o;for(q2.lastIndex=0;o=q2.exec(e);){const m=T1e(s,e,o[0],q2.lastIndex);m.tokens?i.push(...m.tokens):m.token&&i.push(m.token),m.lastIndex!==void 0&&(q2.lastIndex=m.lastIndex)}const c=[];let d=0;i.filter(m=>m.type==="GroupOpen").forEach(m=>{m.kind==="capturing"?m.number=++d:m.raw==="("&&c.push(m)}),d||c.forEach((m,b)=>{m.kind="capturing",m.number=b+1});const f=d||c.length;return{tokens:i.map(m=>m.type==="EscapedNumber"?$1e(m,f):m).flat(),flags:r}}function T1e(e,t,n,r){const[a,s]=n;if(n==="["||n==="[^"){const i=C1e(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(a==="\\"){if("AbBGyYzZ".includes(s))return{token:HN(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:I1e(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:rB(n)}}if(s==="K")return{token:aB("keep",n)};if(s==="N"||s==="R")return{token:ah("newline",n,{negate:s==="N"})};if(s==="O")return{token:ah("any",n)};if(s==="X")return{token:ah("text_segment",n)};const i=nB(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(a==="("){if(s==="*")return{token:H1e(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:z1e(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Rf("group",n)};if(n==="(?>")return{token:Rf("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Rf(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Rf("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Rf("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:P1e(n)}}if(e.getCurrentModX()){if(n==="#"){const i=t.indexOf(` 942`,r);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(n)){const i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(t)?i.lastIndex:r}}}if(n===".")return{token:ah("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":Ls`\A`,$:Ls`\Z`}[n]:n;return{token:HN(i,n)}}return n==="|"?{token:A1e(n)}:t7.test(n)?{tokens:W1e(n)}:{token:ju(jp(n),n)}}function C1e(e,t,n){const r=[UN(t[1]==="^",t)];let a=1,s;for(Sv.lastIndex=n;s=Sv.exec(e);){const i=s[0];if(i[0]==="["&&i[1]!==":")a++,r.push(UN(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(ju(93,i));else if(a--,r.push(L1e(i)),!a)break}else{const o=N1e(i);Array.isArray(o)?r.push(...o):r.push(o)}}return{tokens:r,lastIndex:Sv.lastIndex||e.length}}function N1e(e){if(e[0]==="\\")return nB(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!e7.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return ah("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?M1e(e):e==="&&"?R1e(e):ju(jp(e),e)}function nB(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return F1e(e);if("dDhHsSwW".includes(n))return U1e(e);if(e.startsWith(Ls`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return q1e(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),s=new TextEncoder;return[...a].map(i=>{const o=[...s.encode(i)].map(c=>`\\x${c.toString(16)}`).join("");return ju(jp(i),o)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return ju(G1e(e),e);if(qN.has(n))return ju(qN.get(n),e);if(/\d/.test(n))return O1e(t,e);if(e==="\\")throw new Error(Ls`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return ju(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function A1e(e){return{type:"Alternator",raw:e}}function HN(e,t){return{type:"Assertion",kind:e,raw:t}}function rB(e){return{type:"Backreference",raw:e}}function ju(e,t){return{type:"Character",value:e,raw:t}}function L1e(e){return{type:"CharacterClassClose",raw:e}}function M1e(e){return{type:"CharacterClassHyphen",raw:e}}function R1e(e){return{type:"CharacterClassIntersector",raw:e}}function UN(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function ah(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function aB(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Dp(n.flags),raw:t}}function O1e(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function P1e(e){return{type:"GroupClose",raw:e}}function Rf(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function j1e(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function D1e(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function I1e(e){return{type:"Subroutine",raw:e}}const B1e=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),qN=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function F1e(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return ju(jp(t.toUpperCase())-64,e)}function z1e(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";const a=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),s=GN(n),i=GN(r),o={};if(s&&(o.enable=s),i&&(o.disable=i),e.endsWith(")"))return t.replaceCurrentModX(a),aB("flags",e,{flags:o});if(e.endsWith(":"))return t.pushModX(a),t.numOpenGroups++,Rf("group",e,{...(s||i)&&{flags:o}});throw new Error(`Unexpected flag modifier "${e}"`)}function H1e(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:a}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const s=a?a.split(",").filter(f=>f!=="").map(f=>/^[+-]?\d+$/.test(f)?+f:f):[],[i,o,c]=s,d=B1e.has(n)?n.toLowerCase():"custom";switch(d){case"fail":case"mismatch":case"skip":if(s.length>0)throw new Error(`Named callout arguments not allowed "${s}"`);break;case"error":if(s.length>1)throw new Error(`Named callout allows only one argument "${s}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!s.length||s.length>2)throw new Error(`Named callout must have one or two arguments "${s}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(s.length===2&&(typeof o=="number"||!/^[<>X]$/.test(o)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${o}"`);break;case"count":case"total_count":if(s.length>1)throw new Error(`Named callout allows only one argument "${s}"`);if(s.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(s.length!==3)throw new Error(`Named callout must have three arguments "${s}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof o=="number"||!/^(?:[<>!=]=|[<>])$/.test(o))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${o}"`);if(typeof c=="string"&&!/^[A-Za-z_]\w*$/.test(c))throw new Error(`Named callout argument three must be a tag or number "${c}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${d}"`)}return j1e(d,r??null,a?.split(",")??null,e)}function VN(e){let t=null,n,r;if(e[0]==="{"){const{minStr:a,maxStr:s}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+a>i||s&&+s>i)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+a,r=s===void 0?+a:s===""?1/0:+s,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return D1e(t,n,r,e)}function U1e(e){const t=e[1].toLowerCase();return ah({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function q1e(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return ah("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function GN(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function V1e(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function G1e(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function $1e(e,t){const{raw:n,inCharClass:r}=e,a=n.slice(1);if(!r&&(a!=="0"&&a.length===1||a[0]!=="0"&&+a<=t))return[rB(n)];const s=[],i=a.match(/^[0-7]+|\d/g);for(let o=0;o<i.length;o++){const c=i[o];let d;if(o===0&&c!=="8"&&c!=="9"){if(d=parseInt(c,8),d>127)throw new Error(Ls`Octal encoded byte above 177 unsupported "${n}"`)}else d=jp(c);s.push(ju(d,(o===0?"\\":"")+c))}return s}function W1e(e){const t=[],n=new RegExp(t7,"gy");let r;for(;r=n.exec(e);){const a=r[0];if(a[0]==="{"){const s=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(a);if(s){const{min:i,max:o}=s.groups;if(+i>+o&&a.endsWith("?")){n.lastIndex--,t.push(VN(a.slice(0,-1)));continue}}}t.push(VN(a))}return t}function sB(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function Y1e(e){return Q1e.has(e.type)}const Q1e=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function iB(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=_1e(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),a=(b,g)=>{const v=r.tokens[s.nextIndex];switch(s.parent=b,s.nextIndex++,v.type){case"Alternator":return bh();case"Assertion":return X1e(v);case"Backreference":return K1e(v,s);case"Character":return hb(v.value,{useLastValid:!!g.isCheckingRangeEnd});case"CharacterClassHyphen":return J1e(v,s,g);case"CharacterClassOpen":return Z1e(v,s,g);case"CharacterSet":return ege(v,s);case"Directive":return ige(v.kind,{flags:v.flags});case"GroupOpen":return tge(v,s,g);case"NamedCallout":return lge(v.kind,v.tag,v.arguments);case"Quantifier":return nge(v,s);
vendor: 8,577 bytes, line 942
942case"Subroutine":return rge(v,s);default:throw new Error(`Unexpected token type "${v.type}"`)}},s={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:a},i=uge(oge(r.flags));let o=i.body[0];for(;s.nextIndex<r.tokens.length;){const b=a(o,{});b.type==="Alternative"?(i.body.push(b),o=b):o.body.push(b)}const{capturingGroups:c,hasNumberedRef:d,namedGroupsByName:f,subroutines:m}=s;if(d&&f.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:b}of m)if(typeof b=="number"){if(b>c.length)throw new Error("Subroutine uses a group number that's not defined");b&&(c[b-1].isSubroutined=!0)}else if(f.has(b)){if(f.get(b).length>1)throw new Error(Ls`Subroutine uses a duplicate group name "\g<${b}>"`);f.get(b)[0].isSubroutined=!0}else throw new Error(Ls`Subroutine uses a group name that's not defined "\g<${b}>"`);return i}function X1e({kind:e}){return _6(Dp({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===Ls`\B`||e===Ls`\Y`})}function K1e({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),a=(s,i=!1)=>{const o=t.capturingGroups.length;let c=!1;if(s>o)if(t.skipBackrefValidation)c=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,T6(i?o+1-s:s,{orphan:c})};if(n){const s=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(s)return a(+s.groups.num,!!s.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return T6(r)}return a(+r)}function J1e(e,t,n){const{tokens:r,walk:a}=t,s=t.parent,i=s.body.at(-1),o=r[t.nextIndex];if(!n.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&o&&o.type!=="CharacterClassOpen"&&o.type!=="CharacterClassClose"&&o.type!=="CharacterClassIntersector"){const c=a(s,{...n,isCheckingRangeEnd:!0});if(i.type==="Character"&&c.type==="Character")return s.body.pop(),sge(i,c);throw new Error("Invalid character class range")}return hb(jp("-"))}function Z1e({negate:e},t,n){const{tokens:r,walk:a}=t,s=r[t.nextIndex],i=[vx()];let o=YN(s);for(;o.type!=="CharacterClassClose";){if(o.type==="CharacterClassIntersector")i.push(vx()),t.nextIndex++;else{const d=i.at(-1);d.body.push(a(d,n))}o=YN(r[t.nextIndex],s)}const c=vx({negate:e});return i.length===1?c.body=i[0].body:(c.kind="intersection",c.body=i.map(d=>d.body.length===1?d.body[0]:d)),t.nextIndex++,c}function ege({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:s,unicodePropertyMap:i}=r;if(e==="property"){const o=fb(n);if(e7.has(o)&&!i?.has(o))e="posix",n=o;else return Of(n,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:s,unicodePropertyMap:i})}return e==="posix"?cge(n,{negate:t}):C6(e,{negate:t})}function tge(e,t,n){const{tokens:r,capturingGroups:a,namedGroupsByName:s,skipLookbehindValidation:i,walk:o}=t,c=dge(e),d=c.type==="AbsenceFunction",f=WN(c),m=f&&c.negate;if(c.type==="CapturingGroup"&&(a.push(c),c.name&&k1e(s,c.name,[]).push(c)),d&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let b=QN(r[t.nextIndex]);for(;b.type!=="GroupClose";){if(b.type==="Alternator")c.body.push(bh()),t.nextIndex++;else{const g=c.body.at(-1),v=o(g,{...n,isInAbsenceFunction:n.isInAbsenceFunction||d,isInLookbehind:n.isInLookbehind||f,isInNegLookbehind:n.isInNegLookbehind||m});if(g.body.push(v),(f||n.isInLookbehind)&&!i){const E="Lookbehind includes a pattern not allowed by Oniguruma";if(m||n.isInNegLookbehind){if($N(v)||v.type==="CapturingGroup")throw new Error(E)}else if($N(v)||WN(v)&&v.negate)throw new Error(E)}}b=QN(r[t.nextIndex])}return t.nextIndex++,c}function nge({kind:e,min:t,max:n},r){const a=r.parent,s=a.body.at(-1);if(!s||!Y1e(s))throw new Error("Quantifier requires a repeatable token");const i=lB(e,t,n,s);return a.body.pop(),i}function rge({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let a=e.slice(3,-1);const s=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);if(s){const o=+s.groups.num,c=n.length;if(t.hasNumberedRef=!0,a={"":o,"+":c+o,"-":c+1-o}[s.groups.sign],a<1)throw new Error("Invalid subroutine number")}else a==="0"&&(a=0);const i=cB(a);return r.push(i),i}function age(e,t){return{type:"AbsenceFunction",kind:e,body:lg(t?.body)}}function bh(e){return{type:"Alternative",body:uB(e?.body)}}function _6(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function T6(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function oB(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!hge(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:lg(t?.body)}}function hb(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function vx(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:uB(e?.body)}}function sge(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function C6(e,t){const n=!!t?.negate,r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function ige(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Dp(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function oge(e){return{type:"Flags",...e}}function Cl(e){const t=e?.atomic,n=e?.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:lg(e?.body)}}function Z0(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:lg(e?.body)}}function lge(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function cge(e,t){const n=!!t?.negate;if(!e7.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function lB(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function uge(e,t){return{type:"Regex",body:lg(t?.body),flags:e}}function cB(e){return{type:"Subroutine",ref:e}}function Of(e,t){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=n.unicodePropertyMap?.get(fb(e));if(!r){if(n.normalizeUnknownPropertyNames)r=fge(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Ls`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function dge({flags:e,kind:t,name:n,negate:r,number:a}){switch(t){case"absence_repeater":return age("repeater");case"atomic":return Cl({atomic:!0});case"capturing":return oB(a,{name:n});case"group":return Cl({flags:e});case"lookahead":case"lookbehind":return Z0({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function lg(e){if(e===void 0)e=[bh()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function uB(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function $N(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function WN(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function hge(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}
vendor: 11,959 bytes, lines 942-1039
942function fge(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function fb(e){return e.replace(/[- _]+/g,"").toLowerCase()}function YN(e,t){return Dp(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function QN(e){return Dp(e,"Unclosed group")}function u1(e,t,n=null){function r(s,i){for(let o=0;o<s.length;o++){const c=a(s[o],i,o,s);o=Math.max(-1,o+c)}}function a(s,i=null,o=null,c=null){let d=0,f=!1;const m={node:s,parent:i,key:o,container:c,root:e,remove(){V2(c).splice(Math.max(0,Cf(o)+d),1),d--,f=!0},removeAllNextSiblings(){return V2(c).splice(Cf(o)+1)},removeAllPrevSiblings(){const _=Cf(o)+d;return d-=_,V2(c).splice(0,Math.max(0,_))},replaceWith(_,A={}){const R=!!A.traverse;c?c[Math.max(0,Cf(o)+d)]=_:Dp(i,"Can't replace root node")[o]=_,R&&a(_,i,o,c),f=!0},replaceWithMultiple(_,A={}){const R=!!A.traverse;if(V2(c).splice(Math.max(0,Cf(o)+d),1,..._),d+=_.length-1,R){let P=0;for(let V=0;V<_.length;V++)P+=a(_[V],i,Cf(o)+V+P,c)}f=!0},skip(){f=!0}},{type:b}=s,g=t["*"],v=t[b],E=typeof g=="function"?g:g?.enter,T=typeof v=="function"?v:v?.enter;if(E?.(m,n),T?.(m,n),!f)switch(b){case"AbsenceFunction":case"CapturingGroup":case"Group":r(s.body,s);break;case"Alternative":case"CharacterClass":r(s.body,s);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":a(s.min,s,"min"),a(s.max,s,"max");break;case"LookaroundAssertion":r(s.body,s);break;case"Quantifier":a(s.body,s,"body");break;case"Regex":r(s.body,s),a(s.flags,s,"flags");break;default:throw new Error(`Unexpected node type "${b}"`)}return v?.exit?.(m,n),g?.exit?.(m,n),d}return a(e),e}function V2(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Cf(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const pge=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function mge(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function gge(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const $o=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function n7(e,t,n,r){const a=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),s=[!1];let i=0,o="";for(const c of e.matchAll(a)){const{0:d,groups:{$skip:f}}=c;if(!f&&(!r||r===$o.DEFAULT==!i)){n instanceof Function?o+=n(c,{context:i?$o.CHAR_CLASS:$o.DEFAULT,negated:s[s.length-1]}):o+=n;continue}d[0]==="["?(i++,s.push(d[1]==="^")):d==="]"&&i&&(i--,s.pop()),o+=d}return o}function dB(e,t,n,r){n7(e,t,n,r)}function xge(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const a=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=n;let s=0,i;for(;i=a.exec(e);){const{0:o,groups:{$skip:c}}=i;if(!c&&(!r||r===$o.DEFAULT==!s))return i;o==="["?s++:o==="]"&&s&&s--,a.lastIndex==i.index&&a.lastIndex++}return null}function G2(e,t,n){return!!xge(e,t,0,n)}function bge(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,a=0,s=1,i;for(;i=n.exec(e);){const[o]=i;if(o==="[")a++;else if(a)o==="]"&&a--;else if(o==="(")s++;else if(o===")"&&(s--,!s)){r=i.index;break}}return e.slice(t,r)}const XN=new RegExp(String.raw`(?<noncapturingStart>${pge})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function yge(e,t){const n=t?.hiddenCaptures??[];let r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const a="(?>",s="(?:(?=(",i=[0],o=[];let c=0,d=0,f=NaN,m;do{m=!1;let b=0,g=0,v=!1,E;for(XN.lastIndex=Number.isNaN(f)?0:f+s.length;E=XN.exec(e);){const{0:T,index:_,groups:{capturingStart:A,noncapturingStart:R}}=E;if(T==="[")b++;else if(b)T==="]"&&b--;else if(T===a&&!v)f=_,v=!0;else if(v&&R)g++;else if(A)v?g++:(c++,i.push(c+d));else if(T===")"&&v){if(!g){d++;const P=c+d;if(e=`${e.slice(0,f)}${s}${e.slice(f+a.length,_)}))<$$${P}>)${e.slice(_+1)}`,m=!0,o.push(P),mge(n,P),r.size){const V=new Map;r.forEach((U,D)=>{V.set(D>=P?D+1:D,U.map(H=>H>=P?H+1:H))}),r=V}break}g--}}}while(m);return n.push(...o),e=n7(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:b,groups:{backrefNum:g,wrappedBackrefNum:v}})=>{if(g){const E=+g;if(E>i.length-1)throw new Error(`Backref "${b}" greater than number of captures`);return`\\${i[E]}`}return`\\${v}`},$o.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const hB=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Ev=new RegExp(String.raw` 943\\(?: \d+ 944 | c[A-Za-z] 945 | [gk]<[^>]+> 946 | [pPu]\{[^\}]+\} 947 | u[A-Fa-f\d]{4} 948 | x[A-Fa-f\d]{2} 949 ) 950| \((?: \? (?: [:=!>] 951 | <(?:[=!]|[^>]+>) 952 | [A-Za-z\-]+: 953 | \(DEFINE\) 954 ))? 955| (?<qBase>${hB})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 956| \\?. 957`.replace(/\s+/g,""),"gsu");function vge(e){if(!new RegExp(`${hB}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,a="",s=0,i;for(Ev.lastIndex=0;i=Ev.exec(e);){const{0:o,index:c,groups:{qBase:d,qMod:f,invalidQ:m}}=i;if(o==="[")s||(r=c),s++;else if(o==="]")s?s--:r=null;else if(!s)if(f==="+"&&a&&!a.startsWith("(")){if(m)throw new Error(`Invalid quantifier "${o}"`);let b=-1;if(/^\{\d+\}$/.test(d))e=gge(e,c+d.length,f,"");else{if(a===")"||a==="]"){const g=a===")"?n:r;if(g===null)throw new Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,g)}(?>${e.slice(g,c)}${d})${e.slice(c+o.length)}`}else e=`${e.slice(0,c-a.length)}(?>${a}${d})${e.slice(c+o.length)}`;b+=4}Ev.lastIndex+=b}else o[0]==="("?t.push(c):o===")"&&(n=t.length?t.pop():null);a=o}return{pattern:e}}const qo=String.raw,wge=qo`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,N6=qo`\(\?R=(?<rDepth>[^\)]+)\)|${wge}`,pb=qo`\(\?<(?![=!])(?<captureName>[^>]+)>`,fB=qo`${pb}|(?<unnamed>\()(?!\?)`,$0=new RegExp(qo`${pb}|${N6}|\(\?|\\?.`,"gsu"),kv="Cannot use multiple overlapping recursions";function Sge(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let a=t?.captureTransfers??new Map;if(!new RegExp(N6,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};if(r==="plugin"&&G2(e,qo`\(\?\(DEFINE\)`,$o.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const s=[],i=G2(e,qo`\\[1-9]`,$o.DEFAULT),o=new Map,c=[];let d=!1,f=0,m=0,b;for($0.lastIndex=0;b=$0.exec(e);){const{0:g,groups:{captureName:v,rDepth:E,gRNameOrNum:T,gRDepth:_}}=b;if(g==="[")f++;else if(f)g==="]"&&f--;else if(E){if(KN(E),d)throw new Error(kv);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const A=e.slice(0,b.index),R=e.slice($0.lastIndex);if(G2(R,N6,$o.DEFAULT))throw new Error(kv);const P=+E-1;e=JN(A,R,P,!1,n,s,m),a=eA(a,A,P,s.length,0,m);break}else if(T){KN(_);let A=!1;for(const $ of c)if($.name===T||$.num===+T){if(A=!0,$.hasRecursedWithin)throw new Error(kv);break}if(!A)throw new Error(qo`Recursive \g cannot be used outside the referenced group "${r==="external"?T:qo`\g<${T}&R=${_}>`}"`);const R=o.get(T),P=bge(e,R);if(i&&G2(P,qo`${pb}|\((?!\?)`,$o.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const V=e.slice(R,b.index),U=P.slice(V.length+g.length),D=s.length,H=+_-1,q=JN(V,U,H,!0,n,s,m);a=eA(a,V,H,s.length-D,D,m);const W=e.slice(0,R),z=e.slice(R+P.length);e=`${W}${q}${z}`,$0.lastIndex+=q.length-g.length-V.length-U.length,c.forEach($=>$.hasRecursedWithin=!0),d=!0}else if(v)m++,o.set(String(m),$0.lastIndex),o.set(v,$0.lastIndex),c.push({num:m,name:v});else if(g[0]==="("){const A=g==="(";A&&(m++,o.set(String(m),$0.lastIndex)),c.push(A?{num:m}:{})}else g===")"&&c.pop()}return n.push(...s),{pattern:e,captureTransfers:a,hiddenCaptures:n}}function KN(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function JN(e,t,n,r,a,s,i){const o=new Set;r&&dB(e+t,pb,({groups:{captureName:d}})=>{o.add(d)},$o.DEFAULT);const c=[n,r?o:null,a,s,i];return`${e}${ZN(`(?:${e}`,"forward",...c)}(?:)${ZN(`${t})`,"backward",...c)}${t}`}function ZN(e,t,n,r,a,s,i){const c=f=>t==="forward"?f+2:n-f+2-1;let d="";for(let f=0;f<n;f++){const m=c(f);d+=n7(e,qo`${fB}|\\k<(?<backref>[^>]+)>`,({0:b,groups:{captureName:g,unnamed:v,backref:E}})=>{if(E&&r&&!r.has(E))return b;const T=`_$${m}`;if(v||g){const _=i+s.length+1;return s.push(_),Ege(a,_),v?b:`(?<${g}${T}>`}return qo`\k<${E}${T}>`},$o.DEFAULT)}return d}function Ege(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function eA(e,t,n,r,a,s){if(e.size&&r){let i=0;dB(t,fB,()=>i++,$o.DEFAULT);const o=s-i+a,c=new Map;return e.forEach((d,f)=>{const m=(r-i*n)/n,b=i*n,g=f>o+i?f+r:f,v=[];for(const E of d)if(E<=o)v.push(E);else if(E>o+i+m)v.push(E+r);else if(E<=o+i)for(let T=0;T<=n;T++)v.push(E+i*T);else for(let T=0;T<=n;T++)v.push(E+b+m*T);c.set(g,v)}),c}return e}var ds=String.fromCodePoint,Nn=String.raw,Bu={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};Bu.bugFlagVLiteralHyphenIsRange=Bu.unicodeSets?(()=>{try{new RegExp(Nn`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Bu.bugNestedClassIgnoresNegation=Bu.unicodeSets&&new RegExp("[[^a]]","v").test("a");function h5(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function F1(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function A6(e,t){return tA[e]>=tA[t]}function kge(e,t){if(e==null)throw new Error(t??"Value expected");return e}var tA={ES2025:2025,ES2024:2024,ES2018:2018},_ge={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function pB(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!_ge[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Bu.flagGroups?"ES2025":Bu.unicodeSets?"ES2024":"ES2018"),t}var Tge="[ -\r ]",Cge=new Set([ds(304),ds(305)]),Nu=Nn`[\p{L}\p{M}\p{N}\p{Pc}]`;function mB(e){if(Cge.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),a=Lge.get(n),s=Nge.get(n),i=Age.get(n);return[...r].length===1&&t.add(r),i&&t.add(i),a&&t.add(a),t.add(n),s&&t.add(s),[...t]}var r7=new Map(`C Other 958Cc Control cntrl 959Cf Format 960Cn Unassigned 961Co Private_Use 962Cs Surrogate 963L Letter 964LC Cased_Letter 965Ll Lowercase_Letter 966Lm Modifier_Letter 967Lo Other_Letter 968Lt Titlecase_Letter 969Lu Uppercase_Letter 970M Mark Combining_Mark 971Mc Spacing_Mark 972Me Enclosing_Mark 973Mn Nonspacing_Mark 974N Number 975Nd Decimal_Number digit 976Nl Letter_Number 977No Other_Number 978P Punctuation punct 979Pc Connector_Punctuation 980Pd Dash_Punctuation 981Pe Close_Punctuation 982Pf Final_Punctuation 983Pi Initial_Punctuation 984Po Other_Punctuation 985Ps Open_Punctuation 986S Symbol 987Sc Currency_Symbol 988Sk Modifier_Symbol 989Sm Math_Symbol 990So Other_Symbol 991Z Separator 992Zl Line_Separator 993Zp Paragraph_Separator 994Zs Space_Separator 995ASCII 996ASCII_Hex_Digit AHex 997Alphabetic Alpha 998Any 999Assigned 1000Bidi_Control Bidi_C 1001Bidi_Mirrored Bidi_M 1002Case_Ignorable CI 1003Cased 1004Changes_When_Casefolded CWCF 1005Changes_When_Casemapped CWCM 1006Changes_When_Lowercased CWL 1007Changes_When_NFKC_Casefolded CWKCF 1008Changes_When_Titlecased CWT 1009Changes_When_Uppercased CWU 1010Dash 1011Default_Ignorable_Code_Point DI 1012Deprecated Dep 1013Diacritic Dia 1014Emoji 1015Emoji_Component EComp 1016Emoji_Modifier EMod 1017Emoji_Modifier_Base EBase 1018Emoji_Presentation EPres 1019Extended_Pictographic ExtPict 1020Extender Ext 1021Grapheme_Base Gr_Base 1022Grapheme_Extend Gr_Ext 1023Hex_Digit Hex 1024IDS_Binary_Operator IDSB 1025IDS_Trinary_Operator IDST 1026ID_Continue IDC 1027ID_Start IDS 1028Ideographic Ideo 1029Join_Control Join_C 1030Logical_Order_Exception LOE 1031Lowercase Lower 1032Math 1033Noncharacter_Code_Point NChar 1034Pattern_Syntax Pat_Syn 1035Pattern_White_Space Pat_WS 1036Quotation_Mark QMark 1037Radical 1038Regional_Indicator RI 1039Sentence_Terminal STerm
1040Soft_Dotted SD 1041Terminal_Punctuation Term 1042Unified_Ideograph UIdeo 1043Uppercase Upper 1044Variation_Selector VS 1045White_Space space 1046XID_Continue XIDC 1047XID_Start XIDS`.split(/\s/).map(e=>[fb(e),e])),Nge=new Map([["s",ds(383)],[ds(383),"s"]]),Age=new Map([[ds(223),ds(7838)],[ds(107),ds(8490)],[ds(229),ds(8491)],[ds(969),ds(8486)]]),Lge=new Map([Ud(453),Ud(456),Ud(459),Ud(498),..._v(8072,8079),..._v(8088,8095),..._v(8104,8111),Ud(8124),Ud(8140),Ud(8188)]),Mge=new Map([["alnum",Nn`[\p{Alpha}\p{Nd}]`],["alpha",Nn`\p{Alpha}`],["ascii",Nn`\p{ASCII}`],["blank",Nn`[\p{Zs}\t]`],["cntrl",Nn`\p{Cc}`],["digit",Nn`\p{Nd}`],["graph",Nn`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",Nn`\p{Lower}`],["print",Nn`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",Nn`[\p{P}\p{S}]`],["space",Nn`\p{space}`],["upper",Nn`\p{Upper}`],["word",Nn`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",Nn`\p{AHex}`]]);function Rge(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Ud(e){const t=ds(e);return[t.toLowerCase(),t]}function _v(e,t){return Rge(e,t).map(n=>Ud(n))}var gB=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Oge(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};xB(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:A6(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};u1(e,Pge,r);const a={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},s={currentFlags:a,prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};u1(e,jge,s);const i={groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer};return u1(e,Dge,i),e._originMap=s.groupOriginByCopy,e._strategy=r.strategy,e}var Pge={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:a}=e;if(a==="repeater"){const s=Cl();s.body[0].body.push(Z0({negate:!0,body:r}),Of("Any"));const i=Cl();i.body[0].body.push(lB("greedy",0,1/0,s)),n(Da(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const a=e.body.filter(s=>s.kind==="flags");for(let s=n+1;s<t.body.length;s++){const i=t.body[s];F1(r,i,[]).push(...a)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=yB(t.get(e));if(n){const r=Cl({flags:n});r.body[0].body=e.body,e.body=[Da(r,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:a,remove:s,replaceWith:i},o){const{kind:c,negate:d}=e,{asciiWordBoundaries:f,avoidSubclass:m,supportedGNodes:b,wordIsAscii:g}=o;if(c==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${d?"Y":"y"}"`);if(c==="line_end")i(Da(Z0({body:[bh({body:[_6("string_end")]}),bh({body:[hb(10)]})]}),t));else if(c==="line_start")i(Da(Au(Nn`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c==="search_start")if(b.has(e))a.flags.sticky=!0,s();else{const v=r[n-1];if(v&&Uge(v))i(Da(Z0({negate:!0}),t));else{if(m)throw new Error(Nn`Uses "\G" in a way that requires a subclass`);i(qd(_6("string_start"),t)),o.strategy="clip_search"}}else if(!(c==="string_end"||c==="string_start"))if(c==="string_end_newline")i(Da(Au(Nn`(?=\n?\z)`),t));else if(c==="word_boundary"){if(!g&&!f){const v=`(?:(?<=${Nu})(?!${Nu})|(?<!${Nu})(?=${Nu}))`,E=`(?:(?<=${Nu})(?=${Nu})|(?<!${Nu})(?!${Nu}))`;i(Da(Au(d?E:v),t))}}else throw new Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Cv(n)&&(n=Tv(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Cv(r)&&(r=Tv(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const r=vx({body:[e]});n(Da(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:a,digitIsAscii:s,spaceIsAscii:i,wordIsAscii:o}){const{kind:c,negate:d,value:f}=e;if(s&&(c==="digit"||f==="digit")){n(qd(C6("digit",{negate:d}),t));return}if(i&&(c==="space"||f==="space")){n(Da(Nv(Au(Tge),d),t));return}if(o&&(c==="word"||f==="word")){n(qd(C6("word",{negate:d}),t));return}if(c==="any")n(qd(Of("Any"),t));else if(c==="digit")n(qd(Of("Nd",{negate:d}),t));else if(c!=="dot")if(c==="text_segment"){if(r==="strict")throw new Error(Nn`Use of "\X" requires non-strict accuracy`);const m="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",b=Nn`\p{RI}{2}|${m}(?:\u200D${m})*`;n(Da(Au(Nn`(?>\r\n|${a?Nn`\p{RGI_Emoji}`:b}|\P{M}
1047\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c==="hex")n(qd(Of("AHex",{negate:d}),t));else if(c==="newline")n(Da(Au(d?`[^ 1048]`:`(?>\r 1049?|[ 1050\v\f \u2028\u2029])`),t));else if(c==="posix")if(!a&&(f==="graph"||f==="print")){if(r==="strict")throw new Error(`POSIX class "${f}" requires min target ES2024 or non-strict accuracy`);let m={graph:"!-~",print:" -~"}[f];d&&(m=`\0-${ds(m.codePointAt(0)-1)}${ds(m.codePointAt(2)+1)}-ô¿¿`),n(Da(Au(`[${m}]`),t))}else n(Da(Nv(Au(Mge.get(f)),d),t));else if(c==="property")r7.has(fb(f))||(e.key="sc");else if(c==="space")n(qd(Of("space",{negate:d}),t));else if(c==="word")n(Da(Nv(Au(Nu),d),t));else throw new Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:a,removeAllPrevSiblings:s,removeAllNextSiblings:i}){const{kind:o,flags:c}=e;if(o==="flags")if(!c.enable&&!c.disable)r();else{const d=Cl({flags:c});d.body[0].body=i(),a(Da(d,t),{traverse:!0})}else if(o==="keep"){const d=n.body[0],m=n.body.length===1&&sB(d,{type:"Group"})&&d.body[0].body.length===1?d.body[0]:n;if(t.parent!==m||m.body.length>1)throw new Error(Nn`Uses "\K" in a way that's unsupported`);const b=Z0({behind:!0});b.body[0].body=s(),a(Da(b,t))}else throw new Error(`Unexpected directive kind "${o}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(Da(Z0({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=Cl();t.body[0].body.push(e.body),e.body=Da(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,a=!1;for(const s of e.body)if(s.body.length===1&&s.body[0].kind==="search_start")s.body.pop();else{const i=wB(s.body);i?(r=!0,Array.isArray(i)?n.push(...i):n.push(i)):a=!0}r&&!a&&n.forEach(s=>t.add(s))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(Nn`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Cv(n)&&(n=Tv(n,t),e.ref=n)}},jge={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:a}=e;r||n.set(e,[...t.get(a).map(({node:s})=>s)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:a,groupsByName:s,multiplexCapturesToLeftByRef:i,openRefs:o,reffedNodesByReferencer:c}){const d=a.get(e);if(d&&o.has(e.number)){const m=qd(nA(e.number),t);c.set(m,o.get(e.number)),n(m);return}o.set(e.number,e),i.set(e.number,[]),e.name&&F1(i,e.name,[]);const f=i.get(e.name??e.number);for(let m=0;m<f.length;m++){const b=f[m];if(d===b.node||d&&d===b.origin||e===b.origin){f.splice(m,1);break}}if(i.get(e.number).push({node:e,origin:d}),e.name&&i.get(e.name).push({node:e,origin:d}),e.name){const m=F1(s,e.name,new Map);let b=!1;if(d)b=!0;else for(const g of m.values())if(!g.hasDuplicateNameToRemove){b=!0;break}s.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:b})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=h5(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:a,ref:s}=e;if(a){let f=t;for(;(f=f.parent)&&!(f.type==="CapturingGroup"&&(f.name===s||f.number===s)););r.reffedNodesByReferencer.set(e,f);return}
vendor: 14,665 bytes, line 1050
1050const i=r.subroutineRefMap.get(s),o=s===0,c=o?nA(0):bB(i,r.groupOriginByCopy,null);let d=c;if(!o){const f=yB(Fge(i,b=>b.type==="Group"&&!!b.flags)),m=f?h5(r.globalFlags,f):r.globalFlags;Ige(m,r.currentFlags)||(d=Cl({flags:zge(m)}),d.body[0].body.push(c))}n(Da(d,t),{traverse:!o})}},Dge={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const s=r.reffedNodesByReferencer.get(e).filter(i=>Bge(i,e));if(!s.length)n(Da(Z0({negate:!0}),t));else if(s.length>1){const i=Cl({atomic:!0,body:s.reverse().map(o=>bh({body:[T6(o.number)]}))});n(Da(i,t))}else e.ref=s[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const a=oB();e.body.at(-1).body.push(a)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function xB(e){u1(e,{"*"({node:t,parent:n}){t.parent=n}})}function Ige(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Bge(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=vB(n.parent);for(const a of r){if(a===n)break;if(a===e||SB(a,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function bB(e,t,n,r){const a=Array.isArray(e)?[]:{};for(const[s,i]of Object.entries(e))s==="parent"?a.parent=Array.isArray(n)?r:n:i&&typeof i=="object"?a[s]=bB(i,t,a,n):(s==="type"&&i==="CapturingGroup"&&t.set(a,t.get(e)??e),a[s]=i);return a}function nA(e){const t=cB(e);return t.isRecursive=!0,t}function Fge(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Tv(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function yB(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(a=>{r.enable?.[a]&&(delete n.disable[a],n.enable[a]=!0),r.disable?.[a]&&(n.disable[a]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function zge({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function vB(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function wB(e){const t=e.find(n=>n.kind==="search_start"||qge(n,{negate:!1})||!Hge(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const a=wB(r.body);if(!a)return null;Array.isArray(a)?n.push(...a):n.push(a)}return n}return null}function SB(e,t){const n=vB(e)??[];for(const r of n)if(r===t||SB(r,t))return!0;return!1}function Hge({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function Uge(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function qge(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&sB(e.body[0],{type:"Assertion",kind:"search_start"})}function Cv(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Au(e,t){const r=iB(e,{...t,unicodePropertyMap:r7}).body;return r.length>1||r[0].body.length>1?Cl({body:r}):r[0].body[0]}function Nv(e,t){return e.negate=t,e}function qd(e,t){return e.parent=t,e}function Da(e,t){return xB(e),e.parent=t,e}function Vge(e,t){const n=pB(t),r=A6(n.target,"ES2024"),a=A6(n.target,"ES2025"),s=n.rules.recursionLimit;if(!Number.isInteger(s)||s<2||s>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,o=null;if(!a){const g=[e.flags.ignoreCase];u1(e,Gge,{getCurrentModI:()=>g.at(-1),popModI(){g.pop()},pushModI(v){g.push(v)},setHasCasedChar(){g.at(-1)?i=!0:o=!0}})}const c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!o)};let d=e;const f={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:d,originMap:e._originMap,recursionLimit:s,useAppliedIgnoreCase:!!(!a&&i&&o),useFlagMods:a,useFlagV:r,verbose:n.verbose};function m(g){return f.lastNode=d,d=g,kge($ge[g.type],`Unexpected node type "${g.type}"`)(g,f,m)}const b={pattern:e.body.map(m).join("|"),flags:m(e.flags),options:{...e.options}};return r||(delete b.options.force.v,b.options.disable.v=!0,b.options.unicodeSetsPlugin=null),b._captureTransfers=new Map,b._hiddenCaptures=[],f.captureMap.forEach((g,v)=>{g.hidden&&b._hiddenCaptures.push(v),g.transferTo&&F1(b._captureTransfers,g.transferTo,[]).push(v)}),b}var Gge={"*":{enter({node:e},t){if(aA(e)){const n=t.getCurrentModI();t.pushModI(e.flags?h5({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){aA(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){a7(ds(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),EB(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&gB.has(e.value)&&t.setHasCasedChar()}},$ge={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?Nn`\B`:Nn`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:a,number:s}=e,i={ignoreCase:t.currentFlags.ignoreCase},o=t.originMap.get(e);return o&&(i.hidden=!0,s>o.number&&(i.transferTo=o.number)),t.captureMap.set(s,i),`(${a?`?<${a}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=ds(e),r=Nf(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&a7(n)){const a=mB(n);return t.inCharClass?a.join(""):a.length>1?`[${a.join("")}]`:a[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:a,parent:s}=e;let{body:i}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");Bu.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(sA)&&(i=[hb(45),...i.filter(d=>!sA(d))]);const o=()=>`[${a?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Bu.bugNestedClassIgnoresNegation)&&!a){const f=i.filter(m=>m.type==="CharacterClass"&&m.kind==="union"&&m.negate);if(f.length){const m=Cl(),b=m.body[0];return m.parent=s,b.parent=m,i=i.filter(g=>!f.includes(g)),e.body=i,i.length?(e.parent=b,b.body.push(e)):m.body.pop(),f.forEach(g=>{const v=bh({body:[g]});g.parent=v,v.parent=m,m.body.push(v)}),n(m)}}t.inCharClass=!0;const d=o();return t.inCharClass=!1,d}const c=i[0];if(r==="union"&&!a&&c&&((!t.useFlagV||!t.verbose)&&s.kind==="union"&&!(Bu.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&s.kind==="intersection"&&i.length===1&&c.type!=="CharacterClassRange"))return i.map(n).join("");if(!t.useFlagV&&s.type==="CharacterClass")throw new Error("Use of nested character class requires min target ES2024");return o()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},s=Nf(n,a),i=Nf(r,a),o=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const c=EB(e);Kge(c).forEach(f=>{o.add(Array.isArray(f)?`${Nf(f[0],a)}-${Nf(f[1],a)}`:Nf(f,a))})}return`${s}-${i}${[...o].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},a){if(e==="dot")return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":Nn`[^\n]`;if(e==="digit")return t?Nn`\D`:Nn`\d`;if(e==="property"){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&gB.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?Nn`\P`:Nn`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?Nn`\W`:Nn`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:r},a,s){const i=a.currentFlags;n&&(a.currentFlags=h5(i,n));const o=t.map(s).join("|"),c=!a.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!a.useFlagMods||!n)?o:`(?${Jge(e,n,a.useFlagMods)}${o})`;return a.currentFlags=i,c},LookaroundAssertion({body:e,kind:t,negate:n},r,a){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(a).join("|")})`},Quantifier(e,t,n){return n(e.body)+Zge(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:Nn`\g<${t}&R=${r}>`}},Wge=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Yge=new Set(["-","\\","]","^","["]),Qge=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),rA=new Map([[9,Nn`\t`],[10,Nn`\n`],[11,Nn`\v`],[12,Nn`\f`],[13,Nn`\r`],[8232,Nn`\u2028`],[8233,Nn`\u2029`],[65279,Nn`\uFEFF`]]),Xge=new RegExp("^\\p{Cased}$","u");function a7(e){return Xge.test(e)}function EB(e,t){const n=!!t?.firstOnly,r=e.min.value,a=e.max.value,s=[];if(r<65&&(a===65535||a>=131071)||r===65536&&a>=131071)return s;for(let i=r;i<=a;i++){const o=ds(i);if(!a7(o))continue;const c=mB(o).filter(d=>{const f=d.codePointAt(0);return f<r||f>a});if(c.length&&(s.push(...c),n))break}return s}function Nf(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(rA.has(e))return rA.get(e);if(e<32||e>126&&e<160||e>262143||t&&e2e(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const a=n?r?Qge:Yge:Wge,s=ds(e);return(a.has(s)?"\\":"")+s}function Kge(e){const t=e.map(a=>a.codePointAt(0)).sort((a,s)=>a-s),n=[];let r=null;for(let a=0;a<t.length;a++)t[a+1]===t[a]+1?r??=t[a]:r===null?n.push(t[a]):(n.push([r,t[a]]),r=null);return n}function Jge(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:a,disable:s}=t;r=(a?.ignoreCase?"i":"")+(a?.dotAll?"s":"")+(s?"-":"")+(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")}return`${r}:`}function Zge({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function aA({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function e2e(e){return e>47&&e<58}function sA({type:e,value:t}){return e==="Character"&&t===45}var t2e=class L6 extends RegExp{#t=new Map;#e=null;#n;#r=null;#a=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,n,r){const a=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");const s=t;super(s,n),this.#n=s.source,s instanceof L6&&(this.#t=s.#t,this.#r=s.#r,this.#a=s.#a,this.rawOptions=s.rawOptions)}else{const s={hiddenCaptures:[],strategy:null,transfers:[],...r};super(a?"":t,n),this.#n=t,this.#t=r2e(s.hiddenCaptures,s.transfers),this.#a=s.strategy,this.rawOptions=r??{}}a||(this.#e=this)}exec(t){if(!this.#e){const{lazyCompile:a,...s}=this.rawOptions;this.#e=new L6(this.#n,this.flags,s)}const n=this.global||this.sticky,r=this.lastIndex;if(this.#a==="clip_search"&&n&&r){this.lastIndex=0;const a=this.#s(t.slice(r));return a&&(n2e(a,r,t,this.hasIndices),this.lastIndex+=r),a}return this.#s(t)}#s(t){this.#e.lastIndex=this.lastIndex;const n=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!n||!this.#t.size)return n;const r=[...n];n.length=1;let a;this.hasIndices&&(a=[...n.indices],n.indices.length=1);const s=[0];for(let i=1;i<r.length;i++){const{hidden:o,transferTo:c}=this.#t.get(i)??{};if(o?s.push(null):(s.push(n.length),n.push(r[i]),this.hasIndices&&n.indices.push(a[i])),c&&r[i]!==void 0){const d=s[c];if(!d)throw new Error(`Invalid capture transfer to "${d}"`);if(n[d]=r[i],this.hasIndices&&(n.indices[d]=a[i]),n.groups){this.#r||(this.#r=a2e(this.source));const f=this.#r.get(c);f&&(n.groups[f]=r[i],this.hasIndices&&(n.indices.groups[f]=a[i]))}}}return n}};function n2e(e,t,n,r){if(e.index+=t,e.input=n,r){const a=e.indices;for(let i=0;i<a.length;i++){const o=a[i];o&&(a[i]=[o[0]+t,o[1]+t])}const s=a.groups;s&&Object.keys(s).forEach(i=>{const o=s[i];o&&(s[i]=[o[0]+t,o[1]+t])})}}function r2e(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,a]of t)for(const s of a)F1(n,s,{}).transferTo=r;return n}function a2e(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,a=0,s;for(;s=t.exec(e);){const{0:i,groups:{capture:o,name:c}}=s;i==="["?r++:r?i==="]"&&r--:o&&(a++,c&&n.set(a,c))}return n}function s2e(e,t){const n=i2e(e,t);return n.options?new t2e(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function i2e(e,t){const n=pB(t),r=iB(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:r7}),a=Oge(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),s=Vge(a,n),i=Sge(s.pattern,{captureTransfers:s._captureTransfers,hiddenCaptures:s._hiddenCaptures,mode:"external"}),o=vge(i.pattern),c=yge(o.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),d={pattern:c.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${s.flags}${s.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const f=c.hiddenCaptures.sort((v,E)=>v-E),m=Array.from(c.captureTransfers),b=a._strategy,g=d.pattern.length>=n.lazyCompileLength;(f.length||m.length||b||g)&&(d.options={...f.length&&{hiddenCaptures:f},...m.length&&{transfers:m},...b&&{strategy:b},...g&&{lazyCompile:g}})}return d}const iA=4294967295;class o2e{constructor(t,n={}){this.patterns=t,this.options=n;const{forgiving:r=!1,cache:a,regexConstructor:s}=n;if(!s)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(i=>
1050{if(typeof i!="string")return i;const o=a?.get(i);if(o){if(o instanceof RegExp)return o;if(r)return null;throw o}try{const c=s(i);return a?.set(i,c),c}catch(c){if(a?.set(i,c),r)return null;throw c}})}regexps;findNextMatchSync(t,n,r){const a=typeof t=="string"?t:t.content,s=[];function i(o,c,d=0){return{index:o,captureIndices:c.indices.map(f=>f==null?{start:iA,end:iA,length:0}:{start:f[0]+d,end:f[1]+d,length:f[1]-f[0]})}}for(let o=0;o<this.regexps.length;o++){const c=this.regexps[o];if(c)try{c.lastIndex=n;const d=c.exec(a);if(!d)continue;if(d.index===n)return i(o,d,0);s.push([o,d,0])}catch(d){if(this.options.forgiving)continue;throw d}}if(s.length){const o=Math.min(...s.map(c=>c[1].index));for(const[c,d,f]of s)if(d.index===o)return i(c,d,f)}return null}}function l2e(e,t){return s2e(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function c2e(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>l2e(n,{target:t.target}),{createScanner(n){return new o2e(n,t)},createString(n){return{content:n}}}}function s7(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Lh=s7();function kB(e){Lh=e}var d1={exec:()=>null};function cr(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(a,s)=>{let i=typeof s=="string"?s:s.source;return i=i.replace(gi.caret,"$1"),n=n.replace(a,i),r},getRegex:()=>new RegExp(n,t)};return r}var gi={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},u2e=/^(?:[ \t]*(?:\n|$))+/,d2e=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,h2e=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,cg=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,f2e=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,i7=/(?:[*+-]|\d{1,9}[.)])/,_B=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,TB=cr(_B).replace(/bull/g,i7).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),p2e=cr(_B).replace(/bull/g,i7).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),o7=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,m2e=/^[^\n]+/,l7=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,g2e=cr(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",l7).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),x2e=cr(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,i7).getRegex(),mb="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",c7=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,b2e=cr("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
1050)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",c7).replace("tag",mb).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),CB=cr(o7).replace("hr",cg).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex(),y2e=cr(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",CB).getRegex(),u7={blockquote:y2e,code:d2e,def:g2e,fences:h2e,heading:f2e,hr:cg,html:b2e,lheading:TB,list:x2e,newline:u2e,paragraph:CB,table:d1,text:m2e},oA=cr("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",cg).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex(),v2e={...u7,lheading:p2e,table:oA,paragraph:cr(o7).replace("hr",cg).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",oA).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex()},w2e={...u7,html:cr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",c7).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:d1,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:cr(o7).replace("hr",cg).replace("heading",` *#{1,6} *[^ 1051]`).replace("lheading",TB).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},S2e=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,E2e=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,NB=/^( {2,}|\\)\n(?!\s*$)/,k2e=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,gb=/[\p{P}\p{S}]/u,d7=/[\s\p{P}\p{S}]/u,AB=/[^\s\p{P}\p{S}]/u,_2e=cr(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,d7).getRegex(),LB=/(?!~)[\p{P}\p{S}]/u,T2e=/(?!~)[\s\p{P}\p{S}]/u,C2e=/(?:[^\s\p{P}\p{S}]|~)/u,N2e=cr(/link|code|html/,"g").replace("link",new RegExp("\\[(?:[^\\[\\]`]|(?<!`)(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("code",new RegExp("(?<!`)(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),MB=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,A2e=cr(MB,"u").replace(/punct/g,gb).getRegex(),L2e=cr(MB,"u").replace(/punct/g,LB).getRegex(),RB="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",M2e=cr(RB,"gu").replace(/notPunctSpace/g,AB).replace(/punctSpace/g,d7).replace(/punct/g,gb).getRegex(),R2e=cr(RB,"gu").replace(/notPunctSpace/g,C2e).replace(/punctSpace/g,T2e).replace(/punct/g,LB).getRegex(),O2e=cr("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,AB).replace(/punctSpace/g,d7).replace(/punct/g,gb).getRegex(),P2e=cr(/\\(punct)/,"gu").replace(/punct/g,gb).getRegex(),j2e=cr
vendor: 6,073 bytes, lines 1051-1066
1051(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),D2e=cr(c7).replace("(?:-->|$)","-->").getRegex(),I2e=cr("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",D2e).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),f5=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,B2e=cr(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",f5).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),OB=cr(/^!?\[(label)\]\[(ref)\]/).replace("label",f5).replace("ref",l7).getRegex(),PB=cr(/^!?\[(ref)\](?:\[\])?/).replace("ref",l7).getRegex(),F2e=cr("reflink|nolink(?!\\()","g").replace("reflink",OB).replace("nolink",PB).getRegex(),lA=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,h7={_backpedal:d1,anyPunctuation:P2e,autolink:j2e,blockSkip:N2e,br:NB,code:E2e,del:d1,emStrongLDelim:A2e,emStrongRDelimAst:M2e,emStrongRDelimUnd:O2e,escape:S2e,link:B2e,nolink:PB,punctuation:_2e,reflink:OB,reflinkSearch:F2e,tag:I2e,text:k2e,url:d1},z2e={...h7,link:cr(/^!?\[(label)\]\((.*?)\)/).replace("label",f5).getRegex(),reflink:cr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",f5).getRegex()},M6={...h7,emStrongRDelimAst:R2e,emStrongLDelim:L2e,url:cr(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",lA).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:cr(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",lA).getRegex()},H2e={...M6,br:cr(NB).replace("{2,}","*").getRegex(),text:cr(M6.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},$2={normal:u7,gfm:v2e,pedantic:w2e},Pm={normal:h7,gfm:M6,breaks:H2e,pedantic:z2e},U2e={"&":"&","<":"<",">":">",'"':""","'":"'"},cA=e=>U2e[e];function xc(e,t){if(t){if(gi.escapeTest.test(e))return e.replace(gi.escapeReplace,cA)}else if(gi.escapeTestNoEncode.test(e))return e.replace(gi.escapeReplaceNoEncode,cA);return e}function uA(e){try{e=encodeURI(e).replace(gi.percentDecode,"%")}catch{return null}return e}function dA(e,t){let n=e.replace(gi.findPipe,(s,i,o)=>{let c=!1,d=i;for(;--d>=0&&o[d]==="\\";)c=!c;return c?"|":" |"}),r=n.split(gi.splitPipe),a=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;a<r.length;a++)r[a]=r[a].trim().replace(gi.slashPipe,"|");return r}function jm(e,t,n){let r=e.length;if(r===0)return"";let a=0;for(;a<r&&e.charAt(r-a-1)===t;)a++;return e.slice(0,r-a)}function q2e(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function hA(e,t,n,r,a){let s=t.href,i=t.title||null,o=e[1].replace(a.other.outputLinkReplace,"$1");r.state.inLink=!0;let c={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:s,title:i,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,c}function V2e(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let a=r[1];return t.split(` 1052`).map(s=>{let i=s.match(n.other.beginningSpace);if(i===null)return s;let[o]=i;return o.length>=a.length?s.slice(a.length):s}).join(` 1053`)}var p5=class{options;rules;lexer;constructor(e){this.options=e||Lh}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:jm(n,` 1054`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=V2e(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=jm(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:jm(t[0],` 1055`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=jm(t[0],` 1056`).split(` 1057`),r="",a="",s=[];for(;n.length>0;){let i=!1,o=[],c;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))o.push(n[c]),i=!0;else if(!i)o.push(n[c]);else break;n=n.slice(c);let d=o.join(` 1058`),f=d.replace(this.rules.other.blockquoteSetextReplace,` 1059 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r} 1060${d}`:d,a=a?`${a} 1061${f}`:f;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,s,!0),this.lexer.state.top=m,n.length===0)break;let b=s.at(-1);if(b?.type==="code")break;if(b?.type==="blockquote"){let g=b,v=g.raw+` 1062`+n.join(` 1063`),E=this.blockquote(v);s[s.length-1]=E,r=r.substring(0,r.length-g.raw.length)+E.raw,a=a.substring(0,a.length-g.text.length)+E.text;break}else if(b?.type==="list"){let g=b,v=g.raw+` 1064`+n.join(` 1065`),E=this.list(v);s[s.length-1]=E,r=r.substring(0,r.length-b.raw.length)+E.raw,a=a.substring(0,a.length-g.raw.length)+E.raw,n=v.substring(s.at(-1).raw.length).split(` 1066`);continue}}return{type:"blockquote",raw:r,tokens:s,text:a}}}list(e){let t=this.rules.block.list.exec(e);
vendor: 4,776 bytes, lines 1066-1075
1066if(t){let n=t[1].trim(),r=n.length>1,a={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let s=this.rules.other.listItemRegex(n),i=!1;for(;e;){let c=!1,d="",f="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let m=t[2].split(` 1067`,1)[0].replace(this.rules.other.listReplaceTabs,_=>" ".repeat(3*_.length)),b=e.split(` 1068`,1)[0],g=!m.trim(),v=0;if(this.options.pedantic?(v=2,f=m.trimStart()):g?v=t[1].length+1:(v=t[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,f=m.slice(v),v+=t[1].length),g&&this.rules.other.blankLine.test(b)&&(d+=b+` 1069`,e=e.substring(b.length+1),c=!0),!c){let _=this.rules.other.nextBulletRegex(v),A=this.rules.other.hrRegex(v),R=this.rules.other.fencesBeginRegex(v),P=this.rules.other.headingBeginRegex(v),V=this.rules.other.htmlBeginRegex(v);for(;e;){let U=e.split(` 1070`,1)[0],D;if(b=U,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),D=b):D=b.replace(this.rules.other.tabCharGlobal," "),R.test(b)||P.test(b)||V.test(b)||_.test(b)||A.test(b))break;if(D.search(this.rules.other.nonSpaceChar)>=v||!b.trim())f+=` 1071`+D.slice(v);else{if(g||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(m)||P.test(m)||A.test(m))break;f+=` 1072`+b}!g&&!b.trim()&&(g=!0),d+=U+` 1073`,e=e.substring(U.length+1),m=D.slice(v)}}a.loose||(i?a.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(i=!0));let E=null,T;this.options.gfm&&(E=this.rules.other.listIsTask.exec(f),E&&(T=E[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:d,task:!!E,checked:T,loose:!1,text:f,tokens:[]}),a.raw+=d}let o=a.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let c=0;c<a.items.length;c++)if(this.lexer.state.top=!1,a.items[c].tokens=this.lexer.blockTokens(a.items[c].text,[]),!a.loose){let d=a.items[c].tokens.filter(m=>m.type==="space"),f=d.length>0&&d.some(m=>this.rules.other.anyLine.test(m.raw));a.loose=f}if(a.loose)for(let c=0;c<a.items.length;c++)a.items[c].loose=!0;return a}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:a}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=dA(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(` 1074`):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let i of r)this.rules.other.tableAlignRight.test(i)?s.align.push("right"):this.rules.other.tableAlignCenter.test(i)?s.align.push("center"):this.rules.other.tableAlignLeft.test(i)?s.align.push("left"):s.align.push(null);for(let i=0;i<n.length;i++)s.header.push({text:n[i],tokens:this.lexer.inline(n[i]),header:!0,align:s.align[i]});for(let i of a)s.rows.push(dA(i,s.header.length).map((o,c)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:s.align[c]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===` 1075`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if
vendor: 3,820 bytes, lines 1075-1076
1075(!this.rules.other.endAngleBracket.test(n))return;let s=jm(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=q2e(t[2],"()");if(s===-2)return;if(s>-1){let i=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let r=t[2],a="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(r);s&&(r=s[1],a=s[3])}else a=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),hA(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=t[r.toLowerCase()];if(!a){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return hA(n,a,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let a=[...r[0]].length-1,s,i,o=a,c=0,d=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+a);(r=d.exec(t))!=null;){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(i=[...s].length,r[3]||r[4]){o+=i;continue}else if((r[5]||r[6])&&a%3&&!((a+i)%3)){c+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+c);let f=[...r[0]][0].length,m=e.slice(0,a+r.index+f+i);if(Math.min(a,i)%2){let g=m.slice(1,-1);return{type:"em",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}let b=m.slice(2,-2);return{type:"strong",raw:m,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let a;do a=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(a!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},Uo=class R6{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Lh,this.options.tokenizer=this.options.tokenizer||new p5,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:gi,block:$2.normal,inline:Pm.normal};this.options.pedantic?(n.block=$2.pedantic,n.inline=Pm.pedantic):this.options.gfm&&(n.block=$2.gfm,this.options.breaks?n.inline=Pm.breaks:n.inline=Pm.gfm),this.tokenizer.rules=n}static get rules(){return{block:$2,inline:Pm}}static lex(t,n){return new R6(n).lex(t)}static lexInline(t,n){return new R6(n).inlineTokens(t)}lex(t){t=t.replace(gi.carriageReturn,` 1076`),this.blockTokens(t,this.tokens);for(let n=0;
vendor: 4,601 bytes, lines 1076-1089
1076n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){for(this.options.pedantic&&(t=t.replace(gi.tabCharGlobal," ").replace(gi.spaceLine,""));t;){let a;if(this.options.extensions?.block?.some(i=>(a=i.call({lexer:this},t,n))?(t=t.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);let i=n.at(-1);a.raw.length===1&&i!==void 0?i.raw+=` 1077`:n.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);let i=n.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(` 1078`)?"":` 1079`)+a.raw,i.text+=` 1080`+a.text,this.inlineQueue.at(-1).src=i.text):n.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);let i=n.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(` 1081`)?"":` 1082`)+a.raw,i.text+=` 1083`+a.raw,this.inlineQueue.at(-1).src=i.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},n.push(a));continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),n.push(a);continue}let s=t;if(this.options.extensions?.startBlock){let i=1/0,o=t.slice(1),c;this.options.extensions.startBlock.forEach(d=>{c=d.call({lexer:this},o),typeof c=="number"&&c>=0&&(i=Math.min(i,c))}),i<1/0&&i>=0&&(s=t.substring(0,i+1))}if(this.state.top&&(a=this.tokenizer.paragraph(s))){let i=n.at(-1);r&&i?.type==="paragraph"?(i.raw+=(i.raw.endsWith(` 1084`)?"":` 1085`)+a.raw,i.text+=` 1086`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):n.push(a),r=s.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);let i=n.at(-1);i?.type==="text"?(i.raw+=(i.raw.endsWith(` 1087`)?"":` 1088`)+a.raw,i.text+=` 1089`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):n.push(a);continue}if(t){let i="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r=t,a=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)o.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,a.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(a=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,i="";for(;t;){s||(i=""),s=!1;let o;if(this.options.extensions?.inline?.some(d=>(o=d.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.escape(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.link(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(o.raw.length);let d=n.at(-1);o.type==="text"&&d?.type==="text"?(d.raw+=o.raw,d.text+=o.text):n.push(o);continue}if(o=this.tokenizer.emStrong(t,r,i)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(t)){t=t.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(t))){t=t.substring(o.raw.length),n.push(o);continue}let c=t;if(this.options.extensions?.startInline){let d=1/0,f=t.slice(1),m;this.options.extensions.startInline.forEach(b=>{m=b.call({lexer:this},f),typeof m=="number"&&m>
vendor: 6,307 bytes, lines 1089-1108
1089=0&&(d=Math.min(d,m))}),d<1/0&&d>=0&&(c=t.substring(0,d+1))}if(o=this.tokenizer.inlineText(c)){t=t.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(i=o.raw.slice(-1)),s=!0;let d=n.at(-1);d?.type==="text"?(d.raw+=o.raw,d.text+=o.text):n.push(o);continue}if(t){let d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}},m5=class{options;parser;constructor(t){this.options=t||Lh}space(t){return""}code({text:t,lang:n,escaped:r}){let a=(n||"").match(gi.notSpaceStart)?.[0],s=t.replace(gi.endingNewline,"")+` 1090`;return a?'<pre><code class="language-'+xc(a)+'">'+(r?s:xc(s,!0))+`</code></pre> 1091`:"<pre><code>"+(r?s:xc(s,!0))+`</code></pre> 1092`}blockquote({tokens:t}){return`<blockquote> 1093${this.parser.parse(t)}</blockquote> 1094`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}> 1095`}hr(t){return`<hr> 1096`}list(t){let n=t.ordered,r=t.start,a="";for(let o=0;o<t.items.length;o++){let c=t.items[o];a+=this.listitem(c)}let s=n?"ol":"ul",i=n&&r!==1?' start="'+r+'"':"";return"<"+s+i+`> 1097`+a+"</"+s+`> 1098`}listitem(t){let n="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=r+" "+xc(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):n+=r+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li> 1099`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p> 1100`}table(t){let n="",r="";for(let s=0;s<t.header.length;s++)r+=this.tablecell(t.header[s]);n+=this.tablerow({text:r});let a="";for(let s=0;s<t.rows.length;s++){let i=t.rows[s];r="";for(let o=0;o<i.length;o++)r+=this.tablecell(i[o]);a+=this.tablerow({text:r})}return a&&(a=`<tbody>${a}</tbody>`),`<table> 1101<thead> 1102`+n+`</thead> 1103`+a+`</table> 1104`}tablerow({text:t}){return`<tr> 1105${t}</tr> 1106`}tablecell(t){let n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}> 1107`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${xc(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){let a=this.parser.parseInline(r),s=uA(t);if(s===null)return a;t=s;let i='<a href="'+t+'"';return n&&(i+=' title="'+xc(n)+'"'),i+=">"+a+"</a>",i}image({href:t,title:n,text:r,tokens:a}){a&&(r=this.parser.parseInline(a,this.parser.textRenderer));let s=uA(t);if(s===null)return xc(r);t=s;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${xc(n)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:xc(t.text)}},f7=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},_l=class O6{options;renderer;textRenderer;constructor(t){this.options=t||Lh,this.options.renderer=this.options.renderer||new m5,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new f7}static parse(t,n){return new O6(n).parse(t)}static parseInline(t,n){return new O6(n).parseInline(t)}parse(t,n=!0){let r="";for(let a=0;a<t.length;a++){let s=t[a];if(this.options.extensions?.renderers?.[s.type]){let o=s,c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){r+=c||"";continue}}let i=s;switch(i.type){case"space":{r+=this.renderer.space(i);continue}case"hr":{r+=this.renderer.hr(i);continue}case"heading":{r+=this.renderer.heading(i);continue}case"code":{r+=this.renderer.code(i);continue}case"table":{r+=this.renderer.table(i);continue}case"blockquote":{r+=this.renderer.blockquote(i);continue}case"list":{r+=this.renderer.list(i);continue}case"html":{r+=this.renderer.html(i);continue}case"def":{r+=this.renderer.def(i);continue}case"paragraph":{r+=this.renderer.paragraph(i);continue}case"text":{let o=i,c=this.renderer.text(o);for(;a+1<t.length&&t[a+1].type==="text";)o=t[++a],c+=` 1108`+this.renderer.text(o);n?r+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):r+=c;continue}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}parseInline(t,n=this.renderer){let r="";for(let a=0;a<t.length;a++){let s=t[a];if(this.options.extensions?.renderers?.[s.type]){let o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=o||"";continue}}let i=s;switch(i.type){case"escape":{r+=n.text(i);break}case"html":{r+=n.html(i);break}case"link":{r+=n.link(i);break}case"image":{r+=n.image(i);break}case"strong":{r+=n.strong(i);break}case"em":{r+=n.em(i);break}case"codespan":{r+=n.codespan(i);break}case"br":{r+=n.br(i);break}case"del":{r+=n.del(i);break}case"text":{r+=n.text(i);break}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}},qm=class{options;block;constructor(e){this.options=e||Lh}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?Uo.lex:Uo.lexInline}provideParser(){return this.block?_l.parse:_l.parseInline}},G2e=class{defaults=s7();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=_l;Renderer=m5;TextRenderer=f7;Lexer=Uo;Tokenizer=p5;Hooks=qm;
1108constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let a=r;for(let s of a.header)n=n.concat(this.walkTokens(s.tokens,t));for(let s of a.rows)for(let i of s)n=n.concat(this.walkTokens(i.tokens,t));break}case"list":{let a=r;n=n.concat(this.walkTokens(a.items,t));break}default:{let a=r;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(s=>{let i=a[s].flat(1/0);n=n.concat(this.walkTokens(i,t))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=t.renderers[a.name];s?t.renderers[a.name]=function(...i){let o=a.renderer.apply(this,i);return o===!1&&(o=s.apply(this,i)),o}:t.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=t[a.level];s?s.unshift(a.tokenizer):t[a.level]=[a.tokenizer],a.start&&(a.level==="block"?t.startBlock?t.startBlock.push(a.start):t.startBlock=[a.start]:a.level==="inline"&&(t.startInline?t.startInline.push(a.start):t.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(t.childTokens[a.name]=a.childTokens)}),r.extensions=t),n.renderer){let a=this.defaults.renderer||new m5(this.defaults);for(let s in n.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let i=s,o=n.renderer[i],c=a[i];a[i]=(...d)=>{let f=o.apply(a,d);return f===!1&&(f=c.apply(a,d)),f||""}}r.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new p5(this.defaults);for(let s in n.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let i=s,o=n.tokenizer[i],c=a[i];a[i]=(...d)=>{let f=o.apply(a,d);return f===!1&&(f=c.apply(a,d)),f}}r.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new qm;for(let s in n.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let i=s,o=n.hooks[i],c=a[i];qm.passThroughHooks.has(s)?a[i]=d=>{if(this.defaults.async&&qm.passThroughHooksRespectAsync.has(s))return(async()=>{let m=await o.call(a,d);return c.call(a,m)})();let f=o.call(a,d);return c.call(a,f)}:a[i]=(...d)=>{if(this.defaults.async)return(async()=>{let m=await o.apply(a,d);return m===!1&&(m=await c.apply(a,d)),m})();let f=o.apply(a,d);return f===!1&&(f=c.apply(a,d)),f}}r.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,s=n.walkTokens;r.walkTokens=function(i){let o=[];return o.push(s.call(this,i)),a&&(o=o.concat(a.call(this,i))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Uo.lex(e,t??this.defaults)}parser(e,t){return _l.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},a={...this.defaults,...r},s=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&r.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let i=a.hooks?await a.hooks.preprocess(t):t,o=await(a.hooks?await a.hooks.provideLexer():e?Uo.lex:Uo.lexInline)(i,a),c=a.hooks?await a.hooks.processAllTokens(o):o;a.walkTokens&&await Promise.all(this.walkTokens(c,a.walkTokens));let d=await(a.hooks?await a.hooks.provideParser():e?_l.parse:_l.parseInline)(c,a);return a.hooks?await a.hooks.postprocess(d):d})().catch(s);try{a.hooks&&(t=a.hooks.preprocess(t));let i=(a.hooks?a.hooks.provideLexer():e?Uo.lex:Uo.lexInline)(t,a);a.hooks&&(i=a.hooks.processAllTokens(i)),a.walkTokens&&this.walkTokens(i,a.walkTokens);let o=(a.hooks?a.hooks.provideParser():e?_l.parse:_l.parseInline)(i,a);return a.hooks&&(o=a.hooks.postprocess(o)),o}catch(i){return s(i)}}}onError(e,t){return n=>{if(n.message+=` 1109Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+xc(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},yh=new G2e;function Mr(e,t){return yh.parse(e,t)}Mr.options=Mr.setOptions=function(e){return yh.setOptions(e),Mr.defaults=yh.defaults,kB(Mr.defaults),Mr};Mr.getDefaults=s7;Mr.defaults=Lh;Mr.use=function(...e){return yh.use(...e),Mr.defaults=yh.defaults,kB(Mr.defaults),Mr};Mr.walkTokens=function(e,t){return yh.walkTokens(e,t)};Mr.parseInline=yh.parseInline;Mr.Parser=_l;Mr.parser=_l.parse;Mr.Renderer=m5;Mr.TextRenderer=f7;Mr.Lexer=Uo;Mr.lexer=Uo.lex;Mr.Tokenizer=p5;Mr.Hooks=qm;Mr.parse=Mr;Mr.options;Mr.setOptions;Mr.use;Mr.walkTokens;Mr.parseInline;_l.parse;Uo.lex;var Yn=(...e)=>gM(tw(e)),p7=(e,t,n)=>{let r=typeof t=="string"?new Blob([t],{type:n}):t,a=URL.createObjectURL(r),s=document.createElement("a");s.href=a,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(a)},$2e=/<pre(\s|>)/,m7=G.createContext({code:""}),W2e=class{constructor(){this.lightHighlighter=null,this.darkHighlighter=null,this.lightTheme=null,this.darkTheme=null,this.loadedLanguages=new Set,this.initializationPromise=null}isLanguageSupported(e){return Object.hasOwn(JI,e)}getFallbackLanguage(){return"text"}async ensureHighlightersInitialized(e,t){var n,r;let[a,s]=e,i=c2e({forgiving:!0}),o=!this.lightHighlighter||this.lightTheme!==a,c=!this.darkHighlighter||this.darkTheme!==s;(o||c)&&this.loadedLanguages.clear();let d=this.isLanguageSupported(t),f=!this.loadedLanguages.has(t)&&d;if(o?(this.lightHighlighter=await zN({themes:[a],langs:d?[t]:[],engine:i}),this.lightTheme=a,d&&this.loadedLanguages.add(t)):f&&await((n=this.lightHighlighter)==null?void 0:n.loadLanguage(t)),c){let m=f?[...this.loadedLanguages].concat(d?[t]:[]):Array.from(this.loadedLanguages);this.darkHighlighter=await zN({themes:[s],langs:m.length>0?m:d?[t]:[],engine:i}),this.darkTheme=s}else f&&await((r=this.darkHighlighter)==null?void 0:r.loadLanguage(t));f&&this.loadedLanguages.add(t)}async highlightCode(e,t,n,r){var a,s;this.initializationPromise&&await this.initializationPromise,this.initializationPromise=this.ensureHighlightersInitialized(n,t),await this.initializationPromise,this.initializationPromise=null;let[i,o]=n,c=this.isLanguageSupported(t)?t:this.getFallbackLanguage(),d=(a=this.lightHighlighter)==null?void 0:a.codeToHtml(e,{lang:c,theme:i}),f=(s=this.darkHighlighter)==null?void 0:s.codeToHtml(e,{lang:c,theme:o}),m=b=>r?b.replace($2e,`<pre class="${r}"$1`):b;return[m(d),m(f)]}},Y2e=new W2e,Q2e=({code:e,language:t,className:n,children:r,preClassName:a,...s})=>{let[i,o]=G.useState(""),[c,d]=G.useState(""),f=G.useRef(!1),[m,b]=G.useContext(cF);return G.useEffect(()=>(f.current=!0,Y2e.highlightCode(e,t,[m,b],a).then(([g,v])=>{f.current&&(o(g),d(v))}),()=>{f.current=!1}),[e,t,m,b,a]),h.jsx(m7.Provider,{value:{code:e},children:h.jsxs("div",{className:"my-4 w-full overflow-hidden rounded-xl border","data-code-block-container":!0,"data-language":t,children:[h.jsxs("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-code-block-header":!0,"data-language":t,children:[h.jsx("span",{className:"ml-1 font-mono lowercase",children:t}),h.jsx("div",{className:"flex items-center gap-2",children:r})]}),h.jsx("div",{className:"w-full",children:h.jsxs("div",{className:"min-w-full",children:[h.jsx("div",{className:Yn("overflow-x-auto dark:hidden",n),dangerouslySetInnerHTML:{__html:i},"data-code-block":!0,"data-language":t,...s}),h.jsx("div",{className:Yn("hidden overflow-x-auto dark:block",n),dangerouslySetInnerHTML:{__html:c},"data-code-block":!0,"data-language":t,...s})]})})]})})},fA={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",da
1109x:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",æè¨:"wy"},pA=({onDownload:e,onError:t,language:n,children:r,className:a,code:s,...i})=>{let{code:o}=G.useContext(m7),{isAnimating:c}=G.useContext(ug),d=s??o,f=`file.${n&&n in fA?fA[n]:"txt"}`,m="text/plain",b=()=>{try{p7(f,d,m),e?.()}catch(g){t?.(g)}};return h.jsx("button",{className:Yn("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:c,onClick:b,title:"Download file",type:"button",...i,children:r??h.jsx(G8,{size:14})})},mA=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:a,code:s,...i})=>{let[o,c]=G.useState(!1),d=G.useRef(0),{code:f}=G.useContext(m7),{isAnimating:m}=G.useContext(ug),b=s??f,g=async()=>{var E;if(typeof window>"u"||!((E=navigator?.clipboard)!=null&&E.writeText)){t?.(new Error("Clipboard API not available"));return}try{o||(await navigator.clipboard.writeText(b),c(!0),e?.(),d.current=window.setTimeout(()=>c(!1),n))}catch(T){t?.(T)}};G.useEffect(()=>()=>{window.clearTimeout(d.current)},[]);let v=o?vI:wI;return h.jsx("button",{className:Yn("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:m,onClick:g,type:"button",...i,children:r??h.jsx(v,{size:14})})},X2e=({node:e,className:t,src:n,alt:r,...a})=>{let s=async()=>{var i;if(n)try{let o=await(await fetch(n)).blob(),c=new URL(n,window.location.origin).pathname.split("/").pop()||"",d=c.includes(".")&&((i=c.split(".").pop())==null?void 0:i.length)<=4,f="";
1109if(d)f=c;else{let m=o.type,b="png";m.includes("jpeg")||m.includes("jpg")?b="jpg":m.includes("png")?b="png":m.includes("svg")?b="svg":m.includes("gif")?b="gif":m.includes("webp")&&(b="webp"),f=`${(r||c||"image").replace(/\.[^/.]+$/,"")}.${b}`}p7(f,o,o.type)}catch(o){console.error("Failed to download image:",o)}};return n?h.jsxs("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[h.jsx("img",{alt:r,className:Yn("max-w-full rounded-lg",t),"data-streamdown":"image",src:n,...a}),h.jsx("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),h.jsx("button",{className:Yn("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:s,title:"Download image",type:"button",children:h.jsx(G8,{size:14})})]}):null},K2e=async e=>{let t={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...e},n=(await me(async()=>{const{default:r}=await import("./mermaid.core-DwXByInj.js").then(a=>a.bC);return{default:r}},[])).default;return n.initialize(t),n},J2e=({chart:e,className:t,config:n})=>{let[r,a]=G.useState(null),[s,i]=G.useState(!0),[o,c]=G.useState(""),[d,f]=G.useState("");if(G.useEffect(()=>{(async()=>{try{a(null),i(!0);let b=await K2e(n),g=e.split("").reduce((T,_)=>(T<<5)-T+_.charCodeAt(0)|0,0),v=`mermaid-${Math.abs(g)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:E}=await b.render(v,e);c(E),f(E)}catch(b){if(!(d||o)){let g=b instanceof Error?b.message:"Failed to render Mermaid chart";a(g)}}finally{i(!1)}})()},[e,n]),s&&!o&&!d)return h.jsx("div",{className:Yn("my-4 flex justify-center p-4",t),children:h.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[h.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),h.jsx("span",{className:"text-sm",children:"Loading diagram..."})]})});if(r&&!o&&!d)return h.jsxs("div",{className:Yn("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[h.jsxs("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",r]}),h.jsxs("details",{className:"mt-2",children:[h.jsx("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),h.jsx("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let m=o||d;return h.jsx("div",{"aria-label":"Mermaid chart",className:Yn("my-4 flex justify-center",t),dangerouslySetInnerHTML:{__html:m},role:"img"})};function jB(e){var t,n;let r=[],a=[],s=e.querySelectorAll("thead th");for(let o of s)r.push(((t=o.textContent)==null?void 0:t.trim())||"");let i=e.querySelectorAll("tbody tr");for(let o of i){let c=[],d=o.querySelectorAll("td");for(let f of d)c.push(((n=f.textContent)==null?void 0:n.trim())||"");a.push(c)}return{headers:r,rows:a}}function DB(e){let{headers:t,rows:n}=e,r=s=>s.includes(",")||s.includes('"')||s.includes(` 1110`)?`"${s.replace(/"/g,'""')}"`:s,a=[];t.length>0&&a.push(t.map(r).join(","));for(let s of n)a.push(s.map(r).join(","));return a.join(` 1111`)}function IB(e){let{headers:t,rows:n}=e;if(t.length===0)return"";let r=[],a=t.map(s=>s.replace(/\|/g,"\\|"));r.push(`| ${a.join(" | ")} |`),r.push(`| ${t.map(()=>"---").join(" | ")} |`);for(let s of n){let i=[...s];for(;i.length<t.length;)i.push("");let o=i.map(c=>c.replace(/\|/g,"\\|"));r.push(`| ${o.join(" | ")} |`)}return r.join(` 1112`)}var Z2e=({children:e,className:t,onCopy:n,onError:r,timeout:a=2e3,format:s="markdown"})=>{let[i,o]=G.useState(!1),c=G.useRef(0),{isAnimating:d}=G.useContext(ug),f=async b=>{var g;if(typeof window>"u"||!((g=navigator?.clipboard)!=null&&g.write)){r?.(new Error("Clipboard API not available"));return}try{if(!i){let v=b.currentTarget.closest('[data-streamdown="table-wrapper"]'),E=v?.querySelector("table");if(!E){r?.(new Error("Table not found"));return}let T=jB(E),_=new ClipboardItem({"text/plain":s==="markdown"?IB(T):DB(T),"text/html":new Blob([E.outerHTML],{type:"text/html"})});await navigator.clipboard.write([_]),o(!0),n?.(),c.current=window.setTimeout(()=>
1112o(!1),a)}}catch(v){r?.(v)}};G.useEffect(()=>()=>{window.clearTimeout(c.current)},[]);let m=i?vI:wI;return h.jsx("button",{className:Yn("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:f,title:`Copy table as ${s}`,type:"button",children:e??h.jsx(m,{size:14})})},exe=({children:e,className:t,onDownload:n,onError:r})=>{let[a,s]=G.useState(!1),i=G.useRef(null),{isAnimating:o}=G.useContext(ug),c=d=>{var f;try{let m=(f=i.current)==null?void 0:f.closest('[data-streamdown="table-wrapper"]'),b=m?.querySelector("table");if(!b){r?.(new Error("Table not found"));return}let g=jB(b),v=d==="csv"?DB(g):IB(g);p7(`table.${d==="csv"?"csv":"md"}`,v,d==="csv"?"text/csv":"text/markdown"),s(!1),n?.(d)}catch(m){r?.(m)}};return G.useEffect(()=>{let d=f=>{i.current&&!i.current.contains(f.target)&&s(!1)};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[]),h.jsxs("div",{className:"relative",ref:i,children:[h.jsx("button",{className:Yn("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:o,onClick:()=>s(!a),title:"Download table",type:"button",children:e??h.jsx(G8,{size:14})}),a&&h.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] rounded-md border border-border bg-background shadow-lg",children:[h.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("csv"),type:"button",children:"CSV"}),h.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("markdown"),type:"button",children:"Markdown"})]})]})},txe=/language-([^\s]+)/;function xb(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,r=t.position.start,a=e.position.end,s=t.position.end;return n?.line===r?.line&&n?.column===r?.column&&a?.line===s?.line&&a?.column===s?.column}function Ma(e,t){return e.className===t.className&&xb(e.node,t.node)}var P6=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,g7=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("ol",{className:Yn("ml-4 list-outside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...r,children:e}),(e,t)=>Ma(e,t));g7.displayName="MarkdownOl";var BB=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("li",{className:Yn("py-1",t),"data-streamdown":"list-item",...r,children:e}),(e,t)=>e.className===t.className&&xb(e.node,t.node));BB.displayName="MarkdownLi";var FB=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("ul",{className:Yn("ml-4 list-outside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...r,children:e}),(e,t)=>Ma(e,t));FB.displayName="MarkdownUl";var zB=G.memo(({className:e,node:t,...n})=>h.jsx("hr",{className:Yn("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n}),(e,t)=>Ma(e,t));zB.displayName="MarkdownHr";var HB=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("span",{className:Yn("font-semibold",t),"data-streamdown":"strong",...r,children:e}),(e,t)=>Ma(e,t));HB.displayName="MarkdownStrong";var UB=G.memo(({children:e,className:t,href:n,node:r,...a})=>{let s=n==="streamdown:incomplete-link";return h.jsx("a",{className:Yn("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":s,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...a,children:e})},(e,t)=>Ma(e,t)&&e.href===t.href);UB.displayName="MarkdownA";var qB=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("h1",{className:Yn("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e}),(e,t)=>Ma(e,t));qB.displayName="MarkdownH1";var VB=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("h2",{className:Yn("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e}),(e,t)=>Ma(e,t));VB.displayName="MarkdownH2";var GB=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("h3",{className:Yn("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e}),(e,t)=>Ma(e,t));GB.displayName="MarkdownH3";var $B=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("h4",{className:Yn("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e}),(e,t)=>Ma(e,t));$B.displayName="MarkdownH4";var WB=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("h5",{className:Yn("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e}),(e,t)=>Ma(e,t));WB.displayName="MarkdownH5";var YB=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("h6",{className:Yn("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e}),(e,t)=>Ma(e,t));YB.displayName="MarkdownH6";var QB=G.memo(({children:e,className:t,node:n,...r})=>{let a=G.useContext(x7),s=P6(a,"table");return h.jsxs("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[s&&h.jsxs("div",{className:"flex items-center justify-end gap-1",children:[h.jsx(Z2e,{}),h.jsx(exe,{})]}),h.jsx("div",{className:"overflow-x-auto",children:h.jsx("table",{className:Yn("w-full border-collapse border border-border",t),"data-streamdown":"table",...r,children:e})})]})},(e,t)=>Ma(e,t));QB.displayName="MarkdownTable";var XB=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("thead",{className:Yn("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e}),(e,t)=>Ma(e,t));XB.displayName="MarkdownThead";var KB=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("tbody",{className:Yn("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...r,children:e}),(e,t)=>Ma(e,t));KB.displayName="MarkdownTbody";var JB=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("tr",{className:Yn("border-border border-b",t),"data-streamdown":"table-row",...r,children:e}),(e,t)=>Ma(e,t));JB.displayName="MarkdownTr";var ZB=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("th",{className:Yn("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e}),(e,t)=>Ma(e,t));ZB.displayName="MarkdownTh";var eF=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("td",{className:Yn("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e}),(e,t)=>Ma(e,t));eF.displayName="MarkdownTd";var tF=G.memo(({children:e,className:t,node:n,...r})=>
1112h.jsx("blockquote",{className:Yn("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e}),(e,t)=>Ma(e,t));tF.displayName="MarkdownBlockquote";var nF=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("sup",{className:Yn("text-sm",t),"data-streamdown":"superscript",...r,children:e}),(e,t)=>Ma(e,t));nF.displayName="MarkdownSup";var rF=G.memo(({children:e,className:t,node:n,...r})=>h.jsx("sub",{className:Yn("text-sm",t),"data-streamdown":"subscript",...r,children:e}),(e,t)=>Ma(e,t));rF.displayName="MarkdownSub";var aF=G.memo(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let a=i=>{var o,c;if(!G.isValidElement(i))return!1;let d=Array.isArray(i.props.children)?i.props.children:[i.props.children],f=!1,m=!1;for(let b of d)if(b){if(typeof b=="string")b.trim()!==""&&(f=!0);else if(G.isValidElement(b))if(((o=b.props)==null?void 0:o["data-footnote-backref"])!==void 0)m=!0;else{let g=Array.isArray(b.props.children)?b.props.children:[b.props.children];for(let v of g){if(typeof v=="string"&&v.trim()!==""){f=!0;break}if(G.isValidElement(v)&&((c=v.props)==null?void 0:c["data-footnote-backref"])===void 0){f=!0;break}}}}return m&&!f},s=Array.isArray(e)?e.map(i=>{if(!G.isValidElement(i))return i;if(i.type===g7){let o=(Array.isArray(i.props.children)?i.props.children:[i.props.children]).filter(c=>!a(c));return o.length===0?null:{...i,props:{...i.props,children:o}}}return i}):e;return(Array.isArray(s)?s.some(i=>i!==null):s!==null)?h.jsx("section",{className:t,...r,children:s}):null}return h.jsx("section",{className:t,...r,children:e})},(e,t)=>Ma(e,t));aF.displayName="MarkdownSection";var nxe=({node:e,className:t,children:n,...r})=>{var a,s,i;let o=((a=e?.position)==null?void 0:a.start.line)===((s=e?.position)==null?void 0:s.end.line),c=G.useContext(uF),d=G.useContext(x7);if(o)return h.jsx("code",{className:Yn("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let f=t?.match(txe),m=(i=f?.at(1))!=null?i:"",b="";if(G.isValidElement(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?b=n.props.children:typeof n=="string"&&(b=n),m==="mermaid"){let v=P6(d,"mermaid");return h.jsxs("div",{className:Yn("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[v&&h.jsxs("div",{className:"flex items-center justify-end gap-2",children:[h.jsx(pA,{code:b,language:m}),h.jsx(mA,{code:b})]}),h.jsx(J2e,{chart:b,config:c})]})}let g=P6(d,"code");return h.jsx(Q2e,{className:Yn("overflow-x-auto border-t",t),code:b,"data-language":m,"data-streamdown":"code-block",language:m,preClassName:"overflow-x-auto font-mono text-xs p-4 bg-muted/40",children:g&&h.jsxs(h.Fragment,{children:[h.jsx(pA,{code:b,language:m}),h.jsx(mA,{})]})})},sF=G.memo(nxe,(e,t)=>e.className===t.className&&xb(e.node,t.node));sF.displayName="MarkdownCode";var iF=G.memo(X2e,(e,t)=>e.className===t.className&&xb(e.node,t.node));iF.displayName="MarkdownImg";var oF=G.memo(({children:e,className:t,node:n,...r})=>{var a;let s=(Array.isArray(e)?e:[e]).filter(i=>i!=null&&i!=="");return s.length===1&&G.isValidElement(s[0])&&((a=s[0].props.node)==null?void 0:a.tagName)==="img"?h.jsx(h.Fragment,{children:e}):h.jsx("p",{className:t,...r,children:e})},(e,t)=>Ma(e,t));oF.displayName="MarkdownParagraph";var rxe={ol:g7,li:BB,ul:FB,hr:zB,strong:HB,a:UB,h1:qB,h2:VB,h3:GB,h4:$B,h5:WB,h6:YB,table:QB,thead:XB,tbody:KB,tr:JB,th:ZB,td:eF,blockquote:tF,code:sF,img:iF,pre:({children:e})=>e,sup:nF,sub:rF,p:oF,section:aF},axe=e=>{let t=/\[\^[^\]\s]{1,200}\](?!:)/.test(e),n=/\[\^[^\]\s]{1,200}\]:/.test(e);if(t||n)return[e];let r=Uo.lex(e,{gfm:!0}),a=[],s=[];for(let i=0;i<r.length;i++){let o=r[i],c=o.raw;if(s.length>0){if(a[a.length-1]+=c,o.type==="html"){let d=c.match(/<\/(\w+)>/);if(d){let f=d[1];s[s.length-1]===f&&s.pop()}}continue}if(o.type==="html"&&o.block){let d=c.match(/<(\w+)[\s>]/);if(d){let f=d[1];c.includes(`</${f}>`)||s.push(f)}}if(c.trim()==="$$"&&a.length>0){let d=a.at(-1);if(!d){a.push(c);continue}let f=d.trimStart().startsWith("$$"),m=(d.match(/\$\$/g)||[]).length;if(f&&m%2===1){a[a.length-1]=d+c;continue}}if(a.length>0&&c.trimEnd().endsWith("$$")){let d=a.at(-1);if(!d){a.push(c);continue}let f=d.trimStart().startsWith("$$"),m=(d.match(/\$\$/g)||[]).length,b=(c.match(/\$\$/g)||[]).length;if(f&&m%2===1&&!c.trimStart().startsWith("$$")&&b===1){a[a.length-1]=d+c;continue}}a.push(c)}return a},sxe=/(!?\[)([^\]]*?)$/,ixe=/(\*\*)([^*]*?)$/,oxe=/(__)([^_]*?)$/,lxe=/(\*\*\*)([^*]*?)$/,cxe=/(\*)([^*]*?)$/,uxe=/(_)([^_]*?)$/,dxe=/(`)([^`]*?)$/,hxe=/(~~)([^~]*?)$/,bb=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2===0&&e.includes(` 1113`)},fxe=e=>{let t=/(!?)\[([^\]]+)\]\(([^)]+)$/,n=e.match(t);if(n){let a=n[1]==="!",s=n[2],i=n[3],o=e.lastIndexOf(`${a?"!":""}[${s}](${i}`),c=e.substring(0,o);return a?c:`${c}[${s}](streamdown:incomplete-link)`}let r=e.match(sxe);if(r){if(r[1].startsWith("!")){let a=e.lastIndexOf(r[1]);return e.substring(0,a)}return`${e}
1113](streamdown:incomplete-link)`}return e},pxe=e=>{if(bb(e))return e;let t=e.match(ixe);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;let r=e.lastIndexOf(t[1]),a=e.substring(0,r).lastIndexOf(` 1114`),s=a===-1?0:a+1,i=e.substring(s,r);if(/^[\s]*[-*+][\s]+$/.test(i)&&n.includes(` 1115`))return e;if((e.match(/\*\*/g)||[]).length%2===1)return`${e}**`}return e},mxe=e=>{let t=e.match(oxe);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;let r=e.lastIndexOf(t[1]),a=e.substring(0,r).lastIndexOf(` 1116`),s=a===-1?0:a+1,i=e.substring(s,r);if(/^[\s]*[-*+][\s]+$/.test(i)&&n.includes(` 1117`))return e;if((e.match(/__/g)||[]).length%2===1)return`${e}__`}return e},gxe=e=>e.split("").reduce((t,n,r)=>{if(n==="*"){let a=e[r-1],s=e[r+1];if(a==="\\")return t;let i=r;for(let o=r-1;o>=0;o--){if(e[o]===` 1118`){i=o+1;break}if(o===0){i=0;break}}if(e.substring(i,r).trim()===""&&(s===" "||s===" "))return t;if(a!=="*"&&s!=="*")return t+1}return t},0),xxe=e=>{if(bb(e))return e;if(e.match(cxe)){let t=-1;for(let r=0;r<e.length;r++)if(e[r]==="*"&&e[r-1]!=="*"&&e[r+1]!=="*"){t=r;break}if(t===-1)return e;let n=e.substring(t+1);if(!n||/^[\s_~*`]*$/.test(n))return e;if(gxe(e)%2===1)return`${e}*`}return e},lF=(e,t)=>{let n=!1,r=!1;for(let a=0;a<e.length&&a<t;a++){if(e[a]==="\\"&&e[a+1]==="$"){a++;continue}e[a]==="$"&&(e[a+1]==="$"?(r=!r,a++,n=!1):r||(n=!n))}return n||r},bxe=e=>e.split("").reduce((t,n,r)=>{if(n==="_"){let a=e[r-1],s=e[r+1];if(a==="\\"||lF(e,r)||a&&s&&/[\p{L}\p{N}_]/u.test(a)&&/[\p{L}\p{N}_]/u.test(s))return t;if(a!=="_"&&s!=="_")return t+1}return t},0),yxe=e=>{if(bb(e))return e;if(e.match(uxe)){let t=-1;for(let r=0;r<e.length;r++)if(e[r]==="_"&&e[r-1]!=="_"&&e[r+1]!=="_"&&e[r-1]!=="\\"&&!lF(e,r)){let a=r>0?e[r-1]:"",s=r<e.length-1?e[r+1]:"";if(a&&s&&/[\p{L}\p{N}_]/u.test(a)&&/[\p{L}\p{N}_]/u.test(s))continue;t=r;break}if(t===-1)return e;let n=e.substring(t+1);if(!n||/^[\s_~*`]*$/.test(n))return e;if(bxe(e)%2===1){let r=e.match(/\n+$/);return r?`${e.slice(0,-r[0].length)}_${r[0]}`:`${e}_`}}return e},vxe=(e,t)=>{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",a=t>1&&e.substring(t-2,t+1)==="```";return n||r||a},wxe=e=>{let t=0;for(let n=0;n<e.length;n++)e[n]==="`"&&!vxe(e,n)&&t++;return t},Sxe=e=>{if(e.match(/^```[^`\n]*```?$/)&&!e.includes(` 1119`))return e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e;let t=(e.match(/```/g)||[]).length,n=t%2===1;if(t>0&&t%2===0&&e.includes(` 1120`)||(e.endsWith("```\n")||e.endsWith("```"))&&t%2===0)return e;let r=e.match(dxe);if(r&&!n){let a=r[2];if(!a||/^[\s_~*`]*$/.test(a))return e;if(wxe(e)%2===1)return`${e}\``}return e},Exe=e=>{let t=e.match(hxe);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;if((e.match(/~~/g)||[]).length%2===1)return`${e}~~`}return e},kxe=e=>{if((e.match(/\$\$/g)||[]).length%2===0)return e;let t=e.indexOf("$$");return t!==-1&&e.indexOf(` 1121`,t)!==-1&&!e.endsWith(` 1122`)?`${e} 1123$$`:`${e}$$`},_xe=e=>{let t=0,n=e.match(/\*+/g)||[];for(let r of n){let a=r.length;a>=3&&(t+=Math.floor(a/3))}return t},Txe=e=>{if(bb(e)||/^\*{4,}$/.test(e))return e;let t=e.match(lxe);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;if(_xe(e)%2===1)return`${e}***`}return e},Cxe=e=>{if(!e||typeof e!="string")return e;let t=e,n=fxe(t);return n.endsWith("](streamdown:incomplete-link)")?n:(t=n,t=Txe(t),t=pxe(t),t=mxe(t),t=xxe(t),t=yxe(t),t=Sxe(t),t=Exe(t),t=kxe(t),t)},Nxe={harden:[xfe,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],defaultOrigin:void 0,allowDataImages:!0}],raw:Kde,katex:[Ble,{errorColor:"var(--color-muted-foreground)"}]},Axe={gfm:[sfe,{}],math:[gfe,{singleDollarTextMath:!1}]},cF=G.createContext(["github-light","github-dark"]),uF=G.createContext(void 0),x7=G.createContext(!0),ug=G.createContext({isAnimating:!1}),dF=G.memo(({content:e,shouldParseIncompleteMarkdown:t,...n})=>{let r=G.useMemo(()=>typeof e=="string"&&t?Cxe(e.trim()):e,[e,t]);return h.jsx(die,{...n,children:r})},(e,t)=>e.content===t.content);dF.displayName="Block";var hF=G.memo(({children:e,parseIncompleteMarkdown:t=!0,components:n,rehypePlugins:r=Object.values(Nxe),remarkPlugins:a=Object.values(Axe),className:s,shikiTheme:i=["github-light","github-dark"],mermaidConfig:o,controls:c=!0,isAnimating:d=!1,...f})=>{let m=G.useId(),b=G.useMemo(()=>axe(typeof e=="string"?e:""),[e]);return h.jsx(cF.Provider,{value:i,children:h.jsx(uF.Provider,{value:o,children:h.jsx(x7.Provider,{value:c,children:h.jsx(ug.Provider,{value:{isAnimating:d},children:h.jsx("div",{className:Yn("space-y-4",s),children:b.map((g,v)=>h.jsx(dF,{components:{...rxe,...n},content:g,rehypePlugins:r,remarkPlugins:a,shouldParseIncompleteMarkdown:t,...f},`${m}-block-${v}`))})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating);hF.displayName="Streamdown";function Lxe({messages:e,onSendMessage:t,isLoading:n=!1,placeholder:r="Type your message...",className:a,height:s="600px",emptyStateMessage:i="Start a conversation with AI",suggestedPrompts:o}){const[c,d]=G.useState(""),f=G.useRef(null),m=G.useRef(null),b=G.useRef(null),g=G.useRef(null),v=e.filter(P=>P.role!=="system"),[E,T]=G.useState(0);G.useEffect(()=>{if(m.current&&b.current){const P=m.current.offsetHeight,V=b.current.offsetHeight,H=P-V-32-56;T(Math.max(0,H))}},[]);const _=()=>{const P=f.current?.querySelector("[data-radix-scroll-area-viewport]");P&&requestAnimationFrame(()=>{P.scrollTo({top:P.scrollHeight,behavior:"smooth"})})},A=P=>{P.preventDefault();const V=c.trim();!V||n||(t(V),d(""),_(),g.current?.focus())},R=P=>{P.key==="Enter"&&!P.shiftKey&&(P.preventDefault(),A(P))};return h.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:191",ref:m,className:Ac("flex flex-col bg-card text-card-foreground rounded-lg border shadow-sm",a),style:{height:s},children:[h.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:200",ref:f,className:"flex-1 overflow-hidden",children:v.length===0?h.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:202",className:"flex h-full flex-col p-4",children:h.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:203",className:"flex flex-1 flex-col items-center justify-center gap-6 text-muted-foreground",children:[h.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:204",className:"flex flex-col items-center gap-3",children:[h.jsx(Qd,{"data-loc":"client/src/components/AIChatBox.tsx:205",className:"size-12 opacity-20"}),h.jsx("p",{"data-loc":"client/src/components/AIChatBox.tsx:206",className:"text-sm",children:i})]}),o&&o.length>0&&h.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:210",className:"flex max-w-2xl flex-wrap justify-center gap-2",children:o.map((P,V)=>h.jsx("button",{"data-loc":"client/src/components/AIChatBox.tsx:212",onClick:()=>t(P),disabled:n,className:"rounded-lg border border-border bg-card px-4 py-2 text-sm transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50",children:P},V))})]})}):h.jsx(ine,{"data-loc":"client/src/components/AIChatBox.tsx:226",className:"h-full",children:h.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:227",className:"flex flex-col space-y-4 p-4",children:[v.map((P,V)=>{const D=V===v.length-1&&!n&&E>0;return h.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:235",className:Ac("flex gap-3",P.role==="user"?"justify-end items-start":"justify-start items-start"),style:D?{minHeight:`${E}px`}:void 0,children:[P.role==="assistant"&&h.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:250",className:"size-8 shrink-0 mt-1 rounded-full bg-primary/10 flex items-center justify-center",children:h.jsx(Qd,{"data-loc":"client/src/components/AIChatBox.tsx:251",className:"size-4 text-primary"})}),h.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:255",className:Ac("max-w-[80%] rounded-lg px-4 py-2.5",P.role==="user"?"bg-primary text-primary-foreground":"bg-muted text-foreground"),children:P.role==="assistant"?h.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:264",className:"prose prose-sm dark:prose-invert max-w-none",children:h.jsx(hF,{"data-loc":"client/src/components/AIChatBox.tsx:265",children:P.content})}):h.jsx("p",{"data-loc":"client/src/components/AIChatBox.tsx:268",className:"whitespace-pre-wrap text-sm",children:P.content})}),P.role==="user"&&h.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:275",className:"size-8 shrink-0 mt-1 rounded-full bg-secondary flex items-center justify-center",children:h.jsx($K,{"data-loc":"client/src/components/AIChatBox.tsx:276",className:"size-4 text-secondary-foreground"})})]},V)}),n&&h.jsxs("div",{"data-loc":"client/src/components/AIChatBox.tsx:284",className:"flex items-start gap-3",style:E>0?{minHeight:`${E}px`}:void 0,children:[h.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:292",className:"size-8 shrink-0 mt-1 rounded-full bg-primary/10 flex items-center justify-center",children:h.jsx(Qd,{"data-loc":"client/src/components/AIChatBox.tsx:293",className:"size-4 text-primary"})}),h.jsx("div",{"data-loc":"client/src/components/AIChatBox.tsx:295",className:"rounded-lg bg-muted px-4 py-2.5",children:h.jsx(Zs,{"data-loc":"client/src/components/AIChatBox.tsx:296",className:"size-4 animate-spin text-muted-foreground"})})]})]})})}),h.jsxs("form",{"data-loc":"client/src/components/AIChatBox.tsx:306",ref:b,onSubmit:A,className:"flex gap-2 p-4 border-t bg-background/50 items-end",children:[h.jsx(Ute,{"data-loc":"client/src/components/AIChatBox.tsx:311",ref:g,value:c,onChange:P=>d(P.target.value),onKeyDown:R,placeholder:r,className:"flex-1 max-h-32 resize-none min-h-9",rows:1}),h.jsx(Bte,{"data-loc":"client/src/components/AIChatBox.tsx:320",type:"submit",size:"icon",disabled:!c.trim()||n,className:"shrink-0 h-[38px] w-[38px]",children:n?h.jsx(Zs,{"data-loc":"client/src/components/AIChatBox.tsx:327",className:"size-4 animate-spin"}):h.jsx(jx,{"data-loc":"client/src/components/AIChatBox.tsx:329",className:"size-4"})})]})]})}const Mxe=["What clearances should I check before final assembly?","Is my compression ratio safe for pump gas?","What camshaft specs work best for this build goal?","How much deck clearance do I need for the pistons?"];function Rxe({buildContext:e,buildName:t}){const[n,r]=G.useState(!1),[a,s]=G.useState([]),i=Tr.ai.buildChat.useMutation({onSuccess:c=>{s(d=>[...d,{role:"assistant",content:c.content}])},onError:()=>{s(c=>[...c,{role:"assistant",content:"Sorry, I ran into an error. Please try again."}])}}),o=G.useCallback(c=>{const d={role:"user",content:c},f=[...a,d];s(f),i.mutate({messages:f.filter(m=>m.role!=="system").map(m=>({role:m.role,content:m.content})),buildContext:e})},[a,e,i]);return h.jsxs("div",{"data-loc":"client/src/components/BuildAssistant.tsx:75",className:"fixed bottom-6 right-6 z-40 flex flex-col items-end gap-2",children:[h.jsx(Ba,{"data-loc":"client/src/components/BuildAssistant.tsx:77",children:n&&h.jsxs(Je.div,{"data-loc":"client/src/components/BuildAssistant.tsx:79",initial:{opacity:0,scale:.95,y:16}
1123,animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:16},transition:{duration:.2},className:"w-[380px] rounded-xl border border-border overflow-hidden shadow-2xl",style:{background:"oklch(0.11 0.004 285)"},children:[h.jsxs("div",{"data-loc":"client/src/components/BuildAssistant.tsx:88",className:"flex items-center justify-between px-4 py-3 border-b border-border",style:{background:"oklch(0.13 0.004 285)"},children:[h.jsxs("div",{"data-loc":"client/src/components/BuildAssistant.tsx:92",className:"flex items-center gap-2.5",children:[h.jsx("div",{"data-loc":"client/src/components/BuildAssistant.tsx:93",className:"w-7 h-7 rounded-md flex items-center justify-center flex-shrink-0",style:{background:"var(--orange-dim)"},children:h.jsx(Qd,{"data-loc":"client/src/components/BuildAssistant.tsx:97",className:"w-3.5 h-3.5",style:{color:"var(--orange)"}})}),h.jsxs("div",{"data-loc":"client/src/components/BuildAssistant.tsx:99",children:[h.jsx("div",{"data-loc":"client/src/components/BuildAssistant.tsx:100",className:"text-sm font-bold text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"EngineBuildr AI"}),h.jsx("div",{"data-loc":"client/src/components/BuildAssistant.tsx:106",className:"text-xs text-muted-foreground",children:t})]})]}),h.jsx("button",{"data-loc":"client/src/components/BuildAssistant.tsx:109",onClick:()=>r(!1),className:"text-muted-foreground hover:text-foreground transition-colors",children:h.jsx(Sp,{"data-loc":"client/src/components/BuildAssistant.tsx:113",className:"w-4 h-4"})})]}),h.jsxs("div",{"data-loc":"client/src/components/BuildAssistant.tsx:118",className:"px-4 py-2 border-b border-border flex items-center gap-2 flex-wrap",style:{background:"oklch(0.12 0.004 285)"},children:[h.jsx("span",{"data-loc":"client/src/components/BuildAssistant.tsx:122",className:"text-xs px-2 py-0.5 rounded",style:{background:"var(--orange-dim)",color:"var(--orange)",fontFamily:"'JetBrains Mono', monospace",fontSize:"0.65rem"},children:e.engineFamily}),e.buildGoal&&h.jsx("span",{"data-loc":"client/src/components/BuildAssistant.tsx:134",className:"text-xs px-2 py-0.5 rounded",style:{background:"oklch(0.14 0.004 285)",color:"var(--muted-foreground)",fontFamily:"'JetBrains Mono', monospace",fontSize:"0.65rem"},children:e.buildGoal.toUpperCase()}),e.bore&&e.stroke&&h.jsxs("span",{"data-loc":"client/src/components/BuildAssistant.tsx:147",className:"text-xs px-2 py-0.5 rounded",style:{background:"oklch(0.14 0.004 285)",color:"var(--muted-foreground)",fontFamily:"'JetBrains Mono', monospace",fontSize:"0.65rem"},children:[e.bore,"Ã",e.stroke]})]}),h.jsx(Lxe,{"data-loc":"client/src/components/BuildAssistant.tsx:162",messages:a,onSendMessage:o,isLoading:i.isPending,placeholder:"Ask about specs, clearances, parts...",height:400,emptyStateMessage:`Ask me anything about your ${e.engineFamily} build.`,suggestedPrompts:Mxe})]})}),h.jsxs(Je.button,{"data-loc":"client/src/components/BuildAssistant.tsx:176",onClick:()=>r(c=>!c),className:"flex items-center gap-2.5 px-4 py-3 rounded-full shadow-2xl font-medium text-sm transition-all duration-150 active:scale-95",style:{background:"var(--orange)",color:"white"},whileHover:{scale:1.04},whileTap:{scale:.96},children:[h.jsx(Qd,{"data-loc":"client/src/components/BuildAssistant.tsx:183",className:"w-4 h-4"}),"AI Assistant",n?h.jsx(wp,{"data-loc":"client/src/components/BuildAssistant.tsx:185",className:"w-3.5 h-3.5"}):h.jsx(Iw,{"data-loc":"client/src/components/BuildAssistant.tsx:185",className:"w-3.5 h-3.5"})]})]})}const Oxe={easy:{label:"Easy",color:"oklch(0.7 0.18 140)",bg:"oklch(0.15 0.05 140)"},moderate:{label:"Moderate",color:"oklch(0.75 0.15 60)",bg:"oklch(0.15 0.05 60)"},advanced:{label:"Advanced",color:"var(--orange)",bg:"var(--orange-dim)"},machine_shop:{label:"Machine Shop",color:"oklch(0.65 0.2 20)",bg:"oklch(0.15 0.05 20)"}};function Pxe({part:e,buildContext:t,existingParts:n}){const[r,a]=G.useState(null),[s,i]=G.useState(!1),[o,c]=G.useState(null),d=Tr.ai.checkCompatibility.useMutation({onSuccess:v=>{a(v),i(!0)}}),f=()=>{if(r){i(!0);return}d.mutate({engineFamily:t.engineFamily,engineCategory:t.engineCategory,buildGoal:t.buildGoal,bore:t.bore,stroke:t.stroke,compressionTarget:t.compressionTarget,hpTarget:t.hpTarget,partName:e.name,partCategory:e.category,partSpec:e.spec,existingParts:n})},m=d.isPending,b=!!r,g=()=>m?h.jsxs("span",{"data-loc":"client/src/components/CompatibilityChecker.tsx:106",className:"inline-flex items-center gap-1.5 text-xs px-2 py-1 rounded-md",style:{background:"oklch(0.14 0.004 285)",color:"var(--muted-foreground)"},children:[h.jsx(Zs,{"data-loc":"client/src/components/CompatibilityChecker.tsx:110",className:"w-3 h-3 animate-spin"}),"Checking..."]}):b?r.compatible?h.jsxs("button",{"data-loc":"client/src/components/CompatibilityChecker.tsx:129",onClick:()=>i(!0),className:"inline-flex items-center gap-1.5 text-xs px-2 py-1 rounded-md transition-all duration-150 active:scale-95",style:{background:"oklch(0.15 0.05 140)",color:"oklch(0.7 0.18 140)"},children:[h.jsx(La,{"data-loc":"client/src/components/CompatibilityChecker.tsx:134",className:"w-3 h-3"}),"Compatible",r.warnings.length>0&&h.jsx(qi,{"data-loc":"client/src/components/CompatibilityChecker.tsx:136",className:"w-3 h-3 ml-0.5",style:{color:"oklch(0.75 0.15 60)"}})]}):h.jsxs("button",{"data-loc":"client/src/components/CompatibilityChecker.tsx:141",onClick:()=>i(!0),className:"inline-flex items-center gap-1.5 text-xs px-2 py-1 rounded-md transition-all duration-150 active:scale-95",style:{background:"var(--orange-dim)",color:"var(--orange)"},children:[h.jsx(V9,{"data-loc":"client/src/components/CompatibilityChecker.tsx:14
11236",className:"w-3 h-3"}),"Incompatible â ",r.modifications.length," fix",r.modifications.length!==1?"es":""]}):h.jsxs("button",{"data-loc":"client/src/components/CompatibilityChecker.tsx:117",onClick:f,className:"inline-flex items-center gap-1.5 text-xs px-2 py-1 rounded-md border border-border hover:border-white/20 transition-all duration-150 active:scale-95",style:{color:"var(--muted-foreground)"},children:[h.jsx(Qd,{"data-loc":"client/src/components/CompatibilityChecker.tsx:122",className:"w-3 h-3",style:{color:"var(--orange)"}}),"AI Check"]});return h.jsxs(h.Fragment,{children:[g(),h.jsx(Ba,{"data-loc":"client/src/components/CompatibilityChecker.tsx:157",children:s&&r&&h.jsx(Je.div,{"data-loc":"client/src/components/CompatibilityChecker.tsx:159",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center p-4",style:{background:"oklch(0 0 0 / 0.7)"},onClick:v=>{v.target===v.currentTarget&&i(!1)},children:h.jsxs(Je.div,{"data-loc":"client/src/components/CompatibilityChecker.tsx:167",initial:{opacity:0,scale:.95,y:16},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:16},transition:{duration:.2},className:"w-full max-w-2xl rounded-xl border border-border overflow-hidden",style:{background:"oklch(0.11 0.004 285)",maxHeight:"85vh",overflowY:"auto"},children:[h.jsxs("div",{"data-loc":"client/src/components/CompatibilityChecker.tsx:176",className:"px-6 py-4 border-b border-border flex items-start justify-between gap-4",style:{background:"oklch(0.13 0.004 285)"},children:[h.jsxs("div",{"data-loc":"client/src/components/CompatibilityChecker.tsx:180",className:"flex-1 min-w-0",children:[h.jsxs("div",{"data-loc":"client/src/components/CompatibilityChecker.tsx:181",className:"flex items-center gap-2 mb-1",children:[h.jsx(Qd,{"data-loc":"client/src/components/CompatibilityChecker.tsx:182",className:"w-4 h-4 flex-shrink-0",style:{color:"var(--orange)"}}),h.jsx("span",{"data-loc":"client/src/components/CompatibilityChecker.tsx:183",className:"text-xs uppercase tracking-wider",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:"AI Compatibility Analysis"}),h.jsxs("span",{"data-loc":"client/src/components/CompatibilityChecker.tsx:189",className:"text-xs px-1.5 py-0.5 rounded",style:{background:r.confidence==="high"?"oklch(0.15 0.05 140)":r.confidence==="medium"?"oklch(0.15 0.05 60)":"oklch(0.14 0.004 285)",color:r.confidence==="high"?"oklch(0.7 0.18 140)":r.confidence==="medium"?"oklch(0.75 0.15 60)":"var(--muted-foreground)",fontFamily:"'JetBrains Mono', monospace",fontSize:"0.65rem"},children:[r.confidence.toUpperCase()," CONFIDENCE"]})]}),h.jsx("h3",{"data-loc":"client/src/components/CompatibilityChecker.tsx:201",className:"text-lg font-bold text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:e.name}),h.jsxs("p",{"data-loc":"client/src/components/CompatibilityChecker.tsx:207",className:"text-xs text-muted-foreground",children:[e.category," · ",t.engineFamily]})]}),h.jsx("button",{"data-loc":"client/src/components/CompatibilityChecker.tsx:209",onClick:()=>i(!1),className:"text-muted-foreground hover:text-foreground transition-colors text-xl leading-none flex-shrink-0",children:"Ã"})]}),h.jsxs("div",{"data-loc":"client/src/components/CompatibilityChecker.tsx:217",className:"px-6 py-5 space-y-5",children:[h.jsxs("div",{"data-loc":"client/src/components/CompatibilityChecker.tsx:219",className:"flex items-start gap-3 p-4 rounded-lg",style:{background:r.compatible?"oklch(0.15 0.05 140)":"var(--orange-dim)",border:`1px solid ${r.compatible?"oklch(0.3 0.1 140)":"oklch(0.3 0.15 30)"}`},children:[r.compatible?h.jsx(La,{"data-loc":"client/src/components/CompatibilityChecker.tsx:227",className:"w-5 h-5 flex-shrink-0 mt-0.5",style:{color:"oklch(0.7 0.18 140)"}}):h.jsx(V9,{"data-loc":"client/src/components/CompatibilityChecker.tsx:229",className:"w-5 h-5 flex-shrink-0 mt-0.5",style:{color:"var(--orange)"}}),h.jsx("p",{"data-loc":"client/src/components/CompatibilityChecker.tsx:231",className:"text-sm",style:{color:r.compatible?"oklch(0.85 0.12 140)":"oklch(0.9 0.1 30)"},children:r.summary})]}),r.issues.length>0&&h.jsxs("div",{"data-loc":"client/src/components/CompatibilityChecker.tsx:241",children:[h.jsx("h4",{"data-loc":"client/src/components/CompatibilityChecker.tsx:242",className:"text-xs uppercase tracking-wider text-muted-foreground mb-3",style:{fontFamily:"'JetBrains Mono', monospace"},children:"Compatibility Issues"}),h.jsx("ul",{"data-loc":"client/src/components/CompatibilityChecker.tsx:248",className:"space-y-2",children:r.issues.map((v,E)=>h.jsxs("li",{"data-loc":"client/src/components/CompatibilityChecker.tsx:250",className:"flex items-start gap-2.5 text-sm",children:[h.jsx(qi,{"data-loc":"client/src/components/CompatibilityChecker.tsx:251",className:"w-3.5 h-3.5 flex-shrink-0 mt-0.5",style:{color:"var(--orange)"}}),h.jsx("span",{"data-loc":"client/src/components/CompatibilityChecker.tsx:252",className:"text-foreground",children:v})]},E))})]}),r.modifications.length>0&&h.jsxs("div",{"data-loc":"client/src/components/CompatibilityChecker.tsx:261",children:[h.jsxs("h4",{"data-loc":"client/src/components/CompatibilityChecker.tsx:262",className:"text-xs uppercase tracking-wider text-muted-foreground mb-3",style:{fontFamily:"'JetBrains Mono', monospace"},children:["Suggested Modifications (",r.modifications.length,")"]}),h.jsx("div",{"data-loc":"client/src/components/CompatibilityChecker.tsx:268",className:"space-y-2",children:r.modifications.map((v,E)=>{const T=Oxe[v.difficulty],_=o===E;return h.jsxs("div",{"data-loc":"client/src/components/CompatibilityChecker.tsx:273",className:"rounded-lg border border-border overflow-hidden",style:{background:"oklch(0.13 0.004 285)"},children:[h.jsxs("button",{"data-loc":"client/src/components/CompatibilityChecker.tsx:278",className:"w-full flex items-center justify-between px-4 py-3 text-left",onClick:()=>c(_?null:E),children:[h.jsxs("div",{"data-loc":"client/src/components/CompatibilityChecker.tsx:282",className:"flex items-center gap-3",children:[h.jsx(ei,{"data-loc":"client/src/components/CompatibilityChecker.tsx:283",className:"w-3.5 h-3.5 flex-shrink-0",style:{color:"var(--orange)"}}),h.jsx("span",{"data-loc":"client/src/components/CompatibilityChecker.tsx:284",className:"text-sm font-medium text-foreground",children:v.title})]}),h.jsxs("div",{"data-loc":"client/src/components/CompatibilityChecker.tsx:286",className:"flex items-center gap-2",children:[h.jsx("span",{"data-loc":"client/src/components/CompatibilityChecker.tsx:287",className:"text-xs px-2 py-0.5 rounded",style:{background:T.bg,color:T.color,fontFamily:"'JetBrains Mono', monospace",fontSize:"0.65rem"},children:T.label.toUpperCase()}),h.jsxs("span",{"data-loc":"client/src/components/CompatibilityChecker.tsx:293",className:"text-xs text-muted-foreground flex items-center gap-1",children:[h.jsx(KR,{"data-loc":"client/src/components/CompatibilityChecker.tsx:294",className:"w-3 h-3"}),v.estimatedCost]}),_?h.jsx(Iw,{"data-loc":"client/src/components/CompatibilityChecker.tsx:298",className:"w-3.5 h-3.5 text-muted-foreground"}
1123):h.jsx(wp,{"data-loc":"client/src/components/CompatibilityChecker.tsx:300",className:"w-3.5 h-3.5 text-muted-foreground"})]})]}),h.jsx(Ba,{"data-loc":"client/src/components/CompatibilityChecker.tsx:304",children:_&&h.jsx(Je.div,{"data-loc":"client/src/components/CompatibilityChecker.tsx:306",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.15},className:"overflow-hidden",children:h.jsx("div",{"data-loc":"client/src/components/CompatibilityChecker.tsx:313",className:"px-4 pb-4 pt-0 border-t border-border",children:h.jsx("p",{"data-loc":"client/src/components/CompatibilityChecker.tsx:314",className:"text-sm text-muted-foreground leading-relaxed mt-3",children:v.description})})})})]},E)})})]}),r.warnings.length>0&&h.jsxs("div",{"data-loc":"client/src/components/CompatibilityChecker.tsx:328",className:"p-4 rounded-lg border",style:{borderColor:"oklch(0.3 0.1 60)",background:"oklch(0.13 0.03 60)"},children:[h.jsxs("h4",{"data-loc":"client/src/components/CompatibilityChecker.tsx:332",className:"text-xs uppercase tracking-wider mb-2 flex items-center gap-2",style:{fontFamily:"'JetBrains Mono', monospace",color:"oklch(0.75 0.15 60)"},children:[h.jsx(qi,{"data-loc":"client/src/components/CompatibilityChecker.tsx:336",className:"w-3.5 h-3.5"}),"Warnings"]}),h.jsx("ul",{"data-loc":"client/src/components/CompatibilityChecker.tsx:339",className:"space-y-1.5",children:r.warnings.map((v,E)=>h.jsx("li",{"data-loc":"client/src/components/CompatibilityChecker.tsx:341",className:"text-sm",style:{color:"oklch(0.8 0.1 60)"},children:v},E))})]}),h.jsx("div",{"data-loc":"client/src/components/CompatibilityChecker.tsx:350",className:"flex justify-end pt-2",children:h.jsxs("button",{"data-loc":"client/src/components/CompatibilityChecker.tsx:351",onClick:()=>{a(null),d.reset(),d.mutate({engineFamily:t.engineFamily,engineCategory:t.engineCategory,buildGoal:t.buildGoal,bore:t.bore,stroke:t.stroke,compressionTarget:t.compressionTarget,hpTarget:t.hpTarget,partName:e.name,partCategory:e.category,partSpec:e.spec,existingParts:n})},className:"text-xs text-muted-foreground hover:text-foreground flex items-center gap-1.5 transition-colors",children:[h.jsx(Qd,{"data-loc":"client/src/components/CompatibilityChecker.tsx:367",className:"w-3 h-3"}),"Re-analyze"]})})]})]})})})]})}const Lu={hidden:{opacity:0,y:16},visible:(e=0)=>({opacity:1,y:0,transition:{duration:.35,delay:e*.05}})},gA={1:{name:"427 LS Stroker",vehicle:"1969 Camaro SS",stage:"Assembly",progress:72,engineFamily:"GM LS / LT Series",engineCategory:"performance_automotive",buildGoal:"race",bore:'4.125"',stroke:'4.000"',compressionTarget:"11.2:1",hpTarget:"650 hp",specs:[{label:"Displacement",value:"427",unit:"ci"},{label:"Bore",value:"4.125",unit:'"'},{label:"Stroke",value:"4.000",unit:'"'},{label:"Compression Ratio",value:"11.2",unit:":1"},{label:"Rod Length",value:"6.125",unit:'"'},{label:"Deck Height",value:"9.240",unit:'"'},{label:"Target Power",value:"650",unit:"hp"},{label:"Target Torque",value:"610",unit:"lb-ft"}],teardownItems:[{component:"Cylinder Head #1",condition:'Valve seats worn, guide clearance 0.003"',action:"Full valve job + new guides",status:"done"},{component:"Cylinder Head #2",condition:'Valve seats worn, guide clearance 0.003"',action:"Full valve job + new guides",status:"done"},{component:"Block â Cylinder Bores",condition:'0.010" taper on cylinders 3 & 4',action:'Bore +0.030", torque plate hone',status:"done"},{component:"Block â Deck Surface",condition:'0.004" warpage measured',action:'Deck 0.010"',status:"done"},{component:"Main Bearings",condition:'0.0025" clearance â within spec',action:"Replace with new ACL bearings",status:"ok"},{component:"Rod Bearings",condition:"Scoring on #3 rod bearing",action:"Replace all 8 rod bearings",status:"flag"},{component:"Crankshaft",condition:'0.001" runout â within spec',action:"Polish journals",status:"ok"},{component:"Camshaft",condition:"Worn lobes on cylinders 5 & 7",action:"Replace with new Comp Cams",status:"flag"}],assemblySteps:[{step:"Clean and inspect block",done:!0},{step:"Install main bearing shells â check clearance",torque:"75 ft-lb",clearance:'0.0018â0.0024"',done:!0},{step:"Install crankshaft â check end play",clearance:'0.004â0.008"',done:!0},{step:"Install piston rings â check gap",clearance:'0.018â0.022" top ring',done:!0},{step:"Install pistons & rods â check rod bearing clearance",torque:"45 ft-lb",clearance:'0.0015â0.0025"',done:!0},{step:"Degree camshaft",done:!0},{step:"Install timing chain & cover",torque:"18 ft-lb",done:!1},{step:"Install cylinder heads â torque sequence",torque:"65 ft-lb (3 passes)",done:!1},{step:"Install pushrods & rocker arms â set lash",clearance:"Hydraulic â zero lash + 1/2 turn",done:!1},{step:"Install intake manifold",torque:"25 ft-lb",done:!1},{step:"Install valve covers",torque:"8 ft-lb",done:!1},{step:"Install oil pan",torque:"18 ft-lb",done:!1}],parts:[{name:'Forged Pistons 4.125" bore',brand:"JE Pistons",partNum:"182234",qty:8,price:1240,status:"received"},{name:'H-Beam Connecting Rods 6.125"',brand:"Scat",partNum:"2-350-6125-2100",qty:8,price:680,status:"received"},{name:'Forged 4340 Crankshaft 4.000" stroke',brand:"Scat",partNum:"1-350-4000-6125",qty:1,price:1150,status:"received"},{name:"Hydraulic Roller Camshaft",brand:"Comp Cams",partNum:"54-422-11",qty:1,price:420,status:"ordered"},{name:"Cylinder Head Gaskets (pair)",brand:"Cometic",partNum:"C5471-040",qty:2,price:185,status:"received"},{name:"Main Bearing Set",brand:"ACL",partNum:"5M1908H-STD",qty:1,price:95,status:"received"},{name:"Rod Bearing Set",brand:"ACL",partNum:"4B1908H-STD",qty:1,price:85,status:"received"},{name:"Timing Chain Kit",brand:"Cloyes",partNum:"9-3601TX",qty:1,price:145,status:"ordered"}]}},jxe=[{id:"teardown",label:"Tear-Down",icon:XR},{id:"specs",label:"Spec Calculator",icon:Bw},{id:"assembly",label:"Assembly",icon:ei},{id:"parts",label:"Parts",icon:lh},{id:"estimate",label:"Estimate",icon:JR}];function Dxe(){const{id:e}=D5(),[t,n]=G.useState("teardown"),[r,a]=G.useState(null),[s,i]=G.useState(null),[o,c]=G.useState(!1),d=gA[e||"1"]||gA[1],f=parseInt(e||"0"),m=Tr.builds.parts.list.useQuery({buildId:f},{enabled:!!f&&t==="parts"}),b=Tr.useUtils(),g=Tr.builds.parts.delete.useMutation({onSuccess:()=>
1123{b.builds.parts.list.invalidate({buildId:f}),br.success("Part removed")},onError:D=>br.error(D.message)}),v=Tr.share.createShareLink.useMutation({onSuccess:D=>{const H=`${window.location.origin}/estimate/${D.token}`;a(H),navigator.clipboard.writeText(H).catch(()=>{}),br.success("Share link copied to clipboard!")},onError:D=>br.error(D.message)}),E=Tr.share.generateMachineShopOrder.useMutation({onSuccess:D=>{i(D.instructions),c(!0)},onError:D=>br.error(D.message)}),T=d.parts.reduce((D,H)=>D+H.price*H.qty,0),_=3200,A=1850,R=T+_+A,P=d.assemblySteps.filter(D=>D.done).length,V=d.assemblySteps.length,U={engineFamily:d.engineFamily,engineCategory:d.engineCategory,buildGoal:d.buildGoal,bore:d.bore,stroke:d.stroke,compressionTarget:d.compressionTarget,hpTarget:d.hpTarget};return h.jsxs(kp,{"data-loc":"client/src/pages/BuildDetail.tsx:188",breadcrumbs:[{label:"Dashboard",href:"/dashboard"},{label:d.name}],children:[h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:194",className:"px-6 py-6",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/BuildDetail.tsx:196",initial:"hidden",animate:"visible",variants:Lu,className:"mb-6",children:[h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:202",className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:203",children:[h.jsx("h1",{"data-loc":"client/src/pages/BuildDetail.tsx:204",className:"text-5xl font-bold uppercase text-foreground leading-none",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:d.name}),h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:210",className:"text-muted-foreground mt-1",children:d.vehicle})]}),h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:212",className:"flex items-center gap-3",children:[h.jsxs("button",{"data-loc":"client/src/pages/BuildDetail.tsx:213",onClick:()=>v.mutate({buildId:parseInt(e||"1")}),disabled:v.isPending,className:"flex items-center gap-2 px-3 py-2 rounded-md border border-border text-sm text-muted-foreground hover:text-foreground hover:border-white/20 transition-all disabled:opacity-50",children:[v.isPending?h.jsx(Zs,{"data-loc":"client/src/pages/BuildDetail.tsx:218",className:"w-4 h-4 animate-spin"}):h.jsx(IK,{"data-loc":"client/src/pages/BuildDetail.tsx:218",className:"w-4 h-4"}),"Share Estimate"]}),h.jsx(kt,{"data-loc":"client/src/pages/BuildDetail.tsx:221",href:`/builds/${e}/estimate`,children:h.jsxs("button",{"data-loc":"client/src/pages/BuildDetail.tsx:222",className:"flex items-center gap-2 px-4 py-2 rounded-md text-sm font-medium transition-all active:scale-95",style:{background:"var(--orange)",color:"white"},children:[h.jsx(jx,{"data-loc":"client/src/pages/BuildDetail.tsx:226",className:"w-4 h-4"}),"Send Estimate"]})})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:234",className:"mt-5",children:[h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:235",className:"flex justify-between text-xs text-muted-foreground mb-2",children:[h.jsx("span",{"data-loc":"client/src/pages/BuildDetail.tsx:236",children:"Overall Build Progress"}),h.jsxs("span",{"data-loc":"client/src/pages/BuildDetail.tsx:237",style:{fontFamily:"'JetBrains Mono', monospace"},children:[d.progress,"%"]})]}),h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:239",className:"h-2 rounded-full bg-secondary overflow-hidden",children:h.jsx(Je.div,{"data-loc":"client/src/pages/BuildDetail.tsx:240",initial:{width:0},animate:{width:`${d.progress}%`},transition:{duration:.8,delay:.2},className:"h-full rounded-full",style:{background:"var(--orange)"}})})]})]}),h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:252",className:"flex gap-1 mb-6 border-b border-border overflow-x-auto scrollbar-none -mx-6 px-6 sm:mx-0 sm:px-0",children:jxe.map(D=>h.jsxs("button",{"data-loc":"client/src/pages/BuildDetail.tsx:254",onClick:()=>n(D.id),className:`flex items-center gap-2 px-4 py-2.5 text-sm font-medium transition-all border-b-2 -mb-px flex-shrink-0 ${t===D.id?"text-foreground border-current":"text-muted-foreground border-transparent hover:text-foreground"}`,style:t===D.id?{borderColor:"var(--orange)",color:"var(--orange)"}:{},children:[h.jsx(D.icon,{"data-loc":"client/src/pages/BuildDetail.tsx:264",className:"w-4 h-4"}),D.label]},D.id))}),t==="teardown"&&h.jsxs(Je.div,{"data-loc":"client/src/pages/BuildDetail.tsx:272",initial:"hidden",animate:"visible",variants:Lu,children:[h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:273",className:"flex items-center justify-between mb-4",children:[h.jsx("p",{"data-loc":"client/src/pages/BuildDetail.tsx:274",className:"text-sm text-muted-foreground",children:"Document component condition during disassembly. Flag items requiring machining or replacement."}),h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:277",className:"flex gap-2",children:[h.jsxs("button",{"data-loc":"client/src/pages/BuildDetail.tsx:278",onClick:()=>E.mutate({buildId:parseInt(e||"1")}),disabled:E.isPending,className:"flex items-center gap-1.5 text-sm px-3 py-1.5 rounded-md border font-medium transition-all active:scale-95 disabled:opacity-50",style:{borderColor:"var(--orange)",color:"var(--orange)"},children:[E.isPending?h.jsx(Zs,{"data-loc":"client/src/pages/BuildDetail.tsx:284",className:"w-3.5 h-3.5 animate-spin"}):h.jsx(W9,{"data-loc":"client/src/pages/BuildDetail.tsx:284",className:"w-3.5 h-3.5"}),"Machine Shop Order"]}),h.jsxs("button",{"data-loc":"client/src/pages/BuildDetail.tsx:287",onClick:()=>br.info("Photo upload coming soon"),className:"flex items-center gap-1.5 text-sm px-3 py-1.5 rounded-md border border-border hover:border-white/20 text-muted-foreground hover:text-foreground transition-all",children:[h.jsx(Ox,{"data-loc":"client/src/pages/BuildDetail.tsx:291",className:"w-3.5 h-3.5"}),"Add Component"]})]})]}),o&&s&&h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:299",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",children:h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:300",className:"bg-card border border-border rounded-xl w-full max-w-2xl max-h-[80vh] flex flex-col",children:[h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:301",className:"flex items-center justify-between px-5 py-4 border-b border-border",children:[h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:302",className:"flex items-center gap-2",children:[h.jsx(W9,{"data-loc":"client/src/pages/BuildDetail.tsx:303",className:"w-5 h-5",style:{color:"var(--orange)"}}),h.jsx("span",{"data-loc":"client/src/pages/BuildDetail.tsx:304",className:"font-bold text-lg",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"MACHINE SHOP ORDER"})]}),h.jsx("button",{"data-loc":"client/src/pages/BuildDetail.tsx:306",onClick:()=>c(!1),className:"text-muted-foreground hover:text-foreground text-xl leading-none",children:"Ã"})]}),h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:308",className:"flex-1 overflow-y-auto p-5",children:h.jsx("pre",{"data-loc":"client/src/pages/BuildDetail.tsx:309",className:"text-sm text-foreground whitespace-pre-wrap",style:{fontFamily:"'JetBrains Mono', monospace"},children:s})}),h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:311",className:"flex gap-3 px-5 py-4 border-t border-border",children:[h.jsx("button",{"data-loc":"client/src/pages/BuildDetail.tsx:312",onClick:()=>{navigator.clipboard.writeText(s),br.success("Copied to clipboard")},className:"flex-1 py-2 rounded-md border border-border text-sm text-muted-foreground hover:text-foreground transition-all",children:"Copy"}),h.jsx("button",{"data-loc":"client/src/pages/BuildDetail.tsx:318",onClick:()=>window.print(),className:"flex-1 py-2 rounded-md border border-border text-sm text-muted-foreground hover:text-foreground transition-all",children:"Print"}),h.jsx("button",{"data-loc":"client/src/pages/BuildDetail.tsx:324",onClick:()=>c(!1),className:"flex-1 py-2 rounded-md text-sm font-medium transition-all active:scale-95",style:{background:"var(--orange)",color:"white"},children:"Done"})]})]})}),h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:335",className:"space-y-2",children:d.teardownItems.map((D,H)=>h.jsxs(Je.div,{"data-loc":"client/src/pages/BuildDetail.tsx:337",initial:"hidden",animate:"visible",variants:Lu,custom:H,className:"flex items-start gap-4 p-4 rounded-lg border border-border bg-card",children:[h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:345",className:"mt-0.5 flex-shrink-0",children:[D.status==="done"&&h.jsx(La,{"data-loc":"client/src/pages/BuildDetail.tsx:346",className:"w-5 h-5",style:{color:"oklch(0.7 0.18 140)"}}),D.status==="ok"&&h.jsx(G9,{"data-loc":"client/src/pages/BuildDetail.tsx:347",className:"w-5 h-5 text-muted-foreground"}),D.status==="flag"&&h.jsx(qi,{"data-loc":"client/src/pages/BuildDetail.tsx:348",className:"w-5 h-5",style:{color:"var(--orange)"}})]}),h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:350",className:"flex-1 min-w-0",children:[h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:351",className:"font-medium text-foreground text-sm",children:D.component}),h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:352",className:"text-xs text-muted-foreground mt-0.5",children:D.condition})]}),h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:354",className:"text-right flex-shrink-0",children:h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:355",className:"text-xs px-2 py-0.5 rounded",style:{fontFamily:"'JetBrains Mono', monospace",background:D.status==="flag"?"var(--orange-dim)":"var(--secondary)",color:D.status==="flag"?"var(--orange)":"var(--muted-foreground)"},children:D.action})})]},H))})]}),t==="specs"&&h.jsxs(Je.div,{"data-loc":"client/src/pages/BuildDetail.tsx:373",initial:"hidden",animate:"visible",variants:Lu,children:[h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:375",className:"grid grid-cols-2 sm:grid-cols-4 gap-3 mb-8",children:d.specs.map((D,H)=>h.jsxs(Je.div,{"data-loc":"client/src/pages/BuildDetail.tsx:377",initial:"hidden",animate:"visible",variants:Lu,custom:H,className:"p-4 rounded-lg border border-border bg-card",children:[h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:385",className:"text-xs text-muted-foreground uppercase tracking-wider mb-1.5",children:D.label}),h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:386",className:"flex items-baseline gap-1",children:[h.jsx("span",{"data-loc":"client/src/pages/BuildDetail.tsx:387",className:"text-3xl font-bold",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:D.value}),h.jsx("span",{"data-loc":"client/src/pages/BuildDetail.tsx:393",className:"text-sm text-muted-foreground",children:D.unit})]})]},D.label))}),h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:400",className:"flex items-center gap-3 mb-5",children:[h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:401",className:"w-0.5 h-6 rounded-full",style:{background:"var(--orange)"}}),h.jsx("h3",{"data-loc":"client/src/pages/BuildDetail.tsx:402",className:"text-2xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"}
1123,children:"Interactive Clearance Inspector"})]}),h.jsx("p",{"data-loc":"client/src/pages/BuildDetail.tsx:409",className:"text-sm text-muted-foreground mb-6",children:"Click any component on the engine cross-section to inspect its measured clearance, target range, and measurement guidance. Out-of-spec values pulse in red."}),h.jsx(jte,{"data-loc":"client/src/pages/BuildDetail.tsx:414",buildName:d.name,vehicle:d.vehicle})]}),t==="assembly"&&h.jsxs(Je.div,{"data-loc":"client/src/pages/BuildDetail.tsx:422",initial:"hidden",animate:"visible",variants:Lu,children:[h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:423",className:"flex items-center justify-between mb-4",children:[h.jsx("p",{"data-loc":"client/src/pages/BuildDetail.tsx:424",className:"text-sm text-muted-foreground",children:"Step-by-step assembly checklist with torque specs and clearance targets."}),h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:427",className:"text-sm font-mono",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:[P,"/",V," steps"]})]}),h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:434",className:"space-y-2",children:d.assemblySteps.map((D,H)=>h.jsxs(Je.div,{"data-loc":"client/src/pages/BuildDetail.tsx:436",initial:"hidden",animate:"visible",variants:Lu,custom:H,className:`flex items-start gap-4 p-4 rounded-lg border transition-all ${D.done?"border-border bg-card opacity-60":"border-border bg-card"}`,children:[h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:446",className:"mt-0.5 flex-shrink-0",children:D.done?h.jsx(La,{"data-loc":"client/src/pages/BuildDetail.tsx:448",className:"w-5 h-5",style:{color:"oklch(0.7 0.18 140)"}}):h.jsx(G9,{"data-loc":"client/src/pages/BuildDetail.tsx:449",className:"w-5 h-5 text-muted-foreground"})}),h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:452",className:"flex-1",children:[h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:453",className:`font-medium text-sm ${D.done?"line-through text-muted-foreground":"text-foreground"}`,children:D.step}),h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:456",className:"flex gap-4 mt-1.5",children:[D.torque&&h.jsxs("span",{"data-loc":"client/src/pages/BuildDetail.tsx:458",className:"text-xs",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:["Torque: ",D.torque]}),D.clearance&&h.jsxs("span",{"data-loc":"client/src/pages/BuildDetail.tsx:463",className:"text-xs text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:["Clearance: ",D.clearance]})]})]}),!D.done&&h.jsx("button",{"data-loc":"client/src/pages/BuildDetail.tsx:470",onClick:()=>br.success("Step marked complete"),className:"text-xs px-2.5 py-1 rounded border border-border hover:border-white/20 text-muted-foreground hover:text-foreground transition-all flex-shrink-0",children:"Mark Done"})]},H))})]}),t==="estimate"&&h.jsxs(Je.div,{"data-loc":"client/src/pages/BuildDetail.tsx:484",initial:"hidden",animate:"visible",variants:Lu,children:[h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:485",className:"flex items-center justify-between mb-4",children:[h.jsx("p",{"data-loc":"client/src/pages/BuildDetail.tsx:486",className:"text-sm text-muted-foreground",children:"Itemized Bill of Materials with live pricing. Ready to send to your customer."}),h.jsx(kt,{"data-loc":"client/src/pages/BuildDetail.tsx:489",href:`/builds/${e}/estimate`,children:h.jsxs("button",{"data-loc":"client/src/pages/BuildDetail.tsx:490",className:"flex items-center gap-1.5 text-sm px-3 py-1.5 rounded-md font-medium transition-all active:scale-95",style:{background:"var(--orange)",color:"white"},children:[h.jsx(jx,{"data-loc":"client/src/pages/BuildDetail.tsx:494",className:"w-3.5 h-3.5"}),"Send to Customer"]})})]}),h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:501",className:"rounded-lg border border-border overflow-hidden mb-6",children:h.jsxs("table",{"data-loc":"client/src/pages/BuildDetail.tsx:502",className:"w-full text-sm",children:[h.jsx("thead",{"data-loc":"client/src/pages/BuildDetail.tsx:503",children:h.jsxs("tr",{"data-loc":"client/src/pages/BuildDetail.tsx:504",className:"border-b border-border bg-secondary",children:[h.jsx("th",{"data-loc":"client/src/pages/BuildDetail.tsx:505",className:"text-left px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider",children:"Component"}),h.jsx("th",{"data-loc":"client/src/pages/BuildDetail.tsx:506",className:"text-left px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider hidden md:table-cell",children:"Part #"}),h.jsx("th",{"data-loc":"client/src/pages/BuildDetail.tsx:507",className:"text-center px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider",children:"Qty"}),h.jsx("th",{"data-loc":"client/src/pages/BuildDetail.tsx:508",className:"text-right px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider",children:"Unit Price"}),h.jsx("th",{"data-loc":"client/src/pages/BuildDetail.tsx:509",className:"text-right px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider",children:"Total"}),h.jsx("th",{"data-loc":"client/src/pages/BuildDetail.tsx:510",className:"text-center px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider",children:"Status"})]})}),h.jsx("tbody",{"data-loc":"client/src/pages/BuildDetail.tsx:513",children:d.parts.map((D,H)=>h.jsxs("tr",{"data-loc":"client/src/pages/BuildDetail.tsx:515",className:"border-b border-border last:border-0 hover:bg-secondary/50 transition-colors",children:[h.jsxs("td",{"data-loc":"client/src/pages/BuildDetail.tsx:516",className:"px-4 py-3",children:[h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:517",className:"font-medium text-foreground",children:D.name}),h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:518",className:"text-xs text-muted-foreground",children:D.brand}),h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:519",className:"mt-1.5",children:h.jsx(Pxe,{"data-loc":"client/src/pages/BuildDetail.tsx:520",part:{name:D.name,category:"Engine Component",spec:`${D.brand} ${D.partNum}`},buildContext:U,existingParts:d.parts.filter((q,W)=>W!==H).map(q=>q.name)})})]}),h.jsx("td",{"data-loc":"client/src/pages/BuildDetail.tsx:527",className:"px-4 py-3 hidden md:table-cell",children:h.jsx("span",{"data-loc":"client/src/pages/BuildDetail.tsx:528",className:"text-xs text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:D.partNum})}),h.jsx("td",{"data-loc":"client/src/pages/BuildDetail.tsx:532",className:"px-4 py-3 text-center text-muted-foreground",children:D.qty}),h.jsxs("td",{"data-loc":"client/src/pages/BuildDetail.tsx:533",className:"px-4 py-3 text-right",style:{fontFamily:"'JetBrains Mono', monospace"}
1123,children:["$",D.price.toLocaleString()]}),h.jsxs("td",{"data-loc":"client/src/pages/BuildDetail.tsx:536",className:"px-4 py-3 text-right font-medium",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:["$",(D.price*D.qty).toLocaleString()]}),h.jsx("td",{"data-loc":"client/src/pages/BuildDetail.tsx:539",className:"px-4 py-3 text-center",children:h.jsx("span",{"data-loc":"client/src/pages/BuildDetail.tsx:540",className:"text-xs px-2 py-0.5 rounded",style:{background:D.status==="received"?"oklch(0.7 0.18 140 / 0.15)":"var(--orange-dim)",color:D.status==="received"?"oklch(0.7 0.18 140)":"var(--orange)"},children:D.status})})]},H))})]})}),h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:557",className:"flex justify-end",children:h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:558",className:"w-full max-w-sm space-y-2",children:[[{label:"Parts Subtotal",value:T},{label:"Machine Shop",value:A},{label:"Labor (est. 32 hrs @ $100/hr)",value:_}].map(D=>h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:564",className:"flex justify-between text-sm",children:[h.jsx("span",{"data-loc":"client/src/pages/BuildDetail.tsx:565",className:"text-muted-foreground",children:D.label}),h.jsxs("span",{"data-loc":"client/src/pages/BuildDetail.tsx:566",style:{fontFamily:"'JetBrains Mono', monospace"},children:["$",D.value.toLocaleString()]})]},D.label)),h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:569",className:"border-t border-border pt-2 flex justify-between font-bold",children:[h.jsx("span",{"data-loc":"client/src/pages/BuildDetail.tsx:570",className:"text-foreground text-lg",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"TOTAL ESTIMATE"}),h.jsxs("span",{"data-loc":"client/src/pages/BuildDetail.tsx:573",className:"text-2xl",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:["$",R.toLocaleString()]})]})]})})]}),t==="parts"&&h.jsxs(Je.div,{"data-loc":"client/src/pages/BuildDetail.tsx:587",initial:"hidden",animate:"visible",variants:Lu,children:[h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:588",className:"flex items-center justify-between mb-4",children:[h.jsx("p",{"data-loc":"client/src/pages/BuildDetail.tsx:589",className:"text-sm text-muted-foreground",children:"Parts added from the catalog are listed here with running cost totals."}),h.jsx(kt,{"data-loc":"client/src/pages/BuildDetail.tsx:592",href:"/parts",children:h.jsxs("button",{"data-loc":"client/src/pages/BuildDetail.tsx:593",className:"flex items-center gap-2 px-3 py-2 rounded-md text-sm font-medium transition-all active:scale-95",style:{background:"var(--orange)",color:"white"},children:[h.jsx(Y9,{"data-loc":"client/src/pages/BuildDetail.tsx:597",className:"w-4 h-4"}),"Browse Catalog"]})})]}),m.isLoading?h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:604",className:"flex items-center gap-3 py-12 justify-center text-muted-foreground",children:[h.jsx(Zs,{"data-loc":"client/src/pages/BuildDetail.tsx:605",className:"w-5 h-5 animate-spin",style:{color:"var(--orange)"}}),h.jsx("span",{"data-loc":"client/src/pages/BuildDetail.tsx:606",className:"text-sm",children:"Loading parts..."})]}):m.data?.length?h.jsxs(h.Fragment,{children:[h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:636",className:"rounded-lg border border-border overflow-hidden mb-6",children:h.jsxs("table",{"data-loc":"client/src/pages/BuildDetail.tsx:637",className:"w-full text-sm",children:[h.jsx("thead",{"data-loc":"client/src/pages/BuildDetail.tsx:638",children:h.jsxs("tr",{"data-loc":"client/src/pages/BuildDetail.tsx:639",className:"border-b border-border bg-secondary",children:[h.jsx("th",{"data-loc":"client/src/pages/BuildDetail.tsx:640",className:"text-left px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider",children:"Component"}),h.jsx("th",{"data-loc":"client/src/pages/BuildDetail.tsx:641",className:"text-left px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider hidden md:table-cell",children:"Part #"}),h.jsx("th",{"data-loc":"client/src/pages/BuildDetail.tsx:642",className:"text-left px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider hidden sm:table-cell",children:"Source"}),h.jsx("th",{"data-loc":"client/src/pages/BuildDetail.tsx:643",className:"text-center px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider",children:"Qty"}),h.jsx("th",{"data-loc":"client/src/pages/BuildDetail.tsx:644",className:"text-right px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider",children:"Unit Price"}),h.jsx("th",{"data-loc":"client/src/pages/BuildDetail.tsx:645",className:"text-right px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider",children:"Total"}),h.jsx("th",{"data-loc":"client/src/pages/BuildDetail.tsx:646",className:"px-4 py-3"})]})}),h.jsx("tbody",{"data-loc":"client/src/pages/BuildDetail.tsx:649",children:m.data.map(D=>{const H=parseFloat(D.unitPrice??"0")||0,q=H*(D.quantity??1);return h.jsxs("tr",{"data-loc":"client/src/pages/BuildDetail.tsx:654",className:"border-b border-border last:border-0 hover:bg-secondary/50 transition-colors",children:[h.jsxs("td",{"data-loc":"client/src/pages/BuildDetail.tsx:655",className:"px-4 py-3",children:[h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:656",className:"font-medium text-foreground",children:D.name}),D.category&&h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:658",className:"text-xs text-muted-foreground mt-0.5",children:D.category})]}),h.jsx("td",{"data-loc":"client/src/pages/BuildDetail.tsx:661",className:"px-4 py-3 hidden md:table-cell",children:h.jsx("span",{"data-loc":"client/src/pages/BuildDetail.tsx:662",className:"text-xs text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:D.partNumber||"â"})}),h.jsx("td",{"data-loc":"client/src/pages/BuildDetail.tsx:666",className:"px-4 py-3 hidden sm:table-cell",children:h.jsx("span",{"data-loc":"client/src/pages/BuildDetail.tsx:667",className:"text-xs text-muted-foreground",children:D.sourceName||"â"})}),h.jsx("td",{"data-loc":"client/src/pages/BuildDetail.tsx:669",className:"px-4 py-3 text-center text-muted-foreground",children:D.quantity??1}),h.jsx("td",{"data-loc":"client/src/pages/BuildDetail.tsx:670",className:"px-4 py-3 text-right",style:{fontFamily:"'JetBrains Mono', monospace"},children:H>
11230?`$${H.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0})}`:"â"}),h.jsx("td",{"data-loc":"client/src/pages/BuildDetail.tsx:673",className:"px-4 py-3 text-right font-medium",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:q>0?`$${q.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0})}`:"â"}),h.jsx("td",{"data-loc":"client/src/pages/BuildDetail.tsx:676",className:"px-4 py-3 text-center",children:h.jsx("button",{"data-loc":"client/src/pages/BuildDetail.tsx:677",onClick:()=>g.mutate({id:D.id}),disabled:g.isPending,className:"p-1.5 rounded text-muted-foreground hover:text-red-400 hover:bg-red-400/10 transition-all disabled:opacity-40",title:"Remove part",children:h.jsx(zw,{"data-loc":"client/src/pages/BuildDetail.tsx:683",className:"w-3.5 h-3.5"})})})]},D.id)})})]})}),h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:694",className:"flex justify-end",children:h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:695",className:"w-full max-w-xs space-y-2",children:[h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:696",className:"flex justify-between text-sm",children:[h.jsxs("span",{"data-loc":"client/src/pages/BuildDetail.tsx:697",className:"text-muted-foreground",children:["Parts Subtotal (",m.data.length," items)"]}),h.jsxs("span",{"data-loc":"client/src/pages/BuildDetail.tsx:698",style:{fontFamily:"'JetBrains Mono', monospace"},children:["$",m.data.reduce((D,H)=>D+(parseFloat(H.unitPrice??"0")||0)*(H.quantity??1),0).toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:703",className:"border-t border-border pt-2 flex justify-between font-bold",children:[h.jsx("span",{"data-loc":"client/src/pages/BuildDetail.tsx:704",className:"text-foreground text-lg",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"PARTS TOTAL"}),h.jsxs("span",{"data-loc":"client/src/pages/BuildDetail.tsx:705",className:"text-2xl",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:["$",m.data.reduce((D,H)=>D+(parseFloat(H.unitPrice??"0")||0)*(H.quantity??1),0).toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0})]})]})]})})]}):h.jsxs("div",{"data-loc":"client/src/pages/BuildDetail.tsx:609",className:"p-12 rounded-lg border border-dashed border-border text-center",style:{background:"var(--card)"},children:[h.jsx(lh,{"data-loc":"client/src/pages/BuildDetail.tsx:613",className:"w-12 h-12 mx-auto mb-4 text-muted-foreground"}),h.jsx("div",{"data-loc":"client/src/pages/BuildDetail.tsx:614",className:"text-xl font-bold uppercase text-foreground mb-2",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"No Parts Added Yet"}),h.jsx("p",{"data-loc":"client/src/pages/BuildDetail.tsx:620",className:"text-sm text-muted-foreground mb-5",children:'Browse the Parts Catalog and click "Add to Build" to attach parts to this build.'}),h.jsx(kt,{"data-loc":"client/src/pages/BuildDetail.tsx:623",href:"/parts",children:h.jsxs("button",{"data-loc":"client/src/pages/BuildDetail.tsx:624",className:"flex items-center gap-2 px-4 py-2 rounded-md text-sm font-medium mx-auto transition-all active:scale-95",style:{background:"var(--orange)",color:"white"},children:[h.jsx(Y9,{"data-loc":"client/src/pages/BuildDetail.tsx:628",className:"w-4 h-4"}),"Go to Parts Catalog"]})})]})]})]}),h.jsx(Rxe,{"data-loc":"client/src/pages/BuildDetail.tsx:720",buildContext:U,buildName:d.name})]})}const j6=[{id:"small_engine",label:"Small Engine",icon:"âï¸",description:"49ccâ800cc single & twin cylinder utility engines",families:[{id:"small_49cc",category:"small_engine",name:"Moped / Scooter (49cc)",displacement:"49cc",powerRange:"2â5 hp",cylinderConfig:"Single cylinder, 2-stroke or 4-stroke",examples:["Honda Ruckus GY6","Tomos A35","Peugeot 103"],notes:"Typically 40mm bore à 39mm stroke. Reed valve or piston-port induction."},{id:"small_125cc",category:"small_engine",name:"Small Single (50â125cc)",displacement:"50â125cc",powerRange:"4â15 hp",cylinderConfig:"Single cylinder, 4-stroke SOHC",examples:["Honda GX120","Briggs & Stratton 550E","Kohler XT6"],notes:"Common in karts, generators, and lawn equipment. Simple OHV or OHC architecture."},{id:"small_twin",category:"small_engine",name:"Small Twin (200â800cc)",displacement:"200â800cc",powerRange:"5â30 hp",cylinderConfig:"V-twin or parallel twin, OHV",examples:["Briggs Vanguard 23hp","Kawasaki FX730V","Kohler Command Pro"],notes:"Used in riding mowers, UTVs, and light equipment. Cast iron cylinder liners common."}]},{id:"motorcycle",label:"Motorcycle",icon:"ðï¸",description:"125ccâ2500cc motorcycle and powersports engines",families:[{id:"moto_single",category:"motorcycle",name:"Single Cylinder (125â690cc)",displacement:"125â690cc",powerRange:"10â75 hp",cylinderConfig:"Single cylinder, DOHC or SOHC",examples:["KTM 690 Duke","Honda CRF450","Yamaha WR450F"],notes:"High-revving thumpers. Valve timing and piston-to-valve clearance critical."},{id:"moto_parallel_twin",category:"motorcycle",name:"Parallel Twin (250â900cc)",displacement:"250â900cc",powerRange:"25â120 hp",cylinderConfig:"Parallel twin, DOHC",examples:["Kawasaki Ninja 650","Triumph Street Twin 900","Honda CB500F"],notes:"360° or 270° crank pin offset. Shared oil gallery between cylinders."},{id:"moto_inline4",category:"motorcycle",name:"Inline-4 (600â1400cc)",displacement:"600â1400cc",powerRange:"80â200 hp",cylinderConfig:"Inline-4, DOHC 16v",examples:["CBR1000RR","Suzuki GSX-R1000","Yamaha R1"],notes:"High-revving screamer architecture. Shim-under-bucket valve adjustment typical."},{id:"moto_vtwin",category:"motorcycle",name:"V-Twin (883â2500cc)",displacement:"883â2500cc",powerRange:"50â160 hp",cylinderConfig:"45°â90° V-twin, pushrod or DOHC",examples:["Harley-Davidson Milwaukee-Eight","Indian Thunder Stroke","Ducati Panigale V2"],notes:"Pushrod Harleys use hydraulic lifters; Ducati desmodromic valve actuation unique."}]},{id:"automotive",label:"Automotive",icon:"ð",description:"Street and light-duty automotive engines",families:[{id:"auto_i4",category:"automotive",name:"Inline-4 (1.4â2.5L)",displacement:"1.4â2.5L",powerRange:"90â250 hp",cylinderConfig:"Inline-4, DOHC 16v",examples:["Honda K-Series","Toyota 2ZZ-GE","Ford EcoBoost 2.3"],notes:"VTEC, VVTL-i, and variable valve timing systems common. Oil
1123control ring tension critical."},{id:"auto_v6",category:"automotive",name:"V6 (2.5â4.0L)",displacement:"2.5â4.0L",powerRange:"150â350 hp",cylinderConfig:"60° or 90° V6, DOHC or SOHC",examples:["GM 3800 Series II","Ford Duratec 35","Nissan VQ35DE"],notes:"Balance shaft systems common. Main bearing cap torque sequence critical."},{id:"auto_v8_sbc",category:"automotive",name:"GM Small Block (4.8â6.2L LS/LT)",displacement:"4.8â6.2L",powerRange:"290â650 hp",cylinderConfig:"90° V8, OHV pushrod (LS) or DOHC (LT)",examples:["LS1","LS3","LS7","LT1","LT4"],notes:'LS family is the most-built performance platform. Tight main bearing clearances (0.0010â0.0025").'},{id:"auto_v8_ford",category:"automotive",name:"Ford Small Block (4.6â5.8L Mod/Coyote)",displacement:"4.6â5.8L",powerRange:"260â662 hp",cylinderConfig:"90° V8, DOHC 32v",examples:["4.6 Modular","5.0 Coyote","5.2 Voodoo","5.8 Trinity"],notes:"Modular family uses cassette-style timing chains. Coyote uses Ti-VCT on both cams."},{id:"auto_v8_mopar",category:"automotive",name:"Mopar Big Block (6.1â7.0L Hemi/RB)",displacement:"6.1â7.0L",powerRange:"370â840 hp",cylinderConfig:"90° V8, OHV pushrod",examples:["440 RB","6.1 Hemi","6.4 Apache","6.2 Hellcat"],notes:"Hemi combustion chamber requires precise piston-to-valve clearance. MDS lifter bores critical."}]},{id:"performance_automotive",label:"Performance / Race",icon:"ð",description:"High-output race and purpose-built performance engines",families:[{id:"perf_ls_stroker",category:"performance_automotive",name:"LS Stroker (383â454ci)",displacement:"383â454ci (6.3â7.4L)",powerRange:"500â1000+ hp",cylinderConfig:"90° V8, OHV pushrod, stroker crank",examples:["383 LS","408 LS","427 LS","454 LS"],notes:"Stroker clearancing critical: rod-to-cam, rod-to-block, and piston-to-valve all need verification."},{id:"perf_bbc",category:"performance_automotive",name:"GM Big Block (396â572ci)",displacement:"396â572ci (6.5â9.4L)",powerRange:"400â900 hp",cylinderConfig:"90° V8, OHV pushrod",examples:["454 BBC","496 Merlin","540 BBC","572 BBC"],notes:"Mark IV vs Gen V/VI block differences. Oval vs rectangular port head selection critical."},{id:"perf_ford_fe",category:"performance_automotive",name:"Ford FE / 385 Series (390â514ci)",displacement:"390â514ci (6.4â8.4L)",powerRange:"320â700 hp",cylinderConfig:"90° V8, OHV pushrod",examples:["390 FE","427 SOHC","429 CJ","460 BBF"],notes:"427 SOHC (Cammer) uses single overhead cam per bank â unique clearance requirements."},{id:"perf_inline6",category:"performance_automotive",name:"Performance Inline-6 (2JZ / RB / B58)",displacement:"2.5â3.5L",powerRange:"280â1000+ hp",cylinderConfig:"Inline-6, DOHC 24v",examples:["Toyota 2JZ-GTE","Nissan RB26DETT","BMW S58","BMW B58"],notes:"2JZ and RB26 are legendary for boost tolerance. Closed-deck block design allows extreme cylinder pressure."}]},{id:"diesel",label:"Diesel",icon:"ð¢ï¸",description:"Compression-ignition diesel engines for trucks and equipment",families:[{id:"diesel_light",category:"diesel",name:"Light-Duty Diesel (2.0â3.5L)",displacement:"2.0â3.5L",powerRange:"130â300 hp",cylinderConfig:"Inline-4 or V6, DOHC, common-rail",examples:["Duramax LM2 2.7L","Ford Power Stroke 3.0L","Ram EcoDiesel 3.0L"],notes:"High compression ratios (16:1â18:1). Injector cup sealing and head bolt torque-to-yield critical."},{id:"diesel_heavy",category:"diesel",name:"Heavy-Duty Diesel (6.0â7.3L)",displacement:"6.0â7.3L",powerRange:"250â500 hp",cylinderConfig:"V8 or Inline-6, OHV or SOHC",examples:["Duramax LBZ 6.6L","Cummins ISB 6.7L","Ford 7.3 Godzilla"],notes:"EGR cooler and head gasket failures common on 6.0 PS. Cummins uses wet-sleeve cylinders."},{id:"diesel_performance",category:"diesel",name:"Performance Diesel (Compound Turbo)",displacement:"6.6â7.3L",powerRange:"600â2000+ hp",cylinderConfig:"V8 or Inline-6, compound or triple turbo",examples:["Duramax LML compound","Cummins 12V P-pump","6.7 Cummins triple"],notes:"Billet main caps, ARP head studs, and forged pistons mandatory at high power. Fire ring head gaskets."}]},{id:"marine",label:"Marine",icon:"â",description:"Inboard and outboard marine engines",families:[{id:"marine_outboard",category:"marine",name:"Outboard (2-stroke / 4-stroke)",displacement:"50ccâ5.6L",powerRange:"2â600 hp",cylinderConfig:"2-stroke or 4-stroke, V4/V6/V8",examples:["Mercury 2.5hp","Yamaha F150","Mercury Racing 600hp"],notes:"Saltwater corrosion resistance critical. Stainless steel exhaust valves and coated pistons common."},{id:"marine_inboard",category:"marine",name:"Inboard / Sterndrive",displacement:"5.
11230â8.2L",powerRange:"250â1000+ hp",cylinderConfig:"V8 or V6, OHV or DOHC",examples:["MerCruiser 5.7L","Volvo Penta 8.1L","Ilmor X3"],notes:"Marine-specific cooling passages and raw water pump. Exhaust manifold water jacketing critical."}]},{id:"industrial",label:"Industrial",icon:"ð",description:"Stationary power generation and heavy equipment engines",families:[{id:"industrial_genset",category:"industrial",name:"Generator / Stationary (10â500 hp)",displacement:"1.0â15L",powerRange:"10â500 hp",cylinderConfig:"Inline-4, V8, or V12",examples:["Caterpillar C4.4","John Deere PowerTech 4045","Cummins QSB6.7"],notes:"Designed for continuous duty cycles. Wet sleeve cylinder liners with replaceable O-ring seals."},{id:"industrial_large",category:"industrial",name:"Large Industrial / Mining (500â5000 hp)",displacement:"15â100L+",powerRange:"500â5000 hp",cylinderConfig:"V12, V16, or inline configurations",examples:["CAT 3516","Cummins QSK78","MTU 16V 4000"],notes:"Modular cylinder head design. Liner protrusion and fire deck flatness tolerances critical."}]},{id:"aviation_piston",label:"Aviation Piston",icon:"âï¸",description:"Certified aircraft piston engines (Lycoming, Continental)",families:[{id:"av_lycoming",category:"aviation_piston",name:"Lycoming (O-320 / O-360 / IO-540)",displacement:"320â541 ci",powerRange:"150â300 hp",cylinderConfig:"Horizontally-opposed 4 or 6 cylinder, air-cooled",examples:["O-320-D2J","O-360-A4M","IO-540-K1A5"],notes:"FAA-certified overhaul intervals (TBO). Cylinder barrel chrome or nitrided. Valve guide clearances critical."},{id:"av_continental",category:"aviation_piston",name:"Continental (C-85 / O-200 / IO-550)",displacement:"85â550 ci",powerRange:"85â310 hp",cylinderConfig:"Horizontally-opposed 4 or 6 cylinder, air-cooled",examples:["C-85-12","O-200-A","IO-550-N"],notes:"Continental uses solid lifters on older models. Crankshaft counterweight bushing wear common."}]},{id:"turboprop",label:"Turboprop",icon:"ð©ï¸",description:"Gas turbine engines driving a propeller shaft",families:[{id:"tp_pt6",category:"turboprop",name:"PT6 Family (Pratt & Whitney Canada)",thrust:"500â2000 shp",powerRange:"500â2000 shaft hp",cylinderConfig:"Free turbine, reverse-flow combustor",examples:["PT6A-27","PT6A-60A","PT6A-140A"],notes:"Free turbine design allows propeller to be feathered independently. Hot section inspection intervals critical."},{id:"tp_tpe331",category:"turboprop",name:"TPE331 (Honeywell / Garrett)",thrust:"575â1650 shp",powerRange:"575â1650 shaft hp",cylinderConfig:"Fixed turbine, through-flow combustor",examples:["TPE331-5","TPE331-10","TPE331-14"],notes:"Fixed turbine means propeller is always mechanically coupled to gas generator."}]},{id:"turbojet",label:"Turbojet",icon:"ð",description:"Pure jet thrust engines â military and experimental",families:[{id:"tj_small",category:"turbojet",name:"Small Turbojet (UAV / Experimental)",thrust:"50â500 lbf",powerRange:"50â500 lbf thrust",cylinderConfig:"Single-spool, annular combustor",examples:["PBS TJ100","AMT Olympus HP","JetCat P200-RX"],notes:"Ceramic or nickel alloy turbine blades. Rotor tip clearance and bearing pre-load critical."},{id:"tj_military",category:"turbojet",name:"Military Turbojet (J85 / J79)",thrust:"2,850â17,900 lbf",powerRange:"2,850â17,900 lbf thrust",cylinderConfig:"Multi-spool axial compressor, afterburner",examples:["GE J85-GE-21","GE J79-GE-17","Pratt J57"],notes:"Afterburner fuel manifold and flameholder geometry critical. Variable stator vane rigging."}]},{id:"turbofan",label:"Turbofan",icon:"ð«",description:"High-bypass turbofan engines â
1123commercial and military",families:[{id:"tf_commercial",category:"turbofan",name:"Commercial High-Bypass (CFM56 / V2500 / LEAP)",thrust:"18,500â35,000 lbf",powerRange:"18,500â35,000 lbf thrust",cylinderConfig:"Twin-spool, high-bypass ratio 5:1â12:1",examples:["CFM56-7B","IAE V2527-A5","CFM LEAP-1B"],notes:"Fan blade bird-strike tolerance and HPT blade cooling hole geometry are certification-critical."},{id:"tf_military",category:"turbofan",name:"Military Low-Bypass (F100 / F110 / F404)",thrust:"17,000â29,000 lbf (dry/wet)",powerRange:"17,000â29,000 lbf thrust",cylinderConfig:"Twin-spool, low-bypass ratio 0.3:1â0.9:1, afterburner",examples:["P&W F100-PW-229","GE F110-GE-132","GE F404-GE-402"],notes:"Augmentor (afterburner) fuel scheduling and variable exhaust nozzle actuation critical."}]}];function Ixe({selectedFamilyId:e,onSelect:t}){const[n,r]=G.useState("performance_automotive"),[a,s]=G.useState(null),i=j6.flatMap(o=>o.families).find(o=>o.id===e);return h.jsxs("div",{"data-loc":"client/src/components/EngineSelector.tsx:456",className:"space-y-4",children:[i&&h.jsxs(Je.div,{"data-loc":"client/src/components/EngineSelector.tsx:459",initial:{opacity:0,y:-8},animate:{opacity:1,y:0},className:"p-4 rounded-lg border flex items-start gap-3",style:{borderColor:"var(--orange)",background:"var(--orange-dim)"},children:[h.jsx(qu,{"data-loc":"client/src/components/EngineSelector.tsx:465",className:"w-4 h-4 mt-0.5 flex-shrink-0",style:{color:"var(--orange)"}}),h.jsxs("div",{"data-loc":"client/src/components/EngineSelector.tsx:466",children:[h.jsx("div",{"data-loc":"client/src/components/EngineSelector.tsx:467",className:"text-sm font-semibold text-foreground",children:i.name}),h.jsxs("div",{"data-loc":"client/src/components/EngineSelector.tsx:468",className:"text-xs text-muted-foreground mt-0.5",children:[i.displacement||i.thrust," · ",i.powerRange," · ",i.cylinderConfig]})]})]}),h.jsx("div",{"data-loc":"client/src/components/EngineSelector.tsx:476",className:"space-y-2",children:j6.map(o=>{const c=n===o.id;return h.jsxs("div",{"data-loc":"client/src/components/EngineSelector.tsx:480",className:"rounded-lg border border-border overflow-hidden",style:{background:"var(--card)"},children:[h.jsxs("button",{"data-loc":"client/src/components/EngineSelector.tsx:486",className:"w-full flex items-center justify-between px-4 py-3 text-left hover:bg-secondary/40 transition-colors",onClick:()=>r(c?null:o.id),children:[h.jsxs("div",{"data-loc":"client/src/components/EngineSelector.tsx:490",className:"flex items-center gap-3",children:[h.jsx("span",{"data-loc":"client/src/components/EngineSelector.tsx:491",className:"text-lg",children:o.icon}),h.jsxs("div",{"data-loc":"client/src/components/EngineSelector.tsx:492",children:[h.jsx("div",{"data-loc":"client/src/components/EngineSelector.tsx:493",className:"text-sm font-semibold text-foreground uppercase",style:{fontFamily:"'Barlow Condensed', sans-serif",letterSpacing:"0.05em"},children:o.label}),h.jsx("div",{"data-loc":"client/src/components/EngineSelector.tsx:499",className:"text-xs text-muted-foreground",children:o.description})]})]}),c?h.jsx(wp,{"data-loc":"client/src/components/EngineSelector.tsx:503",className:"w-4 h-4 text-muted-foreground flex-shrink-0"}):h.jsx(Ml,{"data-loc":"client/src/components/EngineSelector.tsx:505",className:"w-4 h-4 text-muted-foreground flex-shrink-0"})]}),h.jsx(Ba,{"data-loc":"client/src/components/EngineSelector.tsx:510",children:c&&h.jsx(Je.div,{"data-loc":"client/src/components/EngineSelector.tsx:512",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:h.jsx("div",{"data-loc":"client/src/components/EngineSelector.tsx:519",className:"border-t border-border divide-y divide-border",children:o.families.map(d=>{const f=e===d.id,m=a===d.id;return h.jsxs("button",{"data-loc":"client/src/components/EngineSelector.tsx:524",className:"w-full text-left px-5 py-3 transition-all duration-150 flex items-start justify-between gap-4 group",style:{background:f?"var(--orange-dim)":m?"oklch(0.14 0.004 285)":"transparent"},onMouseEnter:()=>s(d.id),onMouseLeave:()=>s(null),onClick:()=>t(d),children:[h.jsxs("div",{"data-loc":"client/src/components/EngineSelector.tsx:538",className:"flex-1 min-w-0",children:[h.jsxs("div",{"data-loc":"client/src/components/EngineSelector.tsx:539",className:"flex items-center gap-2 mb-1",children:[h.jsx("span",{"data-loc":"client/src/components/EngineSelector.tsx:540",className:"text-sm font-medium",style:{color:f?"var(--orange)":"var(--foreground)",fontFamily:"'Barlow Condensed', sans-serif",fontSize:"0.9rem",letterSpacing:"0.03em"},children:d.name}),f&&h.jsx("span",{"data-loc":"client/src/components/EngineSelector.tsx:552",className:"text-xs px-1.5 py-0.5 rounded",style:{background:"var(--orange)",color:"white",fontSize:"0.65rem"},children:"SELECTED"})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineSelector.tsx:560",className:"flex flex-wrap gap-x-4 gap-y-0.5 text-xs text-muted-foreground",children:[h.jsx("span",{"data-loc":"client/src/components/EngineSelector.tsx:561",style:{fontFamily:"'JetBrains Mono', monospace"},children:d.displacement||d.thrust}),h.jsx("span",{"data-loc":"client/src/components/EngineSelector.tsx:564",children:d.powerRange}),d.cylinderConfig&&h.jsx("span",{"data-loc":"client/src/components/EngineSelector.tsx:565",children:d.cylinderConfig})]}),h.jsx("div",{"data-loc":"client/src/components/EngineSelector.tsx:568",className:"flex flex-wrap gap-1 mt-1.5",children:d.examples.map(b=>h.jsx("span",{"data-loc":"client/src/components/EngineSelector.tsx:570",className:"text-xs px-1.5 py-0.5 rounded border",style:{borderColor:"oklch(1 0 0 / 0.1)",background:"oklch(0.12 0.004 285)",color:"var(--muted-foreground)",fontFamily:"'JetBrains Mono', monospace",fontSize:"0.65rem"},children:b},b))})]}),h.jsxs("div",{"data-loc":"client/src/components/EngineSelector.tsx:587",className:"flex-shrink-0 mt-0.5 group relative",children:[h.jsx(ZR,{"data-loc":"client/src/components/EngineSelector.tsx:588",className:"w-3.5 h-3.5 text-muted-foreground
1123/50 group-hover:text-muted-foreground transition-colors"}),h.jsx("div",{"data-loc":"client/src/components/EngineSelector.tsx:589",className:"absolute right-0 top-5 w-64 p-2.5 rounded-md border border-border text-xs text-muted-foreground z-10 pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity",style:{background:"oklch(0.11 0.004 285)",boxShadow:"0 8px 32px oklch(0 0 0 / 0.5)"},children:d.notes})]})]},d.id)})})})})]},o.id)})})]})}const Bxe={enter:{opacity:0,x:30},center:{opacity:1,x:0,transition:{duration:.3}},exit:{opacity:0,x:-30,transition:{duration:.2}}},xA=[{id:"street",label:"Street / Daily Driver",desc:"Reliable, streetable power. Optimised for driveability and longevity."},{id:"street-strip",label:"Street / Strip",desc:"Weekend warrior. Maximum power on pump gas with street manners."},{id:"race",label:"Race Only",desc:"Maximum power, no compromises. Tight clearances, exotic parts."},{id:"restore",label:"Restoration / Stock Rebuild",desc:"Factory specs, period-correct parts, OEM clearances."},{id:"overhaul",label:"Overhaul / Refresh",desc:"Return to service. Replace wear items, correct defects, re-certify."}],W2=[{id:1,label:"Vehicle Info"},{id:2,label:"Engine Type"},{id:3,label:"Build Goal"},{id:4,label:"Core Specs"},{id:5,label:"Review"}];function Fxe(e){if(!e)return 8;const t=e.name.toLowerCase();if(t.includes("v8")||t.includes("inline-8")||t.includes("i8"))return 8;if(t.includes("v6")||t.includes("inline-6")||t.includes("i6"))return 6;if(t.includes("v12"))return 12;if(t.includes("v16"))return 16;if(t.includes("v10"))return 10;if(t.includes("twin")||t.includes("parallel twin")||t.includes("v-twin"))return 2;if(t.includes("single")||t.includes("thumper")||t.includes("49cc")||t.includes("125cc"))return 1;if(t.includes("inline-4")||t.includes("i4")||t.includes("4-stroke")||t.includes("k-series"))return 4;const n=e.category;return n==="turbojet"||n==="turbofan"||n==="turboprop"?0:8}function zxe(){const[,e]=B5(),[t,n]=G.useState(1),[r,a]=G.useState(null),[s,i]=G.useState({year:"",make:"",model:"",application:"",buildGoal:"",bore:"",stroke:"",compressionTarget:"",hpTarget:"",thrustTarget:"",notes:""}),o=(T,_)=>i(A=>({...A,[T]:_})),c=()=>{t<W2.length&&n(T=>T+1)},d=()=>{t>1&&n(T=>T-1)},f=Tr.builds.create.useMutation({onSuccess:T=>{br.success("Build created! Redirecting..."),e(`/builds/${T.id}`)},onError:T=>{br.error(T.message??"Failed to create build")}}),m=()=>{f.mutate({year:s.year||void 0,make:s.make||void 0,model:s.model||void 0,engineCategory:r?.category||void 0,engineFamily:r?.name||void 0,displacement:r?.displacement||void 0,buildGoal:s.buildGoal||void 0,specs:{bore:s.bore,stroke:s.stroke,compressionRatio:s.compressionTarget,targetHp:s.hpTarget,thrustTarget:s.thrustTarget,application:s.application},notes:s.notes||void 0})},b="w-full px-3 py-2.5 rounded-md border border-border bg-input text-foreground text-sm placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring transition-all",g=Fxe(r),v=r?.category==="turbojet"||r?.category==="turbofan"||r?.category==="turboprop",E=r?.category==="aviation_piston";return!r||["automotive","performance_automotive","diesel"].includes(r.category),h.jsx(kp,{"data-loc":"client/src/pages/NewBuild.tsx:123",breadcrumbs:[{label:"Dashboard",href:"/dashboard"},{label:"New Build"}],children:h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:129",className:"px-6 py-6 max-w-3xl",children:[h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:131",className:"flex items-center gap-0 mb-10",children:W2.map((T,_)=>h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:133",className:"flex items-center flex-1 last:flex-none",children:[h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:134",className:"flex flex-col items-center",children:[h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:135",className:"w-8 h-8 rounded-full flex items-center justify-center text-xs font-bold transition-all duration-300",style:{background:t>T.id?"oklch(0.7 0.18 140)":t===T.id?"var(--orange)":"var(--secondary)",color:t>=T.id?"white":"var(--muted-foreground)",fontFamily:"'JetBrains Mono', monospace"},children:t>
1123T.id?h.jsx(Rx,{"data-loc":"client/src/pages/NewBuild.tsx:147",className:"w-3.5 h-3.5"}):T.id}),h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:149",className:"text-xs mt-1 hidden sm:block text-center",style:{color:t===T.id?"var(--orange)":"var(--muted-foreground)",fontFamily:"'JetBrains Mono', monospace"},children:T.label})]}),_<W2.length-1&&h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:160",className:"flex-1 h-px mx-2 transition-all duration-300",style:{background:t>T.id?"oklch(0.7 0.18 140)":"var(--border)"}})]},T.id))}),h.jsx(Ba,{"data-loc":"client/src/pages/NewBuild.tsx:170",mode:"wait",children:h.jsxs(Je.div,{"data-loc":"client/src/pages/NewBuild.tsx:171",variants:Bxe,initial:"enter",animate:"center",exit:"exit",children:[t===1&&h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:180",children:[h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:181",className:"section-header mb-6",children:h.jsx("h2",{"data-loc":"client/src/pages/NewBuild.tsx:182",className:"text-3xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Application Information"})}),h.jsx("p",{"data-loc":"client/src/pages/NewBuild.tsx:189",className:"text-sm text-muted-foreground mb-6",children:"Tell us about the vehicle, aircraft, vessel, or equipment this engine is going into. Used for fitment checks and documentation."}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:192",className:"space-y-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:193",className:"grid grid-cols-3 gap-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:194",children:[h.jsx("label",{"data-loc":"client/src/pages/NewBuild.tsx:195",className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wider",children:"Year"}),h.jsx("input",{"data-loc":"client/src/pages/NewBuild.tsx:196",type:"text",placeholder:"1969",value:s.year,onChange:T=>o("year",T.target.value),className:b,style:{fontFamily:"'JetBrains Mono', monospace"}})]}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:205",children:[h.jsx("label",{"data-loc":"client/src/pages/NewBuild.tsx:206",className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wider",children:"Make / Manufacturer"}),h.jsx("input",{"data-loc":"client/src/pages/NewBuild.tsx:207",type:"text",placeholder:"Chevrolet / Cessna / Yamaha",value:s.make,onChange:T=>o("make",T.target.value),className:b})]}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:215",children:[h.jsx("label",{"data-loc":"client/src/pages/NewBuild.tsx:216",className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wider",children:"Model"}),h.jsx("input",{"data-loc":"client/src/pages/NewBuild.tsx:217",type:"text",placeholder:"Camaro SS / 172 / R1",value:s.model,onChange:T=>o("model",T.target.value),className:b})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:226",children:[h.jsx("label",{"data-loc":"client/src/pages/NewBuild.tsx:227",className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wider",children:"Application / Serial / Registration (optional)"}),h.jsx("input",{"data-loc":"client/src/pages/NewBuild.tsx:230",type:"text",placeholder:"VIN, aircraft N-number, vessel HIN, equipment serial...",value:s.application,onChange:T=>o("application",T.target.value),className:b})]}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:238",children:[h.jsx("label",{"data-loc":"client/src/pages/NewBuild.tsx:239",className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wider",children:"Build Notes (optional)"}),h.jsx("textarea",{"data-loc":"client/src/pages/NewBuild.tsx:240",rows:3,placeholder:"Any special requirements, customer notes, or context for this build...",value:s.notes,onChange:T=>o("notes",T.target.value),className:`${b} resize-none`})]})]})]}),t===2&&h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:254",children:[h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:255",className:"section-header mb-2",children:h.jsx("h2",{"data-loc":"client/src/pages/NewBuild.tsx:256",className:"text-3xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Engine Type"})}
1123),h.jsx("p",{"data-loc":"client/src/pages/NewBuild.tsx:263",className:"text-sm text-muted-foreground mb-5",children:"Select your engine platform â from a 49cc scooter engine to a high-bypass turbofan. This loads the correct clearance targets, spec ranges, and AI compatibility rules."}),h.jsx(Ixe,{"data-loc":"client/src/pages/NewBuild.tsx:266",selectedFamilyId:r?.id??null,onSelect:T=>a(T)})]}),t===3&&h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:275",children:[h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:276",className:"section-header mb-6",children:h.jsx("h2",{"data-loc":"client/src/pages/NewBuild.tsx:277",className:"text-3xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Build Goal"})}),h.jsx("p",{"data-loc":"client/src/pages/NewBuild.tsx:284",className:"text-sm text-muted-foreground mb-6",children:"This guides component recommendations, clearance targets, and power estimates."}),h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:287",className:"space-y-3",children:xA.map(T=>h.jsx("button",{"data-loc":"client/src/pages/NewBuild.tsx:289",onClick:()=>o("buildGoal",T.id),className:`w-full p-4 rounded-lg border text-left transition-all duration-150 ${s.buildGoal===T.id?"border-current":"border-border hover:border-white/20"}`,style:s.buildGoal===T.id?{borderColor:"var(--orange)",background:"var(--orange-dim)"}:{},children:h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:299",className:"flex items-center gap-3",children:[h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:300",className:"w-4 h-4 rounded-full border-2 flex items-center justify-center flex-shrink-0",style:{borderColor:s.buildGoal===T.id?"var(--orange)":"var(--border)"},children:s.buildGoal===T.id&&h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:305",className:"w-2 h-2 rounded-full",style:{background:"var(--orange)"}})}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:308",children:[h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:309",className:"font-bold text-sm text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:T.label}),h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:315",className:"text-xs text-muted-foreground mt-0.5",children:T.desc})]})]})},T.id))})]}),t===4&&h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:326",children:[h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:327",className:"section-header mb-6",children:h.jsx("h2",{"data-loc":"client/src/pages/NewBuild.tsx:328",className:"text-3xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Core Specifications"})}),v?h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:338",className:"space-y-4",children:[h.jsx("p",{"data-loc":"client/src/pages/NewBuild.tsx:339",className:"text-sm text-muted-foreground mb-4",children:"Enter target thrust and performance parameters for this turbine build."}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:342",className:"grid grid-cols-2 gap-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:343",children:[h.jsx("label",{"data-loc":"client/src/pages/NewBuild.tsx:344",className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wider",children:"Target Thrust (lbf / shp)"}),h.jsx("input",{"data-loc":"client/src/pages/NewBuild.tsx:345",type:"text",placeholder:"e.g. 2,850 lbf",value:s.thrustTarget,onChange:T=>o("thrustTarget",T.target.value),className:b,style:{fontFamily:"'JetBrains Mono', monospace"}})]}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:354",children:[h.jsx("label",{"data-loc":"client/src/pages/NewBuild.tsx:355",className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wider",children:"Target TIT / EGT (°C)"}),h.jsx("input",{"data-loc":"client/src/pages/NewBuild.tsx:356",type:"text",placeholder:"e.g. 850°C",value:s.hpTarget,onChange:T=>o("hpTarget",T.target.value),className:b,style:{fontFamily:"'JetBrains Mono', monospace"}})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:366",children:[h.jsx("label",{"data-loc":"client/src/pages/Ne
1123wBuild.tsx:367",className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wider",children:"Overhaul / Inspection Interval (hours)"}),h.jsx("input",{"data-loc":"client/src/pages/NewBuild.tsx:368",type:"text",placeholder:"e.g. 3,500 TBO",value:s.compressionTarget,onChange:T=>o("compressionTarget",T.target.value),className:b,style:{fontFamily:"'JetBrains Mono', monospace"}})]})]}):h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:380",className:"space-y-4",children:[h.jsxs("p",{"data-loc":"client/src/pages/NewBuild.tsx:381",className:"text-sm text-muted-foreground mb-4",children:["Enter your target specs. Leave blank to use stock dimensions."," ",g>0&&`Displacement calculated for ${g}-cylinder configuration.`]}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:385",className:"grid grid-cols-2 gap-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:386",children:[h.jsxs("label",{"data-loc":"client/src/pages/NewBuild.tsx:387",className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wider",children:["Bore ","(inches)"]}),h.jsx("input",{"data-loc":"client/src/pages/NewBuild.tsx:390",type:"text",placeholder:E?"5.125":"4.125",value:s.bore,onChange:T=>o("bore",T.target.value),className:b,style:{fontFamily:"'JetBrains Mono', monospace"}})]}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:399",children:[h.jsx("label",{"data-loc":"client/src/pages/NewBuild.tsx:400",className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wider",children:"Stroke (inches)"}),h.jsx("input",{"data-loc":"client/src/pages/NewBuild.tsx:401",type:"text",placeholder:E?"4.375":"4.000",value:s.stroke,onChange:T=>o("stroke",T.target.value),className:b,style:{fontFamily:"'JetBrains Mono', monospace"}})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:411",className:"grid grid-cols-2 gap-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:412",children:[h.jsx("label",{"data-loc":"client/src/pages/NewBuild.tsx:413",className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wider",children:"Target Compression Ratio"}),h.jsx("input",{"data-loc":"client/src/pages/NewBuild.tsx:414",type:"text",placeholder:E?"8.5:1":"11.0:1",value:s.compressionTarget,onChange:T=>o("compressionTarget",T.target.value),className:b,style:{fontFamily:"'JetBrains Mono', monospace"}})]}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:423",children:[h.jsxs("label",{"data-loc":"client/src/pages/NewBuild.tsx:424",className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wider",children:["Target ",E?"Horsepower (THP)":"Horsepower"]}),h.jsx("input",{"data-loc":"client/src/pages/NewBuild.tsx:427",type:"text",placeholder:E?"180":"650",value:s.hpTarget,onChange:T=>o("hpTarget",T.target.value),className:b,style:{fontFamily:"'JetBrains Mono', monospace"}})]})]}),s.bore&&s.stroke&&g>0&&h.jsxs(Je.div,{"data-loc":"client/src/pages/NewBuild.tsx:440",initial:{opacity:0,y:8},animate:{opacity:1,y:0},className:"p-4 rounded-lg border border-border bg-card",style:{borderColor:"var(--orange-dim)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:446",className:"flex items-center gap-2 mb-3",children:[h.jsx(qu,{"data-loc":"client/src/pages/NewBuild.tsx:447",className:"w-4 h-4",style:{color:"var(--orange)"}}),h.jsxs("span",{"data-loc":"client/src/pages/NewBuild.tsx:448",className:"text-xs text-muted-foreground uppercase tracking-wider",children:["Live Calculation â ",g,"-Cylinder"]})]}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:452",className:"grid grid-cols-3 gap-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:453",children:[h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:454",className:"text-xs text-muted-foreground mb-0.5",children:"Displacement (ci)"}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:455",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)",fontSize:"1.4rem",fontWeight:700},children:[Math.round(Math.PI/4*Math.pow(parseFloat(s.bore)||0,2)*(parseFloat(s.stroke)||0)*g)," ci"]})]}
1123),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:464",children:[h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:465",className:"text-xs text-muted-foreground mb-0.5",children:"Liters"}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:466",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)",fontSize:"1.4rem",fontWeight:700},children:[(Math.PI/4*Math.pow(parseFloat(s.bore)||0,2)*(parseFloat(s.stroke)||0)*g*.016387).toFixed(2),"L"]})]}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:473",children:[h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:474",className:"text-xs text-muted-foreground mb-0.5",children:"Stroke/Bore Ratio"}),h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:475",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)",fontSize:"1.4rem",fontWeight:700},children:((parseFloat(s.stroke)||0)/(parseFloat(s.bore)||1)).toFixed(3)})]})]})]})]})]}),t===5&&h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:489",children:[h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:490",className:"section-header mb-6",children:h.jsx("h2",{"data-loc":"client/src/pages/NewBuild.tsx:491",className:"text-3xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Review & Create"})}),h.jsx("p",{"data-loc":"client/src/pages/NewBuild.tsx:498",className:"text-sm text-muted-foreground mb-6",children:"Confirm your build details. You can update everything after creation."}),h.jsx("div",{"data-loc":"client/src/pages/NewBuild.tsx:501",className:"space-y-3",children:[{label:"Vehicle / Application",value:[s.year,s.make,s.model].filter(Boolean).join(" ")||"Not specified"},{label:"Engine Type",value:r?`${r.name}`:"Not selected"},{label:"Category",value:r?j6.find(T=>T.id===r.category)?.label??"":"â"},{label:"Displacement / Thrust",value:r?.displacement||r?.thrust||"â"},{label:"Build Goal",value:xA.find(T=>T.id===s.buildGoal)?.label||"Not selected"},...v?[{label:"Target Thrust / TIT",value:s.thrustTarget||"TBD"},{label:"TBO / Inspection Interval",value:s.compressionTarget||"TBD"}]:[{label:"Bore à Stroke",value:s.bore&&s.stroke?`${s.bore}" à ${s.stroke}"`:"Stock"},{label:"Target Compression",value:s.compressionTarget||"TBD"},{label:"Target Power",value:s.hpTarget?`${s.hpTarget} hp`:"TBD"}]].map(T=>h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:519",className:"flex justify-between items-center py-2.5 border-b border-border last:border-0",children:[h.jsx("span",{"data-loc":"client/src/pages/NewBuild.tsx:520",className:"text-sm text-muted-foreground",children:T.label}),h.jsx("span",{"data-loc":"client/src/pages/NewBuild.tsx:521",className:"text-sm font-medium text-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:T.value})]},T.label))})]})]},t)}),h.jsxs("div",{"data-loc":"client/src/pages/NewBuild.tsx:536",className:"flex items-center justify-between mt-8 pt-6 border-t border-border",children:[h.jsxs("button",{"data-loc":"client/src/pages/NewBuild.tsx:537",onClick:d,disabled:t===1,className:"flex items-center gap-2 px-4 py-2 rounded-md border border-border text-sm text-muted-foreground hover:text-foreground hover:border-white/20 transition-all disabled:opacity-30 disabled:cursor-not-allowed",children:[h.jsx(TK,{"data-loc":"client/src/pages/NewBuild.tsx:542",className:"w-4 h-4"}),"Back"]}),t<W2.length?h.jsxs("button",{"data-loc":"client/src/pages/NewBuild.tsx:547",onClick:c,disabled:t===2&&!r,className:"flex items-center gap-2 px-5 py-2.5 rounded-md font-medium text-sm transition-all duration-150 active:scale-95 disabled:opacity-40 disabled:cursor-not-allowed",style:{background:"var(--orange)",color:"white"},children:["Continue",h.jsx(Ml,{"data-loc":"client/src/pages/NewBuild.tsx:554",className:"w-4 h-4"})]}):h.jsxs("button",{"data-loc":"client/src/pages/NewBuild.tsx:557",onClick:m,disabled:f.isPending,className:"flex items-center gap-2 px-5 py-2.5 rounded-md font-medium text-sm transition-all duration-150 active:scale-95 disabled:opacity-60 disabled:cursor-not-allowed",style:{background:"var(--orange)",color:"white"},children:[f.isPending?h.jsx(Zs,{"data-loc":"client/src/pages/Ne
1123wBuild.tsx:564",className:"w-4 h-4 animate-spin"}):h.jsx(Rx,{"data-loc":"client/src/pages/NewBuild.tsx:566",className:"w-4 h-4"}),f.isPending?"Creating...":"Create Build"]})]}),t===2&&!r&&h.jsx("p",{"data-loc":"client/src/pages/NewBuild.tsx:575",className:"text-xs text-muted-foreground text-center mt-3",children:"Select an engine type above to continue"})]})})}const bA={hidden:{opacity:0,y:16},visible:(e=0)=>({opacity:1,y:0,transition:{duration:.35,delay:e*.06}})},yA=[{category:"Rotating Assembly",items:[{name:'Forged Pistons 4.125" bore â JE Pistons #182234',qty:8,price:1240},{name:'H-Beam Connecting Rods 6.125" â Scat #2-350-6125-2100',qty:8,price:680},{name:'Forged 4340 Crankshaft 4.000" stroke â Scat #1-350-4000-6125',qty:1,price:1150}]},{category:"Valvetrain",items:[{name:"Hydraulic Roller Camshaft â Comp Cams #54-422-11",qty:1,price:420},{name:"Timing Chain Kit â Cloyes #9-3601TX",qty:1,price:145}]},{category:"Sealing & Bearings",items:[{name:"Cylinder Head Gaskets (pair) â Cometic #C5471-040",qty:2,price:185},{name:"Main Bearing Set â ACL #5M1908H-STD",qty:1,price:95},{name:"Rod Bearing Set â ACL #4B1908H-STD",qty:1,price:85}]}],vA=[{description:"Engine disassembly & inspection",hours:4,rate:100},{description:"Assembly â rotating assembly, short block",hours:12,rate:100},{description:"Assembly â cylinder heads, valvetrain",hours:8,rate:100},{description:"Assembly â final dress, accessories",hours:4,rate:100},{description:"Break-in procedure & dyno pull",hours:4,rate:100}],wA=[{description:'Bore & hone cylinders +0.030" (torque plate)',price:480},{description:'Deck block 0.010"',price:180},{description:"Full valve job â both heads",price:640},{description:"Degree camshaft (included in assembly)",price:0},{description:"Hot tank & clean",price:150},{description:"Magnaflux block & heads",price:400}];function Hxe(){const{id:e}=D5(),t=yA.flatMap(s=>s.items).reduce((s,i)=>s+i.price*i.qty,0),n=vA.reduce((s,i)=>s+i.hours*i.rate,0),r=wA.reduce((s,i)=>s+i.price,0),a=t+n+r;return h.jsx(kp,{"data-loc":"client/src/pages/Estimate.tsx:63",breadcrumbs:[{label:"Dashboard",href:"/dashboard"},{label:"427 LS Stroker",href:`/builds/${e}`},{label:"Estimate"}],children:h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:70",className:"px-6 py-6",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/Estimate.tsx:72",initial:"hidden",animate:"visible",variants:bA,className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 mb-8",children:[h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:78",children:[h.jsx("h1",{"data-loc":"client/src/pages/Estimate.tsx:79",className:"text-5xl font-bold uppercase text-foreground leading-none",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Build Estimate"}),h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:85",className:"text-muted-foreground mt-1",children:"427 LS Stroker â 1969 Camaro SS"})]}),h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:87",className:"flex items-center gap-3",children:[h.jsxs("button",{"data-loc":"client/src/pages/Estimate.tsx:88",onClick:()=>br.info("Print feature coming soon"),className:"flex items-center gap-2 px-3 py-2 rounded-md border border-border text-sm text-muted-foreground hover:text-foreground hover:border-white/20 transition-all",children:[h.jsx(HK,{"data-loc":"client/src/pages/Estimate.tsx:92",className:"w-4 h-4"}),"Print"]}),h.jsxs("button",{"data-loc":"client/src/pages/Estimate.tsx:95",onClick:()=>br.info("PDF export coming soon"),className:"flex items-center gap-2 px-3 py-2 rounded-md border border-border text-sm text-muted-foreground hover:text-foreground hover:border-white/20 transition-all",children:[h.jsx(LK,{"data-loc":"client/src/pages/Estimate.tsx:99",className:"w-4 h-4"}),"Export PDF"]}),h.jsxs("button",{"data-loc":"client/src/pages/Estimate.tsx:102",onClick:()=>br.success("Estimate sent to customer"),className:"flex items-center gap-2 px-4 py-2 rounded-md text-sm font-medium transition-all active:scale-95",style:{background:"var(--orange)",color:"white"},children:[h.jsx(jx,{"data-loc":"client/src/pages/Estimate.tsx:107",className:"w-4 h-4"}),"Send to Customer"]})]})]}),h.jsxs(Je.div,{"data-loc":"client/src/pages/Estimate.tsx:114",initial:"hidden",animate:"visible",variants:bA,custom:1,className:"rounded-xl border border-border bg-card overflow-hidden",children:[h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:122",className:"p-8 border-b border-border",style:{background:"var(--secondary)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:123",className:"flex flex-col sm:flex-row justify-between gap-6",children:[h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:124",children:[h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:125",className:"flex items-center gap-3 mb-4",children:[h.jsx("img",{"data-loc":"client/src/pages/Estimate.tsx:126",src:"/manus-storage/logo_icon_0e7d0be8.png",alt:"",className:"w-10 h-10 object-contain"}),h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:127",children:[h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:128",className:"text-2xl font-bold",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:["ENGINE",h.jsx("span",{"data-loc":"client/src/pages/Estimate.tsx:132",style:{color:"var(--orange)"},children:"BUILDR"})]}),h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:134",className:"text-xs text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:"Professional Engine Build Estimate"})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:139",className:"text-sm text-muted-foreground",children:[h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:140",children:"Kowalski Performance Engines"}),h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:141",children:"1420 Industrial Dr, Detroit, MI 48201"}),h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:142",children:"[email protected]"})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:145",className:"text-right",children:[h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:146",className:"text-xs text-muted-foreground mb-1 uppercase tracking-wider",style:{fontFamily:"'JetBrains Mono', monospace"},children:"Estimate #"}),h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:152",className:"text-2xl font-bold text-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:"EST-2026-0047"}),h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:158",className:"text-xs text-muted-foreground mt-2",children:"Issued: July 3, 2026"}),h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:159",className:"text-xs text-muted-foreground",children:"Valid for: 30 days"}),h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:160",className:"mt-3 text-xs px-2 py-1 rounded inline-block",style:{background:"var(--orange-dim)",color:"var(--orange)",fontFamily:"'JetBrains Mono', monospace"},children:"PENDING APPROVAL"})]})]}),h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:170",className:"mt-6 pt-6 border-t border-border grid grid-cols-2 sm:grid-cols-4 gap-4",children:[{label:"Engine",value:"427 LS Stroker"},{label:"Vehicle",value:"1969 Camaro SS"},{label:"Target Power",value:"650 hp"},{label:"Est. Completion",value:"6â8 weeks"}].map(s=>h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:177",children:[h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:178",className:"text-xs text-muted-foreground uppercase tracking-wider mb-1",children:s.label}),h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:179",className:"font-bold text-foreground",style:{fontFamily:s.label==="Target Power"||s.label==="Est. Completion"?"'JetBrains Mono', monospace":"'Barlow Condensed', sans-serif"},children:s.value})]},s.label))})]}),h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:191",className:"p-8 space-y-8",children:[yA.map((s,i)=>h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:194",children:[h.jsx("h3",{"data-loc":"client/src/pages/Estimate.tsx:195",className:"text-lg font-bold uppercase text-foreground mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",borderLeft:"3px solid var(--orange)",paddingLeft:"12px"},children:s.category}),h.jsxs("table",{"data-loc":"client/src/pages/Estimate.tsx:201",className:"w-full text-sm",children:[h.jsx("thead",{"data-loc":"client/src/pages/Estimate.tsx:202",children:h.jsxs("tr",{"data-loc":"client/src/pages/Estimate.tsx:203",className:"border-b border-border",children:[h.jsx("th",{"data-loc":"client/src/pages/Estimate.tsx:204",className:"text-left py-2 text-xs text-muted-foreground uppercase tracking-wider",children:"Description"}),h.jsx("th",{"data-loc":"client/src/pages/Estimate.tsx:205",className:"text-center py-2 text-xs text-muted-foreground uppercase tracking-wider w-16",children:"Qty"}),h.jsx("th",{"data-loc":"client/src/pages/Estimate.tsx:206",className:"text-right py-2 text-xs text-muted-foreground uppercase tracking-wider w-28",children:"Unit Price"}),h.jsx("th",{"data-loc":"client/src/pages/Estimate.tsx:207",className:"text-right py-2 text-xs text-muted-foreground uppercase tracking-wider w-28",children:"Total"})]})}),h.jsx("tbody",{"data-loc":"client/src/pages/Estimate.tsx:210",children:s.items.map((o,c)=>h.jsxs("tr",{"data-loc":"client/src/pages/Estimate.tsx:212",className:"border-b border-border/50 last:border-0",children:[h.jsx("td",{"data-loc":"client/src/pages/Estimate.tsx:213",className:"py-3 text-foreground",children:o.name}),h.jsx("td",{"data-loc":"client/src/pages/Estimate.tsx:214",className:"py-3 text-center text-muted-foreground",children:o.qty}),h.jsxs("td",{"data-loc":"client/src/pages/Estimate.tsx:215",className:"py-3 text-right text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"}
1123,children:["$",o.price.toLocaleString()]}),h.jsxs("td",{"data-loc":"client/src/pages/Estimate.tsx:218",className:"py-3 text-right font-medium",style:{fontFamily:"'JetBrains Mono', monospace"},children:["$",(o.price*o.qty).toLocaleString()]})]},c))})]})]},s.category)),h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:229",children:[h.jsx("h3",{"data-loc":"client/src/pages/Estimate.tsx:230",className:"text-lg font-bold uppercase text-foreground mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",borderLeft:"3px solid var(--orange)",paddingLeft:"12px"},children:"Machine Shop"}),h.jsxs("table",{"data-loc":"client/src/pages/Estimate.tsx:236",className:"w-full text-sm",children:[h.jsx("thead",{"data-loc":"client/src/pages/Estimate.tsx:237",children:h.jsxs("tr",{"data-loc":"client/src/pages/Estimate.tsx:238",className:"border-b border-border",children:[h.jsx("th",{"data-loc":"client/src/pages/Estimate.tsx:239",className:"text-left py-2 text-xs text-muted-foreground uppercase tracking-wider",children:"Service"}),h.jsx("th",{"data-loc":"client/src/pages/Estimate.tsx:240",className:"text-right py-2 text-xs text-muted-foreground uppercase tracking-wider w-28",children:"Price"})]})}),h.jsx("tbody",{"data-loc":"client/src/pages/Estimate.tsx:243",children:wA.filter(s=>s.price>0).map((s,i)=>h.jsxs("tr",{"data-loc":"client/src/pages/Estimate.tsx:245",className:"border-b border-border/50 last:border-0",children:[h.jsx("td",{"data-loc":"client/src/pages/Estimate.tsx:246",className:"py-3 text-foreground",children:s.description}),h.jsxs("td",{"data-loc":"client/src/pages/Estimate.tsx:247",className:"py-3 text-right",style:{fontFamily:"'JetBrains Mono', monospace"},children:["$",s.price.toLocaleString()]})]},i))})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:257",children:[h.jsx("h3",{"data-loc":"client/src/pages/Estimate.tsx:258",className:"text-lg font-bold uppercase text-foreground mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",borderLeft:"3px solid var(--orange)",paddingLeft:"12px"},children:"Labor"}),h.jsxs("table",{"data-loc":"client/src/pages/Estimate.tsx:264",className:"w-full text-sm",children:[h.jsx("thead",{"data-loc":"client/src/pages/Estimate.tsx:265",children:h.jsxs("tr",{"data-loc":"client/src/pages/Estimate.tsx:266",className:"border-b border-border",children:[h.jsx("th",{"data-loc":"client/src/pages/Estimate.tsx:267",className:"text-left py-2 text-xs text-muted-foreground uppercase tracking-wider",children:"Description"}),h.jsx("th",{"data-loc":"client/src/pages/Estimate.tsx:268",className:"text-center py-2 text-xs text-muted-foreground uppercase tracking-wider w-20",children:"Hours"}),h.jsx("th",{"data-loc":"client/src/pages/Estimate.tsx:269",className:"text-right py-2 text-xs text-muted-foreground uppercase tracking-wider w-24",children:"Rate"}),h.jsx("th",{"data-loc":"client/src/pages/Estimate.tsx:270",className:"text-right py-2 text-xs text-muted-foreground uppercase tracking-wider w-28",children:"Total"})]})}),h.jsx("tbody",{"data-loc":"client/src/pages/Estimate.tsx:273",children:vA.map((s,i)=>h.jsxs("tr",{"data-loc":"client/src/pages/Estimate.tsx:275",className:"border-b border-border/50 last:border-0",children:[h.jsx("td",{"data-loc":"client/src/pages/Estimate.tsx:276",className:"py-3 text-foreground",children:s.description}),h.jsx("td",{"data-loc":"client/src/pages/Estimate.tsx:277",className:"py-3 text-center text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:s.hours}),h.jsxs("td",{"data-loc":"client/src/pages/Estimate.tsx:280",className:"py-3 text-right text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:["$",s.rate,"/hr"]}),h.jsxs("td",{"data-loc":"client/src/pages/Estimate.tsx:283",className:"py-3 text-right",style:{fontFamily:"'JetBrains Mono', monospace"},children:["$",(s.hours*s.rate).toLocaleString()]})]},i))})]})]}),h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:293",className:"border-t border-border pt-6",children:h.jsx("div",{"data-loc":"client/src/pages/Estimate.tsx:294",className:"flex justify-end",children:h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:295",className:"w-full max-w-xs space-y-2",children:[[{label:"Parts Subtotal",value:t},{label:"Machine Shop",value:r},{label:"Labor",value:n}].map(s=>h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:301",className:"flex justify-between text-sm",children:[h.jsx("span",{"data-loc":"client/src/pages/Estimate.tsx:302",className:"text-muted-foreground",children:s.label}),h.jsxs("span",{"data-loc":"client/src/pages/Estimate.tsx:303",style:{fontFamily:"'JetBrains Mono', monospace"}
1123,children:["$",s.value.toLocaleString()]})]},s.label)),h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:306",className:"border-t border-border pt-3 flex justify-between",children:[h.jsx("span",{"data-loc":"client/src/pages/Estimate.tsx:307",className:"text-xl font-bold text-foreground uppercase",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Grand Total"}),h.jsxs("span",{"data-loc":"client/src/pages/Estimate.tsx:313",className:"text-3xl font-bold",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:["$",a.toLocaleString()]})]})]})})}),h.jsxs("div",{"data-loc":"client/src/pages/Estimate.tsx:325",className:"border-t border-border pt-6",children:[h.jsx("h4",{"data-loc":"client/src/pages/Estimate.tsx:326",className:"text-sm font-bold uppercase text-muted-foreground mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Terms & Conditions"}),h.jsxs("ul",{"data-loc":"client/src/pages/Estimate.tsx:332",className:"space-y-1.5 text-xs text-muted-foreground",children:[h.jsxs("li",{"data-loc":"client/src/pages/Estimate.tsx:333",className:"flex items-start gap-2",children:[h.jsx(La,{"data-loc":"client/src/pages/Estimate.tsx:334",className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0",style:{color:"var(--orange)"}}),"50% deposit required to begin. Balance due upon completion before delivery."]}),h.jsxs("li",{"data-loc":"client/src/pages/Estimate.tsx:337",className:"flex items-start gap-2",children:[h.jsx(La,{"data-loc":"client/src/pages/Estimate.tsx:338",className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0",style:{color:"var(--orange)"}}),"Parts prices subject to change. Final invoice reflects actual parts cost at time of order."]}),h.jsxs("li",{"data-loc":"client/src/pages/Estimate.tsx:341",className:"flex items-start gap-2",children:[h.jsx(La,{"data-loc":"client/src/pages/Estimate.tsx:342",className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0",style:{color:"var(--orange)"}}),"12-month / 12,000-mile warranty on all assembly workmanship."]}),h.jsxs("li",{"data-loc":"client/src/pages/Estimate.tsx:345",className:"flex items-start gap-2",children:[h.jsx(La,{"data-loc":"client/src/pages/Estimate.tsx:346",className:"w-3.5 h-3.5 mt-0.5 flex-shrink-0",style:{color:"var(--orange)"}}),"Engine birth certificate with all measured clearances provided at delivery."]})]})]})]})]})]})})}const Uxe=[{key:"solo",name:"Solo Builder",icon:ei,monthlyPrice:49,annualPrice:47,description:"For independent mechanics doing 2â5 builds per month.",buildsPerMonth:"5 builds/mo",teamSeats:"1 user",features:["Up to 5 active builds/month","Universal engine selector (49cc â jet)","Interactive clearance inspector","AI part compatibility checker","PDF spec sheet export","Customer estimate PDF","Engine family presets + custom presets"],highlight:!1,cta:"Start Free Trial"},{key:"pro",name:"Pro Shop",icon:qu,monthlyPrice:129,annualPrice:103,description:"For shops with multiple mechanics and high build volume.",buildsPerMonth:"Unlimited builds",teamSeats:"Up to 5 users",features:["Unlimited builds","Up to 5 team members","Everything in Solo","AI Build Assistant chat panel","Machine shop order generation","Customer portal / share links","Build history & clearance log","Priority email support"],highlight:!0,cta:"Start Free Trial"},{key:"enterprise",name:"Enterprise",icon:Mx,monthlyPrice:299,annualPrice:239,description:"For dealership service departments and high-volume shops.",buildsPerMonth:"Unlimited builds",teamSeats:"Unlimited users",features:["Unlimited builds & team members","Everything in Pro","Custom branding on estimates","API access","Dedicated onboarding & support","SLA guarantee","Custom integrations"],highlight:!1,cta:"Contact Sales"}],Dm={hidden:{opacity:0,y:20},visible:(e=0)=>({opacity:1,y:0,transition:{duration:.4,delay:e*.08}})};function qxe(){const[e,t]=G.useState(!1),{isAuthenticated:n}=F5(),r=Tr.billing.createCheckout.useMutation(),a=async s=>{if(s==="enterprise"){window.location.href="mailto:[email protected]?subject=Enterprise Inquiry";return}if(!n){br.info("Please sign in to start your free trial.");return}try{br.loading("Redirecting to checkoutâ¦",{id:"checkout"});const i=await r.mutateAsync({plan:s,interval:e?"year":"month",origin:window.location.origin});br.dismiss("checkout"),i.url&&window.open(i.url,"_blank")}catch(i){br.dismiss("checkout"),br.error(i?.message??"Failed to start checkout. Please try again.")}};return h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:111",className:"min-h-screen bg-background text-foreground",children:[h.jsxs("header",{"data-loc":"client/src/pages/Pricing.tsx:113",className:"fixed top-0 left-0 right-0 z-50 flex items-center justify-between px-6 py-4 border-b border-border bg-background/80 backdrop-blur-md",children:[h.jsx(kt,{"data-loc":"client/src/pages/Pricing.tsx:114",href:"/",children:h.jsx("div",{"data-loc":"client/src/pages/Pricing.tsx:115",className:"flex items-center gap-2.5 cursor-pointer",children:h.jsxs("span",{"data-loc":"client/src/pages/Pricing.tsx:116",className:"text-xl font-bold tracking-wide",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:["ENGINE",h.jsx("span",{"data-loc":"client/src/pages/Pricing.tsx:117",style:{color:"var(--orange)"},children:"BUILDR"})]})})}),h.jsx(kt,{"data-loc":"client/src/pages/Pricing.tsx:121",href:"/dashboard",children:h.jsx("button",{"data-loc":"client/src/pages/Pricing.tsx:122",className:"text-sm font-medium px-4 py-2 rounded-md transition-all duration-150 active:scale-95",style:{background:"var(--orange)",color:"white"},children:"Go to Dashboard"})})]}),h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:129",className:"pt-28 pb-24 px-6",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/Pricing.tsx:131",initial:"hidden",animate:"visible",variants:Dm,className:"text-center mb-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:132",className:"inline-flex items-center gap-2 text-xs font-mono px-3 py-1.5 rounded border mb-6",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)",borderColor:"var(--orange-dim)",background:"var(--orange-dim)"},children:[h.jsx(GK,{"data-loc":"client/src/pages/Pricing.tsx:134",className:"w-3 h-3"})," 14-DAY FREE TRIAL · NO CREDIT CARD REQUIRED"]}),h.jsx("h1",{"data-loc":"client/src/pages/Pricing.tsx:136",className:"text-6xl font-bold uppercase mb-4",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Simple, Transparent Pricing"}),h.jsx("p",{"data-loc":"client/src/pages/Pricing.tsx:139",className:"text-muted-foreground text-lg max-w-xl mx-auto",children:"One tool. Every build. From a 49cc scooter to a jet turbine."})]}),h.jsxs(Je.div,{"data-loc":"client/src/pages/Pricing.tsx:145",initial:"hidden",animate:"visible",variants:Dm,custom:1,className:"flex items-center justify-center gap-4 mb-14",children:[h.jsx("span",{"data-loc":"client/src/pages/Pricing.tsx:147",className:`text-sm font-medium ${e?"text-muted-foreground":"text-foreground"}`,children:"Monthly"}),h.jsx("button",{"data-loc":"client/src/pages/Pricing.tsx:148",onClick:()=>t(!e),className:"relative w-12 h-6 rounded-full transition-colors duration-200",style:{background:e?"var(--orange)":"oklch(0.25 0.004 285)"},children:h.jsx("span",{"data-loc":"client/src/pages/Pricing.tsx:153",className:"absolute top-1 left-1 w-4 h-4 rounded-full bg-white transition-transform duration-200",style:{transform:e?"translateX(24px)":"translateX(0)"}})}),h.jsxs("span",{"data-loc":"client/src/pages/Pricing.tsx:158",className:`text-sm font-medium ${e?"text-foreground":"text-muted-foreground"}`,children:["Annual ",h.jsx("span",{"data-loc":"client/src/pages/Pricing.tsx:159",className:"text-xs px-1.5 py-0.5 rounded ml-1",style:{background:"var(--orange-dim)",color:"var(--orange)"},children:"Save 20%"})]})]}),h.jsx("div",{"data-loc":"client/src/pages/Pricing.tsx:165",className:"max-w-6xl mx-auto grid md:grid-cols-3 gap-6",children:Uxe.map((s,i)=>{const o=s.icon,c=e?s.annualPrice:s.monthlyPrice;return h.jsxs(Je.div,{"data-loc":"client/src/pages/Pricing.tsx:170",initial:"hidden",animate:"visible",variants:Dm,custom:i+2,className:"relative rounded-xl border p-8 flex flex-col",style:{borderColor:s.highlight?"var(--orange)":"oklch(1 0 0 / 0.1)",background:s.highlight?"oklch(0.13 0.008 285)":"oklch(0.10 0.004 285)",boxShadow:s.highlight?"0 0 40px oklch(0.65 0.22 40 / 0.15)":"none"},children:[s.highlight&&h.jsx("div",{"data-loc":"client/src/pages/Pricing.tsx:184",className:"absolute -top-3 left-1/2 -translate-x-1/2 text-xs font-bold px-3 py-1 rounded-full",style:{background:"var(--orange)",color:"white",fontFamily:"'JetBrains Mono', monospace"},children:"MOST POPULAR"}),h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:190",className:"flex items-center gap-3 mb-4",children:[h.jsx("div",{"data-loc":"client/src/pages/Pricing.tsx:191",className:"w-10 h-10 rounded-md flex items-center justify-center",style:{background:"var(--orange-dim)"},children:h.jsx(o,{"data-loc":"client/src/pages/Pricing.tsx:193",className:"w-5 h-5",style:{color:"var(--orange)"}})}),h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:195",children:[h.jsx("div",{"data-loc":"client/src/pages/Pricing.tsx:196",className:"font-bold text-lg",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:s.name}),h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:197",className:"text-xs text-muted-foreground",children:[s.buildsPerMonth," · ",s.teamSeats]})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:201",className:"mb-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:202",className:"flex items-baseline gap-1",children:[h.jsxs("span",{"data-loc":"client/src/pages/Pricing.tsx:203",className:"text-5xl font-bold",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:["$",c]}),h.jsxs("span",{"data-loc":"client/src/pages/Pricing.tsx:206",className:"text-muted-foreground text-sm",children:["/mo",e?" billed annually":""]})]}),e&&h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:209",className:"text-xs text-muted-foreground mt-1",children:["$",c*12,"/yr · saves $",(s.monthlyPrice-c)*12,"/yr"]})]}),h.jsx("p",{"data-loc":"client/src/pages/Pricing.tsx:215",className:"text-sm text-muted-foreground mb-6 leading-relaxed",children:s.description}),h.jsx("ul",{"data-loc":"client/src/pages/Pricing.tsx:217",className:"space-y-2.5 mb-8 flex-1",children:s.features.map(d=>h.jsxs("li",{"data-loc":"client/src/pages/Pricing.tsx:219",className:"flex items-start gap-2.5 text-sm text-muted-foreground",children:[h.jsx(La,{"data-loc":"client/src/pages/Pricing.tsx:220",className:"w-4 h-4 mt-0.5 flex-shrink-0",style:{color:"var(--orange)"}}),d]},d))}),h.jsxs("button",{"data-loc":"client/src/pages/Pricing.tsx:226",onClick:()=>a(s.key),disabled:r.isPending,className:"w-full flex items-center justify-center gap-2 py-3 rounded-md font-semibold text-sm transition-all duration-150 active:scale-95 disabled:opacity-60",style:s.highlight?{background:"var(--orange)",color:"white"}
1123:{background:"oklch(0.18 0.004 285)",color:"var(--foreground)",border:"1px solid oklch(1 0 0 / 0.12)"},children:[s.cta,h.jsx(Pu,{"data-loc":"client/src/pages/Pricing.tsx:236",className:"w-4 h-4"})]})]},s.key)})}),h.jsx(Je.div,{"data-loc":"client/src/pages/Pricing.tsx:244",initial:"hidden",animate:"visible",variants:Dm,custom:6,className:"max-w-3xl mx-auto mt-14 grid grid-cols-3 gap-6 text-center",children:[{label:"14-Day Free Trial",sub:"No credit card required"},{label:"Cancel Anytime",sub:"No lock-in contracts"},{label:"Instant Access",sub:"All features unlocked on day 1"}].map(s=>h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:251",className:"p-4 rounded-lg border border-border",children:[h.jsx("div",{"data-loc":"client/src/pages/Pricing.tsx:252",className:"text-sm font-semibold text-foreground mb-1",children:s.label}),h.jsx("div",{"data-loc":"client/src/pages/Pricing.tsx:253",className:"text-xs text-muted-foreground",children:s.sub})]},s.label))}),h.jsxs(Je.div,{"data-loc":"client/src/pages/Pricing.tsx:259",initial:"hidden",animate:"visible",variants:Dm,custom:7,className:"max-w-3xl mx-auto mt-20",children:[h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:266",className:"flex items-center gap-4 mb-10",children:[h.jsx("div",{"data-loc":"client/src/pages/Pricing.tsx:267",className:"w-0.5 h-8 rounded-full",style:{background:"var(--orange)"}}),h.jsx("h2",{"data-loc":"client/src/pages/Pricing.tsx:268",className:"text-4xl font-bold uppercase",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Frequently Asked Questions"})]}),h.jsx(Gxe,{"data-loc":"client/src/pages/Pricing.tsx:275"})]})]}),h.jsx("footer",{"data-loc":"client/src/pages/Pricing.tsx:280",className:"py-8 border-t border-border",children:h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:281",className:"max-w-5xl mx-auto px-6 flex flex-col sm:flex-row items-center justify-between gap-3",children:[h.jsx("div",{"data-loc":"client/src/pages/Pricing.tsx:282",className:"text-xs text-muted-foreground",children:"© 2026 EngineBuildr. Engine building software for professional shops."}),h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:283",className:"flex items-center gap-4 text-xs text-muted-foreground",children:[h.jsx(kt,{"data-loc":"client/src/pages/Pricing.tsx:284",href:"/terms",className:"hover:text-foreground transition-colors",children:"Terms of Service"}),h.jsx(kt,{"data-loc":"client/src/pages/Pricing.tsx:285",href:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy Policy"}),h.jsx(kt,{"data-loc":"client/src/pages/Pricing.tsx:286",href:"/",className:"hover:text-foreground transition-colors",children:"Home"})]})]})})]})}const Vxe=[{category:"Free Trial",items:[{q:"Do I need a credit card to start the 14-day free trial?",a:"No. You can start your free trial with just your Manus account â no credit card, no billing information required. You will only be asked for payment details if you choose to continue after the trial ends."},{q:"What do I get access to during the trial?",a:"Every feature on the Pro Shop plan is fully unlocked for all users during the 14-day trial â unlimited builds, the AI Build Assistant, machine shop order generation, customer share links, and all clearance inspector tools. You are not limited to a feature-restricted free tier."},{q:"What happens when my 14-day trial ends?",a:"You will receive an email reminder 3 days before your trial expires. If you have not added a payment method by the end of day 14, your account will be downgraded to read-only mode â you can still view your existing builds and export PDFs, but you will not be able to create new builds or use AI features until you subscribe."},{q:"Can I switch plans during the trial?",a:"Yes. You can upgrade or downgrade at any time during the trial. If you start on Solo and decide you need Pro Shop features, simply switch plans in your account settings. Your trial clock does not reset when you change plans."},{q:"Is there a limit on how many builds I can create during the trial?",a:"No. During the trial you have the same unlimited build access as the Pro Shop plan. We want you to run real builds through the full workflow â tear-down documentation, spec calculator, AI compatibility checks, and customer estimates â so you can make an informed decision before subscribing."}]},{category:"Billing & Subscriptions",items:[{q:"How does annual billing work?",a:"When you choose annual billing, you are charged for 12 months upfront at a 20% discount. For example, the Pro Shop plan costs $129/mo on monthly billing but only $103/mo (billed as $1,238/yr) on annual billing â a saving of $310 per year. Annual billing is ideal for shops that want to lock in a lower rate and avoid monthly payment friction."},{q:"Can I cancel my subscription at any time?",a:"Yes, absolutely. There are no lock-in contracts or cancellation fees. You can cancel from your account billing settings at any time. If you cancel a monthly subscription, you retain full access until the end of your current billing period. If you cancel an annual subscription, you retain access for the remainder of the year you have paid for â we do not offer prorated refunds on annual plans."},{q:"What payment methods do you accept?",a:"All major credit and debit cards (Visa, Mastercard, American Express, Discover) are accepted through our Stripe-powered checkout. We do not currently accept PayPal, ACH bank transfers, or invoiced net-30 billing for Solo and Pro plans. Enterprise customers can request invoiced billing by contacting sales."},{q:"Can I get a refund if I change my mind?",a:"Monthly subscriptions: we offer a full refund within 7 days of your first charge if you have not used the platform to generate a customer estimate or export a PDF. Annual subscriptions: refunds are available within 14 days of the annual charge if you have not used the platform. After these windows, we do not offer refunds but you will retain access for the full paid period. To request a refund, contact [email protected]."},{q:"How do I upgrade from Solo to Pro Shop?",a:"You can upgrade at any time from your account billing settings. When you upgrade mid-cycle, Stripe automatically calculates a prorated credit for the unused days on your current plan and applies it toward your first Pro Shop charge â you are never double-billed."},{q:"Does the Enterprise plan require a minimum contract term?",a:"Enterprise plans are available on both monthly and annual terms. There is no mandatory minimum contract length, though most Enterprise customers choose annual billing for the cost savings and budget predictability. Custom multi-year agreements with volume discounts are available â contact [email protected] to discu
1123ss."}]},{category:"Plans & Features",items:[{q:"What is the difference between Solo Builder and Pro Shop?",a:"Solo Builder is designed for independent mechanics doing up to 5 builds per month working alone. Pro Shop adds unlimited builds, up to 5 team member seats, the AI Build Assistant chat panel, machine shop order generation, customer portal share links, and priority support. If you are running a shop with more than one mechanic or regularly exceed 5 builds per month, Pro Shop is the right tier."},{q:"Can I add more team members to the Pro Shop plan?",a:"Pro Shop includes up to 5 team seats. If you need more than 5 users, you should upgrade to Enterprise, which includes unlimited team members. Enterprise also adds custom branding on customer estimates, API access, and a dedicated onboarding specialist."},{q:"Do custom clearance presets I create carry over if I change plans?",a:"Yes. All custom presets, build records, clearance history, and customer estimates are stored in your account and are never deleted when you change plans. If you downgrade from Pro to Solo, your data is preserved â you simply lose access to Pro-only features like the AI Assistant until you upgrade again."}]}];function Gxe(){const[e,t]=G.useState(null);return h.jsx("div",{"data-loc":"client/src/pages/Pricing.tsx:372",className:"space-y-10",children:Vxe.map(n=>h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:374",children:[h.jsx("div",{"data-loc":"client/src/pages/Pricing.tsx:375",className:"text-xs font-mono mb-4 px-2 py-1 rounded inline-block",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)",background:"var(--orange-dim)"},children:n.category.toUpperCase()}),h.jsx("div",{"data-loc":"client/src/pages/Pricing.tsx:385",className:"space-y-2",children:n.items.map((r,a)=>{const s=`${n.category}-${a}`,i=e===s;return h.jsxs("div",{"data-loc":"client/src/pages/Pricing.tsx:390",className:"rounded-lg border overflow-hidden",style:{borderColor:i?"var(--orange-dim)":"oklch(1 0 0 / 0.08)",background:i?"oklch(0.12 0.006 285)":"oklch(0.10 0.004 285)",transition:"border-color 0.2s, background 0.2s"},children:[h.jsxs("button",{"data-loc":"client/src/pages/Pricing.tsx:399",onClick:()=>t(i?null:s),className:"w-full flex items-center justify-between gap-4 px-5 py-4 text-left",children:[h.jsx("span",{"data-loc":"client/src/pages/Pricing.tsx:403",className:"text-sm font-semibold text-foreground leading-snug",children:r.q}),h.jsx(wp,{"data-loc":"client/src/pages/Pricing.tsx:406",className:"w-4 h-4 flex-shrink-0 transition-transform duration-200",style:{color:"var(--orange)",transform:i?"rotate(180deg)":"rotate(0deg)"}})]}),h.jsx(Ba,{"data-loc":"client/src/pages/Pricing.tsx:414",initial:!1,children:i&&h.jsx(Je.div,{"data-loc":"client/src/pages/Pricing.tsx:416",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.22,ease:[.23,1,.32,1]},style:{overflow:"hidden"},children:h.jsx("p",{"data-loc":"client/src/pages/Pricing.tsx:424",className:"px-5 pb-5 text-sm text-muted-foreground leading-relaxed",children:r.a})},"answer")})]},s)})})]},n.category))})}function $xe(){const e=mJ(),n=new URLSearchParams(e).get("plan")??"pro",r=Tr.useUtils();G.useEffect(()=>{r.billing.myPlan.invalidate()},[]);const a={solo:"Solo Builder",pro:"Pro Shop",enterprise:"Enterprise"};return h.jsx("div",{"data-loc":"client/src/pages/BillingSuccess.tsx:25",className:"min-h-screen bg-background flex items-center justify-center px-6",children:h.jsxs(Je.div,{"data-loc":"client/src/pages/BillingSuccess.tsx:26",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.4},className:"max-w-md w-full text-center",children:[h.jsx("div",{"data-loc":"client/src/pages/BillingSuccess.tsx:32",className:"w-20 h-20 rounded-full flex items-center justify-center mx-auto mb-6",style:{background:"var(--orange-dim)"},children:h.jsx(La,{"data-loc":"client/src/pages/BillingSuccess.tsx:34",className:"w-10 h-10",style:{color:"var(--orange)"}})}),h.jsx("h1",{"data-loc":"client/src/pages/BillingSuccess.tsx:36",className:"text-4xl font-bold uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"You're In."}),h.jsxs("p",{"data-loc":"client/src/pages/BillingSuccess.tsx:40",className:"text-muted-foreground mb-2",children:["Welcome to ",h.jsxs("strong",{"data-loc":"client/src/pages/BillingSuccess.tsx:41",className:"text-foreground",children:["EngineBuildr ",a[n]??n]}),"."]}),h.jsx("p",{"data-loc":"client/src/pages/BillingSuccess.tsx:43",className:"text-sm text-muted-foreground mb-8",children:"Your 14-day free trial has started. No charge until the trial ends."}),h.jsx(kt,{"data-loc":"client/src/pages/BillingSuccess.tsx:46",href:"/dashboard",children:h.jsxs("button",{"data-loc":"client/src/pages/BillingSuccess.tsx:47",className:"inline-flex items-center gap-2 px-6 py-3 rounded-md font-semibold transition-all duration-150 active:scale-95",style:{background:"var(--orange)",color:"white"},children:["Go to Dashboard",h.jsx(Pu,{"data-loc":"client/src/pages/BillingSuccess.tsx:50",className:"w-4 h-4"})]})})]})})}function Wxe(){const{token:e}=D5(),[t,n]=G.useState(""),[r,a]=G.useState(!1),[s,i]=G.useState(!1),{data:o,isLoading:c,error:d}=Tr.share.getByToken.useQuery({token:e}),f=Tr.share.approveEstimate.useMutation({onSuccess:()=>a(!0)}),m=async()=>{t.trim()&&(i(!0),f.mutate({token:e,approvedByName:t}),i(!1))};if(c)return h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:30",className:"min-h-screen flex items-center justify-center",style:{background:"var(--background)"},children:h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:31",className:"flex items-center gap-3 text-muted-foreground",children:[h.jsx(Zs,{"data-loc":"client/src/pages/CustomerEstimate.tsx:32",className:"w-5 h-5 animate-spin",style:{color:"var(--orange)"}}),h.jsx("span",{"data-loc":"client/src/pages/CustomerEstimate.tsx:33",children:"Loading estimate..."})]})});if(d||!o)return h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:41",className:"min-h-screen flex items-center justify-center",style:{background:"var(--background)"},children:h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:42",className:"text-center",children:[h.jsx(qi,{"data-loc":"client/src/pages/CustomerEstimate.tsx:43",className:"w-12 h-12 mx-auto mb-4",style:{color:"var(--orange)"}}),h.jsx("h1",{"data-loc":"client/src/pages/CustomerEstimate.tsx:44",className:"text-2xl font-bold text-foreground mb-2",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"ESTIMATE NOT FOUND"}),h.jsx("p",{"data-loc":"client/src/pages/CustomerEstimate.tsx:47",className:"text-muted-foreground text-sm",children:d?.message??"This estimate link is invali
1123d or has expired."})]})});const{build:b,parts:g,shareToken:v}=o,E=b.specs??{},T=[b.year,b.make,b.model].filter(Boolean).join(" ")||"Custom Application",_=[b.engineFamily,b.displacement].filter(Boolean).join(" â "),A=g.reduce((H,q)=>H+Number(q.unitPrice??0)*(q.quantity??1),0),R=125,P=40,V=R*P,U=A+V,D=v.approved||r;return h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:69",className:"min-h-screen",style:{background:"var(--background)",color:"var(--foreground)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:71",className:"border-b border-border px-6 py-4 flex items-center justify-between",style:{background:"var(--card)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:75",className:"flex items-center gap-3",children:[h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:76",className:"w-8 h-8 rounded flex items-center justify-center text-white font-bold text-sm",style:{background:"var(--orange)",fontFamily:"'JetBrains Mono', monospace"},children:"EB"}),h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:82",children:[h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:83",className:"font-bold text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"ENGINEBUILDR"}),h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:86",className:"text-xs text-muted-foreground",children:"Customer Estimate"})]})]}),h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:89",className:"text-xs text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:new Date(b.createdAt).toLocaleDateString()})]}),h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:94",className:"max-w-3xl mx-auto px-6 py-10 space-y-8",children:[h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:96",className:"p-6 rounded-lg border border-border",style:{background:"var(--card)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:97",className:"flex items-start justify-between gap-4 mb-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:98",children:[h.jsx("h1",{"data-loc":"client/src/pages/CustomerEstimate.tsx:99",className:"text-3xl font-bold uppercase text-foreground mb-1",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:T}),_&&h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:106",className:"text-sm text-muted-foreground",children:_})]}),h.jsx("span",{"data-loc":"client/src/pages/CustomerEstimate.tsx:109",className:"text-xs font-mono px-3 py-1 rounded-full",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)",background:"oklch(0.6 0.2 50 / 0.12)",border:"1px solid var(--orange)"},children:b.buildGoal??"Custom Build"})]}),h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:123",className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[E.bore&&h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:125",children:[h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:126",className:"text-xs text-muted-foreground mb-0.5",children:"Bore"}),h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:127",className:"font-mono text-sm text-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:[E.bore,'"']})]}),E.stroke&&h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:133",children:[h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:134",className:"text-xs text-muted-foreground mb-0.5",children:"Stroke"}),h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:135",className:"font-mono text-sm text-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:[E.stroke,'"']})]}),E.compressionRatio&&h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:141",children:[h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:142",className:"text-xs text-muted-foreground mb-0.5",children:"Compression"}),h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:143",className:"font-mono text-sm text-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:[E.compressionRatio,":1"]})]}),E.targetHp&&h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:149",children:[h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:150",className:"text-xs text-muted-foreground mb-0.5",children:"Target Power"}),h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:151",className:"font-mono text-sm",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:[E.targetHp," hp"]})]})]})]}),g.length>0&&h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:161",children:[h.jsxs("h2",{"data-loc":"client/src/pages/CustomerEstimate.tsx:162",className:"text-xl font-bold uppercase text-foreground mb-4",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:[h.jsx("span",{"data-loc":"client/src/pages/CustomerEstimate.tsx:166",className:"inline-block w-1 h-5 mr-2 rounded-sm align-middle",style:{background:"var(--orange)"}}),"Parts & Materials"]}),h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:169",className:"rounded-lg border border-border overflow-hidden",style:{background:"var(--card)"},children:h.jsxs("table",{"data-loc":"client/src/pages/CustomerEstimate.tsx:170",className:"w-full text-sm",children:[h.jsx("thead",{"data-loc":"client/src/pages/CustomerEstimate.tsx:171",children:h.jsxs("tr",{"data-loc":"client/src/pages/CustomerEstimate.tsx:172",className:"border-b border-border",children:[h.jsx("th",{"data-loc":"client/src/pages/CustomerEstimate.tsx:173",className:"text-left px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider",children:"Part"}),h.jsx("th",{"data-loc":"client/src/pages/CustomerEstimate.tsx:174",className:"text-right px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider",children:"Qty"}),h.jsx("th",{"data-loc":"client/src/pages/CustomerEstimate.tsx:175",className:"text-right px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider",children:"Unit Price"}),h.jsx("th",{"data-loc":"client/src/pages/CustomerEstimate.tsx:176",className:"text-right px-4 py-3 text-xs text-muted-foreground uppercase tracking-wider",children:"Total"})]})}),h.jsx("tbody",{"data-loc":"client/src/pages/CustomerEstimate.tsx:179",children:g.map((H,q)=>h.jsxs("tr",{"data-loc":"client/src/pages/CustomerEstimate.tsx:181",className:q<g.length-1?"border-b border-border":"",children:[h.jsxs("td",{"data-loc":"client/src/pages/CustomerEstimate.tsx:182",className:"px-4 py-3",children:[h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:183",className:"font-medium text-foreground",children:H.name}),H.category&&h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:185",className:"text-xs text-muted-foreground",children:H.category})]}),h.jsx("td",{"data-loc":"client/src/pages/CustomerEstimate.tsx:188",className:"px-4 py-3 text-right text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:H.quantity}),h.jsxs("td",{"data-loc":"client/src/pages/CustomerEstimate.tsx:191",className:"px-4 py-3 text-right text-muted-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:["$",Number(H.unitPrice??0).toFixed(2)]}),h.jsxs("td",{"data-loc":"client/src/pages/CustomerEstimate.tsx:194",className:"px-4 py-3 text-right font-medium text-foreground",style:{fontFamily:"'JetBrains Mono', monospace"},children:["$",(Number(H.unitPrice??0)*(H.quantity??1)).toFixed(2)]})]},H.id))})]})})]}),h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:206",className:"p-6 rounded-lg border border-border",style:{background:"var(--card)"},children:[h.jsxs("h2",{"data-loc":"client/src/pages/CustomerEstimate.tsx:207",className:"text-xl font-bold uppercase text-foreground mb-4",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:[h.jsx("span",{"data-loc":"client/src/pages/CustomerEstimate.tsx:211",className:"inline-block w-1 h-5 mr-2 rounded-sm align-middle",style:{background:"var(--orange)"}}),"Estimate Summary"]}),h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:214",className:"space-y-2",children:[h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:215",className:"flex justify-between text-sm",children:[h.jsx("span",{"data-loc":"client/src/pages/CustomerEstimate.tsx:216",className:"text-muted-foreground",children:"Parts & Materials"}),h.jsxs("span",{"data-loc":"client/src/pages/CustomerEstimate.tsx:217",style:{fontFamily:"'JetBrains Mono', monospace"},children:["$",A.toFixed(2)]})]}),h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:219",className:"flex justify-between text-sm",children:[h.jsxs("span",{"data-loc":"client/src/pages/CustomerEstimate.tsx:220",className:"text-muted-foreground",children:["Labor (",P," hrs @ $",R,"/hr)"]}),h.jsxs("span",{"data-loc":"client/src/pages/CustomerEstimate.tsx:221",style:{fontFamily:"'JetBrains Mono', monospace"},children:["$",V.toFixed(2)]})]}),h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:223",className:"border-t border-border my-3"}),h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:224",className:"flex justify-between text-lg font-bold",children:[h.jsx("span",{"data-loc":"client/src/pages/CustomerEstimate.tsx:225",className:"text-foreground",children:"Total Estimate"}),h.jsxs("span",{"data-loc":"client/src/pages/CustomerEstimate.tsx:226",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:["$",U.toFixed(2)]})]})]}),h.jsx("p",{"data-loc":"client/src/pages/CustomerEstimate.tsx:231",className:"text-xs text-muted-foreground mt-4",children:"* This estimate is valid for 30 days. Final pricing may vary based on additional findings during disassembly."})]}),h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:237",className:"p-6 rounded-lg border border-border",style:{background:"var(--card)"},children:D?h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:239",className:"flex items-center gap-4",children:[h.jsx(La,{"data-loc":"client/src/pages/CustomerEstimate.tsx:240",className:"w-10 h-10 flex-shrink-0",style:{color:"oklch(0.7 0.18 140)"}}),h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:241",children:[h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:242",className:"text-xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Estimate Approved"}),h.jsx("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:248",className:"text-sm text-muted-foreground",children:v.approvedByName?`Approved by ${v.approvedByName}`:"Your approval has been recorded. We'll be in touch shortly."})]})]}):h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:256",children:[h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:257",className:"flex items-center gap-2 mb-4",children:[h.jsx(CK,{"data-loc":"client/src/pages/CustomerEstimate.tsx:258",className:"w-5 h-5",style:{color:"var(--orange)"}}),h.jsx("h2",{"data-loc":"client/src/pages/CustomerEstimate.tsx:259",className:"text-xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Approve This Estimate"})]}),h.jsx("p",{"data-loc":"client/src/pages/CustomerEstimate.tsx:266",className:"text-sm text-muted-foreground mb-4",children:"By approving, you authorize the work described above to proceed at the estimated cost."}),h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:269",className:"flex gap-3",children:[h.jsx("input",{"data-loc":"client/src/pages/CustomerEstimate.tsx:270",type:"text",placeholder:"Your full name",value:t,onChange:H=>n(H.target.value),className:"flex-1 px-3 py-2.5 rounded-md border border-border bg-input text-foreground text-sm placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"}),h.jsxs("button",{"data-loc":"client/src/pages/CustomerEstimate.tsx:277",onClick:m,disabled:!t.trim()||s||f.isPending,className:"flex items-center gap-2 px-5 py-2.5 rounded-md font-medium text-sm transition-all active:scale-95 disabled:opacity-60 disabled:cursor-not-allowed",style:{background:"var(--orange)",color:"white"},children:[f.isPending?h.jsx(Zs,{"data-loc":"client/src/pages/CustomerEstimate.tsx:284",className:"w-4 h-4 animate-spin"}):h.jsx(La,{"data-loc":"client/src/pages/CustomerEstimate.tsx:286",className:"w-4 h-4"}),"Approve"]})]})]})}),h.jsxs("div",{"data-loc":"client/src/pages/CustomerEstimate.tsx:296",className:"text-center text-xs text-muted-foreground pb-8",children:["Powered by ",h.jsx("span",{"data-loc":"client/src/pages/CustomerEstimate.tsx:297",className:"font-bold",style:{color:"var(--orange)"},children:"EngineBuildr"})," â Professional Engine Build Management"]})]})]})}const Im={name:"",address:"",city:"",state:"",zip:"",phone:"",email:""},W0="w-full px-3 py-2.5 rounded-md border border-border bg-input text-foreground text-sm placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring transition-all";function Yxe(){const{user:e}=F5(),[t,n]=G.useState(!1),[r,a]=G.useState(null),[s,i]=G.useState(Im),[o,c]=G.useState(null),d=Tr.useUtils(),{data:f,isLoading:m}=Tr.locations.list.useQuery(),b=Tr.locations.create.useMutation({onSuccess:()=>
1123{d.locations.list.invalidate(),n(!1),i(Im),br.success("Location created successfully")},onError:R=>br.error(R.message)}),g=Tr.locations.update.useMutation({onSuccess:()=>{d.locations.list.invalidate(),a(null),i(Im),br.success("Location updated")},onError:R=>br.error(R.message)}),v=Tr.locations.delete.useMutation({onSuccess:()=>{d.locations.list.invalidate(),c(null),br.success("Location removed")},onError:R=>br.error(R.message)}),E=e?.plan==="enterprise"||e?.plan==="admin_bypass",T=()=>{if(!s.name.trim()){br.error("Location name is required");return}r!==null?g.mutate({id:r,...s}):b.mutate(s)},_=R=>{a(R.id),i({name:R.name??"",address:R.address??"",city:R.city??"",state:R.state??"",zip:R.zip??"",phone:R.phone??"",email:R.email??""}),n(!0)},A=()=>{n(!1),a(null),i(Im)};return h.jsx(kp,{"data-loc":"client/src/pages/Locations.tsx:104",title:"Locations",breadcrumbs:[{label:"Dashboard",href:"/dashboard"},{label:"Locations"}],children:h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:105",className:"px-6 py-6 max-w-4xl",children:[h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:107",className:"flex items-center justify-between mb-6",children:[h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:108",children:[h.jsx("h1",{"data-loc":"client/src/pages/Locations.tsx:109",className:"text-3xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Shop Locations"}),h.jsx("p",{"data-loc":"client/src/pages/Locations.tsx:115",className:"text-sm text-muted-foreground mt-1",children:"Manage multiple shop locations under your Enterprise account."})]}),E&&h.jsxs("button",{"data-loc":"client/src/pages/Locations.tsx:120",onClick:()=>{n(!0),a(null),i(Im)},className:"flex items-center gap-2 px-4 py-2.5 rounded-md font-medium text-sm transition-all active:scale-95",style:{background:"var(--orange)",color:"white"},children:[h.jsx(Ox,{"data-loc":"client/src/pages/Locations.tsx:125",className:"w-4 h-4"}),"Add Location"]})]}),!E&&h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:133",className:"p-6 rounded-lg border border-border mb-6 flex items-start gap-4",style:{background:"var(--card)"},children:[h.jsx(qi,{"data-loc":"client/src/pages/Locations.tsx:137",className:"w-6 h-6 flex-shrink-0 mt-0.5",style:{color:"var(--orange)"}}),h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:138",children:[h.jsx("div",{"data-loc":"client/src/pages/Locations.tsx:139",className:"font-bold text-foreground mb-1",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"ENTERPRISE FEATURE"}),h.jsx("p",{"data-loc":"client/src/pages/Locations.tsx:145",className:"text-sm text-muted-foreground",children:"Multi-location management is available on the Enterprise plan ($299/mo). Upgrade to manage multiple shop locations, assign builds per location, and generate consolidated reports."}),h.jsx("a",{"data-loc":"client/src/pages/Locations.tsx:148",href:"/pricing",className:"inline-block mt-3 text-sm font-medium",style:{color:"var(--orange)"},children:"View Plans â"})]})]}),h.jsx(Ba,{"data-loc":"client/src/pages/Locations.tsx:160",children:t&&E&&h.jsxs(Je.div,{"data-loc":"client/src/pages/Locations.tsx:162",initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.2},className:"p-6 rounded-lg border border-border mb-6",style:{background:"var(--card)",borderColor:"var(--orange)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:170",className:"flex items-center justify-between mb-5",children:[h.jsx("h2",{"data-loc":"client/src/pages/Locations.tsx:171",className:"text-xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:r?"Edit Location":"New Location"}),h.jsx("button",{"data-loc":"client/src/pages/Locations.tsx:177",onClick:A,className:"text-muted-foreground hover:text-foreground",children:h.jsx(Sp,{"data-loc":"client/src/pages/Locations.tsx:178",className:"w-5 h-5"})})]}),h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:182",className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:183",className:"sm:col-span-2",children:[h.jsx("label",{"data-loc":"client/src/pages/Locations.tsx:184",className:"block text-xs text-muted-foreground uppercase tracking-wider mb-1.5",children:"Location Name *"}),h.jsx("input",{"data-loc":"client/src/pages/Locations.tsx:187",type:"text",placeholder:"e.g. Detroit Main Shop",value:s.name,onChange:R=>i(P=>({...P,name:R.target.value})),className:W0})]}),h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:195",className:"sm:col-span-2",children:[h.jsx("label",{"data-loc":"client/src/pages/Locations.tsx:196",className:"block text-xs text-muted-foreground uppercase tracking-wider mb-1.5",children:"Street Address"}),h.jsx("input",{"data-loc":"client/src/pages/Locations.tsx:199",type:"text",placeholder:"123 Engine Ave",value:s.address,onChange:R=>i(P=>({...P,address:R.target.value})),className:W0})]}),h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:207",children:[h.jsx("label",{"data-loc":"client/src/pages/Locations.tsx:208",className:"block text-xs text-muted-foreground uppercase tracking-wider mb-1.5",children:"City"}),h.jsx("input",{"data-loc":"client/src/pages/Locations.tsx:209",type:"text",placeholder:"Detroit",value:s.city,onChange:R=>i(P=>({...P,city:R.target.value})),className:W0})]}),h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:217",className:"grid grid-cols-2 gap-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:218",children:[h.jsx("label",{"data-loc":"client/src/pages/Locations.tsx:219",className:"block text-xs text-muted-foreground uppercase tracking-wider mb-1.5",children:"State"}),h.jsx("input",{"data-loc":"client/src/pages/Locations.tsx:220",type:"text",placeholder:"MI",value:s.state,onChange:R=>i(P=>({...P,state:R.target.value})),className:W0})]}),h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:228",children:[h.jsx("label",{"data-loc":"client/src/pages/Locations.tsx:229",className:"block text-xs text-muted-foreground uppercase tracking-wider mb-1.5",children:"ZIP"}),h.jsx("input",{"data-loc":"client/src/pages/Locations.tsx:230",type:"text",placeholder:"48201",value:s.zip,onChange:R=>i(P=>({...P,zip:R.target.value})),className:W0})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:239",children:[h.jsx("label",{"data-loc":"client/src/pages/Locations.tsx:240",className:"block text-xs text-muted-foreground uppercase tracking-wider mb-1.5",children:"Phone"}),h.jsx("input",{"data-loc":"client/src/pages/Locations.tsx:241",type:"tel",placeholder:"(313) 555-0100",value:s.phone,onChange:R=>i(P=>({...P,phone:R.target.value})),className:W0})]}),h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:249",children:[h.jsx("label",{"data-loc":"client/src/pages/Locations.tsx:250",className:"block text-xs text-muted-foreground uppercase tracking-wider mb-1.5",children:"Email"}),h.jsx("input",{"data-loc":"client/src/pages/Locations.tsx:251",type:"email",placeholder:"[email protected]",value:s.email,onChange:R=>i(P=>({...P,email:R.target.value})),className:W0})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:261",className:"flex items-center gap-3 justify-end",children:[h.jsx("button",{"data-loc":"client/src/pages/Locations.tsx:262",onClick:A,className:"px-4 py-2 rounded-md text-sm text-muted-foreground border border-border hover:bg-secondary transition-all",children:"Cancel"}),h.jsxs("button",{"data-loc":"client/src/pages/Locations.tsx:268",onClick:T,disabled:b.isPending||g.isPending,className:"flex items-center gap-2 px-5 py-2 rounded-md font-medium text-sm transition-all active:scale-95 disabled:opacity-60",style:{background:"var(--orange)",color:"white"},children:[b.isPending||g.isPending?h.jsx(Zs,{"data-loc":"client/src/pages/Locations.tsx:275",className:"w-4 h-4 animate-spin"}):h.jsx(La,{"data-loc":"client/src/pages/Locations.tsx:277",className:"w-4 h-4"}),r?"Save Changes":"Create Location"]})]})]})}),m?h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:288",className:"flex items-center gap-3 text-muted-foreground py-12 justify-center",children:[h.jsx(Zs,{"data-loc":"client/src/pages/Locations.tsx:289",className:"w-5 h-5 animate-spin",style:{color:"var(--orange)"}}),h.jsx("span",{"data-loc":"client/src/pages/Locations.tsx:290",children:"Loading locations..."})]}):!f||f.length===0?h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:293",className:"p-12 rounded-lg border border-dashed border-border text-center",style:{background:"var(--card)"},children:[h.jsx(Mx,{"data-loc":"client/src/pages/Locations.tsx:297",className:"w-12 h-12 mx-auto mb-4 text-muted-foreground"}),h.jsx("div",{"data-loc":"client/src/pages/Locations.tsx:298",className:"text-xl font-bold uppercase text-foreground mb-2",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"No Locations Yet"}),h.jsx("p",{"data-loc":"client/src/pages/Locations.tsx:304",className:"text-sm text-muted-foreground mb-4",children:"Add your first shop location to start organizing builds by site."}),E&&h.jsxs("button",{"data-loc":"client/src/pages/Locations.tsx:308",onClick:()=>n(!0),className:"flex items-center gap-2 px-4 py-2.5 rounded-md font-medium text-sm mx-auto transition-all active:scale-95",style:{background:"var(--orange)",color:"white"},children:[h.jsx(Ox,{"data-loc":"client/src/pages/Locations.tsx:313",className:"w-4 h-4"}),"Add First Location"]})]}):h.jsx("div",{"data-loc":"client/src/pages/Locations.tsx:319",className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:f.map((R,P)=>h.jsxs(Je.div,{"data-loc":"client/src/pages/Locations.tsx:321",initial:{opacity:0,y:12}
1123,animate:{opacity:1,y:0},transition:{delay:P*.05},className:"p-5 rounded-lg border border-border",style:{background:"var(--card)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:329",className:"flex items-start justify-between gap-3 mb-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:330",className:"flex items-center gap-2",children:[h.jsx("div",{"data-loc":"client/src/pages/Locations.tsx:331",className:"w-8 h-8 rounded flex items-center justify-center",style:{background:"oklch(0.6 0.2 50 / 0.15)"},children:h.jsx(Mx,{"data-loc":"client/src/pages/Locations.tsx:335",className:"w-4 h-4",style:{color:"var(--orange)"}})}),h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:337",children:[h.jsx("div",{"data-loc":"client/src/pages/Locations.tsx:338",className:"font-bold text-foreground text-sm",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:R.name}),(R.city||R.state)&&h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:345",className:"text-xs text-muted-foreground flex items-center gap-1",children:[h.jsx(T3,{"data-loc":"client/src/pages/Locations.tsx:346",className:"w-3 h-3"}),[R.city,R.state].filter(Boolean).join(", ")]})]})]}),E&&h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:353",className:"flex items-center gap-1",children:[h.jsx("button",{"data-loc":"client/src/pages/Locations.tsx:354",onClick:()=>_(R),className:"p-1.5 rounded text-muted-foreground hover:text-foreground hover:bg-secondary transition-all",children:h.jsx(C3,{"data-loc":"client/src/pages/Locations.tsx:358",className:"w-3.5 h-3.5"})}),h.jsx("button",{"data-loc":"client/src/pages/Locations.tsx:360",onClick:()=>c(R.id),className:"p-1.5 rounded text-muted-foreground hover:text-red-400 hover:bg-red-500/10 transition-all",children:h.jsx(zw,{"data-loc":"client/src/pages/Locations.tsx:364",className:"w-3.5 h-3.5"})})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:370",className:"space-y-1.5",children:[R.address&&h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:372",className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[h.jsx(T3,{"data-loc":"client/src/pages/Locations.tsx:373",className:"w-3 h-3 flex-shrink-0"}),[R.address,R.city,R.state,R.zip].filter(Boolean).join(", ")]}),R.phone&&h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:378",className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[h.jsx(zK,{"data-loc":"client/src/pages/Locations.tsx:379",className:"w-3 h-3 flex-shrink-0"}),R.phone]}),R.email&&h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:384",className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[h.jsx(BK,{"data-loc":"client/src/pages/Locations.tsx:385",className:"w-3 h-3 flex-shrink-0"}),R.email]})]}),h.jsx(Ba,{"data-loc":"client/src/pages/Locations.tsx:392",children:o===R.id&&h.jsxs(Je.div,{"data-loc":"client/src/pages/Locations.tsx:394",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mt-3 pt-3 border-t border-border",children:[h.jsxs("p",{"data-loc":"client/src/pages/Locations.tsx:400",className:"text-xs text-muted-foreground mb-2",children:["Remove ",h.jsx("strong",{"data-loc":"client/src/pages/Locations.tsx:401",children:R.name}),"? This cannot be undone."]}),h.jsxs("div",{"data-loc":"client/src/pages/Locations.tsx:403",className:"flex gap-2",children:[h.jsx("button",{"data-loc":"client/src/pages/Locations.tsx:404",onClick:()=>c(null),className:"flex-1 py-1.5 rounded text-xs border border-border text-muted-foreground hover:bg-secondary transition-all",children:"Cancel"}),h.jsx("button",{"data-loc":"client/src/pages/Locations.tsx:410",onClick:()=>v.mutate({id:R.id}),disabled:v.isPending,className:"flex-1 py-1.5 rounded text-xs font-medium transition-all disabled:opacity-60",style:{background:"oklch(0.55 0.22 25)",color:"white"},children:v.isPending?"Removing...":"Remove"})]})]})})]},R.id))})]})})}const Qxe=["LS / LT (GM)","Small Block Chevy","Big Block Chevy","Ford 5.0 Coyote","Ford Small Block","Ford Big Block","Mopar 318/360","Mopar 440","Honda K-Series","Toyota 2JZ"],Xxe={"Rotating Assembly":"oklch(0.65 0.18 50)",Valvetrain:"oklch(0.65 0.18 140)","Fuel System":"oklch(0.65 0.18 220)",Ignition:"oklch(0.65 0.18 280)",Cooling:"oklch(0.65 0.18 200)",Oiling:"oklch(0.65 0.18 30)","Gaskets & Seals":"oklch(0.65 0.18 170)",Fasteners:"oklch(0.65 0.18 60)"};function Y2(e){return Xxe[e]??"var(--orange)"}function Kxe({part:e,onClose:t}){const[n,r]=G.useState(null),a=Tr.builds.list.useQuery(),s=Tr.useUtils(),i=Tr.builds.parts.upsert.useMutation({onSuccess:()=>{br.success(`"${e.name}
1123" added to build`),s.builds.parts.list.invalidate(),t()},onError:c=>br.error(c.message)}),o=()=>{if(!n){br.error("Select a build first");return}i.mutate({buildId:n,name:e.name,partNumber:e.partNumber||void 0,category:e.category||void 0,description:e.description||void 0,quantity:1,unitPrice:e.estimatedPrice>0?e.estimatedPrice.toFixed(2):void 0,sourceName:e.source||void 0,compatibilityNotes:e.compatibility||void 0})};return h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:97",className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:99",className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:t}),h.jsxs(Je.div,{"data-loc":"client/src/pages/PartsCatalog.tsx:104",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.18,ease:[.23,1,.32,1]},className:"relative w-full max-w-md rounded-xl border border-border shadow-2xl z-10",style:{background:"var(--card)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:113",className:"flex items-center justify-between px-5 py-4 border-b border-border",children:[h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:114",children:[h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:115",className:"text-base font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Add to Build"}),h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:121",className:"text-xs text-muted-foreground truncate max-w-xs mt-0.5",children:e.name})]}),h.jsx("button",{"data-loc":"client/src/pages/PartsCatalog.tsx:123",onClick:t,className:"p-1.5 rounded hover:bg-secondary/50 transition-colors text-muted-foreground hover:text-foreground",children:h.jsx(Sp,{"data-loc":"client/src/pages/PartsCatalog.tsx:127",className:"w-4 h-4"})})]}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:132",className:"mx-5 mt-4 p-3 rounded-lg flex items-center gap-3",style:{background:"oklch(0.6 0.2 50 / 0.08)",border:"1px solid oklch(0.6 0.2 50 / 0.2)"},children:[h.jsx(lh,{"data-loc":"client/src/pages/PartsCatalog.tsx:136",className:"w-5 h-5 flex-shrink-0",style:{color:"var(--orange)"}}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:137",className:"min-w-0",children:[h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:138",className:"text-sm font-medium text-foreground truncate",children:e.name}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:139",className:"text-xs text-muted-foreground flex gap-2",children:[h.jsx("span",{"data-loc":"client/src/pages/PartsCatalog.tsx:140",children:e.brand}),e.estimatedPrice>0&&h.jsxs("span",{"data-loc":"client/src/pages/PartsCatalog.tsx:142",style:{color:"var(--orange)"},children:["~$",e.estimatedPrice.toFixed(0)]})]})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:149",className:"px-5 py-4",children:[h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:150",className:"text-xs font-mono text-muted-foreground uppercase tracking-wider mb-3",children:"Select Build"}),a.isLoading?h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:155",className:"flex items-center gap-2 text-sm text-muted-foreground py-4",children:[h.jsx(Zs,{"data-loc":"client/src/pages/PartsCatalog.tsx:156",className:"w-4 h-4 animate-spin"}),"Loading builds..."]}):a.data?.length?h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:164",className:"space-y-2 max-h-52 overflow-y-auto",children:a.data.map(c=>{const d=n===c.id;return h.jsxs("button",{"data-loc":"client/src/pages/PartsCatalog.tsx:168",onClick:()=>r(c.id),className:"w-full text-left px-3 py-2.5 rounded-lg border transition-all flex items-center gap-3",style:d?{borderColor:"var(--orange)",background:"oklch(0.6 0.2 50 / 0.08)"}:{borderColor:"var(--border)",background:"transparent"},children:[h.jsx(ei,{"data-loc":"client/src/pages/PartsCatalog.tsx:178",className:"w-4 h-4 flex-shrink-0",style:{color:d?"var(--orange)":"var(--muted-foreground)"}}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:182",className:"min-w-0 flex-1",children:[h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:183",className:"text-sm font-medium text-foreground truncate",children:[c.year," ",c.make," ",c.model]}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:186",className:"text-xs text-muted-foreground truncate",children:[c.engineFamily??"Engine"," · ",c.stage]})]}),d&&h.jsx(Rx,{"data-loc":"client/src/pages/PartsCatalog.tsx:190",className:"w-4 h-4 flex-shrink-0",style:{color:"var(--orange)"}})]},c.id)})}):h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:160",className:"text-sm text-muted-foreground py-4 text-center",children:"No active builds found. Start a new build first."})]}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:199",className:"px-5 pb-5 flex gap-3",children:[h.jsx("button",{"data-loc":"client/src/pages/PartsCatalog.tsx:200",onClick:t,className:"flex-1 px-4 py-2.5 rounded-md border border-border text-sm text-muted-foreground hover:text-foreground transition-all",children:"Cancel"}),h.jsxs("button",{"data-loc":"client/src/pages/PartsCatalog.tsx:206",onClick:o,disabled:!n||i.isPending,className:"flex-1 flex items-center justify-center gap-2 px-4 py-2.5 rounded-md text-sm font-medium transition-all active:scale-95 disabled:opacity-50",style:{background:"var(--orange)",color:"white"},children:[i.isPending?h.jsx(Zs,{"data-loc":"client/src/pages/PartsCatalog.tsx:213",className:"w-4 h-4 animate-spin"}):h.jsx(oh,{"data-loc":"client/src/pages/PartsCatalog.tsx:215",className:"w-4 h-4"}),"Add to Build"]})]})]})]})}function Jxe(){const[e,t]=G.useState(""),[n,r]=G.useState("LS / LT (GM)"),[a,s]=G.useState(null),[i,o]=G.useState([]),[c,d]=G.useState(""),[f,m]=G.useState(!1),[b,g]=G.useState(null),v=Tr.parts.popular.useQuery({engineFamily:n,buildGoal:"street/strip performance"},{staleTime:300*1e3,retry:1});G.useEffect(()=>{!f&&v.data?.parts?.length&&(o(v.data.parts),d(`Popular parts for ${n}`),s(null))},[v.data,f,n]);const E=P=>{r(P),m(!1),o([]),s(null)},T=Tr.parts.search.useMutation({onSuccess:P=>{o(P.parts??[]),d(`Results for "${e}"`),m(!0),s(null)},onError:P=>{br.error(P.message),m(!0)}}),_=()=>{if(!e.trim()){br.error("Enter a part name or description");return}T.mutate({query:e,engineFamily:n||void 0})},A=T.isPending||!f&&v.isLoading;return h.jsxs(kp,{"data-loc":"client/src/pages/PartsCatalog.tsx:282",title:"Parts Catalog",breadcrumbs:[{label:"Dashboard",href:"/dashboard"},{label:"Parts Catalog"}],children:[h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:283",className:"px-4 sm:px-6 py-6 max-w-4xl",children:[h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:286",className:"mb-6",children:[h.jsx("h1",{"data-loc":"client/src/pages/PartsCatalog.tsx:287",className:"text-3xl font-bold uppercase text-foreground",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Parts Catalog"}),h.jsx("p",{"data-loc":"client/src/pages/PartsCatalog.tsx:293",className:"text-sm text-muted-foreground mt-1",children:"AI-powered parts search with compatibility checks and estimated pricing from Summit Racing, JEGS, and more."})]}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:299",className:"mb-4",children:[h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:300",className:"text-xs font-mono text-muted-foreground mb-2 uppercase tracking-wider",children:"Engine Family"}),h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:301",className:"flex flex-wrap gap-2",children:Qxe.map(P=>h.jsx("button",{"data-loc":"client/src/pages/PartsCatalog.tsx:303",onClick:()=>E(P),className:"text-xs px-3 py-1.5 rounded-full border transition-all",style:n===P?{background:"var(--orange)",borderColor:"var(--orange)",color:"white",fontWeight:600}:{borderColor:"var(--border)",color:"var(--muted-foreground)"},children:P},P))})]}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:320",className:"p-5 rounded-lg border border-border mb-6",style:{background:"var(--card)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:324",className:"flex flex-col sm:flex-row gap-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:325",className:"flex-1 relative",children:[h.jsx(Px,{"data-loc":"client/src/pages/PartsCatalog.tsx:326",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),h.jsx("input",{"data-loc":"client/src/pages/PartsCatalog.tsx:327",type:"text",placeholder:"e.g. forged pistons 427 LS, Eagle H-beam rods, ARP main studs...",value:e,onCh
1123ange:P=>t(P.target.value),onKeyDown:P=>P.key==="Enter"&&_(),className:"px-3 py-2.5 rounded-md border border-border bg-input text-foreground text-sm placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring transition-all w-full pl-9"})]}),h.jsxs("button",{"data-loc":"client/src/pages/PartsCatalog.tsx:336",onClick:_,disabled:T.isPending,className:"flex items-center gap-2 px-5 py-2.5 rounded-md font-medium text-sm transition-all active:scale-95 disabled:opacity-60 whitespace-nowrap",style:{background:"var(--orange)",color:"white"},children:[T.isPending?h.jsx(Zs,{"data-loc":"client/src/pages/PartsCatalog.tsx:343",className:"w-4 h-4 animate-spin"}):h.jsx(Px,{"data-loc":"client/src/pages/PartsCatalog.tsx:345",className:"w-4 h-4"}),"Search Parts"]})]}),h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:352",className:"flex flex-wrap gap-2 mt-3",children:["forged pistons","H-beam connecting rods","ARP head studs","performance camshaft","cylinder heads","intake manifold"].map(P=>h.jsx("button",{"data-loc":"client/src/pages/PartsCatalog.tsx:361",onClick:()=>t(P),className:"text-xs px-2.5 py-1 rounded-full border border-border text-muted-foreground hover:border-orange-500 hover:text-foreground transition-all",children:P},P))})]}),A&&h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:374",className:"flex flex-col items-center justify-center py-16 gap-4",children:[h.jsx(Zs,{"data-loc":"client/src/pages/PartsCatalog.tsx:375",className:"w-10 h-10 animate-spin",style:{color:"var(--orange)"}}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:376",className:"text-center",children:[h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:377",className:"text-lg font-bold uppercase text-foreground mb-1",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:T.isPending?"Searching Parts Catalog":`Loading ${n} Parts`}),h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:383",className:"text-sm text-muted-foreground",children:"Checking Summit Racing, JEGS, Rockauto, and more..."})]})]}),!f&&!v.isLoading&&v.isError&&i.length===0&&h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:392",className:"p-10 rounded-lg border border-dashed border-border text-center",style:{background:"var(--card)"},children:[h.jsx(lh,{"data-loc":"client/src/pages/PartsCatalog.tsx:396",className:"w-10 h-10 mx-auto mb-3 text-muted-foreground"}),h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:397",className:"text-lg font-bold uppercase text-foreground mb-1",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Could Not Load Popular Parts"}),h.jsx("p",{"data-loc":"client/src/pages/PartsCatalog.tsx:403",className:"text-sm text-muted-foreground mb-4",children:"Use the search bar above to find specific parts, or try selecting a different engine family."}),h.jsx("button",{"data-loc":"client/src/pages/PartsCatalog.tsx:406",onClick:()=>v.refetch(),className:"text-xs px-4 py-2 rounded border border-border text-muted-foreground hover:text-foreground hover:border-orange-500 transition-all",children:"Retry"})]}),f&&!T.isPending&&i.length===0&&h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:417",className:"p-12 rounded-lg border border-dashed border-border text-center",style:{background:"var(--card)"},children:[h.jsx(lh,{"data-loc":"client/src/pages/PartsCatalog.tsx:421",className:"w-12 h-12 mx-auto mb-4 text-muted-foreground"}),h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:422",className:"text-xl font-bold uppercase text-foreground mb-2",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"No Parts Found"}),h.jsx("p",{"data-loc":"client/src/pages/PartsCatalog.tsx:428",className:"text-sm text-muted-foreground",children:'Try a more specific search or include the engine family (e.g. "LS", "SBC", "Ford 302").'})]}),!A&&i.length>0&&h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:436",children:[h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:437",className:"flex items-center justify-between mb-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:438",className:"text-xl font-bold uppercase text-foreground flex items-center gap-2",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:[h.jsx("span",{"data-loc":"client/src/pages/PartsCatalog.tsx:442",className:"inline-block w-1 h-5 rounded-sm",style:{background:"var(--orange)"}}),c]}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:445",className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[h.jsx(qu,{"data-loc":"client/src/pages/PartsCatalog.tsx:446",className:"w-3 h-3",style:{color:"var(--orange)"}}),"AI-estimated prices"]})]}),h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:451",className:"space-y-3",children:h.jsx(Ba,{"data-loc":"client/src/pages/PartsCatalog.tsx:452",children:i.map((P,V)=>h.jsxs(Je.div,{"data-loc":"client/src/pages/PartsCatalog.tsx:454",initial:{opacity:0,y:8}
1123,animate:{opacity:1,y:0},transition:{delay:V*.04},className:"rounded-lg border border-border overflow-hidden",style:{background:"var(--card)"},children:[h.jsxs("button",{"data-loc":"client/src/pages/PartsCatalog.tsx:463",className:"w-full text-left px-5 py-4 flex items-center justify-between gap-4 hover:bg-secondary/30 transition-colors",onClick:()=>s(a===V?null:V),children:[h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:467",className:"flex items-center gap-3 min-w-0",children:[h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:468",className:"w-9 h-9 rounded flex-shrink-0 flex items-center justify-center",style:{background:`${Y2(P.category)}1a`},children:h.jsx(lh,{"data-loc":"client/src/pages/PartsCatalog.tsx:472",className:"w-4 h-4",style:{color:Y2(P.category)}})}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:474",className:"min-w-0",children:[h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:475",className:"font-medium text-foreground text-sm truncate",children:P.name}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:476",className:"text-xs text-muted-foreground flex items-center gap-2 flex-wrap",children:[h.jsx("span",{"data-loc":"client/src/pages/PartsCatalog.tsx:477",children:P.brand}),P.partNumber&&h.jsxs(h.Fragment,{children:[h.jsx("span",{"data-loc":"client/src/pages/PartsCatalog.tsx:480",children:"·"}),h.jsx("span",{"data-loc":"client/src/pages/PartsCatalog.tsx:481",style:{fontFamily:"'JetBrains Mono', monospace"},children:P.partNumber})]}),P.category&&h.jsxs(h.Fragment,{children:[h.jsx("span",{"data-loc":"client/src/pages/PartsCatalog.tsx:486",children:"·"}),h.jsx("span",{"data-loc":"client/src/pages/PartsCatalog.tsx:487",className:"px-1.5 py-0.5 rounded text-xs",style:{background:`${Y2(P.category)}1a`,color:Y2(P.category)},children:P.category})]})]})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:501",className:"flex items-center gap-3 flex-shrink-0",children:[h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:502",className:"text-right",children:[h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:503",className:"font-bold text-sm",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)"},children:P.estimatedPrice>0?`~$${P.estimatedPrice.toFixed(0)}`:"Call"}),h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:509",className:"text-xs text-muted-foreground",children:P.source})]}),h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:511",className:"text-xs px-2 py-0.5 rounded-full hidden sm:block",style:{background:P.inStock?"oklch(0.7 0.18 140 / 0.15)":"oklch(0.6 0.2 50 / 0.12)",color:P.inStock?"oklch(0.7 0.18 140)":"var(--orange)"},children:P.inStock?"In Stock":"Check"}),a===V?h.jsx(Iw,{"data-loc":"client/src/pages/PartsCatalog.tsx:523",className:"w-4 h-4 text-muted-foreground"}):h.jsx(wp,{"data-loc":"client/src/pages/PartsCatalog.tsx:525",className:"w-4 h-4 text-muted-foreground"})]})]}),h.jsx(Ba,{"data-loc":"client/src/pages/PartsCatalog.tsx:531",children:a===V&&h.jsx(Je.div,{"data-loc":"client/src/pages/PartsCatalog.tsx:533",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"border-t border-border",children:h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:540",className:"px-5 py-4 space-y-4",children:[P.description&&h.jsx("p",{"data-loc":"client/src/pages/PartsCatalog.tsx:543",className:"text-sm text-muted-foreground leading-relaxed",children:P.description}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:547",className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:548",children:[h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:549",className:"text-xs text-muted-foreground mb-0.5",children:"Price Range"}),h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:550",className:"text-sm text-foreground font-mono",children:P.priceRange})]}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:552",children:[h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:553",className:"text-xs text-muted-foreground mb-0.5",children:"Retailer"}),h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:554",className:"text-sm text-foreground",children:P.source})]}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:556",children:[h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:557",className:"text-xs text-muted-foreground mb-0.5",children:"Compatibility"}),h.jsx("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:558",className:"text-sm text-foreground",children:P.compatibility||n})]})]}),P.notes&&h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:564",className:"flex items-start gap-2 p-3 rounded-md text-sm",style:{background:"oklch(0.6 0.2 50 / 0.08)",border:"1px solid oklch(0.6 0.2 50 / 0.2)"},children:[h.jsx(qi,{"data-loc":"client/src/pages/PartsCatalog.tsx:568",className:"w-4 h-4 flex-shrink-0 mt-0.5",style:{color:"var(--orange)"}}),h.jsx("span",{"data-loc":"client/src/pages/PartsCatalog.tsx:569",className:"text-muted-foreground",children:P.notes})]}),h.jsxs("div",{"data-loc":"client/src/pages/PartsCatalog.tsx:574",className:"flex flex-wrap items-center gap-2 pt-1",children:[h.jsxs("button",{"data-loc":"client/src/pages/PartsCatalog.tsx:576",onClick:U=>{U.stopPropagation(),g(P)},className:"flex items-center gap-1.5 text-xs px-3 py-1.5 rounded font-medium transition-all active:scale-95",style:{background:"var(--orange)",color:"white"},children:[h.jsx(oh,{"data-loc":"client/src/pages/PartsCatalog.tsx:584",className:"w-3 h-3"}),"Add to Build"]}),h.jsxs("a",{"data-loc":"client/src/pages/PartsCatalog.tsx:589",href:`https://www.summitracing.com/search?keyword=${encodeURIComponent(P.name+" "+P.brand)}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-xs px-3 py-1.5 rounded border border-border text-muted-foreground hover:text-foreground hover:border-orange-500 transition-all",children:[h.jsx(ix,{"data-loc":"client/src/pages/PartsCatalog.tsx:595",className:"w-3 h-3"}),"Summit Racing"]}),h.jsxs("a",{"data-loc":"client/src/pages/PartsCatalog.tsx:598",href:`https://www.jegs.com/i/search?query=${encodeURIComponent(P.name+" "+P.brand)}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-xs px-3 py-1.5 rounded border border-border text-muted-foreground hover:text-foreground hover:border-orange-500 transition-all",children:[h.jsx(ix,{"data-loc":"client/src/pages/PartsCatalog.tsx:604",className:"w-3 h-3"}),"JEGS"]}),h.jsxs("a",{"data-loc":"client/src/pages/PartsCatalog.tsx:607",href:`https://www.rockauto.com/en/catalog/?parttype=&query=${encodeURIComponent(P.name)}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-xs px-3 py-1.5 rounded border border-border text-muted-foreground hover:text-foreground hover:border-orange-500 transition-all",children:[h.jsx(ix,{"data-loc":"client/src/pages/PartsCatalog.tsx:613",className:"w-3 h-3"}),"RockAuto"]})]})]})})})]},`${P.partNumber}-${V}`))})}),h.jsx("p",{"data-loc":"client/src/pages/PartsCatalog.tsx:626",className:"text-xs text-muted-foreground mt-4 text-center",children:"Prices and availability are AI-estimated. Always verify with the retailer before ordering."})]})]}),h.jsx(Ba,{"data-loc":"client/src/pages/PartsCatalog.tsx:634",children:b&&h.jsx(Kxe,{"data-loc":"client/src/pages/PartsCatalog.tsx:636",part:b,onClose:()=>g(null)})})]})}const SA=[{slug:"main-bearing-clearance",title:"How to Measure Main Bearing Clearance",description:"Step-by-step guide to measuring main bearing clearance with Plastigage and a dial bore gauge. Covers acceptable ranges for street, performance, and race builds.",category:"Clearance Specs",readTime:"8 min read",tags:["bearings","clearance","dial gauge","LS engine"],featured:!0},{slug:"ls-engine-family-guide",title:"The Complete LS Engine Family Guide",description:"Everything you need to know about GM's LS engine family â from the original 5.7L LS1 to the 7.0L LS7 and LSX race block. Displacement, bore/stroke, compression, and common build specs.",category:"Engine Families",readTime:"12 min read",tags:["LS","GM","V8","engine specs"],featured:!0},{slug:"piston-to-wall-clearance",title:"Piston-to-Wall Clearance: Street vs. Race Specs",description:"Why piston-to-wall clearance matters, how to measure it correctly, and how target ranges differ between cast pistons, hypereutectic, and forged race pistons.",category:"Clearance Specs",readTime:"6 min read",tags:["pistons","clearance","forged","race build"],featured:!1},{slug:"engine-rebuild-estimate-guide",title:"How to Write a Professional Engine Rebuild Estimate",description:"A mechanic's guide to itemizing a custom engine build estimate â parts, machine shop costs, labor, and how to present it to customers so they understand and approve quickly.",category:"Business",readTime:"7 min read",tags:["estimating","customer proposal","machine shop","labor rates"],featured:!1},{slug:"small-block-chevy-specs",title:"Small Block Chevy (SBC) Build Specs Reference",description:"Complete clearance spec reference for the 350, 383, and 400 SBC â main bearings, rod bearings, piston-to-wall, ring gap, and cam bearings for street and performance builds.",category:"Engine Families",readTime:"5 min read",tags:["SBC","350","383 stroker","Chevy"],featured:!1},{slug:"machine-shop-order-guide",title:"How to Write a Machine Shop Order",description:"What to include in a machine shop work order: bore specs, deck height, valve job dimensions, surface finish requirements, and how to communicate tolerances clearly.",category:"Machine Shop",readTime:"9 min read",tags:["machine shop","boring","honing","deck surface"],featured:!1},{slug:"ring-gap-guide",title:"Piston Ring Gap: How to Measure and File to Spec",description:"Why ring gap matters for sealing and longevity, how to measure end gap with feeler gauges, and how to file rings to achieve the correct gap for your application.",category:"Clearance Specs",readTime:"6 min read",tags:["rings","ring gap","feeler gauge","compression"],featured:!1},{slug:"ford-windsor-vs-cleveland",title:"Ford 302 Windsor vs. 351 Cleveland: Which to Build?",description:"A head-to-head comparison of Ford's two most popular small blocks â block dimensions, head flow, parts availability, and which platform makes more sense for your build goals.",category:"Engine Families",readTime:"10 min read",tags:["Ford","Windsor","Cleveland","302","351"],featured:!1}],Id={"Clearance Specs":"#ff5c00","Engine Families":"#3b82f6","Machine Shop":"#10b981",Business:"#8b5cf6"},EA={hidden:{opacity:0,y:20},show:e=>({opacity:1,y:0,transition:{duration:.4,delay:e*.06}})};function Zxe(){const e=SA.filter(n=>n.featured),t=SA.filter(n=>!n.featured);return h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:109",className:"min-h-screen",style:{background:"#0a0a0a",fontFamily:"'DM Sans', sans-serif",color:"#fff"},children:[h.jsx("div",{"data-loc":"client/src/pages/Guides.tsx:114",className:"fixed inset-0 pointer-events-none",style:{backgroundImage:"radial-gradient(circle, rgba(255,92,0,0.06) 1px, transparent 1px)",backgroundSize:"28px 28px"}}),h.jsxs("nav",{"data-loc":"client/src/pages/Guides.tsx:123",className:"sticky top-0 z-50 flex items-center justify-between px-8 py-4",style:{background:"rgba(10,10,10,0.92)",backdropFilter:"blur(12px)",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[h.jsxs(kt,{"data-loc":"client/src/pages/Guides.tsx:127",href:"/",className:"flex items-center gap-2",children:[h.jsx("div",{"data-loc":"client/src/pages/Guides.tsx:128",className:"w-7 h-7 rounded flex items-center justify-center",style:{background:"#ff5c00"},children:h.jsx(ei,{"data-loc":"client/src/pages/Guides.tsx:129",className:"w-3.5 h-3.5 text-white"})}),h.jsxs("span",{"data-loc":"client/src/pages/Guides.tsx:131",className:"font-bold tracking-widest text-sm uppercase",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:["Engine",h.jsx("span",{"data-loc":"client/src/pages/Guides.tsx:132",style:{color:"#ff5c00"},children:"Buildr"})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:135",className:"flex items-center gap-6 text-sm",style:{color:"rgba(255,255,255,0.5)"},children:[h.jsx(kt,{"data-loc":"client/src/pages/Guides.tsx:136",href:"/",className:"hover:text-white transition-colors",children:"Home"}),h.jsx(kt,{"data-loc":"client/src/pages/Guides.tsx:137",href:"/pricing",className:"hover:text-white transition-colors",children:"Pricing"}),h.jsx(kt,{"data-loc":"client/src/pages/Guides.tsx:138",href:"/builds/new",children:h.jsx("button",{"data-loc":"client/src/pages/Guides.tsx:139",className:"px-4 py-1.5 rounded text-white text-xs font-bold uppercase tracking-widest",style:{background:"#ff5c00",fontFamily:"'Barlow Condensed', sans-serif"},children:"Start Building"})})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:149",className:"relative z-10 max-w-5xl mx-auto px-6 py-16",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/Guides.tsx:151",className:"mb-14",initial:{opacity:0,y:20}
1123,animate:{opacity:1,y:0},transition:{duration:.5,ease:"easeOut"},children:[h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:157",className:"inline-flex items-center gap-2 px-3 py-1 rounded-full mb-5 text-xs font-mono tracking-widest uppercase",style:{border:"1px solid rgba(255,92,0,0.35)",color:"#ff5c00",background:"rgba(255,92,0,0.08)"},children:[h.jsx(T1,{"data-loc":"client/src/pages/Guides.tsx:161",className:"w-3 h-3"}),h.jsx("span",{"data-loc":"client/src/pages/Guides.tsx:162",children:"Technical Guides"})]}),h.jsxs("h1",{"data-loc":"client/src/pages/Guides.tsx:164",className:"font-black uppercase mb-4",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"clamp(2.5rem, 6vw, 4rem)",letterSpacing:"0.02em"},children:["Engine Building ",h.jsx("span",{"data-loc":"client/src/pages/Guides.tsx:168",style:{color:"#ff5c00"},children:"Knowledge Base"})]}),h.jsx("p",{"data-loc":"client/src/pages/Guides.tsx:170",style:{color:"rgba(255,255,255,0.45)",maxWidth:"560px",lineHeight:1.7},children:"Technical guides written for professional mechanics â clearance specs, engine family references, machine shop workflows, and business tools for custom engine builders."})]}),h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:177",className:"mb-12",children:[h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:178",className:"flex items-center gap-3 mb-6 text-xs font-mono tracking-widest uppercase",style:{color:"rgba(255,255,255,0.3)"},children:[h.jsx("div",{"data-loc":"client/src/pages/Guides.tsx:182",className:"h-px flex-1",style:{background:"rgba(255,255,255,0.08)"}}),h.jsx("span",{"data-loc":"client/src/pages/Guides.tsx:183",children:"Featured"}),h.jsx("div",{"data-loc":"client/src/pages/Guides.tsx:184",className:"h-px flex-1",style:{background:"rgba(255,255,255,0.08)"}})]}),h.jsx("div",{"data-loc":"client/src/pages/Guides.tsx:186",className:"grid md:grid-cols-2 gap-4",children:e.map((n,r)=>h.jsx(Je.div,{"data-loc":"client/src/pages/Guides.tsx:188",custom:r,variants:EA,initial:"hidden",animate:"show",children:h.jsx(kt,{"data-loc":"client/src/pages/Guides.tsx:189",href:`/guides/${n.slug}`,children:h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:190",className:"group p-6 rounded-lg cursor-pointer h-full flex flex-col justify-between",style:{background:"rgba(255,92,0,0.06)",border:"1px solid rgba(255,92,0,0.2)",transition:"border-color 0.2s, background 0.2s"},onMouseEnter:a=>{a.currentTarget.style.borderColor="rgba(255,92,0,0.5)",a.currentTarget.style.background="rgba(255,92,0,0.1)"},onMouseLeave:a=>{a.currentTarget.style.borderColor="rgba(255,92,0,0.2)",a.currentTarget.style.background="rgba(255,92,0,0.06)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:206",children:[h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:207",className:"flex items-center justify-between mb-3",children:[h.jsx("span",{"data-loc":"client/src/pages/Guides.tsx:208",className:"text-xs font-mono px-2 py-0.5 rounded",style:{background:`${Id[n.category]}20`,color:Id[n.category],border:`1px solid ${Id[n.category]}40`},children:n.category}),h.jsxs("span",{"data-loc":"client/src/pages/Guides.tsx:218",className:"flex items-center gap-1 text-xs",style:{color:"rgba(255,255,255,0.3)"},children:[h.jsx(C1,{"data-loc":"client/src/pages/Guides.tsx:219",className:"w-3 h-3"}),n.readTime]})]}),h.jsx("h2",{"data-loc":"client/src/pages/Guides.tsx:223",className:"font-bold mb-2 group-hover:text-orange-400 transition-colors",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.25rem",letterSpacing:"0.02em"},children:n.title}),h.jsx("p",{"data-loc":"client/src/pages/Guides.tsx:229",className:"text-sm leading-relaxed mb-4",style:{color:"rgba(255,255,255,0.45)"},children:n.description})]}),h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:233",className:"flex items-center gap-1 text-xs font-bold uppercase tracking-widest",style:{color:"#ff5c00",fontFamily:"'Barlow Condensed', sans-serif"},children:["Read Guide ",h.jsx(Pu,{"data-loc":"client/src/pages/Guides.tsx:234",className:"w-3 h-3"})]})]})})},n.slug))})]}),h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:244",children:[h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:245",className:"flex items-center gap-3 mb-6 text-xs font-mono tracking-widest uppercase",style:{color:"rgba(255,255,255,0.3)"},children:[h.jsx("div",{"data-loc":"client/src/pages/Guides.tsx:249",className:"h-px flex-1",style:{background:"rgba(255,255,255,0.08)"}}),h.jsx("span",{"data-loc":"client/src/pages/Guides.tsx:250",children:"All Guides"}),h.jsx("div",{"data-loc":"client/src/pages/Guides.tsx:251",className:"h-px flex-1",style:{background:"rgba(255,255,255,0.08)"}})]}),h.jsx("div",{"data-loc":"client/src/pages/Guides.tsx:253",className:"flex flex-col gap-3",children:t.map((n,r)=>h.jsx(Je.div,{"data-loc":"client/src/pages/Guides.tsx:255",custom:r+2,variants:EA,initial:"hidden",animate:"show",children:h.jsx(kt,{"data-loc":"client/src/pages/Guides.tsx:256",href:`/guides/${n.slug}`,children:h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:257",className:"group flex items-start gap-5 p-5 rounded-lg cursor-pointer",style:{background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.06)",transition:"border-color 0.2s, background 0.2s"},onMouseEnter:a=>{a.currentTarget.style.borderColor="rgba(255,92,0,0.3)",a.currentTarget.style.background="rgba(255,92,0,0.05)"},onMouseLeave:a=>{a.currentTarget.style.borderColor="rgba(255,255,255,0.06)",a.currentTarget.style.background="rgba(255,255,255,0.02)"},children:[h.jsx("div",{"data-loc":"client/src/pages/Guides.tsx:273",className:"mt-0.5 w-8 h-8 rounded flex items-center justify-center flex-shrink-0",style:{background:`${Id[n.category]}15`,border:`1px solid ${Id[n.category]}30`},children:h.jsx(T1,{"data-loc":"client/src/pages/Guides.tsx:277",className:"w-3.5 h-3.5",style:{color:Id[n.category]}})}),h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:279",className:"flex-1 min-w-0",children:[h.jsxs("div",{"data-loc":"client/src/pages/Guides.tsx:280",className:"flex items-center gap-3 mb-1 flex-wrap",children:[h.jsx("span",{"data-loc":"client/src/pages/Guides.tsx:281",className:"text-xs font-mono px-2 py-0.5 rounded",style:{background:`${Id[n.category]}15`,color:Id[n.category]},children:n.category}),h.jsxs("span",{"data-loc":"client/src/pages/Guides.tsx:290",className:"flex items-center gap-1 text-xs",style:{color:"rgba(255,255,255,0.25)"},children:[h.jsx(C1,{"data-loc":"client/src/pages/Guides.tsx:291",className:"w-3 h-3"}),n.readTime]})]}),h.jsx("h3",{"data-loc":"client/src/pages/Guides.tsx:295",className:"font-bold mb-1 group-hover:text-orange-400 transition-colors",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.1rem"},children:n.title}),h.jsx("p",{"data-loc":"client/src/pages/Guides.tsx:301",className:"text-xs leading-relaxed",style:{color:"rgba(255,255,255,0.35)"},children:n.description}),h.jsx("div",{"data-loc":"client/src/pages/Guides.tsx:304",className:"flex items-center gap-1.5 mt-2 flex-wrap",children:n.tags.map(a=>h.jsxs("span",{"data-loc":"client/src/pages/Guides.tsx:306",className:"flex items-center gap-1 text-xs px-2 py-0.5 rounded",style:{background:"rgba(255,255,255,0.05)",color:"rgba(255,255,255,0.3)"},children:[h.jsx(Fw,{"data-loc":"client/src/pages/Guides.tsx:311",className:"w-2.5 h-2.5"}),a]},a))})]}),h.jsx(Ml,{"data-loc":"client/src/pages/Guides.tsx:317",className:"w-4 h-4 flex-shrink-0 mt-1 opacity-30 group-hover:opacity-70 transition-opacity",style:{color:"#ff5c00"}})]})})},n.slug))})]}),h.jsxs(Je.div,{"data-loc":"client/src/pages/Guides.tsx:326",className:"mt-16 p-8 rounded-lg text-center",style:{background:"rgba(255,92,0,0.06)",border:"1px solid rgba(255,92,0,0.2)"},initial:{opacity:0,y:20}
1123,animate:{opacity:1,y:0},transition:{duration:.5,delay:.5,ease:"easeOut"},children:[h.jsx("h2",{"data-loc":"client/src/pages/Guides.tsx:333",className:"font-black uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.8rem",letterSpacing:"0.04em"},children:"Ready to Put These Specs to Work?"}),h.jsx("p",{"data-loc":"client/src/pages/Guides.tsx:339",className:"mb-6 text-sm",style:{color:"rgba(255,255,255,0.45)"},children:"Start a build in EngineBuildr and apply these specs directly in the interactive clearance inspector."}),h.jsx(kt,{"data-loc":"client/src/pages/Guides.tsx:342",href:"/builds/new",children:h.jsxs(Je.button,{"data-loc":"client/src/pages/Guides.tsx:343",className:"inline-flex items-center gap-2 px-6 py-3 rounded font-bold text-sm uppercase tracking-widest text-white",style:{background:"#ff5c00",fontFamily:"'Barlow Condensed', sans-serif"},whileHover:{scale:1.03},whileTap:{scale:.97},transition:{duration:.15},children:[h.jsx(ei,{"data-loc":"client/src/pages/Guides.tsx:350",className:"w-4 h-4"}),"Start a New Build",h.jsx(Pu,{"data-loc":"client/src/pages/Guides.tsx:352",className:"w-4 h-4"})]})})]})]})]})}const e5e=[{number:"01",title:"Open Google Search Console",description:"Go to search.google.com/search-console and sign in with your Google account.",action:{label:"Open Search Console",href:"https://search.google.com/search-console"}},{number:"02",title:"Add a New Property",description:'Click "Add property" in the top-left dropdown. Choose "URL prefix" and enter your exact domain.',code:"https://enginebuildr.manus.space/"},{number:"03",title:"Choose HTML Tag Verification",description:'Select "HTML tag" from the verification methods list. Copy the content value from the meta tag shown â it looks like a long string of letters and numbers.',note:'Only copy the value inside content="..." â not the entire tag.'},{number:"04",title:"Update the Verification Tag in EngineBuildr",description:"In the Management UI, open the Code panel and edit client/index.html. Find the google-site-verification meta tag and replace REPLACE_WITH_YOUR_GOOGLE_VERIFICATION_TOKEN with your copied value.",code:'<meta name="google-site-verification" content="YOUR_TOKEN_HERE" />'},{number:"05",title:"Publish and Verify",description:"Save your changes, create a checkpoint, and publish the site. Then return to Search Console and click Verify. Once verified, submit your sitemap.",action:{label:"Submit Sitemap After Verifying",href:"https://search.google.com/search-console/sitemaps"},code:"https://enginebuildr.manus.space/sitemap.xml"}];function t5e(){const[e,t]=G.useState(null),n=(r,a)=>{navigator.clipboard.writeText(r),t(a),setTimeout(()=>t(null),2e3)};return h.jsxs("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:60",className:"min-h-screen",style:{background:"#0a0a0a",fontFamily:"'DM Sans', sans-serif",color:"#fff"},children:[h.jsx("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:65",className:"fixed inset-0 pointer-events-none",style:{backgroundImage:"radial-gradient(circle, rgba(255,92,0,0.05) 1px, transparent 1px)",backgroundSize:"28px 28px"}}),h.jsxs("nav",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:74",className:"sticky top-0 z-50 flex items-center justify-between px-8 py-4",style:{background:"rgba(10,10,10,0.92)",backdropFilter:"blur(12px)",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[h.jsxs(kt,{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:78",href:"/",className:"flex items-center gap-2",children:[h.jsx("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:79",className:"w-7 h-7 rounded flex items-center justify-center",style:{background:"#ff5c00"},children:h.jsx(ei,{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:80",className:"w-3.5 h-3.5 text-white"})}),h.jsxs("span",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:82",className:"font-bold tracking-widest text-sm uppercase",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:["Engine",h.jsx("span",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:83",style:{color:"#ff5c00"},children:"Buildr"})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:86",className:"flex items-center gap-2 text-xs",style:{color:"rgba(255,255,255,0.4)"},children:[h.jsx(Px,{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:87",className:"w-3.5 h-3.5"}),h.jsx("span",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:88",children:"Search Console Setup Guide"})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:92",className:"relative z-10 max-w-3xl mx-auto px-6 py-16",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:94",className:"mb-14",initial:{opacity:0,y:20}
1123,animate:{opacity:1,y:0},transition:{duration:.5},children:[h.jsxs("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:100",className:"inline-flex items-center gap-2 px-3 py-1 rounded-full mb-5 text-xs font-mono tracking-widest uppercase",style:{border:"1px solid rgba(255,92,0,0.35)",color:"#ff5c00",background:"rgba(255,92,0,0.08)"},children:[h.jsx(Px,{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:104",className:"w-3 h-3"}),h.jsx("span",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:105",children:"SEO Setup"})]}),h.jsxs("h1",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:107",className:"font-black uppercase mb-4",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"clamp(2rem, 5vw, 3rem)",letterSpacing:"0.02em"},children:["Google Search Console ",h.jsx("span",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:111",style:{color:"#ff5c00"},children:"Verification"})]}),h.jsx("p",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:113",style:{color:"rgba(255,255,255,0.45)",lineHeight:1.7},children:"Follow these steps to verify EngineBuildr with Google Search Console and submit your sitemap so Google indexes your site quickly."})]}),h.jsx("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:120",className:"flex flex-col gap-6",children:e5e.map((r,a)=>h.jsx(Je.div,{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:122",initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4,delay:a*.08},children:h.jsx("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:128",className:"p-6 rounded-lg",style:{background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.07)"},children:h.jsxs("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:132",className:"flex items-start gap-4",children:[h.jsx("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:134",className:"flex-shrink-0 w-10 h-10 rounded flex items-center justify-center font-black text-sm",style:{fontFamily:"'Barlow Condensed', sans-serif",background:"rgba(255,92,0,0.12)",border:"1px solid rgba(255,92,0,0.3)",color:"#ff5c00"},children:r.number}),h.jsxs("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:145",className:"flex-1 min-w-0",children:[h.jsx("h3",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:146",className:"font-bold mb-2",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.15rem",letterSpacing:"0.02em"},children:r.title}),h.jsx("p",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:152",className:"text-sm mb-3",style:{color:"rgba(255,255,255,0.5)",lineHeight:1.6},children:r.description}),r.note&&h.jsxs("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:157",className:"flex items-start gap-2 p-3 rounded mb-3 text-xs",style:{background:"rgba(255,92,0,0.08)",border:"1px solid rgba(255,92,0,0.2)",color:"rgba(255,255,255,0.6)"},children:[h.jsx(Ml,{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:161",className:"w-3.5 h-3.5 flex-shrink-0 mt-0.5",style:{color:"#ff5c00"}}),r.note]}),r.code&&h.jsxs("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:167",className:"flex items-center justify-between gap-3 p-3 rounded mb-3",style:{background:"rgba(0,0,0,0.4)",border:"1px solid rgba(255,255,255,0.08)"},children:[h.jsx("code",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:171",className:"text-xs flex-1 break-all",style:{color:"#10b981",fontFamily:"'JetBrains Mono', monospace"},children:r.code}),h.jsx("button",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:174",onClick:()=>n(r.code,`step-${a}`),className:"flex-shrink-0 flex items-center gap-1 text-xs px-2 py-1 rounded transition-colors",style:{background:e===`step-${a}`?"rgba(16,185,129,0.15)":"rgba(255,255,255,0.06)",color:e===`step-${a}`?"#10b981":"rgba(255,255,255,0.4)",border:"1px solid rgba(255,255,255,0.08)"},children:e===`step-${a}`?h.jsxs(h.Fragment,{children:[h.jsx(sx,{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:184",className:"w-3 h-3"})," Copied"]}):h.jsxs(h.Fragment,{children:[h.jsx($9,{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:186",className:"w-3 h-3"})," Copy"]})})]}),r.action&&h.jsxs("a",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:193",href:r.action.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-xs font-bold uppercase tracking-widest px-4 py-2 rounded transition-colors",style:{fontFamily:"'Barlow Condensed', sans-serif",background:"rgba(255,92,0,0.12)",border:"1px solid rgba(255,92,0,0.3)",color:"#ff5c00"},children:[r.action.label,h.jsx(ix,{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:206",className:"w-3 h-3"})]})]})]})})},r.number))}),h.jsx(Je.div,{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:217",className:"mt-10 p-6 rounded-lg",style:{background:"rgba(16,185,129,0.06)",border:"1px solid rgba(16,185,129,0.2)"},initial:{opacity:0}
1123,animate:{opacity:1},transition:{duration:.5,delay:.5},children:h.jsxs("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:224",className:"flex items-start gap-3",children:[h.jsx(sx,{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:225",className:"w-5 h-5 flex-shrink-0 mt-0.5",style:{color:"#10b981"}}),h.jsxs("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:226",children:[h.jsx("h4",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:227",className:"font-bold mb-1",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1rem"},children:"Your sitemap is already live"}),h.jsx("p",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:230",className:"text-sm mb-3",style:{color:"rgba(255,255,255,0.45)"},children:"Once verified, submit this URL directly in Search Console under Sitemaps:"}),h.jsxs("div",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:233",className:"flex items-center justify-between gap-3 p-3 rounded",style:{background:"rgba(0,0,0,0.3)",border:"1px solid rgba(16,185,129,0.15)"},children:[h.jsx("code",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:237",className:"text-xs",style:{color:"#10b981",fontFamily:"'JetBrains Mono', monospace"},children:"https://enginebuildr.manus.space/sitemap.xml"}),h.jsx("button",{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:240",onClick:()=>n("https://enginebuildr.manus.space/sitemap.xml","sitemap"),className:"flex-shrink-0 flex items-center gap-1 text-xs px-2 py-1 rounded",style:{background:e==="sitemap"?"rgba(16,185,129,0.15)":"rgba(255,255,255,0.06)",color:e==="sitemap"?"#10b981":"rgba(255,255,255,0.4)",border:"1px solid rgba(255,255,255,0.08)"},children:e==="sitemap"?h.jsxs(h.Fragment,{children:[h.jsx(sx,{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:249",className:"w-3 h-3"})," Copied"]}):h.jsxs(h.Fragment,{children:[h.jsx($9,{"data-loc":"client/src/pages/SearchConsoleSetup.tsx:249",className:"w-3 h-3"})," Copy"]})})]})]})]})})]})]})}const fc={hidden:{opacity:0,y:18},show:e=>({opacity:1,y:0,transition:{duration:.45,delay:e*.07}})},n5e=[{variant:"LS1",years:"1997â2004",displacement:"5.7L / 346 ci",bore:'3.898"',stroke:'3.622"',compression:"10.1:1",hp:"305â350",block:"Aluminum",notes:'Original LS. Camaro/Corvette/GTO. Thin cylinder walls â bore limit ~0.030".'},{variant:"LS6",years:"2001â2004",displacement:"5.7L / 346 ci",bore:'3.898"',stroke:'3.622"',compression:"10.5:1",hp:"385â405",block:"Aluminum",notes:"High-perf LS1 variant. Better heads (243 castings), revised cam. Z06 Corvette."},{variant:"LS2",years:"2005â2007",displacement:"6.0L / 364 ci",bore:'4.000"',stroke:'3.622"',compression:"10.9:1",hp:"390â400",block:"Aluminum",notes:'GTO, Corvette, SSR. 4.000" bore is the magic number for stroker builds.'},{variant:"LS3",years:"2008â2015",displacement:"6.2L / 376 ci",bore:'4.065"',stroke:'3.622"',compression:"10.7:1",hp:"430â436",block:"Aluminum",notes:"Corvette C6/C7, Camaro SS. Rectangular port heads flow extremely well stock."},{variant:"LS7",years:"2006â2014",displacement:"7.0L / 427 ci",bore:'4.125"',stroke:'4.000"',compression:"11.0:1",hp:"505â525",block:"Aluminum",notes:'Z06 Corvette. Titanium rods, dry-sump. Bore limit ~0.010" over due to thin walls.'},{variant:"LS9",years:"2009â2013",displacement:"6.2L / 376 ci",bore:'4.065"',stroke:'3.622"',compression:"9.1:1",hp:"638",block:"Aluminum",notes:"ZR1 Corvette. Roots-type supercharger. Forged internals from factory."},{variant:"LQ4 / LQ9",years:"1999â2007",displacement:"6.0L / 364 ci",bore:'4.000"',stroke:'3.622"',compression:"9.4â10.1:1",hp:"300â345",block:"Iron",notes:"Truck/SUV iron block. Extremely popular swap donor. Cheap, strong, bores well."},{variant:"L92 / L9H",years:"2007â2009",displacement:"6.2L / 376 ci",bore:'4.065"',stroke:'3.622"',compression:"10.5:1",hp:"403",block:"Aluminum",notes:"Truck/Escalade. Rectangular port heads identical to LS3. Great swap candidate."},{variant:"L99",years:"2010â2015",displacement:"6.2L / 376 ci",bore:'4.065"',stroke:'3.622"',compression:"10.4:1",hp:"400",block:"Aluminum",notes:"Camaro SS (auto only). AFM cylinder deactivation. Disable AFM before any build."},{variant:"LSX",years:"2008âpresent",displacement:"Various",bore:'Up to 4.185"',stroke:"Various",compression:"Varies",hp:"Varies",block:"Iron (race)",notes:'GM Performance race block. 0.400" thicker cylinder walls. Built for 2,000+ hp.'}],r5e=[{spec:"Main Bearing Clearance",street:'0.0010"â0.0020"',performance:'0.0020"â0.0025"',race:'0.0025"â0.0030"'},{spec:"Rod Bearing Clearance",street:'0.0010"â0.0020"',performance:'0.0018"â0.0025"',race:'0.0025"â0.0030"'},{spec:"Piston-to-Wall (Forged)",street:'0.0030"â0.0040"',performance:'0.0040"â0.0050"',race:'0.0050"â
11230.0060"'},{spec:"Piston-to-Wall (Hypereutectic)",street:'0.0010"â0.0015"',performance:'0.0015"â0.0020"',race:"N/A"},{spec:"Ring End Gap (Top)",street:'0.0140"â0.0180"',performance:'0.0180"â0.0220"',race:'0.0220"â0.0260"'},{spec:"Ring End Gap (2nd)",street:'0.0160"â0.0200"',performance:'0.0200"â0.0240"',race:'0.0240"â0.0280"'},{spec:"Cam Bearing Clearance",street:'0.0010"â0.0030"',performance:'0.0020"â0.0030"',race:'0.0025"â0.0035"'},{spec:"Crankshaft End Play",street:'0.0010"â0.0078"',performance:'0.0040"â0.0060"',race:'0.0050"â0.0070"'}];function a5e(){return h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:40",className:"min-h-screen",style:{background:"#0a0a0a",fontFamily:"'DM Sans', sans-serif",color:"#fff"},children:[h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:45",className:"fixed inset-0 pointer-events-none",style:{backgroundImage:"radial-gradient(circle, rgba(255,92,0,0.06) 1px, transparent 1px)",backgroundSize:"28px 28px"}}),h.jsxs("nav",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:54",className:"sticky top-0 z-50 flex items-center justify-between px-8 py-4",style:{background:"rgba(10,10,10,0.92)",backdropFilter:"blur(12px)",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[h.jsxs(kt,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:58",href:"/",className:"flex items-center gap-2",children:[h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:59",className:"w-7 h-7 rounded flex items-center justify-center",style:{background:"#ff5c00"},children:h.jsx(ei,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:60",className:"w-3.5 h-3.5 text-white"})}),h.jsxs("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:62",className:"font-bold tracking-widest text-sm uppercase",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:["Engine",h.jsx("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:63",style:{color:"#ff5c00"},children:"Buildr"})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:66",className:"flex items-center gap-6 text-sm",style:{color:"rgba(255,255,255,0.5)"},children:[h.jsx(kt,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:67",href:"/guides",className:"hover:text-white transition-colors",children:"Guides"}),h.jsx(kt,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:68",href:"/pricing",className:"hover:text-white transition-colors",children:"Pricing"}),h.jsx(kt,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:69",href:"/builds/new",children:h.jsx("button",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:70",className:"px-4 py-1.5 rounded text-white text-xs font-bold uppercase tracking-widest",style:{background:"#ff5c00",fontFamily:"'Barlow Condensed', sans-serif"},children:"Start Building"})})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:80",className:"relative z-10 max-w-4xl mx-auto px-6 py-12",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:82",className:"flex items-center gap-2 mb-8 text-sm",style:{color:"rgba(255,255,255,0.35)"},initial:{opacity:0}
1123,animate:{opacity:1},transition:{duration:.4},children:[h.jsxs(kt,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:89",href:"/guides",className:"flex items-center gap-1 hover:text-white transition-colors",children:[h.jsx(j5,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:90",className:"w-3.5 h-3.5"}),h.jsx("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:91",children:"Guides"})]}),h.jsx("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:93",children:"/"}),h.jsx("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:94",style:{color:"#3b82f6"},children:"Engine Families"})]}),h.jsxs(Je.div,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:98",className:"mb-12",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:104",className:"flex items-center gap-3 mb-5 flex-wrap",children:[h.jsx("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:105",className:"text-xs font-mono px-2.5 py-1 rounded",style:{background:"rgba(59,130,246,0.15)",color:"#3b82f6",border:"1px solid rgba(59,130,246,0.3)"},children:"Engine Families"}),h.jsxs("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:111",className:"flex items-center gap-1.5 text-xs",style:{color:"rgba(255,255,255,0.3)"},children:[h.jsx(C1,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:112",className:"w-3 h-3"}),"12 min read"]}),h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:115",className:"flex items-center gap-1.5 flex-wrap",children:["LS","GM","V8","engine specs","clearances"].map(e=>h.jsxs("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:117",className:"flex items-center gap-1 text-xs px-2 py-0.5 rounded",style:{background:"rgba(255,255,255,0.05)",color:"rgba(255,255,255,0.3)"},children:[h.jsx(Fw,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:122",className:"w-2.5 h-2.5"}),e]},e))})]}),h.jsxs("h1",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:128",className:"font-black uppercase mb-5",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"clamp(2rem, 5vw, 3.25rem)",letterSpacing:"0.02em",lineHeight:1.1},children:["The Complete ",h.jsx("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:137",style:{color:"#ff5c00"},children:"LS Engine"})," Family Guide"]}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:139",style:{color:"rgba(255,255,255,0.55)",fontSize:"1.1rem",lineHeight:1.75,maxWidth:"680px"},children:"Everything a professional engine builder needs to know about GM's LS platform â from the original 1997 LS1 to the race-bred LSX block. Displacement, bore/stroke combinations, factory clearance specs, block differences, and the most common performance build paths for each variant."})]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:145",className:"space-y-14",children:[h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:148",custom:0,variants:fc,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:149",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)",color:"#fff"},children:"Why the LS Platform Dominates Performance Building"}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:161",className:"space-y-4",style:{color:"rgba(255,255,255,0.7)",lineHeight:1.8},children:[h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:162",children:"When General Motors introduced the LS1 in the 1997 Corvette C5, it quietly launched what would become the most popular performance engine platform in American automotive history. The LS family's dominance in the custom engine building world is not accidental â it is the product of a design philosophy that prioritized power density, light weight, and parts interchangeability across a remarkably wide range of displacements and applications."}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:165",children:"The all-aluminum architecture of the car-based LS engines delivers a weight savings of roughly 100 lbs compared to an equivalent iron-block small block Chevy. The Gen III and Gen IV LS engines share the same 4.400-inch bore spacing, the same bellhousing pattern, and a common external block architecture â meaning heads, intakes, camshafts, and rotating assembly components often interchange freely across variants separated by a decade of production. For a shop building a 427 stroker, this parts compatibility is not a convenience; it is the economic foundation of the entire build."}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:168",children:"Junkyard availability is equally significant. LQ4 and LQ9 iron-block truck engines can be sourced for $300â$600 complete, providing a bulletproof foundation for builds that will see 500+ horsepower on a budget. The aluminum car blocks â LS1, LS2, LS3 â are nearly as common and provide the weight advantage for track and road-course applications. No other domestic V8 platform offers this combination of performance ceiling, parts availability, and cost-effective entry point."})]})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:175",custom:1,variants:fc,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:176",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"Gen III vs. Gen IV: What Actually Changed"}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:187",className:"space-y-4",style:{color:"rgba(255,255,255,0.7)",lineHeight:1.8},children:[h.jsxs("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:188",children:["The LS fam
1123ily divides into two generations that share far more than they differ. The ",h.jsx("strong",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:189",style:{color:"#fff"},children:"Gen III"})," (1997â2004) encompasses the LS1, LS6, and the early truck engines (LQ4, LR4). The ",h.jsx("strong",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:189",style:{color:"#fff"},children:"Gen IV"})," (2005âpresent) introduced displacement-on-demand (Active Fuel Management), variable valve timing on some variants, and revised block castings to accommodate these features."]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:191",className:"p-5 rounded-lg",style:{background:"rgba(255,92,0,0.06)",border:"1px solid rgba(255,92,0,0.2)"},children:[h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:195",className:"text-sm font-mono mb-3",style:{color:"#ff5c00"},children:"KEY DIFFERENCES AT A GLANCE"}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:196",className:"grid md:grid-cols-2 gap-4 text-sm",style:{color:"rgba(255,255,255,0.7)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:197",children:[h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:198",className:"font-bold mb-2",style:{color:"#fff"},children:"Gen III (LS1, LS6, LQ4)"}),h.jsxs("ul",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:199",className:"space-y-1 list-disc list-inside",children:[h.jsx("li",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:200",children:"No cam phaser provisions in block"}),h.jsx("li",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:201",children:"1-bolt cam retainer plate"}),h.jsx("li",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:202",children:"Flat-tappet-style lifter bores (no AFM)"}),h.jsx("li",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:203",children:"No provisions for DOD/AFM lifters"}),h.jsx("li",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:204",children:"Simpler wiring harness (58x reluctor wheel)"}),h.jsx("li",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:205",children:"Slightly smaller main journal oiling passages"})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:208",children:[h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:209",className:"font-bold mb-2",style:{color:"#fff"},children:"Gen IV (LS2, LS3, LS7, L92)"}),h.jsxs("ul",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:210",className:"space-y-1 list-disc list-inside",children:[h.jsx("li",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:211",children:"58x reluctor wheel (same as late Gen III)"}),h.jsx("li",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:212",children:"4-bolt cam retainer plate"}),h.jsx("li",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:213",children:"AFM lifter bores on DOD variants"}),h.jsx("li",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:214",children:"VVT cam phaser provisions (select models)"}),h.jsx("li",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:215",children:"Revised valley cover with integrated oil passages"}),h.jsx("li",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:216",children:"Larger displacement options (6.2L, 7.0L)"})]})]})]})]}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:221",children:"For most performance builds, the generation distinction matters primarily in two areas: camshaft selection (Gen IV blocks require a 4-bolt cam retainer) and lifter bore diameter (AFM blocks use a different lifter that must be addressed when deleting the system). Both generations accept the same cylinder heads, intake manifolds, and rotating assemblies with minor fitment considerations."})]})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:228",custom:2,variants:fc,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:229",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"LS Variant Reference: Bore, Stroke & Displacement"}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:240",className:"mb-5",style:{color:"rgba(255,255,255,0.6)",lineHeight:1.7},children:"The table below covers every major production LS variant a builder is likely to encounter. Factory horsepower figures are SAE net ratings at the crank. Bore limits reflect practical machining ceilings before cylinder wall integrity becomes a concern on stock castings."}),h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:243",className:"overflow-x-auto rounded-lg",style:{border:"1px solid rgba(255,255,255,0.08)"},children:h.jsxs("table",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:244",className:"w-full text-sm",style:{borderCollapse:"collapse"},children:[h.jsx("thead",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:245",children:h.jsx("tr",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:246",style:{background:"rgba(255,92,0,0.12)",borderBottom:"1px solid rgba(255,92,0,0.3)"},children:["Variant","Years","Displacement","Bore","Stroke","CR","HP (Factory)","Block","Notes"].map(e=>h.jsx("th",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:248",className:"text-left px-3 py-3 text-xs font-mono uppercase tracking-wider",style:{color:"#ff5c00",whiteSpace:"nowrap"},children:e},e))})}),h.jsx("tbody",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:258",children:n5e.map((e,t)=>h.jsxs("tr",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:260",style:{borderBottom:"1px solid rgba(255,255,255,0.05)",background:t%2===0?"rgba(255,255,255,0.01)":"transparent"},children:[h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:267",className:"px-3 py-3 font-bold",style:{color:"#ff5c00",fontFamily:"'JetBrains Mono', monospace",whiteSpace:"nowrap"},children:e.variant}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:268",className:"px-3 py-3",style:{color:"rgba(255,255,255,0.5)",whiteSpace:"nowrap"},children:e.years}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:269",className:"px-3 py-3 font-mono",style:{color:"rgba(255,255,255,0.8)",whiteSpace:"nowrap"},children:e.displacement}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:270",className:"px-3 py-3 font-mono",style:{color:"rgba(255,255,255,0.8)",whiteSpace:"nowrap"},children:e.bore}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:271",className:"px-3 py-3 font-mono",style:{color:"rgba(255,255,255,0.8)",whiteSpace:"nowrap"},children:e.stroke}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:272",className:"px-3 py-3 font-mono",style:{color:"rgba(255,255,255,0.7)",whiteSpace:"nowrap"},children:e.compression}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:273",className:"px-3 py-3 font-mono",style:{color:"rgba(255,255,255,0.7)",whiteSpace:"nowrap"},children:e.hp}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:274",className:"px-3 py-3",style:{color:e.block==="Iron"?"#10b981":"#3b82f6",whiteSpace:"nowrap"},children:e.block}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:275",className:"px-3 py-3 text-xs",style:{color:"rgba(255,255,255,0.45)",minWidth:"220px"},children:e.notes})]},e.variant))})]})})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:284",custom:3,variants:fc,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:285",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"Popular Stroker Combinations"}),h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:296",className:"space-y-4",style:{color:"rgba(255,255,255,0.7)",lineHeight:1.8},children:h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:297",children:"The LS platform's 4.400-inch bore spacing accommodates a wide range of stroke increases without the clearance nightmares that plague tighter-spaced blocks. The following combinations represent the most commonly built stroker packages, each with established parts availability and proven reliability data from thousands of production builds."})}),h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:301",className:"mt-5 grid md:grid-cols-2 gap-4",children:[{name:"383 LS Stroker",base:"LS1 / LS6 block",bore:'3.905"',stroke:'4.000"',disp:"383 ci",hp:"450â550 NA",notes:'Drop-in 4.000" crank in LS1 block. Requires checking rod-to-cam clearance. Popular budget build.'},{name:"408 LS Stroker",base:"LQ4 / LS2 block",bore:'4.030"',stroke:'4.000"',disp:"408 ci",hp:"500â600 NA",notes:'Iron block version is extremely durable. 4.030" bore on LQ4 leaves adequate wall thickness.'},{name:"416 LS Stroker",base:"LS3 / L92 block",bore:'4.065"',stroke:'4.000"',disp:"416 ci",hp:"550â650 NA",notes:"LS3 heads flow 315+ cfm stock. Outstanding street/strip comb
1123ination. Common 6-second car build."},{name:"427 LS Stroker",base:"LS3 / L92 block",bore:'4.125"',stroke:'4.000"',disp:"427 ci",hp:"600â700 NA",notes:'Replicates LS7 displacement in a cheaper block. Requires sonic testing â 4.125" is near the limit.'},{name:"454 LS Stroker",base:"LSX block",bore:'4.185"',stroke:'4.100"',disp:"454 ci",hp:"700â900 NA",notes:"LSX block required for this bore size. Thick walls handle the stress. Big-cubic-inch NA build."},{name:"6.0L Turbo Build",base:"LQ4 / LQ9 iron",bore:'4.000"',stroke:'3.622"',disp:"364 ci",hp:"600â1,000+ FI",notes:"Stock bore, stock stroke. Iron block handles boost extremely well. Budget 1,000 hp platform."}].map((e,t)=>h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:358",className:"p-5 rounded-lg",style:{background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.07)"},children:[h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:363",className:"font-black uppercase mb-1",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.1rem",color:"#ff5c00"},children:e.name}),h.jsxs("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:366",className:"text-xs mb-3",style:{color:"rgba(255,255,255,0.35)"},children:["Base: ",e.base]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:367",className:"grid grid-cols-3 gap-2 mb-3 text-xs font-mono",children:[h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:368",children:[h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:369",style:{color:"rgba(255,255,255,0.3)"},children:"BORE"}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:370",style:{color:"#fff"},children:e.bore})]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:372",children:[h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:373",style:{color:"rgba(255,255,255,0.3)"},children:"STROKE"}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:374",style:{color:"#fff"},children:e.stroke})]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:376",children:[h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:377",style:{color:"rgba(255,255,255,0.3)"},children:"DISP"}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:378",style:{color:"#fff"},children:e.disp})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:381",className:"text-xs mb-2",children:[h.jsx("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:382",style:{color:"rgba(255,255,255,0.3)"},children:"HP RANGE: "}),h.jsx("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:383",style:{color:"#ff5c00",fontFamily:"'JetBrains Mono', monospace"},children:e.hp})]}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:385",className:"text-xs",style:{color:"rgba(255,255,255,0.45)",lineHeight:1.6},children:e.notes})]},e.name))})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:392",custom:4,variants:fc,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:393",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"Cylinder Head Identification & Flow Comparison"}),h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:404",className:"space-y-4 mb-6",style:{color:"rgba(255,255,255,0.7)",lineHeight:1.8},children:h.jsxs("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:405",children:["The LS cylinder head is where the platform's performance potential is unlocked. All LS heads share the same bolt pattern and port location, making them fully interchangeable across the entire family. The critical distinction for a builder is port shape: ",h.jsx("strong",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:406",style:{color:"#fff"},children:"cathedral port"})," (Gen III and early Gen IV) versus ",h.jsx("strong",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:406",style:{color:"#fff"},children:"rectangular port"})," (LS3, LS7, L92, and later Gen IV truck heads). Rectangular port heads flow significantly more air at high lift and are the preferred choice for any build targeting 500+ horsepower."]})}),h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:409",className:"overflow-x-auto rounded-lg",style:{border:"1px solid rgba(255,255,255,0.08)"},children:h.jsxs("table",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:410",className:"w-full text-sm",style:{borderCollapse:"collapse"},children:[h.jsx("thead",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:411",children:h.jsx("tr",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:412",style:{background:"rgba(255,92,0,0.12)",borderBottom:"1px solid rgba(255,92,0,0.3)"},children:["Casting","Application","Port Shape","CC",'Int. Flow (0.600")','Exh. Flow (0.600")',"Notes"].map(e=>h.jsx("th",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:414",className:"text-left px-3 py-3 text-xs font-mono uppercase tracking-wider",style:{color:"#ff5c00",whiteSpace:"nowrap"},children:e},e))})}),h.jsx("tbody",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:420",children:[{casting:"706 / 862",app:"LS1 Truck",shape:"Cathedral",cc:"61cc",int:"~210 cfm",exh:"~155 cfm",notes:"Budget swap head. Good for 350â400 hp builds."},{casting:"241 / 243",app:"LS6 / LS2",shape:"Cathedral",cc:"64cc",int:"~240 cfm",exh:"~170 cfm",notes:"Best cathedral port head. Excellent for 400â500 hp."},{casting:"799",app:"LS1 / LS6",shape:"Cathedral",cc:"61cc",int:"~230 cfm",exh:"~165 cfm",notes:"Solid mid-tier cathedral head. Common on budget builds."},{casting:"823 / 716",app:"LS3 / L92",shape:"Rectangular",cc:"68cc",int:"~315 cfm",exh:"~210 cfm",notes:"Factory LS3 head. Excellent as-cast. Ideal for 500â650 hp."}
1123,{casting:"LS7",app:"LS7 Z06",shape:"Rectangular",cc:"70cc",int:"~360 cfm",exh:"~245 cfm",notes:"Best factory LS head. Titanium valves. Requires LS7 pistons."},{casting:"CNC Aftermarket",app:"All LS",shape:"Rectangular",cc:"Various",int:"380â420 cfm",exh:"260â290 cfm",notes:"AFR, Trick Flow, Mast. Required for 700+ hp NA builds."}].map((e,t)=>h.jsxs("tr",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:429",style:{borderBottom:"1px solid rgba(255,255,255,0.05)",background:t%2===0?"rgba(255,255,255,0.01)":"transparent"},children:[h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:430",className:"px-3 py-3 font-mono font-bold",style:{color:"#ff5c00",whiteSpace:"nowrap"},children:e.casting}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:431",className:"px-3 py-3",style:{color:"rgba(255,255,255,0.6)",whiteSpace:"nowrap"},children:e.app}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:432",className:"px-3 py-3",style:{color:e.shape==="Rectangular"?"#10b981":"#3b82f6",whiteSpace:"nowrap"},children:e.shape}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:433",className:"px-3 py-3 font-mono",style:{color:"rgba(255,255,255,0.7)",whiteSpace:"nowrap"},children:e.cc}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:434",className:"px-3 py-3 font-mono",style:{color:"rgba(255,255,255,0.8)",whiteSpace:"nowrap"},children:e.int}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:435",className:"px-3 py-3 font-mono",style:{color:"rgba(255,255,255,0.8)",whiteSpace:"nowrap"},children:e.exh}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:436",className:"px-3 py-3 text-xs",style:{color:"rgba(255,255,255,0.4)",minWidth:"200px"},children:e.notes})]},e.casting))})]})})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:445",custom:5,variants:fc,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:446",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"Factory & Performance Clearance Specs"}),h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:457",className:"space-y-4 mb-6",style:{color:"rgba(255,255,255,0.7)",lineHeight:1.8},children:h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:458",children:"Clearance specifications for LS engines vary by intended use. GM's factory specifications are calibrated for long service life with conventional motor oil at moderate operating temperatures. Performance and race builds require tighter or looser tolerances depending on oil viscosity, operating temperature, and the type of bearing material used. The table below provides practical working ranges for each application tier."})}),h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:462",className:"overflow-x-auto rounded-lg mb-5",style:{border:"1px solid rgba(255,255,255,0.08)"},children:h.jsxs("table",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:463",className:"w-full text-sm",style:{borderCollapse:"collapse"},children:[h.jsx("thead",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:464",children:h.jsx("tr",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:465",style:{background:"rgba(255,92,0,0.12)",borderBottom:"1px solid rgba(255,92,0,0.3)"},children:["Clearance Spec","Street / OEM","Performance","Race / High-RPM"].map(e=>h.jsx("th",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:467",className:"text-left px-4 py-3 text-xs font-mono uppercase tracking-wider",style:{color:"#ff5c00"},children:e},e))})}),h.jsx("tbody",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:473",children:r5e.map((e,t)=>h.jsxs("tr",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:475",style:{borderBottom:"1px solid rgba(255,255,255,0.05)",background:t%2===0?"rgba(255,255,255,0.01)":"transparent"},children:[h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:476",className:"px-4 py-3 font-medium",style:{color:"#fff"},children:e.spec}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:477",className:"px-4 py-3 font-mono",style:{color:"#10b981"},children:e.street}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:478",className:"px-4 py-3 font-mono",style:{color:"#3b82f6"},children:e.performance}),h.jsx("td",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:479",className:"px-4 py-3 font-mono",style:{color:"#ff5c00"},children:e.race})]},e.spec))})]})}),h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:485",className:"p-5 rounded-lg",style:{background:"rgba(255,92,0,0.06)",border:"1px solid rgba(255,92,0,0.25)"},children:h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:489",className:"flex items-start gap-3",children:[h.jsx(qu,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:490",className:"w-4 h-4 mt-0.5 flex-shrink-0",style:{color:"#ff5c00"}}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:491",children:[h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:492",className:"font-bold text-sm mb-1",style:{color:"#ff5c00",fontFamily:"'Barlow Condensed', sans-serif",letterSpacing:"0.05em"},children:"USE THE SPEC CALCULATOR IN ENGINEBUILDR"}),h.jsxs("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:495",className:"text-sm",style:{color:"rgba(255,255,255,0.6)",lineHeight:1.6}
1123,children:["The interactive Clearance Inspector in EngineBuildr lets you enter your measured values against LS family presets and get instant pass/fail evaluation across all 8 critical clearances. It also generates a printable spec sheet for your customer file."," ",h.jsx(kt,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:497",href:"/builds/new",className:"underline",style:{color:"#ff5c00"},children:"Start a build to access it â"})]})]})]})})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:507",custom:6,variants:fc,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:508",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"Oil System Considerations for Performance Builds"}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:519",className:"space-y-4",style:{color:"rgba(255,255,255,0.7)",lineHeight:1.8},children:[h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:520",children:"The LS oil system is a wet-sump design in all production variants except the LS7 (dry sump). The stock oil pump is a gerotor design driven directly off the crankshaft snout â a significant improvement over the distributor-driven pumps of earlier small block designs. For street and mild performance builds, the factory pump is adequate. For high-RPM or sustained high-load applications, an upgraded pump with higher flow capacity is recommended."}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:523",children:'Oil viscosity selection is directly tied to bearing clearance. Tighter clearances (street spec, 0.0010"â0.0018") work well with conventional 5W-30 or 10W-30. Looser performance clearances (0.0022"â0.0028") require a thicker oil â typically 10W-40 or 15W-50 â to maintain adequate hydrodynamic film thickness at operating temperature. Running thin oil in a loosely-clearanced engine will result in bearing knock within a few thousand miles.'}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:526",children:"For boosted builds, oil coolers are strongly recommended. Turbo and supercharged LS engines generate significantly more heat in the oil, and sustained elevated oil temperatures above 250°F accelerate bearing wear and degrade oil film strength. A quality oil cooler with a thermostat bypass maintains oil temperature in the 180°Fâ220°F operating range regardless of ambient conditions."})]})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:533",custom:7,variants:fc,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:534",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"Common Failure Points & What to Inspect"}),h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:545",className:"space-y-4 mb-6",style:{color:"rgba(255,255,255,0.7)",lineHeight:1.8},children:h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:546",children:"Every used LS engine a builder receives should be inspected for the following known failure modes before any machining work begins. Catching these issues at tear-down prevents expensive rework after the block has been bored and honed."})}),h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:550",className:"space-y-3",children:[{issue:"Cam Bearing Spun / Worn",severity:"Critical",color:"#ef4444",detail:"Particularly common on high-mileage LS1 and LQ4 engines. Inspect cam bearing bores with a bore gauge. Worn bores require line boring and new cam bearings before any reassembly."},{issue:"Cylinder Wall Scoring",severity:"Critical",color:"#ef4444",detail:"Caused by piston ring failure or coolant intrusion. Inspect all cylinders with a bore light before measuring. Light scoring can sometimes be cleaned up with a bore job; deep scoring requires sleeve installation."},{issue:"AFM Lifter Failure (Gen IV)",severity:"High",color:"#f97316",detail
1123:"The Active Fuel Management (AFM/DOD) lifters on L99, LC9, and similar engines are notorious for collapsing. Always delete AFM on any performance build using a delete kit (solid lifters + valley cover + tune)."},{issue:"Cracked Cylinder Head (LS1/LS6)",severity:"High",color:"#f97316",detail:"Overheated LS1 and LS6 heads frequently crack between the valve seats. Pressure test all heads before machining. Cracked heads should be replaced, not welded."},{issue:"Spun Main Bearing",severity:"Critical",color:"#ef4444",detail:"Inspect all main bearing bores for out-of-round and scoring. A spun bearing often damages the crankshaft journal and the main bore simultaneously. Both require machine work."},{issue:"Coolant in Oil (Intake Gasket)",severity:"Moderate",color:"#eab308",detail:"Milky residue on the dipstick or in the valley. The plastic LS intake manifold seals with O-rings that can fail. Inspect and replace O-rings during every rebuild. Check for bearing damage from oil dilution."}].map(e=>h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:589",className:"flex gap-4 p-4 rounded-lg",style:{background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.06)"},children:[h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:594",className:"flex-shrink-0 mt-0.5",children:h.jsx("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:595",className:"text-xs font-mono px-2 py-0.5 rounded",style:{background:`${e.color}20`,color:e.color,border:`1px solid ${e.color}40`},children:e.severity})}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:602",children:[h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:603",className:"font-bold mb-1",style:{color:"#fff",fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1rem",letterSpacing:"0.03em"},children:e.issue}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:606",className:"text-sm",style:{color:"rgba(255,255,255,0.5)",lineHeight:1.6},children:e.detail})]})]},e.issue))})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:614",custom:8,variants:fc,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:615",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"Build Path Recommendations by Budget & Goal"}),h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:626",className:"grid md:grid-cols-3 gap-4",children:[{tier:"Budget Street",budget:"$2,500â$5,000",base:"LQ4 / LQ9 iron block",heads:"706/862 or 241/243 cathedral",cam:"Mild hydraulic roller (220/228 dur.)",hp:"400â450 hp",notes:"Junkyard iron block, budget heads, mild cam. Reliable 100k+ mile street engine. Best ROI for customer builds."},{tier:"Performance Street/Strip",budget:"$6,000â$12,000",base:"LS3 / L92 aluminum block",heads:"LS3 rectangular port (823 casting)",cam:"Aggressive hydraulic roller (228/236 dur.)",hp:"550â650 hp",notes:"416 or 427 stroker. LS3 heads as-cast. Forged rotating assembly. Excellent daily driver with track capability."},{tier:"Race / Max Effort",budget:"$15,000+",base:"LSX iron race block",heads:"CNC ported LS7 or aftermarket",cam:"Solid roller (240/248+ dur.)",hp:"700â1,000+ hp",notes:"LSX block for bore size and strength. Full machine work. Dry sump or accusump. Requires full engine management tune."}].map(e=>h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:656",className:"p-5 rounded-lg flex flex-col gap-3",style:{background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.07)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:661",children:[h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:662",className:"font-black uppercase mb-0.5",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.1rem",color:"#ff5c00"},children:e.tier}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:665",className:"text-xs font-mono",style:{color:"rgba(255,255,255,0.4)"},children:e.budget})]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:667",className:"space-y-2 text-xs",style:{color:"rgba(255,255,255,0.6)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:668",children:[h.jsx("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:668",style:{color:"rgba(255,255,255,0.3)"},children:"Base: "}),e.base]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:669",children:[h.jsx("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:669",style:{color:"rgba(255,255,255,0.3)"},children:"Heads: "}),e.heads]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:670",children:[h.jsx("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:670",style:{color:"rgba(255,255,255,0.3)"},children:"Cam: "}),e.cam]}),h.jsx("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:671",children:h.jsx("span",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:671",style:{color:"#ff5c00",fontFamily:"'JetBrains Mono', monospace"},children:e.hp})})]}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:673",className:"text-xs",style:{color:"rgba(255,255,255,0.4)",lineHeight:1.6,borderTop:"1px solid rgba(255,255,255,0.06)",paddingTop:"0.75rem"},children:e.notes})]},e.tier))})]}),h.jsxs(Je.div,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:682",custom:9,variants:fc,initial:"hidden",animate:"show",className:"rounded-lg p-8 text-center",style:{background:"rgba(255,92,0,0.08)",border:"1px solid rgba(255,92,0,0.25)"},children:[h.jsx(T1,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:690",className:"w-8 h-8 mx-auto mb-4",style:{color:"#ff5c00"}}),h.jsx("h3",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:691",className:"font-black uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em"},children:"Ready to Build Your LS?"}),h.jsx("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:697",className:"mb-6 text-sm",style:{color:"rgba(255,255,255,0.55)",lineHeight:1.7,maxWidth:"480px",margin:"0 auto 1.5rem"},children:"Start a build in EngineBuildr to document your tear-down, calculate clearances against LS family presets, and generate a professional customer estimate â all in one workflow."}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:700",className:"flex items-center justify-center gap-4 flex-wrap",children:[h.jsx(kt,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:701",href:"/builds/new",children:h.jsx("button",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:702",className:"px-6 py-2.5 rounded font-bold uppercase tracking-widest text-sm text-white",style:{background:"#ff5c00",fontFamily:"'Barlow Condensed', sans-serif"},children:"Start a New Build â"})}),h.jsx(kt,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:709",href:"/guides",children:h.jsx("button",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:710",className:"px-6 py-2.5 rounded font-bold uppercase tracking-widest text-sm",style:{border:"1px solid rgba(255,255,255,0.15)",color:"rgba(255,255,255,0.6)",fontFamily:"'Barlow Condensed', sans-serif"},children:"â Back to Guides"})})]})]})]})]}),h.jsxs("footer",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:724",className:"relative z-10 mt-16 py-8 px-8 text-center text-xs",style:{borderTop:"1px solid rgba(255,255,255,0.06)",color:"rgba(255,255,255,0.25)"},children:[h.jsxs("p",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:728",children:["© ",new Date().getFullYear()," EngineBuildr. Professional engine building platform for mechanics."]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:729",className:"flex items-center justify-center gap-4 mt-2",children:[h.jsx(kt,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:730",href:"/guides",className:"hover:text-white transition-colors",children:"Guides"}),h.jsx(kt,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:731",href:"/pricing",className:"hover:text-white transition-colors",children:"Pricing"}),h.jsx(kt,{"data-loc":"client/src/pages/guides/LSFamilyGuide.tsx:732",href:"/builds/new",className:"hover:text-white transition-colors",children:"Start Building"})]})]})]})}const Sl={hidden:{opacity:0,y:18},show:e=>({opacity:1,y:0,transition:{duration:.45,delay:e*.07}})},s5e=[{family:"GM LS (All)",journal:'2.559"',streetMin:'0.0010"',streetMax:'0.0020"',perfMin:'0.0020"',perfMax:'0.0025"',raceMin:'0.0025"',raceMax:'0.0030"',notes:"Use 10W-30 street, 10W-40 perf, 15W-50 race"},{family:"GM SBC (350/383/400)",journal:'2.450"',streetMin:'0.0010"',streetMax:'0.0020"',perfMin:'0.0018"',perfMax:'0.0025"',raceMin:'0.0025"',raceMax:'0.0030"',notes:"Iron block bores more consistently than aluminum."},{family:"GM BBC (454/496)",journal:'2.748"',streetMin:'0.0015"',streetMax:'0.0025"',perfMin:'0.0022"',perfMax:'0.0028"',raceMin:'0.0028"',raceMax:'0.0035"',n
1123otes:"Larger journal needs more clearance for oil film."},{family:"Ford 302 / 351W",journal:'2.249"',streetMin:'0.0008"',streetMax:'0.0015"',perfMin:'0.0015"',perfMax:'0.0022"',raceMin:'0.0022"',raceMax:'0.0028"',notes:"Smaller journal â tighter clearances are normal."},{family:"Ford 351C / 400M",journal:'2.749"',streetMin:'0.0015"',streetMax:'0.0025"',perfMin:'0.0022"',perfMax:'0.0028"',raceMin:'0.0028"',raceMax:'0.0035"',notes:"Cleveland has excellent oiling. Looser is fine."},{family:"Mopar 440 / Hemi",journal:'2.625"',streetMin:'0.0015"',streetMax:'0.0025"',perfMin:'0.0022"',perfMax:'0.0028"',raceMin:'0.0028"',raceMax:'0.0035"',notes:"Hemi has 5 mains. Watch #3 â most wear-prone."},{family:"Honda K-Series",journal:'2.165"',streetMin:'0.0007"',streetMax:'0.0014"',perfMin:'0.0014"',perfMax:'0.0020"',raceMin:'0.0020"',raceMax:'0.0025"',notes:"Very tight tolerances. Use 0W-20 or 5W-30 street."},{family:"Toyota 2JZ",journal:'2.362"',streetMin:'0.0010"',streetMax:'0.0018"',perfMin:'0.0018"',perfMax:'0.0024"',raceMin:'0.0024"',raceMax:'0.0030"',notes:"Strong block handles loose clearances well under boost."}
1123],i5e=[{step:"01",title:"Clean Everything Thoroughly",detail:"Wipe the main bearing bores, caps, and crankshaft journals with a clean lint-free cloth and brake cleaner. A single particle of debris between the bearing shell and bore will give a false reading. Do not use compressed air â it can embed particles in the bearing surface."},{step:"02",title:"Measure the Crankshaft Journal OD",detail:"Use a calibrated outside micrometer to measure each main journal at two perpendicular axes (12 o'clock / 3 o'clock) and at two axial positions (front and rear of journal). Record all four measurements. A journal that measures differently at the two axes is out-of-round and must be reground before assembly."},{step:"03",title:"Install Bearings and Torque Caps",detail:"Install the bearing shells in the block and caps without oil. Torque the main caps to factory spec (typically 65â75 ft-lb for LS engines) in the correct sequence â center cap first, then alternating outward. Use a torque wrench, not an impact gun."},{step:"04",title:"Measure the Bearing Bore ID",detail:"Use a dial bore gauge set to the nominal journal diameter. Insert it into each main bearing bore and rock it slightly to find the minimum reading â this is the true bore diameter. Record the measurement for each main position."},{step:"05",title:"Calculate Clearance",detail:'Clearance = Bearing Bore ID â Crankshaft Journal OD. Perform this calculation for each main position. If any position falls outside your target range, identify whether the issue is the journal (regrind), the bore (align hone), or the bearing shell (try a different size â most manufacturers offer 0.001" undersize shells).'},{step:"06",title:"Verify with Plastigage (Optional Cross-Check)",detail:'Cut a strip of Plastigage to the width of the journal. Place it on the journal (no oil), install the cap, torque to spec, then remove the cap. Compare the crushed Plastigage width to the scale on the package. This method is less precise than a bore gauge (±0.0005") but is a useful sanity check and requires no special tooling.'},{step:"07",title:"Check End Play",detail:'With all mains torqued, install a dial indicator against the crankshaft snout. Pry the crank forward and zero the gauge, then pry it rearward. The total movement is end play. Factory spec for most V8 engines is 0.002"â0.006". Excessive end play requires a new thrust bearing or thrust surface machining.'}];function o5e(){return h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:65",className:"min-h-screen",style:{background:"#0a0a0a",fontFamily:"'DM Sans', sans-serif",color:"#fff"},children:[h.jsx("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:70",className:"fixed inset-0 pointer-events-none",style:{backgroundImage:"radial-gradient(circle, rgba(255,92,0,0.06) 1px, transparent 1px)",backgroundSize:"28px 28px"}}),h.jsxs("nav",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:79",className:"sticky top-0 z-50 flex items-center justify-between px-8 py-4",style:{background:"rgba(10,10,10,0.92)",backdropFilter:"blur(12px)",borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[h.jsxs(kt,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:83",href:"/",className:"flex items-center gap-2",children:[h.jsx("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:84",className:"w-7 h-7 rounded flex items-center justify-center",style:{background:"#ff5c00"},children:h.jsx(ei,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:85",className:"w-3.5 h-3.5 text-white"})}),h.jsxs("span",{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:87",className:"font-bold tracking-widest text-sm uppercase",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:["Engine",h.jsx("span",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:88",style:{color:"#ff5c00"},children:"Buildr"})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:91",className:"flex items-center gap-6 text-sm",style:{color:"rgba(255,255,255,0.5)"},children:[h.jsx(kt,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:92",href:"/guides",className:"hover:text-white transition-colors",children:"Guides"}),h.jsx(kt,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:93",href:"/pricing",className:"hover:text-white transition-colors",children:"Pricing"}),h.jsx(kt,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:94",href:"/builds/new",children:h.jsx("button",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:95",className:"px-4 py-1.5 rounded text-white text-xs font-bold uppercase tracking-widest",style:{background:"#ff5c00",fontFamily:"'Barlow Condensed', sans-serif"},children:"Start Building"})})]})]}
1123),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:105",className:"relative z-10 max-w-4xl mx-auto px-6 py-12",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:107",className:"flex items-center gap-2 mb-8 text-sm",style:{color:"rgba(255,255,255,0.35)"},initial:{opacity:0},animate:{opacity:1},transition:{duration:.4},children:[h.jsxs(kt,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:114",href:"/guides",className:"flex items-center gap-1 hover:text-white transition-colors",children:[h.jsx(j5,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:115",className:"w-3.5 h-3.5"}),h.jsx("span",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:116",children:"Guides"})]}),h.jsx("span",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:118",children:"/"}),h.jsx("span",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:119",style:{color:"#ff5c00"},children:"Clearance Specs"})]}),h.jsxs(Je.div,{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:123",className:"mb-12",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:129",className:"flex items-center gap-3 mb-5 flex-wrap",children:[h.jsx("span",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:130",className:"text-xs font-mono px-2.5 py-1 rounded",style:{background:"rgba(255,92,0,0.15)",color:"#ff5c00",border:"1px solid rgba(255,92,0,0.3)"},children:"Clearance Specs"}),h.jsxs("span",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:136",className:"flex items-center gap-1.5 text-xs",style:{color:"rgba(255,255,255,0.3)"},children:[h.jsx(C1,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:137",className:"w-3 h-3"}),"8 min read"]}),h.jsx("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:140",className:"flex items-center gap-1.5 flex-wrap",children:["bearings","clearance","dial gauge","LS engine"].map(e=>h.jsxs("span",{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:142",className:"flex items-center gap-1 text-xs px-2 py-0.5 rounded",style:{background:"rgba(255,255,255,0.05)",color:"rgba(255,255,255,0.3)"},children:[h.jsx(Fw,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:147",className:"w-2.5 h-2.5"}),e]},e))})]}),h.jsxs("h1",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:153",className:"font-black uppercase mb-5",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"clamp(2rem, 5vw, 3.25rem)",letterSpacing:"0.02em",lineHeight:1.1},children:["How to Measure ",h.jsx("span",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:162",style:{color:"#ff5c00"},children:"Main Bearing"})," Clearance"]}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:164",style:{color:"rgba(255,255,255,0.55)",fontSize:"1.1rem",lineHeight:1.75,maxWidth:"680px"},children:"A step-by-step guide to measuring main bearing clearance with a dial bore gauge and Plastigage. Covers what clearance actually is, why it matters, acceptable ranges for street, performance, and race builds, and how oil viscosity relates to your target spec."})]}
1123),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:170",className:"space-y-14",children:[h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:173",custom:0,variants:Sl,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:174",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"What Is Main Bearing Clearance?"}),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:185",className:"space-y-4",style:{color:"rgba(255,255,255,0.7)",lineHeight:1.8},children:[h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:186",children:"Main bearing clearance is the measured gap between the outer diameter of the crankshaft's main journals and the inner diameter of the assembled main bearing shells. This gap â typically measured in ten-thousandths of an inch â is not a flaw in the engine's construction. It is a precisely engineered space that allows a pressurized film of oil to form between the rotating crankshaft and the stationary bearing surface."}
1123),h.jsxs("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:189",children:["When the engine is running and oil pressure is established, this film of oil lifts the crankshaft journal off the bearing surface entirely. The crank spins on a wedge of oil rather than on metal. This is called ",h.jsx("strong",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:190",style:{color:"#fff"},children:"hydrodynamic lubrication"}),", and it is the reason a properly built engine can run for hundreds of thousands of miles without measurable bearing wear. When clearance is wrong â either too tight or too loose â this oil film breaks down, and metal-to-metal contact begins."]}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:192",children:"Main bearing clearance is one of the most consequential measurements in an engine build. Getting it right is not optional. It directly determines bearing life, oil pressure, oil temperature, and the maximum power level the engine can sustain reliably."})]})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:199",custom:1,variants:Sl,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:200",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"Too Tight vs. Too Loose: What Actually Happens"}),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:211",className:"grid md:grid-cols-2 gap-4 mb-6",children:[h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:212",className:"p-5 rounded-lg",style:{background:"rgba(239,68,68,0.06)",border:"1px solid rgba(239,68,68,0.25)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:216",className:"flex items-center gap-2 mb-3",children:[h.jsx(qi,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:217",className:"w-4 h-4",style:{color:"#ef4444"}}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:218",className:"font-black uppercase text-sm",style:{fontFamily:"'Barlow Condensed', sans-serif",color:"#ef4444",letterSpacing:"0.05em"},children:'Too Tight (< 0.0008")'})]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:222",className:"space-y-2 text-sm",style:{color:"rgba(255,255,255,0.6)",lineHeight:1.7},children:[h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:223",children:"The oil film cannot form properly because there is insufficient space for oil to enter and pressurize. The crank journal contacts the bearing surface directly during startup and at high loads."}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:224",children:"Symptoms: hard starting when cold, immediate bearing knock on first startup, rapid bearing wear, spun bearings within a few hundred miles. Tight clearances also generate excess heat from friction, which further degrades oil viscosity and accelerates failure."})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:227",className:"p-5 rounded-lg",style:{background:"rgba(234,179,8,0.06)",border:"1px solid rgba(234,179,8,0.25)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:231",className:"flex items-center gap-2 mb-3",children:[h.jsx(qi,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:232",className:"w-4 h-4",style:{color:"#eab308"}}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:233",className:"font-black uppercase text-sm",style:{fontFamily:"'Barlow Condensed', sans-serif",color:"#eab308",letterSpacing:"0.05em"},children:'Too Loose (> 0.0035")'})]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:237",className:"space-y-2 text-sm",style:{color:"rgba(255,255,255,0.6)",lineHeight:1.7},children:[h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:238",children:"Excessive clearance allows the oil film to drain away too quickly. The crank journal drops onto the bearing surface under load, causing impact loading rather than smooth hydrodynamic support."}
1123),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:239",children:"Symptoms: low oil pressure (especially at idle), bearing knock under load, rapid bearing wear from impact fatigue, oil aeration from excessive splash. Loose clearances also rob oil pressure from the rest of the engine â lifters, cam bearings, and rod bearings all suffer."})]})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:243",className:"p-5 rounded-lg",style:{background:"rgba(16,185,129,0.06)",border:"1px solid rgba(16,185,129,0.2)"},children:[h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:247",className:"flex items-center gap-2 mb-2",children:[h.jsx(sx,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:248",className:"w-4 h-4",style:{color:"#10b981"}}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:249",className:"font-bold text-sm",style:{color:"#10b981",fontFamily:"'Barlow Condensed', sans-serif",letterSpacing:"0.04em"},children:"THE CORRECT RANGE"})]}
1123),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:253",className:"text-sm",style:{color:"rgba(255,255,255,0.6)",lineHeight:1.7},children:'For a typical street LS build, 0.0010"â0.0020" provides the optimal balance of oil film formation, oil pressure retention, and bearing longevity. Performance builds targeting 500+ hp should use 0.0020"â0.0025" with a heavier oil viscosity (10W-40 or 15W-50) to maintain film thickness at elevated operating temperatures.'})]})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:260",custom:2,variants:Sl,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:261",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"Tools Required"}),h.jsx("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:272",className:"grid md:grid-cols-2 gap-4",children:[{tool:"Dial Bore Gauge",purpose:'Measures the assembled bearing bore ID. Must be set to the nominal journal diameter before use. Resolution of 0.0001" required.',required:!0},{tool:"Outside Micrometer",purpose:'Measures the crankshaft journal OD. Must be calibrated. A 2"â3" range covers most V8 main journals.',required:!0},{tool:"Torque Wrench",purpose:"Main caps must be torqued to factory spec before measuring. An impact gun will give inconsistent readings.",required:!0},{tool:"Plastigage (Green)",purpose:'Green Plastigage covers 0.001"â0.003" range â correct for most performance builds. Used as a cross-check, not primary measurement.',required:!1},{tool:"Dial Indicator + Magnetic Base",purpose:"Required for measuring crankshaft end play (thrust bearing clearance). Mount to block, contact crank snout.",required:!0},{tool:"Lint-Free Cleaning Cloths",purpose:"Bearing bores and journals must be perfectly clean. Any debris will cause false readings and potential bearing damage.",required:!0}].map(e=>
1123h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:305",className:"flex gap-3 p-4 rounded-lg",style:{background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.06)"},children:[h.jsx("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:310",className:"flex-shrink-0 mt-0.5",children:h.jsx("span",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:311",className:"text-xs font-mono px-1.5 py-0.5 rounded",style:e.required?{background:"rgba(255,92,0,0.15)",color:"#ff5c00"}:{background:"rgba(255,255,255,0.06)",color:"rgba(255,255,255,0.4)"},children:e.required?"Required":"Optional"})}),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:322",children:[h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:323",className:"font-bold mb-1",style:{color:"#fff",fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1rem",letterSpacing:"0.03em"},children:e.tool}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:326",className:"text-sm",style:{color:"rgba(255,255,255,0.45)",lineHeight:1.6},children:e.purpose})]})]},e.tool))})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:334",custom:3,variants:Sl,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:335",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"Step-by-Step Measurement Procedure"}),h.jsx("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:346",className:"space-y-4",children:i5e.map((e,t)=>h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:348",className:"flex gap-5 p-5 rounded-lg",style:{background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.06)"},children:[h.jsx("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:353",className:"flex-shrink-0 w-10 h-10 rounded flex items-center justify-center font-black text-sm",style:{background:"rgba(255,92,0,0.15)",border:"1px solid rgba(255,92,0,0.3)",color:"#ff5c00",fontFamily:"'JetBrains Mono', monospace"},children:e.step}
1123),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:364",children:[h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:365",className:"font-black uppercase mb-2",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.05rem",letterSpacing:"0.04em",color:"#fff"},children:e.title}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:371",className:"text-sm",style:{color:"rgba(255,255,255,0.55)",lineHeight:1.7},children:e.detail})]})]},e.step))})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:379",custom:4,variants:Sl,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:380",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"Plastigage vs. Dial Bore Gauge: Which to Use?"}),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:391",className:"space-y-4 mb-6",style:{color:"rgba(255,255,255,0.7)",lineHeight:1.8},children:[h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:392",children:"This is one of the most common debates in engine building circles, and the answer depends on the application. For a professional shop building performance engines, a dial bore gauge and outside micrometer combination is the only acceptable primary measurement method. The resolution of a properly calibrated bore gauge is 0.0001 inch â ten times more precise than Plastigage's practical accuracy of ±0.0005 inch."}),h.jsxs("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:395",children:["Plastigage has a legitimate role as a ",h.jsx("strong",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:396",style:{color:"#fff"},children:"verification tool"}),", not a primary measurement tool. After you have measured and confirmed clearances with a bore gauge, a Plastigage check on the most critical main position (typically the center main) gives you a second data point and confirms that your assembly is consistent with your measurements. If the Plastigage reading disagrees significantly with your bore gauge measurement, something is wrong â either the gauge is miscalibrated, or there is debris in the bore."]})]}
1123),h.jsx("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:399",className:"overflow-x-auto rounded-lg",style:{border:"1px solid rgba(255,255,255,0.08)"},children:h.jsxs("table",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:400",className:"w-full text-sm",style:{borderCollapse:"collapse"},children:[h.jsx("thead",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:401",children:h.jsx("tr",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:402",style:{background:"rgba(255,92,0,0.12)",borderBottom:"1px solid rgba(255,92,0,0.3)"},children:["Method","Accuracy","Cost","Skill Required","Best Use"].map(e=>h.jsx("th",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:404",className:"text-left px-4 py-3 text-xs font-mono uppercase tracking-wider",style:{color:"#ff5c00"},children:e},e))})}),h.jsx("tbody",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:410",children:[{method:"Dial Bore Gauge + Micrometer",accuracy:'±0.0001"',cost:"$150â$400",skill:"Moderate",use:"Primary measurement â all builds"},{method:"Plastigage (Green)",accuracy:'±0.0005"',cost:"$5â$10",skill:"Low",use:"Cross-check / verification only"},{method:"Snap Gauge + Micrometer",accuracy:'±0.0002"',cost:"$50â$150",skill:"Moderate",use:"Acceptable for street builds"}].map((e,t)=>
1123h.jsxs("tr",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:416",style:{borderBottom:"1px solid rgba(255,255,255,0.05)",background:t%2===0?"rgba(255,255,255,0.01)":"transparent"},children:[h.jsx("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:417",className:"px-4 py-3 font-medium",style:{color:"#fff"},children:e.method}),h.jsx("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:418",className:"px-4 py-3 font-mono",style:{color:"#10b981"},children:e.accuracy}),h.jsx("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:419",className:"px-4 py-3",style:{color:"rgba(255,255,255,0.6)"},children:e.cost}),h.jsx("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:420",className:"px-4 py-3",style:{color:"rgba(255,255,255,0.6)"},children:e.skill}),h.jsx("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:421",className:"px-4 py-3 text-xs",style:{color:"rgba(255,255,255,0.5)"},children:e.use})]},e.method))})]})})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:430",custom:5,variants:Sl,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:431",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"Main Bearing Clearance Specs by Engine Family"}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:442",className:"mb-5",style:{color:"rgba(255,255,255,0.6)",lineHeight:1.7},children:"The following specifications represent practical working ranges derived from factory service manuals and established performance build practices. Street specs are appropriate for daily-driven vehicles with conventional or synthetic motor oil. Performance specs assume forged rotating assemblies and synthetic oil. Race specs require premium synthetic oil with a viscosity matched to the clearance range."}),h.jsx("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:445",className:"overflow-x-auto rounded-lg",style:{border:"1px solid rgba(255,255,255,0.08)"},children:h.jsxs("table",{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:446",className:"w-full text-sm",style:{borderCollapse:"collapse"},children:[h.jsx("thead",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:447",children:h.jsx("tr",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:448",style:{background:"rgba(255,92,0,0.12)",borderBottom:"1px solid rgba(255,92,0,0.3)"},children:["Engine Family","Journal OD","Street","Performance","Race","Notes"].map(e=>h.jsx("th",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:450",className:"text-left px-3 py-3 text-xs font-mono uppercase tracking-wider",style:{color:"#ff5c00",whiteSpace:"nowrap"},children:e},e))})}),h.jsx("tbody",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:456",children:s5e.map((e,t)=>h.jsxs("tr",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:458",style:{borderBottom:"1px solid rgba(255,255,255,0.05)",background:t%2===0?"rgba(255,255,255,0.01)":"transparent"},children:[h.jsx("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:459",className:"px-3 py-3 font-medium",style:{color:"#fff",whiteSpace:"nowrap"},children:e.family}
1123),h.jsx("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:460",className:"px-3 py-3 font-mono",style:{color:"rgba(255,255,255,0.7)",whiteSpace:"nowrap"},children:e.journal}),h.jsxs("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:461",className:"px-3 py-3 font-mono text-xs",style:{color:"#10b981",whiteSpace:"nowrap"},children:[e.streetMin,"â",e.streetMax]}),h.jsxs("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:462",className:"px-3 py-3 font-mono text-xs",style:{color:"#3b82f6",whiteSpace:"nowrap"},children:[e.perfMin,"â",e.perfMax]}),h.jsxs("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:463",className:"px-3 py-3 font-mono text-xs",style:{color:"#ff5c00",whiteSpace:"nowrap"},children:[e.raceMin,"â",e.raceMax]}),h.jsx("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:464",className:"px-3 py-3 text-xs",style:{color:"rgba(255,255,255,0.4)",minWidth:"200px"},children:e.notes})]},e.family))})]})})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:473",custom:6,variants:Sl,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:474",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"Oil Viscosity and Bearing Clearance: The Direct Relationship"}),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:485",className:"space-y-4",style:{color:"rgba(255,255,255,0.7)",lineHeight:1.8},children:[h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:486",children:"Oil viscosity and bearing clearance are inseparable. The oil film that supports the crankshaft journal depends on both the size of the gap (clearance) and the thickness of the fluid (viscosity). Changing one without accounting for the other is a common cause of premature bearing failure in rebuilt engines."}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:489",children:'A tight-clearance engine (0.0010"â0.0015") requires a thinner oil to flow into the narrow gap and form a film. Running 20W-50 in a tight-clearance engine will result in insufficient oil flow to the bearings at startup, particularly in cold weather. Conversely, a loose-clearance engine (0.0025"â0.0030") requires a thicker oil to maintain film thickness â the oil must be viscous enough to resist being squeezed out of the larger gap under load. Running 5W-20 in a loose-clearance race engine will result in oil pressure loss and bearing knock at high RPM.'})]}),h.jsx("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:493",className:"mt-5 overflow-x-auto rounded-lg",style:{border:"1px solid rgba(255,255,255,0.08)"},children:h.jsxs("table",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:494",className:"w-full text-sm",style:{borderCollapse:"collapse"},children:[h.jsx("thead",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:495",children:h.jsx("tr",{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:496",style:{background:"rgba(255,92,0,0.12)",borderBottom:"1px solid rgba(255,92,0,0.3)"},children:["Clearance Range","Application","Recommended Viscosity","Notes"].map(e=>h.jsx("th",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:498",className:"text-left px-4 py-3 text-xs font-mono uppercase tracking-wider",style:{color:"#ff5c00"},children:e},e))})}),h.jsx("tbody",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:504",children:[{range:'0.0007"â0.0015"',app:"Tight / OEM",visc:"0W-20, 5W-20, 5W-30",notes:"Modern import engines, tight-tolerance OEM builds"},{range:'0.0015"â0.0020"',app:"Street Performance",visc:"5W-30, 10W-30",notes:"Most street LS and SBC builds. Conventional or full-synthetic."},{range:'0.0020"â0.0025"',app:"Performance",visc:"10W-40, 15W-40",notes:"Forged builds, mild boost. Full synthetic required."},{range:'0.0025"â0.0030"',app:"Race / High-RPM",visc:"15W-50, 20W-50",notes:"High-RPM NA or boosted builds. Premium synthetic only."},{range:'0.0030"+',app:"Extreme Race",visc:"20W-50, straight 50",notes:"Drag race, dry sump. Oil changed every event."}].map((e,t)=>
1123h.jsxs("tr",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:512",style:{borderBottom:"1px solid rgba(255,255,255,0.05)",background:t%2===0?"rgba(255,255,255,0.01)":"transparent"},children:[h.jsx("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:513",className:"px-4 py-3 font-mono font-bold",style:{color:"#ff5c00"},children:e.range}),h.jsx("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:514",className:"px-4 py-3",style:{color:"rgba(255,255,255,0.7)"},children:e.app}),h.jsx("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:515",className:"px-4 py-3 font-mono",style:{color:"#10b981"},children:e.visc}),h.jsx("td",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:516",className:"px-4 py-3 text-xs",style:{color:"rgba(255,255,255,0.45)"},children:e.notes})]},e.range))})]})})]}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:525",custom:7,variants:Sl,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:526",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,92,0,0.2)"},children:"Common Mistakes and How to Avoid Them"}),h.jsx("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:537",className:"space-y-3",children:[{mistake:"Measuring Without Torquing the Caps",detail:"Main bearing bores are not perfectly round until the caps are torqued to spec. Measuring an untorqued bore gives a meaningless number. Always torque to factory specification before measuring.",severity:"Critical",color:"#ef4444"},{mistake:"Using Only Plastigage on a Performance Build",detail:'Plastigage accuracy of ±0.0005" is insufficient for performance builds where the target clearance range may only be 0.0010" wide. A bore gauge is mandatory for any build targeting 400+ hp.',severity:"High",color:"#f97316"},{mistake:"Not Checking for Out-of-Round Journals",detail:'A crankshaft journal that is 0.0005" out-of-round will give different clearance readings at different measurement angles. Always measure journals at two perpendicular axes. Out-of-round journals must be reground.',severity:"High",color:"#f97316"},{mistake:"Ignoring Bearing Crush",detail:"Bearing shells are manufactured slightly larger than the bore to create crush when the cap is torqued. If a bearing shell spins freely in the bore without the cap torqued, it is the correct size. If it is loose with the cap torqued, the bore is oversized and needs align honing.",severity:"Moderate",color:"#eab308"},{mistake:"Mixing Bearing Shell Sizes",detail:"Using a standard shell in one half and an undersize shell in the other half will create an off-center bore and uneven clearance. All shells at each main position must be the same size.",severity:"Critical",color:"#ef4444"},{mistake:"Not Checking End Play",detail:"Main bearing clearance is only half the measurement. Crankshaft end play (thrust bearing clearance) must also be verified. Excessive end play causes torque converter or clutch wear and can eventually allow the crank to walk out of the block.",severity:"Moderate",color:"#eab308"}].map(e=>
1123h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:576",className:"flex gap-4 p-4 rounded-lg",style:{background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.06)"},children:[h.jsx("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:581",className:"flex-shrink-0 mt-0.5",children:h.jsx("span",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:582",className:"text-xs font-mono px-2 py-0.5 rounded",style:{background:`${e.color}20`,color:e.color,border:`1px solid ${e.color}40`},children:e.severity})}),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:589",children:[h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:590",className:"font-bold mb-1",style:{color:"#fff",fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1rem",letterSpacing:"0.03em"},children:e.mistake}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:593",className:"text-sm",style:{color:"rgba(255,255,255,0.5)",lineHeight:1.6},children:e.detail})]})]},e.mistake))})]}
1123),h.jsx(Je.div,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:601",custom:8,variants:Sl,initial:"hidden",animate:"show",className:"rounded-lg p-6",style:{background:"rgba(255,92,0,0.06)",border:"1px solid rgba(255,92,0,0.25)"},children:h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:609",className:"flex items-start gap-4",children:[h.jsx(qu,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:610",className:"w-5 h-5 mt-0.5 flex-shrink-0",style:{color:"#ff5c00"}}),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:611",children:[h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:612",className:"font-black uppercase mb-2",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.1rem",color:"#ff5c00",letterSpacing:"0.05em"},children:"Measure It in EngineBuildr's Spec Calculator"}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:618",className:"text-sm mb-4",style:{color:"rgba(255,255,255,0.6)",lineHeight:1.7},children:"The interactive Clearance Inspector in EngineBuildr lets you enter your measured main bearing clearance values against factory presets for LS, SBC, BBC, Ford, Mopar, Honda, and Toyota engines. You get instant pass/fail evaluation, color-coded status, and a printable spec sheet for your customer file â all in one place."}
1123),h.jsx(kt,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:621",href:"/builds/new",children:h.jsx("button",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:622",className:"px-5 py-2 rounded font-bold uppercase tracking-widest text-sm text-white",style:{background:"#ff5c00",fontFamily:"'Barlow Condensed', sans-serif"},children:"Start a Build to Use the Spec Calculator â"})})]})]})}),h.jsxs(Je.section,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:634",custom:9,variants:Sl,initial:"hidden",animate:"show",children:[h.jsx("h2",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:635",className:"font-black uppercase mb-5 pb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.4rem",letterSpacing:"0.04em",borderBottom:"1px solid rgba(255,255,255,0.08)"},children:"Related Guides"}),h.jsx("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:646",className:"grid md:grid-cols-2 gap-4",children:[{slug:"ls-engine-family-guide",title:"The Complete LS Engine Family Guide",desc:"LS variant specs, bore/stroke combos, head casting identification, and build path recommendations.",category:"Engine Families",color:"#3b82f6"},{slug:"piston-to-wall-clearance",title:"Piston-to-Wall Clearance: Street vs. Race Specs",desc:"How piston-to-wall clearance differs between cast, hypereutectic, and forged pistons.",category:"Clearance Specs",color:"#ff5c00"}].map(e=>
1123h.jsx(kt,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:663",href:`/guides/${e.slug}`,children:h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:664",className:"group p-5 rounded-lg cursor-pointer",style:{background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.07)",transition:"border-color 0.2s"},onMouseEnter:t=>{t.currentTarget.style.borderColor="rgba(255,92,0,0.3)"},onMouseLeave:t=>{t.currentTarget.style.borderColor="rgba(255,255,255,0.07)"},children:[h.jsx("span",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:674",className:"text-xs font-mono px-2 py-0.5 rounded mb-3 inline-block",style:{background:`${e.color}15`,color:e.color},children:e.category}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:680",className:"font-bold mb-1 group-hover:text-orange-400 transition-colors",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.05rem"},children:e.title}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:683",className:"text-xs",style:{color:"rgba(255,255,255,0.4)",lineHeight:1.6},children:e.desc})]})},e.slug))})]}),h.jsxs(Je.div,{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:691",custom:10,variants:Sl,initial:"hidden",animate:"show",className:"rounded-lg p-8 text-center",style:{background:"rgba(255,92,0,0.08)",border:"1px solid rgba(255,92,0,0.25)"},children:[h.jsx(T1,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:699",className:"w-8 h-8 mx-auto mb-4",style:{color:"#ff5c00"}}),h.jsx("h3",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:700",className:"font-black uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"1.6rem",letterSpacing:"0.04em"},children:"Ready to Put This Into Practice?"}),h.jsx("p",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:706",className:"mb-6 text-sm",style:{color:"rgba(255,255,255,0.55)",lineHeight:1.7,maxWidth:"480px",margin:"0 auto 1.5rem"},children:"Start a build in EngineBuildr to document your measurements, calculate clearances against engine family presets, and generate a professional customer estimate with a printable spec sheet."}),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:709",className:"flex items-center justify-center gap-4 flex-wrap",children:[h.jsx(kt,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:710",href:"/builds/new",children:h.jsx("button",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:711",className:"px-6 py-2.5 rounded font-bold uppercase tracking-widest text-sm text-white",style:{background:"#ff5c00",fontFamily:"'Barlow Condensed', sans-serif"},children:"Start a New Build â"})}),h.jsx(kt,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:718",href:"/guides",children:h.jsx("button",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:719",className:"px-6 py-2.5 rounded font-bold uppercase tracking-widest text-sm",style:{border:"1px solid rgba(255,255,255,0.15)",color:"rgba(255,255,255,0.6)",fontFamily:"'Barlow Condensed', sans-serif"},children:"â Back to Guides"})})]})]})]})]}),h.jsxs("footer",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:733",className:"relative z-10 mt-16 py-8 px-8 text-center text-xs",style:{borderTop:"1px solid rgba(255,255,255,0.06)",color:"rgba(255,255,255,0.25)"},children:[h.jsxs("p",{"data-loc":"client/src/pages/guides/MainBearing
1123Clearance.tsx:737",children:["© ",new Date().getFullYear()," EngineBuildr. Professional engine building platform for mechanics."]}),h.jsxs("div",{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:738",className:"flex items-center justify-center gap-4 mt-2",children:[h.jsx(kt,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:739",href:"/guides",className:"hover:text-white transition-colors",children:"Guides"}),h.jsx(kt,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:740",href:"/pricing",className:"hover:text-white transition-colors",children:"Pricing"}),h.jsx(kt,{"data-loc":"client/src/pages/guides/MainBearingClearance.tsx:741",href:"/builds/new",className:"hover:text-white transition-colors",children:"Start Building"})]})]})]})}const Av={hidden:{opacity:0,y:16},visible:(e=0)=>({opacity:1,y:0,transition:{duration:.4,delay:e*.06}})},l5e="July 3, 2026",fo="EngineBuildr",c5e="enginebuildr.manus.space",Lv="[email protected]";function u5e(){return h.jsxs("div",{"data-loc":"client/src/pages/Terms.tsx:20",className:"min-h-screen bg-background text-foreground",children:[h.jsxs("header",{"data-loc":"client/src/pages/Terms.tsx:22",className:"sticky top-0 z-40 flex items-center justify-between px-6 py-4 border-b border-border bg-background/80 backdrop-blur-md",children:[h.jsx(kt,{"data-loc":"client/src/pages/Terms.tsx:23",href:"/",children:h.jsxs("div",{"data-loc":"client/src/pages/Terms.tsx:24",className:"flex items-center gap-2.5 cursor-pointer",children:[h.jsx("img",{"data-loc":"client/src/pages/Terms.tsx:25",src:"/manus-storage/logo_icon_0e7d0be8.png",alt:"EngineBuildr logo",className:"w-7 h-7 object-contain"}),h.jsxs("span",{"data-loc":"client/src/pages/Terms.tsx:26",className:"text-lg font-bold tracking-wide",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:["ENGINE",h.jsx("span",{"data-loc":"client/src/pages/Terms.tsx:27",style:{color:"var(--orange)"},children:"BUILDR"})]})]})}),h.jsx(kt,{"data-loc":"client/src/pages/Terms.tsx:31",href:"/",children:h.jsxs("button",{"data-loc":"client/src/pages/Terms.tsx:32",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[h.jsx(j5,{"data-loc":"client/src/pages/Terms.tsx:33",className:"w-4 h-4"}),"Back to Home"]})})]}),h.jsxs("main",{"data-loc":"client/src/pages/Terms.tsx:39",className:"max-w-3xl mx-auto px-6 py-16",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/Terms.tsx:40",initial:"hidden",animate:"visible",variants:Av,children:[h.jsx("div",{"data-loc":"client/src/pages/Terms.tsx:41",className:"inline-block text-xs font-mono px-2.5 py-1 rounded border mb-6",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)",borderColor:"var(--orange-dim)",background:"var(--orange-dim)"},children:"LEGAL"}),h.jsx("h1",{"data-loc":"client/src/pages/Terms.tsx:47",className:"text-5xl font-bold uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Terms of Service"}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:50",className:"text-sm text-muted-foreground mb-10",children:["Last updated: ",l5e]})]}),h.jsxs(Je.div,{"data-loc":"client/src/pages/Terms.tsx:53",initial:"hidden",animate:"visible",variants:Av,custom:1,className:"prose prose-invert max-w-none space-y-8 text-sm text-muted-foreground leading-relaxed",children:[h.jsxs("section",{"data-loc":"client/src/pages/Terms.tsx:55",children:[h.jsx("h2",{"data-loc":"client/src/pages/Terms.tsx:56",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"1. Acceptance of Terms"}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:57",children:["By accessing or using ",fo,' ("the Service") at ',h.jsx("strong",{"data-loc":"client/src/pages/Terms.tsx:58",className:"text-foreground",children:c5e}),', you agree to be bound by these Terms of Service ("Terms"). If you do not agree to all of these Terms, do not use the Service. The
1123se Terms apply to all visitors, users, and others who access or use the Service.']})]}),h.jsxs("section",{"data-loc":"client/src/pages/Terms.tsx:62",children:[h.jsx("h2",{"data-loc":"client/src/pages/Terms.tsx:63",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"2. Description of Service"}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:64",children:[fo,' is a software-as-a-service (SaaS) platform designed for professional engine builders and automotive performance shops. The Service provides tools for engine build documentation, clearance specification calculation, machine shop order generation, parts management, and customer estimate delivery. The Service is provided "as is" and may be updated, modified, or discontinued at any time.']})]}),h.jsxs("section",{"data-loc":"client/src/pages/Terms.tsx:69",children:[h.jsx("h2",{"data-loc":"client/src/pages/Terms.tsx:70",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"3. Accounts and Registration"}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:71",children:["To access certain features of the Service, you must register for an account. You agree to provide accurate, current, and complete information during registration and to update such information to keep it accurate, current, and complete. You are responsible for safeguarding your account credentials and for all activities that occur under your account. You must notify us immediately of any unauthorized use of your account at ",h.jsx("strong",{"data-loc":"client/src/pages/Terms.tsx:72",className:"text-foreground",children:Lv}),"."]}),h.jsx("p",{"data-loc":"client/src/pages/Terms.tsx:74",className:"mt-3",children:"You must be at least 18 years of age to create an account and use the Service. By creating an account, you represent and warrant that you are at least 18 years old."})]}),h.jsxs("section",{"data-loc":"client/src/pages/Terms.tsx:79",children:[h.jsx("h2",{"data-loc":"client/src/pages/Terms.tsx:80",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"4. Subscriptions and Billing"}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:81",children:[fo," offers paid subscription plans. By subscribing, you authorize us to charge your payment method on a recurring basis at the rate and frequency specified at the time of purchase. All fees are stated in US dollars and are non-refundable except as required by applicable law or as explicitly stated in these Terms."]}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:84",className:"mt-3",children:[h.jsx("strong",{"data-loc":"client/src/pages/Terms.tsx:85",className:"text-foreground",children:"Free Trial."})," We may offer a free trial period. At the end of the trial period, your subscription will automatically convert to a paid plan unless you cancel before the trial ends. We will not charge you during the trial period."]}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:87",className:"mt-3",children:[h.jsx("strong",{"data-loc":"client/src/pages/Terms.tsx:88",className:"text-foreground",children:"Cancellation."})," You may cancel your subscription at any time through your account settings. Cancellation takes effect at the end of the current billing period. You will retain access to the Service until the end of the paid period."]}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:90",className:"mt-3",children:[h.jsx("strong",{"data-loc":"client/src/pages/Terms.tsx:91",className:"text-foreground",children:"Price Changes."})," We reserve the right to change subscription pricing at any time. We will provide at least 30 days' notice before any price change takes effect. Your continued use of the Service after the price change constitutes your agreement to pay the new price."]})]}),h.jsxs("section",{"data-loc":"client/src/pages/Terms.tsx:95",children:[h.jsx("h2",{"data-loc":"client/src/pages/Terms.tsx:96",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"5. Acceptable Use"}),h.jsx("p",{"data-loc":"client/src/pages/Terms.tsx:97",children:"You agree not to use the Service to:"}),h.jsxs("ul",{"data-loc":"client/src/pages/Terms.tsx:98",className:"list-disc pl-5 mt-2 space-y-1",children:[h.jsx("li",{"data-loc":"client/src/pages/Terms.tsx:99",children:"Violate any applicable local, state, national, or international law or regulation;"}),h.jsx("li",{"data-loc":"client/src/pages/Terms.tsx:100",children:"Transmit any material that is defamatory, offensive, or otherwise objectionable;"}),h.jsx("li",{"data-loc":"client/src/pages/Terms.tsx:101",children:"Attempt to gain unauthorized access to any portion of the Service or its related systems;"}),h.jsx("li",{"data-loc":"client/src/pages/Terms.tsx:102",children:"Interfere with or disrupt the integrity or performance of the Service;"}),h.jsx("li",{"data-loc":"client/src/pages/Terms.tsx:103",children:"Harvest or collect email addresses or other contact information of other users;"}),h.jsx("li",{"data-loc":"client/src/pages/Terms.tsx:104",children:"Use the Service for any commercial purpose not expressly permitted by these Terms;"}),h.jsx("li",{"data-loc":"client/src/pages/Terms.tsx:105",children:"Rever
1123se engineer, decompile, or disassemble any portion of the Service."})]})]}),h.jsxs("section",{"data-loc":"client/src/pages/Terms.tsx:109",children:[h.jsx("h2",{"data-loc":"client/src/pages/Terms.tsx:110",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"6. Intellectual Property"}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:111",children:["The Service and its original content, features, and functionality are and will remain the exclusive property of ",fo," and its licensors. Our trademarks and trade dress may not be used in connection with any product or service without the prior written consent of ",fo,"."]}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:114",className:"mt-3",children:[h.jsx("strong",{"data-loc":"client/src/pages/Terms.tsx:115",className:"text-foreground",children:"Your Content."}),' You retain ownership of any data, content, or information you submit to the Service ("User Content"). By submitting User Content, you grant ',fo," a worldwide, non-exclusive, royalty-free license to use, store, and process your User Content solely to provide and improve the Service."]})]}),h.jsxs("section",{"data-loc":"client/src/pages/Terms.tsx:119",children:[h.jsx("h2",{"data-loc":"client/src/pages/Terms.tsx:120",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"7. Technical Accuracy Disclaimer"}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:121",children:["The clearance specifications, torque values, machining tolerances, and other technical data provided by the Service are for informational and reference purposes only. While we strive for accuracy, ",fo," does not warrant that any technical specifications are correct, complete, or suitable for any particular engine application. Always verify critical specifications against manufacturer documentation and consult a qualified engine builder before performing any engine work. ",fo," is not liable for any engine damage, personal injury, or property damage resulting from reliance on information provided by the Service."]})]}),h.jsxs("section",{"data-loc":"client/src/pages/Terms.tsx:126",children:[h.jsx("h2",{"data-loc":"client/src/pages/Terms.tsx:127",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"8. Limitation of Liability"}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:128",children:["To the maximum extent permitted by applicable law, ",fo," and its officers, directors, employees, and agents shall not be liable for any indirect, incidental, special, consequential, or punitive damages, including but not limited to loss of profits, data, use, goodwill, or other intangible losses, resulting from: (i) your access to or use of (or inability to access or use) the Service; (ii) any conduct or content of any third party on the Service; (iii) any content obtained from the Service; or (iv) unauthorized access, use, or alteration of your transmissions or content."]}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:131",className:"mt-3",children:["In no event shall ",fo,"'s total liability to you for all claims exceed the greater of (a) the amount you paid to ",fo," in the twelve (12) months preceding the claim, or (b) one hundred US dollars ($100)."]})]}),h.jsxs("section",{"data-loc":"client/src/pages/Terms.tsx:136",children:[h.jsx("h2",{"data-loc":"client/src/pages/Terms.tsx:137",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"9. Indemnification"}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:138",children:["You agree to defend, indemnify, and hold harmless ",fo," and its licensors, service providers, employees, contractors, agents, officers, and directors from and against any claims, liabilities, damages, judgments, awards, losses, costs, expenses, or fees (including reasonable attorneys' fees) arising out of or relating to your violation of these Terms or your use of the Service."]})]}),h.jsxs("section",{"data-loc":"client/src/pages/Terms.tsx:143",children:[h.jsx("h2",{"data-loc":"client/src/pages/Terms.tsx:144",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"10. Termination"}),h.jsx("p",{"data-loc":"client/src/pages/Terms.tsx:145",children:"We may terminate or suspend your account and access to the Service immediately, without prior notice or liability, for any reason, including if you breach these Terms. Upon termination, your right to use the Service will immediately cease. All provisions of these Terms that by their nature should survive termination shall survive, including ownership provisions, warranty disclaimers, indemnity, and limitations of liability."})]}),h.jsxs("section",{"data-loc":"client/src/pages/Terms.tsx:150",children:[h.jsx("h2",{"data-loc":"client/src/pages/Terms.tsx:151",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"11. Governing Law"}),h.jsx("p",{"data-loc":"client/src/pages/Terms.tsx:152",children:"These Terms shall be governed by and construed in accordance with the laws of the United States, without regard to its conflict of law provisions. Any disputes arising under these Terms shall be resolved through binding arbitration in accordance with the rules of the American Arbitration Association, except that either party may seek injunctive relief in a court of competent jurisdiction."})]}),h.jsxs("section",{"data-loc":"client/src/pages/Terms.tsx:157",children:[h.jsx("h2",{"data-loc":"client/src/pages/Terms.tsx:158",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"12. Changes to Terms"}),h.jsx("p",{"data-loc":"client/src/pages/Terms.tsx:159",children:'We reserve the right to modify these Terms at any time. We will provide notice of material changes by updating the "Last updated" date at the top of this page and, where appropriate, by sending an email notification. Your continued use of the Service after any changes constitutes your acceptance of the new Terms.'})]}),h.jsxs("section",{"data-loc":"client/src/pages/Terms.tsx:164",children:[h.jsx("h2",{"data-loc":"client/src/pages/Terms.tsx:165",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"13. Contact Us"}),h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:166",children:["If you have any questions about these Terms, please contact us at:"," ",h.jsx("a",{"data-loc":"client/src/pages/Terms.tsx:168",href:`mailto:${Lv}`,className:"text-foreground hover:underline",style:{color:"var(--orange)"},children:Lv})]})]})]}),h.jsxs(Je.div,{"data-loc":"client/src/pages/Terms.tsx:176",initial:"hidden",animate:"visible",variants:Av,custom:2,className:"mt-12 pt-8 border-t border-border flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[h.jsxs("p",{"data-loc":"client/src/pages/Terms.tsx:177",className:"text-xs text-muted-foreground",children:["© 2026 ",fo,". All rights reserved."]}),h.jsxs("div",{"data-loc":"client/src/pages/Terms.tsx:178",className:"flex items-center gap-4 text-xs",children:[h.jsx(kt,{"data-loc":"client/src/pages/Terms.tsx:179",href:"/privacy",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Privacy Policy"}),h.jsx(kt,{"data-loc":"client/src/pages/Terms.tsx:180",href:"/",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Home"})]})]})]})]})}const Mv={hidden:{opacity:0,y:16},visible:(e=0)=>({opacity:1,y:0,transition:{duration:.4,delay:e*.06}})},d5e="July 3, 2026",Q2="EngineBuildr",h5e="enginebuildr.manus.space",X2="[email protected]";function f5e(){return h.jsxs("div",{"data-loc":"client/src/pages/Privacy.tsx:20",className:"min-h-screen bg-background text-foreground",children:[h.jsxs("header",{"data-loc":"client/src/pages/Privacy.tsx:22",className:"sticky top-0 z-40 flex items-center justify-between px-6 py-4 border-b border-border bg-background/80 backdrop-blur-md",children:[h.jsx(kt,{"data-loc":"client/src/pages/Privacy.tsx:23",href:"/",children:h.jsxs("div",{"data-loc":"client/src/pages/Privacy.tsx:24",className:"flex items-center gap-2.5 cursor-pointer",children:[h.jsx("img",{"data-loc":"client/src/pages/Privacy.tsx:25",src:"/manus-storage/logo_icon_0e7d0be8.png",alt:"EngineBuildr logo",className:"w-7 h-7 object-contain"}),h.jsxs("span",{"data-loc":"client/src/pages/Privacy.tsx:26",className:"text-lg font-bold tracking-wide",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:["ENGINE",h.jsx("span",{"data-loc":"client/src/pages/Privacy.tsx:27",style:{color:"var(--orange)"},children:"BUILDR"})]})]})}),h.jsx(kt,{"data-loc":"client/src/pages/Privacy.tsx:31",href:"/",children:h.jsxs("button",{"data-loc":"client/src/pages/Privacy.tsx:32",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[h.jsx(j5,{"data-loc":"client/src/pages/Privacy.tsx:33",className:"w-4 h-4"}),"Back to Home"]})})]}),h.jsxs("main",{"data-loc":"client/src/pages/Privacy.tsx:39",className:"max-w-3xl mx-auto px-6 py-16",children:[h.jsxs(Je.div,{"data-loc":"client/src/pages/Privacy.tsx:40",initial:"hidden",animate:"visible",variants:Mv,children:[h.jsx("div",{"data-loc":"client/src/pages/Privacy.tsx:41",className:"inline-block text-xs font-mono px-2.5 py-1 rounded border mb-6",style:{fontFamily:"'JetBrains Mono', monospace",color:"var(--orange)",borderColor:"var(--orange-dim)",background:"var(--orange-dim)"},children:"LEGAL"}),h.jsx("h1",{"data-loc":"client/src/pages/Privacy.tsx:47",className:"text-5xl font-bold uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"Privacy Policy"}),h.jsxs("p",{"data-loc":"client/src/pages/Privacy.tsx:50",className:"text-sm text-muted-foreground mb-10",children:["Last updated: ",d5e]})]}),h.jsxs(Je.div,{"data-loc":"client/src/pages/Privacy.tsx:53",initial:"hidden",animate:"visible",variants:Mv,custom:1,className:"space-y-8 text-sm text-muted-foreground leading-relaxed",children:[h.jsx("section",{"data-loc":"client/src/pages/Privacy.tsx:55",children:h.jsxs("p",{"data-loc":"client/src/pages/Privacy.tsx:56",children:[Q2,' ("we," "us," or "our") operates the website at ',h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:57",className:"text-foreground",children:h5e}
1123),". This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our Service. Please read this policy carefully. If you disagree with its terms, please discontinue use of the Service."]})}),h.jsxs("section",{"data-loc":"client/src/pages/Privacy.tsx:61",children:[h.jsx("h2",{"data-loc":"client/src/pages/Privacy.tsx:62",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"1. Information We Collect"}),h.jsx("h3",{"data-loc":"client/src/pages/Privacy.tsx:64",className:"text-base font-semibold text-foreground mb-2",children:"1.1 Information You Provide Directly"}),h.jsxs("ul",{"data-loc":"client/src/pages/Privacy.tsx:65",className:"list-disc pl-5 space-y-1 mb-4",children:[h.jsxs("li",{"data-loc":"client/src/pages/Privacy.tsx:66",children:[h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:66",className:"text-foreground",children:"Account information:"})," name, email address, and profile data provided during registration via OAuth."]}),h.jsxs("li",{"data-loc":"client/src/pages/Privacy.tsx:67",children:[h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:67",className:"text-foreground",children:"Build data:"})," engine specifications, component selections, clearance measurements, photos, and notes you enter into the Service."]}),h.jsxs("li",{"data-loc":"client/src/pages/Privacy.tsx:68",children:[h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:68",className:"text-foreground",children:"Payment information:"})," billing details processed securely through Stripe. We do not store full card numbers or CVV codes."]}),h.jsxs("li",{"data-loc":"client/src/pages/Privacy.tsx:69",children:[h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:69",className:"text-foreground",children:"Communications:"})," messages you send to our support team."]})]}),h.jsx("h3",{"data-loc":"client/src/pages/Privacy.tsx:72",className:"text-base font-semibold text-foreground mb-2",children:"1.2 Information Collected Automatically"}),h.jsxs("ul",{"data-loc":"client/src/pages/Privacy.tsx:73",className:"list-disc pl-5 space-y-1 mb-4",children:[h.jsxs("li",{"data-loc":"client/src/pages/Privacy.tsx:74",children:[h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:74",className:"text-foreground",children:"Usage data:"})," pages visited, features used, time spent, and actions taken within the Service."]}),h.jsxs("li",{"data-loc":"client/src/pages/Privacy.tsx:75",children:[h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:75",className:"text-foreground",children:"Device information:"})," IP address, browser type and version, operating system, and device identifiers."]}),h.jsxs("li",{"data-loc":"client/src/pages/Privacy.tsx:76",children:[h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:76",className:"text-foreground",children:"Cookies and similar technologies:"})," session cookies for authentication and analytics cookies for understanding usage patterns."]})]}),h.jsx("h3",{"data-loc":"client/src/pages/Privacy.tsx:79",className:"text-base font-semibold text-foreground mb-2",children:"1.3 Information from Third Parties"}),h.jsx("p",{"data-loc":"client/src/pages/Privacy.tsx:80",children:"We may receive information about you from third-party services you connect to the Service, such as OAuth authentication providers. We use this information only to create and manage your account."})]}),h.jsxs("section",{"data-loc":"client/src/pages/Privacy.tsx:85",children:[h.jsx("h2",{"data-loc":"client/src/pages/Privacy.tsx:86",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"2. How We Use Your Information"}),h.jsx("p",{"data-loc":"client/src/pages/Privacy.tsx:87",children:"We use the information we collect to:"}),h.jsxs("ul",{"data-loc":"client/src/pages/Privacy.tsx:88",className:"list-disc pl-5 mt-2 space-y-1",children:[h.jsx("li",{"data-loc":"client/src/pages/Privacy.tsx:89",children:"Provide, operate, and maintain the Service;"}),h.jsx("li",{"data-loc":"client/src/pages/Privacy.tsx:90",children:"Process transactions and send related information, including purchase confirmations and invoices;"}),h.jsx("li",{"data-loc":"client/src/pages/Privacy.tsx:91",children:"Send administrative information, such as updates to our Terms or Privacy Policy;"}),h.jsx("li",{"data-loc":"client/src/pages/Privacy.tsx:92",children:"Send transactional emails, including account welcome messages, payment receipts, and trial expiry notices;"}),h.jsx("li",{"data-loc":"client/src/pages/Privacy.tsx:93",children:"Respond to your comments, questions, and requests for customer support;"}),h.jsx("li",{"data-loc":"client/src/pages/Privacy.tsx:94",children:"Monitor and analyze usage patterns to improve the Service;"}),h.jsx("li",{"data-loc":"client/src/pages/Privacy.tsx:95",children:"Detect, prevent, and address technical issues and fraudulent activity;"}),h.jsx("li",{"data-loc":"client/src/pages/Privacy.tsx:96",children:"Comply with legal obligations."})]}),h.jsx("p",{"data-loc":"client/src/pages/Privacy.tsx:98",className:"mt-3",children:"We do not sell your personal information to third parties. We do not use your build data or engine specifications for any purpose other than providing the Service to you."})]}),h.jsxs("section",{"data-loc":"client/src/pages/Privacy.tsx:103",children:[h.jsx("h2",{"data-loc":"client/src/pages/Privacy.tsx:104",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"3. How We Share Your Information"}),h.jsx("p",{"data-loc":"client/src/pages/Privacy.tsx:105",children:"We may share your information in the following circumstances:"}),h.jsx("h3",{"data-loc":"client/src/pages/Privacy.tsx:107",className:"text-base font-semibold text-foreground mt-4 mb-2",children:"3.1 Service Providers"}),h.jsx("p",{"data-loc":"client/src/pages/Privacy.tsx:108",children:"We share information with third-party vendors and service providers that perform services on our behalf, including payment processing (Stripe), cloud hosting, analytics, and email delivery. These providers are contractually obligated to use your information only to provide services to us."}),h.jsx("h3",{"data-loc":"client/src/pages/Privacy.tsx:112",className:"text-base font-semibold text-foreground mt-4 mb-2",children:"3.2 Customer Estimates"}),h.jsx("p",{"data-loc":"client/src/pages/Privacy.tsx:113",children:"When you generate a customer estimate and share the link, the recipient can view the build details and pricing included in that estimate. You control what information is included and who receives the link."}),h.jsx("h3",{"data-loc":"client/src/pages/Privacy.tsx:117",className:"text-base font-semibold text-foreground mt-4 mb-2",children:"3.3 Legal Requirements"}),h.jsx("p",{"data-loc":"client/src/pages/Privacy.tsx:118",children:"We may disclose your information if required to do so by law or in response to valid requests by public authorities (e.g., a court or government agency)."}),h.jsx("h3",{"data-loc":"client/src/pages/Privacy.tsx:122",className:"text-base font-semibold text-foreground mt-4 mb-2",children:"3.4 Business Transfers"}),h.jsxs("p",{"data-loc":"client/src/pages/Privacy.tsx:123",children:["If ",Q2," is involved in a merger, acquisition, or sale of all or a portion of its assets, your information may be transferred as part of that transaction. We will notify you via email and/or a prominent notice on the Service before your information is transferred and becomes subject to a different privacy policy."]})]}),h.jsxs("section",{"data-loc":"client/src/pages/Privacy.tsx:128",children:[h.jsx("h2",{"data-loc":"client/src/pages/Privacy.tsx:129",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"4. Data Retention"}),h.jsx("p",{"data-loc":"client/src/pages/Privacy.tsx:130",children:"We retain your personal information for as long as your account is active or as needed to provide the Service. If you delete your account, we will delete or anonymize your personal information within 30 days, except where we are required to retain it for legal or regulatory purposes. Build data associated with your account will be deleted along with your account."})]}),h.jsxs("section",{"data-loc":"client/src/pages/Privacy.tsx:135",children:[h.jsx("h2",{"data-loc":"client/src/pages/Privacy.tsx:136",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"5. Data Security"}),h.jsx("p",{"data-loc":"client/src/pages/Privacy.tsx:137",children:"We implement industry-standard security measures to protect your information, including encryption in transit (TLS/HTTPS), encrypted storage for sensitive data, and access controls limiting who can access your data. However, no method of transmission over the Internet or method of electronic storage is 100% secure. We cannot guarantee absolute security."})]}),h.jsxs("section",{"data-loc":"client/src/pages/Privacy.tsx:142",children:[h.jsx("h2",{"data-loc":"client/src/pages/Privacy.tsx:143",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"6. Cookies"}),h.jsx("p",{"data-loc":"client/src/pages/Privacy.tsx:144",children:"We use cookies and similar tracking technologies to track activity on the Service and hold certain information. Cookies are files with a small amount of data that may include an anonymous unique identifier."}),h.jsxs("p",{"data-loc":"client/src/pages/Privacy.tsx:147",className:"mt-3",children:[h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:148",className:"text-foreground",children:"Essential cookies:"})," Required for authentication and core Service functionality. These cannot be disabled."]}),h.jsxs("p",{"data-loc":"client/src/pages/Privacy.tsx:150",className:"mt-3",children:[h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:151",className:"text-foreground",children:"Analytics cookies:"})," Used to understand how visitors interact with the Service. You can opt out of analytics tracking by adjusting your browser settings."]})]}),h.jsxs("section",{"data-loc":"client/src/pages/Privacy.tsx:155",children:[h.jsx("h2",{"data-loc":"client/src/pages/Privacy.tsx:156",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"7. Your Rights"}),h.jsx("p",{"data-loc":"client/src/pages/Privacy.tsx:157",children:"Depending on your location, you may have the following rights regarding your personal information:"}),h.jsxs("ul",{"data-loc":"client/src/pages/Privacy.tsx:158",className:"list-disc pl-5 mt-2 space-y-1",children:[h.jsxs("li",{"data-loc":"client/src/pages/Privacy.tsx:159",children:[h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:159",className:"text-foreground",children:"Access:"})," Request a copy of the personal information we hold about you."]}),h.jsxs("li",{"data-loc":"client/src/pages/Privacy.tsx:160",children:[h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:160",className:"text-foreground",children:"Correction:"})," Request correction of inaccurate or incomplete information."]}),h.jsxs("li",{"data-loc":"client/src/pages/Privacy.tsx:161",children:[h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:161",className:"text-foreground",children:"Deletion:"}
1123)," Request deletion of your personal information, subject to certain exceptions."]}),h.jsxs("li",{"data-loc":"client/src/pages/Privacy.tsx:162",children:[h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:162",className:"text-foreground",children:"Portability:"})," Request a machine-readable copy of your data."]}),h.jsxs("li",{"data-loc":"client/src/pages/Privacy.tsx:163",children:[h.jsx("strong",{"data-loc":"client/src/pages/Privacy.tsx:163",className:"text-foreground",children:"Objection:"})," Object to processing of your personal information for certain purposes."]})]}),h.jsxs("p",{"data-loc":"client/src/pages/Privacy.tsx:165",className:"mt-3",children:["To exercise any of these rights, please contact us at"," ",h.jsx("a",{"data-loc":"client/src/pages/Privacy.tsx:167",href:`mailto:${X2}`,style:{color:"var(--orange)"},className:"hover:underline",children:X2}),". We will respond to your request within 30 days."]})]}),h.jsxs("section",{"data-loc":"client/src/pages/Privacy.tsx:173",children:[h.jsx("h2",{"data-loc":"client/src/pages/Privacy.tsx:174",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"8. Children's Privacy"}),h.jsx("p",{"data-loc":"client/src/pages/Privacy.tsx:175",children:"The Service is not directed to individuals under the age of 18. We do not knowingly collect personal information from children under 18. If we become aware that a child under 18 has provided us with personal information, we will take steps to delete such information."})]}),h.jsxs("section",{"data-loc":"client/src/pages/Privacy.tsx:180",children:[h.jsx("h2",{"data-loc":"client/src/pages/Privacy.tsx:181",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"9. Third-Party Links"}),h.jsxs("p",{"data-loc":"client/src/pages/Privacy.tsx:182",children:["The Service may contain links to third-party websites or services that are not owned or c
1123ontrolled by ",Q2,". We have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services. We encourage you to review the privacy policy of every site you visit."]})]}),h.jsxs("section",{"data-loc":"client/src/pages/Privacy.tsx:187",children:[h.jsx("h2",{"data-loc":"client/src/pages/Privacy.tsx:188",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"10. Changes to This Policy"}),h.jsx("p",{"data-loc":"client/src/pages/Privacy.tsx:189",children:'We may update this Privacy Policy from time to time. We will notify you of any material changes by updating the "Last updated" date at the top of this page and, where appropriate, by sending an email notification. Your continued use of the Service after any changes constitutes your acceptance of the new Privacy Policy.'})]}),h.jsxs("section",{"data-loc":"client/src/pages/Privacy.tsx:194",children:[h.jsx("h2",{"data-loc":"client/src/pages/Privacy.tsx:195",className:"text-xl font-bold text-foreground uppercase mb-3",style:{fontFamily:"'Barlow Condensed', sans-serif"},children:"11. Contact Us"}),h.jsxs("p",{"data-loc":"client/src/pages/Privacy.tsx:196",children:["If you have any questions about this Privacy Policy or our data practices, please contact us at:"," ",h.jsx("a",{"data-loc":"client/src/pages/Privacy.tsx:198",href:`mailto:${X2}`,style:{color:"var(--orange)"},className:"hover:underline",children:X2})]})]})]}),h.jsxs(Je.div,{"data-loc":"client/src/pages/Privacy.tsx:206",initial:"hidden",animate:"visible",variants:Mv,custom:2,className:"mt-12 pt-8 border-t border-border flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[h.jsxs("p",{"data-loc":"client/src/pages/Privacy.tsx:207",className:"text-xs text-muted-foreground",children:["© 2026 ",Q2,". All rights reserved."]}),h.jsxs("div",{"data-loc":"client/src/pages/Privacy.tsx:208",className:"flex items-center gap-4 text-xs",children:[h.jsx(kt,{"data-loc":"client/src/pages/Privacy.tsx:209",href:"/terms",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Terms of Service"}),h.jsx(kt,{"data-loc":"client/src/pages/Privacy.tsx:210",href:"/",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Home"})]})]})]})]})}function p5e(){return h.jsxs(bJ,{"data-loc":"client/src/App.tsx:26",children:[h.jsx(_s,{"data-loc":"client/src/App.tsx:27",path:"/",component:CJ}),h.jsx(_s,{"data-loc":"client/src/App.tsx:28",path:"/pricing",component:qxe}),h.jsx(_s,{"data-loc":"client/src/App.tsx:29",path:"/billing/success",component:$xe}),h.jsx(_s,{"data-loc":"client/src/App.tsx:30",path:"/dashboard",component:DJ}),h.jsx(_s,{"data-loc":"client/src/App.tsx:31",path:"/builds/new",component:zxe}),h.jsx(_s,{"data-loc":"client/src/App.tsx:32",path:"/builds/:id",component:Dxe}),h.jsx(_s,{"data-loc":"client/src/App.tsx:33",path:"/builds/:id/estimate",component:Hxe}),h.jsx(_s,{"data-loc":"client/src/App.tsx:34",path:"/estimate/:token",component:Wxe}),h.jsx(_s,{"data-loc":"client/src/App.tsx:35",path:"/locations",component:Yxe}),h.jsx(_s,{"data-loc":"client/src/App.tsx:36",path:"/parts",component:Jxe}),h.jsx(_s,{"data-loc":"client/src/App.tsx:37",path:"/guides",component:Zxe}),h.jsx(_s,{"data-loc":"client/src/App.tsx:38",path:"/guides/ls-engine-family-guide",component:a5e}),h.jsx(_s,{"data-loc":"client/src/App.tsx:39",path:"/guides/main-bearing-clearance",component:o5e}),h.jsx(_s,{"data-loc":"client/src/App.tsx:40",path:"/terms",component:u5e}),h.jsx(_s,{"data-loc":"client/src/App.tsx:41",path:"/privacy",component:f5e}),h.jsx(_s,{"data-loc":"client/src/App.tsx:42",path:"/search-console-setup",component:t5e}),h.jsx(_s,{"data-loc":"client/src/App.tsx:43",path:"/404",component:t_}),h.jsx(_s,{"data-loc":"client/src/App.tsx:44",component:t_})]})}function m5e(){return h.jsx(yJ,{"data-loc":"client/src/App.tsx:51",children:h.jsx(wJ,{"data-loc":"client/src/App.tsx:52",defaultTheme:"dark",children:h.jsxs(H$,{"data-loc":"client/src/App.tsx:53",children:[h.jsx(Zq,{"data-loc":"client/src/App.tsx:54"}),h.jsx(p5e,{"data-loc":"client/src/App.tsx:55"})]})})})}const g5=new Kz,fF=e=>{!(e instanceof ep)||typeof window>"u"||!(e.message===jU)||(window.location.href=cO())};g5.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;fF(t),console.error("[API Query Error]",t)}});g5.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;fF(t),console.error("[API Mutation Error]",t)}});const g5e=Tr.createClient({links:[oU({url:"/api/trpc",transformer:Wu,headers(){try{const e=sessionStorage.getItem("manus-cookie");if(e){const t=`${PU}=`,r=e.split(";").find(a=>a.trim().startsWith(t))?.trim().slice(t.length);if(r)return{Authorization:`Bearer ${r}`}}}catch{}return{}},fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});HU.createRoot(document.getElementById("root")).render(h.jsx(Tr.Provider,{"data-loc":"client/src/main.tsx:76",client:g5e,queryClient:g5,children:h.jsx(Zz,{"data-loc":"client/src/main.tsx:77",client:g5,children:h.jsx(m5e,{"data-loc":"client/src/main.tsx:78"})})}));export{_r as _,me as a,T5e as b,x5e as c,x5 as g,Mr as k};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.