zt-react-milkdown 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{dist-Cxaq2crg.js → commands-BJpevWrH.js} +123 -123
- package/dist/commands-BmZHd6RL.js +2 -0
- package/dist/{dist-CPVooDwj.cjs → commands-CM7IuhpT.cjs} +2 -2
- package/dist/commands-f4yOm8DQ.cjs +1 -0
- package/dist/{debounce-Bqj_3iJs.cjs → debounce-C_TNzOFT.cjs} +1 -1
- package/dist/{dist-DaM7GJv6.js → dist-CLTsQjPD.js} +319 -318
- package/dist/{dist-CxZn1qUo.js → dist-CZTw9GLV.js} +198 -198
- package/dist/dist-DQnWlYyo.cjs +5 -0
- package/dist/dist-ZPtYoqTI.cjs +1 -0
- package/dist/floating-ui.dom-CV-TLBRq.cjs +1 -0
- package/dist/floating-ui.dom-CoOubeUs.js +762 -0
- package/dist/index.cjs +25 -149
- package/dist/index.mjs +6235 -15737
- package/dist/{lib-C8xOD1Bp.cjs → lib-5pUyY-Tl.cjs} +1 -1
- package/dist/{lib-DkE7Uq2b.js → lib-Bhr5EVOu.js} +110 -112
- package/dist/lib-BmAQCwSQ.cjs +1 -0
- package/dist/{lib-wmHesNI0.js → lib-C1A-pN4b.js} +574 -575
- package/dist/lib-CVebEyb8.cjs +4 -0
- package/dist/lib-ChwoE6v5.js +331 -0
- package/dist/lib-DIx8C5AZ.cjs +1 -0
- package/dist/lib-DVE2k9i1.js +387 -0
- package/dist/{lib-DzK_kn7a.js → lib-D_0WAhKU.js} +3 -3
- package/dist/{lib-m8lKZKxK.js → lib-Dd20rlmV.js} +28 -28
- package/dist/lib-De0djIEV.cjs +5 -0
- package/dist/{lib-D4HMdvmK.cjs → lib-DgEwQN1U.cjs} +1 -1
- package/dist/{dist-Dhukmh4L.js → lib-DmD940Fq.js} +2849 -1735
- package/dist/lib-Dplx6t-N.cjs +3 -0
- package/dist/lib-DzY83R_P.cjs +39 -0
- package/dist/lib-F08NY8fk.cjs +1 -0
- package/dist/{lib-B0rHJ9lJ.js → lib-_NDReOAt.js} +3 -3
- package/dist/{lib-CK9MEMX-.js → lib-bsXGz3fj.js} +28 -27
- package/dist/schema-list-D9Q6QKgo.cjs +1 -0
- package/dist/schema-list-DooYP5HM.js +110 -0
- package/dist/src/core/createEditor.d.ts.map +1 -1
- package/dist/src/local/en-US.d.ts.map +1 -1
- package/dist/src/local/zh-CN.d.ts.map +1 -1
- package/dist/src/plugins/custom/block-transform/block-transform.d.ts +15 -0
- package/dist/src/plugins/custom/block-transform/block-transform.d.ts.map +1 -0
- package/dist/src/plugins/custom/block-transform/index.d.ts +2 -0
- package/dist/src/plugins/custom/block-transform/index.d.ts.map +1 -0
- package/dist/src/plugins/custom/math/index.d.ts +6 -0
- package/dist/src/plugins/custom/math/index.d.ts.map +1 -1
- package/dist/src/plugins/custom/math/math-block-editable.d.ts.map +1 -1
- package/dist/src/plugins/custom/math/math-inline-arrow-navigation.d.ts +5 -0
- package/dist/src/plugins/custom/math/math-inline-arrow-navigation.d.ts.map +1 -0
- package/dist/src/plugins/custom/math/math-inline-edit-plugin.d.ts +29 -0
- package/dist/src/plugins/custom/math/math-inline-edit-plugin.d.ts.map +1 -0
- package/dist/src/plugins/custom/math/math-inline-editable.d.ts +7 -0
- package/dist/src/plugins/custom/math/math-inline-editable.d.ts.map +1 -0
- package/dist/src/plugins/custom/math/math-plugin.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/constants.d.ts +5 -1
- package/dist/src/plugins/custom/selection-tooltip/constants.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/index.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/tooltip-view.d.ts +34 -3
- package/dist/src/plugins/custom/selection-tooltip/tooltip-view.d.ts.map +1 -1
- package/dist/src/plugins/custom/selection-tooltip/types.d.ts +16 -1
- package/dist/src/plugins/custom/selection-tooltip/types.d.ts.map +1 -1
- package/dist/src/plugins/custom/slash-menu/slash-menu-commands.d.ts.map +1 -1
- package/dist/src/plugins/custom/slash-menu/slash-menu-logic.d.ts +4 -0
- package/dist/src/plugins/custom/slash-menu/slash-menu-logic.d.ts.map +1 -1
- package/dist/src/plugins/custom/slash-menu/slash-menu-view.d.ts.map +1 -1
- package/dist/src/plugins/custom/slash-menu/slash-menu.d.ts.map +1 -1
- package/dist/src/plugins/preset-common.d.ts +6 -0
- package/dist/src/plugins/preset-common.d.ts.map +1 -1
- package/dist/src/react/hooks/useMilkdownEditor.d.ts +2 -2
- package/dist/src/react/hooks/useMilkdownEditor.d.ts.map +1 -1
- package/dist/src/types/editor.d.ts +35 -5
- package/dist/src/types/editor.d.ts.map +1 -1
- package/dist/state-BC1dqWPQ.cjs +1 -0
- package/dist/state-BvRk9kiK.cjs +0 -0
- package/dist/state-BvRk9kiK.js +0 -0
- package/dist/state-rTW_1XVf.js +3 -0
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/commands-CDrea4WB.cjs +0 -1
- package/dist/commands-DoqeX5uJ.js +0 -36
- package/dist/dist-BCCSKc3M.cjs +0 -5
- package/dist/dist-C0PSMrs7.cjs +0 -37
- package/dist/dist-mOpTMw1E.cjs +0 -1
- package/dist/floating-ui.dom-CKbcbmJV.js +0 -883
- package/dist/floating-ui.dom-VaZZ2gzS.cjs +0 -1
- package/dist/index.browser-5LtNN9G9.cjs +0 -1
- package/dist/index.browser-D2DmEB8o.js +0 -26
- package/dist/lib-38nxOnTd.cjs +0 -4
- package/dist/lib-8Tr6mAln.cjs +0 -1
- package/dist/lib-BJgvZywM.cjs +0 -3
- package/dist/lib-BNOSyYeU.cjs +0 -3
- package/dist/lib-C5AzmhNY.cjs +0 -5
- package/dist/lib-CCUU16r8.js +0 -1081
- package/dist/lib-DWZA8C0h.cjs +0 -1
- package/dist/lib-Dbe-cVjv.js +0 -367
- package/dist/lib-IahjxPWM.cjs +0 -3
- package/dist/lib-r5eNG0sa.js +0 -754
- package/dist/rolldown-runtime-CerMd-t8.cjs +0 -1
- package/dist/rolldown-runtime-DnwLefa7.js +0 -23
- package/dist/schema-list-DSdBEAWW.js +0 -171
- package/dist/schema-list-bL8FNes5.cjs +0 -1
- package/dist/state-CHAiIqOA.cjs +0 -1
- package/dist/state-DNxqltZl.js +0 -16
- /package/dist/{debounce-Cuk3VGPr.js → debounce-Z8-khnlZ.js} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,128 +1,4 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./rolldown-runtime-CerMd-t8.cjs`),t=require(`./dist-BCCSKc3M.cjs`),n=require(`./lib-IahjxPWM.cjs`),r=require(`./dist-C0PSMrs7.cjs`),i=require(`./dist-CPVooDwj.cjs`),a=require(`./lib-DWZA8C0h.cjs`),o=require(`./schema-list-bL8FNes5.cjs`),s=require(`./lib-BNOSyYeU.cjs`),c=require(`./floating-ui.dom-VaZZ2gzS.cjs`),l=require(`./lib-BJgvZywM.cjs`),u=require(`./debounce-Bqj_3iJs.cjs`),d=require(`./dist-mOpTMw1E.cjs`);let f=require(`react`),p=e.r(f,1);f=e.r(f);let m=require(`react-dom`);m=e.r(m,1);let h=require(`react/jsx-runtime`);function g(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=g(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function _(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=g(e))&&(r&&(r+=` `),r+=t);return r}var v=e=>typeof e==`string`?e:``,y=(e,t,n)=>{let r=typeof e==`string`,[i,a]=(0,p.useState)(v(t));return{markdown:(0,p.useMemo)(()=>r?v(e):i,[i,r,e]),setMarkdown:(0,p.useCallback)(e=>{r||a(e),n?.(e)},[r,n]),isControlled:r}};function b(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}var x=(e,t)=>typeof e==`function`?n=>{t.action(e(n))}:()=>void 0,S=(e,t,n)=>{if(Array.isArray(n)){n.forEach((n,r)=>{e.push({name:`${t}-${r}`,plugin:n})});return}e.push({name:t,plugin:n})},C=(e,t={})=>{let n=[],r=t.includeRuntime??!0;return S(n,`listener`,e.listener),S(n,`commonmark`,e.commonmark),S(n,`gfm`,e.gfm),S(n,`code-block-prism`,e.codeBlockPrism),S(n,`code-block-language-picker`,e.codeBlockLanguagePicker),r&&(S(n,`clipboard`,e.clipboard),S(n,`indent`,e.indent)),S(n,`table-arrow-entry`,e.tableArrowEntry),S(n,`math-backspace-entry`,e.mathBackspaceEntry),S(n,`blockquote-backspace-lift`,e.blockquoteBackspaceLift),S(n,`table-focus-actions`,e.tableFocusActions),S(n,`selection-tooltip`,e.selectionTooltip),S(n,`gap-cursor`,e.gapCursor),S(n,`drop-cursor`,e.dropCursor),S(n,`math`,e.math),S(n,`task-list-toggle`,e.taskListToggle),S(n,`tab-space-indent`,e.tabSpaceIndent),S(n,`code-block-mod-a-select`,e.codeBlockModASelect),e.slash&&S(n,`slash`,e.slash),n},w=(e,t)=>{if(!(t in e))throw Error(`Milkdown API 缺少必需导出: ${t}`);return e[t]};function T(e={}){return new t.i({view(t){return new E(t,e)}})}var E=class{constructor(e,t){this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=t.width??1,this.color=t.color===!1?void 0:t.color||`black`,this.class=t.class,this.handlers=[`dragover`,`dragend`,`drop`,`dragleave`].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){this.cursorPos!=null&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,n,r=this.editorView.dom,i=r.getBoundingClientRect(),a=i.width/r.offsetWidth,o=i.height/r.offsetHeight;if(t){let t=e.nodeBefore,r=e.nodeAfter;if(t||r){let e=this.editorView.nodeDOM(this.cursorPos-(t?t.nodeSize:0));if(e){let i=e.getBoundingClientRect(),a=t?i.bottom:i.top;t&&r&&(a=(a+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*o;n={left:i.left,right:i.right,top:a-s,bottom:a+s}}}}if(!n){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;n={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement(`div`)),this.class&&(this.element.className=this.class),this.element.style.cssText=`position: absolute; z-index: 50; pointer-events: none;`,this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle(`prosemirror-dropcursor-block`,t),this.element.classList.toggle(`prosemirror-dropcursor-inline`,!t);let c,l;if(!s||s==document.body&&getComputedStyle(s).position==`static`)c=-pageXOffset,l=-pageYOffset;else{let e=s.getBoundingClientRect(),t=e.width/s.offsetWidth,n=e.height/s.offsetHeight;c=e.left-s.scrollLeft*t,l=e.top-s.scrollTop*n}this.element.style.left=(n.left-c)/a+`px`,this.element.style.top=(n.top-l)/o+`px`,this.element.style.width=(n.right-n.left)/a+`px`,this.element.style.height=(n.bottom-n.top)/o+`px`}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,a=typeof i==`function`?i(this.editorView,n,e):i;if(n&&!a){let e=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let n=t.g(this.editorView.state.doc,e,this.editorView.dragging.slice);n!=null&&(e=n)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}},ee=2,te=`var(--zt-primary)`,D=a.u(()=>T({color:te,width:ee})),O=class e extends t.o{constructor(e){super(e,e)}map(n,r){let i=n.resolve(r.map(this.head));return e.valid(i)?new e(i):t.o.near(i)}content(){return t.k.empty}eq(t){return t instanceof e&&t.head==this.head}toJSON(){return{type:`gapcursor`,pos:this.head}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for GapCursor.fromJSON`);return new e(t.resolve(n.pos))}getBookmark(){return new ne(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!ie(e)||!ae(e))return!1;let n=t.type.spec.allowGapCursor;if(n!=null)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(n,r,i=!1){search:for(;;){if(!i&&e.valid(n))return n;let a=n.pos,o=null;for(let t=n.depth;;t--){let i=n.node(t);if(r>0?n.indexAfter(t)<i.childCount:n.index(t)>0){o=i.child(r>0?n.indexAfter(t):n.index(t)-1);break}else if(t==0)return null;a+=r;let s=n.doc.resolve(a);if(e.valid(s))return s}for(;;){let s=r>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!t.r.isSelectable(o)){n=n.doc.resolve(a+o.nodeSize*r),i=!1;continue search}break}o=s,a+=r;let c=n.doc.resolve(a);if(e.valid(c))return c}return null}}};O.prototype.visible=!1,O.findFrom=O.findGapCursorFrom,t.o.jsonID(`gapcursor`,O);var ne=class e{constructor(e){this.pos=e}map(t){return new e(t.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return O.valid(n)?new O(n):t.o.near(n)}};function re(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function ie(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n-1);;e=e.lastChild){if(e.childCount==0&&!e.inlineContent||re(e.type))return!0;if(e.inlineContent)return!1}}return!0}function ae(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n);;e=e.firstChild){if(e.childCount==0&&!e.inlineContent||re(e.type))return!0;if(e.inlineContent)return!1}}return!0}function oe(){return new t.i({props:{decorations:ue,createSelectionBetween(e,t,n){return t.pos==n.pos&&O.valid(n)?new O(n):null},handleClick:ce,handleKeyDown:k,handleDOMEvents:{beforeinput:le}}})}var k=r.i({ArrowLeft:se(`horiz`,-1),ArrowRight:se(`horiz`,1),ArrowUp:se(`vert`,-1),ArrowDown:se(`vert`,1)});function se(e,n){let r=e==`vert`?n>0?`down`:`up`:n>0?`right`:`left`;return function(e,i,a){let o=e.selection,s=n>0?o.$to:o.$from,c=o.empty;if(o instanceof t.c){if(!a.endOfTextblock(r)||s.depth==0)return!1;c=!1,s=e.doc.resolve(n>0?s.after():s.before())}let l=O.findGapCursorFrom(s,n,c);return l?(i&&i(e.tr.setSelection(new O(l))),!0):!1}}function ce(e,n,r){if(!e||!e.editable)return!1;let i=e.state.doc.resolve(n);if(!O.valid(i))return!1;let a=e.posAtCoords({left:r.clientX,top:r.clientY});return a&&a.inside>-1&&t.r.isSelectable(e.state.doc.nodeAt(a.inside))?!1:(e.dispatch(e.state.tr.setSelection(new O(i))),!0)}function le(e,n){if(n.inputType!=`insertCompositionText`||!(e.state.selection instanceof O))return!1;let{$from:r}=e.state.selection,i=r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);if(!i)return!1;let a=t.C.empty;for(let e=i.length-1;e>=0;e--)a=t.C.from(i[e].createAndFill(null,a));let o=e.state.tr.replace(r.pos,r.pos,new t.k(a,0,0));return o.setSelection(t.c.near(o.doc.resolve(r.pos+1))),e.dispatch(o),!1}function ue(e){if(!(e.selection instanceof O))return null;let t=document.createElement(`div`);return t.className=`ProseMirror-gapcursor`,r.n.create(e.doc,[r.t.widget(e.selection.head,t,{key:`gapcursor`})])}var de=a.u(()=>oe()),A=e.t((e=>{var t=require(`react`);function n(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var r=Object.prototype.hasOwnProperty,i=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,a={},o={};function s(e){return r.call(o,e)?!0:r.call(a,e)?!1:i.test(e)?o[e]=!0:(a[e]=!0,!1)}function c(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var l={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){l[e]=new c(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];l[t]=new c(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){l[e]=new c(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){l[e]=new c(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){l[e]=new c(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){l[e]=new c(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){l[e]=new c(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){l[e]=new c(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){l[e]=new c(e,5,!1,e.toLowerCase(),null,!1,!1)});var u=/[\-:]([a-z])/g;function d(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(u,d);l[t]=new c(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(u,d);l[t]=new c(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(u,d);l[t]=new c(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){l[e]=new c(e,1,!1,e.toLowerCase(),null,!1,!1)}),l.xlinkHref=new c(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){l[e]=new c(e,1,!1,e.toLowerCase(),null,!0,!0)});var f={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},p=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(f).forEach(function(e){p.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),f[t]=f[e]})});var m=/["'&<>]/;function h(e){if(typeof e==`boolean`||typeof e==`number`)return``+e;e=``+e;var t=m.exec(e);if(t){var n=``,r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=`"`;break;case 38:t=`&`;break;case 39:t=`'`;break;case 60:t=`<`;break;case 62:t=`>`;break;default:continue}i!==r&&(n+=e.substring(i,r)),i=r+1,n+=t}e=i===r?n:n+e.substring(i,r)}return e}var g=/([A-Z])/g,_=/^ms-/,v=Array.isArray;function y(e,t){return{insertionMode:e,selectedValue:t}}function b(e,t,n){switch(t){case`select`:return y(1,n.value==null?n.defaultValue:n.value);case`svg`:return y(2,null);case`math`:return y(3,null);case`foreignObject`:return y(1,null);case`table`:return y(4,null);case`thead`:case`tbody`:case`tfoot`:return y(5,null);case`colgroup`:return y(7,null);case`tr`:return y(6,null)}return 4<=e.insertionMode||e.insertionMode===0?y(1,null):e}var x=new Map;function S(e,t,i){if(typeof i!=`object`)throw Error(n(62));for(var a in t=!0,i)if(r.call(i,a)){var o=i[a];if(o!=null&&typeof o!=`boolean`&&o!==``){if(a.indexOf(`--`)===0){var s=h(a);o=h((``+o).trim())}else{s=a;var c=x.get(s);c===void 0?(c=h(s.replace(g,`-$1`).toLowerCase().replace(_,`-ms-`)),x.set(s,c),s=c):s=c,o=typeof o==`number`?o===0||r.call(f,a)?``+o:o+`px`:h((``+o).trim())}t?(t=!1,e.push(` style="`,s,`:`,o)):e.push(`;`,s,`:`,o)}}t||e.push(`"`)}function C(e,t,n,r){switch(n){case`style`:S(e,t,r);return;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:return}if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`){if(t=l.hasOwnProperty(n)?l[n]:null,t!==null){switch(typeof r){case`function`:case`symbol`:return;case`boolean`:if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(` `,n,`=""`);break;case 4:!0===r?e.push(` `,n,`=""`):!1!==r&&e.push(` `,n,`="`,h(r),`"`);break;case 5:isNaN(r)||e.push(` `,n,`="`,h(r),`"`);break;case 6:!isNaN(r)&&1<=r&&e.push(` `,n,`="`,h(r),`"`);break;default:t.sanitizeURL&&(r=``+r),e.push(` `,n,`="`,h(r),`"`)}}else if(s(n)){switch(typeof r){case`function`:case`symbol`:return;case`boolean`:if(t=n.toLowerCase().slice(0,5),t!==`data-`&&t!==`aria-`)return}e.push(` `,n,`="`,h(r),`"`)}}}function w(e,t,r){if(t!=null){if(r!=null)throw Error(n(60));if(typeof t!=`object`||!(`__html`in t))throw Error(n(61));t=t.__html,t!=null&&e.push(``+t)}}function T(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}function E(e,t,n,i){e.push(D(n));var a=n=null,o;for(o in t)if(r.call(t,o)){var s=t[o];if(s!=null)switch(o){case`children`:n=s;break;case`dangerouslySetInnerHTML`:a=s;break;default:C(e,i,o,s)}}return e.push(`>`),w(e,a,n),typeof n==`string`?(e.push(h(n)),null):n}var ee=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,te=new Map;function D(e){var t=te.get(e);if(t===void 0){if(!ee.test(e))throw Error(n(65,e));t=`<`+e,te.set(e,t)}return t}function O(e,t,i,a,o){switch(t){case`select`:e.push(D(`select`));var c=null,l=null;for(p in i)if(r.call(i,p)){var u=i[p];if(u!=null)switch(p){case`children`:c=u;break;case`dangerouslySetInnerHTML`:l=u;break;case`defaultValue`:case`value`:break;default:C(e,a,p,u)}}return e.push(`>`),w(e,l,c),c;case`option`:l=o.selectedValue,e.push(D(`option`));var d=u=null,f=null,p=null;for(c in i)if(r.call(i,c)){var m=i[c];if(m!=null)switch(c){case`children`:u=m;break;case`selected`:f=m;break;case`dangerouslySetInnerHTML`:p=m;break;case`value`:d=m;default:C(e,a,c,m)}}if(l!=null)if(i=d===null?T(u):``+d,v(l)){for(a=0;a<l.length;a++)if(``+l[a]===i){e.push(` selected=""`);break}}else ``+l===i&&e.push(` selected=""`);else f&&e.push(` selected=""`);return e.push(`>`),w(e,p,u),u;case`textarea`:for(u in e.push(D(`textarea`)),p=l=c=null,i)if(r.call(i,u)&&(d=i[u],d!=null))switch(u){case`children`:p=d;break;case`value`:c=d;break;case`defaultValue`:l=d;break;case`dangerouslySetInnerHTML`:throw Error(n(91));default:C(e,a,u,d)}if(c===null&&l!==null&&(c=l),e.push(`>`),p!=null){if(c!=null)throw Error(n(92));if(v(p)&&1<p.length)throw Error(n(93));c=``+p}return typeof c==`string`&&c[0]===`
|
|
2
|
-
`&&e.push(`
|
|
3
|
-
`),c!==null&&e.push(h(``+c)),null;case`input`:for(l in e.push(D(`input`)),d=p=u=c=null,i)if(r.call(i,l)&&(f=i[l],f!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:throw Error(n(399,`input`));case`defaultChecked`:d=f;break;case`defaultValue`:u=f;break;case`checked`:p=f;break;case`value`:c=f;break;default:C(e,a,l,f)}return p===null?d!==null&&C(e,a,`checked`,d):C(e,a,`checked`,p),c===null?u!==null&&C(e,a,`value`,u):C(e,a,`value`,c),e.push(`/>`),null;case`menuitem`:for(var g in e.push(D(`menuitem`)),i)if(r.call(i,g)&&(c=i[g],c!=null))switch(g){case`children`:case`dangerouslySetInnerHTML`:throw Error(n(400));default:C(e,a,g,c)}return e.push(`>`),null;case`title`:for(m in e.push(D(`title`)),c=null,i)if(r.call(i,m)&&(l=i[m],l!=null))switch(m){case`children`:c=l;break;case`dangerouslySetInnerHTML`:throw Error(n(434));default:C(e,a,m,l)}return e.push(`>`),c;case`listing`:case`pre`:for(d in e.push(D(t)),l=c=null,i)if(r.call(i,d)&&(u=i[d],u!=null))switch(d){case`children`:c=u;break;case`dangerouslySetInnerHTML`:l=u;break;default:C(e,a,d,u)}if(e.push(`>`),l!=null){if(c!=null)throw Error(n(60));if(typeof l!=`object`||!(`__html`in l))throw Error(n(61));i=l.__html,i!=null&&(typeof i==`string`&&0<i.length&&i[0]===`
|
|
4
|
-
`?e.push(`
|
|
5
|
-
`,i):e.push(``+i))}return typeof c==`string`&&c[0]===`
|
|
6
|
-
`&&e.push(`
|
|
7
|
-
`),c;case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:for(var _ in e.push(D(t)),i)if(r.call(i,_)&&(c=i[_],c!=null))switch(_){case`children`:case`dangerouslySetInnerHTML`:throw Error(n(399,t));default:C(e,a,_,c)}return e.push(`/>`),null;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 E(e,i,t,a);case`html`:return o.insertionMode===0&&e.push(`<!DOCTYPE html>`),E(e,i,t,a);default:if(t.indexOf(`-`)===-1&&typeof i.is!=`string`)return E(e,i,t,a);for(f in e.push(D(t)),l=c=null,i)if(r.call(i,f)&&(u=i[f],u!=null))switch(f){case`children`:c=u;break;case`dangerouslySetInnerHTML`:l=u;break;case`style`:S(e,a,u);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:break;default:s(f)&&typeof u!=`function`&&typeof u!=`symbol`&&e.push(` `,f,`="`,h(u),`"`)}return e.push(`>`),w(e,l,c),c}}function ne(e,t,r){if(e.push(`<!--$?--><template id="`),r===null)throw Error(n(395));return e.push(r),e.push(`"></template>`)}function re(e,t,r,i){switch(r.insertionMode){case 0:case 1:return e.push(`<div hidden id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 2:return e.push(`<svg aria-hidden="true" style="display:none" id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 3:return e.push(`<math aria-hidden="true" style="display:none" id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 4:return e.push(`<table hidden id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 5:return e.push(`<table hidden><tbody id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 6:return e.push(`<table hidden><tr id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);case 7:return e.push(`<table hidden><colgroup id="`),e.push(t.segmentPrefix),t=i.toString(16),e.push(t),e.push(`">`);default:throw Error(n(397))}}function ie(e,t){switch(t.insertionMode){case 0:case 1:return e.push(`</div>`);case 2:return e.push(`</svg>`);case 3:return e.push(`</math>`);case 4:return e.push(`</table>`);case 5:return e.push(`</tbody></table>`);case 6:return e.push(`</tr></table>`);case 7:return e.push(`</colgroup></table>`);default:throw Error(n(397))}}var ae=/[<\u2028\u2029]/g;function oe(e){return JSON.stringify(e).replace(ae,function(e){switch(e){case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}function k(e,t){return t=t===void 0?``:t,{bootstrapChunks:[],startInlineScript:`<script>`,placeholderPrefix:t+`P:`,segmentPrefix:t+`S:`,boundaryPrefix:t+`B:`,idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}function se(e,t,n,r){return n.generateStaticMarkup?(e.push(h(t)),!1):(t===``?e=r:(r&&e.push(`<!-- -->`),e.push(h(t)),e=!0),e)}var ce=Object.assign,le=Symbol.for(`react.element`),ue=Symbol.for(`react.portal`),de=Symbol.for(`react.fragment`),A=Symbol.for(`react.strict_mode`),fe=Symbol.for(`react.profiler`),pe=Symbol.for(`react.provider`),me=Symbol.for(`react.context`),he=Symbol.for(`react.forward_ref`),ge=Symbol.for(`react.suspense`),_e=Symbol.for(`react.suspense_list`),ve=Symbol.for(`react.memo`),ye=Symbol.for(`react.lazy`),be=Symbol.for(`react.scope`),xe=Symbol.for(`react.debug_trace_mode`),Se=Symbol.for(`react.legacy_hidden`),Ce=Symbol.for(`react.default_value`),we=Symbol.iterator;function j(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case de:return`Fragment`;case ue:return`Portal`;case fe:return`Profiler`;case A:return`StrictMode`;case ge:return`Suspense`;case _e:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case me:return(e.displayName||`Context`)+`.Consumer`;case pe:return(e._context.displayName||`Context`)+`.Provider`;case he:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ve:return t=e.displayName||null,t===null?j(e.type)||`Memo`:t;case ye:t=e._payload,e=e._init;try{return j(e(t))}catch{}}return null}var Te={};function Ee(e,t){if(e=e.contextTypes,!e)return Te;var n={},r;for(r in e)n[r]=t[r];return n}var De=null;function Oe(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(n(401))}else{if(r===null)throw Error(n(401));Oe(e,r)}t.context._currentValue2=t.value}}function ke(e){e.context._currentValue2=e.parentValue,e=e.parent,e!==null&&ke(e)}function Ae(e){var t=e.parent;t!==null&&Ae(t),e.context._currentValue2=e.value}function je(e,t){if(e.context._currentValue2=e.parentValue,e=e.parent,e===null)throw Error(n(402));e.depth===t.depth?Oe(e,t):je(e,t)}function Me(e,t){var r=t.parent;if(r===null)throw Error(n(402));e.depth===r.depth?Oe(e,r):Me(e,r),t.context._currentValue2=t.value}function Ne(e){var t=De;t!==e&&(t===null?Ae(e):e===null?ke(t):t.depth===e.depth?Oe(t,e):t.depth>e.depth?je(t,e):Me(t,e),De=e)}var Pe={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Fe(e,t,n,r){var i=e.state===void 0?null:e.state;e.updater=Pe,e.props=n,e.state=i;var a={queue:[],replace:!1};e._reactInternals=a;var o=t.contextType;if(e.context=typeof o==`object`&&o?o._currentValue2:r,o=t.getDerivedStateFromProps,typeof o==`function`&&(o=o(n,i),i=o==null?i:ce({},i,o),e.state=i),typeof t.getDerivedStateFromProps!=`function`&&typeof e.getSnapshotBeforeUpdate!=`function`&&(typeof e.UNSAFE_componentWillMount==`function`||typeof e.componentWillMount==`function`))if(t=e.state,typeof e.componentWillMount==`function`&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount==`function`&&e.UNSAFE_componentWillMount(),t!==e.state&&Pe.enqueueReplaceState(e,e.state,null),a.queue!==null&&0<a.queue.length)if(t=a.queue,o=a.replace,a.queue=null,a.replace=!1,o&&t.length===1)e.state=t[0];else{for(a=o?t[0]:e.state,i=!0,o=+!!o;o<t.length;o++){var s=t[o];s=typeof s==`function`?s.call(e,a,n,r):s,s!=null&&(i?(i=!1,a=ce({},a,s)):ce(a,s))}e.state=a}else a.queue=null}var Ie={id:1,overflow:``};function Le(e,t,n){var r=e.id;e=e.overflow;var i=32-Re(r)-1;r&=~(1<<i),n+=1;var a=32-Re(t)+i;if(30<a){var o=i-i%5;return a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,{id:1<<32-Re(t)+i|n<<i|r,overflow:a+e}}return{id:1<<a|n<<i|r,overflow:e}}var Re=Math.clz32?Math.clz32:Ve,ze=Math.log,Be=Math.LN2;function Ve(e){return e>>>=0,e===0?32:31-(ze(e)/Be|0)|0}function He(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Ue=typeof Object.is==`function`?Object.is:He,We=null,Ge=null,Ke=null,qe=null,Je=!1,Ye=!1,Xe=0,Ze=null,Qe=0;function $e(){if(We===null)throw Error(n(321));return We}function et(){if(0<Qe)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function tt(){return qe===null?Ke===null?(Je=!1,Ke=qe=et()):(Je=!0,qe=Ke):qe.next===null?(Je=!1,qe=qe.next=et()):(Je=!0,qe=qe.next),qe}function nt(){Ge=We=null,Ye=!1,Ke=null,Qe=0,qe=Ze=null}function rt(e,t){return typeof t==`function`?t(e):t}function it(e,t,n){if(We=$e(),qe=tt(),Je){var r=qe.queue;if(t=r.dispatch,Ze!==null&&(n=Ze.get(r),n!==void 0)){Ze.delete(r),r=qe.memoizedState;do r=e(r,n.action),n=n.next;while(n!==null);return qe.memoizedState=r,[r,t]}return[qe.memoizedState,t]}return e=e===rt?typeof t==`function`?t():t:n===void 0?t:n(t),qe.memoizedState=e,e=qe.queue={last:null,dispatch:null},e=e.dispatch=ot.bind(null,We,e),[qe.memoizedState,e]}function at(e,t){if(We=$e(),qe=tt(),t=t===void 0?null:t,qe!==null){var n=qe.memoizedState;if(n!==null&&t!==null){var r=n[1];a:if(r===null)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!Ue(t[i],r[i])){r=!1;break a}r=!0}if(r)return n[0]}}return e=e(),qe.memoizedState=[e,t],e}function ot(e,t,r){if(25<=Qe)throw Error(n(301));if(e===We)if(Ye=!0,e={action:r,next:null},Ze===null&&(Ze=new Map),r=Ze.get(t),r===void 0)Ze.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function M(){throw Error(n(394))}function st(){}var ct={readContext:function(e){return e._currentValue2},useContext:function(e){return $e(),e._currentValue2},useMemo:at,useReducer:it,useRef:function(e){We=$e(),qe=tt();var t=qe.memoizedState;return t===null?(e={current:e},qe.memoizedState=e):t},useState:function(e){return it(rt,e)},useInsertionEffect:st,useLayoutEffect:function(){},useCallback:function(e,t){return at(function(){return e},t)},useImperativeHandle:st,useEffect:st,useDebugValue:st,useDeferredValue:function(e){return $e(),e},useTransition:function(){return $e(),[!1,M]},useId:function(){var e=Ge.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-Re(e)-1)).toString(32)+t;var r=lt;if(r===null)throw Error(n(404));return t=Xe++,e=`:`+r.idPrefix+`R`+e,0<t&&(e+=`H`+t.toString(32)),e+`:`},useMutableSource:function(e,t){return $e(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(n(407));return r()}},lt=null,ut=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function dt(e){return console.error(e),null}function ft(){}function pt(e,t,n,r,i,a,o,s,c){var l=[],u=new Set;return t={destination:null,responseState:t,progressiveChunkSize:r===void 0?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:l,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:i===void 0?dt:i,onAllReady:a===void 0?ft:a,onShellReady:o===void 0?ft:o,onShellError:s===void 0?ft:s,onFatalError:c===void 0?ft:c},n=ht(t,0,null,n,!1,!1),n.parentFlushed=!0,e=mt(t,e,null,n,u,Te,null,Ie),l.push(e),t}function mt(e,t,n,r,i,a,o,s){e.allPendingTasks++,n===null?e.pendingRootTasks++:n.pendingTasks++;var c={node:t,ping:function(){var t=e.pingedTasks;t.push(c),t.length===1&&kt(e)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:a,context:o,treeContext:s};return i.add(c),c}function ht(e,t,n,r,i,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:a}}function gt(e,t){if(e=e.onError(t),e!=null&&typeof e!=`string`)throw Error(`onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "`+typeof e+`" instead`);return e}function _t(e,t){var n=e.onShellError;n(t),n=e.onFatalError,n(t),e.destination===null?(e.status=1,e.fatalError=t):(e.status=2,e.destination.destroy(t))}function vt(e,t,n,r,i){for(We={},Ge=t,Xe=0,e=n(r,i);Ye;)Ye=!1,Xe=0,Qe+=1,qe=null,e=n(r,i);return nt(),e}function yt(e,t,r,i){var a=r.render(),o=i.childContextTypes;if(o!=null){var s=t.legacyContext;if(typeof r.getChildContext!=`function`)i=s;else{for(var c in r=r.getChildContext(),r)if(!(c in o))throw Error(n(108,j(i)||`Unknown`,c));i=ce({},s,r)}t.legacyContext=i,St(e,t,a),t.legacyContext=s}else St(e,t,a)}function bt(e,t){if(e&&e.defaultProps){for(var n in t=ce({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xt(e,t,r,i,a){if(typeof r==`function`)if(r.prototype&&r.prototype.isReactComponent){a=Ee(r,t.legacyContext);var o=r.contextType;o=new r(i,typeof o==`object`&&o?o._currentValue2:a),Fe(o,r,i,a),yt(e,t,o,r)}else{o=Ee(r,t.legacyContext),a=vt(e,t,r,i,o);var s=Xe!==0;if(typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0)Fe(a,r,i,o),yt(e,t,a,r);else if(s){i=t.treeContext,t.treeContext=Le(i,1,0);try{St(e,t,a)}finally{t.treeContext=i}}else St(e,t,a)}else if(typeof r==`string`){switch(a=t.blockedSegment,o=O(a.chunks,r,i,e.responseState,a.formatContext),a.lastPushedText=!1,s=a.formatContext,a.formatContext=b(s,r,i),wt(e,t,o),a.formatContext=s,r){case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break;default:a.chunks.push(`</`,r,`>`)}a.lastPushedText=!1}else{switch(r){case Se:case xe:case A:case fe:case de:St(e,t,i.children);return;case _e:St(e,t,i.children);return;case be:throw Error(n(343));case ge:a:{r=t.blockedBoundary,a=t.blockedSegment,o=i.fallback,i=i.children,s=new Set;var c={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null},l=ht(e,a.chunks.length,c,a.formatContext,!1,!1);a.children.push(l),a.lastPushedText=!1;var u=ht(e,0,null,a.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=c,t.blockedSegment=u;try{if(wt(e,t,i),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push(`<!-- -->`),u.status=1,Dt(c,u),c.pendingTasks===0)break a}catch(t){u.status=4,c.forceClientRender=!0,c.errorDigest=gt(e,t)}finally{t.blockedBoundary=r,t.blockedSegment=a}t=mt(e,o,r,l,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r==`object`&&r)switch(r.$$typeof){case he:if(i=vt(e,t,r.render,i,a),Xe!==0){r=t.treeContext,t.treeContext=Le(r,1,0);try{St(e,t,i)}finally{t.treeContext=r}}else St(e,t,i);return;case ve:r=r.type,i=bt(r,i),xt(e,t,r,i,a);return;case pe:if(a=i.children,r=r._context,i=i.value,o=r._currentValue2,r._currentValue2=i,s=De,De=i={parent:s,depth:s===null?0:s.depth+1,context:r,parentValue:o,value:i},t.context=i,St(e,t,a),e=De,e===null)throw Error(n(403));i=e.parentValue,e.context._currentValue2=i===Ce?e.context._defaultValue:i,e=De=e.parent,t.context=e;return;case me:i=i.children,i=i(r._currentValue2),St(e,t,i);return;case ye:a=r._init,r=a(r._payload),i=bt(r,i),xt(e,t,r,i,void 0);return}throw Error(n(130,r==null?r:typeof r,``))}}function St(e,t,r){if(t.node=r,typeof r==`object`&&r){switch(r.$$typeof){case le:xt(e,t,r.type,r.props,r.ref);return;case ue:throw Error(n(257));case ye:var i=r._init;r=i(r._payload),St(e,t,r);return}if(v(r)){Ct(e,t,r);return}if(typeof r!=`object`||!r?i=null:(i=we&&r[we]||r[`@@iterator`],i=typeof i==`function`?i:null),i&&=i.call(r)){if(r=i.next(),!r.done){var a=[];do a.push(r.value),r=i.next();while(!r.done);Ct(e,t,a)}return}throw e=Object.prototype.toString.call(r),Error(n(31,e===`[object Object]`?`object with keys {`+Object.keys(r).join(`, `)+`}`:e))}typeof r==`string`?(i=t.blockedSegment,i.lastPushedText=se(t.blockedSegment.chunks,r,e.responseState,i.lastPushedText)):typeof r==`number`&&(i=t.blockedSegment,i.lastPushedText=se(t.blockedSegment.chunks,``+r,e.responseState,i.lastPushedText))}function Ct(e,t,n){for(var r=n.length,i=0;i<r;i++){var a=t.treeContext;t.treeContext=Le(a,r,i);try{wt(e,t,n[i])}finally{t.treeContext=a}}}function wt(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,a=t.context;try{return St(e,t,n)}catch(c){if(nt(),typeof c==`object`&&c&&typeof c.then==`function`){n=c;var o=t.blockedSegment,s=ht(e,o.chunks.length,null,o.formatContext,o.lastPushedText,!0);o.children.push(s),o.lastPushedText=!1,e=mt(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=a,Ne(a)}else throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=a,Ne(a),c}}function Tt(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,Ot(this,t,e)}function Et(e,t,r){var i=e.blockedBoundary;e.blockedSegment.status=3,i===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.push(null))):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,e=r===void 0?Error(n(432)):r,i.errorDigest=t.onError(e),i.parentFlushed&&t.clientRenderedBoundaries.push(i)),i.fallbackAbortableTasks.forEach(function(e){return Et(e,t,r)}),i.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(i=t.onAllReady,i()))}function Dt(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status===1&&Dt(e,n)}else e.completedSegments.push(t)}function Ot(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(n(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=ft,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&Dt(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Tt,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(Dt(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function kt(e){if(e.status!==2){var t=De,n=ut.current;ut.current=ct;var r=lt;lt=e.responseState;try{var i=e.pingedTasks,a;for(a=0;a<i.length;a++){var o=i[a],s=e,c=o.blockedSegment;if(c.status===0){Ne(o.context);try{St(s,o,o.node),s.responseState.generateStaticMarkup||c.lastPushedText&&c.textEmbedded&&c.chunks.push(`<!-- -->`),o.abortSet.delete(o),c.status=1,Ot(s,o.blockedBoundary,c)}catch(e){if(nt(),typeof e==`object`&&e&&typeof e.then==`function`){var l=o.ping;e.then(l,l)}else{o.abortSet.delete(o),c.status=4;var u=o.blockedBoundary,d=e,f=gt(s,d);if(u===null?_t(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=f,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,s.allPendingTasks===0){var p=s.onAllReady;p()}}}}}i.splice(0,a),e.destination!==null&&Ft(e,e.destination)}catch(t){gt(e,t),_t(e,t)}finally{lt=r,ut.current=n,n===ct&&Ne(t)}}}function At(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var i=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,t.push(`<template id="`),t.push(e.placeholderPrefix),e=i.toString(16),t.push(e),t.push(`"></template>`);case 1:r.status=2;var a=!0;i=r.chunks;var o=0;r=r.children;for(var s=0;s<r.length;s++){for(a=r[s];o<a.index;o++)t.push(i[o]);a=jt(e,t,a)}for(;o<i.length-1;o++)t.push(i[o]);return o<i.length&&(a=t.push(i[o])),a;default:throw Error(n(390))}}function jt(e,t,r){var i=r.boundary;if(i===null)return At(e,t,r);if(i.parentFlushed=!0,i.forceClientRender)return e.responseState.generateStaticMarkup||(i=i.errorDigest,t.push(`<!--$!-->`),t.push(`<template`),i&&(t.push(` data-dgst="`),i=h(i),t.push(i),t.push(`"`)),t.push(`></template>`)),At(e,t,r),e=e.responseState.generateStaticMarkup?!0:t.push(`<!--/$-->`),e;if(0<i.pendingTasks){i.rootSegmentID=e.nextSegmentId++,0<i.completedSegments.length&&e.partialBoundaries.push(i);var a=e.responseState,o=a.nextSuspenseID++;return a=a.boundaryPrefix+o.toString(16),i=i.id=a,ne(t,e.responseState,i),At(e,t,r),t.push(`<!--/$-->`)}if(i.byteSize>e.progressiveChunkSize)return i.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(i),ne(t,e.responseState,i.id),At(e,t,r),t.push(`<!--/$-->`);if(e.responseState.generateStaticMarkup||t.push(`<!--$-->`),r=i.completedSegments,r.length!==1)throw Error(n(391));return jt(e,t,r[0]),e=e.responseState.generateStaticMarkup?!0:t.push(`<!--/$-->`),e}function Mt(e,t,n){return re(t,e.responseState,n.formatContext,n.id),jt(e,t,n),ie(t,n.formatContext)}function Nt(e,t,r){for(var i=r.completedSegments,a=0;a<i.length;a++)Pt(e,t,r,i[a]);if(i.length=0,e=e.responseState,i=r.id,r=r.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push(`$RC("`):(e.sentCompleteBoundaryFunction=!0,t.push(`function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("`)),i===null)throw Error(n(395));return r=r.toString(16),t.push(i),t.push(`","`),t.push(e.segmentPrefix),t.push(r),t.push(`")<\/script>`)}function Pt(e,t,r,i){if(i.status===2)return!0;var a=i.id;if(a===-1){if((i.id=r.rootSegmentID)===-1)throw Error(n(392));return Mt(e,t,i)}return Mt(e,t,i),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push(`$RS("`):(e.sentCompleteSegmentFunction=!0,t.push(`function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("`)),t.push(e.segmentPrefix),a=a.toString(16),t.push(a),t.push(`","`),t.push(e.placeholderPrefix),t.push(a),t.push(`")<\/script>`)}function Ft(e,t){try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){jt(e,t,r),e.completedRootSegment=null;var i=e.responseState.bootstrapChunks;for(r=0;r<i.length-1;r++)t.push(i[r]);r<i.length&&t.push(i[r])}var a=e.clientRenderedBoundaries,o;for(o=0;o<a.length;o++){var s=a[o];i=t;var c=e.responseState,l=s.id,u=s.errorDigest,d=s.errorMessage,f=s.errorComponentStack;if(i.push(c.startInlineScript),c.sentClientRenderFunction?i.push(`$RX("`):(c.sentClientRenderFunction=!0,i.push(`function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("`)),l===null)throw Error(n(395));if(i.push(l),i.push(`"`),u||d||f){i.push(`,`);var p=oe(u||``);i.push(p)}if(d||f){i.push(`,`);var m=oe(d||``);i.push(m)}if(f){i.push(`,`);var h=oe(f);i.push(h)}if(!i.push(`)<\/script>`)){e.destination=null,o++,a.splice(0,o);return}}a.splice(0,o);var g=e.completedBoundaries;for(o=0;o<g.length;o++)if(!Nt(e,t,g[o])){e.destination=null,o++,g.splice(0,o);return}g.splice(0,o);var _=e.partialBoundaries;for(o=0;o<_.length;o++){var v=_[o];a:{a=e,s=t;var y=v.completedSegments;for(c=0;c<y.length;c++)if(!Pt(a,s,v,y[c])){c++,y.splice(0,c);var b=!1;break a}y.splice(0,c),b=!0}if(!b){e.destination=null,o++,_.splice(0,o);return}}_.splice(0,o);var x=e.completedBoundaries;for(o=0;o<x.length;o++)if(!Nt(e,t,x[o])){e.destination=null,o++,x.splice(0,o);return}x.splice(0,o)}finally{e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.push(null)}}function It(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return Et(n,e,t)}),n.clear(),e.destination!==null&&Ft(e,e.destination)}catch(t){gt(e,t),_t(e,t)}}function Lt(){}function Rt(e,t,r,i){var a=!1,o=null,s=``,c={push:function(e){return e!==null&&(s+=e),!0},destroy:function(e){a=!0,o=e}},l=!1;if(e=pt(e,k(r,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Lt,void 0,function(){l=!0},void 0,void 0),kt(e),It(e,i),e.status===1)e.status=2,c.destroy(e.fatalError);else if(e.status!==2&&e.destination===null){e.destination=c;try{Ft(e,c)}catch(t){gt(e,t),_t(e,t)}}if(a)throw o;if(!l)throw Error(n(426));return s}e.renderToNodeStream=function(){throw Error(n(207))},e.renderToStaticMarkup=function(e,t){return Rt(e,t,!0,`The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.renderToStaticNodeStream=function(){throw Error(n(208))},e.renderToString=function(e,t){return Rt(e,t,!1,`The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.version=`18.3.1`})),fe=e.t((e=>{var t=require(`react`);function n(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var r=null,i=0;function a(e,t){if(t.length!==0)if(512<t.length)0<i&&(e.enqueue(new Uint8Array(r.buffer,0,i)),r=new Uint8Array(512),i=0),e.enqueue(t);else{var n=r.length-i;n<t.length&&(n===0?e.enqueue(r):(r.set(t.subarray(0,n),i),e.enqueue(r),t=t.subarray(n)),r=new Uint8Array(512),i=0),r.set(t,i),i+=t.length}}function o(e,t){return a(e,t),!0}function s(e){r&&0<i&&(e.enqueue(new Uint8Array(r.buffer,0,i)),r=null,i=0)}var c=new TextEncoder;function l(e){return c.encode(e)}function u(e){return c.encode(e)}function d(e,t){typeof e.error==`function`?e.error(t):e.close()}var f=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},h={};function g(e){return f.call(h,e)?!0:f.call(m,e)?!1:p.test(e)?h[e]=!0:(m[e]=!0,!1)}function _(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var v={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){v[e]=new _(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];v[t]=new _(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){v[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){v[e]=new _(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){v[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){v[e]=new _(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){v[e]=new _(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){v[e]=new _(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){v[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(y,b);v[t]=new _(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){v[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new _(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){v[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});var x={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(x).forEach(function(e){S.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),x[t]=x[e]})});var C=/["'&<>]/;function w(e){if(typeof e==`boolean`||typeof e==`number`)return``+e;e=``+e;var t=C.exec(e);if(t){var n=``,r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=`"`;break;case 38:t=`&`;break;case 39:t=`'`;break;case 60:t=`<`;break;case 62:t=`>`;break;default:continue}i!==r&&(n+=e.substring(i,r)),i=r+1,n+=t}e=i===r?n:n+e.substring(i,r)}return e}var T=/([A-Z])/g,E=/^ms-/,ee=Array.isArray,te=u(`<script>`),D=u(`<\/script>`),O=u(`<script src="`),ne=u(`<script type="module" src="`),re=u(`" async=""><\/script>`),ie=/(<\/|<)(s)(cript)/gi;function ae(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}function oe(e,t,n,r,i){e=e===void 0?``:e,t=t===void 0?te:u(`<script nonce="`+w(t)+`">`);var a=[];if(n!==void 0&&a.push(t,l((``+n).replace(ie,ae)),D),r!==void 0)for(n=0;n<r.length;n++)a.push(O,l(w(r[n])),re);if(i!==void 0)for(r=0;r<i.length;r++)a.push(ne,l(w(i[r])),re);return{bootstrapChunks:a,startInlineScript:t,placeholderPrefix:u(e+`P:`),segmentPrefix:u(e+`S:`),boundaryPrefix:e+`B:`,idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function k(e,t){return{insertionMode:e,selectedValue:t}}function se(e){return k(e===`http://www.w3.org/2000/svg`?2:e===`http://www.w3.org/1998/Math/MathML`?3:0,null)}function ce(e,t,n){switch(t){case`select`:return k(1,n.value==null?n.defaultValue:n.value);case`svg`:return k(2,null);case`math`:return k(3,null);case`foreignObject`:return k(1,null);case`table`:return k(4,null);case`thead`:case`tbody`:case`tfoot`:return k(5,null);case`colgroup`:return k(7,null);case`tr`:return k(6,null)}return 4<=e.insertionMode||e.insertionMode===0?k(1,null):e}var le=u(`<!-- -->`);function ue(e,t,n,r){return t===``?r:(r&&e.push(le),e.push(l(w(t))),!0)}var de=new Map,A=u(` style="`),fe=u(`:`),pe=u(`;`);function me(e,t,r){if(typeof r!=`object`)throw Error(n(62));for(var i in t=!0,r)if(f.call(r,i)){var a=r[i];if(a!=null&&typeof a!=`boolean`&&a!==``){if(i.indexOf(`--`)===0){var o=l(w(i));a=l(w((``+a).trim()))}else{o=i;var s=de.get(o);s===void 0?(s=u(w(o.replace(T,`-$1`).toLowerCase().replace(E,`-ms-`))),de.set(o,s),o=s):o=s,a=typeof a==`number`?a===0||f.call(x,i)?l(``+a):l(a+`px`):l(w((``+a).trim()))}t?(t=!1,e.push(A,o,fe,a)):e.push(pe,o,fe,a)}}t||e.push(_e)}var he=u(` `),ge=u(`="`),_e=u(`"`),ve=u(`=""`);function ye(e,t,n,r){switch(n){case`style`:me(e,t,r);return;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:return}if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`){if(t=v.hasOwnProperty(n)?v[n]:null,t!==null){switch(typeof r){case`function`:case`symbol`:return;case`boolean`:if(!t.acceptsBooleans)return}switch(n=l(t.attributeName),t.type){case 3:r&&e.push(he,n,ve);break;case 4:!0===r?e.push(he,n,ve):!1!==r&&e.push(he,n,ge,l(w(r)),_e);break;case 5:isNaN(r)||e.push(he,n,ge,l(w(r)),_e);break;case 6:!isNaN(r)&&1<=r&&e.push(he,n,ge,l(w(r)),_e);break;default:t.sanitizeURL&&(r=``+r),e.push(he,n,ge,l(w(r)),_e)}}else if(g(n)){switch(typeof r){case`function`:case`symbol`:return;case`boolean`:if(t=n.toLowerCase().slice(0,5),t!==`data-`&&t!==`aria-`)return}e.push(he,l(n),ge,l(w(r)),_e)}}}var be=u(`>`),xe=u(`/>`);function Se(e,t,r){if(t!=null){if(r!=null)throw Error(n(60));if(typeof t!=`object`||!(`__html`in t))throw Error(n(61));t=t.__html,t!=null&&e.push(l(``+t))}}function Ce(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}var we=u(` selected=""`);function j(e,t,n,r){e.push(Oe(n));var i=n=null,a;for(a in t)if(f.call(t,a)){var o=t[a];if(o!=null)switch(a){case`children`:n=o;break;case`dangerouslySetInnerHTML`:i=o;break;default:ye(e,r,a,o)}}return e.push(be),Se(e,i,n),typeof n==`string`?(e.push(l(w(n))),null):n}var Te=u(`
|
|
8
|
-
`),Ee=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,De=new Map;function Oe(e){var t=De.get(e);if(t===void 0){if(!Ee.test(e))throw Error(n(65,e));t=u(`<`+e),De.set(e,t)}return t}var ke=u(`<!DOCTYPE html>`);function Ae(e,t,r,i,a){switch(t){case`select`:e.push(Oe(`select`));var o=null,s=null;for(p in r)if(f.call(r,p)){var c=r[p];if(c!=null)switch(p){case`children`:o=c;break;case`dangerouslySetInnerHTML`:s=c;break;case`defaultValue`:case`value`:break;default:ye(e,i,p,c)}}return e.push(be),Se(e,s,o),o;case`option`:s=a.selectedValue,e.push(Oe(`option`));var u=c=null,d=null,p=null;for(o in r)if(f.call(r,o)){var m=r[o];if(m!=null)switch(o){case`children`:c=m;break;case`selected`:d=m;break;case`dangerouslySetInnerHTML`:p=m;break;case`value`:u=m;default:ye(e,i,o,m)}}if(s!=null)if(r=u===null?Ce(c):``+u,ee(s)){for(i=0;i<s.length;i++)if(``+s[i]===r){e.push(we);break}}else ``+s===r&&e.push(we);else d&&e.push(we);return e.push(be),Se(e,p,c),c;case`textarea`:for(c in e.push(Oe(`textarea`)),p=s=o=null,r)if(f.call(r,c)&&(u=r[c],u!=null))switch(c){case`children`:p=u;break;case`value`:o=u;break;case`defaultValue`:s=u;break;case`dangerouslySetInnerHTML`:throw Error(n(91));default:ye(e,i,c,u)}if(o===null&&s!==null&&(o=s),e.push(be),p!=null){if(o!=null)throw Error(n(92));if(ee(p)&&1<p.length)throw Error(n(93));o=``+p}return typeof o==`string`&&o[0]===`
|
|
9
|
-
`&&e.push(Te),o!==null&&e.push(l(w(``+o))),null;case`input`:for(s in e.push(Oe(`input`)),u=p=c=o=null,r)if(f.call(r,s)&&(d=r[s],d!=null))switch(s){case`children`:case`dangerouslySetInnerHTML`:throw Error(n(399,`input`));case`defaultChecked`:u=d;break;case`defaultValue`:c=d;break;case`checked`:p=d;break;case`value`:o=d;break;default:ye(e,i,s,d)}return p===null?u!==null&&ye(e,i,`checked`,u):ye(e,i,`checked`,p),o===null?c!==null&&ye(e,i,`value`,c):ye(e,i,`value`,o),e.push(xe),null;case`menuitem`:for(var h in e.push(Oe(`menuitem`)),r)if(f.call(r,h)&&(o=r[h],o!=null))switch(h){case`children`:case`dangerouslySetInnerHTML`:throw Error(n(400));default:ye(e,i,h,o)}return e.push(be),null;case`title`:for(m in e.push(Oe(`title`)),o=null,r)if(f.call(r,m)&&(s=r[m],s!=null))switch(m){case`children`:o=s;break;case`dangerouslySetInnerHTML`:throw Error(n(434));default:ye(e,i,m,s)}return e.push(be),o;case`listing`:case`pre`:for(u in e.push(Oe(t)),s=o=null,r)if(f.call(r,u)&&(c=r[u],c!=null))switch(u){case`children`:o=c;break;case`dangerouslySetInnerHTML`:s=c;break;default:ye(e,i,u,c)}if(e.push(be),s!=null){if(o!=null)throw Error(n(60));if(typeof s!=`object`||!(`__html`in s))throw Error(n(61));r=s.__html,r!=null&&(typeof r==`string`&&0<r.length&&r[0]===`
|
|
10
|
-
`?e.push(Te,l(r)):e.push(l(``+r)))}return typeof o==`string`&&o[0]===`
|
|
11
|
-
`&&e.push(Te),o;case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:for(var _ in e.push(Oe(t)),r)if(f.call(r,_)&&(o=r[_],o!=null))switch(_){case`children`:case`dangerouslySetInnerHTML`:throw Error(n(399,t));default:ye(e,i,_,o)}return e.push(xe),null;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 j(e,r,t,i);case`html`:return a.insertionMode===0&&e.push(ke),j(e,r,t,i);default:if(t.indexOf(`-`)===-1&&typeof r.is!=`string`)return j(e,r,t,i);for(d in e.push(Oe(t)),s=o=null,r)if(f.call(r,d)&&(c=r[d],c!=null))switch(d){case`children`:o=c;break;case`dangerouslySetInnerHTML`:s=c;break;case`style`:me(e,i,c);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:break;default:g(d)&&typeof c!=`function`&&typeof c!=`symbol`&&e.push(he,l(d),ge,l(w(c)),_e)}return e.push(be),Se(e,s,o),o}}var je=u(`</`),Me=u(`>`),Ne=u(`<template id="`),Pe=u(`"></template>`),Fe=u(`<!--$-->`),Ie=u(`<!--$?--><template id="`),Le=u(`"></template>`),Re=u(`<!--$!-->`),ze=u(`<!--/$-->`),Be=u(`<template`),Ve=u(`"`),He=u(` data-dgst="`);u(` data-msg="`),u(` data-stck="`);var Ue=u(`></template>`);function We(e,t,r){if(a(e,Ie),r===null)throw Error(n(395));return a(e,r),o(e,Le)}var Ge=u(`<div hidden id="`),Ke=u(`">`),qe=u(`</div>`),Je=u(`<svg aria-hidden="true" style="display:none" id="`),Ye=u(`">`),Xe=u(`</svg>`),Ze=u(`<math aria-hidden="true" style="display:none" id="`),Qe=u(`">`),$e=u(`</math>`),et=u(`<table hidden id="`),tt=u(`">`),nt=u(`</table>`),rt=u(`<table hidden><tbody id="`),it=u(`">`),at=u(`</tbody></table>`),ot=u(`<table hidden><tr id="`),M=u(`">`),st=u(`</tr></table>`),ct=u(`<table hidden><colgroup id="`),lt=u(`">`),ut=u(`</colgroup></table>`);function dt(e,t,r,i){switch(r.insertionMode){case 0:case 1:return a(e,Ge),a(e,t.segmentPrefix),a(e,l(i.toString(16))),o(e,Ke);case 2:return a(e,Je),a(e,t.segmentPrefix),a(e,l(i.toString(16))),o(e,Ye);case 3:return a(e,Ze),a(e,t.segmentPrefix),a(e,l(i.toString(16))),o(e,Qe);case 4:return a(e,et),a(e,t.segmentPrefix),a(e,l(i.toString(16))),o(e,tt);case 5:return a(e,rt),a(e,t.segmentPrefix),a(e,l(i.toString(16))),o(e,it);case 6:return a(e,ot),a(e,t.segmentPrefix),a(e,l(i.toString(16))),o(e,M);case 7:return a(e,ct),a(e,t.segmentPrefix),a(e,l(i.toString(16))),o(e,lt);default:throw Error(n(397))}}function ft(e,t){switch(t.insertionMode){case 0:case 1:return o(e,qe);case 2:return o(e,Xe);case 3:return o(e,$e);case 4:return o(e,nt);case 5:return o(e,at);case 6:return o(e,st);case 7:return o(e,ut);default:throw Error(n(397))}}var pt=u(`function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("`),mt=u(`$RS("`),ht=u(`","`),gt=u(`")<\/script>`),_t=u(`function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("`),vt=u(`$RC("`),yt=u(`","`),bt=u(`")<\/script>`),xt=u(`function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("`),St=u(`$RX("`),Ct=u(`"`),wt=u(`)<\/script>`),Tt=u(`,`),Et=/[<\u2028\u2029]/g;function Dt(e){return JSON.stringify(e).replace(Et,function(e){switch(e){case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}var Ot=Object.assign,kt=Symbol.for(`react.element`),At=Symbol.for(`react.portal`),jt=Symbol.for(`react.fragment`),Mt=Symbol.for(`react.strict_mode`),Nt=Symbol.for(`react.profiler`),Pt=Symbol.for(`react.provider`),Ft=Symbol.for(`react.context`),It=Symbol.for(`react.forward_ref`),Lt=Symbol.for(`react.suspense`),Rt=Symbol.for(`react.suspense_list`),zt=Symbol.for(`react.memo`),Bt=Symbol.for(`react.lazy`),Vt=Symbol.for(`react.scope`),Ht=Symbol.for(`react.debug_trace_mode`),Ut=Symbol.for(`react.legacy_hidden`),Wt=Symbol.for(`react.default_value`),Gt=Symbol.iterator;function Kt(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case jt:return`Fragment`;case At:return`Portal`;case Nt:return`Profiler`;case Mt:return`StrictMode`;case Lt:return`Suspense`;case Rt:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case Ft:return(e.displayName||`Context`)+`.Consumer`;case Pt:return(e._context.displayName||`Context`)+`.Provider`;case It:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case zt:return t=e.displayName||null,t===null?Kt(e.type)||`Memo`:t;case Bt:t=e._payload,e=e._init;try{return Kt(e(t))}catch{}}return null}var qt={};function Jt(e,t){if(e=e.contextTypes,!e)return qt;var n={},r;for(r in e)n[r]=t[r];return n}var Yt=null;function Xt(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(n(401))}else{if(r===null)throw Error(n(401));Xt(e,r)}t.context._currentValue=t.value}}function Zt(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&Zt(e)}function Qt(e){var t=e.parent;t!==null&&Qt(t),e.context._currentValue=e.value}function $t(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(n(402));e.depth===t.depth?Xt(e,t):$t(e,t)}function en(e,t){var r=t.parent;if(r===null)throw Error(n(402));e.depth===r.depth?Xt(e,r):en(e,r),t.context._currentValue=t.value}function tn(e){var t=Yt;t!==e&&(t===null?Qt(e):e===null?Zt(t):t.depth===e.depth?Xt(t,e):t.depth>e.depth?$t(t,e):en(t,e),Yt=e)}var nn={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function rn(e,t,n,r){var i=e.state===void 0?null:e.state;e.updater=nn,e.props=n,e.state=i;var a={queue:[],replace:!1};e._reactInternals=a;var o=t.contextType;if(e.context=typeof o==`object`&&o?o._currentValue:r,o=t.getDerivedStateFromProps,typeof o==`function`&&(o=o(n,i),i=o==null?i:Ot({},i,o),e.state=i),typeof t.getDerivedStateFromProps!=`function`&&typeof e.getSnapshotBeforeUpdate!=`function`&&(typeof e.UNSAFE_componentWillMount==`function`||typeof e.componentWillMount==`function`))if(t=e.state,typeof e.componentWillMount==`function`&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount==`function`&&e.UNSAFE_componentWillMount(),t!==e.state&&nn.enqueueReplaceState(e,e.state,null),a.queue!==null&&0<a.queue.length)if(t=a.queue,o=a.replace,a.queue=null,a.replace=!1,o&&t.length===1)e.state=t[0];else{for(a=o?t[0]:e.state,i=!0,o=+!!o;o<t.length;o++){var s=t[o];s=typeof s==`function`?s.call(e,a,n,r):s,s!=null&&(i?(i=!1,a=Ot({},a,s)):Ot(a,s))}e.state=a}else a.queue=null}var an={id:1,overflow:``};function on(e,t,n){var r=e.id;e=e.overflow;var i=32-sn(r)-1;r&=~(1<<i),n+=1;var a=32-sn(t)+i;if(30<a){var o=i-i%5;return a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,{id:1<<32-sn(t)+i|n<<i|r,overflow:a+e}}return{id:1<<a|n<<i|r,overflow:e}}var sn=Math.clz32?Math.clz32:un,cn=Math.log,ln=Math.LN2;function un(e){return e>>>=0,e===0?32:31-(cn(e)/ln|0)|0}function dn(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var fn=typeof Object.is==`function`?Object.is:dn,pn=null,mn=null,hn=null,gn=null,_n=!1,vn=!1,yn=0,bn=null,xn=0;function Sn(){if(pn===null)throw Error(n(321));return pn}function Cn(){if(0<xn)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function wn(){return gn===null?hn===null?(_n=!1,hn=gn=Cn()):(_n=!0,gn=hn):gn.next===null?(_n=!1,gn=gn.next=Cn()):(_n=!0,gn=gn.next),gn}function Tn(){mn=pn=null,vn=!1,hn=null,xn=0,gn=bn=null}function En(e,t){return typeof t==`function`?t(e):t}function Dn(e,t,n){if(pn=Sn(),gn=wn(),_n){var r=gn.queue;if(t=r.dispatch,bn!==null&&(n=bn.get(r),n!==void 0)){bn.delete(r),r=gn.memoizedState;do r=e(r,n.action),n=n.next;while(n!==null);return gn.memoizedState=r,[r,t]}return[gn.memoizedState,t]}return e=e===En?typeof t==`function`?t():t:n===void 0?t:n(t),gn.memoizedState=e,e=gn.queue={last:null,dispatch:null},e=e.dispatch=kn.bind(null,pn,e),[gn.memoizedState,e]}function On(e,t){if(pn=Sn(),gn=wn(),t=t===void 0?null:t,gn!==null){var n=gn.memoizedState;if(n!==null&&t!==null){var r=n[1];a:if(r===null)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!fn(t[i],r[i])){r=!1;break a}r=!0}if(r)return n[0]}}return e=e(),gn.memoizedState=[e,t],e}function kn(e,t,r){if(25<=xn)throw Error(n(301));if(e===pn)if(vn=!0,e={action:r,next:null},bn===null&&(bn=new Map),r=bn.get(t),r===void 0)bn.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function An(){throw Error(n(394))}function jn(){}var Mn={readContext:function(e){return e._currentValue},useContext:function(e){return Sn(),e._currentValue},useMemo:On,useReducer:Dn,useRef:function(e){pn=Sn(),gn=wn();var t=gn.memoizedState;return t===null?(e={current:e},gn.memoizedState=e):t},useState:function(e){return Dn(En,e)},useInsertionEffect:jn,useLayoutEffect:function(){},useCallback:function(e,t){return On(function(){return e},t)},useImperativeHandle:jn,useEffect:jn,useDebugValue:jn,useDeferredValue:function(e){return Sn(),e},useTransition:function(){return Sn(),[!1,An]},useId:function(){var e=mn.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-sn(e)-1)).toString(32)+t;var r=Nn;if(r===null)throw Error(n(404));return t=yn++,e=`:`+r.idPrefix+`R`+e,0<t&&(e+=`H`+t.toString(32)),e+`:`},useMutableSource:function(e,t){return Sn(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(n(407));return r()}},Nn=null,Pn=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Fn(e){return console.error(e),null}function In(){}function Ln(e,t,n,r,i,a,o,s,c){var l=[],u=new Set;return t={destination:null,responseState:t,progressiveChunkSize:r===void 0?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:l,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:i===void 0?Fn:i,onAllReady:a===void 0?In:a,onShellReady:o===void 0?In:o,onShellError:s===void 0?In:s,onFatalError:c===void 0?In:c},n=zn(t,0,null,n,!1,!1),n.parentFlushed=!0,e=Rn(t,e,null,n,u,qt,null,an),l.push(e),t}function Rn(e,t,n,r,i,a,o,s){e.allPendingTasks++,n===null?e.pendingRootTasks++:n.pendingTasks++;var c={node:t,ping:function(){var t=e.pingedTasks;t.push(c),t.length===1&&$n(e)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:a,context:o,treeContext:s};return i.add(c),c}function zn(e,t,n,r,i,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:a}}function Bn(e,t){if(e=e.onError(t),e!=null&&typeof e!=`string`)throw Error(`onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "`+typeof e+`" instead`);return e}function Vn(e,t){var n=e.onShellError;n(t),n=e.onFatalError,n(t),e.destination===null?(e.status=1,e.fatalError=t):(e.status=2,d(e.destination,t))}function Hn(e,t,n,r,i){for(pn={},mn=t,yn=0,e=n(r,i);vn;)vn=!1,yn=0,xn+=1,gn=null,e=n(r,i);return Tn(),e}function Un(e,t,r,i){var a=r.render(),o=i.childContextTypes;if(o!=null){var s=t.legacyContext;if(typeof r.getChildContext!=`function`)i=s;else{for(var c in r=r.getChildContext(),r)if(!(c in o))throw Error(n(108,Kt(i)||`Unknown`,c));i=Ot({},s,r)}t.legacyContext=i,Kn(e,t,a),t.legacyContext=s}else Kn(e,t,a)}function Wn(e,t){if(e&&e.defaultProps){for(var n in t=Ot({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Gn(e,t,r,i,a){if(typeof r==`function`)if(r.prototype&&r.prototype.isReactComponent){a=Jt(r,t.legacyContext);var o=r.contextType;o=new r(i,typeof o==`object`&&o?o._currentValue:a),rn(o,r,i,a),Un(e,t,o,r)}else{o=Jt(r,t.legacyContext),a=Hn(e,t,r,i,o);var s=yn!==0;if(typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0)rn(a,r,i,o),Un(e,t,a,r);else if(s){i=t.treeContext,t.treeContext=on(i,1,0);try{Kn(e,t,a)}finally{t.treeContext=i}}else Kn(e,t,a)}else if(typeof r==`string`){switch(a=t.blockedSegment,o=Ae(a.chunks,r,i,e.responseState,a.formatContext),a.lastPushedText=!1,s=a.formatContext,a.formatContext=ce(s,r,i),Jn(e,t,o),a.formatContext=s,r){case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break;default:a.chunks.push(je,l(r),Me)}a.lastPushedText=!1}else{switch(r){case Ut:case Ht:case Mt:case Nt:case jt:Kn(e,t,i.children);return;case Rt:Kn(e,t,i.children);return;case Vt:throw Error(n(343));case Lt:a:{r=t.blockedBoundary,a=t.blockedSegment,o=i.fallback,i=i.children,s=new Set;var c={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null},u=zn(e,a.chunks.length,c,a.formatContext,!1,!1);a.children.push(u),a.lastPushedText=!1;var d=zn(e,0,null,a.formatContext,!1,!1);d.parentFlushed=!0,t.blockedBoundary=c,t.blockedSegment=d;try{if(Jn(e,t,i),d.lastPushedText&&d.textEmbedded&&d.chunks.push(le),d.status=1,Zn(c,d),c.pendingTasks===0)break a}catch(t){d.status=4,c.forceClientRender=!0,c.errorDigest=Bn(e,t)}finally{t.blockedBoundary=r,t.blockedSegment=a}t=Rn(e,o,r,u,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r==`object`&&r)switch(r.$$typeof){case It:if(i=Hn(e,t,r.render,i,a),yn!==0){r=t.treeContext,t.treeContext=on(r,1,0);try{Kn(e,t,i)}finally{t.treeContext=r}}else Kn(e,t,i);return;case zt:r=r.type,i=Wn(r,i),Gn(e,t,r,i,a);return;case Pt:if(a=i.children,r=r._context,i=i.value,o=r._currentValue,r._currentValue=i,s=Yt,Yt=i={parent:s,depth:s===null?0:s.depth+1,context:r,parentValue:o,value:i},t.context=i,Kn(e,t,a),e=Yt,e===null)throw Error(n(403));i=e.parentValue,e.context._currentValue=i===Wt?e.context._defaultValue:i,e=Yt=e.parent,t.context=e;return;case Ft:i=i.children,i=i(r._currentValue),Kn(e,t,i);return;case Bt:a=r._init,r=a(r._payload),i=Wn(r,i),Gn(e,t,r,i,void 0);return}throw Error(n(130,r==null?r:typeof r,``))}}function Kn(e,t,r){if(t.node=r,typeof r==`object`&&r){switch(r.$$typeof){case kt:Gn(e,t,r.type,r.props,r.ref);return;case At:throw Error(n(257));case Bt:var i=r._init;r=i(r._payload),Kn(e,t,r);return}if(ee(r)){qn(e,t,r);return}if(typeof r!=`object`||!r?i=null:(i=Gt&&r[Gt]||r[`@@iterator`],i=typeof i==`function`?i:null),i&&=i.call(r)){if(r=i.next(),!r.done){var a=[];do a.push(r.value),r=i.next();while(!r.done);qn(e,t,a)}return}throw e=Object.prototype.toString.call(r),Error(n(31,e===`[object Object]`?`object with keys {`+Object.keys(r).join(`, `)+`}`:e))}typeof r==`string`?(i=t.blockedSegment,i.lastPushedText=ue(t.blockedSegment.chunks,r,e.responseState,i.lastPushedText)):typeof r==`number`&&(i=t.blockedSegment,i.lastPushedText=ue(t.blockedSegment.chunks,``+r,e.responseState,i.lastPushedText))}function qn(e,t,n){for(var r=n.length,i=0;i<r;i++){var a=t.treeContext;t.treeContext=on(a,r,i);try{Jn(e,t,n[i])}finally{t.treeContext=a}}}function Jn(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,a=t.context;try{return Kn(e,t,n)}catch(c){if(Tn(),typeof c==`object`&&c&&typeof c.then==`function`){n=c;var o=t.blockedSegment,s=zn(e,o.chunks.length,null,o.formatContext,o.lastPushedText,!0);o.children.push(s),o.lastPushedText=!1,e=Rn(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=a,tn(a)}else throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=a,tn(a),c}}function Yn(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,Qn(this,t,e)}function Xn(e,t,r){var i=e.blockedBoundary;e.blockedSegment.status=3,i===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.close())):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,e=r===void 0?Error(n(432)):r,i.errorDigest=t.onError(e),i.parentFlushed&&t.clientRenderedBoundaries.push(i)),i.fallbackAbortableTasks.forEach(function(e){return Xn(e,t,r)}),i.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(i=t.onAllReady,i()))}function Zn(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status===1&&Zn(e,n)}else e.completedSegments.push(t)}function Qn(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(n(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=In,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&Zn(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Yn,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(Zn(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function $n(e){if(e.status!==2){var t=Yt,n=Pn.current;Pn.current=Mn;var r=Nn;Nn=e.responseState;try{var i=e.pingedTasks,a;for(a=0;a<i.length;a++){var o=i[a],s=e,c=o.blockedSegment;if(c.status===0){tn(o.context);try{Kn(s,o,o.node),c.lastPushedText&&c.textEmbedded&&c.chunks.push(le),o.abortSet.delete(o),c.status=1,Qn(s,o.blockedBoundary,c)}catch(e){if(Tn(),typeof e==`object`&&e&&typeof e.then==`function`){var l=o.ping;e.then(l,l)}else{o.abortSet.delete(o),c.status=4;var u=o.blockedBoundary,d=e,f=Bn(s,d);if(u===null?Vn(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=f,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,s.allPendingTasks===0){var p=s.onAllReady;p()}}}}}i.splice(0,a),e.destination!==null&&ar(e,e.destination)}catch(t){Bn(e,t),Vn(e,t)}finally{Nn=r,Pn.current=n,n===Mn&&tn(t)}}}function er(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var i=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,a(t,Ne),a(t,e.placeholderPrefix),e=l(i.toString(16)),a(t,e),o(t,Pe);case 1:r.status=2;var s=!0;i=r.chunks;var c=0;r=r.children;for(var u=0;u<r.length;u++){for(s=r[u];c<s.index;c++)a(t,i[c]);s=tr(e,t,s)}for(;c<i.length-1;c++)a(t,i[c]);return c<i.length&&(s=o(t,i[c])),s;default:throw Error(n(390))}}function tr(e,t,r){var i=r.boundary;if(i===null)return er(e,t,r);if(i.parentFlushed=!0,i.forceClientRender)i=i.errorDigest,o(t,Re),a(t,Be),i&&(a(t,He),a(t,l(w(i))),a(t,Ve)),o(t,Ue),er(e,t,r);else if(0<i.pendingTasks){i.rootSegmentID=e.nextSegmentId++,0<i.completedSegments.length&&e.partialBoundaries.push(i);var s=e.responseState,c=s.nextSuspenseID++;s=u(s.boundaryPrefix+c.toString(16)),i=i.id=s,We(t,e.responseState,i),er(e,t,r)}else if(i.byteSize>e.progressiveChunkSize)i.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(i),We(t,e.responseState,i.id),er(e,t,r);else{if(o(t,Fe),r=i.completedSegments,r.length!==1)throw Error(n(391));tr(e,t,r[0])}return o(t,ze)}function nr(e,t,n){return dt(t,e.responseState,n.formatContext,n.id),tr(e,t,n),ft(t,n.formatContext)}function rr(e,t,r){for(var i=r.completedSegments,s=0;s<i.length;s++)ir(e,t,r,i[s]);if(i.length=0,e=e.responseState,i=r.id,r=r.rootSegmentID,a(t,e.startInlineScript),e.sentCompleteBoundaryFunction?a(t,vt):(e.sentCompleteBoundaryFunction=!0,a(t,_t)),i===null)throw Error(n(395));return r=l(r.toString(16)),a(t,i),a(t,yt),a(t,e.segmentPrefix),a(t,r),o(t,bt)}function ir(e,t,r,i){if(i.status===2)return!0;var s=i.id;if(s===-1){if((i.id=r.rootSegmentID)===-1)throw Error(n(392));return nr(e,t,i)}return nr(e,t,i),e=e.responseState,a(t,e.startInlineScript),e.sentCompleteSegmentFunction?a(t,mt):(e.sentCompleteSegmentFunction=!0,a(t,pt)),a(t,e.segmentPrefix),s=l(s.toString(16)),a(t,s),a(t,ht),a(t,e.placeholderPrefix),a(t,s),o(t,gt)}function ar(e,t){r=new Uint8Array(512),i=0;try{var c=e.completedRootSegment;if(c!==null&&e.pendingRootTasks===0){tr(e,t,c),e.completedRootSegment=null;var u=e.responseState.bootstrapChunks;for(c=0;c<u.length-1;c++)a(t,u[c]);c<u.length&&o(t,u[c])}var d=e.clientRenderedBoundaries,f;for(f=0;f<d.length;f++){var p=d[f];u=t;var m=e.responseState,h=p.id,g=p.errorDigest,_=p.errorMessage,v=p.errorComponentStack;if(a(u,m.startInlineScript),m.sentClientRenderFunction?a(u,St):(m.sentClientRenderFunction=!0,a(u,xt)),h===null)throw Error(n(395));if(a(u,h),a(u,Ct),(g||_||v)&&(a(u,Tt),a(u,l(Dt(g||``)))),(_||v)&&(a(u,Tt),a(u,l(Dt(_||``)))),v&&(a(u,Tt),a(u,l(Dt(v)))),!o(u,wt)){e.destination=null,f++,d.splice(0,f);return}}d.splice(0,f);var y=e.completedBoundaries;for(f=0;f<y.length;f++)if(!rr(e,t,y[f])){e.destination=null,f++,y.splice(0,f);return}y.splice(0,f),s(t),r=new Uint8Array(512),i=0;var b=e.partialBoundaries;for(f=0;f<b.length;f++){var x=b[f];a:{d=e,p=t;var S=x.completedSegments;for(m=0;m<S.length;m++)if(!ir(d,p,x,S[m])){m++,S.splice(0,m);var C=!1;break a}S.splice(0,m),C=!0}if(!C){e.destination=null,f++,b.splice(0,f);return}}b.splice(0,f);var w=e.completedBoundaries;for(f=0;f<w.length;f++)if(!rr(e,t,w[f])){e.destination=null,f++,w.splice(0,f);return}w.splice(0,f)}finally{s(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.close()}}function or(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return Xn(n,e,t)}),n.clear(),e.destination!==null&&ar(e,e.destination)}catch(t){Bn(e,t),Vn(e,t)}}e.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,a,o=new Promise(function(e,t){a=e,i=t}),s=Ln(e,oe(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),se(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){if(s.status===1)s.status=2,d(e,s.fatalError);else if(s.status!==2&&s.destination===null){s.destination=e;try{ar(s,e)}catch(e){Bn(s,e),Vn(s,e)}}},cancel:function(){or(s)}},{highWaterMark:0});e.allReady=o,n(e)},function(e){o.catch(function(){}),r(e)},i);if(t&&t.signal){var c=t.signal,l=function(){or(s,c.reason),c.removeEventListener(`abort`,l)};c.addEventListener(`abort`,l)}$n(s)})},e.version=`18.3.1`})),pe=e.t((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=require(`react`),n=`18.3.1`,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function i(e){o(`warn`,e,[...arguments].slice(1))}function a(e){o(`error`,e,[...arguments].slice(1))}function o(e,t,n){var i=r.ReactDebugCurrentFrame.getStackAddendum();i!==``&&(t+=`%s`,n=n.concat([i]));var a=n.map(function(e){return String(e)});a.unshift(`Warning: `+t),Function.prototype.apply.call(console[e],console,a)}function s(e){e()}function c(e,t){l(e,t)}function l(e,t){return e.push(t)}function u(e){e.push(null)}function d(e){return e}function f(e){return e}function p(e,t){e.destroy(t)}function m(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function h(e){try{return g(e),!1}catch{return!0}}function g(e){return``+e}function _(e,t){if(h(e))return a("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,m(e)),g(e)}function v(e,t){if(h(e))return a("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,m(e)),g(e)}function y(e){if(h(e))return a(`The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.`,m(e)),g(e)}var b=Object.prototype.hasOwnProperty,x=0,S=1,C=2,w=3,T=4,E=5,ee=6,te=`: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`,D=te+`\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040`,O=RegExp(`^[`+te+`][`+D+`]*$`),ne={},re={};function ie(e){return b.call(re,e)?!0:b.call(ne,e)?!1:O.test(e)?(re[e]=!0,!0):(ne[e]=!0,a("Invalid attribute name: `%s`",e),!1)}function ae(e,t,n,r){if(n!==null&&n.type===x)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:if(r)return!1;if(n!==null)return!n.acceptsBooleans;var i=e.toLowerCase().slice(0,5);return i!==`data-`&&i!==`aria-`;default:return!1}}function oe(e){return se.hasOwnProperty(e)?se[e]:null}function k(e,t,n,r,i,a,o){this.acceptsBooleans=t===C||t===w||t===T,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var se={};[`children`,`dangerouslySetInnerHTML`,`defaultValue`,`defaultChecked`,`innerHTML`,`suppressContentEditableWarning`,`suppressHydrationWarning`,`style`].forEach(function(e){se[e]=new k(e,x,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0],n=e[1];se[t]=new k(t,S,!1,n,null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){se[e]=new k(e,C,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){se[e]=new k(e,C,!1,e,null,!1,!1)}),[`allowFullScreen`,`async`,`autoFocus`,`autoPlay`,`controls`,`default`,`defer`,`disabled`,`disablePictureInPicture`,`disableRemotePlayback`,`formNoValidate`,`hidden`,`loop`,`noModule`,`noValidate`,`open`,`playsInline`,`readOnly`,`required`,`reversed`,`scoped`,`seamless`,`itemScope`].forEach(function(e){se[e]=new k(e,w,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){se[e]=new k(e,w,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){se[e]=new k(e,T,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){se[e]=new k(e,ee,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){se[e]=new k(e,E,!1,e.toLowerCase(),null,!1,!1)});var ce=/[\-\:]([a-z])/g,le=function(e){return e[1].toUpperCase()};`accent-height.alignment-baseline.arabic-form.baseline-shift.cap-height.clip-path.clip-rule.color-interpolation.color-interpolation-filters.color-profile.color-rendering.dominant-baseline.enable-background.fill-opacity.fill-rule.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.glyph-name.glyph-orientation-horizontal.glyph-orientation-vertical.horiz-adv-x.horiz-origin-x.image-rendering.letter-spacing.lighting-color.marker-end.marker-mid.marker-start.overline-position.overline-thickness.paint-order.panose-1.pointer-events.rendering-intent.shape-rendering.stop-color.stop-opacity.strikethrough-position.strikethrough-thickness.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-anchor.text-decoration.text-rendering.underline-position.underline-thickness.unicode-bidi.unicode-range.units-per-em.v-alphabetic.v-hanging.v-ideographic.v-mathematical.vector-effect.vert-adv-y.vert-origin-x.vert-origin-y.word-spacing.writing-mode.xmlns:xlink.x-height`.split(`.`).forEach(function(e){var t=e.replace(ce,le);se[t]=new k(t,S,!1,e,null,!1,!1)}),[`xlink:actuate`,`xlink:arcrole`,`xlink:role`,`xlink:show`,`xlink:title`,`xlink:type`].forEach(function(e){var t=e.replace(ce,le);se[t]=new k(t,S,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(ce,le);se[t]=new k(t,S,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){se[e]=new k(e,S,!1,e.toLowerCase(),null,!1,!1)});var ue=`xlinkHref`;se[ue]=new k(`xlinkHref`,S,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){se[e]=new k(e,S,!1,e.toLowerCase(),null,!0,!0)});var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function A(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var fe=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(de).forEach(function(e){fe.forEach(function(t){de[A(t,e)]=de[e]})});var pe={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function me(e,t){pe[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||a("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||a("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function he(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var ge={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},_e={},ve=RegExp(`^(aria)-[`+D+`]*$`),ye=RegExp(`^(aria)[A-Z][`+D+`]*$`);function be(e,t){if(b.call(_e,t)&&_e[t])return!0;if(ye.test(t)){var n=`aria-`+t.slice(4).toLowerCase(),r=ge.hasOwnProperty(n)?n:null;if(r==null)return a("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),_e[t]=!0,!0;if(t!==r)return a("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,r),_e[t]=!0,!0}if(ve.test(t)){var i=t.toLowerCase(),o=ge.hasOwnProperty(i)?i:null;if(o==null)return _e[t]=!0,!1;if(t!==o)return a("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,o),_e[t]=!0,!0}return!0}function xe(e,t){var n=[];for(var r in t)be(e,r)||n.push(r);var i=n.map(function(e){return"`"+e+"`"}).join(`, `);n.length===1?a(`Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props`,i,e):n.length>1&&a(`Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props`,i,e)}function Se(e,t){he(e,t)||xe(e,t)}var Ce=!1;function we(e,t){e!==`input`&&e!==`textarea`&&e!==`select`||t!=null&&t.value===null&&!Ce&&(Ce=!0,e===`select`&&t.multiple?a("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):a("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}var j={accept:`accept`,acceptcharset:`acceptCharset`,"accept-charset":`acceptCharset`,accesskey:`accessKey`,action:`action`,allowfullscreen:`allowFullScreen`,alt:`alt`,as:`as`,async:`async`,autocapitalize:`autoCapitalize`,autocomplete:`autoComplete`,autocorrect:`autoCorrect`,autofocus:`autoFocus`,autoplay:`autoPlay`,autosave:`autoSave`,capture:`capture`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,challenge:`challenge`,charset:`charSet`,checked:`checked`,children:`children`,cite:`cite`,class:`className`,classid:`classID`,classname:`className`,cols:`cols`,colspan:`colSpan`,content:`content`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controls:`controls`,controlslist:`controlsList`,coords:`coords`,crossorigin:`crossOrigin`,dangerouslysetinnerhtml:`dangerouslySetInnerHTML`,data:`data`,datetime:`dateTime`,default:`default`,defaultchecked:`defaultChecked`,defaultvalue:`defaultValue`,defer:`defer`,dir:`dir`,disabled:`disabled`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`,download:`download`,draggable:`draggable`,enctype:`encType`,enterkeyhint:`enterKeyHint`,for:`htmlFor`,form:`form`,formmethod:`formMethod`,formaction:`formAction`,formenctype:`formEncType`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameborder:`frameBorder`,headers:`headers`,height:`height`,hidden:`hidden`,high:`high`,href:`href`,hreflang:`hrefLang`,htmlfor:`htmlFor`,httpequiv:`httpEquiv`,"http-equiv":`httpEquiv`,icon:`icon`,id:`id`,imagesizes:`imageSizes`,imagesrcset:`imageSrcSet`,innerhtml:`innerHTML`,inputmode:`inputMode`,integrity:`integrity`,is:`is`,itemid:`itemID`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,keyparams:`keyParams`,keytype:`keyType`,kind:`kind`,label:`label`,lang:`lang`,list:`list`,loop:`loop`,low:`low`,manifest:`manifest`,marginwidth:`marginWidth`,marginheight:`marginHeight`,max:`max`,maxlength:`maxLength`,media:`media`,mediagroup:`mediaGroup`,method:`method`,min:`min`,minlength:`minLength`,multiple:`multiple`,muted:`muted`,name:`name`,nomodule:`noModule`,nonce:`nonce`,novalidate:`noValidate`,open:`open`,optimum:`optimum`,pattern:`pattern`,placeholder:`placeholder`,playsinline:`playsInline`,poster:`poster`,preload:`preload`,profile:`profile`,radiogroup:`radioGroup`,readonly:`readOnly`,referrerpolicy:`referrerPolicy`,rel:`rel`,required:`required`,reversed:`reversed`,role:`role`,rows:`rows`,rowspan:`rowSpan`,sandbox:`sandbox`,scope:`scope`,scoped:`scoped`,scrolling:`scrolling`,seamless:`seamless`,selected:`selected`,shape:`shape`,size:`size`,sizes:`sizes`,span:`span`,spellcheck:`spellCheck`,src:`src`,srcdoc:`srcDoc`,srclang:`srcLang`,srcset:`srcSet`,start:`start`,step:`step`,style:`style`,summary:`summary`,tabindex:`tabIndex`,target:`target`,title:`title`,type:`type`,usemap:`useMap`,value:`value`,width:`width`,wmode:`wmode`,wrap:`wrap`,about:`about`,accentheight:`accentHeight`,"accent-height":`accentHeight`,accumulate:`accumulate`,additive:`additive`,alignmentbaseline:`alignmentBaseline`,"alignment-baseline":`alignmentBaseline`,allowreorder:`allowReorder`,alphabetic:`alphabetic`,amplitude:`amplitude`,arabicform:`arabicForm`,"arabic-form":`arabicForm`,ascent:`ascent`,attributename:`attributeName`,attributetype:`attributeType`,autoreverse:`autoReverse`,azimuth:`azimuth`,basefrequency:`baseFrequency`,baselineshift:`baselineShift`,"baseline-shift":`baselineShift`,baseprofile:`baseProfile`,bbox:`bbox`,begin:`begin`,bias:`bias`,by:`by`,calcmode:`calcMode`,capheight:`capHeight`,"cap-height":`capHeight`,clip:`clip`,clippath:`clipPath`,"clip-path":`clipPath`,clippathunits:`clipPathUnits`,cliprule:`clipRule`,"clip-rule":`clipRule`,color:`color`,colorinterpolation:`colorInterpolation`,"color-interpolation":`colorInterpolation`,colorinterpolationfilters:`colorInterpolationFilters`,"color-interpolation-filters":`colorInterpolationFilters`,colorprofile:`colorProfile`,"color-profile":`colorProfile`,colorrendering:`colorRendering`,"color-rendering":`colorRendering`,contentscripttype:`contentScriptType`,contentstyletype:`contentStyleType`,cursor:`cursor`,cx:`cx`,cy:`cy`,d:`d`,datatype:`datatype`,decelerate:`decelerate`,descent:`descent`,diffuseconstant:`diffuseConstant`,direction:`direction`,display:`display`,divisor:`divisor`,dominantbaseline:`dominantBaseline`,"dominant-baseline":`dominantBaseline`,dur:`dur`,dx:`dx`,dy:`dy`,edgemode:`edgeMode`,elevation:`elevation`,enablebackground:`enableBackground`,"enable-background":`enableBackground`,end:`end`,exponent:`exponent`,externalresourcesrequired:`externalResourcesRequired`,fill:`fill`,fillopacity:`fillOpacity`,"fill-opacity":`fillOpacity`,fillrule:`fillRule`,"fill-rule":`fillRule`,filter:`filter`,filterres:`filterRes`,filterunits:`filterUnits`,floodopacity:`floodOpacity`,"flood-opacity":`floodOpacity`,floodcolor:`floodColor`,"flood-color":`floodColor`,focusable:`focusable`,fontfamily:`fontFamily`,"font-family":`fontFamily`,fontsize:`fontSize`,"font-size":`fontSize`,fontsizeadjust:`fontSizeAdjust`,"font-size-adjust":`fontSizeAdjust`,fontstretch:`fontStretch`,"font-stretch":`fontStretch`,fontstyle:`fontStyle`,"font-style":`fontStyle`,fontvariant:`fontVariant`,"font-variant":`fontVariant`,fontweight:`fontWeight`,"font-weight":`fontWeight`,format:`format`,from:`from`,fx:`fx`,fy:`fy`,g1:`g1`,g2:`g2`,glyphname:`glyphName`,"glyph-name":`glyphName`,glyphorientationhorizontal:`glyphOrientationHorizontal`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphorientationvertical:`glyphOrientationVertical`,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphref:`glyphRef`,gradienttransform:`gradientTransform`,gradientunits:`gradientUnits`,hanging:`hanging`,horizadvx:`horizAdvX`,"horiz-adv-x":`horizAdvX`,horizoriginx:`horizOriginX`,"horiz-origin-x":`horizOriginX`,ideographic:`ideographic`,imagerendering:`imageRendering`,"image-rendering":`imageRendering`,in2:`in2`,in:`in`,inlist:`inlist`,intercept:`intercept`,k1:`k1`,k2:`k2`,k3:`k3`,k4:`k4`,k:`k`,kernelmatrix:`kernelMatrix`,kernelunitlength:`kernelUnitLength`,kerning:`kerning`,keypoints:`keyPoints`,keysplines:`keySplines`,keytimes:`keyTimes`,lengthadjust:`lengthAdjust`,letterspacing:`letterSpacing`,"letter-spacing":`letterSpacing`,lightingcolor:`lightingColor`,"lighting-color":`lightingColor`,limitingconeangle:`limitingConeAngle`,local:`local`,markerend:`markerEnd`,"marker-end":`markerEnd`,markerheight:`markerHeight`,markermid:`markerMid`,"marker-mid":`markerMid`,markerstart:`markerStart`,"marker-start":`markerStart`,markerunits:`markerUnits`,markerwidth:`markerWidth`,mask:`mask`,maskcontentunits:`maskContentUnits`,maskunits:`maskUnits`,mathematical:`mathematical`,mode:`mode`,numoctaves:`numOctaves`,offset:`offset`,opacity:`opacity`,operator:`operator`,order:`order`,orient:`orient`,orientation:`orientation`,origin:`origin`,overflow:`overflow`,overlineposition:`overlinePosition`,"overline-position":`overlinePosition`,overlinethickness:`overlineThickness`,"overline-thickness":`overlineThickness`,paintorder:`paintOrder`,"paint-order":`paintOrder`,panose1:`panose1`,"panose-1":`panose1`,pathlength:`pathLength`,patterncontentunits:`patternContentUnits`,patterntransform:`patternTransform`,patternunits:`patternUnits`,pointerevents:`pointerEvents`,"pointer-events":`pointerEvents`,points:`points`,pointsatx:`pointsAtX`,pointsaty:`pointsAtY`,pointsatz:`pointsAtZ`,prefix:`prefix`,preservealpha:`preserveAlpha`,preserveaspectratio:`preserveAspectRatio`,primitiveunits:`primitiveUnits`,property:`property`,r:`r`,radius:`radius`,refx:`refX`,refy:`refY`,renderingintent:`renderingIntent`,"rendering-intent":`renderingIntent`,repeatcount:`repeatCount`,repeatdur:`repeatDur`,requiredextensions:`requiredExtensions`,requiredfeatures:`requiredFeatures`,resource:`resource`,restart:`restart`,result:`result`,results:`results`,rotate:`rotate`,rx:`rx`,ry:`ry`,scale:`scale`,security:`security`,seed:`seed`,shaperendering:`shapeRendering`,"shape-rendering":`shapeRendering`,slope:`slope`,spacing:`spacing`,specularconstant:`specularConstant`,specularexponent:`specularExponent`,speed:`speed`,spreadmethod:`spreadMethod`,startoffset:`startOffset`,stddeviation:`stdDeviation`,stemh:`stemh`,stemv:`stemv`,stitchtiles:`stitchTiles`,stopcolor:`stopColor`,"stop-color":`stopColor`,stopopacity:`stopOpacity`,"stop-opacity":`stopOpacity`,strikethroughposition:`strikethroughPosition`,"strikethrough-position":`strikethroughPosition`,strikethroughthickness:`strikethroughThickness`,"strikethrough-thickness":`strikethroughThickness`,string:`string`,stroke:`stroke`,strokedasharray:`strokeDasharray`,"stroke-dasharray":`strokeDasharray`,strokedashoffset:`strokeDashoffset`,"stroke-dashoffset":`strokeDashoffset`,strokelinecap:`strokeLinecap`,"stroke-linecap":`strokeLinecap`,strokelinejoin:`strokeLinejoin`,"stroke-linejoin":`strokeLinejoin`,strokemiterlimit:`strokeMiterlimit`,"stroke-miterlimit":`strokeMiterlimit`,strokewidth:`strokeWidth`,"stroke-width":`strokeWidth`,strokeopacity:`strokeOpacity`,"stroke-opacity":`strokeOpacity`,suppresscontenteditablewarning:`suppressContentEditableWarning`,suppresshydrationwarning:`suppressHydrationWarning`,surfacescale:`surfaceScale`,systemlanguage:`systemLanguage`,tablevalues:`tableValues`,targetx:`targetX`,targety:`targetY`,textanchor:`textAnchor`,"text-anchor":`textAnchor`,textdecoration:`textDecoration`,"text-decoration":`textDecoration`,textlength:`textLength`,textrendering:`textRendering`,"text-rendering":`textRendering`,to:`to`,transform:`transform`,typeof:`typeof`,u1:`u1`,u2:`u2`,underlineposition:`underlinePosition`,"underline-position":`underlinePosition`,underlinethickness:`underlineThickness`,"underline-thickness":`underlineThickness`,unicode:`unicode`,unicodebidi:`unicodeBidi`,"unicode-bidi":`unicodeBidi`,unicoderange:`unicodeRange`,"unicode-range":`unicodeRange`,unitsperem:`unitsPerEm`,"units-per-em":`unitsPerEm`,unselectable:`unselectable`,valphabetic:`vAlphabetic`,"v-alphabetic":`vAlphabetic`,values:`values`,vectoreffect:`vectorEffect`,"vector-effect":`vectorEffect`,version:`version`,vertadvy:`vertAdvY`,"vert-adv-y":`vertAdvY`,vertoriginx:`vertOriginX`,"vert-origin-x":`vertOriginX`,vertoriginy:`vertOriginY`,"vert-origin-y":`vertOriginY`,vhanging:`vHanging`,"v-hanging":`vHanging`,videographic:`vIdeographic`,"v-ideographic":`vIdeographic`,viewbox:`viewBox`,viewtarget:`viewTarget`,visibility:`visibility`,vmathematical:`vMathematical`,"v-mathematical":`vMathematical`,vocab:`vocab`,widths:`widths`,wordspacing:`wordSpacing`,"word-spacing":`wordSpacing`,writingmode:`writingMode`,"writing-mode":`writingMode`,x1:`x1`,x2:`x2`,x:`x`,xchannelselector:`xChannelSelector`,xheight:`xHeight`,"x-height":`xHeight`,xlinkactuate:`xlinkActuate`,"xlink:actuate":`xlinkActuate`,xlinkarcrole:`xlinkArcrole`,"xlink:arcrole":`xlinkArcrole`,xlinkhref:`xlinkHref`,"xlink:href":`xlinkHref`,xlinkrole:`xlinkRole`,"xlink:role":`xlinkRole`,xlinkshow:`xlinkShow`,"xlink:show":`xlinkShow`,xlinktitle:`xlinkTitle`,"xlink:title":`xlinkTitle`,xlinktype:`xlinkType`,"xlink:type":`xlinkType`,xmlbase:`xmlBase`,"xml:base":`xmlBase`,xmllang:`xmlLang`,"xml:lang":`xmlLang`,xmlns:`xmlns`,"xml:space":`xmlSpace`,xmlnsxlink:`xmlnsXlink`,"xmlns:xlink":`xmlnsXlink`,xmlspace:`xmlSpace`,y1:`y1`,y2:`y2`,y:`y`,ychannelselector:`yChannelSelector`,z:`z`,zoomandpan:`zoomAndPan`},Te=function(){},Ee={},De=/^on./,Oe=/^on[^A-Z]/,ke=RegExp(`^(aria)-[`+D+`]*$`),Ae=RegExp(`^(aria)[A-Z][`+D+`]*$`);Te=function(e,t,n,r){if(b.call(Ee,t)&&Ee[t])return!0;var i=t.toLowerCase();if(i===`onfocusin`||i===`onfocusout`)return a(`React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.`),Ee[t]=!0,!0;if(r!=null){var o=r.registrationNameDependencies,s=r.possibleRegistrationNames;if(o.hasOwnProperty(t))return!0;var c=s.hasOwnProperty(i)?s[i]:null;if(c!=null)return a("Invalid event handler property `%s`. Did you mean `%s`?",t,c),Ee[t]=!0,!0;if(De.test(t))return a("Unknown event handler property `%s`. It will be ignored.",t),Ee[t]=!0,!0}else if(De.test(t))return Oe.test(t)&&a("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Ee[t]=!0,!0;if(ke.test(t)||Ae.test(t))return!0;if(i===`innerhtml`)return a("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ee[t]=!0,!0;if(i===`aria`)return a("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ee[t]=!0,!0;if(i===`is`&&n!=null&&typeof n!=`string`)return a("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Ee[t]=!0,!0;if(typeof n==`number`&&isNaN(n))return a("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Ee[t]=!0,!0;var l=oe(t),u=l!==null&&l.type===x;if(j.hasOwnProperty(i)){var d=j[i];if(d!==t)return a("Invalid DOM property `%s`. Did you mean `%s`?",t,d),Ee[t]=!0,!0}else if(!u&&t!==i)return a("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,i),Ee[t]=!0,!0;return typeof n==`boolean`&&ae(t,n,l,!1)?(n?a('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):a(`Received \`%s\` for a non-boolean attribute \`%s\`.
|
|
12
|
-
|
|
13
|
-
If you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.
|
|
14
|
-
|
|
15
|
-
If you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.`,n,t,t,n,t,t,t),Ee[t]=!0,!0):u?!0:ae(t,n,l,!1)?(Ee[t]=!0,!1):(n===`false`||n===`true`)&&l!==null&&l.type===w?(a("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n===`false`?`The browser will interpret it as a truthy value.`:`Although this works, it will not work as expected if you pass the string "false".`,t,n),Ee[t]=!0,!0):!0};var je=function(e,t,n){var r=[];for(var i in t)Te(e,i,t[i],n)||r.push(i);var o=r.map(function(e){return"`"+e+"`"}).join(`, `);r.length===1?a(`Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior `,o,e):r.length>1&&a(`Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior `,o,e)};function Me(e,t,n){he(e,t)||je(e,t,n)}var Ne=function(){},Pe=/^(?:webkit|moz|o)[A-Z]/,Fe=/^-ms-/,Ie=/-(.)/g,Le=/;\s*$/,Re={},ze={},Be=!1,Ve=!1,He=function(e){return e.replace(Ie,function(e,t){return t.toUpperCase()})},Ue=function(e){Re.hasOwnProperty(e)&&Re[e]||(Re[e]=!0,a(`Unsupported style property %s. Did you mean %s?`,e,He(e.replace(Fe,`ms-`))))},We=function(e){Re.hasOwnProperty(e)&&Re[e]||(Re[e]=!0,a(`Unsupported vendor-prefixed style property %s. Did you mean %s?`,e,e.charAt(0).toUpperCase()+e.slice(1)))},Ge=function(e,t){ze.hasOwnProperty(t)&&ze[t]||(ze[t]=!0,a(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Le,``)))},Ke=function(e,t){Be||(Be=!0,a("`NaN` is an invalid value for the `%s` css style property.",e))},qe=function(e,t){Ve||(Ve=!0,a("`Infinity` is an invalid value for the `%s` css style property.",e))};Ne=function(e,t){e.indexOf(`-`)>-1?Ue(e):Pe.test(e)?We(e):Le.test(t)&&Ge(e,t),typeof t==`number`&&(isNaN(t)?Ke(e,t):isFinite(t)||qe(e,t))};var Je=Ne,Ye=/["'&<>]/;function Xe(e){y(e);var t=``+e,n=Ye.exec(t);if(!n)return t;var r,i=``,a,o=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:r=`"`;break;case 38:r=`&`;break;case 39:r=`'`;break;case 60:r=`<`;break;case 62:r=`>`;break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=r}return o===a?i:i+t.substring(o,a)}function Ze(e){return typeof e==`boolean`||typeof e==`number`?``+e:Xe(e)}var Qe=/([A-Z])/g,$e=/^ms-/;function et(e){return e.replace(Qe,`-$1`).toLowerCase().replace($e,`-ms-`)}var tt=/^[\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,nt=!1;function rt(e){!nt&&tt.test(e)&&(nt=!0,a(`A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.`,JSON.stringify(e)))}var it=Array.isArray;function at(e){return it(e)}var ot=f(`<script>`),M=f(`<\/script>`),st=f(`<script src="`),ct=f(`<script type="module" src="`),lt=f(`" async=""><\/script>`);function ut(e){return y(e),(``+e).replace(dt,ft)}var dt=/(<\/|<)(s)(cript)/gi,ft=function(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r};function pt(e,t,n,r,i){var a=e===void 0?``:e,o=t===void 0?ot:f(`<script nonce="`+Ze(t)+`">`),s=[];if(n!==void 0&&s.push(o,d(ut(n)),M),r!==void 0)for(var c=0;c<r.length;c++)s.push(st,d(Ze(r[c])),lt);if(i!==void 0)for(var l=0;l<i.length;l++)s.push(ct,d(Ze(i[l])),lt);return{bootstrapChunks:s,startInlineScript:o,placeholderPrefix:f(a+`P:`),segmentPrefix:f(a+`S:`),boundaryPrefix:a+`B:`,idPrefix:a,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var mt=0,ht=1,gt=2,_t=3,vt=4,yt=5,bt=6,xt=7;function St(e,t){return{insertionMode:e,selectedValue:t}}function Ct(e,t,n){switch(t){case`select`:return St(ht,n.value==null?n.defaultValue:n.value);case`svg`:return St(gt,null);case`math`:return St(_t,null);case`foreignObject`:return St(ht,null);case`table`:return St(vt,null);case`thead`:case`tbody`:case`tfoot`:return St(yt,null);case`colgroup`:return St(xt,null);case`tr`:return St(bt,null)}return e.insertionMode>=vt||e.insertionMode===mt?St(ht,null):e}var wt=null;function Tt(e){var t=e.nextSuspenseID++;return f(e.boundaryPrefix+t.toString(16))}function Et(e,t,n){var r=`:`+e.idPrefix+`R`+t;return n>0&&(r+=`H`+n.toString(32)),r+`:`}function Dt(e){return Ze(e)}var Ot=f(`<!-- -->`);function kt(e,t,n,r){return t===``?r:(r&&e.push(Ot),e.push(d(Dt(t))),!0)}function At(e,t,n,r){n&&r&&e.push(Ot)}var jt=new Map;function Mt(e){var t=jt.get(e);if(t!==void 0)return t;var n=f(Ze(et(e)));return jt.set(e,n),n}var Nt=f(` style="`),Pt=f(`:`),Ft=f(`;`);function It(e,t,n){if(typeof n!=`object`)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var r=!0;for(var i in n)if(b.call(n,i)){var a=n[i];if(!(a==null||typeof a==`boolean`||a===``)){var o=void 0,s=void 0;i.indexOf(`--`)===0?(o=d(Ze(i)),v(a,i),s=d(Ze((``+a).trim()))):(Je(i,a),o=Mt(i),typeof a==`number`?s=a!==0&&!b.call(de,i)?d(a+`px`):d(``+a):(v(a,i),s=d(Ze((``+a).trim())))),r?(r=!1,e.push(Nt,o,Pt,s)):e.push(Ft,o,Pt,s)}}r||e.push(zt)}var Lt=f(` `),Rt=f(`="`),zt=f(`"`),Bt=f(`=""`);function Vt(e,t,n,r){switch(n){case`style`:It(e,t,r);return;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:return}if(!(n.length>2&&(n[0]===`o`||n[0]===`O`)&&(n[1]===`n`||n[1]===`N`))){var i=oe(n);if(i!==null){switch(typeof r){case`function`:case`symbol`:return;case`boolean`:if(!i.acceptsBooleans)return}var a=i.attributeName,o=d(a);switch(i.type){case w:r&&e.push(Lt,o,Bt);return;case T:r===!0?e.push(Lt,o,Bt):r===!1||e.push(Lt,o,Rt,d(Ze(r)),zt);return;case E:isNaN(r)||e.push(Lt,o,Rt,d(Ze(r)),zt);break;case ee:!isNaN(r)&&r>=1&&e.push(Lt,o,Rt,d(Ze(r)),zt);break;default:i.sanitizeURL&&(_(r,a),r=``+r,rt(r)),e.push(Lt,o,Rt,d(Ze(r)),zt)}}else if(ie(n)){switch(typeof r){case`function`:case`symbol`:return;case`boolean`:var s=n.toLowerCase().slice(0,5);if(s!==`data-`&&s!==`aria-`)return}e.push(Lt,d(n),Rt,d(Ze(r)),zt)}}}var Ht=f(`>`),Ut=f(`/>`);function Wt(e,t,n){if(t!=null){if(n!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t!=`object`||!(`__html`in t))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var r=t.__html;r!=null&&(y(r),e.push(d(``+r)))}}var Gt=!1,Kt=!1,qt=!1,Jt=!1,Yt=!1,Xt=!1,Zt=!1;function Qt(e,t){var n=e[t];if(n!=null){var r=at(n);e.multiple&&!r?a("The `%s` prop supplied to <select> must be an array if `multiple` is true.",t):!e.multiple&&r&&a("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",t)}}function $t(e,t,n){me(`select`,t),Qt(t,`value`),Qt(t,`defaultValue`),t.value!==void 0&&t.defaultValue!==void 0&&!qt&&(a(`Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components`),qt=!0),e.push(hn(`select`));var r=null,i=null;for(var o in t)if(b.call(t,o)){var s=t[o];if(s==null)continue;switch(o){case`children`:r=s;break;case`dangerouslySetInnerHTML`:i=s;break;case`defaultValue`:case`value`:break;default:Vt(e,n,o,s);break}}return e.push(Ht),Wt(e,i,r),r}function en(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e,!Yt&&typeof e!=`string`&&typeof e!=`number`&&(Yt=!0,a("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),n}var tn=f(` selected=""`);function nn(e,t,n,r){var i=r.selectedValue;e.push(hn(`option`));var o=null,s=null,c=null,l=null;for(var u in t)if(b.call(t,u)){var d=t[u];if(d==null)continue;switch(u){case`children`:o=d;break;case`selected`:c=d,Zt||=(a("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),!0);break;case`dangerouslySetInnerHTML`:l=d;break;case`value`:s=d;default:Vt(e,n,u,d);break}}if(i!=null){var f;if(s===null?(l!==null&&(Xt||(Xt=!0,a("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),f=en(o)):(_(s,`value`),f=``+s),at(i)){for(var p=0;p<i.length;p++)if(_(i[p],`value`),``+i[p]===f){e.push(tn);break}}else _(i,`select.value`),``+i===f&&e.push(tn)}else c&&e.push(tn);return e.push(Ht),Wt(e,l,o),o}function rn(e,t,n){me(`input`,t),t.checked!==void 0&&t.defaultChecked!==void 0&&!Kt&&(a(`%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components`,`A component`,t.type),Kt=!0),t.value!==void 0&&t.defaultValue!==void 0&&!Gt&&(a(`%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components`,`A component`,t.type),Gt=!0),e.push(hn(`input`));var r=null,i=null,o=null,s=null;for(var c in t)if(b.call(t,c)){var l=t[c];if(l==null)continue;switch(c){case`children`:case`dangerouslySetInnerHTML`:throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case`defaultChecked`:s=l;break;case`defaultValue`:i=l;break;case`checked`:o=l;break;case`value`:r=l;break;default:Vt(e,n,c,l);break}}return o===null?s!==null&&Vt(e,n,`checked`,s):Vt(e,n,`checked`,o),r===null?i!==null&&Vt(e,n,`value`,i):Vt(e,n,`value`,r),e.push(Ut),null}function an(e,t,n){me(`textarea`,t),t.value!==void 0&&t.defaultValue!==void 0&&!Jt&&(a(`Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components`),Jt=!0),e.push(hn(`textarea`));var r=null,i=null,o=null;for(var s in t)if(b.call(t,s)){var c=t[s];if(c==null)continue;switch(s){case`children`:o=c;break;case`value`:r=c;break;case`defaultValue`:i=c;break;case`dangerouslySetInnerHTML`:throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Vt(e,n,s,c);break}}if(r===null&&i!==null&&(r=i),e.push(Ht),o!=null){if(a("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),r!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(at(o)){if(o.length>1)throw Error(`<textarea> can only have at most one child.`);y(o[0]),r=``+o[0]}y(o),r=``+o}return typeof r==`string`&&r[0]===`
|
|
16
|
-
`&&e.push(dn),r!==null&&(_(r,`value`),e.push(d(Dt(``+r)))),null}function on(e,t,n,r){for(var i in e.push(hn(n)),t)if(b.call(t,i)){var a=t[i];if(a==null)continue;switch(i){case`children`:case`dangerouslySetInnerHTML`:throw Error(n+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Vt(e,r,i,a);break}}return e.push(Ut),null}function sn(e,t,n){for(var r in e.push(hn(`menuitem`)),t)if(b.call(t,r)){var i=t[r];if(i==null)continue;switch(r){case`children`:case`dangerouslySetInnerHTML`:throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Vt(e,n,r,i);break}}return e.push(Ht),null}function cn(e,t,n){e.push(hn(`title`));var r=null;for(var i in t)if(b.call(t,i)){var o=t[i];if(o==null)continue;switch(i){case`children`:r=o;break;case`dangerouslySetInnerHTML`:throw Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Vt(e,n,i,o);break}}e.push(Ht);var s=Array.isArray(r)&&r.length<2?r[0]||null:r;return Array.isArray(r)&&r.length>1?a(`A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering`):s!=null&&s.$$typeof!=null?a(`A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering`):s!=null&&typeof s!=`string`&&typeof s!=`number`&&a(`A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering`),r}function ln(e,t,n,r){e.push(hn(n));var i=null,a=null;for(var o in t)if(b.call(t,o)){var s=t[o];if(s==null)continue;switch(o){case`children`:i=s;break;case`dangerouslySetInnerHTML`:a=s;break;default:Vt(e,r,o,s);break}}return e.push(Ht),Wt(e,a,i),typeof i==`string`?(e.push(d(Dt(i))),null):i}function un(e,t,n,r){e.push(hn(n));var i=null,a=null;for(var o in t)if(b.call(t,o)){var s=t[o];if(s==null)continue;switch(o){case`children`:i=s;break;case`dangerouslySetInnerHTML`:a=s;break;case`style`:It(e,r,s);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:break;default:ie(o)&&typeof s!=`function`&&typeof s!=`symbol`&&e.push(Lt,d(o),Rt,d(Ze(s)),zt);break}}return e.push(Ht),Wt(e,a,i),i}var dn=f(`
|
|
17
|
-
`);function fn(e,t,n,r){e.push(hn(n));var i=null,a=null;for(var o in t)if(b.call(t,o)){var s=t[o];if(s==null)continue;switch(o){case`children`:i=s;break;case`dangerouslySetInnerHTML`:a=s;break;default:Vt(e,r,o,s);break}}if(e.push(Ht),a!=null){if(i!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof a!=`object`||!(`__html`in a))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var c=a.__html;c!=null&&(typeof c==`string`&&c.length>0&&c[0]===`
|
|
18
|
-
`?e.push(dn,d(c)):(y(c),e.push(d(``+c))))}return typeof i==`string`&&i[0]===`
|
|
19
|
-
`&&e.push(dn),i}var pn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,mn=new Map;function hn(e){var t=mn.get(e);if(t===void 0){if(!pn.test(e))throw Error(`Invalid tag: `+e);t=f(`<`+e),mn.set(e,t)}return t}var gn=f(`<!DOCTYPE html>`);function _n(e,t,n,r,i){switch(Se(t,n),we(t,n),Me(t,n,null),!n.suppressContentEditableWarning&&n.contentEditable&&n.children!=null&&a("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),i.insertionMode!==gt&&i.insertionMode!==_t&&t.indexOf(`-`)===-1&&typeof n.is!=`string`&&t.toLowerCase()!==t&&a(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,t),t){case`select`:return $t(e,n,r);case`option`:return nn(e,n,r,i);case`textarea`:return an(e,n,r);case`input`:return rn(e,n,r);case`menuitem`:return sn(e,n,r);case`title`:return cn(e,n,r);case`listing`:case`pre`:return fn(e,n,t,r);case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:return on(e,n,t,r);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 ln(e,n,t,r);case`html`:return i.insertionMode===mt&&e.push(gn),ln(e,n,t,r);default:return t.indexOf(`-`)===-1&&typeof n.is!=`string`?ln(e,n,t,r):un(e,n,t,r)}}var vn=f(`</`),yn=f(`>`);function bn(e,t,n){switch(t){case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break;default:e.push(vn,d(t),yn)}}function xn(e,t){for(var n=t.bootstrapChunks,r=0;r<n.length-1;r++)c(e,n[r]);return r<n.length?l(e,n[r]):!0}var Sn=f(`<template id="`),Cn=f(`"></template>`);function wn(e,t,n){return c(e,Sn),c(e,t.placeholderPrefix),c(e,d(n.toString(16))),l(e,Cn)}var Tn=f(`<!--$-->`),En=f(`<!--$?--><template id="`),Dn=f(`"></template>`),On=f(`<!--$!-->`),kn=f(`<!--/$-->`),An=f(`<template`),jn=f(`"`),Mn=f(` data-dgst="`),Nn=f(` data-msg="`),Pn=f(` data-stck="`),Fn=f(`></template>`);function In(e,t){return l(e,Tn)}function Ln(e,t,n){if(c(e,En),n===null)throw Error(`An ID must have been assigned before we can complete the boundary.`);return c(e,n),l(e,Dn)}function Rn(e,t,n,r,i){var a=l(e,On);return c(e,An),n&&(c(e,Mn),c(e,d(Ze(n))),c(e,jn)),r&&(c(e,Nn),c(e,d(Ze(r))),c(e,jn)),i&&(c(e,Pn),c(e,d(Ze(i))),c(e,jn)),a=l(e,Fn),a}function zn(e,t){return l(e,kn)}function Bn(e,t){return l(e,kn)}function Vn(e,t){return l(e,kn)}var Hn=f(`<div hidden id="`),Un=f(`">`),Wn=f(`</div>`),Gn=f(`<svg aria-hidden="true" style="display:none" id="`),Kn=f(`">`),qn=f(`</svg>`),Jn=f(`<math aria-hidden="true" style="display:none" id="`),Yn=f(`">`),Xn=f(`</math>`),Zn=f(`<table hidden id="`),Qn=f(`">`),$n=f(`</table>`),er=f(`<table hidden><tbody id="`),tr=f(`">`),nr=f(`</tbody></table>`),rr=f(`<table hidden><tr id="`),ir=f(`">`),ar=f(`</tr></table>`),or=f(`<table hidden><colgroup id="`),sr=f(`">`),cr=f(`</colgroup></table>`);function lr(e,t,n,r){switch(n.insertionMode){case mt:case ht:return c(e,Hn),c(e,t.segmentPrefix),c(e,d(r.toString(16))),l(e,Un);case gt:return c(e,Gn),c(e,t.segmentPrefix),c(e,d(r.toString(16))),l(e,Kn);case _t:return c(e,Jn),c(e,t.segmentPrefix),c(e,d(r.toString(16))),l(e,Yn);case vt:return c(e,Zn),c(e,t.segmentPrefix),c(e,d(r.toString(16))),l(e,Qn);case yt:return c(e,er),c(e,t.segmentPrefix),c(e,d(r.toString(16))),l(e,tr);case bt:return c(e,rr),c(e,t.segmentPrefix),c(e,d(r.toString(16))),l(e,ir);case xt:return c(e,or),c(e,t.segmentPrefix),c(e,d(r.toString(16))),l(e,sr);default:throw Error(`Unknown insertion mode. This is a bug in React.`)}}function ur(e,t){switch(t.insertionMode){case mt:case ht:return l(e,Wn);case gt:return l(e,qn);case _t:return l(e,Xn);case vt:return l(e,$n);case yt:return l(e,nr);case bt:return l(e,ar);case xt:return l(e,cr);default:throw Error(`Unknown insertion mode. This is a bug in React.`)}}var dr=`function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}`,fr=`function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}`,pr=`function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}`,mr=f(dr+`;$RS("`),hr=f(`$RS("`),gr=f(`","`),_r=f(`")<\/script>`);function vr(e,t,n){c(e,t.startInlineScript),t.sentCompleteSegmentFunction?c(e,hr):(t.sentCompleteSegmentFunction=!0,c(e,mr)),c(e,t.segmentPrefix);var r=d(n.toString(16));return c(e,r),c(e,gr),c(e,t.placeholderPrefix),c(e,r),l(e,_r)}var yr=f(fr+`;$RC("`),br=f(`$RC("`),xr=f(`","`),Sr=f(`")<\/script>`);function Cr(e,t,n,r){if(c(e,t.startInlineScript),t.sentCompleteBoundaryFunction?c(e,br):(t.sentCompleteBoundaryFunction=!0,c(e,yr)),n===null)throw Error(`An ID must have been assigned before we can complete the boundary.`);var i=d(r.toString(16));return c(e,n),c(e,xr),c(e,t.segmentPrefix),c(e,i),l(e,Sr)}var wr=f(pr+`;$RX("`),Tr=f(`$RX("`),Er=f(`"`),Dr=f(`)<\/script>`),Or=f(`,`);function kr(e,t,n,r,i,a){if(c(e,t.startInlineScript),t.sentClientRenderFunction?c(e,Tr):(t.sentClientRenderFunction=!0,c(e,wr)),n===null)throw Error(`An ID must have been assigned before we can complete the boundary.`);return c(e,n),c(e,Er),(r||i||a)&&(c(e,Or),c(e,d(jr(r||``)))),(i||a)&&(c(e,Or),c(e,d(jr(i||``)))),a&&(c(e,Or),c(e,d(jr(a)))),l(e,Dr)}var Ar=/[<\u2028\u2029]/g;function jr(e){return JSON.stringify(e).replace(Ar,function(e){switch(e){case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}function Mr(e,t){var n=pt(t,void 0);return{bootstrapChunks:n.bootstrapChunks,startInlineScript:n.startInlineScript,placeholderPrefix:n.placeholderPrefix,segmentPrefix:n.segmentPrefix,boundaryPrefix:n.boundaryPrefix,idPrefix:n.idPrefix,nextSuspenseID:n.nextSuspenseID,sentCompleteSegmentFunction:n.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:n.sentCompleteBoundaryFunction,sentClientRenderFunction:n.sentClientRenderFunction,generateStaticMarkup:e}}function Nr(){return{insertionMode:ht,selectedValue:null}}function Pr(e,t,n,r){return n.generateStaticMarkup?(e.push(d(Ze(t))),!1):kt(e,t,n,r)}function Fr(e,t,n,r){if(!t.generateStaticMarkup)return At(e,t,n,r)}function Ir(e,t){return t.generateStaticMarkup?!0:In(e)}function Lr(e,t,n,r,i){return t.generateStaticMarkup?!0:Rn(e,t,n,r,i)}function Rr(e,t){return t.generateStaticMarkup?!0:zn(e)}function zr(e,t){return t.generateStaticMarkup?!0:Vn(e)}var Br=Object.assign,Vr=Symbol.for(`react.element`),Hr=Symbol.for(`react.portal`),Ur=Symbol.for(`react.fragment`),Wr=Symbol.for(`react.strict_mode`),Gr=Symbol.for(`react.profiler`),Kr=Symbol.for(`react.provider`),qr=Symbol.for(`react.context`),Jr=Symbol.for(`react.forward_ref`),Yr=Symbol.for(`react.suspense`),Xr=Symbol.for(`react.suspense_list`),Zr=Symbol.for(`react.memo`),Qr=Symbol.for(`react.lazy`),$r=Symbol.for(`react.scope`),ei=Symbol.for(`react.debug_trace_mode`),ti=Symbol.for(`react.legacy_hidden`),ni=Symbol.for(`react.default_value`),ri=Symbol.iterator,ii=`@@iterator`;function ai(e){if(typeof e!=`object`||!e)return null;var t=ri&&e[ri]||e[ii];return typeof t==`function`?t:null}function oi(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||``;return i===``?n:n+`(`+i+`)`}function si(e){return e.displayName||`Context`}function ci(e){if(e==null)return null;if(typeof e.tag==`number`&&a(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Ur:return`Fragment`;case Hr:return`Portal`;case Gr:return`Profiler`;case Wr:return`StrictMode`;case Yr:return`Suspense`;case Xr:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case qr:return si(e)+`.Consumer`;case Kr:return si(e._context)+`.Provider`;case Jr:return oi(e,e.render,`ForwardRef`);case Zr:var t=e.displayName||null;return t===null?ci(e.type)||`Memo`:t;case Qr:var n=e,r=n._payload,i=n._init;try{return ci(i(r))}catch{return null}}return null}var li=0,ui,di,fi,pi,mi,hi,gi;function _i(){}_i.__reactDisabledLog=!0;function vi(){if(li===0){ui=console.log,di=console.info,fi=console.warn,pi=console.error,mi=console.group,hi=console.groupCollapsed,gi=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_i,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}li++}function yi(){if(li--,li===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Br({},e,{value:ui}),info:Br({},e,{value:di}),warn:Br({},e,{value:fi}),error:Br({},e,{value:pi}),group:Br({},e,{value:mi}),groupCollapsed:Br({},e,{value:hi}),groupEnd:Br({},e,{value:gi})})}li<0&&a(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}var bi=r.ReactCurrentDispatcher,xi;function Si(e,t,n){if(xi===void 0)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);xi=r&&r[1]||``}return`
|
|
20
|
-
`+xi+e}var Ci=!1,wi=new(typeof WeakMap==`function`?WeakMap:Map);function Ti(e,t){if(!e||Ci)return``;var n=wi.get(e);if(n!==void 0)return n;var r;Ci=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var a=bi.current;bi.current=null,vi();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(o,[])}catch(e){r=e}Reflect.construct(e,[],o)}else{try{o.call()}catch(e){r=e}e.call(o.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var s=t.stack.split(`
|
|
21
|
-
`),c=r.stack.split(`
|
|
22
|
-
`),l=s.length-1,u=c.length-1;l>=1&&u>=0&&s[l]!==c[u];)u--;for(;l>=1&&u>=0;l--,u--)if(s[l]!==c[u]){if(l!==1||u!==1)do if(l--,u--,u<0||s[l]!==c[u]){var d=`
|
|
23
|
-
`+s[l].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&wi.set(e,d),d}while(l>=1&&u>=0);break}}}finally{Ci=!1,bi.current=a,yi(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:``,p=f?Si(f):``;return typeof e==`function`&&wi.set(e,p),p}function Ei(e,t,n){return Ti(e,!0)}function Di(e,t,n){return Ti(e,!1)}function Oi(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ki(e,t,n){if(e==null)return``;if(typeof e==`function`)return Ti(e,Oi(e));if(typeof e==`string`)return Si(e);switch(e){case Yr:return Si(`Suspense`);case Xr:return Si(`SuspenseList`)}if(typeof e==`object`)switch(e.$$typeof){case Jr:return Di(e.render);case Zr:return ki(e.type,t,n);case Qr:var r=e,i=r._payload,a=r._init;try{return ki(a(i),t,n)}catch{}}return``}var Ai={},ji=r.ReactDebugCurrentFrame;function Mi(e){if(e){var t=e._owner,n=ki(e.type,e._source,t?t.type:null);ji.setExtraStackFrame(n)}else ji.setExtraStackFrame(null)}function Ni(e,t,n,r,i){var o=Function.call.bind(b);for(var s in e)if(o(e,s)){var c=void 0;try{if(typeof e[s]!=`function`){var l=Error((r||`React class`)+`: `+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name=`Invariant Violation`,l}c=e[s](t,s,r,n,null,`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`)}catch(e){c=e}c&&!(c instanceof Error)&&(Mi(i),a("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||`React class`,n,s,typeof c),Mi(null)),c instanceof Error&&!(c.message in Ai)&&(Ai[c.message]=!0,Mi(i),a(`Failed %s type: %s`,n,c.message),Mi(null))}}var Pi={},Fi={};Object.freeze(Fi);function Ii(e,t){var n=e.contextTypes;if(!n)return Fi;var r={};for(var i in n)r[i]=t[i];return Ni(n,r,`context`,ci(e)||`Unknown`),r}function Li(e,t,n,r){if(typeof e.getChildContext!=`function`){var i=ci(t)||`Unknown`;return Pi[i]||(Pi[i]=!0,a(`%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.`,i,i)),n}var o=e.getChildContext();for(var s in o)if(!(s in r))throw Error((ci(t)||`Unknown`)+`.getChildContext(): key "`+s+`" is not defined in childContextTypes.`);return Ni(r,o,`child context`,ci(t)||`Unknown`),Br({},n,o)}var Ri={},zi=null,Bi=null;function Vi(e){e.context._currentValue2=e.parentValue}function Hi(e){e.context._currentValue2=e.value}function Ui(e,t){if(e!==t){Vi(e);var n=e.parent,r=t.parent;if(n===null){if(r!==null)throw Error(`The stacks must reach the root at the same time. This is a bug in React.`)}else{if(r===null)throw Error(`The stacks must reach the root at the same time. This is a bug in React.`);Ui(n,r)}Hi(t)}}function Wi(e){Vi(e);var t=e.parent;t!==null&&Wi(t)}function Gi(e){var t=e.parent;t!==null&&Gi(t),Hi(e)}function Ki(e,t){Vi(e);var n=e.parent;if(n===null)throw Error(`The depth must equal at least at zero before reaching the root. This is a bug in React.`);n.depth===t.depth?Ui(n,t):Ki(n,t)}function qi(e,t){var n=t.parent;if(n===null)throw Error(`The depth must equal at least at zero before reaching the root. This is a bug in React.`);e.depth===n.depth?Ui(e,n):qi(e,n),Hi(t)}function Ji(e){var t=Bi,n=e;t!==n&&(t===null?Gi(n):n===null?Wi(t):t.depth===n.depth?Ui(t,n):t.depth>n.depth?Ki(t,n):qi(t,n),Bi=n)}function Yi(e,t){var n=e._currentValue2;e._currentValue2=t,e._currentRenderer2!==void 0&&e._currentRenderer2!==null&&e._currentRenderer2!==Ri&&a(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),e._currentRenderer2=Ri;var r=Bi,i={parent:r,depth:r===null?0:r.depth+1,context:e,parentValue:n,value:t};return Bi=i,i}function Xi(e){var t=Bi;if(t===null)throw Error(`Tried to pop a Context at the root of the app. This is a bug in React.`);t.context!==e&&a(`The parent context is not the expected context. This is probably a bug in React.`);var n=t.parentValue;return n===ni?t.context._currentValue2=t.context._defaultValue:t.context._currentValue2=n,e._currentRenderer2!==void 0&&e._currentRenderer2!==null&&e._currentRenderer2!==Ri&&a(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),e._currentRenderer2=Ri,Bi=t.parent}function Zi(){return Bi}function Qi(e){return e._currentValue2}function $i(e){return e._reactInternals}function ea(e,t){e._reactInternals=t}var ta={},na={},ra=new Set,ia=new Set,aa=new Set,oa,sa,ca,la=new Set,ua,da;oa=new Set,ua=new Set,da=new Set;var fa=new Set;ca=function(e,t){if(!(e===null||typeof e==`function`)){var n=t+`_`+e;fa.has(n)||(fa.add(n),a("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},sa=function(e,t){if(t===void 0){var n=ci(e)||`Component`;oa.has(n)||(oa.add(n),a(`%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.`,n))}};function pa(e,t){var n=e.constructor,r=n&&ci(n)||`ReactClass`,i=r+`.`+t;ta[i]||(a(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
24
|
-
|
|
25
|
-
Please check the code for the %s component.`,t,t,r),ta[i]=!0)}var ma={isMounted:function(e){return!1},enqueueSetState:function(e,t,n){var r=$i(e);r.queue===null?pa(e,`setState`):(r.queue.push(t),n!=null&&ca(n,`setState`))},enqueueReplaceState:function(e,t,n){var r=$i(e);r.replace=!0,r.queue=[t],n!=null&&ca(n,`setState`)},enqueueForceUpdate:function(e,t){$i(e).queue===null?pa(e,`forceUpdate`):t!=null&&ca(t,`setState`)}};function ha(e,t,n,r,i){var a=n(i,r);return sa(t,a),a==null?r:Br({},r,a)}function ga(e,t,n){var r=Fi,i=e.contextType;if(`contextType`in e&&!(i===null||i!==void 0&&i.$$typeof===qr&&i._context===void 0)&&!da.has(e)){da.add(e);var o=``;o=i===void 0?` However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.`:typeof i==`object`?i.$$typeof===Kr?` Did you accidentally pass the Context.Provider instead?`:i._context===void 0?` However, it is set to an object with keys {`+Object.keys(i).join(`, `)+`}.`:` Did you accidentally pass the Context.Consumer instead?`:` However, it is set to a `+typeof i+`.`,a(`%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s`,ci(e)||`Component`,o)}r=typeof i==`object`&&i?Qi(i):n;var s=new e(t,r);if(typeof e.getDerivedStateFromProps==`function`&&(s.state===null||s.state===void 0)){var c=ci(e)||`Component`;ra.has(c)||(ra.add(c),a("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",c,s.state===null?`null`:`undefined`,c))}if(typeof e.getDerivedStateFromProps==`function`||typeof s.getSnapshotBeforeUpdate==`function`){var l=null,u=null,d=null;if(typeof s.componentWillMount==`function`&&s.componentWillMount.__suppressDeprecationWarning!==!0?l=`componentWillMount`:typeof s.UNSAFE_componentWillMount==`function`&&(l=`UNSAFE_componentWillMount`),typeof s.componentWillReceiveProps==`function`&&s.componentWillReceiveProps.__suppressDeprecationWarning!==!0?u=`componentWillReceiveProps`:typeof s.UNSAFE_componentWillReceiveProps==`function`&&(u=`UNSAFE_componentWillReceiveProps`),typeof s.componentWillUpdate==`function`&&s.componentWillUpdate.__suppressDeprecationWarning!==!0?d=`componentWillUpdate`:typeof s.UNSAFE_componentWillUpdate==`function`&&(d=`UNSAFE_componentWillUpdate`),l!==null||u!==null||d!==null){var f=ci(e)||`Component`,p=typeof e.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;aa.has(f)||(aa.add(f),a(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
26
|
-
|
|
27
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
28
|
-
|
|
29
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
30
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,f,p,l===null?``:`
|
|
31
|
-
`+l,u===null?``:`
|
|
32
|
-
`+u,d===null?``:`
|
|
33
|
-
`+d))}}return s}function _a(e,t,n){var r=ci(t)||`Component`;e.render||(t.prototype&&typeof t.prototype.render==`function`?a("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",r):a("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",r)),e.getInitialState&&!e.getInitialState.isReactClassApproved&&!e.state&&a(`getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?`,r),e.getDefaultProps&&!e.getDefaultProps.isReactClassApproved&&a(`getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.`,r),e.propTypes&&a(`propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.`,r),e.contextType&&a(`contextType was defined as an instance property on %s. Use a static property to define contextType instead.`,r),e.contextTypes&&a(`contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.`,r),t.contextType&&t.contextTypes&&!ua.has(t)&&(ua.add(t),a(`%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.`,r)),typeof e.componentShouldUpdate==`function`&&a(`%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.`,r),t.prototype&&t.prototype.isPureReactComponent&&e.shouldComponentUpdate!==void 0&&a(`%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.`,ci(t)||`A pure component`),typeof e.componentDidUnmount==`function`&&a(`%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?`,r),typeof e.componentDidReceiveProps==`function`&&a(`%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().`,r),typeof e.componentWillRecieveProps==`function`&&a(`%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?`,r),typeof e.UNSAFE_componentWillRecieveProps==`function`&&a(`%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?`,r);var i=e.props!==n;e.props!==void 0&&i&&a("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",r,r),e.defaultProps&&a(`Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.`,r,r),typeof e.getSnapshotBeforeUpdate==`function`&&typeof e.componentDidUpdate!=`function`&&!ia.has(t)&&(ia.add(t),a(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,ci(t))),typeof e.getDerivedStateFromProps==`function`&&a(`%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,r),typeof e.getDerivedStateFromError==`function`&&a(`%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,r),typeof t.getSnapshotBeforeUpdate==`function`&&a(`%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.`,r);var o=e.state;o&&(typeof o!=`object`||at(o))&&a(`%s.state: must be set to an object or null`,r),typeof e.getChildContext==`function`&&typeof t.childContextTypes!=`object`&&a(`%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().`,r)}function va(e,t){var n=t.state;if(typeof t.componentWillMount==`function`){if(t.componentWillMount.__suppressDeprecationWarning!==!0){var r=ci(e)||`Unknown`;na[r]||(i(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
34
|
-
|
|
35
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
36
|
-
|
|
37
|
-
Please update the following components: %s`,r),na[r]=!0)}t.componentWillMount()}typeof t.UNSAFE_componentWillMount==`function`&&t.UNSAFE_componentWillMount(),n!==t.state&&(a(`%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,ci(e)||`Component`),ma.enqueueReplaceState(t,t.state,null))}function ya(e,t,n,r){if(e.queue!==null&&e.queue.length>0){var i=e.queue,a=e.replace;if(e.queue=null,e.replace=!1,a&&i.length===1)t.state=i[0];else{for(var o=a?i[0]:t.state,s=!0,c=+!!a;c<i.length;c++){var l=i[c],u=typeof l==`function`?l.call(t,o,n,r):l;u!=null&&(s?(s=!1,o=Br({},o,u)):Br(o,u))}t.state=o}}else e.queue=null}function ba(e,t,n,r){_a(e,t,n);var i=e.state===void 0?null:e.state;e.updater=ma,e.props=n,e.state=i;var o={queue:[],replace:!1};ea(e,o);var s=t.contextType;if(typeof s==`object`&&s?e.context=Qi(s):e.context=r,e.state===n){var c=ci(t)||`Component`;la.has(c)||(la.add(c),a(`%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.`,c))}var l=t.getDerivedStateFromProps;typeof l==`function`&&(e.state=ha(e,t,l,i,n)),typeof t.getDerivedStateFromProps!=`function`&&typeof e.getSnapshotBeforeUpdate!=`function`&&(typeof e.UNSAFE_componentWillMount==`function`||typeof e.componentWillMount==`function`)&&(va(t,e),ya(o,e,n,r))}var xa={id:1,overflow:``};function Sa(e){var t=e.overflow,n=e.id;return(n&~Ta(n)).toString(32)+t}function Ca(e,t,n){var r=e.id,i=e.overflow,a=wa(r)-1,o=r&~(1<<a),s=n+1,c=wa(t)+a;if(c>30){var l=a-a%5,u=(o&(1<<l)-1).toString(32),d=o>>l,f=a-l,p=wa(t)+f,m=s<<f|d,h=u+i;return{id:1<<p|m,overflow:h}}else{var g=s<<a|o,_=i;return{id:1<<c|g,overflow:_}}}function wa(e){return 32-Ea(e)}function Ta(e){return 1<<wa(e)-1}var Ea=Math.clz32?Math.clz32:ka,Da=Math.log,Oa=Math.LN2;function ka(e){var t=e>>>0;return t===0?32:31-(Da(t)/Oa|0)|0}function Aa(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var ja=typeof Object.is==`function`?Object.is:Aa,Ma=null,Na=null,Pa=null,Fa=null,Ia=!1,La=!1,Ra=0,za=null,Ba=0,Va=25,Ha=!1,Ua;function Wa(){if(Ma===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
38
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
39
|
-
2. You might be breaking the Rules of Hooks
|
|
40
|
-
3. You might have more than one copy of React in the same app
|
|
41
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Ha&&a(`Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks`),Ma}function Ga(e,t){if(t===null)return a(`%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`,Ua),!1;e.length!==t.length&&a(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
42
|
-
|
|
43
|
-
Previous: %s
|
|
44
|
-
Incoming: %s`,Ua,`[`+e.join(`, `)+`]`,`[`+t.join(`, `)+`]`);for(var n=0;n<t.length&&n<e.length;n++)if(!ja(e[n],t[n]))return!1;return!0}function Ka(){if(Ba>0)throw Error(`Rendered more hooks than during the previous render`);return{memoizedState:null,queue:null,next:null}}function qa(){return Fa===null?Pa===null?(Ia=!1,Pa=Fa=Ka()):(Ia=!0,Fa=Pa):Fa.next===null?(Ia=!1,Fa=Fa.next=Ka()):(Ia=!0,Fa=Fa.next),Fa}function Ja(e,t){Ma=t,Na=e,Ha=!1,Ra=0}function Ya(e,t,n,r){for(;La;)La=!1,Ra=0,Ba+=1,Fa=null,n=e(t,r);return Za(),n}function Xa(){return Ra!==0}function Za(){Ha=!1,Ma=null,Na=null,La=!1,Pa=null,Ba=0,za=null,Fa=null}function Qa(e){return Ha&&a(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`),Qi(e)}function $a(e){return Ua=`useContext`,Wa(),Qi(e)}function eo(e,t){return typeof t==`function`?t(e):t}function to(e){return Ua=`useState`,no(eo,e)}function no(e,t,n){if(e!==eo&&(Ua=`useReducer`),Ma=Wa(),Fa=qa(),Ia){var r=Fa.queue,i=r.dispatch;if(za!==null){var a=za.get(r);if(a!==void 0){za.delete(r);var o=Fa.memoizedState,s=a;do{var c=s.action;Ha=!0,o=e(o,c),Ha=!1,s=s.next}while(s!==null);return Fa.memoizedState=o,[o,i]}}return[Fa.memoizedState,i]}else{Ha=!0;var l=e===eo?typeof t==`function`?t():t:n===void 0?t:n(t);Ha=!1,Fa.memoizedState=l;var u=Fa.queue={last:null,dispatch:null},d=u.dispatch=oo.bind(null,Ma,u);return[Fa.memoizedState,d]}}function ro(e,t){Ma=Wa(),Fa=qa();var n=t===void 0?null:t;if(Fa!==null){var r=Fa.memoizedState;if(r!==null&&n!==null){var i=r[1];if(Ga(n,i))return r[0]}}Ha=!0;var a=e();return Ha=!1,Fa.memoizedState=[a,n],a}function io(e){Ma=Wa(),Fa=qa();var t=Fa.memoizedState;if(t===null){var n={current:e};return Object.seal(n),Fa.memoizedState=n,n}else return t}function ao(e,t){Ua=`useLayoutEffect`,a(`useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.`)}function oo(e,t,n){if(Ba>=Va)throw Error(`Too many re-renders. React limits the number of renders to prevent an infinite loop.`);if(e===Ma){La=!0;var r={action:n,next:null};za===null&&(za=new Map);var i=za.get(t);if(i===void 0)za.set(t,r);else{for(var a=i;a.next!==null;)a=a.next;a.next=r}}}function so(e,t){return ro(function(){return e},t)}function co(e,t,n){return Wa(),t(e._source)}function lo(e,t,n){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);return n()}function uo(e){return Wa(),e}function fo(){throw Error(`startTransition cannot be called during server rendering.`)}function po(){return Wa(),[!1,fo]}function mo(){var e=Sa(Na.treeContext),t=_o;if(t===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component.`);return Et(t,e,Ra++)}function ho(){}var go={readContext:Qa,useContext:$a,useMemo:ro,useReducer:no,useRef:io,useState:to,useInsertionEffect:ho,useLayoutEffect:ao,useCallback:so,useImperativeHandle:ho,useEffect:ho,useDebugValue:ho,useDeferredValue:uo,useTransition:po,useId:mo,useMutableSource:co,useSyncExternalStore:lo},_o=null;function vo(e){_o=e}function yo(e){try{var t=``,n=e;do{switch(n.tag){case 0:t+=Si(n.type,null,null);break;case 1:t+=Di(n.type,null,null);break;case 2:t+=Ei(n.type,null,null);break}n=n.parent}while(n);return t}catch(e){return`
|
|
45
|
-
Error generating stack: `+e.message+`
|
|
46
|
-
`+e.stack}}var bo=r.ReactCurrentDispatcher,xo=r.ReactDebugCurrentFrame,So=0,Co=1,wo=2,To=3,Eo=4,Do=0,Oo=1,ko=2,Ao=12800;function jo(e){return console.error(e),null}function Mo(){}function No(e,t,n,r,i,a,o,s,c){var l=[],u=new Set,d={destination:null,responseState:t,progressiveChunkSize:r===void 0?Ao:r,status:Do,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:l,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:i===void 0?jo:i,onAllReady:a===void 0?Mo:a,onShellReady:o===void 0?Mo:o,onShellError:s===void 0?Mo:s,onFatalError:c===void 0?Mo:c},f=Lo(d,0,null,n,!1,!1);f.parentFlushed=!0;var p=Io(d,e,null,f,u,Fi,zi,xa);return l.push(p),d}function Po(e,t){var n=e.pingedTasks;n.push(t),n.length===1&&s(function(){return As(e)})}function Fo(e,t){return{id:wt,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null}}function Io(e,t,n,r,i,a,o,s){e.allPendingTasks++,n===null?e.pendingRootTasks++:n.pendingTasks++;var c={node:t,ping:function(){return Po(e,c)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:a,context:o,treeContext:s};return c.componentStack=null,i.add(c),c}function Lo(e,t,n,r,i,a){return{status:So,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:a}}var Ro=null;function zo(){return Ro===null||Ro.componentStack===null?``:yo(Ro.componentStack)}function Bo(e,t){e.componentStack={tag:0,parent:e.componentStack,type:t}}function Vo(e,t){e.componentStack={tag:1,parent:e.componentStack,type:t}}function Ho(e,t){e.componentStack={tag:2,parent:e.componentStack,type:t}}function Uo(e){e.componentStack===null?a(`Unexpectedly popped too many stack frames. This is a bug in React.`):e.componentStack=e.componentStack.parent}var Wo=null;function Go(e,t){var n=typeof t==`string`?t:t&&typeof t.message==`string`?t.message:String(t),r=Wo||zo();Wo=null,e.errorMessage=n,e.errorComponentStack=r}function Ko(e,t){var n=e.onError(t);if(n!=null&&typeof n!=`string`)throw Error(`onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "`+typeof n+`" instead`);return n}function qo(e,t){var n=e.onShellError;n(t);var r=e.onFatalError;r(t),e.destination===null?(e.status=Oo,e.fatalError=t):(e.status=ko,p(e.destination,t))}function Jo(e,t,n){Bo(t,`Suspense`);var r=t.blockedBoundary,i=t.blockedSegment,a=n.fallback,o=n.children,s=new Set,c=Fo(e,s),l=i.chunks.length,u=Lo(e,l,c,i.formatContext,!1,!1);i.children.push(u),i.lastPushedText=!1;var d=Lo(e,0,null,i.formatContext,!1,!1);d.parentFlushed=!0,t.blockedBoundary=c,t.blockedSegment=d;try{if(Cs(e,t,o),Fr(d.chunks,e.responseState,d.lastPushedText,d.textEmbedded),d.status=Co,Ds(c,d),c.pendingTasks===0){Uo(t);return}}catch(t){d.status=Eo,c.forceClientRender=!0,c.errorDigest=Ko(e,t),Go(c,t)}finally{t.blockedBoundary=r,t.blockedSegment=i}var f=Io(e,a,r,u,s,t.legacyContext,t.context,t.treeContext);f.componentStack=t.componentStack,e.pingedTasks.push(f),Uo(t)}function Yo(e,t,n,r){Bo(t,n);var i=t.blockedSegment,a=_n(i.chunks,n,r,e.responseState,i.formatContext);i.lastPushedText=!1;var o=i.formatContext;i.formatContext=Ct(o,n,r),Cs(e,t,a),i.formatContext=o,bn(i.chunks,n),i.lastPushedText=!1,Uo(t)}function Xo(e){return e.prototype&&e.prototype.isReactComponent}function Zo(e,t,n,r,i){return Ja(t,{}),Ya(n,r,n(r,i),i)}function Qo(e,t,n,r,i){var o=n.render();n.props!==i&&(is||a("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ci(r)||`a component`),is=!0);var s=r.childContextTypes;if(s!=null){var c=t.legacyContext;t.legacyContext=Li(n,r,c,s),ys(e,t,o),t.legacyContext=c;return}ys(e,t,o)}function $o(e,t,n,r){Ho(t,n);var i=Ii(n,t.legacyContext),a=ga(n,r,i);ba(a,n,r,i),Qo(e,t,a,n,r),Uo(t)}var es={},ts={},ns={},rs={},is=!1,as={},os=!1,ss=!1,cs=!1;function ls(e,t,n,r){var i=Ii(n,t.legacyContext);if(Vo(t,n),n.prototype&&typeof n.prototype.render==`function`){var o=ci(n)||`Unknown`;es[o]||(a(`The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.`,o,o),es[o]=!0)}var s=Zo(e,t,n,r,i),c=Xa();if(typeof s==`object`&&s&&typeof s.render==`function`&&s.$$typeof===void 0){var l=ci(n)||`Unknown`;ts[l]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",l,l,l),ts[l]=!0)}if(typeof s==`object`&&s&&typeof s.render==`function`&&s.$$typeof===void 0){var u=ci(n)||`Unknown`;ts[u]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",u,u,u),ts[u]=!0),ba(s,n,r,i),Qo(e,t,s,n,r)}else if(us(n),c){var d=t.treeContext;t.treeContext=Ca(d,1,0);try{ys(e,t,s)}finally{t.treeContext=d}}else ys(e,t,s);Uo(t)}function us(e){if(e&&e.childContextTypes&&a(`%s(...): childContextTypes cannot be defined on a function component.`,e.displayName||e.name||`Component`),e.defaultProps!==void 0){var t=ci(e)||`Unknown`;as[t]||(a(`%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.`,t),as[t]=!0)}if(typeof e.getDerivedStateFromProps==`function`){var n=ci(e)||`Unknown`;rs[n]||(a(`%s: Function components do not support getDerivedStateFromProps.`,n),rs[n]=!0)}if(typeof e.contextType==`object`&&e.contextType!==null){var r=ci(e)||`Unknown`;ns[r]||(a(`%s: Function components do not support contextType.`,r),ns[r]=!0)}}function ds(e,t){if(e&&e.defaultProps){var n=Br({},t),r=e.defaultProps;for(var i in r)n[i]===void 0&&(n[i]=r[i]);return n}return t}function fs(e,t,n,r,i){Vo(t,n.render);var a=Zo(e,t,n.render,r,i);if(Xa()){var o=t.treeContext;t.treeContext=Ca(o,1,0);try{ys(e,t,a)}finally{t.treeContext=o}}else ys(e,t,a);Uo(t)}function ps(e,t,n,r,i){var a=n.type;_s(e,t,a,ds(a,r),i)}function ms(e,t,n,r){n._context===void 0?n!==n.Consumer&&(cs||(cs=!0,a(`Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?`))):n=n._context;var i=r.children;typeof i!=`function`&&a(`A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.`),ys(e,t,i(Qi(n)))}function hs(e,t,n,r){var i=n._context,o=r.value,s=r.children,c=t.context;t.context=Yi(i,o),ys(e,t,s),t.context=Xi(i),c!==t.context&&a(`Popping the context provider did not return back to the original snapshot. This is a bug in React.`)}function gs(e,t,n,r,i){Bo(t,`Lazy`);var a=n._payload,o=n._init,s=o(a);_s(e,t,s,ds(s,r),i),Uo(t)}function _s(e,t,n,r,i){if(typeof n==`function`)if(Xo(n)){$o(e,t,n,r);return}else{ls(e,t,n,r);return}if(typeof n==`string`){Yo(e,t,n,r);return}switch(n){case ti:case ei:case Wr:case Gr:case Ur:ys(e,t,r.children);return;case Xr:Bo(t,`SuspenseList`),ys(e,t,r.children),Uo(t);return;case $r:throw Error(`ReactDOMServer does not yet support scope components.`);case Yr:Jo(e,t,r);return}if(typeof n==`object`&&n)switch(n.$$typeof){case Jr:fs(e,t,n,r,i);return;case Zr:ps(e,t,n,r,i);return;case Kr:hs(e,t,n,r);return;case qr:ms(e,t,n,r);return;case Qr:gs(e,t,n,r);return}var a=``;throw(n===void 0||typeof n==`object`&&n&&Object.keys(n).length===0)&&(a+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) `+(`but got: `+(n==null?n:typeof n)+`.`+a))}function vs(e,t){typeof Symbol==`function`&&e[Symbol.toStringTag]===`Generator`&&(os||a("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),os=!0),e.entries===t&&(ss||a(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),ss=!0)}function ys(e,t,n){try{return bs(e,t,n)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`||(Wo=Wo===null?zo():Wo),e}}function bs(e,t,n){if(t.node=n,typeof n==`object`&&n){switch(n.$$typeof){case Vr:var r=n,i=r.type,o=r.props,s=r.ref;_s(e,t,i,o,s);return;case Hr:throw Error(`Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.`);case Qr:var c=n,l=c._payload,u=c._init,d;try{d=u(l)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`&&Bo(t,`Lazy`),e}ys(e,t,d);return}if(at(n)){xs(e,t,n);return}var f=ai(n);if(f){vs(n,f);var p=f.call(n);if(p){var m=p.next();if(!m.done){var h=[];do h.push(m.value),m=p.next();while(!m.done);xs(e,t,h);return}return}}var g=Object.prototype.toString.call(n);throw Error(`Objects are not valid as a React child (found: `+(g===`[object Object]`?`object with keys {`+Object.keys(n).join(`, `)+`}`:g)+`). If you meant to render a collection of children, use an array instead.`)}if(typeof n==`string`){var _=t.blockedSegment;_.lastPushedText=Pr(t.blockedSegment.chunks,n,e.responseState,_.lastPushedText);return}if(typeof n==`number`){var v=t.blockedSegment;v.lastPushedText=Pr(t.blockedSegment.chunks,``+n,e.responseState,v.lastPushedText);return}typeof n==`function`&&a(`Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.`)}function xs(e,t,n){for(var r=n.length,i=0;i<r;i++){var a=t.treeContext;t.treeContext=Ca(a,r,i);try{Cs(e,t,n[i])}finally{t.treeContext=a}}}function Ss(e,t,n){var r=t.blockedSegment,i=r.chunks.length,a=Lo(e,i,null,r.formatContext,r.lastPushedText,!0);r.children.push(a),r.lastPushedText=!1;var o=Io(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext);t.componentStack!==null&&(o.componentStack=t.componentStack.parent);var s=o.ping;n.then(s,s)}function Cs(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,a=t.context,o=null;o=t.componentStack;try{return ys(e,t,n)}catch(n){if(Za(),typeof n==`object`&&n&&typeof n.then==`function`){Ss(e,t,n),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=a,Ji(a),t.componentStack=o;return}else throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=a,Ji(a),t.componentStack=o,n}}function ws(e,t,n,r){var i=Ko(e,r);if(t===null?qo(e,r):(t.pendingTasks--,t.forceClientRender||(t.forceClientRender=!0,t.errorDigest=i,Go(t,r),t.parentFlushed&&e.clientRenderedBoundaries.push(t))),e.allPendingTasks--,e.allPendingTasks===0){var a=e.onAllReady;a()}}function Ts(e){var t=this,n=e.blockedBoundary,r=e.blockedSegment;r.status=To,Os(t,n,r)}function Es(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(i.status=To,r===null)t.allPendingTasks--,t.status!==ko&&(t.status=ko,t.destination!==null&&u(t.destination));else{if(r.pendingTasks--,!r.forceClientRender){r.forceClientRender=!0;var a=n===void 0?Error(`The render was aborted by the server without a reason.`):n;r.errorDigest=t.onError(a);var o=`The server did not finish this Suspense boundary: `;a=a&&typeof a.message==`string`?o+a.message:o+String(a);var s=Ro;Ro=e;try{Go(r,a)}finally{Ro=s}r.parentFlushed&&t.clientRenderedBoundaries.push(r)}if(r.fallbackAbortableTasks.forEach(function(e){return Es(e,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0){var c=t.onAllReady;c()}}}function Ds(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status===Co&&Ds(e,n)}else e.completedSegments.push(t)}function Os(e,t,n){if(t===null){if(n.parentFlushed){if(e.completedRootSegment!==null)throw Error(`There can only be one root segment. This is a bug in React.`);e.completedRootSegment=n}if(e.pendingRootTasks--,e.pendingRootTasks===0){e.onShellError=Mo;var r=e.onShellReady;r()}}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(n.parentFlushed&&n.status===Co&&Ds(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Ts,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&n.status===Co&&(Ds(t,n),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));if(e.allPendingTasks--,e.allPendingTasks===0){var i=e.onAllReady;i()}}function ks(e,t){var n=t.blockedSegment;if(n.status===So){Ji(t.context);var r=null;r=Ro,Ro=t;try{ys(e,t,t.node),Fr(n.chunks,e.responseState,n.lastPushedText,n.textEmbedded),t.abortSet.delete(t),n.status=Co,Os(e,t.blockedBoundary,n)}catch(r){if(Za(),typeof r==`object`&&r&&typeof r.then==`function`){var i=t.ping;r.then(i,i)}else t.abortSet.delete(t),n.status=Eo,ws(e,t.blockedBoundary,n,r)}finally{Ro=r}}}function As(e){if(e.status!==ko){var t=Zi(),n=bo.current;bo.current=go;var r=xo.getCurrentStack;xo.getCurrentStack=zo;var i=_o;vo(e.responseState);try{var a=e.pingedTasks,o;for(o=0;o<a.length;o++){var s=a[o];ks(e,s)}a.splice(0,o),e.destination!==null&&Rs(e,e.destination)}catch(t){Ko(e,t),qo(e,t)}finally{vo(i),bo.current=n,xo.getCurrentStack=r,n===go&&Ji(t)}}}function js(e,t,n){switch(n.parentFlushed=!0,n.status){case So:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,wn(t,e.responseState,r);case Co:n.status=wo;for(var i=!0,a=n.chunks,o=0,s=n.children,u=0;u<s.length;u++){for(var d=s[u];o<d.index;o++)c(t,a[o]);i=Ms(e,t,d)}for(;o<a.length-1;o++)c(t,a[o]);return o<a.length&&(i=l(t,a[o])),i;default:throw Error(`Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.`)}}function Ms(e,t,n){var r=n.boundary;if(r===null)return js(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return Lr(t,e.responseState,r.errorDigest,r.errorMessage,r.errorComponentStack),js(e,t,n),zr(t,e.responseState);if(r.pendingTasks>0){r.rootSegmentID=e.nextSegmentId++,r.completedSegments.length>0&&e.partialBoundaries.push(r);var i=r.id=Tt(e.responseState);return Ln(t,e.responseState,i),js(e,t,n),Bn(t,e.responseState)}else if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),Ln(t,e.responseState,r.id),js(e,t,n),Bn(t,e.responseState);else{Ir(t,e.responseState);var a=r.completedSegments;if(a.length!==1)throw Error(`A previously unvisited boundary must have exactly one root segment. This is a bug in React.`);var o=a[0];return Ms(e,t,o),Rr(t,e.responseState)}}function Ns(e,t,n){return kr(t,e.responseState,n.id,n.errorDigest,n.errorMessage,n.errorComponentStack)}function Ps(e,t,n){return lr(t,e.responseState,n.formatContext,n.id),Ms(e,t,n),ur(t,n.formatContext)}function Fs(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++){var a=r[i];Ls(e,t,n,a)}return r.length=0,Cr(t,e.responseState,n.id,n.rootSegmentID)}function Is(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++){var a=r[i];if(!Ls(e,t,n,a))return i++,r.splice(0,i),!1}return r.splice(0,i),!0}function Ls(e,t,n,r){if(r.status===wo)return!0;var i=r.id;if(i===-1){if((r.id=n.rootSegmentID)===-1)throw Error(`A root segment ID must have been assigned by now. This is a bug in React.`);return Ps(e,t,r)}else return Ps(e,t,r),vr(t,e.responseState,i)}function Rs(e,t){try{var n=e.completedRootSegment;n!==null&&e.pendingRootTasks===0&&(Ms(e,t,n),e.completedRootSegment=null,xn(t,e.responseState));var r=e.clientRenderedBoundaries,i;for(i=0;i<r.length;i++){var o=r[i];if(!Ns(e,t,o)){e.destination=null,i++,r.splice(0,i);return}}r.splice(0,i);var s=e.completedBoundaries;for(i=0;i<s.length;i++){var c=s[i];if(!Fs(e,t,c)){e.destination=null,i++,s.splice(0,i);return}}s.splice(0,i);var l=e.partialBoundaries;for(i=0;i<l.length;i++){var d=l[i];if(!Is(e,t,d)){e.destination=null,i++,l.splice(0,i);return}}l.splice(0,i);var f=e.completedBoundaries;for(i=0;i<f.length;i++){var p=f[i];if(!Fs(e,t,p)){e.destination=null,i++,f.splice(0,i);return}}f.splice(0,i)}finally{e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&(e.abortableTasks.size!==0&&a(`There was still abortable task at the root when we closed. This is a bug in React.`),u(t))}}function zs(e){s(function(){return As(e)})}function Bs(e,t){if(e.status===Oo){e.status=ko,p(t,e.fatalError);return}if(e.status!==ko&&e.destination===null){e.destination=t;try{Rs(e,t)}catch(t){Ko(e,t),qo(e,t)}}}function Vs(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return Es(n,e,t)}),n.clear(),e.destination!==null&&Rs(e,e.destination)}catch(t){Ko(e,t),qo(e,t)}}function Hs(){}function Us(e,t,n,r){var i=!1,a=null,o=``,s={push:function(e){return e!==null&&(o+=e),!0},destroy:function(e){i=!0,a=e}},c=!1;function l(){c=!0}var u=No(e,Mr(n,t?t.identifierPrefix:void 0),Nr(),1/0,Hs,void 0,l,void 0,void 0);if(zs(u),Vs(u,r),Bs(u,s),i)throw a;if(!c)throw Error(`A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.`);return o}function Ws(e,t){return Us(e,t,!1,`The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)}function Gs(e,t){return Us(e,t,!0,`The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)}function Ks(){throw Error(`ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.`)}function qs(){throw Error(`ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.`)}e.renderToNodeStream=Ks,e.renderToStaticMarkup=Gs,e.renderToStaticNodeStream=qs,e.renderToString=Ws,e.version=n})()})),me=e.t((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=require(`react`),n=`18.3.1`,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function i(e){o(`warn`,e,[...arguments].slice(1))}function a(e){o(`error`,e,[...arguments].slice(1))}function o(e,t,n){var i=r.ReactDebugCurrentFrame.getStackAddendum();i!==``&&(t+=`%s`,n=n.concat([i]));var a=n.map(function(e){return String(e)});a.unshift(`Warning: `+t),Function.prototype.apply.call(console[e],console,a)}function s(e){e()}var c=512,l=null,u=0;function d(e){l=new Uint8Array(c),u=0}function f(e,t){if(t.length!==0){if(t.length>c){u>0&&(e.enqueue(new Uint8Array(l.buffer,0,u)),l=new Uint8Array(c),u=0),e.enqueue(t);return}var n=t,r=l.length-u;r<n.length&&(r===0?e.enqueue(l):(l.set(n.subarray(0,r),u),e.enqueue(l),n=n.subarray(r)),l=new Uint8Array(c),u=0),l.set(n,u),u+=n.length}}function p(e,t){return f(e,t),!0}function m(e){l&&u>0&&(e.enqueue(new Uint8Array(l.buffer,0,u)),l=null,u=0)}function h(e){e.close()}var g=new TextEncoder;function _(e){return g.encode(e)}function v(e){return g.encode(e)}function y(e,t){typeof e.error==`function`?e.error(t):e.close()}function b(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function x(e){try{return S(e),!1}catch{return!0}}function S(e){return``+e}function C(e,t){if(x(e))return a("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,b(e)),S(e)}function w(e,t){if(x(e))return a("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,b(e)),S(e)}function T(e){if(x(e))return a(`The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.`,b(e)),S(e)}var E=Object.prototype.hasOwnProperty,ee=0,te=1,D=2,O=3,ne=4,re=5,ie=6,ae=`: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`,oe=ae+`\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040`,k=RegExp(`^[`+ae+`][`+oe+`]*$`),se={},ce={};function le(e){return E.call(ce,e)?!0:E.call(se,e)?!1:k.test(e)?(ce[e]=!0,!0):(se[e]=!0,a("Invalid attribute name: `%s`",e),!1)}function ue(e,t,n,r){if(n!==null&&n.type===ee)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:if(r)return!1;if(n!==null)return!n.acceptsBooleans;var i=e.toLowerCase().slice(0,5);return i!==`data-`&&i!==`aria-`;default:return!1}}function de(e){return fe.hasOwnProperty(e)?fe[e]:null}function A(e,t,n,r,i,a,o){this.acceptsBooleans=t===D||t===O||t===ne,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var fe={};[`children`,`dangerouslySetInnerHTML`,`defaultValue`,`defaultChecked`,`innerHTML`,`suppressContentEditableWarning`,`suppressHydrationWarning`,`style`].forEach(function(e){fe[e]=new A(e,ee,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0],n=e[1];fe[t]=new A(t,te,!1,n,null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){fe[e]=new A(e,D,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){fe[e]=new A(e,D,!1,e,null,!1,!1)}),[`allowFullScreen`,`async`,`autoFocus`,`autoPlay`,`controls`,`default`,`defer`,`disabled`,`disablePictureInPicture`,`disableRemotePlayback`,`formNoValidate`,`hidden`,`loop`,`noModule`,`noValidate`,`open`,`playsInline`,`readOnly`,`required`,`reversed`,`scoped`,`seamless`,`itemScope`].forEach(function(e){fe[e]=new A(e,O,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){fe[e]=new A(e,O,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){fe[e]=new A(e,ne,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){fe[e]=new A(e,ie,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){fe[e]=new A(e,re,!1,e.toLowerCase(),null,!1,!1)});var pe=/[\-\:]([a-z])/g,me=function(e){return e[1].toUpperCase()};`accent-height.alignment-baseline.arabic-form.baseline-shift.cap-height.clip-path.clip-rule.color-interpolation.color-interpolation-filters.color-profile.color-rendering.dominant-baseline.enable-background.fill-opacity.fill-rule.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.glyph-name.glyph-orientation-horizontal.glyph-orientation-vertical.horiz-adv-x.horiz-origin-x.image-rendering.letter-spacing.lighting-color.marker-end.marker-mid.marker-start.overline-position.overline-thickness.paint-order.panose-1.pointer-events.rendering-intent.shape-rendering.stop-color.stop-opacity.strikethrough-position.strikethrough-thickness.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-anchor.text-decoration.text-rendering.underline-position.underline-thickness.unicode-bidi.unicode-range.units-per-em.v-alphabetic.v-hanging.v-ideographic.v-mathematical.vector-effect.vert-adv-y.vert-origin-x.vert-origin-y.word-spacing.writing-mode.xmlns:xlink.x-height`.split(`.`).forEach(function(e){var t=e.replace(pe,me);fe[t]=new A(t,te,!1,e,null,!1,!1)}),[`xlink:actuate`,`xlink:arcrole`,`xlink:role`,`xlink:show`,`xlink:title`,`xlink:type`].forEach(function(e){var t=e.replace(pe,me);fe[t]=new A(t,te,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(pe,me);fe[t]=new A(t,te,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){fe[e]=new A(e,te,!1,e.toLowerCase(),null,!1,!1)});var he=`xlinkHref`;fe[he]=new A(`xlinkHref`,te,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){fe[e]=new A(e,te,!1,e.toLowerCase(),null,!0,!0)});var ge={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function _e(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var ve=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(ge).forEach(function(e){ve.forEach(function(t){ge[_e(t,e)]=ge[e]})});var ye={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function be(e,t){ye[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||a("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||a("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function xe(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Se={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Ce={},we=RegExp(`^(aria)-[`+oe+`]*$`),j=RegExp(`^(aria)[A-Z][`+oe+`]*$`);function Te(e,t){if(E.call(Ce,t)&&Ce[t])return!0;if(j.test(t)){var n=`aria-`+t.slice(4).toLowerCase(),r=Se.hasOwnProperty(n)?n:null;if(r==null)return a("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Ce[t]=!0,!0;if(t!==r)return a("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,r),Ce[t]=!0,!0}if(we.test(t)){var i=t.toLowerCase(),o=Se.hasOwnProperty(i)?i:null;if(o==null)return Ce[t]=!0,!1;if(t!==o)return a("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,o),Ce[t]=!0,!0}return!0}function Ee(e,t){var n=[];for(var r in t)Te(e,r)||n.push(r);var i=n.map(function(e){return"`"+e+"`"}).join(`, `);n.length===1?a(`Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props`,i,e):n.length>1&&a(`Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props`,i,e)}function De(e,t){xe(e,t)||Ee(e,t)}var Oe=!1;function ke(e,t){e!==`input`&&e!==`textarea`&&e!==`select`||t!=null&&t.value===null&&!Oe&&(Oe=!0,e===`select`&&t.multiple?a("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):a("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}var Ae={accept:`accept`,acceptcharset:`acceptCharset`,"accept-charset":`acceptCharset`,accesskey:`accessKey`,action:`action`,allowfullscreen:`allowFullScreen`,alt:`alt`,as:`as`,async:`async`,autocapitalize:`autoCapitalize`,autocomplete:`autoComplete`,autocorrect:`autoCorrect`,autofocus:`autoFocus`,autoplay:`autoPlay`,autosave:`autoSave`,capture:`capture`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,challenge:`challenge`,charset:`charSet`,checked:`checked`,children:`children`,cite:`cite`,class:`className`,classid:`classID`,classname:`className`,cols:`cols`,colspan:`colSpan`,content:`content`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controls:`controls`,controlslist:`controlsList`,coords:`coords`,crossorigin:`crossOrigin`,dangerouslysetinnerhtml:`dangerouslySetInnerHTML`,data:`data`,datetime:`dateTime`,default:`default`,defaultchecked:`defaultChecked`,defaultvalue:`defaultValue`,defer:`defer`,dir:`dir`,disabled:`disabled`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`,download:`download`,draggable:`draggable`,enctype:`encType`,enterkeyhint:`enterKeyHint`,for:`htmlFor`,form:`form`,formmethod:`formMethod`,formaction:`formAction`,formenctype:`formEncType`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameborder:`frameBorder`,headers:`headers`,height:`height`,hidden:`hidden`,high:`high`,href:`href`,hreflang:`hrefLang`,htmlfor:`htmlFor`,httpequiv:`httpEquiv`,"http-equiv":`httpEquiv`,icon:`icon`,id:`id`,imagesizes:`imageSizes`,imagesrcset:`imageSrcSet`,innerhtml:`innerHTML`,inputmode:`inputMode`,integrity:`integrity`,is:`is`,itemid:`itemID`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,keyparams:`keyParams`,keytype:`keyType`,kind:`kind`,label:`label`,lang:`lang`,list:`list`,loop:`loop`,low:`low`,manifest:`manifest`,marginwidth:`marginWidth`,marginheight:`marginHeight`,max:`max`,maxlength:`maxLength`,media:`media`,mediagroup:`mediaGroup`,method:`method`,min:`min`,minlength:`minLength`,multiple:`multiple`,muted:`muted`,name:`name`,nomodule:`noModule`,nonce:`nonce`,novalidate:`noValidate`,open:`open`,optimum:`optimum`,pattern:`pattern`,placeholder:`placeholder`,playsinline:`playsInline`,poster:`poster`,preload:`preload`,profile:`profile`,radiogroup:`radioGroup`,readonly:`readOnly`,referrerpolicy:`referrerPolicy`,rel:`rel`,required:`required`,reversed:`reversed`,role:`role`,rows:`rows`,rowspan:`rowSpan`,sandbox:`sandbox`,scope:`scope`,scoped:`scoped`,scrolling:`scrolling`,seamless:`seamless`,selected:`selected`,shape:`shape`,size:`size`,sizes:`sizes`,span:`span`,spellcheck:`spellCheck`,src:`src`,srcdoc:`srcDoc`,srclang:`srcLang`,srcset:`srcSet`,start:`start`,step:`step`,style:`style`,summary:`summary`,tabindex:`tabIndex`,target:`target`,title:`title`,type:`type`,usemap:`useMap`,value:`value`,width:`width`,wmode:`wmode`,wrap:`wrap`,about:`about`,accentheight:`accentHeight`,"accent-height":`accentHeight`,accumulate:`accumulate`,additive:`additive`,alignmentbaseline:`alignmentBaseline`,"alignment-baseline":`alignmentBaseline`,allowreorder:`allowReorder`,alphabetic:`alphabetic`,amplitude:`amplitude`,arabicform:`arabicForm`,"arabic-form":`arabicForm`,ascent:`ascent`,attributename:`attributeName`,attributetype:`attributeType`,autoreverse:`autoReverse`,azimuth:`azimuth`,basefrequency:`baseFrequency`,baselineshift:`baselineShift`,"baseline-shift":`baselineShift`,baseprofile:`baseProfile`,bbox:`bbox`,begin:`begin`,bias:`bias`,by:`by`,calcmode:`calcMode`,capheight:`capHeight`,"cap-height":`capHeight`,clip:`clip`,clippath:`clipPath`,"clip-path":`clipPath`,clippathunits:`clipPathUnits`,cliprule:`clipRule`,"clip-rule":`clipRule`,color:`color`,colorinterpolation:`colorInterpolation`,"color-interpolation":`colorInterpolation`,colorinterpolationfilters:`colorInterpolationFilters`,"color-interpolation-filters":`colorInterpolationFilters`,colorprofile:`colorProfile`,"color-profile":`colorProfile`,colorrendering:`colorRendering`,"color-rendering":`colorRendering`,contentscripttype:`contentScriptType`,contentstyletype:`contentStyleType`,cursor:`cursor`,cx:`cx`,cy:`cy`,d:`d`,datatype:`datatype`,decelerate:`decelerate`,descent:`descent`,diffuseconstant:`diffuseConstant`,direction:`direction`,display:`display`,divisor:`divisor`,dominantbaseline:`dominantBaseline`,"dominant-baseline":`dominantBaseline`,dur:`dur`,dx:`dx`,dy:`dy`,edgemode:`edgeMode`,elevation:`elevation`,enablebackground:`enableBackground`,"enable-background":`enableBackground`,end:`end`,exponent:`exponent`,externalresourcesrequired:`externalResourcesRequired`,fill:`fill`,fillopacity:`fillOpacity`,"fill-opacity":`fillOpacity`,fillrule:`fillRule`,"fill-rule":`fillRule`,filter:`filter`,filterres:`filterRes`,filterunits:`filterUnits`,floodopacity:`floodOpacity`,"flood-opacity":`floodOpacity`,floodcolor:`floodColor`,"flood-color":`floodColor`,focusable:`focusable`,fontfamily:`fontFamily`,"font-family":`fontFamily`,fontsize:`fontSize`,"font-size":`fontSize`,fontsizeadjust:`fontSizeAdjust`,"font-size-adjust":`fontSizeAdjust`,fontstretch:`fontStretch`,"font-stretch":`fontStretch`,fontstyle:`fontStyle`,"font-style":`fontStyle`,fontvariant:`fontVariant`,"font-variant":`fontVariant`,fontweight:`fontWeight`,"font-weight":`fontWeight`,format:`format`,from:`from`,fx:`fx`,fy:`fy`,g1:`g1`,g2:`g2`,glyphname:`glyphName`,"glyph-name":`glyphName`,glyphorientationhorizontal:`glyphOrientationHorizontal`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphorientationvertical:`glyphOrientationVertical`,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphref:`glyphRef`,gradienttransform:`gradientTransform`,gradientunits:`gradientUnits`,hanging:`hanging`,horizadvx:`horizAdvX`,"horiz-adv-x":`horizAdvX`,horizoriginx:`horizOriginX`,"horiz-origin-x":`horizOriginX`,ideographic:`ideographic`,imagerendering:`imageRendering`,"image-rendering":`imageRendering`,in2:`in2`,in:`in`,inlist:`inlist`,intercept:`intercept`,k1:`k1`,k2:`k2`,k3:`k3`,k4:`k4`,k:`k`,kernelmatrix:`kernelMatrix`,kernelunitlength:`kernelUnitLength`,kerning:`kerning`,keypoints:`keyPoints`,keysplines:`keySplines`,keytimes:`keyTimes`,lengthadjust:`lengthAdjust`,letterspacing:`letterSpacing`,"letter-spacing":`letterSpacing`,lightingcolor:`lightingColor`,"lighting-color":`lightingColor`,limitingconeangle:`limitingConeAngle`,local:`local`,markerend:`markerEnd`,"marker-end":`markerEnd`,markerheight:`markerHeight`,markermid:`markerMid`,"marker-mid":`markerMid`,markerstart:`markerStart`,"marker-start":`markerStart`,markerunits:`markerUnits`,markerwidth:`markerWidth`,mask:`mask`,maskcontentunits:`maskContentUnits`,maskunits:`maskUnits`,mathematical:`mathematical`,mode:`mode`,numoctaves:`numOctaves`,offset:`offset`,opacity:`opacity`,operator:`operator`,order:`order`,orient:`orient`,orientation:`orientation`,origin:`origin`,overflow:`overflow`,overlineposition:`overlinePosition`,"overline-position":`overlinePosition`,overlinethickness:`overlineThickness`,"overline-thickness":`overlineThickness`,paintorder:`paintOrder`,"paint-order":`paintOrder`,panose1:`panose1`,"panose-1":`panose1`,pathlength:`pathLength`,patterncontentunits:`patternContentUnits`,patterntransform:`patternTransform`,patternunits:`patternUnits`,pointerevents:`pointerEvents`,"pointer-events":`pointerEvents`,points:`points`,pointsatx:`pointsAtX`,pointsaty:`pointsAtY`,pointsatz:`pointsAtZ`,prefix:`prefix`,preservealpha:`preserveAlpha`,preserveaspectratio:`preserveAspectRatio`,primitiveunits:`primitiveUnits`,property:`property`,r:`r`,radius:`radius`,refx:`refX`,refy:`refY`,renderingintent:`renderingIntent`,"rendering-intent":`renderingIntent`,repeatcount:`repeatCount`,repeatdur:`repeatDur`,requiredextensions:`requiredExtensions`,requiredfeatures:`requiredFeatures`,resource:`resource`,restart:`restart`,result:`result`,results:`results`,rotate:`rotate`,rx:`rx`,ry:`ry`,scale:`scale`,security:`security`,seed:`seed`,shaperendering:`shapeRendering`,"shape-rendering":`shapeRendering`,slope:`slope`,spacing:`spacing`,specularconstant:`specularConstant`,specularexponent:`specularExponent`,speed:`speed`,spreadmethod:`spreadMethod`,startoffset:`startOffset`,stddeviation:`stdDeviation`,stemh:`stemh`,stemv:`stemv`,stitchtiles:`stitchTiles`,stopcolor:`stopColor`,"stop-color":`stopColor`,stopopacity:`stopOpacity`,"stop-opacity":`stopOpacity`,strikethroughposition:`strikethroughPosition`,"strikethrough-position":`strikethroughPosition`,strikethroughthickness:`strikethroughThickness`,"strikethrough-thickness":`strikethroughThickness`,string:`string`,stroke:`stroke`,strokedasharray:`strokeDasharray`,"stroke-dasharray":`strokeDasharray`,strokedashoffset:`strokeDashoffset`,"stroke-dashoffset":`strokeDashoffset`,strokelinecap:`strokeLinecap`,"stroke-linecap":`strokeLinecap`,strokelinejoin:`strokeLinejoin`,"stroke-linejoin":`strokeLinejoin`,strokemiterlimit:`strokeMiterlimit`,"stroke-miterlimit":`strokeMiterlimit`,strokewidth:`strokeWidth`,"stroke-width":`strokeWidth`,strokeopacity:`strokeOpacity`,"stroke-opacity":`strokeOpacity`,suppresscontenteditablewarning:`suppressContentEditableWarning`,suppresshydrationwarning:`suppressHydrationWarning`,surfacescale:`surfaceScale`,systemlanguage:`systemLanguage`,tablevalues:`tableValues`,targetx:`targetX`,targety:`targetY`,textanchor:`textAnchor`,"text-anchor":`textAnchor`,textdecoration:`textDecoration`,"text-decoration":`textDecoration`,textlength:`textLength`,textrendering:`textRendering`,"text-rendering":`textRendering`,to:`to`,transform:`transform`,typeof:`typeof`,u1:`u1`,u2:`u2`,underlineposition:`underlinePosition`,"underline-position":`underlinePosition`,underlinethickness:`underlineThickness`,"underline-thickness":`underlineThickness`,unicode:`unicode`,unicodebidi:`unicodeBidi`,"unicode-bidi":`unicodeBidi`,unicoderange:`unicodeRange`,"unicode-range":`unicodeRange`,unitsperem:`unitsPerEm`,"units-per-em":`unitsPerEm`,unselectable:`unselectable`,valphabetic:`vAlphabetic`,"v-alphabetic":`vAlphabetic`,values:`values`,vectoreffect:`vectorEffect`,"vector-effect":`vectorEffect`,version:`version`,vertadvy:`vertAdvY`,"vert-adv-y":`vertAdvY`,vertoriginx:`vertOriginX`,"vert-origin-x":`vertOriginX`,vertoriginy:`vertOriginY`,"vert-origin-y":`vertOriginY`,vhanging:`vHanging`,"v-hanging":`vHanging`,videographic:`vIdeographic`,"v-ideographic":`vIdeographic`,viewbox:`viewBox`,viewtarget:`viewTarget`,visibility:`visibility`,vmathematical:`vMathematical`,"v-mathematical":`vMathematical`,vocab:`vocab`,widths:`widths`,wordspacing:`wordSpacing`,"word-spacing":`wordSpacing`,writingmode:`writingMode`,"writing-mode":`writingMode`,x1:`x1`,x2:`x2`,x:`x`,xchannelselector:`xChannelSelector`,xheight:`xHeight`,"x-height":`xHeight`,xlinkactuate:`xlinkActuate`,"xlink:actuate":`xlinkActuate`,xlinkarcrole:`xlinkArcrole`,"xlink:arcrole":`xlinkArcrole`,xlinkhref:`xlinkHref`,"xlink:href":`xlinkHref`,xlinkrole:`xlinkRole`,"xlink:role":`xlinkRole`,xlinkshow:`xlinkShow`,"xlink:show":`xlinkShow`,xlinktitle:`xlinkTitle`,"xlink:title":`xlinkTitle`,xlinktype:`xlinkType`,"xlink:type":`xlinkType`,xmlbase:`xmlBase`,"xml:base":`xmlBase`,xmllang:`xmlLang`,"xml:lang":`xmlLang`,xmlns:`xmlns`,"xml:space":`xmlSpace`,xmlnsxlink:`xmlnsXlink`,"xmlns:xlink":`xmlnsXlink`,xmlspace:`xmlSpace`,y1:`y1`,y2:`y2`,y:`y`,ychannelselector:`yChannelSelector`,z:`z`,zoomandpan:`zoomAndPan`},je=function(){},Me={},Ne=/^on./,Pe=/^on[^A-Z]/,Fe=RegExp(`^(aria)-[`+oe+`]*$`),Ie=RegExp(`^(aria)[A-Z][`+oe+`]*$`);je=function(e,t,n,r){if(E.call(Me,t)&&Me[t])return!0;var i=t.toLowerCase();if(i===`onfocusin`||i===`onfocusout`)return a(`React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.`),Me[t]=!0,!0;if(r!=null){var o=r.registrationNameDependencies,s=r.possibleRegistrationNames;if(o.hasOwnProperty(t))return!0;var c=s.hasOwnProperty(i)?s[i]:null;if(c!=null)return a("Invalid event handler property `%s`. Did you mean `%s`?",t,c),Me[t]=!0,!0;if(Ne.test(t))return a("Unknown event handler property `%s`. It will be ignored.",t),Me[t]=!0,!0}else if(Ne.test(t))return Pe.test(t)&&a("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Me[t]=!0,!0;if(Fe.test(t)||Ie.test(t))return!0;if(i===`innerhtml`)return a("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Me[t]=!0,!0;if(i===`aria`)return a("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Me[t]=!0,!0;if(i===`is`&&n!=null&&typeof n!=`string`)return a("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Me[t]=!0,!0;if(typeof n==`number`&&isNaN(n))return a("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Me[t]=!0,!0;var l=de(t),u=l!==null&&l.type===ee;if(Ae.hasOwnProperty(i)){var d=Ae[i];if(d!==t)return a("Invalid DOM property `%s`. Did you mean `%s`?",t,d),Me[t]=!0,!0}else if(!u&&t!==i)return a("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,i),Me[t]=!0,!0;return typeof n==`boolean`&&ue(t,n,l,!1)?(n?a('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):a(`Received \`%s\` for a non-boolean attribute \`%s\`.
|
|
47
|
-
|
|
48
|
-
If you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.
|
|
49
|
-
|
|
50
|
-
If you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.`,n,t,t,n,t,t,t),Me[t]=!0,!0):u?!0:ue(t,n,l,!1)?(Me[t]=!0,!1):(n===`false`||n===`true`)&&l!==null&&l.type===O?(a("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n===`false`?`The browser will interpret it as a truthy value.`:`Although this works, it will not work as expected if you pass the string "false".`,t,n),Me[t]=!0,!0):!0};var Le=function(e,t,n){var r=[];for(var i in t)je(e,i,t[i],n)||r.push(i);var o=r.map(function(e){return"`"+e+"`"}).join(`, `);r.length===1?a(`Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior `,o,e):r.length>1&&a(`Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior `,o,e)};function Re(e,t,n){xe(e,t)||Le(e,t,n)}var ze=function(){},Be=/^(?:webkit|moz|o)[A-Z]/,Ve=/^-ms-/,He=/-(.)/g,Ue=/;\s*$/,We={},Ge={},Ke=!1,qe=!1,Je=function(e){return e.replace(He,function(e,t){return t.toUpperCase()})},Ye=function(e){We.hasOwnProperty(e)&&We[e]||(We[e]=!0,a(`Unsupported style property %s. Did you mean %s?`,e,Je(e.replace(Ve,`ms-`))))},Xe=function(e){We.hasOwnProperty(e)&&We[e]||(We[e]=!0,a(`Unsupported vendor-prefixed style property %s. Did you mean %s?`,e,e.charAt(0).toUpperCase()+e.slice(1)))},Ze=function(e,t){Ge.hasOwnProperty(t)&&Ge[t]||(Ge[t]=!0,a(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Ue,``)))},Qe=function(e,t){Ke||(Ke=!0,a("`NaN` is an invalid value for the `%s` css style property.",e))},$e=function(e,t){qe||(qe=!0,a("`Infinity` is an invalid value for the `%s` css style property.",e))};ze=function(e,t){e.indexOf(`-`)>-1?Ye(e):Be.test(e)?Xe(e):Ue.test(t)&&Ze(e,t),typeof t==`number`&&(isNaN(t)?Qe(e,t):isFinite(t)||$e(e,t))};var et=ze,tt=/["'&<>]/;function nt(e){T(e);var t=``+e,n=tt.exec(t);if(!n)return t;var r,i=``,a,o=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:r=`"`;break;case 38:r=`&`;break;case 39:r=`'`;break;case 60:r=`<`;break;case 62:r=`>`;break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=r}return o===a?i:i+t.substring(o,a)}function rt(e){return typeof e==`boolean`||typeof e==`number`?``+e:nt(e)}var it=/([A-Z])/g,at=/^ms-/;function ot(e){return e.replace(it,`-$1`).toLowerCase().replace(at,`-ms-`)}var M=/^[\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,st=!1;function ct(e){!st&&M.test(e)&&(st=!0,a(`A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.`,JSON.stringify(e)))}var lt=Array.isArray;function ut(e){return lt(e)}var dt=v(`<script>`),ft=v(`<\/script>`),pt=v(`<script src="`),mt=v(`<script type="module" src="`),ht=v(`" async=""><\/script>`);function gt(e){return T(e),(``+e).replace(_t,vt)}var _t=/(<\/|<)(s)(cript)/gi,vt=function(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r};function yt(e,t,n,r,i){var a=e===void 0?``:e,o=t===void 0?dt:v(`<script nonce="`+rt(t)+`">`),s=[];if(n!==void 0&&s.push(o,_(gt(n)),ft),r!==void 0)for(var c=0;c<r.length;c++)s.push(pt,_(rt(r[c])),ht);if(i!==void 0)for(var l=0;l<i.length;l++)s.push(mt,_(rt(i[l])),ht);return{bootstrapChunks:s,startInlineScript:o,placeholderPrefix:v(a+`P:`),segmentPrefix:v(a+`S:`),boundaryPrefix:a+`B:`,idPrefix:a,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var bt=0,xt=1,St=2,Ct=3,wt=4,Tt=5,Et=6,Dt=7;function Ot(e,t){return{insertionMode:e,selectedValue:t}}function kt(e){return Ot(e===`http://www.w3.org/2000/svg`?St:e===`http://www.w3.org/1998/Math/MathML`?Ct:bt,null)}function At(e,t,n){switch(t){case`select`:return Ot(xt,n.value==null?n.defaultValue:n.value);case`svg`:return Ot(St,null);case`math`:return Ot(Ct,null);case`foreignObject`:return Ot(xt,null);case`table`:return Ot(wt,null);case`thead`:case`tbody`:case`tfoot`:return Ot(Tt,null);case`colgroup`:return Ot(Dt,null);case`tr`:return Ot(Et,null)}return e.insertionMode>=wt||e.insertionMode===bt?Ot(xt,null):e}var jt=null;function Mt(e){var t=e.nextSuspenseID++;return v(e.boundaryPrefix+t.toString(16))}function Nt(e,t,n){var r=`:`+e.idPrefix+`R`+t;return n>0&&(r+=`H`+n.toString(32)),r+`:`}function Pt(e){return rt(e)}var Ft=v(`<!-- -->`);function It(e,t,n,r){return t===``?r:(r&&e.push(Ft),e.push(_(Pt(t))),!0)}function Lt(e,t,n,r){n&&r&&e.push(Ft)}var Rt=new Map;function zt(e){var t=Rt.get(e);if(t!==void 0)return t;var n=v(rt(ot(e)));return Rt.set(e,n),n}var Bt=v(` style="`),Vt=v(`:`),Ht=v(`;`);function Ut(e,t,n){if(typeof n!=`object`)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var r=!0;for(var i in n)if(E.call(n,i)){var a=n[i];if(!(a==null||typeof a==`boolean`||a===``)){var o=void 0,s=void 0;i.indexOf(`--`)===0?(o=_(rt(i)),w(a,i),s=_(rt((``+a).trim()))):(et(i,a),o=zt(i),typeof a==`number`?s=a!==0&&!E.call(ge,i)?_(a+`px`):_(``+a):(w(a,i),s=_(rt((``+a).trim())))),r?(r=!1,e.push(Bt,o,Vt,s)):e.push(Ht,o,Vt,s)}}r||e.push(Kt)}var Wt=v(` `),Gt=v(`="`),Kt=v(`"`),qt=v(`=""`);function Jt(e,t,n,r){switch(n){case`style`:Ut(e,t,r);return;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:return}if(!(n.length>2&&(n[0]===`o`||n[0]===`O`)&&(n[1]===`n`||n[1]===`N`))){var i=de(n);if(i!==null){switch(typeof r){case`function`:case`symbol`:return;case`boolean`:if(!i.acceptsBooleans)return}var a=i.attributeName,o=_(a);switch(i.type){case O:r&&e.push(Wt,o,qt);return;case ne:r===!0?e.push(Wt,o,qt):r===!1||e.push(Wt,o,Gt,_(rt(r)),Kt);return;case re:isNaN(r)||e.push(Wt,o,Gt,_(rt(r)),Kt);break;case ie:!isNaN(r)&&r>=1&&e.push(Wt,o,Gt,_(rt(r)),Kt);break;default:i.sanitizeURL&&(C(r,a),r=``+r,ct(r)),e.push(Wt,o,Gt,_(rt(r)),Kt)}}else if(le(n)){switch(typeof r){case`function`:case`symbol`:return;case`boolean`:var s=n.toLowerCase().slice(0,5);if(s!==`data-`&&s!==`aria-`)return}e.push(Wt,_(n),Gt,_(rt(r)),Kt)}}}var Yt=v(`>`),Xt=v(`/>`);function Zt(e,t,n){if(t!=null){if(n!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t!=`object`||!(`__html`in t))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var r=t.__html;r!=null&&(T(r),e.push(_(``+r)))}}var Qt=!1,$t=!1,en=!1,tn=!1,nn=!1,rn=!1,an=!1;function on(e,t){var n=e[t];if(n!=null){var r=ut(n);e.multiple&&!r?a("The `%s` prop supplied to <select> must be an array if `multiple` is true.",t):!e.multiple&&r&&a("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",t)}}function sn(e,t,n){be(`select`,t),on(t,`value`),on(t,`defaultValue`),t.value!==void 0&&t.defaultValue!==void 0&&!en&&(a(`Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components`),en=!0),e.push(Sn(`select`));var r=null,i=null;for(var o in t)if(E.call(t,o)){var s=t[o];if(s==null)continue;switch(o){case`children`:r=s;break;case`dangerouslySetInnerHTML`:i=s;break;case`defaultValue`:case`value`:break;default:Jt(e,n,o,s);break}}return e.push(Yt),Zt(e,i,r),r}function cn(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e,!nn&&typeof e!=`string`&&typeof e!=`number`&&(nn=!0,a("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),n}var ln=v(` selected=""`);function un(e,t,n,r){var i=r.selectedValue;e.push(Sn(`option`));var o=null,s=null,c=null,l=null;for(var u in t)if(E.call(t,u)){var d=t[u];if(d==null)continue;switch(u){case`children`:o=d;break;case`selected`:c=d,an||=(a("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),!0);break;case`dangerouslySetInnerHTML`:l=d;break;case`value`:s=d;default:Jt(e,n,u,d);break}}if(i!=null){var f;if(s===null?(l!==null&&(rn||(rn=!0,a("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),f=cn(o)):(C(s,`value`),f=``+s),ut(i)){for(var p=0;p<i.length;p++)if(C(i[p],`value`),``+i[p]===f){e.push(ln);break}}else C(i,`select.value`),``+i===f&&e.push(ln)}else c&&e.push(ln);return e.push(Yt),Zt(e,l,o),o}function dn(e,t,n){be(`input`,t),t.checked!==void 0&&t.defaultChecked!==void 0&&!$t&&(a(`%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components`,`A component`,t.type),$t=!0),t.value!==void 0&&t.defaultValue!==void 0&&!Qt&&(a(`%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components`,`A component`,t.type),Qt=!0),e.push(Sn(`input`));var r=null,i=null,o=null,s=null;for(var c in t)if(E.call(t,c)){var l=t[c];if(l==null)continue;switch(c){case`children`:case`dangerouslySetInnerHTML`:throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case`defaultChecked`:s=l;break;case`defaultValue`:i=l;break;case`checked`:o=l;break;case`value`:r=l;break;default:Jt(e,n,c,l);break}}return o===null?s!==null&&Jt(e,n,`checked`,s):Jt(e,n,`checked`,o),r===null?i!==null&&Jt(e,n,`value`,i):Jt(e,n,`value`,r),e.push(Xt),null}function fn(e,t,n){be(`textarea`,t),t.value!==void 0&&t.defaultValue!==void 0&&!tn&&(a(`Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components`),tn=!0),e.push(Sn(`textarea`));var r=null,i=null,o=null;for(var s in t)if(E.call(t,s)){var c=t[s];if(c==null)continue;switch(s){case`children`:o=c;break;case`value`:r=c;break;case`defaultValue`:i=c;break;case`dangerouslySetInnerHTML`:throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Jt(e,n,s,c);break}}if(r===null&&i!==null&&(r=i),e.push(Yt),o!=null){if(a("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),r!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(ut(o)){if(o.length>1)throw Error(`<textarea> can only have at most one child.`);T(o[0]),r=``+o[0]}T(o),r=``+o}return typeof r==`string`&&r[0]===`
|
|
51
|
-
`&&e.push(vn),r!==null&&(C(r,`value`),e.push(_(Pt(``+r)))),null}function pn(e,t,n,r){for(var i in e.push(Sn(n)),t)if(E.call(t,i)){var a=t[i];if(a==null)continue;switch(i){case`children`:case`dangerouslySetInnerHTML`:throw Error(n+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Jt(e,r,i,a);break}}return e.push(Xt),null}function mn(e,t,n){for(var r in e.push(Sn(`menuitem`)),t)if(E.call(t,r)){var i=t[r];if(i==null)continue;switch(r){case`children`:case`dangerouslySetInnerHTML`:throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Jt(e,n,r,i);break}}return e.push(Yt),null}function hn(e,t,n){e.push(Sn(`title`));var r=null;for(var i in t)if(E.call(t,i)){var o=t[i];if(o==null)continue;switch(i){case`children`:r=o;break;case`dangerouslySetInnerHTML`:throw Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Jt(e,n,i,o);break}}e.push(Yt);var s=Array.isArray(r)&&r.length<2?r[0]||null:r;return Array.isArray(r)&&r.length>1?a(`A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering`):s!=null&&s.$$typeof!=null?a(`A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering`):s!=null&&typeof s!=`string`&&typeof s!=`number`&&a(`A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering`),r}function gn(e,t,n,r){e.push(Sn(n));var i=null,a=null;for(var o in t)if(E.call(t,o)){var s=t[o];if(s==null)continue;switch(o){case`children`:i=s;break;case`dangerouslySetInnerHTML`:a=s;break;default:Jt(e,r,o,s);break}}return e.push(Yt),Zt(e,a,i),typeof i==`string`?(e.push(_(Pt(i))),null):i}function _n(e,t,n,r){e.push(Sn(n));var i=null,a=null;for(var o in t)if(E.call(t,o)){var s=t[o];if(s==null)continue;switch(o){case`children`:i=s;break;case`dangerouslySetInnerHTML`:a=s;break;case`style`:Ut(e,r,s);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:break;default:le(o)&&typeof s!=`function`&&typeof s!=`symbol`&&e.push(Wt,_(o),Gt,_(rt(s)),Kt);break}}return e.push(Yt),Zt(e,a,i),i}var vn=v(`
|
|
52
|
-
`);function yn(e,t,n,r){e.push(Sn(n));var i=null,a=null;for(var o in t)if(E.call(t,o)){var s=t[o];if(s==null)continue;switch(o){case`children`:i=s;break;case`dangerouslySetInnerHTML`:a=s;break;default:Jt(e,r,o,s);break}}if(e.push(Yt),a!=null){if(i!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof a!=`object`||!(`__html`in a))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var c=a.__html;c!=null&&(typeof c==`string`&&c.length>0&&c[0]===`
|
|
53
|
-
`?e.push(vn,_(c)):(T(c),e.push(_(``+c))))}return typeof i==`string`&&i[0]===`
|
|
54
|
-
`&&e.push(vn),i}var bn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,xn=new Map;function Sn(e){var t=xn.get(e);if(t===void 0){if(!bn.test(e))throw Error(`Invalid tag: `+e);t=v(`<`+e),xn.set(e,t)}return t}var Cn=v(`<!DOCTYPE html>`);function wn(e,t,n,r,i){switch(De(t,n),ke(t,n),Re(t,n,null),!n.suppressContentEditableWarning&&n.contentEditable&&n.children!=null&&a("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),i.insertionMode!==St&&i.insertionMode!==Ct&&t.indexOf(`-`)===-1&&typeof n.is!=`string`&&t.toLowerCase()!==t&&a(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,t),t){case`select`:return sn(e,n,r);case`option`:return un(e,n,r,i);case`textarea`:return fn(e,n,r);case`input`:return dn(e,n,r);case`menuitem`:return mn(e,n,r);case`title`:return hn(e,n,r);case`listing`:case`pre`:return yn(e,n,t,r);case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:return pn(e,n,t,r);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 gn(e,n,t,r);case`html`:return i.insertionMode===bt&&e.push(Cn),gn(e,n,t,r);default:return t.indexOf(`-`)===-1&&typeof n.is!=`string`?gn(e,n,t,r):_n(e,n,t,r)}}var Tn=v(`</`),En=v(`>`);function Dn(e,t,n){switch(t){case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break;default:e.push(Tn,_(t),En)}}function On(e,t){for(var n=t.bootstrapChunks,r=0;r<n.length-1;r++)f(e,n[r]);return r<n.length?p(e,n[r]):!0}var kn=v(`<template id="`),An=v(`"></template>`);function jn(e,t,n){return f(e,kn),f(e,t.placeholderPrefix),f(e,_(n.toString(16))),p(e,An)}var Mn=v(`<!--$-->`),Nn=v(`<!--$?--><template id="`),Pn=v(`"></template>`),Fn=v(`<!--$!-->`),In=v(`<!--/$-->`),Ln=v(`<template`),Rn=v(`"`),zn=v(` data-dgst="`),Bn=v(` data-msg="`),Vn=v(` data-stck="`),Hn=v(`></template>`);function Un(e,t){return p(e,Mn)}function Wn(e,t,n){if(f(e,Nn),n===null)throw Error(`An ID must have been assigned before we can complete the boundary.`);return f(e,n),p(e,Pn)}function Gn(e,t,n,r,i){var a=p(e,Fn);return f(e,Ln),n&&(f(e,zn),f(e,_(rt(n))),f(e,Rn)),r&&(f(e,Bn),f(e,_(rt(r))),f(e,Rn)),i&&(f(e,Vn),f(e,_(rt(i))),f(e,Rn)),a=p(e,Hn),a}function Kn(e,t){return p(e,In)}function qn(e,t){return p(e,In)}function Jn(e,t){return p(e,In)}var Yn=v(`<div hidden id="`),Xn=v(`">`),Zn=v(`</div>`),Qn=v(`<svg aria-hidden="true" style="display:none" id="`),$n=v(`">`),er=v(`</svg>`),tr=v(`<math aria-hidden="true" style="display:none" id="`),nr=v(`">`),rr=v(`</math>`),ir=v(`<table hidden id="`),ar=v(`">`),or=v(`</table>`),sr=v(`<table hidden><tbody id="`),cr=v(`">`),lr=v(`</tbody></table>`),ur=v(`<table hidden><tr id="`),dr=v(`">`),fr=v(`</tr></table>`),pr=v(`<table hidden><colgroup id="`),mr=v(`">`),hr=v(`</colgroup></table>`);function gr(e,t,n,r){switch(n.insertionMode){case bt:case xt:return f(e,Yn),f(e,t.segmentPrefix),f(e,_(r.toString(16))),p(e,Xn);case St:return f(e,Qn),f(e,t.segmentPrefix),f(e,_(r.toString(16))),p(e,$n);case Ct:return f(e,tr),f(e,t.segmentPrefix),f(e,_(r.toString(16))),p(e,nr);case wt:return f(e,ir),f(e,t.segmentPrefix),f(e,_(r.toString(16))),p(e,ar);case Tt:return f(e,sr),f(e,t.segmentPrefix),f(e,_(r.toString(16))),p(e,cr);case Et:return f(e,ur),f(e,t.segmentPrefix),f(e,_(r.toString(16))),p(e,dr);case Dt:return f(e,pr),f(e,t.segmentPrefix),f(e,_(r.toString(16))),p(e,mr);default:throw Error(`Unknown insertion mode. This is a bug in React.`)}}function _r(e,t){switch(t.insertionMode){case bt:case xt:return p(e,Zn);case St:return p(e,er);case Ct:return p(e,rr);case wt:return p(e,or);case Tt:return p(e,lr);case Et:return p(e,fr);case Dt:return p(e,hr);default:throw Error(`Unknown insertion mode. This is a bug in React.`)}}var vr=`function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}`,yr=`function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}`,br=`function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}`,xr=v(vr+`;$RS("`),Sr=v(`$RS("`),Cr=v(`","`),wr=v(`")<\/script>`);function Tr(e,t,n){f(e,t.startInlineScript),t.sentCompleteSegmentFunction?f(e,Sr):(t.sentCompleteSegmentFunction=!0,f(e,xr)),f(e,t.segmentPrefix);var r=_(n.toString(16));return f(e,r),f(e,Cr),f(e,t.placeholderPrefix),f(e,r),p(e,wr)}var Er=v(yr+`;$RC("`),Dr=v(`$RC("`),Or=v(`","`),kr=v(`")<\/script>`);function Ar(e,t,n,r){if(f(e,t.startInlineScript),t.sentCompleteBoundaryFunction?f(e,Dr):(t.sentCompleteBoundaryFunction=!0,f(e,Er)),n===null)throw Error(`An ID must have been assigned before we can complete the boundary.`);var i=_(r.toString(16));return f(e,n),f(e,Or),f(e,t.segmentPrefix),f(e,i),p(e,kr)}var jr=v(br+`;$RX("`),Mr=v(`$RX("`),Nr=v(`"`),Pr=v(`)<\/script>`),Fr=v(`,`);function Ir(e,t,n,r,i,a){if(f(e,t.startInlineScript),t.sentClientRenderFunction?f(e,Mr):(t.sentClientRenderFunction=!0,f(e,jr)),n===null)throw Error(`An ID must have been assigned before we can complete the boundary.`);return f(e,n),f(e,Nr),(r||i||a)&&(f(e,Fr),f(e,_(Rr(r||``)))),(i||a)&&(f(e,Fr),f(e,_(Rr(i||``)))),a&&(f(e,Fr),f(e,_(Rr(a)))),p(e,Pr)}var Lr=/[<\u2028\u2029]/g;function Rr(e){return JSON.stringify(e).replace(Lr,function(e){switch(e){case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}var zr=Object.assign,Br=Symbol.for(`react.element`),Vr=Symbol.for(`react.portal`),Hr=Symbol.for(`react.fragment`),Ur=Symbol.for(`react.strict_mode`),Wr=Symbol.for(`react.profiler`),Gr=Symbol.for(`react.provider`),Kr=Symbol.for(`react.context`),qr=Symbol.for(`react.forward_ref`),Jr=Symbol.for(`react.suspense`),Yr=Symbol.for(`react.suspense_list`),Xr=Symbol.for(`react.memo`),Zr=Symbol.for(`react.lazy`),Qr=Symbol.for(`react.scope`),$r=Symbol.for(`react.debug_trace_mode`),ei=Symbol.for(`react.legacy_hidden`),ti=Symbol.for(`react.default_value`),ni=Symbol.iterator,ri=`@@iterator`;function ii(e){if(typeof e!=`object`||!e)return null;var t=ni&&e[ni]||e[ri];return typeof t==`function`?t:null}function ai(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||``;return i===``?n:n+`(`+i+`)`}function oi(e){return e.displayName||`Context`}function si(e){if(e==null)return null;if(typeof e.tag==`number`&&a(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Hr:return`Fragment`;case Vr:return`Portal`;case Wr:return`Profiler`;case Ur:return`StrictMode`;case Jr:return`Suspense`;case Yr:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case Kr:return oi(e)+`.Consumer`;case Gr:return oi(e._context)+`.Provider`;case qr:return ai(e,e.render,`ForwardRef`);case Xr:var t=e.displayName||null;return t===null?si(e.type)||`Memo`:t;case Zr:var n=e,r=n._payload,i=n._init;try{return si(i(r))}catch{return null}}return null}var ci=0,li,ui,di,fi,pi,mi,hi;function gi(){}gi.__reactDisabledLog=!0;function _i(){if(ci===0){li=console.log,ui=console.info,di=console.warn,fi=console.error,pi=console.group,mi=console.groupCollapsed,hi=console.groupEnd;var e={configurable:!0,enumerable:!0,value:gi,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ci++}function vi(){if(ci--,ci===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:zr({},e,{value:li}),info:zr({},e,{value:ui}),warn:zr({},e,{value:di}),error:zr({},e,{value:fi}),group:zr({},e,{value:pi}),groupCollapsed:zr({},e,{value:mi}),groupEnd:zr({},e,{value:hi})})}ci<0&&a(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}var yi=r.ReactCurrentDispatcher,bi;function xi(e,t,n){if(bi===void 0)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);bi=r&&r[1]||``}return`
|
|
55
|
-
`+bi+e}var Si=!1,Ci=new(typeof WeakMap==`function`?WeakMap:Map);function wi(e,t){if(!e||Si)return``;var n=Ci.get(e);if(n!==void 0)return n;var r;Si=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var a=yi.current;yi.current=null,_i();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(o,[])}catch(e){r=e}Reflect.construct(e,[],o)}else{try{o.call()}catch(e){r=e}e.call(o.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var s=t.stack.split(`
|
|
56
|
-
`),c=r.stack.split(`
|
|
57
|
-
`),l=s.length-1,u=c.length-1;l>=1&&u>=0&&s[l]!==c[u];)u--;for(;l>=1&&u>=0;l--,u--)if(s[l]!==c[u]){if(l!==1||u!==1)do if(l--,u--,u<0||s[l]!==c[u]){var d=`
|
|
58
|
-
`+s[l].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&Ci.set(e,d),d}while(l>=1&&u>=0);break}}}finally{Si=!1,yi.current=a,vi(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:``,p=f?xi(f):``;return typeof e==`function`&&Ci.set(e,p),p}function Ti(e,t,n){return wi(e,!0)}function Ei(e,t,n){return wi(e,!1)}function Di(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Oi(e,t,n){if(e==null)return``;if(typeof e==`function`)return wi(e,Di(e));if(typeof e==`string`)return xi(e);switch(e){case Jr:return xi(`Suspense`);case Yr:return xi(`SuspenseList`)}if(typeof e==`object`)switch(e.$$typeof){case qr:return Ei(e.render);case Xr:return Oi(e.type,t,n);case Zr:var r=e,i=r._payload,a=r._init;try{return Oi(a(i),t,n)}catch{}}return``}var ki={},Ai=r.ReactDebugCurrentFrame;function ji(e){if(e){var t=e._owner,n=Oi(e.type,e._source,t?t.type:null);Ai.setExtraStackFrame(n)}else Ai.setExtraStackFrame(null)}function Mi(e,t,n,r,i){var o=Function.call.bind(E);for(var s in e)if(o(e,s)){var c=void 0;try{if(typeof e[s]!=`function`){var l=Error((r||`React class`)+`: `+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name=`Invariant Violation`,l}c=e[s](t,s,r,n,null,`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`)}catch(e){c=e}c&&!(c instanceof Error)&&(ji(i),a("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||`React class`,n,s,typeof c),ji(null)),c instanceof Error&&!(c.message in ki)&&(ki[c.message]=!0,ji(i),a(`Failed %s type: %s`,n,c.message),ji(null))}}var Ni={},Pi={};Object.freeze(Pi);function Fi(e,t){var n=e.contextTypes;if(!n)return Pi;var r={};for(var i in n)r[i]=t[i];return Mi(n,r,`context`,si(e)||`Unknown`),r}function Ii(e,t,n,r){if(typeof e.getChildContext!=`function`){var i=si(t)||`Unknown`;return Ni[i]||(Ni[i]=!0,a(`%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.`,i,i)),n}var o=e.getChildContext();for(var s in o)if(!(s in r))throw Error((si(t)||`Unknown`)+`.getChildContext(): key "`+s+`" is not defined in childContextTypes.`);return Mi(r,o,`child context`,si(t)||`Unknown`),zr({},n,o)}var Li={},Ri=null,zi=null;function Bi(e){e.context._currentValue=e.parentValue}function Vi(e){e.context._currentValue=e.value}function Hi(e,t){if(e!==t){Bi(e);var n=e.parent,r=t.parent;if(n===null){if(r!==null)throw Error(`The stacks must reach the root at the same time. This is a bug in React.`)}else{if(r===null)throw Error(`The stacks must reach the root at the same time. This is a bug in React.`);Hi(n,r)}Vi(t)}}function Ui(e){Bi(e);var t=e.parent;t!==null&&Ui(t)}function Wi(e){var t=e.parent;t!==null&&Wi(t),Vi(e)}function Gi(e,t){Bi(e);var n=e.parent;if(n===null)throw Error(`The depth must equal at least at zero before reaching the root. This is a bug in React.`);n.depth===t.depth?Hi(n,t):Gi(n,t)}function Ki(e,t){var n=t.parent;if(n===null)throw Error(`The depth must equal at least at zero before reaching the root. This is a bug in React.`);e.depth===n.depth?Hi(e,n):Ki(e,n),Vi(t)}function qi(e){var t=zi,n=e;t!==n&&(t===null?Wi(n):n===null?Ui(t):t.depth===n.depth?Hi(t,n):t.depth>n.depth?Gi(t,n):Ki(t,n),zi=n)}function Ji(e,t){var n=e._currentValue;e._currentValue=t,e._currentRenderer!==void 0&&e._currentRenderer!==null&&e._currentRenderer!==Li&&a(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),e._currentRenderer=Li;var r=zi,i={parent:r,depth:r===null?0:r.depth+1,context:e,parentValue:n,value:t};return zi=i,i}function Yi(e){var t=zi;if(t===null)throw Error(`Tried to pop a Context at the root of the app. This is a bug in React.`);t.context!==e&&a(`The parent context is not the expected context. This is probably a bug in React.`);var n=t.parentValue;return n===ti?t.context._currentValue=t.context._defaultValue:t.context._currentValue=n,e._currentRenderer!==void 0&&e._currentRenderer!==null&&e._currentRenderer!==Li&&a(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),e._currentRenderer=Li,zi=t.parent}function Xi(){return zi}function Zi(e){return e._currentValue}function Qi(e){return e._reactInternals}function $i(e,t){e._reactInternals=t}var ea={},ta={},na=new Set,ra=new Set,ia=new Set,aa,oa,sa,ca=new Set,la,ua;aa=new Set,la=new Set,ua=new Set;var da=new Set;sa=function(e,t){if(!(e===null||typeof e==`function`)){var n=t+`_`+e;da.has(n)||(da.add(n),a("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},oa=function(e,t){if(t===void 0){var n=si(e)||`Component`;aa.has(n)||(aa.add(n),a(`%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.`,n))}};function fa(e,t){var n=e.constructor,r=n&&si(n)||`ReactClass`,i=r+`.`+t;ea[i]||(a(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
59
|
-
|
|
60
|
-
Please check the code for the %s component.`,t,t,r),ea[i]=!0)}var pa={isMounted:function(e){return!1},enqueueSetState:function(e,t,n){var r=Qi(e);r.queue===null?fa(e,`setState`):(r.queue.push(t),n!=null&&sa(n,`setState`))},enqueueReplaceState:function(e,t,n){var r=Qi(e);r.replace=!0,r.queue=[t],n!=null&&sa(n,`setState`)},enqueueForceUpdate:function(e,t){Qi(e).queue===null?fa(e,`forceUpdate`):t!=null&&sa(t,`setState`)}};function ma(e,t,n,r,i){var a=n(i,r);return oa(t,a),a==null?r:zr({},r,a)}function ha(e,t,n){var r=Pi,i=e.contextType;if(`contextType`in e&&!(i===null||i!==void 0&&i.$$typeof===Kr&&i._context===void 0)&&!ua.has(e)){ua.add(e);var o=``;o=i===void 0?` However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.`:typeof i==`object`?i.$$typeof===Gr?` Did you accidentally pass the Context.Provider instead?`:i._context===void 0?` However, it is set to an object with keys {`+Object.keys(i).join(`, `)+`}.`:` Did you accidentally pass the Context.Consumer instead?`:` However, it is set to a `+typeof i+`.`,a(`%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s`,si(e)||`Component`,o)}r=typeof i==`object`&&i?Zi(i):n;var s=new e(t,r);if(typeof e.getDerivedStateFromProps==`function`&&(s.state===null||s.state===void 0)){var c=si(e)||`Component`;na.has(c)||(na.add(c),a("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",c,s.state===null?`null`:`undefined`,c))}if(typeof e.getDerivedStateFromProps==`function`||typeof s.getSnapshotBeforeUpdate==`function`){var l=null,u=null,d=null;if(typeof s.componentWillMount==`function`&&s.componentWillMount.__suppressDeprecationWarning!==!0?l=`componentWillMount`:typeof s.UNSAFE_componentWillMount==`function`&&(l=`UNSAFE_componentWillMount`),typeof s.componentWillReceiveProps==`function`&&s.componentWillReceiveProps.__suppressDeprecationWarning!==!0?u=`componentWillReceiveProps`:typeof s.UNSAFE_componentWillReceiveProps==`function`&&(u=`UNSAFE_componentWillReceiveProps`),typeof s.componentWillUpdate==`function`&&s.componentWillUpdate.__suppressDeprecationWarning!==!0?d=`componentWillUpdate`:typeof s.UNSAFE_componentWillUpdate==`function`&&(d=`UNSAFE_componentWillUpdate`),l!==null||u!==null||d!==null){var f=si(e)||`Component`,p=typeof e.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;ia.has(f)||(ia.add(f),a(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
61
|
-
|
|
62
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
63
|
-
|
|
64
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
65
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,f,p,l===null?``:`
|
|
66
|
-
`+l,u===null?``:`
|
|
67
|
-
`+u,d===null?``:`
|
|
68
|
-
`+d))}}return s}function ga(e,t,n){var r=si(t)||`Component`;e.render||(t.prototype&&typeof t.prototype.render==`function`?a("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",r):a("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",r)),e.getInitialState&&!e.getInitialState.isReactClassApproved&&!e.state&&a(`getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?`,r),e.getDefaultProps&&!e.getDefaultProps.isReactClassApproved&&a(`getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.`,r),e.propTypes&&a(`propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.`,r),e.contextType&&a(`contextType was defined as an instance property on %s. Use a static property to define contextType instead.`,r),e.contextTypes&&a(`contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.`,r),t.contextType&&t.contextTypes&&!la.has(t)&&(la.add(t),a(`%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.`,r)),typeof e.componentShouldUpdate==`function`&&a(`%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.`,r),t.prototype&&t.prototype.isPureReactComponent&&e.shouldComponentUpdate!==void 0&&a(`%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.`,si(t)||`A pure component`),typeof e.componentDidUnmount==`function`&&a(`%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?`,r),typeof e.componentDidReceiveProps==`function`&&a(`%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().`,r),typeof e.componentWillRecieveProps==`function`&&a(`%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?`,r),typeof e.UNSAFE_componentWillRecieveProps==`function`&&a(`%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?`,r);var i=e.props!==n;e.props!==void 0&&i&&a("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",r,r),e.defaultProps&&a(`Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.`,r,r),typeof e.getSnapshotBeforeUpdate==`function`&&typeof e.componentDidUpdate!=`function`&&!ra.has(t)&&(ra.add(t),a(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,si(t))),typeof e.getDerivedStateFromProps==`function`&&a(`%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,r),typeof e.getDerivedStateFromError==`function`&&a(`%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,r),typeof t.getSnapshotBeforeUpdate==`function`&&a(`%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.`,r);var o=e.state;o&&(typeof o!=`object`||ut(o))&&a(`%s.state: must be set to an object or null`,r),typeof e.getChildContext==`function`&&typeof t.childContextTypes!=`object`&&a(`%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().`,r)}function _a(e,t){var n=t.state;if(typeof t.componentWillMount==`function`){if(t.componentWillMount.__suppressDeprecationWarning!==!0){var r=si(e)||`Unknown`;ta[r]||(i(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
69
|
-
|
|
70
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
71
|
-
|
|
72
|
-
Please update the following components: %s`,r),ta[r]=!0)}t.componentWillMount()}typeof t.UNSAFE_componentWillMount==`function`&&t.UNSAFE_componentWillMount(),n!==t.state&&(a(`%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,si(e)||`Component`),pa.enqueueReplaceState(t,t.state,null))}function va(e,t,n,r){if(e.queue!==null&&e.queue.length>0){var i=e.queue,a=e.replace;if(e.queue=null,e.replace=!1,a&&i.length===1)t.state=i[0];else{for(var o=a?i[0]:t.state,s=!0,c=+!!a;c<i.length;c++){var l=i[c],u=typeof l==`function`?l.call(t,o,n,r):l;u!=null&&(s?(s=!1,o=zr({},o,u)):zr(o,u))}t.state=o}}else e.queue=null}function ya(e,t,n,r){ga(e,t,n);var i=e.state===void 0?null:e.state;e.updater=pa,e.props=n,e.state=i;var o={queue:[],replace:!1};$i(e,o);var s=t.contextType;if(typeof s==`object`&&s?e.context=Zi(s):e.context=r,e.state===n){var c=si(t)||`Component`;ca.has(c)||(ca.add(c),a(`%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.`,c))}var l=t.getDerivedStateFromProps;typeof l==`function`&&(e.state=ma(e,t,l,i,n)),typeof t.getDerivedStateFromProps!=`function`&&typeof e.getSnapshotBeforeUpdate!=`function`&&(typeof e.UNSAFE_componentWillMount==`function`||typeof e.componentWillMount==`function`)&&(_a(t,e),va(o,e,n,r))}var ba={id:1,overflow:``};function xa(e){var t=e.overflow,n=e.id;return(n&~wa(n)).toString(32)+t}function Sa(e,t,n){var r=e.id,i=e.overflow,a=Ca(r)-1,o=r&~(1<<a),s=n+1,c=Ca(t)+a;if(c>30){var l=a-a%5,u=(o&(1<<l)-1).toString(32),d=o>>l,f=a-l,p=Ca(t)+f,m=s<<f|d,h=u+i;return{id:1<<p|m,overflow:h}}else{var g=s<<a|o,_=i;return{id:1<<c|g,overflow:_}}}function Ca(e){return 32-Ta(e)}function wa(e){return 1<<Ca(e)-1}var Ta=Math.clz32?Math.clz32:Oa,Ea=Math.log,Da=Math.LN2;function Oa(e){var t=e>>>0;return t===0?32:31-(Ea(t)/Da|0)|0}function ka(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Aa=typeof Object.is==`function`?Object.is:ka,ja=null,Ma=null,Na=null,Pa=null,Fa=!1,Ia=!1,La=0,Ra=null,za=0,Ba=25,Va=!1,Ha;function Ua(){if(ja===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
73
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
74
|
-
2. You might be breaking the Rules of Hooks
|
|
75
|
-
3. You might have more than one copy of React in the same app
|
|
76
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Va&&a(`Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks`),ja}function Wa(e,t){if(t===null)return a(`%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`,Ha),!1;e.length!==t.length&&a(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
77
|
-
|
|
78
|
-
Previous: %s
|
|
79
|
-
Incoming: %s`,Ha,`[`+e.join(`, `)+`]`,`[`+t.join(`, `)+`]`);for(var n=0;n<t.length&&n<e.length;n++)if(!Aa(e[n],t[n]))return!1;return!0}function Ga(){if(za>0)throw Error(`Rendered more hooks than during the previous render`);return{memoizedState:null,queue:null,next:null}}function Ka(){return Pa===null?Na===null?(Fa=!1,Na=Pa=Ga()):(Fa=!0,Pa=Na):Pa.next===null?(Fa=!1,Pa=Pa.next=Ga()):(Fa=!0,Pa=Pa.next),Pa}function qa(e,t){ja=t,Ma=e,Va=!1,La=0}function Ja(e,t,n,r){for(;Ia;)Ia=!1,La=0,za+=1,Pa=null,n=e(t,r);return Xa(),n}function Ya(){return La!==0}function Xa(){Va=!1,ja=null,Ma=null,Ia=!1,Na=null,za=0,Ra=null,Pa=null}function Za(e){return Va&&a(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`),Zi(e)}function Qa(e){return Ha=`useContext`,Ua(),Zi(e)}function $a(e,t){return typeof t==`function`?t(e):t}function eo(e){return Ha=`useState`,to($a,e)}function to(e,t,n){if(e!==$a&&(Ha=`useReducer`),ja=Ua(),Pa=Ka(),Fa){var r=Pa.queue,i=r.dispatch;if(Ra!==null){var a=Ra.get(r);if(a!==void 0){Ra.delete(r);var o=Pa.memoizedState,s=a;do{var c=s.action;Va=!0,o=e(o,c),Va=!1,s=s.next}while(s!==null);return Pa.memoizedState=o,[o,i]}}return[Pa.memoizedState,i]}else{Va=!0;var l=e===$a?typeof t==`function`?t():t:n===void 0?t:n(t);Va=!1,Pa.memoizedState=l;var u=Pa.queue={last:null,dispatch:null},d=u.dispatch=ao.bind(null,ja,u);return[Pa.memoizedState,d]}}function no(e,t){ja=Ua(),Pa=Ka();var n=t===void 0?null:t;if(Pa!==null){var r=Pa.memoizedState;if(r!==null&&n!==null){var i=r[1];if(Wa(n,i))return r[0]}}Va=!0;var a=e();return Va=!1,Pa.memoizedState=[a,n],a}function ro(e){ja=Ua(),Pa=Ka();var t=Pa.memoizedState;if(t===null){var n={current:e};return Object.seal(n),Pa.memoizedState=n,n}else return t}function io(e,t){Ha=`useLayoutEffect`,a(`useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.`)}function ao(e,t,n){if(za>=Ba)throw Error(`Too many re-renders. React limits the number of renders to prevent an infinite loop.`);if(e===ja){Ia=!0;var r={action:n,next:null};Ra===null&&(Ra=new Map);var i=Ra.get(t);if(i===void 0)Ra.set(t,r);else{for(var a=i;a.next!==null;)a=a.next;a.next=r}}}function oo(e,t){return no(function(){return e},t)}function so(e,t,n){return Ua(),t(e._source)}function co(e,t,n){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);return n()}function lo(e){return Ua(),e}function uo(){throw Error(`startTransition cannot be called during server rendering.`)}function fo(){return Ua(),[!1,uo]}function po(){var e=xa(Ma.treeContext),t=go;if(t===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component.`);return Nt(t,e,La++)}function mo(){}var ho={readContext:Za,useContext:Qa,useMemo:no,useReducer:to,useRef:ro,useState:eo,useInsertionEffect:mo,useLayoutEffect:io,useCallback:oo,useImperativeHandle:mo,useEffect:mo,useDebugValue:mo,useDeferredValue:lo,useTransition:fo,useId:po,useMutableSource:so,useSyncExternalStore:co},go=null;function _o(e){go=e}function vo(e){try{var t=``,n=e;do{switch(n.tag){case 0:t+=xi(n.type,null,null);break;case 1:t+=Ei(n.type,null,null);break;case 2:t+=Ti(n.type,null,null);break}n=n.parent}while(n);return t}catch(e){return`
|
|
80
|
-
Error generating stack: `+e.message+`
|
|
81
|
-
`+e.stack}}var yo=r.ReactCurrentDispatcher,bo=r.ReactDebugCurrentFrame,xo=0,So=1,Co=2,wo=3,To=4,Eo=0,Do=1,Oo=2,ko=12800;function Ao(e){return console.error(e),null}function jo(){}function Mo(e,t,n,r,i,a,o,s,c){var l=[],u=new Set,d={destination:null,responseState:t,progressiveChunkSize:r===void 0?ko:r,status:Eo,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:l,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:i===void 0?Ao:i,onAllReady:a===void 0?jo:a,onShellReady:o===void 0?jo:o,onShellError:s===void 0?jo:s,onFatalError:c===void 0?jo:c},f=Io(d,0,null,n,!1,!1);f.parentFlushed=!0;var p=Fo(d,e,null,f,u,Pi,Ri,ba);return l.push(p),d}function No(e,t){var n=e.pingedTasks;n.push(t),n.length===1&&s(function(){return ks(e)})}function Po(e,t){return{id:jt,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:t,errorDigest:null}}function Fo(e,t,n,r,i,a,o,s){e.allPendingTasks++,n===null?e.pendingRootTasks++:n.pendingTasks++;var c={node:t,ping:function(){return No(e,c)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:a,context:o,treeContext:s};return c.componentStack=null,i.add(c),c}function Io(e,t,n,r,i,a){return{status:xo,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:a}}var Lo=null;function Ro(){return Lo===null||Lo.componentStack===null?``:vo(Lo.componentStack)}function zo(e,t){e.componentStack={tag:0,parent:e.componentStack,type:t}}function Bo(e,t){e.componentStack={tag:1,parent:e.componentStack,type:t}}function Vo(e,t){e.componentStack={tag:2,parent:e.componentStack,type:t}}function Ho(e){e.componentStack===null?a(`Unexpectedly popped too many stack frames. This is a bug in React.`):e.componentStack=e.componentStack.parent}var Uo=null;function Wo(e,t){var n=typeof t==`string`?t:t&&typeof t.message==`string`?t.message:String(t),r=Uo||Ro();Uo=null,e.errorMessage=n,e.errorComponentStack=r}function Go(e,t){var n=e.onError(t);if(n!=null&&typeof n!=`string`)throw Error(`onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "`+typeof n+`" instead`);return n}function Ko(e,t){var n=e.onShellError;n(t);var r=e.onFatalError;r(t),e.destination===null?(e.status=Do,e.fatalError=t):(e.status=Oo,y(e.destination,t))}function qo(e,t,n){zo(t,`Suspense`);var r=t.blockedBoundary,i=t.blockedSegment,a=n.fallback,o=n.children,s=new Set,c=Po(e,s),l=i.chunks.length,u=Io(e,l,c,i.formatContext,!1,!1);i.children.push(u),i.lastPushedText=!1;var d=Io(e,0,null,i.formatContext,!1,!1);d.parentFlushed=!0,t.blockedBoundary=c,t.blockedSegment=d;try{if(Ss(e,t,o),Lt(d.chunks,e.responseState,d.lastPushedText,d.textEmbedded),d.status=So,Es(c,d),c.pendingTasks===0){Ho(t);return}}catch(t){d.status=To,c.forceClientRender=!0,c.errorDigest=Go(e,t),Wo(c,t)}finally{t.blockedBoundary=r,t.blockedSegment=i}var f=Fo(e,a,r,u,s,t.legacyContext,t.context,t.treeContext);f.componentStack=t.componentStack,e.pingedTasks.push(f),Ho(t)}function Jo(e,t,n,r){zo(t,n);var i=t.blockedSegment,a=wn(i.chunks,n,r,e.responseState,i.formatContext);i.lastPushedText=!1;var o=i.formatContext;i.formatContext=At(o,n,r),Ss(e,t,a),i.formatContext=o,Dn(i.chunks,n),i.lastPushedText=!1,Ho(t)}function Yo(e){return e.prototype&&e.prototype.isReactComponent}function Xo(e,t,n,r,i){return qa(t,{}),Ja(n,r,n(r,i),i)}function Zo(e,t,n,r,i){var o=n.render();n.props!==i&&(rs||a("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",si(r)||`a component`),rs=!0);var s=r.childContextTypes;if(s!=null){var c=t.legacyContext;t.legacyContext=Ii(n,r,c,s),vs(e,t,o),t.legacyContext=c;return}vs(e,t,o)}function Qo(e,t,n,r){Vo(t,n);var i=Fi(n,t.legacyContext),a=ha(n,r,i);ya(a,n,r,i),Zo(e,t,a,n,r),Ho(t)}var $o={},es={},ts={},ns={},rs=!1,is={},as=!1,os=!1,ss=!1;function cs(e,t,n,r){var i=Fi(n,t.legacyContext);if(Bo(t,n),n.prototype&&typeof n.prototype.render==`function`){var o=si(n)||`Unknown`;$o[o]||(a(`The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.`,o,o),$o[o]=!0)}var s=Xo(e,t,n,r,i),c=Ya();if(typeof s==`object`&&s&&typeof s.render==`function`&&s.$$typeof===void 0){var l=si(n)||`Unknown`;es[l]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",l,l,l),es[l]=!0)}if(typeof s==`object`&&s&&typeof s.render==`function`&&s.$$typeof===void 0){var u=si(n)||`Unknown`;es[u]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",u,u,u),es[u]=!0),ya(s,n,r,i),Zo(e,t,s,n,r)}else if(ls(n),c){var d=t.treeContext;t.treeContext=Sa(d,1,0);try{vs(e,t,s)}finally{t.treeContext=d}}else vs(e,t,s);Ho(t)}function ls(e){if(e&&e.childContextTypes&&a(`%s(...): childContextTypes cannot be defined on a function component.`,e.displayName||e.name||`Component`),e.defaultProps!==void 0){var t=si(e)||`Unknown`;is[t]||(a(`%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.`,t),is[t]=!0)}if(typeof e.getDerivedStateFromProps==`function`){var n=si(e)||`Unknown`;ns[n]||(a(`%s: Function components do not support getDerivedStateFromProps.`,n),ns[n]=!0)}if(typeof e.contextType==`object`&&e.contextType!==null){var r=si(e)||`Unknown`;ts[r]||(a(`%s: Function components do not support contextType.`,r),ts[r]=!0)}}function us(e,t){if(e&&e.defaultProps){var n=zr({},t),r=e.defaultProps;for(var i in r)n[i]===void 0&&(n[i]=r[i]);return n}return t}function ds(e,t,n,r,i){Bo(t,n.render);var a=Xo(e,t,n.render,r,i);if(Ya()){var o=t.treeContext;t.treeContext=Sa(o,1,0);try{vs(e,t,a)}finally{t.treeContext=o}}else vs(e,t,a);Ho(t)}function fs(e,t,n,r,i){var a=n.type;gs(e,t,a,us(a,r),i)}function ps(e,t,n,r){n._context===void 0?n!==n.Consumer&&(ss||(ss=!0,a(`Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?`))):n=n._context;var i=r.children;typeof i!=`function`&&a(`A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.`),vs(e,t,i(Zi(n)))}function ms(e,t,n,r){var i=n._context,o=r.value,s=r.children,c=t.context;t.context=Ji(i,o),vs(e,t,s),t.context=Yi(i),c!==t.context&&a(`Popping the context provider did not return back to the original snapshot. This is a bug in React.`)}function hs(e,t,n,r,i){zo(t,`Lazy`);var a=n._payload,o=n._init,s=o(a);gs(e,t,s,us(s,r),i),Ho(t)}function gs(e,t,n,r,i){if(typeof n==`function`)if(Yo(n)){Qo(e,t,n,r);return}else{cs(e,t,n,r);return}if(typeof n==`string`){Jo(e,t,n,r);return}switch(n){case ei:case $r:case Ur:case Wr:case Hr:vs(e,t,r.children);return;case Yr:zo(t,`SuspenseList`),vs(e,t,r.children),Ho(t);return;case Qr:throw Error(`ReactDOMServer does not yet support scope components.`);case Jr:qo(e,t,r);return}if(typeof n==`object`&&n)switch(n.$$typeof){case qr:ds(e,t,n,r,i);return;case Xr:fs(e,t,n,r,i);return;case Gr:ms(e,t,n,r);return;case Kr:ps(e,t,n,r);return;case Zr:hs(e,t,n,r);return}var a=``;throw(n===void 0||typeof n==`object`&&n&&Object.keys(n).length===0)&&(a+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) `+(`but got: `+(n==null?n:typeof n)+`.`+a))}function _s(e,t){typeof Symbol==`function`&&e[Symbol.toStringTag]===`Generator`&&(as||a("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),as=!0),e.entries===t&&(os||a(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),os=!0)}function vs(e,t,n){try{return ys(e,t,n)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`||(Uo=Uo===null?Ro():Uo),e}}function ys(e,t,n){if(t.node=n,typeof n==`object`&&n){switch(n.$$typeof){case Br:var r=n,i=r.type,o=r.props,s=r.ref;gs(e,t,i,o,s);return;case Vr:throw Error(`Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.`);case Zr:var c=n,l=c._payload,u=c._init,d;try{d=u(l)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`&&zo(t,`Lazy`),e}vs(e,t,d);return}if(ut(n)){bs(e,t,n);return}var f=ii(n);if(f){_s(n,f);var p=f.call(n);if(p){var m=p.next();if(!m.done){var h=[];do h.push(m.value),m=p.next();while(!m.done);bs(e,t,h);return}return}}var g=Object.prototype.toString.call(n);throw Error(`Objects are not valid as a React child (found: `+(g===`[object Object]`?`object with keys {`+Object.keys(n).join(`, `)+`}`:g)+`). If you meant to render a collection of children, use an array instead.`)}if(typeof n==`string`){var _=t.blockedSegment;_.lastPushedText=It(t.blockedSegment.chunks,n,e.responseState,_.lastPushedText);return}if(typeof n==`number`){var v=t.blockedSegment;v.lastPushedText=It(t.blockedSegment.chunks,``+n,e.responseState,v.lastPushedText);return}typeof n==`function`&&a(`Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.`)}function bs(e,t,n){for(var r=n.length,i=0;i<r;i++){var a=t.treeContext;t.treeContext=Sa(a,r,i);try{Ss(e,t,n[i])}finally{t.treeContext=a}}}function xs(e,t,n){var r=t.blockedSegment,i=r.chunks.length,a=Io(e,i,null,r.formatContext,r.lastPushedText,!0);r.children.push(a),r.lastPushedText=!1;var o=Fo(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext);t.componentStack!==null&&(o.componentStack=t.componentStack.parent);var s=o.ping;n.then(s,s)}function Ss(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,a=t.context,o=null;o=t.componentStack;try{return vs(e,t,n)}catch(n){if(Xa(),typeof n==`object`&&n&&typeof n.then==`function`){xs(e,t,n),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=a,qi(a),t.componentStack=o;return}else throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=a,qi(a),t.componentStack=o,n}}function Cs(e,t,n,r){var i=Go(e,r);if(t===null?Ko(e,r):(t.pendingTasks--,t.forceClientRender||(t.forceClientRender=!0,t.errorDigest=i,Wo(t,r),t.parentFlushed&&e.clientRenderedBoundaries.push(t))),e.allPendingTasks--,e.allPendingTasks===0){var a=e.onAllReady;a()}}function ws(e){var t=this,n=e.blockedBoundary,r=e.blockedSegment;r.status=wo,Ds(t,n,r)}function Ts(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(i.status=wo,r===null)t.allPendingTasks--,t.status!==Oo&&(t.status=Oo,t.destination!==null&&h(t.destination));else{if(r.pendingTasks--,!r.forceClientRender){r.forceClientRender=!0;var a=n===void 0?Error(`The render was aborted by the server without a reason.`):n;r.errorDigest=t.onError(a);var o=`The server did not finish this Suspense boundary: `;a=a&&typeof a.message==`string`?o+a.message:o+String(a);var s=Lo;Lo=e;try{Wo(r,a)}finally{Lo=s}r.parentFlushed&&t.clientRenderedBoundaries.push(r)}if(r.fallbackAbortableTasks.forEach(function(e){return Ts(e,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0){var c=t.onAllReady;c()}}}function Es(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status===So&&Es(e,n)}else e.completedSegments.push(t)}function Ds(e,t,n){if(t===null){if(n.parentFlushed){if(e.completedRootSegment!==null)throw Error(`There can only be one root segment. This is a bug in React.`);e.completedRootSegment=n}if(e.pendingRootTasks--,e.pendingRootTasks===0){e.onShellError=jo;var r=e.onShellReady;r()}}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(n.parentFlushed&&n.status===So&&Es(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(ws,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&n.status===So&&(Es(t,n),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));if(e.allPendingTasks--,e.allPendingTasks===0){var i=e.onAllReady;i()}}function Os(e,t){var n=t.blockedSegment;if(n.status===xo){qi(t.context);var r=null;r=Lo,Lo=t;try{vs(e,t,t.node),Lt(n.chunks,e.responseState,n.lastPushedText,n.textEmbedded),t.abortSet.delete(t),n.status=So,Ds(e,t.blockedBoundary,n)}catch(r){if(Xa(),typeof r==`object`&&r&&typeof r.then==`function`){var i=t.ping;r.then(i,i)}else t.abortSet.delete(t),n.status=To,Cs(e,t.blockedBoundary,n,r)}finally{Lo=r}}}function ks(e){if(e.status!==Oo){var t=Xi(),n=yo.current;yo.current=ho;var r=bo.getCurrentStack;bo.getCurrentStack=Ro;var i=go;_o(e.responseState);try{var a=e.pingedTasks,o;for(o=0;o<a.length;o++){var s=a[o];Os(e,s)}a.splice(0,o),e.destination!==null&&Ls(e,e.destination)}catch(t){Go(e,t),Ko(e,t)}finally{_o(i),yo.current=n,bo.getCurrentStack=r,n===ho&&qi(t)}}}function As(e,t,n){switch(n.parentFlushed=!0,n.status){case xo:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,jn(t,e.responseState,r);case So:n.status=Co;for(var i=!0,a=n.chunks,o=0,s=n.children,c=0;c<s.length;c++){for(var l=s[c];o<l.index;o++)f(t,a[o]);i=js(e,t,l)}for(;o<a.length-1;o++)f(t,a[o]);return o<a.length&&(i=p(t,a[o])),i;default:throw Error(`Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.`)}}function js(e,t,n){var r=n.boundary;if(r===null)return As(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return Gn(t,e.responseState,r.errorDigest,r.errorMessage,r.errorComponentStack),As(e,t,n),Jn(t,e.responseState);if(r.pendingTasks>0){r.rootSegmentID=e.nextSegmentId++,r.completedSegments.length>0&&e.partialBoundaries.push(r);var i=r.id=Mt(e.responseState);return Wn(t,e.responseState,i),As(e,t,n),qn(t,e.responseState)}else if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),Wn(t,e.responseState,r.id),As(e,t,n),qn(t,e.responseState);else{Un(t,e.responseState);var a=r.completedSegments;if(a.length!==1)throw Error(`A previously unvisited boundary must have exactly one root segment. This is a bug in React.`);var o=a[0];return js(e,t,o),Kn(t,e.responseState)}}function Ms(e,t,n){return Ir(t,e.responseState,n.id,n.errorDigest,n.errorMessage,n.errorComponentStack)}function Ns(e,t,n){return gr(t,e.responseState,n.formatContext,n.id),js(e,t,n),_r(t,n.formatContext)}function Ps(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++){var a=r[i];Is(e,t,n,a)}return r.length=0,Ar(t,e.responseState,n.id,n.rootSegmentID)}function Fs(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++){var a=r[i];if(!Is(e,t,n,a))return i++,r.splice(0,i),!1}return r.splice(0,i),!0}function Is(e,t,n,r){if(r.status===Co)return!0;var i=r.id;if(i===-1){if((r.id=n.rootSegmentID)===-1)throw Error(`A root segment ID must have been assigned by now. This is a bug in React.`);return Ns(e,t,r)}else return Ns(e,t,r),Tr(t,e.responseState,i)}function Ls(e,t){d();try{var n=e.completedRootSegment;n!==null&&e.pendingRootTasks===0&&(js(e,t,n),e.completedRootSegment=null,On(t,e.responseState));var r=e.clientRenderedBoundaries,i;for(i=0;i<r.length;i++){var o=r[i];if(!Ms(e,t,o)){e.destination=null,i++,r.splice(0,i);return}}r.splice(0,i);var s=e.completedBoundaries;for(i=0;i<s.length;i++){var c=s[i];if(!Ps(e,t,c)){e.destination=null,i++,s.splice(0,i);return}}s.splice(0,i),m(t),d(t);var l=e.partialBoundaries;for(i=0;i<l.length;i++){var u=l[i];if(!Fs(e,t,u)){e.destination=null,i++,l.splice(0,i);return}}l.splice(0,i);var f=e.completedBoundaries;for(i=0;i<f.length;i++){var p=f[i];if(!Ps(e,t,p)){e.destination=null,i++,f.splice(0,i);return}}f.splice(0,i)}finally{m(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&(e.abortableTasks.size!==0&&a(`There was still abortable task at the root when we closed. This is a bug in React.`),h(t))}}function Rs(e){s(function(){return ks(e)})}function zs(e,t){if(e.status===Do){e.status=Oo,y(t,e.fatalError);return}if(e.status!==Oo&&e.destination===null){e.destination=t;try{Ls(e,t)}catch(t){Go(e,t),Ko(e,t)}}}function Bs(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return Ts(n,e,t)}),n.clear(),e.destination!==null&&Ls(e,e.destination)}catch(t){Go(e,t),Ko(e,t)}}function Vs(e,t){return new Promise(function(n,r){var i,a,o=new Promise(function(e,t){a=e,i=t});function s(){var e=new ReadableStream({type:`bytes`,pull:function(e){zs(l,e)},cancel:function(e){Bs(l)}},{highWaterMark:0});e.allReady=o,n(e)}function c(e){o.catch(function(){}),r(e)}var l=Mo(e,yt(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),kt(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,s,c,i);if(t&&t.signal){var u=t.signal,d=function(){Bs(l,u.reason),u.removeEventListener(`abort`,d)};u.addEventListener(`abort`,d)}Rs(l)})}e.renderToReadableStream=Vs,e.version=n})()})),he=e.t((e=>{var t,n;process.env.NODE_ENV===`production`?(t=A(),n=fe()):(t=pe(),n=me()),e.version=t.version,e.renderToString=t.renderToString,e.renderToStaticMarkup=t.renderToStaticMarkup,e.renderToNodeStream=t.renderToNodeStream,e.renderToStaticNodeStream=t.renderToStaticNodeStream,e.renderToReadableStream=n.renderToReadableStream})),ge=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),_e=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ve=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),ye=e=>{let t=ve(e);return t.charAt(0).toUpperCase()+t.slice(1)},be={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`},xe=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Se=(0,f.createContext)({}),Ce=()=>(0,f.useContext)(Se),we=(0,f.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:p=`currentColor`,className:m=``}=Ce()??{},h=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,f.createElement)(`svg`,{ref:c,...be,width:t??l??be.width,height:t??l??be.height,stroke:e??p,strokeWidth:h,className:ge(`lucide`,m,i),...!a&&!xe(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,f.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),j=(e,t)=>{let n=(0,f.forwardRef)(({className:n,...r},i)=>(0,f.createElement)(we,{ref:i,iconNode:t,className:ge(`lucide-${_e(ye(e))}`,`lucide-${e}`,n),...r}));return n.displayName=ye(e),n},Te=j(`bold`,[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]),Ee=j(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),De=j(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Oe=j(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),ke=j(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Ae=j(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),je=j(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),Me=j(`copy`,[[`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`}]]),Ne=j(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),Pe=j(`heading-1`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`m17 12 3-2v8`,key:`1hhhft`}]]),Fe=j(`heading-2`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]),Ie=j(`heading-3`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2`,key:`68ncm8`}],[`path`,{d:`M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2`,key:`1ejuhz`}]]),Le=j(`heading-4`,[[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17 10v3a1 1 0 0 0 1 1h3`,key:`tj5zdr`}],[`path`,{d:`M21 10v8`,key:`1kdml4`}],[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}]]),Re=j(`heading-5`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17 13v-3h4`,key:`1nvgqp`}],[`path`,{d:`M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17`,key:`2nebdn`}]]),ze=j(`heading-6`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`circle`,{cx:`19`,cy:`16`,r:`2`,key:`15mx69`}],[`path`,{d:`M20 10c-2 2-3 3.5-3 6`,key:`f35dl0`}]]),Be=j(`image-off`,[[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}],[`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`,key:`1bzlo9`}],[`line`,{x1:`13.5`,x2:`6`,y1:`13.5`,y2:`21`,key:`1q0aeu`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`15`,key:`5mozeu`}],[`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`,key:`mmje98`}],[`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`,key:`43el77`}]]),Ve=j(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),He=j(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Ue=j(`italic`,[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]),We=j(`link-2`,[[`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`}]]),Ge=j(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),Ke=j(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),qe=j(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),Je=j(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Ye=j(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Xe=j(`sigma`,[[`path`,{d:`M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2`,key:`wuwx1p`}]]),Ze=j(`square-code`,[[`path`,{d:`m10 9-3 3 3 3`,key:`1oro0q`}],[`path`,{d:`m14 15 3-3-3-3`,key:`bz13h7`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),Qe=j(`strikethrough`,[[`path`,{d:`M16 4H9a3 3 0 0 0-2.83 4`,key:`43sutm`}],[`path`,{d:`M14 12a4 4 0 0 1 0 8H6`,key:`nlfj13`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]),$e=j(`table`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),et=j(`text-align-center`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M17 12H7`,key:`16if0g`}],[`path`,{d:`M19 19H5`,key:`vjpgq2`}]]),tt=j(`text-align-end`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M21 19H7`,key:`4cu937`}]]),nt=j(`text-align-start`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]]),rt=j(`text-quote`,[[`path`,{d:`M17 5H3`,key:`1cn7zz`}],[`path`,{d:`M21 12H8`,key:`scolzb`}],[`path`,{d:`M21 19H8`,key:`13qgcb`}],[`path`,{d:`M3 12v7`,key:`1ri8j3`}]]),it=j(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),at=j(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),ot=j(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),M=e=>typeof e==`string`,st=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},ct=e=>e==null?``:String(e),lt=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},ut=/###/g,dt=e=>e&&e.includes(`###`)?e.replace(ut,`.`):e,ft=e=>!e||M(e),pt=(e,t,n)=>{let r=M(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(ft(e))return{};let t=dt(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return ft(e)?{}:{obj:e,k:dt(r[i])}},mt=(e,t,n)=>{let{obj:r,k:i}=pt(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=pt(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=pt(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},ht=(e,t,n,r)=>{let{obj:i,k:a}=pt(e,t,Object);i[a]=i[a]||[],i[a].push(n)},gt=(e,t)=>{let{obj:n,k:r}=pt(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},_t=(e,t,n)=>{let r=gt(e,n);return r===void 0?gt(t,n):r},vt=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?M(e[r])||e[r]instanceof String||M(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):vt(e[r],t[r],n):e[r]=t[r]);return e},yt=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),bt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},xt=e=>M(e)?e.replace(/[&<>"'\/]/g,e=>bt[e]):e,St=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},Ct=[` `,`,`,`?`,`!`,`;`],wt=new St(20),Tt=(e,t,n)=>{t||=``,n||=``;let r=Ct.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=wt.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Et=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},Dt=e=>e?.replace(/_/g,`-`),Ot={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},kt=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||Ot,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>M(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),M(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},At=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},jt=class extends At{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):M(n)&&i?o.push(...n.split(i)):o.push(n)));let s=gt(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!M(n)?s:Et(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),mt(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(M(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=gt(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?vt(s,n,i):s={...s,...n},mt(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},Mt={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},Nt=Symbol(`i18next/PATH_KEY`);function Pt(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===Nt?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Ft(e,t){let{[Nt]:n}=e(Pt()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var It=e=>!M(e)&&typeof e!=`boolean`&&typeof e!=`number`,Lt=class e extends At{constructor(e,t={}){super(),lt([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=kt.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=It(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Tt(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:M(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:M(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=Ft(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?Ft(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!M(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let ee=It(E),te=Object.prototype.toString.apply(E);if(y&&E&&ee&&!_.includes(te)&&!(M(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:It(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&M(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=M(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!M(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=M(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=Mt.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return M(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?Ft(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!M(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(M(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!M(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},Rt=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=kt.create(`languageUtils`)}getScriptPartFromCode(e){if(e=Dt(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Dt(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(M(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),M(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return M(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):M(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},zt={zero:0,one:1,two:2,few:3,many:4,other:5},Bt={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},Vt=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=kt.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=Dt(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),Bt;if(!e.match(/-|_/))return Bt;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>zt[e]-zt[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},Ht=(e,t,n,r=`.`,i=!0)=>{let a=_t(e,t,n);return!a&&i&&M(n)&&(a=Et(e,n,r),a===void 0&&(a=Et(t,n,r))),a},Ut=e=>e.replace(/\$/g,`$$$$`),Wt=class{constructor(e={}){this.logger=kt.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?xt:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?yt(i):a||`{{`,this.suffix=o?yt(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?yt(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?yt(l):``,this.nestingPrefix=d?yt(d):f||yt(`$t(`),this.nestingSuffix=p?yt(p):m||yt(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=Ht(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(Ht(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Ut(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Ut(this.escape(e)):Ut(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=M(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !M(a)&&!this.useRawValueToEscape&&(a=ct(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${yt(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!M(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!M(i))return i;M(i)||(i=ct(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},Gt=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Kt=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Dt(r),i),t[o]=s),s(n)}},qt=e=>(t,n,r)=>e(Dt(n),r)(t),Jt=class{constructor(e={}){this.logger=kt.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Kt:qt;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Kt(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&!i[0].includes(`)`)&&i.find(e=>e.includes(`)`))){let e=i.findIndex(e=>e.includes(`)`));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=Gt(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},Yt=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Xt=class extends At{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=kt.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{ht(n.loaded,[i],a),Yt(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();M(e)&&(e=this.languageUtils.toResolveHierarchy(e)),M(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Zt=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),M(e[1])&&(t.defaultValue=e[1]),M(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Qt=e=>(M(e.ns)&&(e.ns=[e.ns]),M(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),M(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),$t=()=>{},en=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},tn=class e extends At{constructor(e={},t){if(super(),this.options=Qt(e),this.services={},this.logger=kt,this.modules={external:[]},en(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(M(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=Zt();this.options={...n,...this.options,...Qt(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?kt.init(r(this.modules.logger),this.options):kt.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Jt;let t=new Rt(this.options);this.store=new jt(this.options.resources,this.options);let n=this.services;n.logger=kt,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new Vt(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new Wt(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Xt(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new Lt(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=$t,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=st(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=$t){let n=t,r=M(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=st();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=$t,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&Mt.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=st();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=M(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(M(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=Ft(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=Ft(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=Ft(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return M(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=st();return this.options.ns?(M(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=st();M(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new Rt(Zt());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=$t){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new jt(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...Zt().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new Wt(n)}return a.translator=new Lt(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();tn.createInstance,tn.dir,tn.init,tn.loadResources,tn.reloadResources,tn.use,tn.changeLanguage,tn.getFixedT,tn.t,tn.exists,tn.setDefaultNamespace,tn.hasLoadedNamespace,tn.loadNamespaces,tn.loadLanguages;var nn={placeholder:`Type / to open the command menu...`,initError:`Editor initialization failed. Please refresh the page and try again.`,editorAriaLabel:`Markdown editor`,mathBlockSourceAriaLabel:`Math block source`,mathBlockCopyAriaLabel:`Copy math source`,mathBlockDeleteAriaLabel:`Delete math block`,imageDeleteAriaLabel:`Delete image`,tableDeleteAriaLabel:`Delete table`,tableMoreAriaLabel:`More table actions`,tableAlignLeftAriaLabel:`Align current column left`,tableAlignCenterAriaLabel:`Align current column center`,tableAlignRightAriaLabel:`Align current column right`,tableInsertRowAboveLabel:`Insert row above`,tableInsertRowBelowLabel:`Insert row below`,tableInsertColumnLeftLabel:`Insert column left`,tableInsertColumnRightLabel:`Insert column right`,tableDeleteRowLabel:`Delete row`,tableDeleteColumnLabel:`Delete column`,mathRenderError:`Formula rendering failed. Please check the formula syntax.`,imageUploadDialogTitle:`Insert image`,imageUploadDropLabel:`Drop an image here, or choose a file`,imageUploadPickFileLabel:`Choose file`,imageUploadFileTab:`Upload file`,imageUploadUrlTab:`Image URL`,imageUploadUrlPlaceholder:`Paste image URL`,imageUploadInsertUrlLabel:`Insert URL`,imageUploadConfirmLabel:`Confirm`,imageUploadUploadingLabel:`Uploading...`,imageUploadCancelLabel:`Cancel`,imageUploadLoadFailed:`Image failed to load`,imageUploadReselectHint:`Click or drag to reselect`,imageUploadSupportsAndMax:`Supports image files, max {size}`,imageUploadFileTooLarge:`The image file is too large.`,imageUploadFileSizeExceeded:`Image size must not exceed {size}`,imageUploadInvalidType:`Please choose an image file.`,imageUploadFailed:`Image upload failed. Please try again.`,imageUploadFileReadFailed:`File read failed. Please try again.`,imageUploadInvalidUrl:`Please enter a valid image URL.`,imageUploadUrlRequired:`Please enter an image URL.`,imageUploadSelectOrEnterImage:`Please select an image or enter an image URL.`,imageUploadUploadingWait:`Image is uploading, please wait.`,selectionTooltipStrongTitle:`Bold`,selectionTooltipEmTitle:`Italic`,selectionTooltipStrikeTitle:`Strikethrough`,selectionTooltipInlineCodeTitle:`Inline code`,selectionTooltipLinkTitle:`Link`,selectionLinkInputPlaceholder:`Type or paste a link`,selectionLinkSaveAriaLabel:`Save link`,selectionLinkRemoveAriaLabel:`Remove link`,codeBlockLanguageSearchPlaceholder:`Search languages`,codeBlockLanguagePlainText:`text`,codeBlockCopyAriaLabel:`Copy code block`,codeBlockDeleteAriaLabel:`Delete code block`},rn={placeholder:`请输入 / 打开命令菜单...`,initError:`编辑器初始化失败,请刷新页面后重试。`,editorAriaLabel:`Markdown 编辑器`,mathBlockSourceAriaLabel:`公式块源码`,mathBlockCopyAriaLabel:`复制公式源码`,mathBlockDeleteAriaLabel:`删除公式块`,imageDeleteAriaLabel:`删除图片`,tableDeleteAriaLabel:`删除表格`,tableMoreAriaLabel:`更多表格操作`,tableAlignLeftAriaLabel:`当前列左对齐`,tableAlignCenterAriaLabel:`当前列居中对齐`,tableAlignRightAriaLabel:`当前列右对齐`,tableInsertRowAboveLabel:`上方插入行`,tableInsertRowBelowLabel:`下方插入行`,tableInsertColumnLeftLabel:`左侧插入列`,tableInsertColumnRightLabel:`右侧插入列`,tableDeleteRowLabel:`删除该行`,tableDeleteColumnLabel:`删除该列`,mathRenderError:`公式渲染失败,请检查公式语法。`,imageUploadDialogTitle:`插入图片`,imageUploadDropLabel:`拖拽图片到这里,或选择文件`,imageUploadPickFileLabel:`选择文件`,imageUploadFileTab:`上传文件`,imageUploadUrlTab:`图片链接`,imageUploadUrlPlaceholder:`粘贴图片链接`,imageUploadInsertUrlLabel:`插入链接`,imageUploadConfirmLabel:`确认`,imageUploadUploadingLabel:`上传中...`,imageUploadCancelLabel:`取消`,imageUploadLoadFailed:`图片加载失败`,imageUploadReselectHint:`点击或拖拽重新选择`,imageUploadSupportsAndMax:`支持图片文件,最大 {size}`,imageUploadFileTooLarge:`图片文件过大。`,imageUploadFileSizeExceeded:`图片大小不能超过 {size}`,imageUploadInvalidType:`请选择图片文件。`,imageUploadFailed:`图片上传失败,请重试。`,imageUploadFileReadFailed:`文件读取失败,请重试。`,imageUploadInvalidUrl:`请输入有效的图片链接。`,imageUploadUrlRequired:`请输入图片链接。`,imageUploadSelectOrEnterImage:`请选择图片或输入图片链接。`,imageUploadUploadingWait:`图片正在上传,请稍候。`,selectionTooltipStrongTitle:`加粗`,selectionTooltipEmTitle:`斜体`,selectionTooltipStrikeTitle:`删除线`,selectionTooltipInlineCodeTitle:`行内代码`,selectionTooltipLinkTitle:`链接`,selectionLinkInputPlaceholder:`输入或粘贴链接`,selectionLinkSaveAriaLabel:`保存链接`,selectionLinkRemoveAriaLabel:`移除链接`,codeBlockLanguageSearchPlaceholder:`搜索语言`,codeBlockLanguagePlainText:`text`,codeBlockCopyAriaLabel:`复制代码块`,codeBlockDeleteAriaLabel:`删除代码块`},an=`zh-CN`,on={"zh-CN":{translation:rn},"en-US":{translation:nn}},sn=tn.createInstance(),cn=!1,ln=()=>{cn||=(sn.init({resources:on,fallbackLng:an,lng:an,interpolation:{escapeValue:!1}}),!0)},un=(e=an,t,n)=>{ln();let r={...sn.getResourceBundle(e,`translation`),...t};return n!==void 0&&(r.placeholder=n),r},dn=/^\s*width\s*:\s*(\d{1,3})%\s*;?\s*$/i,fn=`img`,pn=e=>Math.min(100,Math.max(10,e)),mn=e=>`width: ${pn(Math.round(e))}%;`,hn=e=>{if(typeof e!=`string`)return null;let t=e.match(dn);if(!t)return null;let n=Number(t[1]);return Number.isFinite(n)?pn(n):null},gn=e=>{let t=hn(e);return t===null?``:mn(t)},_n=e=>typeof e==`string`?e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/</g,`<`).replace(/>/g,`>`):``,vn=e=>{if(typeof e!=`string`)return null;let t=document.createElement(`template`);t.innerHTML=e.trim();let n=t.content.firstElementChild;return!(n instanceof HTMLImageElement)||n.tagName.toLowerCase()!==fn?null:{src:n.getAttribute(`src`)??``,alt:n.getAttribute(`alt`)??``,title:n.getAttribute(`title`)??``,style:gn(n.getAttribute(`style`)??``)}},yn=e=>{let t=typeof e.title==`string`?e.title:``,n=t?` title="${_n(t)}"`:``;return`<img src="${_n(e.src)}" alt="${_n(e.alt)}"${n} style="${_n(e.style)}">`},bn=e=>t=>{let n=e(t);return{...n,attrs:{...n.attrs,style:{default:``,validate:`string`}},parseDOM:[{tag:`img[src]`,getAttrs:e=>{let t=e;return{src:t.getAttribute(`src`)??``,alt:t.getAttribute(`alt`)??``,title:t.getAttribute(`title`)??t.getAttribute(`alt`)??``,style:gn(t.getAttribute(`style`)??``)}}}],parseMarkdown:{match:e=>e.type===`image`||e.type===`html`&&vn(e.value)!==null,runner:(e,t,n)=>{if(t.type===`html`){let r=vn(t.value);r&&e.addNode(n,r);return}e.addNode(n,{src:String(t.url??``),alt:String(t.alt??``),title:String(t.title??``),style:``})}},toMarkdown:{match:e=>e.type.name===`image`,runner:(e,t)=>{let n=gn(t.attrs.style);if(n){e.addNode(`html`,void 0,yn({...t.attrs,style:n}));return}e.addNode(`image`,void 0,void 0,{title:t.attrs.title,url:t.attrs.src,alt:t.attrs.alt})}}}},xn=e=>{let t=e.get(s.t.key);e.set(s.t.key,bn(t))},Sn=he(),Cn=`image`,wn=`left`,Tn=`right`,En=(e=>(0,Sn.renderToStaticMarkup)((0,p.createElement)(e,{size:14,strokeWidth:2,"aria-hidden":`true`})))(it),Dn=e=>typeof e==`function`?e():null,On=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,kn=class{constructor(e,t,n,r){this.resizeState=null,this.handleDeleteClick=e=>{e.preventDefault(),e.stopPropagation(),On(this.view)&&this.deleteCurrentImage()},this.handleResizePointerDown=e=>{if(e.preventDefault(),e.stopPropagation(),!On(this.view))return;let t=e.currentTarget;if(!(t instanceof HTMLElement))return;let n=t.dataset.side===wn?wn:Tn,r=this.dom.parentElement;if(!r)return;let i=this.imageElement.getBoundingClientRect(),a=r.getBoundingClientRect();if(i.width<=0||a.width<=0)return;let o=pn(i.width/a.width*100);this.resizeState={side:n,startClientX:e.clientX,startWidth:i.width,containerWidth:a.width,widthPercent:o},this.dom.dataset.resizing=`true`,this.applyPreviewWidth(o),window.addEventListener(`pointermove`,this.handleResizePointerMove),window.addEventListener(`pointerup`,this.handleResizePointerUp),window.addEventListener(`pointercancel`,this.handleResizePointerUp)},this.handleResizePointerMove=e=>{if(!this.resizeState)return;e.preventDefault();let t=e.clientX-this.resizeState.startClientX,n=this.resizeState.side===wn?-t:t,r=pn((this.resizeState.startWidth+n)/this.resizeState.containerWidth*100);this.resizeState.widthPercent=r,this.applyPreviewWidth(r)},this.handleResizePointerUp=e=>{if(e.preventDefault(),!this.resizeState)return;let t=Math.round(this.resizeState.widthPercent);this.resizeState=null,delete this.dom.dataset.resizing,this.removeResizeWindowListeners(),this.commitImageWidth(t)},this.node=e,this.view=t,this.getPos=n,this.deleteAriaLabel=r.imageDeleteAriaLabel,this.dom=document.createElement(`span`),this.dom.dataset.type=Cn,this.dom.className=`zt-md-image`,this.updateEditableState(),this.imageElement=document.createElement(`img`),this.leftResizeHandle=this.createResizeHandle(wn),this.rightResizeHandle=this.createResizeHandle(Tn),this.actionsContainer=document.createElement(`span`),this.actionsContainer.className=`zt-md-image-actions`,this.deleteButton=document.createElement(`button`),this.deleteButton.type=`button`,this.deleteButton.className=`zt-md-image-action-button zt-md-image-action-button-danger`,this.deleteButton.setAttribute(`aria-label`,this.deleteAriaLabel),this.deleteButton.innerHTML=En,this.actionsContainer.appendChild(this.deleteButton),this.dom.append(this.imageElement,this.leftResizeHandle,this.rightResizeHandle,this.actionsContainer),this.syncFromNode(e),this.deleteButton.addEventListener(`click`,this.handleDeleteClick),this.leftResizeHandle.addEventListener(`pointerdown`,this.handleResizePointerDown),this.rightResizeHandle.addEventListener(`pointerdown`,this.handleResizePointerDown)}createResizeHandle(e){let t=document.createElement(`span`);return t.className=`zt-md-image-resize-handle zt-md-image-resize-handle-${e}`,t.dataset.side=e,t.setAttribute(`aria-hidden`,`true`),t}deleteCurrentImage(){let e=Dn(this.getPos);if(e===null)return;let t=this.view.state.tr.delete(e,e+this.node.nodeSize).scrollIntoView();this.view.dispatch(t),requestAnimationFrame(()=>{this.view.focus()})}updateEditableState(){this.dom.dataset.editable=On(this.view)?`true`:`false`}removeResizeWindowListeners(){window.removeEventListener(`pointermove`,this.handleResizePointerMove),window.removeEventListener(`pointerup`,this.handleResizePointerUp),window.removeEventListener(`pointercancel`,this.handleResizePointerUp)}applyPreviewWidth(e){this.dom.style.width=`${Math.round(e)}%`,this.dom.dataset.hasWidth=`true`}commitImageWidth(e){let t=Dn(this.getPos);if(t===null)return;let n={...this.node.attrs,style:mn(e)},r=this.view.state.tr.setNodeMarkup(t,void 0,n);this.view.dispatch(r),requestAnimationFrame(()=>{this.view.focus()})}syncFromNode(e){this.updateEditableState();let t=typeof e.attrs.src==`string`?e.attrs.src:``,n=typeof e.attrs.alt==`string`?e.attrs.alt:``,r=typeof e.attrs.title==`string`?e.attrs.title:``,i=hn(gn(e.attrs.style));this.imageElement.setAttribute(`src`,t),this.imageElement.setAttribute(`alt`,n),r?this.imageElement.title=r:this.imageElement.removeAttribute(`title`),i===null?(this.dom.style.removeProperty(`width`),delete this.dom.dataset.hasWidth):(this.dom.style.width=`${i}%`,this.dom.dataset.hasWidth=`true`)}update(e){return e.type.name===Cn?(this.node=e,this.syncFromNode(e),!0):!1}stopEvent(e){let t=e.target;return t instanceof Node?this.deleteButton.contains(t)||this.leftResizeHandle.contains(t)||this.rightResizeHandle.contains(t)||this.resizeState!==null:!1}ignoreMutation(){return!0}destroy(){this.removeResizeWindowListeners(),this.deleteButton.removeEventListener(`click`,this.handleDeleteClick),this.leftResizeHandle.removeEventListener(`pointerdown`,this.handleResizePointerDown),this.rightResizeHandle.removeEventListener(`pointerdown`,this.handleResizePointerDown)}},An=(e=un())=>(t,n,r)=>new kn(t,n,typeof r==`function`?()=>{let e=r();return typeof e==`number`?e:0}:!1,e),jn=e.t((e=>{var t=require(`react-dom`);if(process.env.NODE_ENV===`production`)e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot;else{var n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e.createRoot=function(e,r){n.usingClientEntryPoint=!0;try{return t.createRoot(e,r)}finally{n.usingClientEntryPoint=!1}},e.hydrateRoot=function(e,r,i){n.usingClientEntryPoint=!0;try{return t.hydrateRoot(e,r,i)}finally{n.usingClientEntryPoint=!1}}}}))(),Mn=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Nn=_,Pn=(e,t)=>n=>{if(t?.variants==null)return Nn(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Mn(t)||Mn(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Nn(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};function Fn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function In(...e){return t=>{let n=!1,r=e.map(e=>{let r=Fn(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Fn(e[t],null)}}}}function Ln(...e){return p.useCallback(In(...e),e)}function Rn(e){let t=Bn(e),n=p.forwardRef((e,n)=>{let{children:r,...i}=e,a=p.Children.toArray(r),o=a.find(Hn);if(o){let e=o.props.children,r=a.map(t=>t===o?p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null:t);return(0,h.jsx)(t,{...i,ref:n,children:p.isValidElement(e)?p.cloneElement(e,void 0,r):null})}return(0,h.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var zn=Rn(`Slot`);function Bn(e){let t=p.forwardRef((e,t)=>{let{children:n,...r}=e;if(p.isValidElement(n)){let e=Wn(n),i=Un(r,n.props);return n.type!==p.Fragment&&(i.ref=t?In(t,e):e),p.cloneElement(n,i)}return p.Children.count(n)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vn=Symbol(`radix.slottable`);function Hn(e){return p.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Vn}function Un(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Wn(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 Gn=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Rn(`Primitive.${t}`),r=p.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,h.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Kn(e,t){e&&m.flushSync(()=>e.dispatchEvent(t))}function qn(e,t){let n=p.createContext(t),r=e=>{let{children:t,...r}=e,i=p.useMemo(()=>r,Object.values(r));return(0,h.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=p.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function Jn(e,t=[]){let n=[];function r(t,r){let i=p.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=p.useMemo(()=>o,Object.values(o));return(0,h.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=p.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>p.createContext(e));return function(n){let r=n?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Yn(i,...t)]}function Yn(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}typeof window<`u`&&window.document&&window.document.createElement;function Xn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var Zn=globalThis?.document?p.useLayoutEffect:()=>{},Qn=p.useInsertionEffect||Zn;function $n({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=er({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=p.useRef(e!==void 0);p.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,p.useCallback(t=>{if(s){let n=tr(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function er({defaultProp:e,onChange:t}){let[n,r]=p.useState(e),i=p.useRef(n),a=p.useRef(t);return Qn(()=>{a.current=t},[t]),p.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function tr(e){return typeof e==`function`}function nr(e,t){return p.useReducer((e,n)=>t[e][n]??e,e)}var rr=e=>{let{present:t,children:n}=e,r=ir(t),i=typeof n==`function`?n({present:r.isPresent}):p.Children.only(n),a=Ln(r.ref,or(i));return typeof n==`function`||r.isPresent?p.cloneElement(i,{ref:a}):null};rr.displayName=`Presence`;function ir(e){let[t,n]=p.useState(),r=p.useRef(null),i=p.useRef(e),a=p.useRef(`none`),[o,s]=nr(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return p.useEffect(()=>{let e=ar(r.current);a.current=o===`mounted`?e:`none`},[o]),Zn(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=ar(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Zn(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=ar(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=ar(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:p.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function ar(e){return e?.animationName||`none`}function or(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 sr=p.useId||(()=>void 0),cr=0;function lr(e){let[t,n]=p.useState(sr());return Zn(()=>{e||n(e=>e??String(cr++))},[e]),e||(t?`radix-${t}`:``)}function ur(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...e)=>t.current?.(...e),[])}function dr(e,t=globalThis?.document){let n=ur(e);p.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var fr=`DismissableLayer`,pr=`dismissableLayer.update`,mr=`dismissableLayer.pointerDownOutside`,hr=`dismissableLayer.focusOutside`,gr,_r=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vr=p.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=p.useContext(_r),[u,d]=p.useState(null),f=u?.ownerDocument??globalThis?.document,[,m]=p.useState({}),g=Ln(t,e=>d(e)),_=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=_.indexOf(v),b=u?_.indexOf(u):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=xr(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!S||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),w=Sr(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return dr(e=>{b===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),p.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(gr=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Cr(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=gr)}},[u,f,n,l]),p.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Cr())},[u,l]),p.useEffect(()=>{let e=()=>m({});return document.addEventListener(pr,e),()=>document.removeEventListener(pr,e)},[]),(0,h.jsx)(Gn.div,{...c,ref:g,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:Xn(e.onFocusCapture,w.onFocusCapture),onBlurCapture:Xn(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:Xn(e.onPointerDownCapture,C.onPointerDownCapture)})});vr.displayName=fr;var yr=`DismissableLayerBranch`,br=p.forwardRef((e,t)=>{let n=p.useContext(_r),r=p.useRef(null),i=Ln(t,r);return p.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,h.jsx)(Gn.div,{...e,ref:i})});br.displayName=yr;function xr(e,t=globalThis?.document){let n=ur(e),r=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){wr(mr,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Sr(e,t=globalThis?.document){let n=ur(e),r=p.useRef(!1);return p.useEffect(()=>{let e=e=>{e.target&&!r.current&&wr(hr,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Cr(){let e=new CustomEvent(pr);document.dispatchEvent(e)}function wr(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Kn(i,a):i.dispatchEvent(a)}var Tr=`focusScope.autoFocusOnMount`,Er=`focusScope.autoFocusOnUnmount`,Dr={bubbles:!1,cancelable:!0},Or=`FocusScope`,kr=p.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=p.useState(null),l=ur(i),u=ur(a),d=p.useRef(null),f=Ln(t,e=>c(e)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let e=function(e){if(m.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Ir(d.current,{select:!0})},t=function(e){if(m.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Ir(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Ir(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,m.paused]),p.useEffect(()=>{if(s){Lr.add(m);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Tr,Dr);s.addEventListener(Tr,l),s.dispatchEvent(t),t.defaultPrevented||(Ar(Br(Mr(s)),{select:!0}),document.activeElement===e&&Ir(s))}return()=>{s.removeEventListener(Tr,l),setTimeout(()=>{let t=new CustomEvent(Er,Dr);s.addEventListener(Er,u),s.dispatchEvent(t),t.defaultPrevented||Ir(e??document.body,{select:!0}),s.removeEventListener(Er,u),Lr.remove(m)},0)}}},[s,l,u,m]);let g=p.useCallback(e=>{if(!n&&!r||m.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=jr(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Ir(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Ir(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,m.paused]);return(0,h.jsx)(Gn.div,{tabIndex:-1,...o,ref:f,onKeyDown:g})});kr.displayName=Or;function Ar(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Ir(r,{select:t}),document.activeElement!==n)return}function jr(e){let t=Mr(e);return[Nr(t,e),Nr(t.reverse(),e)]}function Mr(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Nr(e,t){for(let n of e)if(!Pr(n,{upTo:t}))return n}function Pr(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Fr(e){return e instanceof HTMLInputElement&&`select`in e}function Ir(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Fr(e)&&t&&e.select()}}var Lr=Rr();function Rr(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=zr(e,t),e.unshift(t)},remove(t){e=zr(e,t),e[0]?.resume()}}}function zr(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Br(e){return e.filter(e=>e.tagName!==`A`)}var Vr=`Portal`,Hr=p.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=p.useState(!1);Zn(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?m.default.createPortal((0,h.jsx)(Gn.div,{...r,ref:t}),o):null});Hr.displayName=Vr;var Ur=0;function Wr(){p.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Gr()),document.body.insertAdjacentElement(`beforeend`,e[1]??Gr()),Ur++,()=>{Ur===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Ur--}},[])}function Gr(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var Kr=function(){return Kr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Kr.apply(this,arguments)};function qr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Jr(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Yr=`right-scroll-bar-position`,Xr=`width-before-scroll-bar`,Zr=`with-scroll-bars-hidden`,Qr=`--removed-body-scroll-bar-size`;function $r(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function ei(e,t){var n=(0,f.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var ti=typeof window<`u`?f.useLayoutEffect:f.useEffect,ni=new WeakMap;function ri(e,t){var n=ei(t||null,function(t){return e.forEach(function(e){return $r(e,t)})});return ti(function(){var t=ni.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||$r(e,null)}),i.forEach(function(e){r.has(e)||$r(e,a)})}ni.set(n,e)},[e]),n}function ii(e){return e}function ai(e,t){t===void 0&&(t=ii);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function oi(e){e===void 0&&(e={});var t=ai(null);return t.options=Kr({async:!0,ssr:!1},e),t}var si=function(e){var t=e.sideCar,n=qr(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return f.createElement(r,Kr({},n))};si.isSideCarExport=!0;function ci(e,t){return e.useMedium(t),si}var li=oi(),ui=function(){},di=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:ui,onWheelCapture:ui,onTouchMoveCapture:ui}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=qr(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=ri([n,t]),w=Kr(Kr({},x),i);return f.createElement(f.Fragment,null,u&&f.createElement(S,{sideCar:li,removeScrollBar:l,shards:d,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?f.cloneElement(f.Children.only(s),Kr(Kr({},w),{ref:C})):f.createElement(y,Kr({},w,{className:c,ref:C}),s))});di.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},di.classNames={fullWidth:Xr,zeroRight:Yr};var fi,pi=function(){if(fi)return fi;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function mi(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=pi();return t&&e.setAttribute(`nonce`,t),e}function hi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gi(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var _i=function(){var e=0,t=null;return{add:function(n){e==0&&(t=mi())&&(hi(t,n),gi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vi=function(){var e=_i();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},yi=function(){var e=vi();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},bi={left:0,top:0,right:0,gap:0},xi=function(e){return parseInt(e||``,10)||0},Si=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[xi(n),xi(r),xi(i)]},Ci=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return bi;var t=Si(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wi=yi(),Ti=`data-scroll-locked`,Ei=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
82
|
-
.${Zr} {
|
|
83
|
-
overflow: hidden ${r};
|
|
84
|
-
padding-right: ${s}px ${r};
|
|
85
|
-
}
|
|
86
|
-
body[${Ti}] {
|
|
87
|
-
overflow: hidden ${r};
|
|
88
|
-
overscroll-behavior: contain;
|
|
89
|
-
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
90
|
-
padding-left: ${i}px;
|
|
91
|
-
padding-top: ${a}px;
|
|
92
|
-
padding-right: ${o}px;
|
|
93
|
-
margin-left:0;
|
|
94
|
-
margin-top:0;
|
|
95
|
-
margin-right: ${s}px ${r};
|
|
96
|
-
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.${Yr} {
|
|
100
|
-
right: ${s}px ${r};
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.${Xr} {
|
|
104
|
-
margin-right: ${s}px ${r};
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.${Yr} .${Yr} {
|
|
108
|
-
right: 0 ${r};
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.${Xr} .${Xr} {
|
|
112
|
-
margin-right: 0 ${r};
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
body[${Ti}] {
|
|
116
|
-
${Qr}: ${s}px;
|
|
117
|
-
}
|
|
118
|
-
`},Di=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Oi=function(){f.useEffect(function(){return document.body.setAttribute(Ti,(Di()+1).toString()),function(){var e=Di()-1;e<=0?document.body.removeAttribute(Ti):document.body.setAttribute(Ti,e.toString())}},[])},ki=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Oi();var a=f.useMemo(function(){return Ci(i)},[i]);return f.createElement(wi,{styles:Ei(a,!t,i,n?``:`!important`)})},Ai=!1;if(typeof window<`u`)try{var ji=Object.defineProperty({},`passive`,{get:function(){return Ai=!0,!0}});window.addEventListener(`test`,ji,ji),window.removeEventListener(`test`,ji,ji)}catch{Ai=!1}var Mi=Ai?{passive:!1}:!1,Ni=function(e){return e.tagName===`TEXTAREA`},Pi=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Ni(e)&&n[t]===`visible`)},Fi=function(e){return Pi(e,`overflowY`)},Ii=function(e){return Pi(e,`overflowX`)},Li=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Bi(e,r)){var i=Vi(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ri=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},zi=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Bi=function(e,t){return e===`v`?Fi(t):Ii(t)},Vi=function(e,t){return e===`v`?Ri(t):zi(t)},Hi=function(e,t){return e===`h`&&t===`rtl`?-1:1},Ui=function(e,t,n,r,i){var a=Hi(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Vi(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Bi(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Wi=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gi=function(e){return[e.deltaX,e.deltaY]},Ki=function(e){return e&&`current`in e?e.current:e},qi=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ji=function(e){return`
|
|
119
|
-
.block-interactivity-${e} {pointer-events: none;}
|
|
120
|
-
.allow-interactivity-${e} {pointer-events: all;}
|
|
121
|
-
`},Yi=0,Xi=[];function Zi(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),i=f.useState(Yi++)[0],a=f.useState(yi)[0],o=f.useRef(e);f.useEffect(function(){o.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Jr([e.lockRef.current],(e.shards||[]).map(Ki),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Wi(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Li(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Li(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Ui(h,t,e,h===`h`?s:c,!0)},[]),c=f.useCallback(function(e){var n=e;if(!(!Xi.length||Xi[Xi.length-1]!==a)){var r=`deltaY`in n?Gi(n):Wi(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&qi(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Ki).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=f.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Qi(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=f.useCallback(function(e){n.current=Wi(e),r.current=void 0},[]),d=f.useCallback(function(t){l(t.type,Gi(t),t.target,s(t,e.lockRef.current))},[]),p=f.useCallback(function(t){l(t.type,Wi(t),t.target,s(t,e.lockRef.current))},[]);f.useEffect(function(){return Xi.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener(`wheel`,c,Mi),document.addEventListener(`touchmove`,c,Mi),document.addEventListener(`touchstart`,u,Mi),function(){Xi=Xi.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Mi),document.removeEventListener(`touchmove`,c,Mi),document.removeEventListener(`touchstart`,u,Mi)}},[]);var m=e.removeScrollBar,h=e.inert;return f.createElement(f.Fragment,null,h?f.createElement(a,{styles:Ji(i)}):null,m?f.createElement(ki,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Qi(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var $i=ci(li,Zi),ea=f.forwardRef(function(e,t){return f.createElement(di,Kr({},e,{ref:t,sideCar:$i}))});ea.classNames=di.classNames;var ta=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},na=new WeakMap,ra=new WeakMap,ia={},aa=0,oa=function(e){return e&&(e.host||oa(e.parentNode))},sa=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=oa(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},ca=function(e,t,n,r){var i=sa(t,Array.isArray(e)?e:[e]);ia[n]||(ia[n]=new WeakMap);var a=ia[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(na.get(e)||0)+1,l=(a.get(e)||0)+1;na.set(e,c),a.set(e,l),o.push(e),c===1&&i&&ra.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),aa++,function(){o.forEach(function(e){var t=na.get(e)-1,i=a.get(e)-1;na.set(e,t),a.set(e,i),t||(ra.has(e)||e.removeAttribute(r),ra.delete(e)),i||e.removeAttribute(n)}),aa--,aa||(na=new WeakMap,na=new WeakMap,ra=new WeakMap,ia={})}},la=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||ta(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),ca(r,i,n,`aria-hidden`)):function(){return null}},ua=`Dialog`,[da,fa]=Jn(ua),[pa,ma]=da(ua),ha=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=p.useRef(null),c=p.useRef(null),[l,u]=$n({prop:r,defaultProp:i??!1,onChange:a,caller:ua});return(0,h.jsx)(pa,{scope:t,triggerRef:s,contentRef:c,contentId:lr(),titleId:lr(),descriptionId:lr(),open:l,onOpenChange:u,onOpenToggle:p.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};ha.displayName=ua;var ga=`DialogTrigger`,_a=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ma(ga,n),a=Ln(t,i.triggerRef);return(0,h.jsx)(Gn.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":La(i.open),...r,ref:a,onClick:Xn(e.onClick,i.onOpenToggle)})});_a.displayName=ga;var va=`DialogPortal`,[ya,ba]=da(va,{forceMount:void 0}),xa=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=ma(va,t);return(0,h.jsx)(ya,{scope:t,forceMount:n,children:p.Children.map(r,e=>(0,h.jsx)(rr,{present:n||a.open,children:(0,h.jsx)(Hr,{asChild:!0,container:i,children:e})}))})};xa.displayName=va;var Sa=`DialogOverlay`,Ca=p.forwardRef((e,t)=>{let n=ba(Sa,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ma(Sa,e.__scopeDialog);return a.modal?(0,h.jsx)(rr,{present:r||a.open,children:(0,h.jsx)(Ta,{...i,ref:t})}):null});Ca.displayName=Sa;var wa=Rn(`DialogOverlay.RemoveScroll`),Ta=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ma(Sa,n);return(0,h.jsx)(ea,{as:wa,allowPinchZoom:!0,shards:[i.contentRef],children:(0,h.jsx)(Gn.div,{"data-state":La(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),Ea=`DialogContent`,Da=p.forwardRef((e,t)=>{let n=ba(Ea,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ma(Ea,e.__scopeDialog);return(0,h.jsx)(rr,{present:r||a.open,children:a.modal?(0,h.jsx)(Oa,{...i,ref:t}):(0,h.jsx)(ka,{...i,ref:t})})});Da.displayName=Ea;var Oa=p.forwardRef((e,t)=>{let n=ma(Ea,e.__scopeDialog),r=p.useRef(null),i=Ln(t,n.contentRef,r);return p.useEffect(()=>{let e=r.current;if(e)return la(e)},[]),(0,h.jsx)(Aa,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xn(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Xn(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:Xn(e.onFocusOutside,e=>e.preventDefault())})}),ka=p.forwardRef((e,t)=>{let n=ma(Ea,e.__scopeDialog),r=p.useRef(!1),i=p.useRef(!1);return(0,h.jsx)(Aa,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Aa=p.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=ma(Ea,n),c=p.useRef(null),l=Ln(t,c);return Wr(),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(kr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,h.jsx)(vr,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":La(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Va,{titleId:s.titleId}),(0,h.jsx)(Ua,{contentRef:c,descriptionId:s.descriptionId})]})]})}),ja=`DialogTitle`,Ma=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ma(ja,n);return(0,h.jsx)(Gn.h2,{id:i.titleId,...r,ref:t})});Ma.displayName=ja;var Na=`DialogDescription`,Pa=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ma(Na,n);return(0,h.jsx)(Gn.p,{id:i.descriptionId,...r,ref:t})});Pa.displayName=Na;var Fa=`DialogClose`,Ia=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=ma(Fa,n);return(0,h.jsx)(Gn.button,{type:`button`,...r,ref:t,onClick:Xn(e.onClick,()=>i.onOpenChange(!1))})});Ia.displayName=Fa;function La(e){return e?`open`:`closed`}var Ra=`DialogTitleWarning`,[za,Ba]=qn(Ra,{contentName:Ea,titleName:ja,docsSlug:`dialog`}),Va=({titleId:e})=>{let t=Ba(Ra),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
122
|
-
|
|
123
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
124
|
-
|
|
125
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ha=`DialogDescriptionWarning`,Ua=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ba(Ha).contentName}}.`;return p.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Wa=ha,Ga=_a,Ka=xa,qa=Ca,Ja=Da,Ya=Ma,Xa=Pa,Za=Ia;function Qa(e){let[t,n]=p.useState(void 0);return Zn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var $a=typeof document<`u`?p.useLayoutEffect:function(){};function eo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;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(!eo(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!eo(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function to(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function no(e,t){let n=to(e);return Math.round(t*n)/n}function ro(e){let t=p.useRef(e);return $a(()=>{t.current=e}),t}function io(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=p.useState(r);eo(h,r)||g(r);let[_,v]=p.useState(null),[y,b]=p.useState(null),x=p.useCallback(e=>{e!==T.current&&(T.current=e,v(e))},[]),S=p.useCallback(e=>{e!==E.current&&(E.current=e,b(e))},[]),C=a||_,w=o||y,T=p.useRef(null),E=p.useRef(null),ee=p.useRef(d),te=l!=null,D=ro(l),O=ro(i),ne=ro(u),re=p.useCallback(()=>{if(!T.current||!E.current)return;let e={placement:t,strategy:n,middleware:h};O.current&&(e.platform=O.current),c.r(T.current,E.current,e).then(e=>{let t={...e,isPositioned:ne.current!==!1};ie.current&&!eo(ee.current,t)&&(ee.current=t,m.flushSync(()=>{f(t)}))})},[h,t,n,O,ne]);$a(()=>{u===!1&&ee.current.isPositioned&&(ee.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let ie=p.useRef(!1);$a(()=>(ie.current=!0,()=>{ie.current=!1}),[]),$a(()=>{if(C&&(T.current=C),w&&(E.current=w),C&&w){if(D.current)return D.current(C,w,re);re()}},[C,w,re,D,te]);let ae=p.useMemo(()=>({reference:T,floating:E,setReference:x,setFloating:S}),[x,S]),oe=p.useMemo(()=>({reference:C,floating:w}),[C,w]),k=p.useMemo(()=>{let e={position:n,left:0,top:0};if(!oe.floating)return e;let t=no(oe.floating,d.x),r=no(oe.floating,d.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...to(oe.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,oe.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:re,refs:ae,elements:oe,floatingStyles:k}),[d,re,ae,oe,k])}var ao=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:c.t({element:r.current,padding:i}).fn(n):r?c.t({element:r,padding:i}).fn(n):{}}}},oo=(e,t)=>{let n=c.s(e);return{name:n.name,fn:n.fn,options:[e,t]}},so=(e,t)=>{let n=c.c(e);return{name:n.name,fn:n.fn,options:[e,t]}},co=(e,t)=>({fn:c.o(e).fn,options:[e,t]}),lo=(e,t)=>{let n=c.i(e);return{name:n.name,fn:n.fn,options:[e,t]}},uo=(e,t)=>{let n=c.l(e);return{name:n.name,fn:n.fn,options:[e,t]}},fo=(e,t)=>{let n=c.a(e);return{name:n.name,fn:n.fn,options:[e,t]}},po=(e,t)=>{let n=ao(e);return{name:n.name,fn:n.fn,options:[e,t]}},mo=`Arrow`,ho=p.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,h.jsx)(Gn.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,h.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});ho.displayName=mo;var go=ho,_o=`Popper`,[vo,yo]=Jn(_o),[bo,xo]=vo(_o),So=e=>{let{__scopePopper:t,children:n}=e,[r,i]=p.useState(null);return(0,h.jsx)(bo,{scope:t,anchor:r,onAnchorChange:i,children:n})};So.displayName=_o;var Co=`PopperAnchor`,wo=p.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=xo(Co,n),o=p.useRef(null),s=Ln(t,o),c=p.useRef(null);return p.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,h.jsx)(Gn.div,{...i,ref:s})});wo.displayName=Co;var To=`PopperContent`,[Eo,Do]=vo(To),Oo=p.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=`partial`,hideWhenDetached:m=!1,updatePositionStrategy:g=`optimized`,onPlaced:_,...v}=e,y=xo(To,n),[b,x]=p.useState(null),S=Ln(t,e=>x(e)),[C,w]=p.useState(null),T=Qa(C),E=T?.width??0,ee=T?.height??0,te=r+(a===`center`?``:`-`+a),D=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},O=Array.isArray(u)?u:[u],ne=O.length>0,re={padding:D,boundary:O.filter(Mo),altBoundary:ne},{refs:ie,floatingStyles:ae,placement:oe,isPositioned:k,middlewareData:se}=io({strategy:`fixed`,placement:te,whileElementsMounted:(...e)=>c.n(...e,{animationFrame:g===`always`}),elements:{reference:y.anchor},middleware:[oo({mainAxis:i+ee,alignmentAxis:o}),l&&so({mainAxis:!0,crossAxis:!1,limiter:f===`partial`?co():void 0,...re}),l&&lo({...re}),uo({...re,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),C&&po({element:C,padding:s}),No({arrowWidth:E,arrowHeight:ee}),m&&fo({strategy:`referenceHidden`,...re})]}),[ce,le]=Po(oe),ue=ur(_);Zn(()=>{k&&ue?.()},[k,ue]);let de=se.arrow?.x,A=se.arrow?.y,fe=se.arrow?.centerOffset!==0,[pe,me]=p.useState();return Zn(()=>{b&&me(window.getComputedStyle(b).zIndex)},[b]),(0,h.jsx)(`div`,{ref:ie.setFloating,"data-radix-popper-content-wrapper":``,style:{...ae,transform:k?ae.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:pe,"--radix-popper-transform-origin":[se.transformOrigin?.x,se.transformOrigin?.y].join(` `),...se.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,h.jsx)(Eo,{scope:n,placedSide:ce,onArrowChange:w,arrowX:de,arrowY:A,shouldHideArrow:fe,children:(0,h.jsx)(Gn.div,{"data-side":ce,"data-align":le,...v,ref:S,style:{...v.style,animation:k?void 0:`none`}})})})});Oo.displayName=To;var ko=`PopperArrow`,Ao={top:`bottom`,right:`left`,bottom:`top`,left:`right`},jo=p.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Do(ko,n),a=Ao[i.placedSide];return(0,h.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,h.jsx)(go,{...r,ref:t,style:{...r.style,display:`block`}})})});jo.displayName=ko;function Mo(e){return e!==null}var No=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Po(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Po(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Fo=So,Io=wo,Lo=Oo,Ro=jo,zo=`Popover`,[Bo,Vo]=Jn(zo,[yo]),Ho=yo(),[Uo,Wo]=Bo(zo),Go=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Ho(t),c=p.useRef(null),[l,u]=p.useState(!1),[d,f]=$n({prop:r,defaultProp:i??!1,onChange:a,caller:zo});return(0,h.jsx)(Fo,{...s,children:(0,h.jsx)(Uo,{scope:t,contentId:lr(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:p.useCallback(()=>u(!0),[]),onCustomAnchorRemove:p.useCallback(()=>u(!1),[]),modal:o,children:n})})};Go.displayName=zo;var Ko=`PopoverAnchor`,qo=p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Wo(Ko,n),a=Ho(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return p.useEffect(()=>(o(),()=>s()),[o,s]),(0,h.jsx)(Io,{...a,...r,ref:t})});qo.displayName=Ko;var Jo=`PopoverTrigger`,Yo=p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Wo(Jo,n),a=Ho(n),o=Ln(t,i.triggerRef),s=(0,h.jsx)(Gn.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":us(i.open),...r,ref:o,onClick:Xn(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,h.jsx)(Io,{asChild:!0,...a,children:s})});Yo.displayName=Jo;var Xo=`PopoverPortal`,[Zo,Qo]=Bo(Xo,{forceMount:void 0}),$o=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Wo(Xo,t);return(0,h.jsx)(Zo,{scope:t,forceMount:n,children:(0,h.jsx)(rr,{present:n||a.open,children:(0,h.jsx)(Hr,{asChild:!0,container:i,children:r})})})};$o.displayName=Xo;var es=`PopoverContent`,ts=p.forwardRef((e,t)=>{let n=Qo(es,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Wo(es,e.__scopePopover);return(0,h.jsx)(rr,{present:r||a.open,children:a.modal?(0,h.jsx)(rs,{...i,ref:t}):(0,h.jsx)(is,{...i,ref:t})})});ts.displayName=es;var ns=Rn(`PopoverContent.RemoveScroll`),rs=p.forwardRef((e,t)=>{let n=Wo(es,e.__scopePopover),r=p.useRef(null),i=Ln(t,r),a=p.useRef(!1);return p.useEffect(()=>{let e=r.current;if(e)return la(e)},[]),(0,h.jsx)(ea,{as:ns,allowPinchZoom:!0,children:(0,h.jsx)(as,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xn(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Xn(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:Xn(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),is=p.forwardRef((e,t)=>{let n=Wo(es,e.__scopePopover),r=p.useRef(!1),i=p.useRef(!1);return(0,h.jsx)(as,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),as=p.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=Wo(es,n),p=Ho(n);return Wr(),(0,h.jsx)(kr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,h.jsx)(vr,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:(0,h.jsx)(Lo,{"data-state":us(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),os=`PopoverClose`,ss=p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Wo(os,n);return(0,h.jsx)(Gn.button,{type:`button`,...r,ref:t,onClick:Xn(e.onClick,()=>i.onOpenChange(!1))})});ss.displayName=os;var cs=`PopoverArrow`,ls=p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Ho(n);return(0,h.jsx)(Ro,{...i,...r,ref:t})});ls.displayName=cs;function us(e){return e?`open`:`closed`}var ds=Go,fs=Yo,ps=$o,ms=ts,hs=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},gs=(e,t)=>({classGroupId:e,validator:t}),_s=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),vs=`-`,ys=[],bs=`arbitrary..`,xs=e=>{let t=ws(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Cs(e);let n=e.split(vs);return Ss(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?hs(i,t):t:i||ys}return n[e]||ys}}},Ss=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ss(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(vs):e.slice(t).join(vs),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Cs=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?bs+r:void 0})(),ws=e=>{let{theme:t,classGroups:n}=e;return Ts(n,t)},Ts=(e,t)=>{let n=_s();for(let r in e){let i=e[r];Es(i,n,r,t)}return n},Es=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Ds(i,t,n,r)}},Ds=(e,t,n,r)=>{if(typeof e==`string`){Os(e,t,n);return}if(typeof e==`function`){ks(e,t,n,r);return}As(e,t,n,r)},Os=(e,t,n)=>{let r=e===``?t:js(t,e);r.classGroupId=n},ks=(e,t,n,r)=>{if(Ms(e)){Es(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(gs(n,e))},As=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Es(o,js(t,a),n,r)}},js=(e,t)=>{let n=e,r=t.split(vs),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=_s(),n.nextPart.set(t,i)),n=i}return n},Ms=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ns=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Ps=`!`,Fs=`:`,Is=[],Ls=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Rs=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Fs){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Ps)?(c=s.slice(0,-1),l=!0):s.startsWith(Ps)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Ls(t,l,c,u)};if(t){let e=t+Fs,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Ls(Is,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},zs=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Bs=e=>({cache:Ns(e.cacheSize),parseClassName:Rs(e),sortModifiers:zs(e),...xs(e)}),Vs=/\s+/,Hs=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(Vs),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+Ps:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},Us=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Ws(n))&&(i&&(i+=` `),i+=r);return i},Ws=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Ws(e[r]))&&(n&&(n+=` `),n+=t);return n},Gs=(e,...t)=>{let n,r,i,a,o=o=>(n=Bs(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Hs(e,n);return i(e,a),a};return a=o,(...e)=>a(Us(...e))},Ks=[],qs=e=>{let t=t=>t[e]||Ks;return t.isThemeGetter=!0,t},Js=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ys=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xs=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Zs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qs=/\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$/,$s=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ec=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nc=e=>Xs.test(e),rc=e=>!!e&&!Number.isNaN(Number(e)),ic=e=>!!e&&Number.isInteger(Number(e)),ac=e=>e.endsWith(`%`)&&rc(e.slice(0,-1)),oc=e=>Zs.test(e),sc=()=>!0,cc=e=>Qs.test(e)&&!$s.test(e),lc=()=>!1,uc=e=>ec.test(e),dc=e=>tc.test(e),fc=e=>!N(e)&&!P(e),pc=e=>Oc(e,Mc,lc),N=e=>Js.test(e),mc=e=>Oc(e,Nc,cc),hc=e=>Oc(e,Pc,rc),gc=e=>Oc(e,Ic,sc),_c=e=>Oc(e,Fc,lc),vc=e=>Oc(e,Ac,lc),yc=e=>Oc(e,jc,dc),bc=e=>Oc(e,Lc,uc),P=e=>Ys.test(e),xc=e=>kc(e,Nc),Sc=e=>kc(e,Fc),Cc=e=>kc(e,Ac),wc=e=>kc(e,Mc),Tc=e=>kc(e,jc),Ec=e=>kc(e,Lc,!0),Dc=e=>kc(e,Ic,!0),Oc=(e,t,n)=>{let r=Js.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},kc=(e,t,n=!1)=>{let r=Ys.exec(e);return r?r[1]?t(r[1]):n:!1},Ac=e=>e===`position`||e===`percentage`,jc=e=>e===`image`||e===`url`,Mc=e=>e===`length`||e===`size`||e===`bg-size`,Nc=e=>e===`length`,Pc=e=>e===`number`,Fc=e=>e===`family-name`,Ic=e=>e===`number`||e===`weight`,Lc=e=>e===`shadow`,Rc=Gs(()=>{let e=qs(`color`),t=qs(`font`),n=qs(`text`),r=qs(`font-weight`),i=qs(`tracking`),a=qs(`leading`),o=qs(`breakpoint`),s=qs(`container`),c=qs(`spacing`),l=qs(`radius`),u=qs(`shadow`),d=qs(`inset-shadow`),f=qs(`text-shadow`),p=qs(`drop-shadow`),m=qs(`blur`),h=qs(`perspective`),g=qs(`aspect`),_=qs(`ease`),v=qs(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),P,N],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[P,N,c],T=()=>[nc,`full`,`auto`,...w()],E=()=>[ic,`none`,`subgrid`,P,N],ee=()=>[`auto`,{span:[`full`,ic,P,N]},ic,P,N],te=()=>[ic,`auto`,P,N],D=()=>[`auto`,`min`,`max`,`fr`,P,N],O=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ne=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],re=()=>[`auto`,...w()],ie=()=>[nc,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ae=()=>[nc,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],oe=()=>[nc,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],k=()=>[e,P,N],se=()=>[...b(),Cc,vc,{position:[P,N]}],ce=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],le=()=>[`auto`,`cover`,`contain`,wc,pc,{size:[P,N]}],ue=()=>[ac,xc,mc],de=()=>[``,`none`,`full`,l,P,N],A=()=>[``,rc,xc,mc],fe=()=>[`solid`,`dashed`,`dotted`,`double`],pe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],me=()=>[rc,ac,Cc,vc],he=()=>[``,`none`,m,P,N],ge=()=>[`none`,rc,P,N],_e=()=>[`none`,rc,P,N],ve=()=>[rc,P,N],ye=()=>[nc,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[oc],breakpoint:[oc],color:[sc],container:[oc],"drop-shadow":[oc],ease:[`in`,`out`,`in-out`],font:[fc],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[oc],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[oc],shadow:[oc],spacing:[`px`,rc],text:[oc],"text-shadow":[oc],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,nc,N,P,g]}],container:[`container`],columns:[{columns:[rc,N,P,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ic,`auto`,P,N]}],basis:[{basis:[nc,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[rc,nc,`auto`,`initial`,`none`,N]}],grow:[{grow:[``,rc,P,N]}],shrink:[{shrink:[``,rc,P,N]}],order:[{order:[ic,`first`,`last`,`none`,P,N]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...O(),`normal`]}],"justify-items":[{"justify-items":[...ne(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ne()]}],"align-content":[{content:[`normal`,...O()]}],"align-items":[{items:[...ne(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ne(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...ne(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ne()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ie()}],"inline-size":[{inline:[`auto`,...ae()]}],"min-inline-size":[{"min-inline":[`auto`,...ae()]}],"max-inline-size":[{"max-inline":[`none`,...ae()]}],"block-size":[{block:[`auto`,...oe()]}],"min-block-size":[{"min-block":[`auto`,...oe()]}],"max-block-size":[{"max-block":[`none`,...oe()]}],w:[{w:[s,`screen`,...ie()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ie()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ie()]}],h:[{h:[`screen`,`lh`,...ie()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ie()]}],"max-h":[{"max-h":[`screen`,`lh`,...ie()]}],"font-size":[{text:[`base`,n,xc,mc]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Dc,gc]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ac,N]}],"font-family":[{font:[Sc,_c,t]}],"font-features":[{"font-features":[N]}],"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:[i,P,N]}],"line-clamp":[{"line-clamp":[rc,`none`,P,hc]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,P,N]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,P,N]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...fe(),`wavy`]}],"text-decoration-thickness":[{decoration:[rc,`from-font`,`auto`,P,mc]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[rc,`auto`,P,N]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,P,N]}],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`,P,N]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:ce()}],"bg-size":[{bg:le()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ic,P,N],radial:[``,P,N],conic:[ic,P,N]},Tc,yc]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-bs":[{"border-bs":A()}],"border-w-be":[{"border-be":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":A()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...fe(),`hidden`,`none`]}],"divide-style":[{divide:[...fe(),`hidden`,`none`]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...fe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[rc,P,N]}],"outline-w":[{outline:[``,rc,xc,mc]}],"outline-color":[{outline:k()}],shadow:[{shadow:[``,`none`,u,Ec,bc]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ec,bc]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:A()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[rc,mc]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":[`none`,f,Ec,bc]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[rc,P,N]}],"mix-blend":[{"mix-blend":[...pe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":pe()}],"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":[rc]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[P,N]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[rc]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:ce()}],"mask-size":[{mask:le()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,P,N]}],filter:[{filter:[``,`none`,P,N]}],blur:[{blur:he()}],brightness:[{brightness:[rc,P,N]}],contrast:[{contrast:[rc,P,N]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ec,bc]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:[``,rc,P,N]}],"hue-rotate":[{"hue-rotate":[rc,P,N]}],invert:[{invert:[``,rc,P,N]}],saturate:[{saturate:[rc,P,N]}],sepia:[{sepia:[``,rc,P,N]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,P,N]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[rc,P,N]}],"backdrop-contrast":[{"backdrop-contrast":[rc,P,N]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,rc,P,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[rc,P,N]}],"backdrop-invert":[{"backdrop-invert":[``,rc,P,N]}],"backdrop-opacity":[{"backdrop-opacity":[rc,P,N]}],"backdrop-saturate":[{"backdrop-saturate":[rc,P,N]}],"backdrop-sepia":[{"backdrop-sepia":[``,rc,P,N]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,P,N]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[rc,`initial`,P,N]}],ease:[{ease:[`linear`,`initial`,_,P,N]}],delay:[{delay:[rc,P,N]}],animate:[{animate:[`none`,v,P,N]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,P,N]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":[`scale-3d`],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[P,N,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":[`translate-none`],accent:[{accent:k()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:k()}],"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`,P,N]}],"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":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,P,N]}],fill:[{fill:[`none`,...k()]}],"stroke-w":[{stroke:[rc,xc,mc,hc]}],stroke:[{stroke:[`none`,...k()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-bs`,`border-w-be`,`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-bs`,`border-color-be`,`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-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]}});function zc(...e){return Rc(_(e))}var Bc=Pn(`group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}}),Vc=p.forwardRef(function({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i},a){return(0,h.jsx)(r?zn:`button`,{ref:a,"data-slot":`button`,"data-variant":t,"data-size":n,className:zc(Bc({variant:t,size:n,className:e})),...i})});function Hc({...e}){return(0,h.jsx)(Wa,{"data-slot":`dialog`,...e})}p.forwardRef(function({...e},t){return(0,h.jsx)(Ga,{ref:t,"data-slot":`dialog-trigger`,...e})});function Uc({container:e,...t}){return(0,h.jsx)(Ka,{"data-slot":`dialog-portal`,container:e??void 0,...t})}p.forwardRef(function({...e},t){return(0,h.jsx)(Za,{ref:t,"data-slot":`dialog-close`,...e})});var Wc=p.forwardRef(function({className:e,...t},n){return(0,h.jsx)(qa,{ref:n,"data-slot":`dialog-overlay`,className:zc(`fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}),Gc=p.forwardRef(function({container:e,className:t,children:n,showCloseButton:r=!0,...i},a){return(0,h.jsxs)(Uc,{container:e,children:[(0,h.jsx)(Wc,{}),(0,h.jsxs)(Ja,{ref:a,"data-slot":`dialog-content`,className:zc(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,t),...i,children:[n,r&&(0,h.jsx)(Za,{"data-slot":`dialog-close`,asChild:!0,children:(0,h.jsxs)(Vc,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`,children:[(0,h.jsx)(ot,{}),(0,h.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})]})]})});function Kc({className:e,...t}){return(0,h.jsx)(`div`,{"data-slot":`dialog-header`,className:zc(`flex flex-col gap-2`,e),...t})}function qc({className:e,showCloseButton:t=!1,children:n,...r}){return(0,h.jsxs)(`div`,{"data-slot":`dialog-footer`,className:zc(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,h.jsx)(Za,{asChild:!0,children:(0,h.jsx)(Vc,{variant:`outline`,children:`Close`})})]})}var Jc=p.forwardRef(function({className:e,...t},n){return(0,h.jsx)(Ya,{ref:n,"data-slot":`dialog-title`,className:zc(`text-base leading-none font-medium`,e),...t})}),Yc=p.forwardRef(function({className:e,...t},n){return(0,h.jsx)(Xa,{ref:n,"data-slot":`dialog-description`,className:zc(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}),Xc=5*1024*1024,Zc=`zt-md-image-upload-file-input`,Qc=e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;if(typeof e==`string`){t(e);return}n(Error(`Invalid file result`))},r.onerror=()=>{n(r.error??Error(`File read failed`))},r.readAsDataURL(e)}),$c=e=>e<1024*1024?`${Math.ceil(e/1024)}KB`:`${(e/1024/1024).toFixed(1)}MB`,el=e=>{try{let t=new URL(e);return!!(t.protocol&&t.host)}catch{return!1}},tl=({messages:e,portalContainer:t,imageUpload:n,onConfirm:r,onCancel:i})=>{let[a,o]=(0,p.useState)(`file`),[s,c]=(0,p.useState)(null),[l,u]=(0,p.useState)(``),[d,f]=(0,p.useState)(!1),[m,g]=(0,p.useState)(``),[_,v]=(0,p.useState)(!1),[y,b]=(0,p.useState)(!1),x=(0,p.useRef)(null),S=(0,p.useRef)(null),C=(0,p.useRef)(!0),w=n?.maxFileSize??Xc,T=_,E=a===`file`&&(_||!!l),ee=a===`file`&&!!l&&!_,te=!l||!!m||_||d,D=(0,p.useCallback)(async t=>{if(!t.type.startsWith(`image/`)){c(null),u(``),g(e.imageUploadInvalidType);return}if(t.size>w){c(null),u(``),g(e.imageUploadFileSizeExceeded.replace(`{size}`,$c(w)));return}g(``),c(t),f(!1),v(!0);try{let r=n?.upload?await n.upload(t):await Qc(t);if(!C.current)return;if(!r){u(``),g(e.imageUploadFailed);return}u(r)}catch(t){if(!C.current)return;let r=n?.upload?t instanceof Error?t.message:e.imageUploadFailed:e.imageUploadFileReadFailed;u(``),g(r||e.imageUploadFailed)}finally{C.current&&v(!1)}},[n,w,e]),O=(0,p.useCallback)(()=>{let e=x.current?.files?.[0];e&&(D(e),x.current.value=``)},[D]),ne=(0,p.useCallback)(t=>{if(c(null),f(!1),u(t),!t){g(``);return}g(el(t)?``:e.imageUploadInvalidUrl)},[e.imageUploadInvalidUrl]),re=(0,p.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),!T&&(e.dataTransfer.dropEffect=`copy`,b(!0))},[T]),ie=(0,p.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),e.currentTarget.contains(e.relatedTarget)||b(!1)},[]),ae=(0,p.useCallback)(e=>{if(e.preventDefault(),e.stopPropagation(),b(!1),T)return;let t=e.dataTransfer.files?.[0];t&&D(t)},[T,D]),oe=(0,p.useCallback)(e=>{T||(o(e),c(null),u(``),f(!1),g(``))},[T]),k=(0,p.useCallback)(()=>{if(_){g(e.imageUploadUploadingWait);return}if(!l){g(e.imageUploadSelectOrEnterImage);return}if(a===`url`&&!el(l)){g(e.imageUploadInvalidUrl);return}r({src:l,alt:a===`file`?s?.name??``:``})},[l,_,e.imageUploadInvalidUrl,e.imageUploadSelectOrEnterImage,e.imageUploadUploadingWait,r,s,a]),se=(0,p.useCallback)(e=>{e.key===`Enter`&&!e.shiftKey&&a===`url`&&(e.preventDefault(),k())},[k,a]);return(0,p.useEffect)(()=>(C.current=!0,()=>{C.current=!1}),[]),(0,p.useEffect)(()=>{a===`url`&&S.current?.focus()},[a]),(0,h.jsx)(Hc,{open:!0,onOpenChange:e=>!e&&i(),children:(0,h.jsxs)(Gc,{container:t,className:`zt-md-image-upload-content-shell max-w-2xl sm:!max-w-2xl max-h-[90vh] overflow-hidden flex flex-col`,showCloseButton:!1,onMouseDown:e=>e.stopPropagation(),onKeyDown:se,children:[(0,h.jsxs)(Kc,{children:[(0,h.jsx)(Jc,{children:e.imageUploadDialogTitle}),(0,h.jsx)(Yc,{className:`sr-only`,children:`${e.imageUploadFileTab},${e.imageUploadUrlTab}`})]}),(0,h.jsxs)(`div`,{className:`zt-md-image-upload-segmented`,role:`tablist`,"aria-label":e.imageUploadDialogTitle,children:[(0,h.jsx)(Vc,{type:`button`,variant:`ghost`,className:`zt-md-image-upload-segment`,"data-active":a===`file`?`true`:`false`,disabled:T,onClick:()=>oe(`file`),children:e.imageUploadFileTab}),(0,h.jsx)(Vc,{type:`button`,variant:`ghost`,className:`zt-md-image-upload-segment`,"data-active":a===`url`?`true`:`false`,disabled:T,onClick:()=>oe(`url`),children:e.imageUploadUrlTab})]}),(0,h.jsxs)(`div`,{className:`zt-md-image-upload-content`,children:[a===`file`?(0,h.jsxs)(`div`,{className:`zt-md-image-upload-file`,children:[(0,h.jsx)(`input`,{ref:x,id:Zc,type:`file`,accept:`image/*`,className:`zt-md-image-upload-file-input`,disabled:T,onChange:O}),(0,h.jsx)(`label`,{htmlFor:Zc,className:`zt-md-image-upload-file-label`,"data-drag-over":y?`true`:`false`,"data-has-preview":l?`true`:`false`,"data-disabled":T?`true`:`false`,"aria-disabled":T,onClick:e=>{T&&e.preventDefault()},onDragOver:re,onDragLeave:ie,onDrop:ae,children:_?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`div`,{className:`zt-md-image-upload-file-icon`,children:(0,h.jsx)(Je,{size:40,className:`zt-md-image-upload-spin`})}),(0,h.jsx)(`div`,{className:`zt-md-image-upload-file-text`,children:e.imageUploadUploadingLabel})]}):l?(0,h.jsx)(`div`,{className:`zt-md-image-upload-file-preview`,children:d?(0,h.jsxs)(`div`,{className:`zt-md-image-upload-preview-error`,children:[(0,h.jsx)(Be,{size:40}),(0,h.jsx)(`span`,{children:e.imageUploadLoadFailed})]}):(0,h.jsx)(`img`,{src:l,alt:``,onLoad:()=>f(!1),onError:()=>f(!0)})}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`div`,{className:`zt-md-image-upload-file-icon`,children:(0,h.jsx)(Ve,{size:40})}),(0,h.jsx)(`div`,{className:`zt-md-image-upload-file-text`,children:e.imageUploadDropLabel}),(0,h.jsx)(`div`,{className:`zt-md-image-upload-file-hint`,children:e.imageUploadSupportsAndMax.replace(`{size}`,$c(w))})]})}),E?(0,h.jsx)(`div`,{className:`zt-md-image-upload-file-hint zt-md-image-upload-reselect-hint`,"data-placeholder":ee?`false`:`true`,children:e.imageUploadReselectHint}):null]}):(0,h.jsxs)(`div`,{className:`zt-md-image-upload-url`,children:[(0,h.jsx)(`label`,{className:`zt-md-image-upload-label`,htmlFor:`zt-md-image-upload-url-input`,children:e.imageUploadUrlTab}),(0,h.jsx)(`input`,{ref:S,id:`zt-md-image-upload-url-input`,type:`url`,className:`zt-md-image-upload-url-input`,placeholder:e.imageUploadUrlPlaceholder,value:l,disabled:T,onChange:e=>ne(e.target.value)}),l&&!m?(0,h.jsx)(`div`,{className:`zt-md-image-upload-url-preview`,children:d?(0,h.jsxs)(`div`,{className:`zt-md-image-upload-preview-error`,children:[(0,h.jsx)(Be,{size:32}),(0,h.jsx)(`span`,{children:e.imageUploadLoadFailed})]}):(0,h.jsx)(`img`,{src:l,alt:``,onLoad:()=>f(!1),onError:()=>f(!0)})}):null]}),m?(0,h.jsxs)(`div`,{className:`zt-md-image-upload-error`,role:`alert`,"aria-live":`polite`,children:[(0,h.jsx)(Oe,{size:16,className:`zt-md-image-upload-error-icon`}),(0,h.jsx)(`span`,{children:m})]}):null]}),(0,h.jsxs)(qc,{children:[(0,h.jsx)(Vc,{type:`button`,variant:`outline`,onClick:i,children:e.imageUploadCancelLabel}),(0,h.jsx)(Vc,{type:`button`,disabled:te,onClick:k,children:_?e.imageUploadUploadingLabel:e.imageUploadConfirmLabel})]})]})})},nl=(e,t)=>{let n=e?.state?.schema?.nodes?.image;if(!n||!e?.dispatch)return!1;let r=n.create(t);return e.dispatch(e.state.tr.replaceSelectionWith(r).scrollIntoView()),e.focus(),!0},rl=e=>{let t=e.portalContainer.closest(`.zt-md`)?.classList.contains(`zt-md-dark`)?`zt-md-dark`:`zt-md-light`,n=document.createElement(`div`);n.className=`zt-md-image-upload-host ${t}`,document.body.appendChild(n);let r=(0,jn.createRoot)(n),i=()=>{queueMicrotask(()=>{r.unmount(),n.remove(),e.view?.focus?.()})};r.render((0,p.createElement)(tl,{messages:e.messages,portalContainer:n,imageUpload:e.imageUpload,onConfirm:t=>{nl(e.view,{src:t.src,alt:t.alt,title:``}),i()},onCancel:i}))},il=`math_block`,al=`Backspace`,ol=e=>e.key!==al||e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey,sl=e=>{if(e.parent.type.name!==`paragraph`||e.parentOffset!==0||e.depth<1)return null;let t=e.index(e.depth-1);if(t<=0)return null;let n=e.node(e.depth-1).child(t-1);return n.type.name===il?{previousBlock:n,previousBlockStart:e.before(e.depth)-n.nodeSize}:null},cl=(e,n)=>{let{selection:r}=e.state;if(!r.empty)return!1;let i=r.$from,a=sl(i);if(!a)return!1;let o=i.parent.textContent.length===0,s=i.before(i.depth),c=s+i.parent.nodeSize;n.preventDefault();let l=e.state.tr;return o&&l.delete(s,c),l.setSelection(t.r.create(l.doc,a.previousBlockStart)).scrollIntoView(),e.dispatch(l),!0},ll=a.u(()=>new t.i({key:new t.a(`zt-md-math-backspace-entry`),props:{handleKeyDown:(e,t)=>ol(t)?!1:cl(e,t)}})),F=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},ul=/([A-Z])/g,dl=e=>e.replace(ul,`-$1`).toLowerCase(),fl={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},pl=/[&><"']/g,ml=e=>String(e).replace(pl,e=>fl[e]),hl=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?hl(e.body[0]):e:e.type===`font`?hl(e.body):e,gl=new Set([`mathord`,`textord`,`atom`]),_l=e=>gl.has(hl(e).type),vl=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},yl={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)=>(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 bl(e){if(`default`in e)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{}}}var xl=class{constructor(e){e===void 0&&(e={}),e||={};for(var t of Object.keys(yl)){var n=yl[t],r=e[t];this[t]=r===void 0?bl(n):n.processor?n.processor(r):r}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new F(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=vl(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Sl=class{constructor(e,t,n){this.id=e,this.size=t,this.cramped=n}sup(){return jl[Ml[this.id]]}sub(){return jl[Nl[this.id]]}fracNum(){return jl[Pl[this.id]]}fracDen(){return jl[Fl[this.id]]}cramp(){return jl[Il[this.id]]}text(){return jl[Ll[this.id]]}isTight(){return this.size>=2}},Cl=0,wl=1,Tl=2,El=3,Dl=4,Ol=5,kl=6,Al=7,jl=[new Sl(Cl,0,!1),new Sl(wl,0,!0),new Sl(Tl,1,!1),new Sl(El,1,!0),new Sl(Dl,2,!1),new Sl(Ol,2,!0),new Sl(kl,3,!1),new Sl(Al,3,!0)],Ml=[Dl,Ol,Dl,Ol,kl,Al,kl,Al],Nl=[Ol,Ol,Ol,Ol,Al,Al,Al,Al],Pl=[Tl,El,Dl,Ol,kl,Al,kl,Al],Fl=[El,El,Ol,Ol,Al,Al,Al,Al],Il=[wl,wl,El,El,Ol,Ol,Al,Al],Ll=[Cl,wl,Tl,El,Tl,El,Tl,El],I={DISPLAY:jl[Cl],TEXT:jl[Tl],SCRIPT:jl[Dl],SCRIPTSCRIPT:jl[kl]},Rl=[{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 zl(e){for(var t=0;t<Rl.length;t++)for(var n=Rl[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var Bl=[];Rl.forEach(e=>e.blocks.forEach(e=>Bl.push(...e)));function Vl(e){for(var t=0;t<Bl.length;t+=2)if(e>=Bl[t]&&e<=Bl[t+1])return!0;return!1}var Hl=e=>e+` `+e,Ul=80,Wl=function(e,t){return`M95,`+(622+e+t)+`
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./lib-DzY83R_P.cjs"),t=require("./dist-DQnWlYyo.cjs"),n=require("./commands-CM7IuhpT.cjs"),r=require("./lib-DIx8C5AZ.cjs"),i=require("./schema-list-D9Q6QKgo.cjs"),a=require("./lib-Dplx6t-N.cjs"),o=require("./floating-ui.dom-CV-TLBRq.cjs"),s=require("./debounce-C_TNzOFT.cjs"),c=require("./dist-ZPtYoqTI.cjs");let l=require("react");l=e.Ct(l,1);let u=require("react-dom/server"),d=require("radix-ui"),f=require("react/jsx-runtime");function p(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=p(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function m(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=p(e))&&(r&&(r+=` `),r+=t);return r}var h=e=>typeof e==`string`?e:``,g=(e,t,n)=>{let r=typeof e==`string`,[i,a]=(0,l.useState)(h(t));return{markdown:(0,l.useMemo)(()=>r?h(e):i,[i,r,e]),setMarkdown:(0,l.useCallback)(e=>{r||a(e),n?.(e)},[r,n]),isControlled:r}};function _(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}var v=(e,t)=>typeof e==`function`?n=>{t.action(e(n))}:()=>void 0,y=(e,t,n)=>{if(Array.isArray(n)){n.forEach((n,r)=>{e.push({name:`${t}-${r}`,plugin:n})});return}e.push({name:t,plugin:n})},b=(e,t={})=>{let n=[],r=t.includeRuntime??!0;return y(n,`listener`,e.listener),y(n,`commonmark`,e.commonmark),y(n,`gfm`,e.gfm),y(n,`history`,e.history),y(n,`code-block-prism`,e.codeBlockPrism),y(n,`code-block-language-picker`,e.codeBlockLanguagePicker),r&&(y(n,`clipboard`,e.clipboard),y(n,`indent`,e.indent)),y(n,`table-arrow-entry`,e.tableArrowEntry),y(n,`math-backspace-entry`,e.mathBackspaceEntry),y(n,`blockquote-backspace-lift`,e.blockquoteBackspaceLift),y(n,`table-focus-actions`,e.tableFocusActions),y(n,`selection-tooltip`,e.selectionTooltip),y(n,`gap-cursor`,e.gapCursor),y(n,`drop-cursor`,e.dropCursor),y(n,`math`,e.math),y(n,`math-inline-edit`,e.mathInlineEdit),y(n,`math-inline-arrow-navigation`,e.mathInlineArrowNavigation),y(n,`task-list-toggle`,e.taskListToggle),y(n,`tab-space-indent`,e.tabSpaceIndent),y(n,`code-block-mod-a-select`,e.codeBlockModASelect),e.slash&&y(n,`slash`,e.slash),n},x=(e,t)=>{if(!(t in e))throw Error(`Milkdown API 缺少必需导出: ${t}`);return e[t]};function S(e={}){return new t.i({view(t){return new C(t,e)}})}var C=class{constructor(e,t){this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=t.width??1,this.color=t.color===!1?void 0:t.color||`black`,this.class=t.class,this.handlers=[`dragover`,`dragend`,`drop`,`dragleave`].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){this.cursorPos!=null&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,n,r=this.editorView.dom,i=r.getBoundingClientRect(),a=i.width/r.offsetWidth,o=i.height/r.offsetHeight;if(t){let t=e.nodeBefore,r=e.nodeAfter;if(t||r){let e=this.editorView.nodeDOM(this.cursorPos-(t?t.nodeSize:0));if(e){let i=e.getBoundingClientRect(),a=t?i.bottom:i.top;t&&r&&(a=(a+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*o;n={left:i.left,right:i.right,top:a-s,bottom:a+s}}}}if(!n){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;n={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement(`div`)),this.class&&(this.element.className=this.class),this.element.style.cssText=`position: absolute; z-index: 50; pointer-events: none;`,this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle(`prosemirror-dropcursor-block`,t),this.element.classList.toggle(`prosemirror-dropcursor-inline`,!t);let c,l;if(!s||s==document.body&&getComputedStyle(s).position==`static`)c=-pageXOffset,l=-pageYOffset;else{let e=s.getBoundingClientRect(),t=e.width/s.offsetWidth,n=e.height/s.offsetHeight;c=e.left-s.scrollLeft*t,l=e.top-s.scrollTop*n}this.element.style.left=(n.left-c)/a+`px`,this.element.style.top=(n.top-l)/o+`px`,this.element.style.width=(n.right-n.left)/a+`px`,this.element.style.height=(n.bottom-n.top)/o+`px`}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,a=typeof i==`function`?i(this.editorView,n,e):i;if(n&&!a){let e=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let n=t._(this.editorView.state.doc,e,this.editorView.dragging.slice);n!=null&&(e=n)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}},w=2,T=`var(--zt-primary)`,ee=r.u(()=>S({color:T,width:w})),E=class e extends t.o{constructor(e){super(e,e)}map(n,r){let i=n.resolve(r.map(this.head));return e.valid(i)?new e(i):t.o.near(i)}content(){return t.A.empty}eq(t){return t instanceof e&&t.head==this.head}toJSON(){return{type:`gapcursor`,pos:this.head}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for GapCursor.fromJSON`);return new e(t.resolve(n.pos))}getBookmark(){return new te(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!re(e)||!ie(e))return!1;let n=t.type.spec.allowGapCursor;if(n!=null)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(n,r,i=!1){search:for(;;){if(!i&&e.valid(n))return n;let a=n.pos,o=null;for(let t=n.depth;;t--){let i=n.node(t);if(r>0?n.indexAfter(t)<i.childCount:n.index(t)>0){o=i.child(r>0?n.indexAfter(t):n.index(t)-1);break}else if(t==0)return null;a+=r;let s=n.doc.resolve(a);if(e.valid(s))return s}for(;;){let s=r>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!t.r.isSelectable(o)){n=n.doc.resolve(a+o.nodeSize*r),i=!1;continue search}break}o=s,a+=r;let c=n.doc.resolve(a);if(e.valid(c))return c}return null}}};E.prototype.visible=!1,E.findFrom=E.findGapCursorFrom,t.o.jsonID(`gapcursor`,E);var te=class e{constructor(e){this.pos=e}map(t){return new e(t.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return E.valid(n)?new E(n):t.o.near(n)}};function ne(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function re(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n-1);;e=e.lastChild){if(e.childCount==0&&!e.inlineContent||ne(e.type))return!0;if(e.inlineContent)return!1}}return!0}function ie(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n);;e=e.firstChild){if(e.childCount==0&&!e.inlineContent||ne(e.type))return!0;if(e.inlineContent)return!1}}return!0}function ae(){return new t.i({props:{decorations:le,createSelectionBetween(e,t,n){return t.pos==n.pos&&E.valid(n)?new E(n):null},handleClick:ce,handleKeyDown:oe,handleDOMEvents:{beforeinput:D}}})}var oe=e.N({ArrowLeft:se(`horiz`,-1),ArrowRight:se(`horiz`,1),ArrowUp:se(`vert`,-1),ArrowDown:se(`vert`,1)});function se(e,n){let r=e==`vert`?n>0?`down`:`up`:n>0?`right`:`left`;return function(e,i,a){let o=e.selection,s=n>0?o.$to:o.$from,c=o.empty;if(o instanceof t.c){if(!a.endOfTextblock(r)||s.depth==0)return!1;c=!1,s=e.doc.resolve(n>0?s.after():s.before())}let l=E.findGapCursorFrom(s,n,c);return l?(i&&i(e.tr.setSelection(new E(l))),!0):!1}}function ce(e,n,r){if(!e||!e.editable)return!1;let i=e.state.doc.resolve(n);if(!E.valid(i))return!1;let a=e.posAtCoords({left:r.clientX,top:r.clientY});return a&&a.inside>-1&&t.r.isSelectable(e.state.doc.nodeAt(a.inside))?!1:(e.dispatch(e.state.tr.setSelection(new E(i))),!0)}function D(e,n){if(n.inputType!=`insertCompositionText`||!(e.state.selection instanceof E))return!1;let{$from:r}=e.state.selection,i=r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);if(!i)return!1;let a=t.w.empty;for(let e=i.length-1;e>=0;e--)a=t.w.from(i[e].createAndFill(null,a));let o=e.state.tr.replace(r.pos,r.pos,new t.A(a,0,0));return o.setSelection(t.c.near(o.doc.resolve(r.pos+1))),e.dispatch(o),!1}function le(t){if(!(t.selection instanceof E))return null;let n=document.createElement(`div`);return n.className=`ProseMirror-gapcursor`,e.M.create(t.doc,[e.j.widget(t.selection.head,n,{key:`gapcursor`})])}var ue=r.u(()=>ae()),de=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),fe=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),pe=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),me=e=>{let t=pe(e);return t.charAt(0).toUpperCase()+t.slice(1)},he={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`},ge=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},_e=(0,l.createContext)({}),ve=()=>(0,l.useContext)(_e),ye=(0,l.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:p=`currentColor`,className:m=``}=ve()??{},h=r??f?Number(n??d)*24/Number(t??u):n??d;return(0,l.createElement)(`svg`,{ref:c,...he,width:t??u??he.width,height:t??u??he.height,stroke:e??p,strokeWidth:h,className:de(`lucide`,m,i),...!a&&!ge(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,l.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),O=(e,t)=>{let n=(0,l.forwardRef)(({className:n,...r},i)=>(0,l.createElement)(ye,{ref:i,iconNode:t,className:de(`lucide-${fe(me(e))}`,`lucide-${e}`,n),...r}));return n.displayName=me(e),n},be=O(`bold`,[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]),xe=O(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Se=O(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Ce=O(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),we=O(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Te=O(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),Ee=O(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),De=O(`copy`,[[`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`}]]),Oe=O(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),ke=O(`heading-1`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`m17 12 3-2v8`,key:`1hhhft`}]]),Ae=O(`heading-2`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]),je=O(`heading-3`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2`,key:`68ncm8`}],[`path`,{d:`M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2`,key:`1ejuhz`}]]),Me=O(`heading-4`,[[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17 10v3a1 1 0 0 0 1 1h3`,key:`tj5zdr`}],[`path`,{d:`M21 10v8`,key:`1kdml4`}],[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}]]),Ne=O(`heading-6`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`circle`,{cx:`19`,cy:`16`,r:`2`,key:`15mx69`}],[`path`,{d:`M20 10c-2 2-3 3.5-3 6`,key:`f35dl0`}]]),Pe=O(`heading-5`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M17 13v-3h4`,key:`1nvgqp`}],[`path`,{d:`M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17`,key:`2nebdn`}]]),Fe=O(`image-off`,[[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}],[`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`,key:`1bzlo9`}],[`line`,{x1:`13.5`,x2:`6`,y1:`13.5`,y2:`21`,key:`1q0aeu`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`15`,key:`5mozeu`}],[`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`,key:`mmje98`}],[`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`,key:`43el77`}]]),Ie=O(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),Le=O(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Re=O(`italic`,[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]),ze=O(`link-2`,[[`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`}]]),Be=O(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),Ve=O(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),He=O(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),Ue=O(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),We=O(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Ge=O(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Ke=O(`sigma`,[[`path`,{d:`M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2`,key:`wuwx1p`}]]),qe=O(`square-code`,[[`path`,{d:`m10 9-3 3 3 3`,key:`1oro0q`}],[`path`,{d:`m14 15 3-3-3-3`,key:`bz13h7`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),Je=O(`square-function`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3`,key:`m1af9g`}],[`path`,{d:`M9 11.2h5.7`,key:`3zgcl2`}]]),Ye=O(`strikethrough`,[[`path`,{d:`M16 4H9a3 3 0 0 0-2.83 4`,key:`43sutm`}],[`path`,{d:`M14 12a4 4 0 0 1 0 8H6`,key:`nlfj13`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]),Xe=O(`table`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),Ze=O(`text-align-end`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M21 19H7`,key:`4cu937`}]]),Qe=O(`text-align-center`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M17 12H7`,key:`16if0g`}],[`path`,{d:`M19 19H5`,key:`vjpgq2`}]]),$e=O(`text-align-start`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]]),et=O(`text-quote`,[[`path`,{d:`M17 5H3`,key:`1cn7zz`}],[`path`,{d:`M21 12H8`,key:`scolzb`}],[`path`,{d:`M21 19H8`,key:`13qgcb`}],[`path`,{d:`M3 12v7`,key:`1ri8j3`}]]),tt=O(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),nt=O(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),rt=O(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),k=e=>typeof e==`string`,it=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},at=e=>e==null?``:String(e),ot=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},st=/###/g,ct=e=>e&&e.includes(`###`)?e.replace(st,`.`):e,lt=e=>!e||k(e),ut=(e,t,n)=>{let r=k(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(lt(e))return{};let t=ct(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return lt(e)?{}:{obj:e,k:ct(r[i])}},dt=(e,t,n)=>{let{obj:r,k:i}=ut(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=ut(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=ut(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},ft=(e,t,n,r)=>{let{obj:i,k:a}=ut(e,t,Object);i[a]=i[a]||[],i[a].push(n)},pt=(e,t)=>{let{obj:n,k:r}=ut(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},mt=(e,t,n)=>{let r=pt(e,n);return r===void 0?pt(t,n):r},ht=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?k(e[r])||e[r]instanceof String||k(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):ht(e[r],t[r],n):e[r]=t[r]);return e},gt=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),_t={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},vt=e=>k(e)?e.replace(/[&<>"'\/]/g,e=>_t[e]):e,yt=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},bt=[` `,`,`,`?`,`!`,`;`],xt=new yt(20),St=(e,t,n)=>{t||=``,n||=``;let r=bt.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=xt.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Ct=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},wt=e=>e?.replace(/_/g,`-`),Tt={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},Et=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||Tt,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>k(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),k(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Dt=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},Ot=class extends Dt{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):k(n)&&i?o.push(...n.split(i)):o.push(n)));let s=pt(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!k(n)?s:Ct(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),dt(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(k(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=pt(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?ht(s,n,i):s={...s,...n},dt(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},kt={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},At=Symbol(`i18next/PATH_KEY`);function jt(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===At?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Mt(e,t){let{[At]:n}=e(jt()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var Nt=e=>!k(e)&&typeof e!=`boolean`&&typeof e!=`number`,Pt=class e extends Dt{constructor(e,t={}){super(),ot([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=Et.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=Nt(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!St(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:k(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:k(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=Mt(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?Mt(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!k(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,ee=m;y&&!m&&x&&(ee=T);let E=Nt(ee),te=Object.prototype.toString.apply(ee);if(y&&ee&&E&&!_.includes(te)&&!(k(v)&&Array.isArray(ee))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,ee,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(ee),t=e?[]:{},n=e?g:h;for(let e in ee)if(Object.prototype.hasOwnProperty.call(ee,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:Nt(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=ee[e])}m=t}}else if(y&&k(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=k(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!k(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=k(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=kt.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return k(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?Mt(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!k(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(k(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!k(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},Ft=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Et.create(`languageUtils`)}getScriptPartFromCode(e){if(e=wt(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=wt(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(k(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),k(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return k(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):k(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},It={zero:0,one:1,two:2,few:3,many:4,other:5},Lt={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},Rt=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=Et.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=wt(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),Lt;if(!e.match(/-|_/))return Lt;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>It[e]-It[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},zt=(e,t,n,r=`.`,i=!0)=>{let a=mt(e,t,n);return!a&&i&&k(n)&&(a=Ct(e,n,r),a===void 0&&(a=Ct(t,n,r))),a},Bt=e=>e.replace(/\$/g,`$$$$`),Vt=class{constructor(e={}){this.logger=Et.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?vt:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?gt(i):a||`{{`,this.suffix=o?gt(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?gt(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?gt(l):``,this.nestingPrefix=d?gt(d):f||gt(`$t(`),this.nestingSuffix=p?gt(p):m||gt(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=zt(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(zt(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Bt(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Bt(this.escape(e)):Bt(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=k(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !k(a)&&!this.useRawValueToEscape&&(a=at(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${gt(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!k(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!k(i))return i;k(i)||(i=at(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},Ht=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Ut=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(wt(r),i),t[o]=s),s(n)}},Wt=e=>(t,n,r)=>e(wt(n),r)(t),Gt=class{constructor(e={}){this.logger=Et.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Ut:Wt;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ut(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&!i[0].includes(`)`)&&i.find(e=>e.includes(`)`))){let e=i.findIndex(e=>e.includes(`)`));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=Ht(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},Kt=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},qt=class extends Dt{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Et.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{ft(n.loaded,[i],a),Kt(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();k(e)&&(e=this.languageUtils.toResolveHierarchy(e)),k(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Jt=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),k(e[1])&&(t.defaultValue=e[1]),k(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Yt=e=>(k(e.ns)&&(e.ns=[e.ns]),k(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),k(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),Xt=()=>{},Zt=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Qt=class e extends Dt{constructor(e={},t){if(super(),this.options=Yt(e),this.services={},this.logger=Et,this.modules={external:[]},Zt(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(k(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=Jt();this.options={...n,...this.options,...Yt(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?Et.init(r(this.modules.logger),this.options):Et.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Gt;let t=new Ft(this.options);this.store=new Ot(this.options.resources,this.options);let n=this.services;n.logger=Et,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new Rt(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new Vt(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new qt(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new Pt(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=Xt,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=it(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Xt){let n=t,r=k(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=it();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=Xt,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&kt.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=it();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=k(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(k(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=Mt(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=Mt(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=Mt(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return k(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=it();return this.options.ns?(k(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=it();k(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new Ft(Jt());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Xt){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Ot(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...Jt().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new Vt(n)}return a.translator=new Pt(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();Qt.createInstance,Qt.dir,Qt.init,Qt.loadResources,Qt.reloadResources,Qt.use,Qt.changeLanguage,Qt.getFixedT,Qt.t,Qt.exists,Qt.setDefaultNamespace,Qt.hasLoadedNamespace,Qt.loadNamespaces,Qt.loadLanguages;var $t={placeholder:`Type / to open the command menu...`,initError:`Editor initialization failed. Please refresh the page and try again.`,editorAriaLabel:`Markdown editor`,mathBlockSourceAriaLabel:`Math block source`,mathBlockCopyAriaLabel:`Copy math source`,mathBlockDeleteAriaLabel:`Delete math block`,imageDeleteAriaLabel:`Delete image`,tableDeleteAriaLabel:`Delete table`,tableMoreAriaLabel:`More table actions`,tableAlignLeftAriaLabel:`Align current column left`,tableAlignCenterAriaLabel:`Align current column center`,tableAlignRightAriaLabel:`Align current column right`,tableInsertRowAboveLabel:`Insert row above`,tableInsertRowBelowLabel:`Insert row below`,tableInsertColumnLeftLabel:`Insert column left`,tableInsertColumnRightLabel:`Insert column right`,tableDeleteRowLabel:`Delete row`,tableDeleteColumnLabel:`Delete column`,mathRenderError:`Formula rendering failed. Please check the formula syntax.`,imageUploadDialogTitle:`Insert image`,imageUploadDropLabel:`Drop an image here, or choose a file`,imageUploadPickFileLabel:`Choose file`,imageUploadFileTab:`Upload file`,imageUploadUrlTab:`Image URL`,imageUploadUrlPlaceholder:`Paste image URL`,imageUploadInsertUrlLabel:`Insert URL`,imageUploadConfirmLabel:`Confirm`,imageUploadUploadingLabel:`Uploading...`,imageUploadCancelLabel:`Cancel`,imageUploadLoadFailed:`Image failed to load`,imageUploadReselectHint:`Click or drag to reselect`,imageUploadSupportsAndMax:`Supports image files, max {size}`,imageUploadFileTooLarge:`The image file is too large.`,imageUploadFileSizeExceeded:`Image size must not exceed {size}`,imageUploadInvalidType:`Please choose an image file.`,imageUploadFailed:`Image upload failed. Please try again.`,imageUploadFileReadFailed:`File read failed. Please try again.`,imageUploadInvalidUrl:`Please enter a valid image URL.`,imageUploadUrlRequired:`Please enter an image URL.`,imageUploadSelectOrEnterImage:`Please select an image or enter an image URL.`,imageUploadUploadingWait:`Image is uploading, please wait.`,selectionTooltipStrongTitle:`Bold`,selectionTooltipEmTitle:`Italic`,selectionTooltipStrikeTitle:`Strikethrough`,selectionTooltipInlineCodeTitle:`Inline code`,selectionTooltipLinkTitle:`Link`,selectionTooltipTransformLabel:`Turn into`,selectionTooltipTransformParagraphLabel:`Paragraph`,selectionTooltipTransformHeading1Label:`Heading 1`,selectionTooltipTransformHeading2Label:`Heading 2`,selectionTooltipTransformHeading3Label:`Heading 3`,selectionTooltipTransformHeading4Label:`Heading 4`,selectionTooltipTransformHeading5Label:`Heading 5`,selectionTooltipTransformHeading6Label:`Heading 6`,selectionTooltipTransformBulletListLabel:`Bullet list`,selectionTooltipTransformOrderedListLabel:`Ordered list`,selectionTooltipTransformTaskListLabel:`Task list`,selectionTooltipTransformBlockquoteLabel:`Blockquote`,selectionTooltipTransformCodeBlockLabel:`Code block`,selectionLinkInputPlaceholder:`Type or paste a link`,selectionLinkSaveAriaLabel:`Save link`,selectionLinkRemoveAriaLabel:`Remove link`,codeBlockLanguageSearchPlaceholder:`Search languages`,codeBlockLanguagePlainText:`text`,codeBlockCopyAriaLabel:`Copy code block`,codeBlockDeleteAriaLabel:`Delete code block`},en={placeholder:`请输入 / 打开命令菜单...`,initError:`编辑器初始化失败,请刷新页面后重试。`,editorAriaLabel:`Markdown 编辑器`,mathBlockSourceAriaLabel:`公式块源码`,mathBlockCopyAriaLabel:`复制公式源码`,mathBlockDeleteAriaLabel:`删除公式块`,imageDeleteAriaLabel:`删除图片`,tableDeleteAriaLabel:`删除表格`,tableMoreAriaLabel:`更多表格操作`,tableAlignLeftAriaLabel:`当前列左对齐`,tableAlignCenterAriaLabel:`当前列居中对齐`,tableAlignRightAriaLabel:`当前列右对齐`,tableInsertRowAboveLabel:`上方插入行`,tableInsertRowBelowLabel:`下方插入行`,tableInsertColumnLeftLabel:`左侧插入列`,tableInsertColumnRightLabel:`右侧插入列`,tableDeleteRowLabel:`删除该行`,tableDeleteColumnLabel:`删除该列`,mathRenderError:`公式渲染失败,请检查公式语法。`,imageUploadDialogTitle:`插入图片`,imageUploadDropLabel:`拖拽图片到这里,或选择文件`,imageUploadPickFileLabel:`选择文件`,imageUploadFileTab:`上传文件`,imageUploadUrlTab:`图片链接`,imageUploadUrlPlaceholder:`粘贴图片链接`,imageUploadInsertUrlLabel:`插入链接`,imageUploadConfirmLabel:`确认`,imageUploadUploadingLabel:`上传中...`,imageUploadCancelLabel:`取消`,imageUploadLoadFailed:`图片加载失败`,imageUploadReselectHint:`点击或拖拽重新选择`,imageUploadSupportsAndMax:`支持图片文件,最大 {size}`,imageUploadFileTooLarge:`图片文件过大。`,imageUploadFileSizeExceeded:`图片大小不能超过 {size}`,imageUploadInvalidType:`请选择图片文件。`,imageUploadFailed:`图片上传失败,请重试。`,imageUploadFileReadFailed:`文件读取失败,请重试。`,imageUploadInvalidUrl:`请输入有效的图片链接。`,imageUploadUrlRequired:`请输入图片链接。`,imageUploadSelectOrEnterImage:`请选择图片或输入图片链接。`,imageUploadUploadingWait:`图片正在上传,请稍候。`,selectionTooltipStrongTitle:`加粗`,selectionTooltipEmTitle:`斜体`,selectionTooltipStrikeTitle:`删除线`,selectionTooltipInlineCodeTitle:`行内代码`,selectionTooltipLinkTitle:`链接`,selectionTooltipTransformLabel:`转换为`,selectionTooltipTransformParagraphLabel:`段落`,selectionTooltipTransformHeading1Label:`标题 1`,selectionTooltipTransformHeading2Label:`标题 2`,selectionTooltipTransformHeading3Label:`标题 3`,selectionTooltipTransformHeading4Label:`标题 4`,selectionTooltipTransformHeading5Label:`标题 5`,selectionTooltipTransformHeading6Label:`标题 6`,selectionTooltipTransformBulletListLabel:`无序列表`,selectionTooltipTransformOrderedListLabel:`有序列表`,selectionTooltipTransformTaskListLabel:`任务列表`,selectionTooltipTransformBlockquoteLabel:`引用块`,selectionTooltipTransformCodeBlockLabel:`代码块`,selectionLinkInputPlaceholder:`输入或粘贴链接`,selectionLinkSaveAriaLabel:`保存链接`,selectionLinkRemoveAriaLabel:`移除链接`,codeBlockLanguageSearchPlaceholder:`搜索语言`,codeBlockLanguagePlainText:`text`,codeBlockCopyAriaLabel:`复制代码块`,codeBlockDeleteAriaLabel:`删除代码块`},tn=`zh-CN`,nn={"zh-CN":{translation:en},"en-US":{translation:$t}},rn=Qt.createInstance(),an=!1,on=()=>{an||=(rn.init({resources:nn,fallbackLng:tn,lng:tn,interpolation:{escapeValue:!1}}),!0)},sn=(e=tn,t,n)=>{on();let r={...rn.getResourceBundle(e,`translation`),...t};return n!==void 0&&(r.placeholder=n),r},cn=/^\s*width\s*:\s*(\d{1,3})%\s*;?\s*$/i,ln=`img`,un=e=>Math.min(100,Math.max(10,e)),dn=e=>`width: ${un(Math.round(e))}%;`,fn=e=>{if(typeof e!=`string`)return null;let t=e.match(cn);if(!t)return null;let n=Number(t[1]);return Number.isFinite(n)?un(n):null},pn=e=>{let t=fn(e);return t===null?``:dn(t)},mn=e=>typeof e==`string`?e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/</g,`<`).replace(/>/g,`>`):``,hn=e=>{if(typeof e!=`string`)return null;let t=document.createElement(`template`);t.innerHTML=e.trim();let n=t.content.firstElementChild;return!(n instanceof HTMLImageElement)||n.tagName.toLowerCase()!==ln?null:{src:n.getAttribute(`src`)??``,alt:n.getAttribute(`alt`)??``,title:n.getAttribute(`title`)??``,style:pn(n.getAttribute(`style`)??``)}},gn=e=>{let t=typeof e.title==`string`?e.title:``,n=t?` title="${mn(t)}"`:``;return`<img src="${mn(e.src)}" alt="${mn(e.alt)}"${n} style="${mn(e.style)}">`},_n=e=>t=>{let n=e(t);return{...n,attrs:{...n.attrs,style:{default:``,validate:`string`}},parseDOM:[{tag:`img[src]`,getAttrs:e=>{let t=e;return{src:t.getAttribute(`src`)??``,alt:t.getAttribute(`alt`)??``,title:t.getAttribute(`title`)??t.getAttribute(`alt`)??``,style:pn(t.getAttribute(`style`)??``)}}}],parseMarkdown:{match:e=>e.type===`image`||e.type===`html`&&hn(e.value)!==null,runner:(e,t,n)=>{if(t.type===`html`){let r=hn(t.value);r&&e.addNode(n,r);return}e.addNode(n,{src:String(t.url??``),alt:String(t.alt??``),title:String(t.title??``),style:``})}},toMarkdown:{match:e=>e.type.name===`image`,runner:(e,t)=>{let n=pn(t.attrs.style);if(n){e.addNode(`html`,void 0,gn({...t.attrs,style:n}));return}e.addNode(`image`,void 0,void 0,{title:t.attrs.title,url:t.attrs.src,alt:t.attrs.alt})}}}},vn=e=>{let t=e.get(a.t.key);e.set(a.t.key,_n(t))},yn=`image`,bn=`left`,xn=`right`,Sn=(e=>(0,u.renderToStaticMarkup)((0,l.createElement)(e,{size:14,strokeWidth:2,"aria-hidden":`true`})))(tt),Cn=e=>typeof e==`function`?e():null,wn=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,Tn=class{constructor(e,t,n,r){this.resizeState=null,this.handleDeleteClick=e=>{e.preventDefault(),e.stopPropagation(),wn(this.view)&&this.deleteCurrentImage()},this.handleResizePointerDown=e=>{if(e.preventDefault(),e.stopPropagation(),!wn(this.view))return;let t=e.currentTarget;if(!(t instanceof HTMLElement))return;let n=t.dataset.side===bn?bn:xn,r=this.dom.parentElement;if(!r)return;let i=this.imageElement.getBoundingClientRect(),a=r.getBoundingClientRect();if(i.width<=0||a.width<=0)return;let o=un(i.width/a.width*100);this.resizeState={side:n,startClientX:e.clientX,startWidth:i.width,containerWidth:a.width,widthPercent:o},this.dom.dataset.resizing=`true`,this.applyPreviewWidth(o),window.addEventListener(`pointermove`,this.handleResizePointerMove),window.addEventListener(`pointerup`,this.handleResizePointerUp),window.addEventListener(`pointercancel`,this.handleResizePointerUp)},this.handleResizePointerMove=e=>{if(!this.resizeState)return;e.preventDefault();let t=e.clientX-this.resizeState.startClientX,n=this.resizeState.side===bn?-t:t,r=un((this.resizeState.startWidth+n)/this.resizeState.containerWidth*100);this.resizeState.widthPercent=r,this.applyPreviewWidth(r)},this.handleResizePointerUp=e=>{if(e.preventDefault(),!this.resizeState)return;let t=Math.round(this.resizeState.widthPercent);this.resizeState=null,delete this.dom.dataset.resizing,this.removeResizeWindowListeners(),this.commitImageWidth(t)},this.node=e,this.view=t,this.getPos=n,this.deleteAriaLabel=r.imageDeleteAriaLabel,this.dom=document.createElement(`span`),this.dom.dataset.type=yn,this.dom.className=`zt-md-image`,this.updateEditableState(),this.imageElement=document.createElement(`img`),this.leftResizeHandle=this.createResizeHandle(bn),this.rightResizeHandle=this.createResizeHandle(xn),this.actionsContainer=document.createElement(`span`),this.actionsContainer.className=`zt-md-image-actions`,this.deleteButton=document.createElement(`button`),this.deleteButton.type=`button`,this.deleteButton.className=`zt-md-image-action-button zt-md-image-action-button-danger`,this.deleteButton.setAttribute(`aria-label`,this.deleteAriaLabel),this.deleteButton.innerHTML=Sn,this.actionsContainer.appendChild(this.deleteButton),this.dom.append(this.imageElement,this.leftResizeHandle,this.rightResizeHandle,this.actionsContainer),this.syncFromNode(e),this.deleteButton.addEventListener(`click`,this.handleDeleteClick),this.leftResizeHandle.addEventListener(`pointerdown`,this.handleResizePointerDown),this.rightResizeHandle.addEventListener(`pointerdown`,this.handleResizePointerDown)}createResizeHandle(e){let t=document.createElement(`span`);return t.className=`zt-md-image-resize-handle zt-md-image-resize-handle-${e}`,t.dataset.side=e,t.setAttribute(`aria-hidden`,`true`),t}deleteCurrentImage(){let e=Cn(this.getPos);if(e===null)return;let t=this.view.state.tr.delete(e,e+this.node.nodeSize).scrollIntoView();this.view.dispatch(t),requestAnimationFrame(()=>{this.view.focus()})}updateEditableState(){this.dom.dataset.editable=wn(this.view)?`true`:`false`}removeResizeWindowListeners(){window.removeEventListener(`pointermove`,this.handleResizePointerMove),window.removeEventListener(`pointerup`,this.handleResizePointerUp),window.removeEventListener(`pointercancel`,this.handleResizePointerUp)}applyPreviewWidth(e){this.dom.style.width=`${Math.round(e)}%`,this.dom.dataset.hasWidth=`true`}commitImageWidth(e){let t=Cn(this.getPos);if(t===null)return;let n={...this.node.attrs,style:dn(e)},r=this.view.state.tr.setNodeMarkup(t,void 0,n);this.view.dispatch(r),requestAnimationFrame(()=>{this.view.focus()})}syncFromNode(e){this.updateEditableState();let t=typeof e.attrs.src==`string`?e.attrs.src:``,n=typeof e.attrs.alt==`string`?e.attrs.alt:``,r=typeof e.attrs.title==`string`?e.attrs.title:``,i=fn(pn(e.attrs.style));this.imageElement.setAttribute(`src`,t),this.imageElement.setAttribute(`alt`,n),r?this.imageElement.title=r:this.imageElement.removeAttribute(`title`),i===null?(this.dom.style.removeProperty(`width`),delete this.dom.dataset.hasWidth):(this.dom.style.width=`${i}%`,this.dom.dataset.hasWidth=`true`)}update(e){return e.type.name===yn?(this.node=e,this.syncFromNode(e),!0):!1}stopEvent(e){let t=e.target;return t instanceof Node?this.deleteButton.contains(t)||this.leftResizeHandle.contains(t)||this.rightResizeHandle.contains(t)||this.resizeState!==null:!1}ignoreMutation(){return!0}destroy(){this.removeResizeWindowListeners(),this.deleteButton.removeEventListener(`click`,this.handleDeleteClick),this.leftResizeHandle.removeEventListener(`pointerdown`,this.handleResizePointerDown),this.rightResizeHandle.removeEventListener(`pointerdown`,this.handleResizePointerDown)}},En=(e=sn())=>(t,n,r)=>new Tn(t,n,typeof r==`function`?()=>{let e=r();return typeof e==`number`?e:0}:!1,e),Dn=e.xt((e=>{var t=require("react-dom");if(process.env.NODE_ENV===`production`)e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot;else{var n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e.createRoot=function(e,r){n.usingClientEntryPoint=!0;try{return t.createRoot(e,r)}finally{n.usingClientEntryPoint=!1}},e.hydrateRoot=function(e,r,i){n.usingClientEntryPoint=!0;try{return t.hydrateRoot(e,r,i)}finally{n.usingClientEntryPoint=!1}}}}))(),On=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,kn=m,An=(e,t)=>n=>{if(t?.variants==null)return kn(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=On(t)||On(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return kn(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},jn=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Mn=(e,t)=>({classGroupId:e,validator:t}),Nn=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Pn=`-`,Fn=[],In=`arbitrary..`,Ln=e=>{let t=Bn(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return zn(e);let n=e.split(Pn);return Rn(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?jn(i,t):t:i||Fn}return n[e]||Fn}}},Rn=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Rn(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Pn):e.slice(t).join(Pn),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},zn=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?In+r:void 0})(),Bn=e=>{let{theme:t,classGroups:n}=e;return Vn(n,t)},Vn=(e,t)=>{let n=Nn();for(let r in e){let i=e[r];Hn(i,n,r,t)}return n},Hn=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Un(i,t,n,r)}},Un=(e,t,n,r)=>{if(typeof e==`string`){Wn(e,t,n);return}if(typeof e==`function`){Gn(e,t,n,r);return}Kn(e,t,n,r)},Wn=(e,t,n)=>{let r=e===``?t:qn(t,e);r.classGroupId=n},Gn=(e,t,n,r)=>{if(Jn(e)){Hn(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Mn(n,e))},Kn=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Hn(o,qn(t,a),n,r)}},qn=(e,t)=>{let n=e,r=t.split(Pn),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Nn(),n.nextPart.set(t,i)),n=i}return n},Jn=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Yn=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Xn=`!`,Zn=`:`,Qn=[],$n=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),er=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Zn){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Xn)?(c=s.slice(0,-1),l=!0):s.startsWith(Xn)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return $n(t,l,c,u)};if(t){let e=t+Zn,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):$n(Qn,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},tr=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},nr=e=>({cache:Yn(e.cacheSize),parseClassName:er(e),sortModifiers:tr(e),postfixLookupClassGroupIds:rr(e),...Ln(e)}),rr=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},ir=/\s+/,ar=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(ir),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Xn:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},or=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=sr(n))&&(i&&(i+=` `),i+=r);return i},sr=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=sr(e[r]))&&(n&&(n+=` `),n+=t);return n},cr=(e,...t)=>{let n,r,i,a,o=o=>(n=nr(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ar(e,n);return i(e,a),a};return a=o,(...e)=>a(or(...e))},lr=[],ur=e=>{let t=t=>t[e]||lr;return t.isThemeGetter=!0,t},dr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,mr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hr=/\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$/,gr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_r=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yr=e=>pr.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),br=e=>!!e&&Number.isInteger(Number(e)),xr=e=>e.endsWith(`%`)&&A(e.slice(0,-1)),Sr=e=>mr.test(e),Cr=()=>!0,wr=e=>hr.test(e)&&!gr.test(e),Tr=()=>!1,Er=e=>_r.test(e),Dr=e=>vr.test(e),Or=e=>!j(e)&&!M(e),kr=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ar=e=>Gr(e,Yr,Tr),j=e=>dr.test(e),jr=e=>Gr(e,Xr,wr),Mr=e=>Gr(e,Zr,A),Nr=e=>Gr(e,$r,Cr),Pr=e=>Gr(e,Qr,Tr),Fr=e=>Gr(e,qr,Tr),Ir=e=>Gr(e,Jr,Dr),Lr=e=>Gr(e,ei,Er),M=e=>fr.test(e),Rr=e=>Kr(e,Xr),zr=e=>Kr(e,Qr),Br=e=>Kr(e,qr),Vr=e=>Kr(e,Yr),Hr=e=>Kr(e,Jr),Ur=e=>Kr(e,ei,!0),Wr=e=>Kr(e,$r,!0),Gr=(e,t,n)=>{let r=dr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Kr=(e,t,n=!1)=>{let r=fr.exec(e);return r?r[1]?t(r[1]):n:!1},qr=e=>e===`position`||e===`percentage`,Jr=e=>e===`image`||e===`url`,Yr=e=>e===`length`||e===`size`||e===`bg-size`,Xr=e=>e===`length`,Zr=e=>e===`number`,Qr=e=>e===`family-name`,$r=e=>e===`number`||e===`weight`,ei=e=>e===`shadow`,ti=cr(()=>{let e=ur(`color`),t=ur(`font`),n=ur(`text`),r=ur(`font-weight`),i=ur(`tracking`),a=ur(`leading`),o=ur(`breakpoint`),s=ur(`container`),c=ur(`spacing`),l=ur(`radius`),u=ur(`shadow`),d=ur(`inset-shadow`),f=ur(`text-shadow`),p=ur(`drop-shadow`),m=ur(`blur`),h=ur(`perspective`),g=ur(`aspect`),_=ur(`ease`),v=ur(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),M,j],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[M,j,c],T=()=>[yr,`full`,`auto`,...w()],ee=()=>[br,`none`,`subgrid`,M,j],E=()=>[`auto`,{span:[`full`,br,M,j]},br,M,j],te=()=>[br,`auto`,M,j],ne=()=>[`auto`,`min`,`max`,`fr`,M,j],re=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ie=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],ae=()=>[`auto`,...w()],oe=()=>[yr,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],se=()=>[yr,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ce=()=>[yr,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],D=()=>[e,M,j],le=()=>[...b(),Br,Fr,{position:[M,j]}],ue=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],de=()=>[`auto`,`cover`,`contain`,Vr,Ar,{size:[M,j]}],fe=()=>[xr,Rr,jr],pe=()=>[``,`none`,`full`,l,M,j],me=()=>[``,A,Rr,jr],he=()=>[`solid`,`dashed`,`dotted`,`double`],ge=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],_e=()=>[A,xr,Br,Fr],ve=()=>[``,`none`,m,M,j],ye=()=>[`none`,A,M,j],O=()=>[`none`,A,M,j],be=()=>[A,M,j],xe=()=>[yr,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Sr],breakpoint:[Sr],color:[Cr],container:[Sr],"drop-shadow":[Sr],ease:[`in`,`out`,`in-out`],font:[Or],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Sr],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Sr],shadow:[Sr],spacing:[`px`,A],text:[Sr],"text-shadow":[Sr],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,yr,j,M,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,M,j]}],"container-named":[kr],columns:[{columns:[A,j,M,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[br,`auto`,M,j]}],basis:[{basis:[yr,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[A,yr,`auto`,`initial`,`none`,j]}],grow:[{grow:[``,A,M,j]}],shrink:[{shrink:[``,A,M,j]}],order:[{order:[br,`first`,`last`,`none`,M,j]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...re(),`normal`]}],"justify-items":[{"justify-items":[...ie(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ie()]}],"align-content":[{content:[`normal`,...re()]}],"align-items":[{items:[...ie(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ie(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...ie(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ie()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:ae()}],mx:[{mx:ae()}],my:[{my:ae()}],ms:[{ms:ae()}],me:[{me:ae()}],mbs:[{mbs:ae()}],mbe:[{mbe:ae()}],mt:[{mt:ae()}],mr:[{mr:ae()}],mb:[{mb:ae()}],ml:[{ml:ae()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:oe()}],"inline-size":[{inline:[`auto`,...se()]}],"min-inline-size":[{"min-inline":[`auto`,...se()]}],"max-inline-size":[{"max-inline":[`none`,...se()]}],"block-size":[{block:[`auto`,...ce()]}],"min-block-size":[{"min-block":[`auto`,...ce()]}],"max-block-size":[{"max-block":[`none`,...ce()]}],w:[{w:[s,`screen`,...oe()]}],"min-w":[{"min-w":[s,`screen`,`none`,...oe()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...oe()]}],h:[{h:[`screen`,`lh`,...oe()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...oe()]}],"max-h":[{"max-h":[`screen`,`lh`,...oe()]}],"font-size":[{text:[`base`,n,Rr,jr]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Wr,Nr]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,xr,j]}],"font-family":[{font:[zr,Pr,t]}],"font-features":[{"font-features":[j]}],"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:[i,M,j]}],"line-clamp":[{"line-clamp":[A,`none`,M,Mr]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,M,j]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,M,j]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...he(),`wavy`]}],"text-decoration-thickness":[{decoration:[A,`from-font`,`auto`,M,jr]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[A,`auto`,M,j]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[br,M,j]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,M,j]}],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`,M,j]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:ue()}],"bg-size":[{bg:de()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},br,M,j],radial:[``,M,j],conic:[br,M,j]},Hr,Ir]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:pe()}],"rounded-s":[{"rounded-s":pe()}],"rounded-e":[{"rounded-e":pe()}],"rounded-t":[{"rounded-t":pe()}],"rounded-r":[{"rounded-r":pe()}],"rounded-b":[{"rounded-b":pe()}],"rounded-l":[{"rounded-l":pe()}],"rounded-ss":[{"rounded-ss":pe()}],"rounded-se":[{"rounded-se":pe()}],"rounded-ee":[{"rounded-ee":pe()}],"rounded-es":[{"rounded-es":pe()}],"rounded-tl":[{"rounded-tl":pe()}],"rounded-tr":[{"rounded-tr":pe()}],"rounded-br":[{"rounded-br":pe()}],"rounded-bl":[{"rounded-bl":pe()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-bs":[{"border-bs":me()}],"border-w-be":[{"border-be":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":me()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...he(),`hidden`,`none`]}],"divide-style":[{divide:[...he(),`hidden`,`none`]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-bs":[{"border-bs":D()}],"border-color-be":[{"border-be":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...he(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[A,M,j]}],"outline-w":[{outline:[``,A,Rr,jr]}],"outline-color":[{outline:D()}],shadow:[{shadow:[``,`none`,u,Ur,Lr]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ur,Lr]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:me()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[A,jr]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":[`none`,f,Ur,Lr]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[A,M,j]}],"mix-blend":[{"mix-blend":[...ge(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ge()}],"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":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":_e()}],"mask-image-linear-to-pos":[{"mask-linear-to":_e()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":_e()}],"mask-image-t-to-pos":[{"mask-t-to":_e()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":_e()}],"mask-image-r-to-pos":[{"mask-r-to":_e()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":_e()}],"mask-image-b-to-pos":[{"mask-b-to":_e()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":_e()}],"mask-image-l-to-pos":[{"mask-l-to":_e()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":_e()}],"mask-image-x-to-pos":[{"mask-x-to":_e()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":_e()}],"mask-image-y-to-pos":[{"mask-y-to":_e()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[M,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":_e()}],"mask-image-radial-to-pos":[{"mask-radial-to":_e()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":_e()}],"mask-image-conic-to-pos":[{"mask-conic-to":_e()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:ue()}],"mask-size":[{mask:de()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,M,j]}],filter:[{filter:[``,`none`,M,j]}],blur:[{blur:ve()}],brightness:[{brightness:[A,M,j]}],contrast:[{contrast:[A,M,j]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ur,Lr]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:[``,A,M,j]}],"hue-rotate":[{"hue-rotate":[A,M,j]}],invert:[{invert:[``,A,M,j]}],saturate:[{saturate:[A,M,j]}],sepia:[{sepia:[``,A,M,j]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,M,j]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[A,M,j]}],"backdrop-contrast":[{"backdrop-contrast":[A,M,j]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,A,M,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,M,j]}],"backdrop-invert":[{"backdrop-invert":[``,A,M,j]}],"backdrop-opacity":[{"backdrop-opacity":[A,M,j]}],"backdrop-saturate":[{"backdrop-saturate":[A,M,j]}],"backdrop-sepia":[{"backdrop-sepia":[``,A,M,j]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,M,j]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[A,`initial`,M,j]}],ease:[{ease:[`linear`,`initial`,_,M,j]}],delay:[{delay:[A,M,j]}],animate:[{animate:[`none`,v,M,j]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,M,j]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:O()}],"scale-x":[{"scale-x":O()}],"scale-y":[{"scale-y":O()}],"scale-z":[{"scale-z":O()}],"scale-3d":[`scale-3d`],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[M,j,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:xe()}],"translate-x":[{"translate-x":xe()}],"translate-y":[{"translate-y":xe()}],"translate-z":[{"translate-z":xe()}],"translate-none":[`translate-none`],zoom:[{zoom:[br,M,j]}],accent:[{accent:D()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:D()}],"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`,M,j]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":D()}],"scrollbar-track-color":[{"scrollbar-track":D()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,M,j]}],fill:[{fill:[`none`,...D()]}],"stroke-w":[{stroke:[A,Rr,jr,Mr]}],stroke:[{stroke:[`none`,...D()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-bs`,`border-w-be`,`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-bs`,`border-color-be`,`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-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function ni(...e){return ti(m(e))}var ri=An(`group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}}),ii=l.forwardRef(function({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i},a){return(0,f.jsx)(r?d.Slot.Root:`button`,{ref:a,"data-slot":`button`,"data-variant":t,"data-size":n,className:ni(ri({variant:t,size:n,className:e})),...i})});function ai({...e}){return(0,f.jsx)(d.Dialog.Root,{"data-slot":`dialog`,...e})}l.forwardRef(function({...e},t){return(0,f.jsx)(d.Dialog.Trigger,{ref:t,"data-slot":`dialog-trigger`,...e})});function oi({container:e,...t}){return(0,f.jsx)(d.Dialog.Portal,{"data-slot":`dialog-portal`,container:e??void 0,...t})}l.forwardRef(function({...e},t){return(0,f.jsx)(d.Dialog.Close,{ref:t,"data-slot":`dialog-close`,...e})});var si=l.forwardRef(function({className:e,...t},n){return(0,f.jsx)(d.Dialog.Overlay,{ref:n,"data-slot":`dialog-overlay`,className:ni(`fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}),ci=l.forwardRef(function({container:e,className:t,children:n,showCloseButton:r=!0,...i},a){return(0,f.jsxs)(oi,{container:e,children:[(0,f.jsx)(si,{}),(0,f.jsxs)(d.Dialog.Content,{ref:a,"data-slot":`dialog-content`,className:ni(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,t),...i,children:[n,r&&(0,f.jsx)(d.Dialog.Close,{"data-slot":`dialog-close`,asChild:!0,children:(0,f.jsxs)(ii,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`,children:[(0,f.jsx)(rt,{}),(0,f.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})]})]})});function li({className:e,...t}){return(0,f.jsx)(`div`,{"data-slot":`dialog-header`,className:ni(`flex flex-col gap-2`,e),...t})}function ui({className:e,showCloseButton:t=!1,children:n,...r}){return(0,f.jsxs)(`div`,{"data-slot":`dialog-footer`,className:ni(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,f.jsx)(d.Dialog.Close,{asChild:!0,children:(0,f.jsx)(ii,{variant:`outline`,children:`Close`})})]})}var di=l.forwardRef(function({className:e,...t},n){return(0,f.jsx)(d.Dialog.Title,{ref:n,"data-slot":`dialog-title`,className:ni(`text-base leading-none font-medium`,e),...t})}),fi=l.forwardRef(function({className:e,...t},n){return(0,f.jsx)(d.Dialog.Description,{ref:n,"data-slot":`dialog-description`,className:ni(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}),pi=5*1024*1024,mi=`zt-md-image-upload-file-input`,hi=e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;if(typeof e==`string`){t(e);return}n(Error(`Invalid file result`))},r.onerror=()=>{n(r.error??Error(`File read failed`))},r.readAsDataURL(e)}),gi=e=>e<1024*1024?`${Math.ceil(e/1024)}KB`:`${(e/1024/1024).toFixed(1)}MB`,_i=e=>{try{let t=new URL(e);return!!(t.protocol&&t.host)}catch{return!1}},vi=({messages:e,portalContainer:t,imageUpload:n,onConfirm:r,onCancel:i})=>{let[a,o]=(0,l.useState)(`file`),[s,c]=(0,l.useState)(null),[u,d]=(0,l.useState)(``),[p,m]=(0,l.useState)(!1),[h,g]=(0,l.useState)(``),[_,v]=(0,l.useState)(!1),[y,b]=(0,l.useState)(!1),x=(0,l.useRef)(null),S=(0,l.useRef)(null),C=(0,l.useRef)(!0),w=n?.maxFileSize??pi,T=_,ee=a===`file`&&(_||!!u),E=a===`file`&&!!u&&!_,te=!u||!!h||_||p,ne=(0,l.useCallback)(async t=>{if(!t.type.startsWith(`image/`)){c(null),d(``),g(e.imageUploadInvalidType);return}if(t.size>w){c(null),d(``),g(e.imageUploadFileSizeExceeded.replace(`{size}`,gi(w)));return}g(``),c(t),m(!1),v(!0);try{let r=n?.upload?await n.upload(t):await hi(t);if(!C.current)return;if(!r){d(``),g(e.imageUploadFailed);return}d(r)}catch(t){if(!C.current)return;let r=n?.upload?t instanceof Error?t.message:e.imageUploadFailed:e.imageUploadFileReadFailed;d(``),g(r||e.imageUploadFailed)}finally{C.current&&v(!1)}},[n,w,e]),re=(0,l.useCallback)(()=>{let e=x.current?.files?.[0];e&&(ne(e),x.current.value=``)},[ne]),ie=(0,l.useCallback)(t=>{if(c(null),m(!1),d(t),!t){g(``);return}g(_i(t)?``:e.imageUploadInvalidUrl)},[e.imageUploadInvalidUrl]),ae=(0,l.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),!T&&(e.dataTransfer.dropEffect=`copy`,b(!0))},[T]),oe=(0,l.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),e.currentTarget.contains(e.relatedTarget)||b(!1)},[]),se=(0,l.useCallback)(e=>{if(e.preventDefault(),e.stopPropagation(),b(!1),T)return;let t=e.dataTransfer.files?.[0];t&&ne(t)},[T,ne]),ce=(0,l.useCallback)(e=>{T||(o(e),c(null),d(``),m(!1),g(``))},[T]),D=(0,l.useCallback)(()=>{if(_){g(e.imageUploadUploadingWait);return}if(!u){g(e.imageUploadSelectOrEnterImage);return}if(a===`url`&&!_i(u)){g(e.imageUploadInvalidUrl);return}r({src:u,alt:a===`file`?s?.name??``:``})},[u,_,e.imageUploadInvalidUrl,e.imageUploadSelectOrEnterImage,e.imageUploadUploadingWait,r,s,a]),le=(0,l.useCallback)(e=>{e.key===`Enter`&&!e.shiftKey&&a===`url`&&(e.preventDefault(),D())},[D,a]);return(0,l.useEffect)(()=>(C.current=!0,()=>{C.current=!1}),[]),(0,l.useEffect)(()=>{a===`url`&&S.current?.focus()},[a]),(0,f.jsx)(ai,{open:!0,onOpenChange:e=>!e&&i(),children:(0,f.jsxs)(ci,{container:t,className:`zt-md-image-upload-content-shell max-w-2xl sm:!max-w-2xl max-h-[90vh] overflow-hidden flex flex-col`,showCloseButton:!1,onMouseDown:e=>e.stopPropagation(),onKeyDown:le,children:[(0,f.jsxs)(li,{children:[(0,f.jsx)(di,{children:e.imageUploadDialogTitle}),(0,f.jsx)(fi,{className:`sr-only`,children:`${e.imageUploadFileTab},${e.imageUploadUrlTab}`})]}),(0,f.jsxs)(`div`,{className:`zt-md-image-upload-segmented`,role:`tablist`,"aria-label":e.imageUploadDialogTitle,children:[(0,f.jsx)(ii,{type:`button`,variant:`ghost`,className:`zt-md-image-upload-segment`,"data-active":a===`file`?`true`:`false`,disabled:T,onClick:()=>ce(`file`),children:e.imageUploadFileTab}),(0,f.jsx)(ii,{type:`button`,variant:`ghost`,className:`zt-md-image-upload-segment`,"data-active":a===`url`?`true`:`false`,disabled:T,onClick:()=>ce(`url`),children:e.imageUploadUrlTab})]}),(0,f.jsxs)(`div`,{className:`zt-md-image-upload-content`,children:[a===`file`?(0,f.jsxs)(`div`,{className:`zt-md-image-upload-file`,children:[(0,f.jsx)(`input`,{ref:x,id:mi,type:`file`,accept:`image/*`,className:`zt-md-image-upload-file-input`,disabled:T,onChange:re}),(0,f.jsx)(`label`,{htmlFor:mi,className:`zt-md-image-upload-file-label`,"data-drag-over":y?`true`:`false`,"data-has-preview":u?`true`:`false`,"data-disabled":T?`true`:`false`,"aria-disabled":T,onClick:e=>{T&&e.preventDefault()},onDragOver:ae,onDragLeave:oe,onDrop:se,children:_?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`div`,{className:`zt-md-image-upload-file-icon`,children:(0,f.jsx)(We,{size:40,className:`zt-md-image-upload-spin`})}),(0,f.jsx)(`div`,{className:`zt-md-image-upload-file-text`,children:e.imageUploadUploadingLabel})]}):u?(0,f.jsx)(`div`,{className:`zt-md-image-upload-file-preview`,children:p?(0,f.jsxs)(`div`,{className:`zt-md-image-upload-preview-error`,children:[(0,f.jsx)(Fe,{size:40}),(0,f.jsx)(`span`,{children:e.imageUploadLoadFailed})]}):(0,f.jsx)(`img`,{src:u,alt:``,onLoad:()=>m(!1),onError:()=>m(!0)})}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`div`,{className:`zt-md-image-upload-file-icon`,children:(0,f.jsx)(Ie,{size:40})}),(0,f.jsx)(`div`,{className:`zt-md-image-upload-file-text`,children:e.imageUploadDropLabel}),(0,f.jsx)(`div`,{className:`zt-md-image-upload-file-hint`,children:e.imageUploadSupportsAndMax.replace(`{size}`,gi(w))})]})}),ee?(0,f.jsx)(`div`,{className:`zt-md-image-upload-file-hint zt-md-image-upload-reselect-hint`,"data-placeholder":E?`false`:`true`,children:e.imageUploadReselectHint}):null]}):(0,f.jsxs)(`div`,{className:`zt-md-image-upload-url`,children:[(0,f.jsx)(`label`,{className:`zt-md-image-upload-label`,htmlFor:`zt-md-image-upload-url-input`,children:e.imageUploadUrlTab}),(0,f.jsx)(`input`,{ref:S,id:`zt-md-image-upload-url-input`,type:`url`,className:`zt-md-image-upload-url-input`,placeholder:e.imageUploadUrlPlaceholder,value:u,disabled:T,onChange:e=>ie(e.target.value)}),u&&!h?(0,f.jsx)(`div`,{className:`zt-md-image-upload-url-preview`,children:p?(0,f.jsxs)(`div`,{className:`zt-md-image-upload-preview-error`,children:[(0,f.jsx)(Fe,{size:32}),(0,f.jsx)(`span`,{children:e.imageUploadLoadFailed})]}):(0,f.jsx)(`img`,{src:u,alt:``,onLoad:()=>m(!1),onError:()=>m(!0)})}):null]}),h?(0,f.jsxs)(`div`,{className:`zt-md-image-upload-error`,role:`alert`,"aria-live":`polite`,children:[(0,f.jsx)(Ce,{size:16,className:`zt-md-image-upload-error-icon`}),(0,f.jsx)(`span`,{children:h})]}):null]}),(0,f.jsxs)(ui,{children:[(0,f.jsx)(ii,{type:`button`,variant:`outline`,onClick:i,children:e.imageUploadCancelLabel}),(0,f.jsx)(ii,{type:`button`,disabled:te,onClick:D,children:_?e.imageUploadUploadingLabel:e.imageUploadConfirmLabel})]})]})})},yi=(e,t)=>{let n=e?.state?.schema?.nodes?.image;if(!n||!e?.dispatch)return!1;let r=n.create(t);return e.dispatch(e.state.tr.replaceSelectionWith(r).scrollIntoView()),e.focus(),!0},bi=e=>{let t=e.portalContainer.closest(`.zt-md`)?.classList.contains(`zt-md-dark`)?`zt-md-dark`:`zt-md-light`,n=document.createElement(`div`);n.className=`zt-md-image-upload-host ${t}`,document.body.appendChild(n);let r=(0,Dn.createRoot)(n),i=()=>{queueMicrotask(()=>{r.unmount(),n.remove(),e.view?.focus?.()})};r.render((0,l.createElement)(vi,{messages:e.messages,portalContainer:n,imageUpload:e.imageUpload,onConfirm:t=>{yi(e.view,{src:t.src,alt:t.alt,title:``}),i()},onCancel:i}))},xi=`math_block`,Si=`Backspace`,Ci=e=>e.key!==Si||e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey,wi=e=>{if(e.parent.type.name!==`paragraph`||e.parentOffset!==0||e.depth<1)return null;let t=e.index(e.depth-1);if(t<=0)return null;let n=e.node(e.depth-1).child(t-1);return n.type.name===xi?{previousBlock:n,previousBlockStart:e.before(e.depth)-n.nodeSize}:null},Ti=(e,n)=>{let{selection:r}=e.state;if(!r.empty)return!1;let i=r.$from,a=wi(i);if(!a)return!1;let o=i.parent.textContent.length===0,s=i.before(i.depth),c=s+i.parent.nodeSize;n.preventDefault();let l=e.state.tr;return o&&l.delete(s,c),l.setSelection(t.r.create(l.doc,a.previousBlockStart)).scrollIntoView(),e.dispatch(l),!0},Ei=r.u(()=>new t.i({key:new t.a(`zt-md-math-backspace-entry`),props:{handleKeyDown:(e,t)=>Ci(t)?!1:Ti(e,t)}})),N=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},Di=/([A-Z])/g,Oi=e=>e.replace(Di,`-$1`).toLowerCase(),ki={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},Ai=/[&><"']/g,ji=e=>String(e).replace(Ai,e=>ki[e]),Mi=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?Mi(e.body[0]):e:e.type===`font`?Mi(e.body):e,Ni=new Set([`mathord`,`textord`,`atom`]),Pi=e=>Ni.has(Mi(e).type),Fi=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},Ii={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)=>(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 Li(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function Ri(e){return e.default===void 0?Li(Array.isArray(e.type)?e.type[0]:e.type):e.default}function zi(e,t,n,r){var i=n[t];e[t]=i===void 0?Ri(r):r.processor?r.processor(i):i}var Bi=class{constructor(e){e===void 0&&(e={}),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,e||={};for(var t of Object.keys(Ii)){var n=Ii[t];n&&zi(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new N(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=Fi(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Vi=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Xi[Zi[this.id]]}sub(){return Xi[Qi[this.id]]}fracNum(){return Xi[$i[this.id]]}fracDen(){return Xi[ea[this.id]]}cramp(){return Xi[ta[this.id]]}text(){return Xi[na[this.id]]}isTight(){return this.size>=2}},Hi=0,Ui=1,Wi=2,Gi=3,Ki=4,qi=5,Ji=6,Yi=7,Xi=[new Vi(Hi,0,!1),new Vi(Ui,0,!0),new Vi(Wi,1,!1),new Vi(Gi,1,!0),new Vi(Ki,2,!1),new Vi(qi,2,!0),new Vi(Ji,3,!1),new Vi(Yi,3,!0)],Zi=[Ki,qi,Ki,qi,Ji,Yi,Ji,Yi],Qi=[qi,qi,qi,qi,Yi,Yi,Yi,Yi],$i=[Wi,Gi,Ki,qi,Ji,Yi,Ji,Yi],ea=[Gi,Gi,qi,qi,Yi,Yi,Yi,Yi],ta=[Ui,Ui,Gi,Gi,qi,qi,Yi,Yi],na=[Hi,Ui,Wi,Gi,Wi,Gi,Wi,Gi],P={DISPLAY:Xi[Hi],TEXT:Xi[Wi],SCRIPT:Xi[Ki],SCRIPTSCRIPT:Xi[Ji]},ra=[{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 ia(e){for(var t=0;t<ra.length;t++)for(var n=ra[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var aa=[];ra.forEach(e=>e.blocks.forEach(e=>aa.push(...e)));function oa(e){for(var t=0;t<aa.length;t+=2)if(e>=aa[t]&&e<=aa[t+1])return!0;return!1}var sa=e=>e+` `+e,ca=80,la=function(e,t){return`M95,`+(622+e+t)+`
|
|
126
2
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
127
3
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
128
4
|
c44.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
|
|
@@ -133,7 +9,7 @@ c5.3,-9.3,12,-14,20,-14
|
|
|
133
9
|
H400000v`+(40+e)+`H845.2724
|
|
134
10
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
135
11
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
136
|
-
M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},
|
|
12
|
+
M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},ua=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119
|
|
137
13
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
138
14
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
139
15
|
l`+e/2.084+` -`+e+`
|
|
@@ -143,7 +19,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,
|
|
|
143
19
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
144
20
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
145
21
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
146
|
-
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},
|
|
22
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},da=function(e,t){return`M983 `+(10+e+t)+`
|
|
147
23
|
l`+e/3.13+` -`+e+`
|
|
148
24
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
|
|
149
25
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
@@ -152,7 +28,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
152
28
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
153
29
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
154
30
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
155
|
-
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},
|
|
31
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},fa=function(e,t){return`M424,`+(2398+e+t)+`
|
|
156
32
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
157
33
|
c0,-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
|
|
158
34
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
@@ -162,18 +38,18 @@ v`+(40+e)+`H1014.6
|
|
|
162
38
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
163
39
|
c-2,6,-10,9,-24,9
|
|
164
40
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+`
|
|
165
|
-
h400000v`+(40+e)+`h-400000z`},
|
|
41
|
+
h400000v`+(40+e)+`h-400000z`},pa=function(e,t){return`M473,`+(2713+e+t)+`
|
|
166
42
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+`
|
|
167
43
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
|
|
168
44
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
169
45
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
170
46
|
c0,-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
|
|
171
47
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
172
|
-
606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},
|
|
48
|
+
606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},ma=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},ha=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+`
|
|
173
49
|
H742v`+r+`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
|
|
174
50
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
175
51
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
176
|
-
219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},
|
|
52
|
+
219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},ga=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=la(t,ca);break;case`sqrtSize1`:r=ua(t,ca);break;case`sqrtSize2`:r=da(t,ca);break;case`sqrtSize3`:r=fa(t,ca);break;case`sqrtSize4`:r=pa(t,ca);break;case`sqrtTall`:r=ha(t,ca,n)}return r},_a=function(e,t){switch(e){case`⎜`:return sa(`M291 0 H417 V`+t+` H291z`);case`∣`:return sa(`M145 0 H188 V`+t+` H145z`);case`∥`:return sa(`M145 0 H188 V`+t+` H145z`)+sa(`M367 0 H410 V`+t+` H367z`);case`⎟`:return sa(`M457 0 H583 V`+t+` H457z`);case`⎢`:return sa(`M319 0 H403 V`+t+` H319z`);case`⎥`:return sa(`M263 0 H347 V`+t+` H263z`);case`⎪`:return sa(`M384 0 H504 V`+t+` H384z`);case`⏐`:return sa(`M312 0 H355 V`+t+` H312z`);case`‖`:return sa(`M257 0 H300 V`+t+` H257z`)+sa(`M478 0 H521 V`+t+` H478z`);default:return``}},va={doubleleftarrow:`M262 157
|
|
177
53
|
l10-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
|
|
178
54
|
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
|
|
179
55
|
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
|
|
@@ -219,10 +95,10 @@ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9
|
|
|
219
95
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
220
96
|
-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
|
|
221
97
|
-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
|
|
222
|
-
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:
|
|
98
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:sa(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:sa(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:sa(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:sa(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
223
99
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
224
100
|
c28.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
|
|
225
|
-
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:
|
|
101
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:sa(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334
|
|
226
102
|
c-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
|
|
227
103
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
228
104
|
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
|
|
@@ -271,7 +147,7 @@ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown
|
|
|
271
147
|
m0-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
|
|
272
148
|
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
|
|
273
149
|
-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
|
|
274
|
-
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:
|
|
150
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:sa(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:sa(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:sa(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
275
151
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
276
152
|
-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
|
|
277
153
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
@@ -344,8 +220,8 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`
|
|
|
344
220
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
345
221
|
-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
|
|
346
222
|
c-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
|
|
347
|
-
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
|
|
348
|
-
H403z M403 1759 V0 H319 V1759 v`+t+` v1759 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z
|
|
223
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},ya=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84
|
|
224
|
+
H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z
|
|
349
225
|
M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
350
226
|
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
351
227
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z`;case`doublevert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
@@ -372,22 +248,22 @@ c-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
|
|
|
372
248
|
c0,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
|
|
373
249
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
374
250
|
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
375
|
-
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}},tu=class{constructor(e){this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join(``)}},nu={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},ru={ex:!0,em:!0,mu:!0},iu=function(e){return typeof e!=`string`&&(e=e.unit),e in nu||e in ru||e===`ex`},au=function(e,t){var n;if(e.unit in nu)n=nu[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new F(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},L=function(e){return+e.toFixed(4)+`em`},ou=function(e){return e.filter(e=>e).join(` `)},su=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},cu=function(e){var t=document.createElement(e);t.className=ou(this.classes);for(var n of Object.keys(this.style))t.style[n]=this.style[n];for(var r of Object.keys(this.attributes))t.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)t.appendChild(this.children[i].toNode());return t},lu=/[\s"'>/=\x00-\x1f]/,uu=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+ml(ou(this.classes))+`"`);var n=``;for(var r of Object.keys(this.style))n+=dl(r)+`:`+this.style[r]+`;`;n&&(t+=` style="`+ml(n)+`"`);for(var i of Object.keys(this.attributes)){if(lu.test(i))throw new F(`Invalid attribute name '`+i+`'`);t+=` `+i+`="`+ml(this.attributes[i])+`"`}t+=`>`;for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+=`</`+e+`>`,t},du=class{constructor(e,t,n,r){su.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return cu.call(this,`span`)}toMarkup(){return uu.call(this,`span`)}},fu=class{constructor(e,t,n,r){su.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return cu.call(this,`a`)}toMarkup(){return uu.call(this,`a`)}},pu=class{constructor(e,t,n){this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);e.src=this.src,e.alt=this.alt,e.className=`mord`;for(var t of Object.keys(this.style))e.style[t]=this.style[t];return e}toMarkup(){var e=`<img src="`+ml(this.src)+`"`+(` alt="`+ml(this.alt)+`"`),t=``;for(var n of Object.keys(this.style))t+=dl(n)+`:`+this.style[n]+`;`;return t&&(e+=` style="`+ml(t)+`"`),e+=`'/>`,e}},mu={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},hu=class{constructor(e,t,n,r,i,a,o,s){this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=zl(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=mu[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=L(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=ou(this.classes));for(var n of Object.keys(this.style))t||=document.createElement(`span`),t.style[n]=this.style[n];return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=ml(ou(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+L(this.italic)+`;`);for(var r of Object.keys(this.style))n+=dl(r)+`:`+this.style[r]+`;`;n&&(e=!0,t+=` style="`+ml(n)+`"`);var i=ml(this.text);return e?(t+=`>`,t+=i,t+=`</span>`,t):i}},gu=class{constructor(e,t){this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+ml(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},_u=class{constructor(e,t){this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,$l[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+ml(this.alternate)+`"/>`:`<path d="`+ml($l[this.pathName])+`"/>`}},vu=class{constructor(e){this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+ml(this.attributes[t])+`"`;return e+=`/>`,e}};function yu(e){if(e instanceof hu)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function bu(e){if(e instanceof du)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var xu=e=>e instanceof du||e instanceof fu||e instanceof tu,Su={"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]}},Cu={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]},wu={Å:`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 Tu(e,t){Su[e]=t}function Eu(e,t,n){if(!Su[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=Su[t][r];if(!i&&e[0]in wu&&(r=wu[e[0]].charCodeAt(0),i=Su[t][r]),!i&&n===`text`&&Vl(r)&&(i=Su[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Du={};function Ou(e){var t=e>=5?0:e>=3?1:2;if(!Du[t]){var n=Du[t]={cssEmPerMu:Cu.quad[t]/18};for(var r in Cu)Cu.hasOwnProperty(r)&&(n[r]=Cu[r][t])}return Du[t]}var ku={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Au={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ju={math:{},text:{}};function R(e,t,n,r,i,a){ju[e][i]={font:t,group:n,replace:r},a&&r&&(ju[e][r]=ju[e][i])}var z=`math`,B=`text`,V=`main`,H=`ams`,Mu=`accent-token`,U=`bin`,Nu=`close`,Pu=`inner`,W=`mathord`,Fu=`op-token`,Iu=`open`,Lu=`punct`,G=`rel`,Ru=`spacing`,K=`textord`;R(z,V,G,`≡`,`\\equiv`,!0),R(z,V,G,`≺`,`\\prec`,!0),R(z,V,G,`≻`,`\\succ`,!0),R(z,V,G,`∼`,`\\sim`,!0),R(z,V,G,`⊥`,`\\perp`),R(z,V,G,`⪯`,`\\preceq`,!0),R(z,V,G,`⪰`,`\\succeq`,!0),R(z,V,G,`≃`,`\\simeq`,!0),R(z,V,G,`∣`,`\\mid`,!0),R(z,V,G,`≪`,`\\ll`,!0),R(z,V,G,`≫`,`\\gg`,!0),R(z,V,G,`≍`,`\\asymp`,!0),R(z,V,G,`∥`,`\\parallel`),R(z,V,G,`⋈`,`\\bowtie`,!0),R(z,V,G,`⌣`,`\\smile`,!0),R(z,V,G,`⊑`,`\\sqsubseteq`,!0),R(z,V,G,`⊒`,`\\sqsupseteq`,!0),R(z,V,G,`≐`,`\\doteq`,!0),R(z,V,G,`⌢`,`\\frown`,!0),R(z,V,G,`∋`,`\\ni`,!0),R(z,V,G,`∝`,`\\propto`,!0),R(z,V,G,`⊢`,`\\vdash`,!0),R(z,V,G,`⊣`,`\\dashv`,!0),R(z,V,G,`∋`,`\\owns`),R(z,V,Lu,`.`,`\\ldotp`),R(z,V,Lu,`⋅`,`\\cdotp`),R(z,V,Lu,`⋅`,`·`),R(B,V,K,`⋅`,`·`),R(z,V,K,`#`,`\\#`),R(B,V,K,`#`,`\\#`),R(z,V,K,`&`,`\\&`),R(B,V,K,`&`,`\\&`),R(z,V,K,`ℵ`,`\\aleph`,!0),R(z,V,K,`∀`,`\\forall`,!0),R(z,V,K,`ℏ`,`\\hbar`,!0),R(z,V,K,`∃`,`\\exists`,!0),R(z,V,K,`∇`,`\\nabla`,!0),R(z,V,K,`♭`,`\\flat`,!0),R(z,V,K,`ℓ`,`\\ell`,!0),R(z,V,K,`♮`,`\\natural`,!0),R(z,V,K,`♣`,`\\clubsuit`,!0),R(z,V,K,`℘`,`\\wp`,!0),R(z,V,K,`♯`,`\\sharp`,!0),R(z,V,K,`♢`,`\\diamondsuit`,!0),R(z,V,K,`ℜ`,`\\Re`,!0),R(z,V,K,`♡`,`\\heartsuit`,!0),R(z,V,K,`ℑ`,`\\Im`,!0),R(z,V,K,`♠`,`\\spadesuit`,!0),R(z,V,K,`§`,`\\S`,!0),R(B,V,K,`§`,`\\S`),R(z,V,K,`¶`,`\\P`,!0),R(B,V,K,`¶`,`\\P`),R(z,V,K,`†`,`\\dag`),R(B,V,K,`†`,`\\dag`),R(B,V,K,`†`,`\\textdagger`),R(z,V,K,`‡`,`\\ddag`),R(B,V,K,`‡`,`\\ddag`),R(B,V,K,`‡`,`\\textdaggerdbl`),R(z,V,Nu,`⎱`,`\\rmoustache`,!0),R(z,V,Iu,`⎰`,`\\lmoustache`,!0),R(z,V,Nu,`⟯`,`\\rgroup`,!0),R(z,V,Iu,`⟮`,`\\lgroup`,!0),R(z,V,U,`∓`,`\\mp`,!0),R(z,V,U,`⊖`,`\\ominus`,!0),R(z,V,U,`⊎`,`\\uplus`,!0),R(z,V,U,`⊓`,`\\sqcap`,!0),R(z,V,U,`∗`,`\\ast`),R(z,V,U,`⊔`,`\\sqcup`,!0),R(z,V,U,`◯`,`\\bigcirc`,!0),R(z,V,U,`∙`,`\\bullet`,!0),R(z,V,U,`‡`,`\\ddagger`),R(z,V,U,`≀`,`\\wr`,!0),R(z,V,U,`⨿`,`\\amalg`),R(z,V,U,`&`,`\\And`),R(z,V,G,`⟵`,`\\longleftarrow`,!0),R(z,V,G,`⇐`,`\\Leftarrow`,!0),R(z,V,G,`⟸`,`\\Longleftarrow`,!0),R(z,V,G,`⟶`,`\\longrightarrow`,!0),R(z,V,G,`⇒`,`\\Rightarrow`,!0),R(z,V,G,`⟹`,`\\Longrightarrow`,!0),R(z,V,G,`↔`,`\\leftrightarrow`,!0),R(z,V,G,`⟷`,`\\longleftrightarrow`,!0),R(z,V,G,`⇔`,`\\Leftrightarrow`,!0),R(z,V,G,`⟺`,`\\Longleftrightarrow`,!0),R(z,V,G,`↦`,`\\mapsto`,!0),R(z,V,G,`⟼`,`\\longmapsto`,!0),R(z,V,G,`↗`,`\\nearrow`,!0),R(z,V,G,`↩`,`\\hookleftarrow`,!0),R(z,V,G,`↪`,`\\hookrightarrow`,!0),R(z,V,G,`↘`,`\\searrow`,!0),R(z,V,G,`↼`,`\\leftharpoonup`,!0),R(z,V,G,`⇀`,`\\rightharpoonup`,!0),R(z,V,G,`↙`,`\\swarrow`,!0),R(z,V,G,`↽`,`\\leftharpoondown`,!0),R(z,V,G,`⇁`,`\\rightharpoondown`,!0),R(z,V,G,`↖`,`\\nwarrow`,!0),R(z,V,G,`⇌`,`\\rightleftharpoons`,!0),R(z,H,G,`≮`,`\\nless`,!0),R(z,H,G,``,`\\@nleqslant`),R(z,H,G,``,`\\@nleqq`),R(z,H,G,`⪇`,`\\lneq`,!0),R(z,H,G,`≨`,`\\lneqq`,!0),R(z,H,G,``,`\\@lvertneqq`),R(z,H,G,`⋦`,`\\lnsim`,!0),R(z,H,G,`⪉`,`\\lnapprox`,!0),R(z,H,G,`⊀`,`\\nprec`,!0),R(z,H,G,`⋠`,`\\npreceq`,!0),R(z,H,G,`⋨`,`\\precnsim`,!0),R(z,H,G,`⪹`,`\\precnapprox`,!0),R(z,H,G,`≁`,`\\nsim`,!0),R(z,H,G,``,`\\@nshortmid`),R(z,H,G,`∤`,`\\nmid`,!0),R(z,H,G,`⊬`,`\\nvdash`,!0),R(z,H,G,`⊭`,`\\nvDash`,!0),R(z,H,G,`⋪`,`\\ntriangleleft`),R(z,H,G,`⋬`,`\\ntrianglelefteq`,!0),R(z,H,G,`⊊`,`\\subsetneq`,!0),R(z,H,G,``,`\\@varsubsetneq`),R(z,H,G,`⫋`,`\\subsetneqq`,!0),R(z,H,G,``,`\\@varsubsetneqq`),R(z,H,G,`≯`,`\\ngtr`,!0),R(z,H,G,``,`\\@ngeqslant`),R(z,H,G,``,`\\@ngeqq`),R(z,H,G,`⪈`,`\\gneq`,!0),R(z,H,G,`≩`,`\\gneqq`,!0),R(z,H,G,``,`\\@gvertneqq`),R(z,H,G,`⋧`,`\\gnsim`,!0),R(z,H,G,`⪊`,`\\gnapprox`,!0),R(z,H,G,`⊁`,`\\nsucc`,!0),R(z,H,G,`⋡`,`\\nsucceq`,!0),R(z,H,G,`⋩`,`\\succnsim`,!0),R(z,H,G,`⪺`,`\\succnapprox`,!0),R(z,H,G,`≆`,`\\ncong`,!0),R(z,H,G,``,`\\@nshortparallel`),R(z,H,G,`∦`,`\\nparallel`,!0),R(z,H,G,`⊯`,`\\nVDash`,!0),R(z,H,G,`⋫`,`\\ntriangleright`),R(z,H,G,`⋭`,`\\ntrianglerighteq`,!0),R(z,H,G,``,`\\@nsupseteqq`),R(z,H,G,`⊋`,`\\supsetneq`,!0),R(z,H,G,``,`\\@varsupsetneq`),R(z,H,G,`⫌`,`\\supsetneqq`,!0),R(z,H,G,``,`\\@varsupsetneqq`),R(z,H,G,`⊮`,`\\nVdash`,!0),R(z,H,G,`⪵`,`\\precneqq`,!0),R(z,H,G,`⪶`,`\\succneqq`,!0),R(z,H,G,``,`\\@nsubseteqq`),R(z,H,U,`⊴`,`\\unlhd`),R(z,H,U,`⊵`,`\\unrhd`),R(z,H,G,`↚`,`\\nleftarrow`,!0),R(z,H,G,`↛`,`\\nrightarrow`,!0),R(z,H,G,`⇍`,`\\nLeftarrow`,!0),R(z,H,G,`⇏`,`\\nRightarrow`,!0),R(z,H,G,`↮`,`\\nleftrightarrow`,!0),R(z,H,G,`⇎`,`\\nLeftrightarrow`,!0),R(z,H,G,`△`,`\\vartriangle`),R(z,H,K,`ℏ`,`\\hslash`),R(z,H,K,`▽`,`\\triangledown`),R(z,H,K,`◊`,`\\lozenge`),R(z,H,K,`Ⓢ`,`\\circledS`),R(z,H,K,`®`,`\\circledR`),R(B,H,K,`®`,`\\circledR`),R(z,H,K,`∡`,`\\measuredangle`,!0),R(z,H,K,`∄`,`\\nexists`),R(z,H,K,`℧`,`\\mho`),R(z,H,K,`Ⅎ`,`\\Finv`,!0),R(z,H,K,`⅁`,`\\Game`,!0),R(z,H,K,`‵`,`\\backprime`),R(z,H,K,`▲`,`\\blacktriangle`),R(z,H,K,`▼`,`\\blacktriangledown`),R(z,H,K,`■`,`\\blacksquare`),R(z,H,K,`⧫`,`\\blacklozenge`),R(z,H,K,`★`,`\\bigstar`),R(z,H,K,`∢`,`\\sphericalangle`,!0),R(z,H,K,`∁`,`\\complement`,!0),R(z,H,K,`ð`,`\\eth`,!0),R(B,V,K,`ð`,`ð`),R(z,H,K,`╱`,`\\diagup`),R(z,H,K,`╲`,`\\diagdown`),R(z,H,K,`□`,`\\square`),R(z,H,K,`□`,`\\Box`),R(z,H,K,`◊`,`\\Diamond`),R(z,H,K,`¥`,`\\yen`,!0),R(B,H,K,`¥`,`\\yen`,!0),R(z,H,K,`✓`,`\\checkmark`,!0),R(B,H,K,`✓`,`\\checkmark`),R(z,H,K,`ℶ`,`\\beth`,!0),R(z,H,K,`ℸ`,`\\daleth`,!0),R(z,H,K,`ℷ`,`\\gimel`,!0),R(z,H,K,`ϝ`,`\\digamma`,!0),R(z,H,K,`ϰ`,`\\varkappa`),R(z,H,Iu,`┌`,`\\@ulcorner`,!0),R(z,H,Nu,`┐`,`\\@urcorner`,!0),R(z,H,Iu,`└`,`\\@llcorner`,!0),R(z,H,Nu,`┘`,`\\@lrcorner`,!0),R(z,H,G,`≦`,`\\leqq`,!0),R(z,H,G,`⩽`,`\\leqslant`,!0),R(z,H,G,`⪕`,`\\eqslantless`,!0),R(z,H,G,`≲`,`\\lesssim`,!0),R(z,H,G,`⪅`,`\\lessapprox`,!0),R(z,H,G,`≊`,`\\approxeq`,!0),R(z,H,U,`⋖`,`\\lessdot`),R(z,H,G,`⋘`,`\\lll`,!0),R(z,H,G,`≶`,`\\lessgtr`,!0),R(z,H,G,`⋚`,`\\lesseqgtr`,!0),R(z,H,G,`⪋`,`\\lesseqqgtr`,!0),R(z,H,G,`≑`,`\\doteqdot`),R(z,H,G,`≓`,`\\risingdotseq`,!0),R(z,H,G,`≒`,`\\fallingdotseq`,!0),R(z,H,G,`∽`,`\\backsim`,!0),R(z,H,G,`⋍`,`\\backsimeq`,!0),R(z,H,G,`⫅`,`\\subseteqq`,!0),R(z,H,G,`⋐`,`\\Subset`,!0),R(z,H,G,`⊏`,`\\sqsubset`,!0),R(z,H,G,`≼`,`\\preccurlyeq`,!0),R(z,H,G,`⋞`,`\\curlyeqprec`,!0),R(z,H,G,`≾`,`\\precsim`,!0),R(z,H,G,`⪷`,`\\precapprox`,!0),R(z,H,G,`⊲`,`\\vartriangleleft`),R(z,H,G,`⊴`,`\\trianglelefteq`),R(z,H,G,`⊨`,`\\vDash`,!0),R(z,H,G,`⊪`,`\\Vvdash`,!0),R(z,H,G,`⌣`,`\\smallsmile`),R(z,H,G,`⌢`,`\\smallfrown`),R(z,H,G,`≏`,`\\bumpeq`,!0),R(z,H,G,`≎`,`\\Bumpeq`,!0),R(z,H,G,`≧`,`\\geqq`,!0),R(z,H,G,`⩾`,`\\geqslant`,!0),R(z,H,G,`⪖`,`\\eqslantgtr`,!0),R(z,H,G,`≳`,`\\gtrsim`,!0),R(z,H,G,`⪆`,`\\gtrapprox`,!0),R(z,H,U,`⋗`,`\\gtrdot`),R(z,H,G,`⋙`,`\\ggg`,!0),R(z,H,G,`≷`,`\\gtrless`,!0),R(z,H,G,`⋛`,`\\gtreqless`,!0),R(z,H,G,`⪌`,`\\gtreqqless`,!0),R(z,H,G,`≖`,`\\eqcirc`,!0),R(z,H,G,`≗`,`\\circeq`,!0),R(z,H,G,`≜`,`\\triangleq`,!0),R(z,H,G,`∼`,`\\thicksim`),R(z,H,G,`≈`,`\\thickapprox`),R(z,H,G,`⫆`,`\\supseteqq`,!0),R(z,H,G,`⋑`,`\\Supset`,!0),R(z,H,G,`⊐`,`\\sqsupset`,!0),R(z,H,G,`≽`,`\\succcurlyeq`,!0),R(z,H,G,`⋟`,`\\curlyeqsucc`,!0),R(z,H,G,`≿`,`\\succsim`,!0),R(z,H,G,`⪸`,`\\succapprox`,!0),R(z,H,G,`⊳`,`\\vartriangleright`),R(z,H,G,`⊵`,`\\trianglerighteq`),R(z,H,G,`⊩`,`\\Vdash`,!0),R(z,H,G,`∣`,`\\shortmid`),R(z,H,G,`∥`,`\\shortparallel`),R(z,H,G,`≬`,`\\between`,!0),R(z,H,G,`⋔`,`\\pitchfork`,!0),R(z,H,G,`∝`,`\\varpropto`),R(z,H,G,`◀`,`\\blacktriangleleft`),R(z,H,G,`∴`,`\\therefore`,!0),R(z,H,G,`∍`,`\\backepsilon`),R(z,H,G,`▶`,`\\blacktriangleright`),R(z,H,G,`∵`,`\\because`,!0),R(z,H,G,`⋘`,`\\llless`),R(z,H,G,`⋙`,`\\gggtr`),R(z,H,U,`⊲`,`\\lhd`),R(z,H,U,`⊳`,`\\rhd`),R(z,H,G,`≂`,`\\eqsim`,!0),R(z,V,G,`⋈`,`\\Join`),R(z,H,G,`≑`,`\\Doteq`,!0),R(z,H,U,`∔`,`\\dotplus`,!0),R(z,H,U,`∖`,`\\smallsetminus`),R(z,H,U,`⋒`,`\\Cap`,!0),R(z,H,U,`⋓`,`\\Cup`,!0),R(z,H,U,`⩞`,`\\doublebarwedge`,!0),R(z,H,U,`⊟`,`\\boxminus`,!0),R(z,H,U,`⊞`,`\\boxplus`,!0),R(z,H,U,`⋇`,`\\divideontimes`,!0),R(z,H,U,`⋉`,`\\ltimes`,!0),R(z,H,U,`⋊`,`\\rtimes`,!0),R(z,H,U,`⋋`,`\\leftthreetimes`,!0),R(z,H,U,`⋌`,`\\rightthreetimes`,!0),R(z,H,U,`⋏`,`\\curlywedge`,!0),R(z,H,U,`⋎`,`\\curlyvee`,!0),R(z,H,U,`⊝`,`\\circleddash`,!0),R(z,H,U,`⊛`,`\\circledast`,!0),R(z,H,U,`⋅`,`\\centerdot`),R(z,H,U,`⊺`,`\\intercal`,!0),R(z,H,U,`⋒`,`\\doublecap`),R(z,H,U,`⋓`,`\\doublecup`),R(z,H,U,`⊠`,`\\boxtimes`,!0),R(z,H,G,`⇢`,`\\dashrightarrow`,!0),R(z,H,G,`⇠`,`\\dashleftarrow`,!0),R(z,H,G,`⇇`,`\\leftleftarrows`,!0),R(z,H,G,`⇆`,`\\leftrightarrows`,!0),R(z,H,G,`⇚`,`\\Lleftarrow`,!0),R(z,H,G,`↞`,`\\twoheadleftarrow`,!0),R(z,H,G,`↢`,`\\leftarrowtail`,!0),R(z,H,G,`↫`,`\\looparrowleft`,!0),R(z,H,G,`⇋`,`\\leftrightharpoons`,!0),R(z,H,G,`↶`,`\\curvearrowleft`,!0),R(z,H,G,`↺`,`\\circlearrowleft`,!0),R(z,H,G,`↰`,`\\Lsh`,!0),R(z,H,G,`⇈`,`\\upuparrows`,!0),R(z,H,G,`↿`,`\\upharpoonleft`,!0),R(z,H,G,`⇃`,`\\downharpoonleft`,!0),R(z,V,G,`⊶`,`\\origof`,!0),R(z,V,G,`⊷`,`\\imageof`,!0),R(z,H,G,`⊸`,`\\multimap`,!0),R(z,H,G,`↭`,`\\leftrightsquigarrow`,!0),R(z,H,G,`⇉`,`\\rightrightarrows`,!0),R(z,H,G,`⇄`,`\\rightleftarrows`,!0),R(z,H,G,`↠`,`\\twoheadrightarrow`,!0),R(z,H,G,`↣`,`\\rightarrowtail`,!0),R(z,H,G,`↬`,`\\looparrowright`,!0),R(z,H,G,`↷`,`\\curvearrowright`,!0),R(z,H,G,`↻`,`\\circlearrowright`,!0),R(z,H,G,`↱`,`\\Rsh`,!0),R(z,H,G,`⇊`,`\\downdownarrows`,!0),R(z,H,G,`↾`,`\\upharpoonright`,!0),R(z,H,G,`⇂`,`\\downharpoonright`,!0),R(z,H,G,`⇝`,`\\rightsquigarrow`,!0),R(z,H,G,`⇝`,`\\leadsto`),R(z,H,G,`⇛`,`\\Rrightarrow`,!0),R(z,H,G,`↾`,`\\restriction`),R(z,V,K,`‘`,"`"),R(z,V,K,`$`,`\\$`),R(B,V,K,`$`,`\\$`),R(B,V,K,`$`,`\\textdollar`),R(z,V,K,`%`,`\\%`),R(B,V,K,`%`,`\\%`),R(z,V,K,`_`,`\\_`),R(B,V,K,`_`,`\\_`),R(B,V,K,`_`,`\\textunderscore`),R(z,V,K,`∠`,`\\angle`,!0),R(z,V,K,`∞`,`\\infty`,!0),R(z,V,K,`′`,`\\prime`),R(z,V,K,`△`,`\\triangle`),R(z,V,K,`Γ`,`\\Gamma`,!0),R(z,V,K,`Δ`,`\\Delta`,!0),R(z,V,K,`Θ`,`\\Theta`,!0),R(z,V,K,`Λ`,`\\Lambda`,!0),R(z,V,K,`Ξ`,`\\Xi`,!0),R(z,V,K,`Π`,`\\Pi`,!0),R(z,V,K,`Σ`,`\\Sigma`,!0),R(z,V,K,`Υ`,`\\Upsilon`,!0),R(z,V,K,`Φ`,`\\Phi`,!0),R(z,V,K,`Ψ`,`\\Psi`,!0),R(z,V,K,`Ω`,`\\Omega`,!0),R(z,V,K,`A`,`Α`),R(z,V,K,`B`,`Β`),R(z,V,K,`E`,`Ε`),R(z,V,K,`Z`,`Ζ`),R(z,V,K,`H`,`Η`),R(z,V,K,`I`,`Ι`),R(z,V,K,`K`,`Κ`),R(z,V,K,`M`,`Μ`),R(z,V,K,`N`,`Ν`),R(z,V,K,`O`,`Ο`),R(z,V,K,`P`,`Ρ`),R(z,V,K,`T`,`Τ`),R(z,V,K,`X`,`Χ`),R(z,V,K,`¬`,`\\neg`,!0),R(z,V,K,`¬`,`\\lnot`),R(z,V,K,`⊤`,`\\top`),R(z,V,K,`⊥`,`\\bot`),R(z,V,K,`∅`,`\\emptyset`),R(z,H,K,`∅`,`\\varnothing`),R(z,V,W,`α`,`\\alpha`,!0),R(z,V,W,`β`,`\\beta`,!0),R(z,V,W,`γ`,`\\gamma`,!0),R(z,V,W,`δ`,`\\delta`,!0),R(z,V,W,`ϵ`,`\\epsilon`,!0),R(z,V,W,`ζ`,`\\zeta`,!0),R(z,V,W,`η`,`\\eta`,!0),R(z,V,W,`θ`,`\\theta`,!0),R(z,V,W,`ι`,`\\iota`,!0),R(z,V,W,`κ`,`\\kappa`,!0),R(z,V,W,`λ`,`\\lambda`,!0),R(z,V,W,`μ`,`\\mu`,!0),R(z,V,W,`ν`,`\\nu`,!0),R(z,V,W,`ξ`,`\\xi`,!0),R(z,V,W,`ο`,`\\omicron`,!0),R(z,V,W,`π`,`\\pi`,!0),R(z,V,W,`ρ`,`\\rho`,!0),R(z,V,W,`σ`,`\\sigma`,!0),R(z,V,W,`τ`,`\\tau`,!0),R(z,V,W,`υ`,`\\upsilon`,!0),R(z,V,W,`ϕ`,`\\phi`,!0),R(z,V,W,`χ`,`\\chi`,!0),R(z,V,W,`ψ`,`\\psi`,!0),R(z,V,W,`ω`,`\\omega`,!0),R(z,V,W,`ε`,`\\varepsilon`,!0),R(z,V,W,`ϑ`,`\\vartheta`,!0),R(z,V,W,`ϖ`,`\\varpi`,!0),R(z,V,W,`ϱ`,`\\varrho`,!0),R(z,V,W,`ς`,`\\varsigma`,!0),R(z,V,W,`φ`,`\\varphi`,!0),R(z,V,U,`∗`,`*`,!0),R(z,V,U,`+`,`+`),R(z,V,U,`−`,`-`,!0),R(z,V,U,`⋅`,`\\cdot`,!0),R(z,V,U,`∘`,`\\circ`,!0),R(z,V,U,`÷`,`\\div`,!0),R(z,V,U,`±`,`\\pm`,!0),R(z,V,U,`×`,`\\times`,!0),R(z,V,U,`∩`,`\\cap`,!0),R(z,V,U,`∪`,`\\cup`,!0),R(z,V,U,`∖`,`\\setminus`,!0),R(z,V,U,`∧`,`\\land`),R(z,V,U,`∨`,`\\lor`),R(z,V,U,`∧`,`\\wedge`,!0),R(z,V,U,`∨`,`\\vee`,!0),R(z,V,K,`√`,`\\surd`),R(z,V,Iu,`⟨`,`\\langle`,!0),R(z,V,Iu,`∣`,`\\lvert`),R(z,V,Iu,`∥`,`\\lVert`),R(z,V,Nu,`?`,`?`),R(z,V,Nu,`!`,`!`),R(z,V,Nu,`⟩`,`\\rangle`,!0),R(z,V,Nu,`∣`,`\\rvert`),R(z,V,Nu,`∥`,`\\rVert`),R(z,V,G,`=`,`=`),R(z,V,G,`:`,`:`),R(z,V,G,`≈`,`\\approx`,!0),R(z,V,G,`≅`,`\\cong`,!0),R(z,V,G,`≥`,`\\ge`),R(z,V,G,`≥`,`\\geq`,!0),R(z,V,G,`←`,`\\gets`),R(z,V,G,`>`,`\\gt`,!0),R(z,V,G,`∈`,`\\in`,!0),R(z,V,G,``,`\\@not`),R(z,V,G,`⊂`,`\\subset`,!0),R(z,V,G,`⊃`,`\\supset`,!0),R(z,V,G,`⊆`,`\\subseteq`,!0),R(z,V,G,`⊇`,`\\supseteq`,!0),R(z,H,G,`⊈`,`\\nsubseteq`,!0),R(z,H,G,`⊉`,`\\nsupseteq`,!0),R(z,V,G,`⊨`,`\\models`),R(z,V,G,`←`,`\\leftarrow`,!0),R(z,V,G,`≤`,`\\le`),R(z,V,G,`≤`,`\\leq`,!0),R(z,V,G,`<`,`\\lt`,!0),R(z,V,G,`→`,`\\rightarrow`,!0),R(z,V,G,`→`,`\\to`),R(z,H,G,`≱`,`\\ngeq`,!0),R(z,H,G,`≰`,`\\nleq`,!0),R(z,V,Ru,`\xA0`,`\\ `),R(z,V,Ru,`\xA0`,`\\space`),R(z,V,Ru,`\xA0`,`\\nobreakspace`),R(B,V,Ru,`\xA0`,`\\ `),R(B,V,Ru,`\xA0`,` `),R(B,V,Ru,`\xA0`,`\\space`),R(B,V,Ru,`\xA0`,`\\nobreakspace`),R(z,V,Ru,null,`\\nobreak`),R(z,V,Ru,null,`\\allowbreak`),R(z,V,Lu,`,`,`,`),R(z,V,Lu,`;`,`;`),R(z,H,U,`⊼`,`\\barwedge`,!0),R(z,H,U,`⊻`,`\\veebar`,!0),R(z,V,U,`⊙`,`\\odot`,!0),R(z,V,U,`⊕`,`\\oplus`,!0),R(z,V,U,`⊗`,`\\otimes`,!0),R(z,V,K,`∂`,`\\partial`,!0),R(z,V,U,`⊘`,`\\oslash`,!0),R(z,H,U,`⊚`,`\\circledcirc`,!0),R(z,H,U,`⊡`,`\\boxdot`,!0),R(z,V,U,`△`,`\\bigtriangleup`),R(z,V,U,`▽`,`\\bigtriangledown`),R(z,V,U,`†`,`\\dagger`),R(z,V,U,`⋄`,`\\diamond`),R(z,V,U,`⋆`,`\\star`),R(z,V,U,`◃`,`\\triangleleft`),R(z,V,U,`▹`,`\\triangleright`),R(z,V,Iu,`{`,`\\{`),R(B,V,K,`{`,`\\{`),R(B,V,K,`{`,`\\textbraceleft`),R(z,V,Nu,`}`,`\\}`),R(B,V,K,`}`,`\\}`),R(B,V,K,`}`,`\\textbraceright`),R(z,V,Iu,`{`,`\\lbrace`),R(z,V,Nu,`}`,`\\rbrace`),R(z,V,Iu,`[`,`\\lbrack`,!0),R(B,V,K,`[`,`\\lbrack`,!0),R(z,V,Nu,`]`,`\\rbrack`,!0),R(B,V,K,`]`,`\\rbrack`,!0),R(z,V,Iu,`(`,`\\lparen`,!0),R(z,V,Nu,`)`,`\\rparen`,!0),R(B,V,K,`<`,`\\textless`,!0),R(B,V,K,`>`,`\\textgreater`,!0),R(z,V,Iu,`⌊`,`\\lfloor`,!0),R(z,V,Nu,`⌋`,`\\rfloor`,!0),R(z,V,Iu,`⌈`,`\\lceil`,!0),R(z,V,Nu,`⌉`,`\\rceil`,!0),R(z,V,K,`\\`,`\\backslash`),R(z,V,K,`∣`,`|`),R(z,V,K,`∣`,`\\vert`),R(B,V,K,`|`,`\\textbar`,!0),R(z,V,K,`∥`,`\\|`),R(z,V,K,`∥`,`\\Vert`),R(B,V,K,`∥`,`\\textbardbl`),R(B,V,K,`~`,`\\textasciitilde`),R(B,V,K,`\\`,`\\textbackslash`),R(B,V,K,`^`,`\\textasciicircum`),R(z,V,G,`↑`,`\\uparrow`,!0),R(z,V,G,`⇑`,`\\Uparrow`,!0),R(z,V,G,`↓`,`\\downarrow`,!0),R(z,V,G,`⇓`,`\\Downarrow`,!0),R(z,V,G,`↕`,`\\updownarrow`,!0),R(z,V,G,`⇕`,`\\Updownarrow`,!0),R(z,V,Fu,`∐`,`\\coprod`),R(z,V,Fu,`⋁`,`\\bigvee`),R(z,V,Fu,`⋀`,`\\bigwedge`),R(z,V,Fu,`⨄`,`\\biguplus`),R(z,V,Fu,`⋂`,`\\bigcap`),R(z,V,Fu,`⋃`,`\\bigcup`),R(z,V,Fu,`∫`,`\\int`),R(z,V,Fu,`∫`,`\\intop`),R(z,V,Fu,`∬`,`\\iint`),R(z,V,Fu,`∭`,`\\iiint`),R(z,V,Fu,`∏`,`\\prod`),R(z,V,Fu,`∑`,`\\sum`),R(z,V,Fu,`⨂`,`\\bigotimes`),R(z,V,Fu,`⨁`,`\\bigoplus`),R(z,V,Fu,`⨀`,`\\bigodot`),R(z,V,Fu,`∮`,`\\oint`),R(z,V,Fu,`∯`,`\\oiint`),R(z,V,Fu,`∰`,`\\oiiint`),R(z,V,Fu,`⨆`,`\\bigsqcup`),R(z,V,Fu,`∫`,`\\smallint`),R(B,V,Pu,`…`,`\\textellipsis`),R(z,V,Pu,`…`,`\\mathellipsis`),R(B,V,Pu,`…`,`\\ldots`,!0),R(z,V,Pu,`…`,`\\ldots`,!0),R(z,V,Pu,`⋯`,`\\@cdots`,!0),R(z,V,Pu,`⋱`,`\\ddots`,!0),R(z,V,K,`⋮`,`\\varvdots`),R(B,V,K,`⋮`,`\\varvdots`),R(z,V,Mu,`ˊ`,`\\acute`),R(z,V,Mu,`ˋ`,`\\grave`),R(z,V,Mu,`¨`,`\\ddot`),R(z,V,Mu,`~`,`\\tilde`),R(z,V,Mu,`ˉ`,`\\bar`),R(z,V,Mu,`˘`,`\\breve`),R(z,V,Mu,`ˇ`,`\\check`),R(z,V,Mu,`^`,`\\hat`),R(z,V,Mu,`⃗`,`\\vec`),R(z,V,Mu,`˙`,`\\dot`),R(z,V,Mu,`˚`,`\\mathring`),R(z,V,W,``,`\\@imath`),R(z,V,W,``,`\\@jmath`),R(z,V,K,`ı`,`ı`),R(z,V,K,`ȷ`,`ȷ`),R(B,V,K,`ı`,`\\i`,!0),R(B,V,K,`ȷ`,`\\j`,!0),R(B,V,K,`ß`,`\\ss`,!0),R(B,V,K,`æ`,`\\ae`,!0),R(B,V,K,`œ`,`\\oe`,!0),R(B,V,K,`ø`,`\\o`,!0),R(B,V,K,`Æ`,`\\AE`,!0),R(B,V,K,`Œ`,`\\OE`,!0),R(B,V,K,`Ø`,`\\O`,!0),R(B,V,Mu,`ˊ`,`\\'`),R(B,V,Mu,`ˋ`,"\\`"),R(B,V,Mu,`ˆ`,`\\^`),R(B,V,Mu,`˜`,`\\~`),R(B,V,Mu,`ˉ`,`\\=`),R(B,V,Mu,`˘`,`\\u`),R(B,V,Mu,`˙`,`\\.`),R(B,V,Mu,`¸`,`\\c`),R(B,V,Mu,`˚`,`\\r`),R(B,V,Mu,`ˇ`,`\\v`),R(B,V,Mu,`¨`,`\\"`),R(B,V,Mu,`˝`,`\\H`),R(B,V,Mu,`◯`,`\\textcircled`);var zu={"--":!0,"---":!0,"``":!0,"''":!0};R(B,V,K,`–`,`--`,!0),R(B,V,K,`–`,`\\textendash`),R(B,V,K,`—`,`---`,!0),R(B,V,K,`—`,`\\textemdash`),R(B,V,K,`‘`,"`",!0),R(B,V,K,`‘`,`\\textquoteleft`),R(B,V,K,`’`,`'`,!0),R(B,V,K,`’`,`\\textquoteright`),R(B,V,K,`“`,"``",!0),R(B,V,K,`“`,`\\textquotedblleft`),R(B,V,K,`”`,`''`,!0),R(B,V,K,`”`,`\\textquotedblright`),R(z,V,K,`°`,`\\degree`,!0),R(B,V,K,`°`,`\\degree`),R(B,V,K,`°`,`\\textdegree`,!0),R(z,V,K,`£`,`\\pounds`),R(z,V,K,`£`,`\\mathsterling`,!0),R(B,V,K,`£`,`\\pounds`),R(B,V,K,`£`,`\\textsterling`,!0),R(z,H,K,`✠`,`\\maltese`),R(B,H,K,`✠`,`\\maltese`);for(var Bu=`0123456789/@."`,Vu=0;Vu<Bu.length;Vu++){var Hu=Bu.charAt(Vu);R(z,V,K,Hu,Hu)}for(var Uu=`0123456789!@*()-=+";:?/.,`,Wu=0;Wu<Uu.length;Wu++){var Gu=Uu.charAt(Wu);R(B,V,K,Gu,Gu)}for(var Ku=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,qu=0;qu<Ku.length;qu++){var Ju=Ku.charAt(qu);R(z,V,W,Ju,Ju),R(B,V,K,Ju,Ju)}R(z,H,K,`C`,`ℂ`),R(B,H,K,`C`,`ℂ`),R(z,H,K,`H`,`ℍ`),R(B,H,K,`H`,`ℍ`),R(z,H,K,`N`,`ℕ`),R(B,H,K,`N`,`ℕ`),R(z,H,K,`P`,`ℙ`),R(B,H,K,`P`,`ℙ`),R(z,H,K,`Q`,`ℚ`),R(B,H,K,`Q`,`ℚ`),R(z,H,K,`R`,`ℝ`),R(B,H,K,`R`,`ℝ`),R(z,H,K,`Z`,`ℤ`),R(B,H,K,`Z`,`ℤ`),R(z,V,W,`h`,`ℎ`),R(B,V,W,`h`,`ℎ`);for(var q=``,Yu=0;Yu<Ku.length;Yu++){var Xu=Ku.charAt(Yu);q=String.fromCharCode(55349,56320+Yu),R(z,V,W,Xu,q),R(B,V,K,Xu,q),q=String.fromCharCode(55349,56372+Yu),R(z,V,W,Xu,q),R(B,V,K,Xu,q),q=String.fromCharCode(55349,56424+Yu),R(z,V,W,Xu,q),R(B,V,K,Xu,q),q=String.fromCharCode(55349,56580+Yu),R(z,V,W,Xu,q),R(B,V,K,Xu,q),q=String.fromCharCode(55349,56684+Yu),R(z,V,W,Xu,q),R(B,V,K,Xu,q),q=String.fromCharCode(55349,56736+Yu),R(z,V,W,Xu,q),R(B,V,K,Xu,q),q=String.fromCharCode(55349,56788+Yu),R(z,V,W,Xu,q),R(B,V,K,Xu,q),q=String.fromCharCode(55349,56840+Yu),R(z,V,W,Xu,q),R(B,V,K,Xu,q),q=String.fromCharCode(55349,56944+Yu),R(z,V,W,Xu,q),R(B,V,K,Xu,q),Yu<26&&(q=String.fromCharCode(55349,56632+Yu),R(z,V,W,Xu,q),R(B,V,K,Xu,q),q=String.fromCharCode(55349,56476+Yu),R(z,V,W,Xu,q),R(B,V,K,Xu,q))}q=String.fromCharCode(55349,56668),R(z,V,W,`k`,q),R(B,V,K,`k`,q);for(var Zu=0;Zu<10;Zu++){var Qu=Zu.toString();q=String.fromCharCode(55349,57294+Zu),R(z,V,W,Qu,q),R(B,V,K,Qu,q),q=String.fromCharCode(55349,57314+Zu),R(z,V,W,Qu,q),R(B,V,K,Qu,q),q=String.fromCharCode(55349,57324+Zu),R(z,V,W,Qu,q),R(B,V,K,Qu,q),q=String.fromCharCode(55349,57334+Zu),R(z,V,W,Qu,q),R(B,V,K,Qu,q)}for(var $u=`ÐÞþ`,ed=0;ed<$u.length;ed++){var td=$u.charAt(ed);R(z,V,W,td,td),R(B,V,K,td,td)}var nd=[[`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`]],rd=[[`mathbf`,`textbf`,`Main-Bold`],[``,``,``],[`mathsf`,`textsf`,`SansSerif-Regular`],[`mathboldsf`,`textboldsf`,`SansSerif-Bold`],[`mathtt`,`texttt`,`Typewriter-Regular`]],id=(e,t)=>{var n=e.charCodeAt(0),r=e.charCodeAt(1),i=(n-55296)*1024+(r-56320)+65536,a=t===`math`?0:1;if(119808<=i&&i<120484){var o=Math.floor((i-119808)/26);return[nd[o][2],nd[o][a]]}else if(120782<=i&&i<=120831){var s=Math.floor((i-120782)/10);return[rd[s][2],rd[s][a]]}else if(i===120485||i===120486)return[nd[0][2],nd[0][a]];else if(120486<i&&i<120782)return[``,``];else throw new F(`Unsupported character: `+e)},ad=function(e,t,n){if(ju[n][e]){var r=ju[n][e].replace;r&&(e=r)}return{value:e,metrics:Eu(e,t,n)}},od=function(e,t,n,r,i){var a=ad(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new hu(e,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<`u`&&console.warn(`No character metrics `+(`for '`+e+`' in style '`+t+`' and mode '`+n+`'`)),s=new hu(e,0,0,0,0,0,i);if(r){s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();l&&(s.style.color=l)}return s},sd=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&ad(e,`Main-Bold`,t).metrics?od(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||ju[t][e].font===`main`?od(e,`Main-Regular`,t,n,r):od(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},cd=function(e,t,n,r,i){return i!==`textord`&&ad(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},ld=function(e,t,n){var r=e.mode,i=e.text,a=[`mord`],o=r===`math`||r===`text`&&t.font,s=o?t.font:t.fontFamily,c=``,l=``;if(i.charCodeAt(0)===55349&&([c,l]=id(i,r)),c.length>0)return od(i,c,r,t,a.concat(l));if(s){var u,d;if(s===`boldsymbol`){var f=cd(i,r,t,a,n);u=f.fontName,d=[f.fontClass]}else o?(u=Sd[s].fontName,d=[s]):(u=xd(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(ad(i,u,r).metrics)return od(i,u,r,t,a.concat(d));if(zu.hasOwnProperty(i)&&u.slice(0,10)===`Typewriter`){for(var p=[],m=0;m<i.length;m++)p.push(od(i[m],u,r,t,a.concat(d)));return gd(p)}}if(n===`mathord`)return od(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var h=ju[r][i]&&ju[r][i].font;if(h===`ams`)return od(i,xd(`amsrm`,t.fontWeight,t.fontShape),r,t,a.concat(`amsrm`,t.fontWeight,t.fontShape));if(h===`main`||!h)return od(i,xd(`textrm`,t.fontWeight,t.fontShape),r,t,a.concat(t.fontWeight,t.fontShape));var g=xd(h,t.fontWeight,t.fontShape);return od(i,g,r,t,a.concat(g,t.fontWeight,t.fontShape))}else throw Error(`unexpected type: `+n+` in makeOrd`)},ud=(e,t)=>{if(ou(e.classes)!==ou(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},dd=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof hu&&r instanceof hu&&ud(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},fd=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},J=function(e,t,n,r){var i=new du(e,t,n,r);return fd(i),i},pd=(e,t,n,r)=>new du(e,t,n,r),md=function(e,t,n){var r=J([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=L(r.height),r.maxFontSize=1,r},hd=function(e,t,n,r){var i=new fu(e,t,n,r);return fd(i),i},gd=function(e){var t=new tu(e);return fd(t),t},_d=function(e,t){return e instanceof tu?J([],[e],t):e},vd=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},yd=function(e,t){for(var{children:n,depth:r}=vd(e),i=0,a=0;a<n.length;a++){var o=n[a];if(o.type===`elem`){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var c=J([`pstrut`],[]);c.style.height=L(i);for(var l=[],u=r,d=r,f=r,p=0;p<n.length;p++){var m=n[p];if(m.type===`kern`)f+=m.size;else{var h=m.elem,g=m.wrapperClasses||[],_=m.wrapperStyle||{},v=J(g,[c,h],void 0,_);v.style.top=L(-i-f-h.depth),m.marginLeft&&(v.style.marginLeft=m.marginLeft),m.marginRight&&(v.style.marginRight=m.marginRight),l.push(v),f+=h.height+h.depth}u=Math.min(u,f),d=Math.max(d,f)}var y=J([`vlist`],l);y.style.height=L(d);var b;if(u<0){var x=J([`vlist`],[J([],[])]);x.style.height=L(-u),b=[J([`vlist-r`],[y,J([`vlist-s`],[new hu(``)])]),J([`vlist-r`],[x])]}else b=[J([`vlist-r`],[y])];var S=J([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},bd=(e,t)=>{var n=J([`mspace`],[],t),r=au(e,t);return n.style.marginRight=L(r),n},xd=function(e,t,n){var r=``;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}var i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:t===`textit`?`Italic`:`Regular`;return r+`-`+i},Sd={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`}},Cd={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},wd=function(e,t){var[n,r,i]=Cd[e],a=pd([`overlay`],[new gu([new _u(n)],{width:L(r),height:L(i),style:`width:`+L(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=L(i),a.style.width=L(r),a},Td={number:3,unit:`mu`},Ed={number:4,unit:`mu`},Dd={number:5,unit:`mu`},Od={mord:{mop:Td,mbin:Ed,mrel:Dd,minner:Td},mop:{mord:Td,mop:Td,mrel:Dd,minner:Td},mbin:{mord:Ed,mop:Ed,mopen:Ed,minner:Ed},mrel:{mord:Dd,mop:Dd,mopen:Dd,minner:Dd},mopen:{},mclose:{mop:Td,mbin:Ed,mrel:Dd,minner:Td},mpunct:{mord:Td,mop:Td,mrel:Dd,mopen:Td,mclose:Td,mpunct:Td,minner:Td},minner:{mord:Td,mop:Td,mbin:Ed,mrel:Dd,mopen:Td,mpunct:Td,minner:Td}},kd={mord:{mop:Td},mop:{mord:Td,mop:Td},mbin:{},mrel:{},mopen:{},mclose:{mop:Td},mpunct:{},minner:{mop:Td}},Ad={},jd={},Md={};function Y(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={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:i},c=0;c<n.length;++c)Ad[n[c]]=s;t&&(a&&(jd[t]=a),o&&(Md[t]=o))}function Nd(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Y({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var Pd=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},Fd=function(e){return e.type===`ordgroup`?e.body:[e]},Id=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),Ld=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),Rd={display:I.DISPLAY,text:I.TEXT,script:I.SCRIPT,scriptscript:I.SCRIPTSCRIPT},zd={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},Bd=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=Kd(e[a],t);if(o instanceof tu){var s=o.children;i.push(...s)}else i.push(o)}if(dd(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(Rd[l.style]))}var u=J([r[0]||`leftmost`],[],t),d=J([r[1]||`rightmost`],[],t),f=n===`root`;return Vd(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Ld.has(r)?t.classes[0]=`mord`:r===`mbin`&&Id.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),Vd(i,(e,t)=>{var n=Wd(t),r=Wd(e),i=n&&r?e.hasClass(`mtight`)?kd[n]?.[r]:Od[n]?.[r]:null;if(i)return bd(i,c)},{node:u},d,f),i},Vd=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=Hd(o);if(s){Vd(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`newline`)&&(n.node=J([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},Hd=function(e){return e instanceof tu||e instanceof fu||e instanceof du&&e.hasClass(`enclosing`)?e:null},Ud=function(e,t){var n=Hd(e);if(n){var r=n.children;if(r.length){if(t===`right`)return Ud(r[r.length-1],`right`);if(t===`left`)return Ud(r[0],`left`)}}return e},Wd=function(e,t){return e?(t&&(e=Ud(e,t)),zd[e.classes[0]]||null):null},Gd=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return J(t.concat(n))},Kd=function(e,t,n){if(!e)return J();if(jd[e.type]){var r=jd[e.type](e,t);if(n&&t.size!==n.size){r=J(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}else throw new F(`Got group of unknown type: '`+e.type+`'`)};function qd(e,t){var n=J([`base`],e,t),r=J([`strut`]);return r.style.height=L(n.height+n.depth),n.depth&&(r.style.verticalAlign=L(-n.depth)),n.children.unshift(r),n}function Jd(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=Bd(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(qd(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(qd(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(qd(o,t));var l;n?(l=qd(Bd(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=J([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=L(u.height+u.depth),u.depth&&(d.style.verticalAlign=L(-u.depth))}return u}function Yd(e){return new tu(e)}var X=class{constructor(e,t,n){this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=ou(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Xd&&this.children[n+1]instanceof Xd){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Xd;)r+=this.children[++n].toText();e.appendChild(new Xd(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=` `+t+`="`,e+=ml(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+ml(ou(this.classes))+`"`),e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},Xd=class{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ml(this.toText())}toText(){return this.text}},Zd=class{constructor(e){this.width=e,e>=.05555&&e<=.05556?this.character=` `:e>=.1666&&e<=.1667?this.character=` `:e>=.2222&&e<=.2223?this.character=` `:e>=.2777&&e<=.2778?this.character=` `:e>=-.05556&&e<=-.05555?this.character=` `:e>=-.1667&&e<=-.1666?this.character=` `:e>=-.2223&&e<=-.2222?this.character=` `:e>=-.2778&&e<=-.2777?this.character=` `:this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,L(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+L(this.width)+`"/>`}toText(){return this.character?this.character:` `}},Qd=new Set([`\\imath`,`\\jmath`]),$d=new Set([`mrow`,`mtable`]),ef=function(e,t,n){return ju[t][e]&&ju[t][e].replace&&e.charCodeAt(0)!==55349&&!(zu.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=ju[t][e].replace),new Xd(e)},tf=function(e){return e.length===1?e[0]:new X(`mrow`,e)},nf=function(e,t){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`;var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode;if(n===`mathit`)return`italic`;if(n===`boldsymbol`)return e.type===`textord`?`bold`:`bold-italic`;if(n===`mathbf`)return`bold`;if(n===`mathbb`)return`double-struck`;if(n===`mathsfit`)return`sans-serif-italic`;if(n===`mathfrak`)return`fraktur`;if(n===`mathscr`||n===`mathcal`)return`script`;if(n===`mathsf`)return`sans-serif`;if(n===`mathtt`)return`monospace`;var i=e.text;if(Qd.has(i))return null;if(ju[r][i]){var a=ju[r][i].replace;a&&(i=a)}var o=Sd[n].fontName;return Eu(i,o,r)?Sd[n].variant:null};function rf(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Xd&&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 Xd&&n.text===`,`}else return!1}var af=function(e,t,n){if(e.length===1){var r=sf(e[0],t);return n&&r instanceof X&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=sf(e[o],t);if(s instanceof X&&a instanceof X){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}else if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}else if(rf(s)&&a.type===`mn`){a.children.push(...s.children);continue}else if(s.type===`mn`&&rf(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||rf(a))){var c=s.children[0];c instanceof X&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof Xd&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof Xd&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},of=function(e,t,n){return tf(af(e,t,n))},sf=function(e,t){if(!e)return new X(`mrow`);if(Md[e.type])return Md[e.type](e,t);throw new F(`Got group of unknown type: '`+e.type+`'`)};function cf(e,t,n,r,i){var a=af(e,n),o=a.length===1&&a[0]instanceof X&&$d.has(a[0].type)?a[0]:new X(`mrow`,a),s=new X(`annotation`,[new Xd(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new X(`math`,[new X(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),J([i?`katex`:`katex-mathml`],[c])}var lf=[[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]],uf=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],df=function(e,t){return t.size<2?e:lf[e-1][t.size-1]},ff=class e{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||e.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=uf[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,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:df(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:uf[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=df(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=Ou(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};ff.BASESIZE=6;var pf=function(e){return new ff({style:e.displayMode?I.DISPLAY:I.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},mf=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=J(n,[e])}return e},hf=function(e,t,n){var r=pf(n),i;return n.output===`mathml`?cf(e,t,r,n.displayMode,!0):(i=n.output===`html`?J([`katex`],[Jd(e,r)]):J([`katex`],[cf(e,t,r,n.displayMode,!1),Jd(e,r)]),mf(i,n))},gf=function(e,t,n){return mf(J([`katex`],[Jd(e,pf(n))]),n)},_f={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,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":`=`},vf=function(e){var t=new X(`mo`,[new Xd(_f[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},yf={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],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],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]},bf=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),xf=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(bf.has(r)){var i=e,a=i.base.type===`ordgroup`?i.base.body.length:1,o,s,c;if(a>5)r===`widehat`||r===`widecheck`?(o=420,n=2364,c=.42,s=r+`4`):(o=312,n=2340,c=.34,s=`tilde4`);else{var l=[1,1,2,2,3,3][a];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][l],o=[0,239,300,360,420][l],c=[0,.24,.3,.3,.36,.42][l],s=r+l):(n=[0,600,1033,2339,2340][l],o=[0,260,286,306,312][l],c=[0,.26,.286,.3,.306,.34][l],s=`tilde`+l)}return{span:pd([],[new gu([new _u(s)],{width:`100%`,height:L(c),viewBox:`0 0 `+n+` `+o,preserveAspectRatio:`none`})],t),minWidth:0,height:c}}else{var u=[],d=yf[r],[f,p,m]=d,h=m/1e3,g=f.length,_,v;if(g===1){var y=d[3];_=[`hide-tail`],v=[y]}else if(g===2)_=[`halfarrow-left`,`halfarrow-right`],v=[`xMinYMin`,`xMaxYMin`];else if(g===3)_=[`brace-left`,`brace-center`,`brace-right`],v=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
|
|
376
|
-
`+g+` children.`);for(var b=0;b<g;b++){var x=new gu([new _u(f[b])],{width:`400em`,height:L(h),viewBox:`0 0 `+n+` `+m,preserveAspectRatio:v[b]+` slice`}),S=pd([_[b]],[x],t);if(g===1)return{span:S,minWidth:p,height:h};S.style.height=L(h),u.push(S)}return{span:J([`stretchy`],u,t),minWidth:p,height:h}}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=L(a),i>0&&(r.style.minWidth=L(i)),r},Sf=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=J([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new vu({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new vu({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=pd([],[new gu(c,{width:`100%`,height:L(o)})],i)}return a.height=o,a.style.height=L(o),a};function Cf(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function wf(e){var t=Tf(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function Tf(e){return e&&(e.type===`atom`||Au.hasOwnProperty(e.type))?e:null}var Ef=e=>{if(e instanceof hu)return e;if(xu(e)&&e.children.length===1)return Ef(e.children[0])},Df=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=Cf(e.base,`accent`),n=r.base,e.base=n,i=bu(Kd(e,t)),e.base=r):(r=Cf(e,`accent`),n=r.base);var a=Kd(n,t.havingCrampedStyle()),o=r.isShifty&&_l(n),s=0;o&&(s=Ef(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=xf(r,t),u=yd({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+L(2*s)+`)`,marginLeft:L(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=wd(`vec`,t),f=Cd.vec[1]):(d=ld({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=yu(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=J([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=L(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=yd({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=J([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},Of=(e,t)=>{var n=e.isStretchy?vf(e.label):new X(`mo`,[ef(e.label,e.mode)]),r=new X(`mover`,[sf(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},kf=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));Y({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=Pd(t[0]),r=!kf.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Df,mathmlBuilder:Of}),Y({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:Df,mathmlBuilder:Of}),Y({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Kd(e.base,t),r=xf(e,t),i=e.label===`\\utilde`?.12:0;return J([`mord`,`accentunder`],[yd({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=vf(e.label),r=new X(`munder`,[sf(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var Af=e=>{var t=new X(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};Y({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:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=_d(Kd(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=_d(Kd(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=xf(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=yd({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c},{type:`elem`,elem:o,shift:d}]})}else u=yd({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c}]});return u.children[0].children[0].children[1].classes.push(`svg-align`),J([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=vf(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=Af(sf(e.body,t));r=e.below?new X(`munderover`,[n,Af(sf(e.below,t)),i]):new X(`mover`,[n,i])}else e.below?r=new X(`munder`,[n,Af(sf(e.below,t))]):(r=Af(),r=new X(`mover`,[n,r]));return r}});function jf(e,t){var n=Bd(e.body,t,!0);return J([e.mclass],n,t)}function Mf(e,t){var n,r=af(e.body,t);return e.mclass===`minner`?n=new X(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new X(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new X(`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}Y({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:Fd(i),isCharacterBox:_l(i)}},htmlBuilder:jf,mathmlBuilder:Mf});var Nf=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`};Y({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:Nf(t[0]),body:Fd(t[1]),isCharacterBox:_l(t[1])}}}),Y({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:Nf(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:Fd(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:_l(c)}},htmlBuilder:jf,mathmlBuilder:Mf}),Y({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:Nf(t[0]),body:Fd(t[0])}},htmlBuilder(e,t){var n=Bd(e.body,t,!0),r=J([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new X(`mstyle`,af(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var Pf={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},Ff=()=>({type:`styling`,body:[],mode:`math`,style:`display`}),If=e=>e.type===`textord`&&e.text===`@`,Lf=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function Rf(e,t,n){var r=Pf[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function zf(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 F(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=Ff(),c=0;c<o.length;c++)if(!If(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=wf(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l))if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(Lf(o[p],l)){f=!1,c=p;break}if(If(o[p]))throw new F(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new F(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new F(`Expected one of "<>AV=|." after @`,o[c]);var m={type:`styling`,body:[Rf(l,u,e)],mode:`math`,style:`display`};r.push(m),s=Ff()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}Y({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=_d(Kd(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=L(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new X(`mrow`,[sf(e.label,t)]);return n=new X(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new X(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),Y({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=_d(Kd(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new X(`mrow`,[sf(e.fragment,t)])}}),Y({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=Cf(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=Cf(r[a],`textord`);i+=o.text}var s=parseInt(i),c;if(isNaN(s))throw new F(`\\@char has non-numeric argument `+i);if(s<0||s>=1114111)throw new F(`\\@char with invalid code point `+i);return s<=65535?c=String.fromCharCode(s):(s-=65536,c=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:`textord`,mode:n.mode,text:c}}});var Bf=(e,t)=>gd(Bd(e.body,t.withColor(e.color),!1)),Vf=(e,t)=>{var n=new X(`mstyle`,af(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};Y({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=Cf(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:Fd(i)}},htmlBuilder:Bf,mathmlBuilder:Vf}),Y({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=Cf(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:Bf,mathmlBuilder:Vf}),Y({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&Cf(i,`size`).value}},htmlBuilder(e,t){var n=J([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=L(au(e.size,t)))),n},mathmlBuilder(e,t){var n=new X(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,L(au(e.size,t)))),n}});var Hf={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},Uf=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new F(`Expected a control sequence`,e);return t},Wf=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},Gf=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};Y({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(Hf[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=Hf[r.text]),Cf(t.parseFunction(),`internal`);throw new F(`Invalid token after macro prefix`,r)}}),Y({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(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new F(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new F(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new F(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new F(`Expected a macro definition`);else s[a].push(r.text);var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===Hf[n]),{type:`internal`,mode:t.mode}}}),Y({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Uf(t.gullet.popToken());return t.gullet.consumeSpaces(),Gf(t,r,Wf(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),Y({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Uf(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Gf(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var Kf=function(e,t,n){var r=Eu(ju.math[e]&&ju.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},qf=function(e,t,n,r){var i=n.havingBaseStyle(t),a=J(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},Jf=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=L(i),e.height-=i,e.depth+=i},Yf=function(e,t,n,r,i,a){var o=qf(od(e,`Main-Regular`,i,r),t,r,a);return n&&Jf(o,r,t),o},Xf=function(e,t,n,r){return od(e,`Size`+t+`-Regular`,n,r)},Zf=function(e,t,n,r,i,a){var o=Xf(e,t,i,r),s=qf(J([`delimsizing`,`size`+t],[o],r),I.TEXT,r,a);return n&&Jf(s,r,I.TEXT),s},Qf=function(e,t,n){return{type:`elem`,elem:J([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[J([],[od(e,t,n)])])}},$f=function(e,t,n){var r=Su[`Size4-Regular`][e.charCodeAt(0)]?Su[`Size4-Regular`][e.charCodeAt(0)][4]:Su[`Size1-Regular`][e.charCodeAt(0)][4],i=pd([],[new gu([new _u(`inner`,Ql(e,Math.round(1e3*t)))],{width:L(r),height:L(t),style:`width:`+L(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=L(t),i.style.width=L(r),{type:`elem`,elem:i}},ep=.008,tp={type:`kern`,size:-1*ep},np=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),rp=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),ip=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):np.has(e)?(c=`∣`,u=`vert`,d=333):rp.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=Kf(o,f,i),m=p.height+p.depth,h=Kf(c,f,i),g=h.height+h.depth,_=Kf(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=Kf(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,w=r.fontMetrics().axisHeight;n&&(w*=r.sizeMultiplier);var T=C/2-w,E=[];if(u.length>0){var ee=C-m-v,te=Math.round(C*1e3),D=eu(u,Math.round(ee*1e3)),O=new _u(u,D),ne=L(d/1e3),re=L(te/1e3),ie=pd([],[new gu([O],{width:ne,height:re,viewBox:`0 0 `+d+` `+te})],r);ie.height=te/1e3,ie.style.width=ne,ie.style.height=re,E.push({type:`elem`,elem:ie})}else{if(E.push(Qf(l,f,i)),E.push(tp),s===null){var ae=C-m-v+2*ep;E.push($f(c,ae,r))}else{var oe=(C-m-v-y)/2+2*ep;E.push($f(c,oe,r)),E.push(tp),E.push(Qf(s,f,i)),E.push(tp),E.push($f(c,oe,r))}E.push(tp),E.push(Qf(o,f,i))}var k=r.havingBaseStyle(I.TEXT);return qf(J([`delimsizing`,`mult`],[yd({positionType:`bottom`,positionData:T,children:E})],k),I.TEXT,r,a)},ap=80,op=.08,sp=function(e,t,n,r,i){return pd([`hide-tail`],[new gu([new _u(e,Zl(e,r,n))],{width:`400em`,height:L(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},cp=function(e,t){var n=t.havingBaseSizing(),r=vp(`\\surd`,e*n.sizeMultiplier,gp,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s=0,c=0,l=0,u;return r.type===`small`?(l=1e3+1e3*a+ap,e<1?i=1:e<1.4&&(i=.7),s=(1+a+op)/i,c=(1+a)/i,o=sp(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+ap)*fp[r.size],c=(fp[r.size]+a)/i,s=(fp[r.size]+a+op)/i,o=sp(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+op,c=e+a,l=Math.floor(1e3*e+a)+ap,o=sp(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=L(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},lp=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),up=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),dp=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),fp=[0,1.2,1.8,2.4,3],pp=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),lp.has(e)||dp.has(e))return Zf(e,t,!1,n,r,i);if(up.has(e))return ip(e,fp[t],!1,n,r,i);throw new F(`Illegal delimiter: '`+e+`'`)},mp=[{type:`small`,style:I.SCRIPTSCRIPT},{type:`small`,style:I.SCRIPT},{type:`small`,style:I.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],hp=[{type:`small`,style:I.SCRIPTSCRIPT},{type:`small`,style:I.SCRIPT},{type:`small`,style:I.TEXT},{type:`stack`}],gp=[{type:`small`,style:I.SCRIPTSCRIPT},{type:`small`,style:I.SCRIPT},{type:`small`,style:I.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],_p=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},vp=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=Kf(e,_p(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},yp=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=dp.has(e)?mp:lp.has(e)?gp:hp,s=vp(e,t,o,r);return s.type===`small`?Yf(e,s.style,n,r,i,a):s.type===`large`?Zf(e,s.size,n,r,i,a):ip(e,t,n,r,i,a)},bp=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return yp(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},xp={"\\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}},Sp=new Set(`(,\\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,.`.split(`,`));function Cp(e,t){var n=Tf(e);if(n&&Sp.has(n.text))return n;throw n?new F(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new F(`Invalid delimiter type '`+e.type+`'`,e)}Y({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=Cp(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:xp[e.funcName].size,mclass:xp[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?J([e.mclass]):pp(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(ef(e.delim,e.mode));var n=new X(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=L(fp[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function wp(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}Y({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new F(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:Cp(t[0],e).text,color:n}}}),Y({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Cp(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=Cf(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{wp(e);for(var n=Bd(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++)n[o].isMiddle?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i));r*=t.sizeMultiplier,i*=t.sizeMultiplier;var s=e.left===`.`?Gd(t,[`mopen`]):bp(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(s),a)for(var c=1;c<n.length;c++){var l=n[c].isMiddle;l&&(n[c]=bp(l.delim,r,i,l.options,e.mode,[]))}var u;if(e.right===`.`)u=Gd(t,[`mclose`]);else{var d=e.rightColor?t.withColor(e.rightColor):t;u=bp(e.right,r,i,d,e.mode,[`mclose`])}return n.push(u),J([`minner`],n,t)},mathmlBuilder:(e,t)=>{wp(e);var n=af(e.body,t);if(e.left!==`.`){var r=new X(`mo`,[ef(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new X(`mo`,[ef(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return tf(n)}}),Y({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Cp(t[0],e);if(!e.parser.leftrightDepth)throw new F(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===`.`)n=Gd(t,[]);else{n=pp(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=new X(`mo`,[e.delim===`\\vert`||e.delim===`|`?ef(`|`,`text`):ef(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var Tp=(e,t)=>{var n=_d(Kd(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o=0,s=_l(e.body);if(r===`sout`)a=J([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=au({number:.6,unit:`pt`},t),l=au({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=L(d/2+c);var f=Math.floor(1e3*d*i);a=pd([`hide-tail`],[new gu([new _u(`phase`,Yl(f))],{width:`400em`,height:L(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=L(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p=0,m=0,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=Sf(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=L(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=L(h),a.style.borderRightWidth=L(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=yd({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=yd({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?J([`mord`,`cancel-lap`],[g],t):J([`mord`],[g],t)},Ep=(e,t)=>{var n=0,r=new X(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[sf(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 i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+L(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`);break}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};Y({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`text`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Cf(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:Tp,mathmlBuilder:Ep}),Y({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`text`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Cf(t[0],`color-token`).color,o=Cf(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:Tp,mathmlBuilder:Ep}),Y({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]}}}),Y({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:Tp,mathmlBuilder:Ep}),Y({type:`enclose`,names:[`\\sout`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:Tp,mathmlBuilder:Ep}),Y({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 Dp={};function Op(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)Dp[n[c]]=s;a&&(jd[t]=a),o&&(Md[t]=o)}var kp={};function Z(e,t){kp[e]=t}var Ap=class e{constructor(e,t,n){this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},jp=class e{constructor(e,t){this.text=e,this.loc=t}range(t,n){return new e(n,Ap.range(this,t))}};function Mp(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 Np=e=>{if(!e.parser.settings.displayMode)throw new F(`{`+e.envName+`} can be used only in display mode.`)},Pp=new Set([`gather`,`gather*`]);function Fp(e){if(!e.includes(`ed`))return!e.includes(`*`)}function Ip(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new F(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new jp(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(Mp(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new F(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var w=void 0;e.gullet.future().text!==` `&&(w=e.parseSizeGroup(!0)),g.push(w?w.value:null),b(),_.push(Mp(e)),m=[],h.push(m),y()}else throw new F(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function Lp(e){return e.slice(0,1)===`d`?`display`:`text`}var Rp=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(I.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?au({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S=Array(y.length);for(r=0;r<y.length;++r){var C=Kd(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S[r]=C}var w=e.rowGaps[n],T=0;w&&(T=au(w,t),T>0&&(T+=g,x<T&&(x=T),T=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+T,s[n]=S,v(a[n+1])}var E=_/2+t.fontMetrics().axisHeight,ee=e.cols||[],te=[],D,O,ne=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var re=s[n],ie=re.pos-E,ae=e.tags[n],oe=void 0;oe=ae===!0?J([`eqn-num`],[],t):ae===!1?J([],[],t):J([],Bd(ae,t,!0),t),oe.depth=re.depth,oe.height=re.height,ne.push({type:`elem`,elem:oe,shift:ie})}for(r=0,O=0;r<o||O<ee.length;++r,++O){for(var k=ee[O],se=!0;(ce=k)?.type===`separator`;){var ce;if(se||(D=J([`arraycolsep`],[]),D.style.width=L(t.fontMetrics().doubleRuleSep),te.push(D)),k.separator===`|`||k.separator===`:`){var le=k.separator===`|`?`solid`:`dashed`,ue=J([`vertical-separator`],[],t);ue.style.height=L(_),ue.style.borderRightWidth=L(l),ue.style.borderRightStyle=le,ue.style.margin=`0 `+L(-l/2);var de=_-E;de&&(ue.style.verticalAlign=L(-de)),te.push(ue)}else throw new F(`Invalid separator type: `+k.separator);O++,k=ee[O],se=!1}if(!(r>=o)){var A=void 0;(r>0||e.hskipBeforeAndAfter)&&(A=k?.pregap??d,A!==0&&(D=J([`arraycolsep`],[]),D.style.width=L(A),te.push(D)));var fe=[];for(n=0;n<i;++n){var pe=s[n],me=pe[r];if(me){var he=pe.pos-E;me.depth=pe.depth,me.height=pe.height,fe.push({type:`elem`,elem:me,shift:he})}}var ge=yd({positionType:`individualShift`,children:fe}),_e=J([`col-align-`+(k?.align||`c`)],[ge]);te.push(_e),(r<o-1||e.hskipBeforeAndAfter)&&(A=k?.postgap??d,A!==0&&(D=J([`arraycolsep`],[]),D.style.width=L(A),te.push(D)))}}var ve=J([`mtable`],te);if(c.length>0){for(var ye=md(`hline`,t,l),be=md(`hdashline`,t,l),xe=[{type:`elem`,elem:ve,shift:0}];c.length>0;){var Se=c.pop(),Ce=Se.pos-E;Se.isDashed?xe.push({type:`elem`,elem:be,shift:Ce}):xe.push({type:`elem`,elem:ye,shift:Ce})}ve=yd({positionType:`individualShift`,children:xe})}if(ne.length===0)return J([`mord`],[ve],t);var we=J([`tag`],[yd({positionType:`individualShift`,children:ne})],t);return gd([ve,we])},zp={c:`center `,l:`left `,r:`right `},Bp=function(e,t){for(var n=[],r=new X(`mtd`,[],[`mtr-glue`]),i=new X(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new X(`mtd`,[sf(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new X(`mtr`,s))}var l=new X(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,L(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=zp[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,w=e.hLinesBeforeRow;d+=w[0].length>0?`left `:``,d+=w[w.length-1].length>0?`right `:``;for(var T=1;T<w.length-1;T++)C+=w[T].length===0?`none `:w[T][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new X(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new X(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},Vp=function(e,t){e.envName.includes(`ed`)||Np(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=Ip(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:Fp(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},`display`),o=0,s=0,c={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var l=``,u=0;u<t[0].body.length;u++){var d=Cf(t[0].body[u],`textord`);l+=d.text}o=Number(l),s=o*2}var f=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2)Cf(Cf(e[t],`styling`).body[0],`ordgroup`).body.unshift(c);if(f)s<e.length&&(s=e.length);else{var n=e.length/2;if(o<n)throw new F(`Too many math in a row: `+(`expected `+o+`, but got `+n),e[0])}});for(var p=0;p<s;++p){var m=`r`,h=0;p%2==1?m=`l`:p>0&&f&&(h=1),n[p]={type:`align`,align:m,pregap:h,postgap:0}}return a.colSeparationType=f?`align`:`alignat`,a};Op({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(Tf(t[0])?[t[0]]:Cf(t[0],`ordgroup`).body).map(function(e){var t=wf(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new F(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Ip(e.parser,r,Lp(e.envName))},htmlBuilder:Rp,mathmlBuilder:Bp}),Op({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 i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new F(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=Ip(e.parser,r,Lp(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Rp,mathmlBuilder:Bp}),Op({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=Ip(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Rp,mathmlBuilder:Bp}),Op({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(Tf(t[0])?[t[0]]:Cf(t[0],`ordgroup`).body).map(function(e){var t=wf(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new F(`Unknown column alignment: `+t,e)});if(n.length>1)throw new F(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=Ip(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new F(`{subarray} can contain only one column`);return i},htmlBuilder:Rp,mathmlBuilder:Bp}),Op({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=Ip(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},Lp(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Rp,mathmlBuilder:Bp}),Op({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:Vp,htmlBuilder:Rp,mathmlBuilder:Bp}),Op({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){Pp.has(e.envName)&&Np(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:Fp(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Ip(e.parser,t,`display`)},htmlBuilder:Rp,mathmlBuilder:Bp}),Op({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:Vp,htmlBuilder:Rp,mathmlBuilder:Bp}),Op({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){Np(e);var t={autoTag:Fp(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Ip(e.parser,t,`display`)},htmlBuilder:Rp,mathmlBuilder:Bp}),Op({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return Np(e),zf(e.parser)},htmlBuilder:Rp,mathmlBuilder:Bp}),Z(`\\nonumber`,`\\gdef\\@eqnsw{0}`),Z(`\\notag`,`\\nonumber`),Y({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new F(e.funcName+` valid only within array environment`)}});var Hp=Dp;Y({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new F(`Invalid environment name`,i);for(var a=``,o=0;o<i.body.length;++o)a+=Cf(i.body[o],`textord`).text;if(r===`\\begin`){if(!Hp.hasOwnProperty(a))throw new F(`No such environment: `+a,i);var s=Hp[a],{args:c,optArgs:l}=n.parseArguments(`\\begin{`+a+`}`,s),u={mode:n.mode,envName:a,parser:n},d=s.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=Cf(n.parseFunction(),`environment`);if(p.name!==a)throw new F(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var Up=(e,t)=>{var n=e.font,r=t.withFont(n);return Kd(e.body,r)},Wp=(e,t)=>{var n=e.font,r=t.withFont(n);return sf(e.body,r)},Gp={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`,"\\bm":`\\boldsymbol`};Y({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,i=Pd(t[0]),a=r;return a in Gp&&(a=Gp[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Up,mathmlBuilder:Wp}),Y({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`mclass`,mode:n.mode,mclass:Nf(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:_l(r)}}}),Y({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:Up,mathmlBuilder:Wp});var Kp=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Kd(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=Kd(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=au(e.barSize,t),u=md(`frac-line`,t,d)):u=md(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===I.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=yd({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=yd({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===I.DISPLAY.size?t.fontMetrics().delim1:n.size===I.SCRIPTSCRIPT.size?t.havingStyle(I.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?Gd(t,[`mopen`]):yp(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?J([]):e.rightDelim==null?Gd(t,[`mclose`]):yp(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return J([`mord`].concat(a.sizingClasses(t)),[x,J([`mfrac`],[g]),S],t)},qp=(e,t)=>{var n=new X(`mfrac`,[sf(e.numer,t),sf(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=au(e.barSize,t);n.setAttribute(`linethickness`,L(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new X(`mo`,[new Xd(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new X(`mo`,[new Xd(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return tf(i)}return n},Jp=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;Y({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),Jp({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:Kp,mathmlBuilder:qp}),Y({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var Yp=[`display`,`text`,`script`,`scriptscript`],Xp=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};Y({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],i=t[5],a=Pd(t[0]),o=a.type===`atom`&&a.family===`open`?Xp(a.text):null,s=Pd(t[1]),c=s.type===`atom`&&s.family===`close`?Xp(s.text):null,l=Cf(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=Cf(p.body[0],`textord`);f=Yp[Number(m.text)]}}else p=Cf(p,`textord`),f=Yp[Number(p.text)];return Jp({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),Y({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:Cf(t[0],`size`).value,token:i}}}),Y({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=Cf(t[1],`infix`).size;if(!a)throw Error(`\\\\abovefrac expected size, but got `+String(a));var o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var Zp=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Kd(e.sup,t.havingStyle(n.sup()),t):Kd(e.sub,t.havingStyle(n.sub()),t),i=Cf(e.base,`horizBrace`)):i=Cf(e,`horizBrace`);var a=Kd(i.base,t.havingBaseStyle(I.DISPLAY)),o=xf(i,t),s;if(i.isOver?(s=yd({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o}]}),s.children[0].children[0].children[1].classes.push(`svg-align`)):(s=yd({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o},{type:`kern`,size:.1},{type:`elem`,elem:a}]}),s.children[0].children[0].children[0].classes.push(`svg-align`)),r){var c=J([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?yd({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):yd({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return J([`minner`,i.isOver?`mover`:`munder`],[s],t)};Y({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:Zp,mathmlBuilder:(e,t)=>{var n=vf(e.label);return new X(e.isOver?`mover`:`munder`,[sf(e.base,t),n])}}),Y({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=Cf(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:Fd(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=Bd(e.body,t,!1);return hd(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=of(e.body,t);return n instanceof X||(n=new X(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),Y({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=Cf(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:Fd(s)}}}),Y({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:Fd(t[0])}},htmlBuilder(e,t){return gd(Bd(e.body,t,!1))},mathmlBuilder(e,t){return new X(`mrow`,af(e.body,t))}}),Y({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],props:{numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=Cf(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,c={};switch(r){case`\\htmlClass`:c.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:c.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:c.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var l=a.split(`,`),u=0;u<l.length;u++){var d=l[u],f=d.indexOf(`=`);if(f<0)throw new F(`\\htmlData key/value '`+d+`' missing equals sign`);var p=d.slice(0,f),m=d.slice(f+1);c[`data-`+p.trim()]=m}s={command:`\\htmlData`,attributes:c};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(s)?{type:`html`,mode:n.mode,attributes:c,body:Fd(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Bd(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=J(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>of(e.body,t)}),Y({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:Fd(t[0]),mathml:Fd(t[1])}},htmlBuilder:(e,t)=>gd(Bd(e.html,t,!1)),mathmlBuilder:(e,t)=>of(e.mathml,t)});var Qp=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new F(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!iu(n))throw new F(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};Y({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=Cf(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=Qp(d);break;case`height`:a=Qp(d);break;case`totalheight`:o=Qp(d);break;default:throw new F(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=Cf(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=au(e.height,t),r=0;e.totalheight.number>0&&(r=au(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=au(e.width,t));var a={height:L(n+r)};i>0&&(a.width=L(i)),r>0&&(a.verticalAlign=L(-r));var o=new pu(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new X(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=au(e.height,t),i=0;if(e.totalheight.number>0&&(i=au(e.totalheight,t)-r,n.setAttribute(`valign`,L(-i))),n.setAttribute(`height`,L(r+i)),e.width.number>0){var a=au(e.width,t);n.setAttribute(`width`,L(a))}return n.setAttribute(`src`,e.src),n}}),Y({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,i=Cf(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return bd(e.dimension,t)},mathmlBuilder(e,t){return new Zd(au(e.dimension,t))}}),Y({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=J([],[Kd(e.body,t)]),n=J([`inner`],[n],t)):n=J([`inner`],[Kd(e.body,t)]);var r=J([`fix`],[]),i=J([e.alignment],[n,r],t),a=J([`strut`]);return a.style.height=L(i.height+i.depth),i.depth&&(a.style.verticalAlign=L(-i.depth)),i.children.unshift(a),i=J([`thinbox`],[i],t),J([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[sf(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}}),Y({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,body:o}}}),Y({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new F(`Mismatched `+e.funcName)}});var $p=(e,t)=>{switch(t.style.size){case I.DISPLAY.size:return e.display;case I.TEXT.size:return e.text;case I.SCRIPT.size:return e.script;case I.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Y({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:Fd(t[0]),text:Fd(t[1]),script:Fd(t[2]),scriptscript:Fd(t[3])}},htmlBuilder:(e,t)=>gd(Bd($p(e,t),t,!1)),mathmlBuilder:(e,t)=>of($p(e,t),t)});var em=(e,t,n,r,i,a,o)=>{e=J([],[e]);var s=n&&_l(n),c,l;if(t){var u=Kd(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Kd(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=yd({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:L(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:L(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=yd({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:L(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=yd({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:L(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=J([`mspace`],[],r);m.style.marginRight=L(a),p.unshift(m)}return J([`mop`,`op-limits`],p,r)},tm=new Set([`\\smallint`]),nm=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Cf(e.base,`op`),i=!0):a=Cf(e,`op`);var o=t.style,s=!1;o.size===I.DISPLAY.size&&a.symbol&&!tm.has(a.name)&&(s=!0);var c;if(a.symbol){var l=s?`Size2-Regular`:`Size1-Regular`,u=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(u=a.name.slice(1),a.name=u===`oiint`?`\\iint`:`\\iiint`),c=od(a.name,l,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),u.length>0){var d=c.italic,f=wd(u+`Size`+(s?`2`:`1`),t);c=yd({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+u,c.classes.unshift(`mop`),c.italic=d}}else if(a.body){var p=Bd(a.body,t,!0);p.length===1&&p[0]instanceof hu?(c=p[0],c.classes[0]=`mop`):c=J([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(sd(a.name[h],a.mode,t));c=J([`mop`],m,t)}var g=0,_=0;return(c instanceof hu||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic||0),i?em(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=L(g)),c)},rm=(e,t)=>{var n;if(e.symbol)n=new X(`mo`,[ef(e.name,e.mode)]),tm.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new X(`mo`,af(e.body,t));else{n=new X(`mi`,[new Xd(e.name.slice(1))]);var r=new X(`mo`,[ef(``,`text`)]);n=e.parentIsSupSub?new X(`mrow`,[n,r]):Yd([n,r])}return n},im={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};Y({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=im[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:nm,mathmlBuilder:rm}),Y({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:Fd(r)}},htmlBuilder:nm,mathmlBuilder:rm});var am={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};Y({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`.split(`.`),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:nm,mathmlBuilder:rm}),Y({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:nm,mathmlBuilder:rm}),Y({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=am[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:nm,mathmlBuilder:rm});var om=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Cf(e.base,`operatorname`),i=!0):a=Cf(e,`operatorname`);var o;if(a.body.length>0){for(var s=Bd(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof hu&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=J([`mop`],s,t)}else o=J([`mop`],[],t);return i?em(o,n,r,t,t.style,0,0):o};Y({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:Fd(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:om,mathmlBuilder:(e,t)=>{for(var n=af(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof Zd))if(a instanceof X)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof Xd?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}r&&(n=[new Xd(n.map(e=>e.toText()).join(``))]);var s=new X(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new X(`mo`,[ef(``,`text`)]);return e.parentIsSupSub?new X(`mrow`,[s,c]):Yd([s,c])}}),Z(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Nd({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?gd(Bd(e.body,t,!1)):J([`mord`],Bd(e.body,t,!0),t)},mathmlBuilder(e,t){return of(e.body,t,!0)}}),Y({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=Kd(e.body,t.havingCrampedStyle()),r=md(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return J([`mord`,`overline`],[yd({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new X(`mo`,[new Xd(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`mover`,[sf(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),Y({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:Fd(r)}},htmlBuilder:(e,t)=>gd(Bd(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new X(`mphantom`,af(e.body,t))}),Z(`\\hphantom`,`\\smash{\\phantom{#1}}`),Y({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)=>J([`mord`,`rlap`],[J([`inner`],[Kd(e.body,t.withPhantom())]),J([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[new X(`mphantom`,af(Fd(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),Y({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Cf(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Kd(e.body,t);return yd({positionType:`shift`,positionData:-au(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new X(`mpadded`,[sf(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),Y({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),Y({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,i=n[0],a=Cf(t[0],`size`),o=Cf(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&Cf(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=J([`mord`,`rule`],[],t),r=au(e.width,t),i=au(e.height,t),a=e.shift?au(e.shift,t):0;return n.style.borderRightWidth=L(r),n.style.borderTopWidth=L(i),n.style.bottom=L(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=au(e.width,t),r=au(e.height,t),i=e.shift?au(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new X(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,L(n)),o.setAttribute(`height`,L(r));var s=new X(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,L(i)):(s.setAttribute(`height`,L(i)),s.setAttribute(`depth`,L(-i))),s.setAttribute(`voffset`,L(i)),s}});function sm(e,t,n){for(var r=Bd(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return gd(r)}var cm=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];Y({type:`sizing`,names:cm,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:cm.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return sm(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new X(`mstyle`,af(e.body,n));return r.setAttribute(`mathsize`,L(n.sizeMultiplier)),r}}),Y({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&Cf(n[0],`ordgroup`);if(o)for(var s=``,c=0;c<o.body.length;++c){var l=o.body[c];if(s=wf(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=J([],[Kd(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return J([`mord`,`smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return J([`mord`],[yd({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[sf(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),Y({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Kd(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=_d(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<I.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=cp(n.height+n.depth+a+r,t),l=o.height-s;l>n.height+n.depth+a&&(a=(a+l-n.height-n.depth)/2);var u=o.height-n.height-a-s;n.style.paddingLeft=L(c);var d=yd({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+u)},{type:`elem`,elem:o},{type:`kern`,size:s}]});if(e.index){var f=t.havingStyle(I.SCRIPTSCRIPT),p=Kd(e.index,f,t);return J([`mord`,`sqrt`],[J([`root`],[yd({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}else return J([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new X(`mroot`,[sf(n,t),sf(r,t)]):new X(`msqrt`,[sf(n,t)])}});var lm={display:I.DISPLAY,text:I.TEXT,script:I.SCRIPT,scriptscript:I.SCRIPTSCRIPT};Y({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=lm[e.style],r=t.havingStyle(n).withFont(``);return sm(e.body,r,t)},mathmlBuilder(e,t){var n=lm[e.style],r=t.havingStyle(n),i=new X(`mstyle`,af(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var um=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===I.DISPLAY.size||n.alwaysHandleSupSub)?nm:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===I.DISPLAY.size||n.limits)?om:null:n.type===`accent`?_l(n.base)?Df:null:n.type===`horizBrace`&&!e.sub===n.isOver?Zp:null:null};Nd({type:`supsub`,htmlBuilder(e,t){var n=um(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=Kd(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&_l(r);if(i){var p=t.havingStyle(t.style.sup());s=Kd(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=Kd(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===I.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=L(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof hu||y)&&(v=L(-o.italic))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=yd({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=yd({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=yd({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return J([Wd(o,`right`)||`mord`],[o,J([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[sf(e.base,t)];e.sub&&a.push(sf(e.sub,t)),e.sup&&a.push(sf(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===I.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===I.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===I.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===I.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===I.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===I.DISPLAY)?`munder`:`msub`}return new X(o,a)}}),Nd({type:`atom`,htmlBuilder(e,t){return sd(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new X(`mo`,[ef(e.text,e.mode)]);if(e.family===`bin`){var r=nf(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var dm={mi:`italic`,mn:`normal`,mtext:`normal`};Nd({type:`mathord`,htmlBuilder(e,t){return ld(e,t,`mathord`)},mathmlBuilder(e,t){var n=new X(`mi`,[ef(e.text,e.mode,t)]),r=nf(e,t)||`italic`;return r!==dm[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Nd({type:`textord`,htmlBuilder(e,t){return ld(e,t,`textord`)},mathmlBuilder(e,t){var n=ef(e.text,e.mode,t),r=nf(e,t)||`normal`,i=e.mode===`text`?new X(`mtext`,[n]):/[0-9]/.test(e.text)?new X(`mn`,[n]):e.text===`\\prime`?new X(`mo`,[n]):new X(`mi`,[n]);return r!==dm[i.type]&&i.setAttribute(`mathvariant`,r),i}});var fm={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},pm={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};Nd({type:`spacing`,htmlBuilder(e,t){if(pm.hasOwnProperty(e.text)){var n=pm[e.text].className||``;if(e.mode===`text`){var r=ld(e,t,`textord`);return r.classes.push(n),r}else return J([`mspace`,n],[sd(e.text,e.mode,t)],t)}else if(fm.hasOwnProperty(e.text))return J([`mspace`,fm[e.text]],[],t);else throw new F(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(pm.hasOwnProperty(e.text))n=new X(`mtext`,[new Xd(`\xA0`)]);else if(fm.hasOwnProperty(e.text))return new X(`mspace`);else throw new F(`Unknown type of space "`+e.text+`"`);return n}});var mm=()=>{var e=new X(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};Nd({type:`tag`,mathmlBuilder(e,t){var n=new X(`mtable`,[new X(`mtr`,[mm(),new X(`mtd`,[of(e.body,t)]),mm(),new X(`mtd`,[of(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var hm={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},gm={"\\textbf":`textbf`,"\\textmd":`textmd`},_m={"\\textit":`textit`,"\\textup":`textup`},vm=(e,t)=>{var n=e.font;return n?hm[n]?t.withTextFontFamily(hm[n]):gm[n]?t.withTextFontWeight(gm[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(_m[n]):t};Y({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,i=t[0];return{type:`text`,mode:n.mode,body:Fd(i),font:r}},htmlBuilder(e,t){var n=vm(e,t);return J([`mord`,`text`],Bd(e.body,n,!0),n)},mathmlBuilder(e,t){var n=vm(e,t);return of(e.body,n)}}),Y({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=Kd(e.body,t),r=md(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return J([`mord`,`underline`],[yd({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new X(`mo`,[new Xd(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`munder`,[sf(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Y({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=Kd(e.body,t),r=t.fontMetrics().axisHeight;return yd({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new X(`mrow`,[new X(`mpadded`,[sf(e.body,t)],[`vcenter`])])}}),Y({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new F(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=ym(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(od(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return J([`mord`,`text`].concat(i.sizingClasses(t)),dd(r),i)},mathmlBuilder(e,t){var n=new X(`mtext`,[new Xd(ym(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var ym=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),bm=Ad,xm=`[ \r
|
|
377
|
-
]`,
|
|
251
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function ba(e){return`toText`in e}var xa=class{constructor(e){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=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(ba(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},Sa={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},Ca={ex:!0,em:!0,mu:!0},wa=function(e){return typeof e!=`string`&&(e=e.unit),e in Sa||e in Ca||e===`ex`},Ta=function(e,t){var n;if(e.unit in Sa)n=Sa[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new N(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},F=function(e){return+e.toFixed(4)+`em`},Ea=function(e){return e.filter(e=>e).join(` `)},Da=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=Oi(n)+`:`+r+`;`)}return t},Oa=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},ka=function(e){var t=document.createElement(e);t.className=Ea(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},Aa=/[\s"'>/=\x00-\x1f]/,ja=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+ji(Ea(this.classes))+`"`);var n=Da(this.style);n&&(t+=` style="`+ji(n)+`"`);for(var r of Object.keys(this.attributes)){if(Aa.test(r))throw new N(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+ji(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},Ma=class{constructor(e,t,n,r){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,this.italic=void 0,Oa.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return ka.call(this,`span`)}toMarkup(){return ja.call(this,`span`)}},Na=class{constructor(e,t,n,r){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,Oa.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return ka.call(this,`a`)}toMarkup(){return ja.call(this,`a`)}},Pa=class{constructor(e,t,n){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=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+ji(this.src)+`"`+(` alt="`+ji(this.alt)+`"`),t=Da(this.style);return t&&(e+=` style="`+ji(t)+`"`),e+=`'/>`,e}},Fa={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},Ia=class{constructor(e,t,n,r,i,a,o,s){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=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=ia(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=Fa[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=F(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=Ea(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=ji(Ea(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+F(this.italic)+`;`),n+=Da(this.style),n&&(e=!0,t+=` style="`+ji(n)+`"`);var r=ji(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},La=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+ji(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},Ra=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,va[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+ji(this.alternate)+`"/>`:`<path d="`+ji(va[this.pathName])+`"/>`}},za=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+ji(this.attributes[t])+`"`;return e+=`/>`,e}};function Ba(e){if(e instanceof Ia)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function Va(e){if(e instanceof Ma)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var Ha=e=>e instanceof Ma||e instanceof Na||e instanceof xa,Ua={"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]}},Wa={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]},Ga={Å:`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 Ka(e,t){Ua[e]=t}function qa(e,t,n){if(!Ua[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=Ua[t][r];if(!i&&e[0]in Ga&&(r=Ga[e[0]].charCodeAt(0),i=Ua[t][r]),!i&&n===`text`&&oa(r)&&(i=Ua[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Ja={};function Ya(e){var t=e>=5?0:e>=3?1:2;if(!Ja[t]){var n=Ja[t]={cssEmPerMu:Wa.quad[t]/18};for(var r in Wa)Wa.hasOwnProperty(r)&&(n[r]=Wa[r][t])}return Ja[t]}var Xa={math:{},text:{}};function I(e,t,n,r,i,a){Xa[e][i]={font:t,group:n,replace:r},a&&r&&(Xa[e][r]=Xa[e][i])}var L=`math`,R=`text`,z=`main`,B=`ams`,Za=`accent-token`,V=`bin`,Qa=`close`,$a=`inner`,H=`mathord`,eo=`op-token`,to=`open`,no=`punct`,U=`rel`,ro=`spacing`,W=`textord`;I(L,z,U,`≡`,`\\equiv`,!0),I(L,z,U,`≺`,`\\prec`,!0),I(L,z,U,`≻`,`\\succ`,!0),I(L,z,U,`∼`,`\\sim`,!0),I(L,z,U,`⊥`,`\\perp`),I(L,z,U,`⪯`,`\\preceq`,!0),I(L,z,U,`⪰`,`\\succeq`,!0),I(L,z,U,`≃`,`\\simeq`,!0),I(L,z,U,`∣`,`\\mid`,!0),I(L,z,U,`≪`,`\\ll`,!0),I(L,z,U,`≫`,`\\gg`,!0),I(L,z,U,`≍`,`\\asymp`,!0),I(L,z,U,`∥`,`\\parallel`),I(L,z,U,`⋈`,`\\bowtie`,!0),I(L,z,U,`⌣`,`\\smile`,!0),I(L,z,U,`⊑`,`\\sqsubseteq`,!0),I(L,z,U,`⊒`,`\\sqsupseteq`,!0),I(L,z,U,`≐`,`\\doteq`,!0),I(L,z,U,`⌢`,`\\frown`,!0),I(L,z,U,`∋`,`\\ni`,!0),I(L,z,U,`∝`,`\\propto`,!0),I(L,z,U,`⊢`,`\\vdash`,!0),I(L,z,U,`⊣`,`\\dashv`,!0),I(L,z,U,`∋`,`\\owns`),I(L,z,no,`.`,`\\ldotp`),I(L,z,no,`⋅`,`\\cdotp`),I(L,z,no,`⋅`,`·`),I(R,z,W,`⋅`,`·`),I(L,z,W,`#`,`\\#`),I(R,z,W,`#`,`\\#`),I(L,z,W,`&`,`\\&`),I(R,z,W,`&`,`\\&`),I(L,z,W,`ℵ`,`\\aleph`,!0),I(L,z,W,`∀`,`\\forall`,!0),I(L,z,W,`ℏ`,`\\hbar`,!0),I(L,z,W,`∃`,`\\exists`,!0),I(L,z,W,`∇`,`\\nabla`,!0),I(L,z,W,`♭`,`\\flat`,!0),I(L,z,W,`ℓ`,`\\ell`,!0),I(L,z,W,`♮`,`\\natural`,!0),I(L,z,W,`♣`,`\\clubsuit`,!0),I(L,z,W,`℘`,`\\wp`,!0),I(L,z,W,`♯`,`\\sharp`,!0),I(L,z,W,`♢`,`\\diamondsuit`,!0),I(L,z,W,`ℜ`,`\\Re`,!0),I(L,z,W,`♡`,`\\heartsuit`,!0),I(L,z,W,`ℑ`,`\\Im`,!0),I(L,z,W,`♠`,`\\spadesuit`,!0),I(L,z,W,`§`,`\\S`,!0),I(R,z,W,`§`,`\\S`),I(L,z,W,`¶`,`\\P`,!0),I(R,z,W,`¶`,`\\P`),I(L,z,W,`†`,`\\dag`),I(R,z,W,`†`,`\\dag`),I(R,z,W,`†`,`\\textdagger`),I(L,z,W,`‡`,`\\ddag`),I(R,z,W,`‡`,`\\ddag`),I(R,z,W,`‡`,`\\textdaggerdbl`),I(L,z,Qa,`⎱`,`\\rmoustache`,!0),I(L,z,to,`⎰`,`\\lmoustache`,!0),I(L,z,Qa,`⟯`,`\\rgroup`,!0),I(L,z,to,`⟮`,`\\lgroup`,!0),I(L,z,V,`∓`,`\\mp`,!0),I(L,z,V,`⊖`,`\\ominus`,!0),I(L,z,V,`⊎`,`\\uplus`,!0),I(L,z,V,`⊓`,`\\sqcap`,!0),I(L,z,V,`∗`,`\\ast`),I(L,z,V,`⊔`,`\\sqcup`,!0),I(L,z,V,`◯`,`\\bigcirc`,!0),I(L,z,V,`∙`,`\\bullet`,!0),I(L,z,V,`‡`,`\\ddagger`),I(L,z,V,`≀`,`\\wr`,!0),I(L,z,V,`⨿`,`\\amalg`),I(L,z,V,`&`,`\\And`),I(L,z,U,`⟵`,`\\longleftarrow`,!0),I(L,z,U,`⇐`,`\\Leftarrow`,!0),I(L,z,U,`⟸`,`\\Longleftarrow`,!0),I(L,z,U,`⟶`,`\\longrightarrow`,!0),I(L,z,U,`⇒`,`\\Rightarrow`,!0),I(L,z,U,`⟹`,`\\Longrightarrow`,!0),I(L,z,U,`↔`,`\\leftrightarrow`,!0),I(L,z,U,`⟷`,`\\longleftrightarrow`,!0),I(L,z,U,`⇔`,`\\Leftrightarrow`,!0),I(L,z,U,`⟺`,`\\Longleftrightarrow`,!0),I(L,z,U,`↦`,`\\mapsto`,!0),I(L,z,U,`⟼`,`\\longmapsto`,!0),I(L,z,U,`↗`,`\\nearrow`,!0),I(L,z,U,`↩`,`\\hookleftarrow`,!0),I(L,z,U,`↪`,`\\hookrightarrow`,!0),I(L,z,U,`↘`,`\\searrow`,!0),I(L,z,U,`↼`,`\\leftharpoonup`,!0),I(L,z,U,`⇀`,`\\rightharpoonup`,!0),I(L,z,U,`↙`,`\\swarrow`,!0),I(L,z,U,`↽`,`\\leftharpoondown`,!0),I(L,z,U,`⇁`,`\\rightharpoondown`,!0),I(L,z,U,`↖`,`\\nwarrow`,!0),I(L,z,U,`⇌`,`\\rightleftharpoons`,!0),I(L,B,U,`≮`,`\\nless`,!0),I(L,B,U,``,`\\@nleqslant`),I(L,B,U,``,`\\@nleqq`),I(L,B,U,`⪇`,`\\lneq`,!0),I(L,B,U,`≨`,`\\lneqq`,!0),I(L,B,U,``,`\\@lvertneqq`),I(L,B,U,`⋦`,`\\lnsim`,!0),I(L,B,U,`⪉`,`\\lnapprox`,!0),I(L,B,U,`⊀`,`\\nprec`,!0),I(L,B,U,`⋠`,`\\npreceq`,!0),I(L,B,U,`⋨`,`\\precnsim`,!0),I(L,B,U,`⪹`,`\\precnapprox`,!0),I(L,B,U,`≁`,`\\nsim`,!0),I(L,B,U,``,`\\@nshortmid`),I(L,B,U,`∤`,`\\nmid`,!0),I(L,B,U,`⊬`,`\\nvdash`,!0),I(L,B,U,`⊭`,`\\nvDash`,!0),I(L,B,U,`⋪`,`\\ntriangleleft`),I(L,B,U,`⋬`,`\\ntrianglelefteq`,!0),I(L,B,U,`⊊`,`\\subsetneq`,!0),I(L,B,U,``,`\\@varsubsetneq`),I(L,B,U,`⫋`,`\\subsetneqq`,!0),I(L,B,U,``,`\\@varsubsetneqq`),I(L,B,U,`≯`,`\\ngtr`,!0),I(L,B,U,``,`\\@ngeqslant`),I(L,B,U,``,`\\@ngeqq`),I(L,B,U,`⪈`,`\\gneq`,!0),I(L,B,U,`≩`,`\\gneqq`,!0),I(L,B,U,``,`\\@gvertneqq`),I(L,B,U,`⋧`,`\\gnsim`,!0),I(L,B,U,`⪊`,`\\gnapprox`,!0),I(L,B,U,`⊁`,`\\nsucc`,!0),I(L,B,U,`⋡`,`\\nsucceq`,!0),I(L,B,U,`⋩`,`\\succnsim`,!0),I(L,B,U,`⪺`,`\\succnapprox`,!0),I(L,B,U,`≆`,`\\ncong`,!0),I(L,B,U,``,`\\@nshortparallel`),I(L,B,U,`∦`,`\\nparallel`,!0),I(L,B,U,`⊯`,`\\nVDash`,!0),I(L,B,U,`⋫`,`\\ntriangleright`),I(L,B,U,`⋭`,`\\ntrianglerighteq`,!0),I(L,B,U,``,`\\@nsupseteqq`),I(L,B,U,`⊋`,`\\supsetneq`,!0),I(L,B,U,``,`\\@varsupsetneq`),I(L,B,U,`⫌`,`\\supsetneqq`,!0),I(L,B,U,``,`\\@varsupsetneqq`),I(L,B,U,`⊮`,`\\nVdash`,!0),I(L,B,U,`⪵`,`\\precneqq`,!0),I(L,B,U,`⪶`,`\\succneqq`,!0),I(L,B,U,``,`\\@nsubseteqq`),I(L,B,V,`⊴`,`\\unlhd`),I(L,B,V,`⊵`,`\\unrhd`),I(L,B,U,`↚`,`\\nleftarrow`,!0),I(L,B,U,`↛`,`\\nrightarrow`,!0),I(L,B,U,`⇍`,`\\nLeftarrow`,!0),I(L,B,U,`⇏`,`\\nRightarrow`,!0),I(L,B,U,`↮`,`\\nleftrightarrow`,!0),I(L,B,U,`⇎`,`\\nLeftrightarrow`,!0),I(L,B,U,`△`,`\\vartriangle`),I(L,B,W,`ℏ`,`\\hslash`),I(L,B,W,`▽`,`\\triangledown`),I(L,B,W,`◊`,`\\lozenge`),I(L,B,W,`Ⓢ`,`\\circledS`),I(L,B,W,`®`,`\\circledR`),I(R,B,W,`®`,`\\circledR`),I(L,B,W,`∡`,`\\measuredangle`,!0),I(L,B,W,`∄`,`\\nexists`),I(L,B,W,`℧`,`\\mho`),I(L,B,W,`Ⅎ`,`\\Finv`,!0),I(L,B,W,`⅁`,`\\Game`,!0),I(L,B,W,`‵`,`\\backprime`),I(L,B,W,`▲`,`\\blacktriangle`),I(L,B,W,`▼`,`\\blacktriangledown`),I(L,B,W,`■`,`\\blacksquare`),I(L,B,W,`⧫`,`\\blacklozenge`),I(L,B,W,`★`,`\\bigstar`),I(L,B,W,`∢`,`\\sphericalangle`,!0),I(L,B,W,`∁`,`\\complement`,!0),I(L,B,W,`ð`,`\\eth`,!0),I(R,z,W,`ð`,`ð`),I(L,B,W,`╱`,`\\diagup`),I(L,B,W,`╲`,`\\diagdown`),I(L,B,W,`□`,`\\square`),I(L,B,W,`□`,`\\Box`),I(L,B,W,`◊`,`\\Diamond`),I(L,B,W,`¥`,`\\yen`,!0),I(R,B,W,`¥`,`\\yen`,!0),I(L,B,W,`✓`,`\\checkmark`,!0),I(R,B,W,`✓`,`\\checkmark`),I(L,B,W,`ℶ`,`\\beth`,!0),I(L,B,W,`ℸ`,`\\daleth`,!0),I(L,B,W,`ℷ`,`\\gimel`,!0),I(L,B,W,`ϝ`,`\\digamma`,!0),I(L,B,W,`ϰ`,`\\varkappa`),I(L,B,to,`┌`,`\\@ulcorner`,!0),I(L,B,Qa,`┐`,`\\@urcorner`,!0),I(L,B,to,`└`,`\\@llcorner`,!0),I(L,B,Qa,`┘`,`\\@lrcorner`,!0),I(L,B,U,`≦`,`\\leqq`,!0),I(L,B,U,`⩽`,`\\leqslant`,!0),I(L,B,U,`⪕`,`\\eqslantless`,!0),I(L,B,U,`≲`,`\\lesssim`,!0),I(L,B,U,`⪅`,`\\lessapprox`,!0),I(L,B,U,`≊`,`\\approxeq`,!0),I(L,B,V,`⋖`,`\\lessdot`),I(L,B,U,`⋘`,`\\lll`,!0),I(L,B,U,`≶`,`\\lessgtr`,!0),I(L,B,U,`⋚`,`\\lesseqgtr`,!0),I(L,B,U,`⪋`,`\\lesseqqgtr`,!0),I(L,B,U,`≑`,`\\doteqdot`),I(L,B,U,`≓`,`\\risingdotseq`,!0),I(L,B,U,`≒`,`\\fallingdotseq`,!0),I(L,B,U,`∽`,`\\backsim`,!0),I(L,B,U,`⋍`,`\\backsimeq`,!0),I(L,B,U,`⫅`,`\\subseteqq`,!0),I(L,B,U,`⋐`,`\\Subset`,!0),I(L,B,U,`⊏`,`\\sqsubset`,!0),I(L,B,U,`≼`,`\\preccurlyeq`,!0),I(L,B,U,`⋞`,`\\curlyeqprec`,!0),I(L,B,U,`≾`,`\\precsim`,!0),I(L,B,U,`⪷`,`\\precapprox`,!0),I(L,B,U,`⊲`,`\\vartriangleleft`),I(L,B,U,`⊴`,`\\trianglelefteq`),I(L,B,U,`⊨`,`\\vDash`,!0),I(L,B,U,`⊪`,`\\Vvdash`,!0),I(L,B,U,`⌣`,`\\smallsmile`),I(L,B,U,`⌢`,`\\smallfrown`),I(L,B,U,`≏`,`\\bumpeq`,!0),I(L,B,U,`≎`,`\\Bumpeq`,!0),I(L,B,U,`≧`,`\\geqq`,!0),I(L,B,U,`⩾`,`\\geqslant`,!0),I(L,B,U,`⪖`,`\\eqslantgtr`,!0),I(L,B,U,`≳`,`\\gtrsim`,!0),I(L,B,U,`⪆`,`\\gtrapprox`,!0),I(L,B,V,`⋗`,`\\gtrdot`),I(L,B,U,`⋙`,`\\ggg`,!0),I(L,B,U,`≷`,`\\gtrless`,!0),I(L,B,U,`⋛`,`\\gtreqless`,!0),I(L,B,U,`⪌`,`\\gtreqqless`,!0),I(L,B,U,`≖`,`\\eqcirc`,!0),I(L,B,U,`≗`,`\\circeq`,!0),I(L,B,U,`≜`,`\\triangleq`,!0),I(L,B,U,`∼`,`\\thicksim`),I(L,B,U,`≈`,`\\thickapprox`),I(L,B,U,`⫆`,`\\supseteqq`,!0),I(L,B,U,`⋑`,`\\Supset`,!0),I(L,B,U,`⊐`,`\\sqsupset`,!0),I(L,B,U,`≽`,`\\succcurlyeq`,!0),I(L,B,U,`⋟`,`\\curlyeqsucc`,!0),I(L,B,U,`≿`,`\\succsim`,!0),I(L,B,U,`⪸`,`\\succapprox`,!0),I(L,B,U,`⊳`,`\\vartriangleright`),I(L,B,U,`⊵`,`\\trianglerighteq`),I(L,B,U,`⊩`,`\\Vdash`,!0),I(L,B,U,`∣`,`\\shortmid`),I(L,B,U,`∥`,`\\shortparallel`),I(L,B,U,`≬`,`\\between`,!0),I(L,B,U,`⋔`,`\\pitchfork`,!0),I(L,B,U,`∝`,`\\varpropto`),I(L,B,U,`◀`,`\\blacktriangleleft`),I(L,B,U,`∴`,`\\therefore`,!0),I(L,B,U,`∍`,`\\backepsilon`),I(L,B,U,`▶`,`\\blacktriangleright`),I(L,B,U,`∵`,`\\because`,!0),I(L,B,U,`⋘`,`\\llless`),I(L,B,U,`⋙`,`\\gggtr`),I(L,B,V,`⊲`,`\\lhd`),I(L,B,V,`⊳`,`\\rhd`),I(L,B,U,`≂`,`\\eqsim`,!0),I(L,z,U,`⋈`,`\\Join`),I(L,B,U,`≑`,`\\Doteq`,!0),I(L,B,V,`∔`,`\\dotplus`,!0),I(L,B,V,`∖`,`\\smallsetminus`),I(L,B,V,`⋒`,`\\Cap`,!0),I(L,B,V,`⋓`,`\\Cup`,!0),I(L,B,V,`⩞`,`\\doublebarwedge`,!0),I(L,B,V,`⊟`,`\\boxminus`,!0),I(L,B,V,`⊞`,`\\boxplus`,!0),I(L,B,V,`⋇`,`\\divideontimes`,!0),I(L,B,V,`⋉`,`\\ltimes`,!0),I(L,B,V,`⋊`,`\\rtimes`,!0),I(L,B,V,`⋋`,`\\leftthreetimes`,!0),I(L,B,V,`⋌`,`\\rightthreetimes`,!0),I(L,B,V,`⋏`,`\\curlywedge`,!0),I(L,B,V,`⋎`,`\\curlyvee`,!0),I(L,B,V,`⊝`,`\\circleddash`,!0),I(L,B,V,`⊛`,`\\circledast`,!0),I(L,B,V,`⋅`,`\\centerdot`),I(L,B,V,`⊺`,`\\intercal`,!0),I(L,B,V,`⋒`,`\\doublecap`),I(L,B,V,`⋓`,`\\doublecup`),I(L,B,V,`⊠`,`\\boxtimes`,!0),I(L,B,U,`⇢`,`\\dashrightarrow`,!0),I(L,B,U,`⇠`,`\\dashleftarrow`,!0),I(L,B,U,`⇇`,`\\leftleftarrows`,!0),I(L,B,U,`⇆`,`\\leftrightarrows`,!0),I(L,B,U,`⇚`,`\\Lleftarrow`,!0),I(L,B,U,`↞`,`\\twoheadleftarrow`,!0),I(L,B,U,`↢`,`\\leftarrowtail`,!0),I(L,B,U,`↫`,`\\looparrowleft`,!0),I(L,B,U,`⇋`,`\\leftrightharpoons`,!0),I(L,B,U,`↶`,`\\curvearrowleft`,!0),I(L,B,U,`↺`,`\\circlearrowleft`,!0),I(L,B,U,`↰`,`\\Lsh`,!0),I(L,B,U,`⇈`,`\\upuparrows`,!0),I(L,B,U,`↿`,`\\upharpoonleft`,!0),I(L,B,U,`⇃`,`\\downharpoonleft`,!0),I(L,z,U,`⊶`,`\\origof`,!0),I(L,z,U,`⊷`,`\\imageof`,!0),I(L,B,U,`⊸`,`\\multimap`,!0),I(L,B,U,`↭`,`\\leftrightsquigarrow`,!0),I(L,B,U,`⇉`,`\\rightrightarrows`,!0),I(L,B,U,`⇄`,`\\rightleftarrows`,!0),I(L,B,U,`↠`,`\\twoheadrightarrow`,!0),I(L,B,U,`↣`,`\\rightarrowtail`,!0),I(L,B,U,`↬`,`\\looparrowright`,!0),I(L,B,U,`↷`,`\\curvearrowright`,!0),I(L,B,U,`↻`,`\\circlearrowright`,!0),I(L,B,U,`↱`,`\\Rsh`,!0),I(L,B,U,`⇊`,`\\downdownarrows`,!0),I(L,B,U,`↾`,`\\upharpoonright`,!0),I(L,B,U,`⇂`,`\\downharpoonright`,!0),I(L,B,U,`⇝`,`\\rightsquigarrow`,!0),I(L,B,U,`⇝`,`\\leadsto`),I(L,B,U,`⇛`,`\\Rrightarrow`,!0),I(L,B,U,`↾`,`\\restriction`),I(L,z,W,`‘`,"`"),I(L,z,W,`$`,`\\$`),I(R,z,W,`$`,`\\$`),I(R,z,W,`$`,`\\textdollar`),I(L,z,W,`%`,`\\%`),I(R,z,W,`%`,`\\%`),I(L,z,W,`_`,`\\_`),I(R,z,W,`_`,`\\_`),I(R,z,W,`_`,`\\textunderscore`),I(L,z,W,`∠`,`\\angle`,!0),I(L,z,W,`∞`,`\\infty`,!0),I(L,z,W,`′`,`\\prime`),I(L,z,W,`△`,`\\triangle`),I(L,z,W,`Γ`,`\\Gamma`,!0),I(L,z,W,`Δ`,`\\Delta`,!0),I(L,z,W,`Θ`,`\\Theta`,!0),I(L,z,W,`Λ`,`\\Lambda`,!0),I(L,z,W,`Ξ`,`\\Xi`,!0),I(L,z,W,`Π`,`\\Pi`,!0),I(L,z,W,`Σ`,`\\Sigma`,!0),I(L,z,W,`Υ`,`\\Upsilon`,!0),I(L,z,W,`Φ`,`\\Phi`,!0),I(L,z,W,`Ψ`,`\\Psi`,!0),I(L,z,W,`Ω`,`\\Omega`,!0),I(L,z,W,`A`,`Α`),I(L,z,W,`B`,`Β`),I(L,z,W,`E`,`Ε`),I(L,z,W,`Z`,`Ζ`),I(L,z,W,`H`,`Η`),I(L,z,W,`I`,`Ι`),I(L,z,W,`K`,`Κ`),I(L,z,W,`M`,`Μ`),I(L,z,W,`N`,`Ν`),I(L,z,W,`O`,`Ο`),I(L,z,W,`P`,`Ρ`),I(L,z,W,`T`,`Τ`),I(L,z,W,`X`,`Χ`),I(L,z,W,`¬`,`\\neg`,!0),I(L,z,W,`¬`,`\\lnot`),I(L,z,W,`⊤`,`\\top`),I(L,z,W,`⊥`,`\\bot`),I(L,z,W,`∅`,`\\emptyset`),I(L,B,W,`∅`,`\\varnothing`),I(L,z,H,`α`,`\\alpha`,!0),I(L,z,H,`β`,`\\beta`,!0),I(L,z,H,`γ`,`\\gamma`,!0),I(L,z,H,`δ`,`\\delta`,!0),I(L,z,H,`ϵ`,`\\epsilon`,!0),I(L,z,H,`ζ`,`\\zeta`,!0),I(L,z,H,`η`,`\\eta`,!0),I(L,z,H,`θ`,`\\theta`,!0),I(L,z,H,`ι`,`\\iota`,!0),I(L,z,H,`κ`,`\\kappa`,!0),I(L,z,H,`λ`,`\\lambda`,!0),I(L,z,H,`μ`,`\\mu`,!0),I(L,z,H,`ν`,`\\nu`,!0),I(L,z,H,`ξ`,`\\xi`,!0),I(L,z,H,`ο`,`\\omicron`,!0),I(L,z,H,`π`,`\\pi`,!0),I(L,z,H,`ρ`,`\\rho`,!0),I(L,z,H,`σ`,`\\sigma`,!0),I(L,z,H,`τ`,`\\tau`,!0),I(L,z,H,`υ`,`\\upsilon`,!0),I(L,z,H,`ϕ`,`\\phi`,!0),I(L,z,H,`χ`,`\\chi`,!0),I(L,z,H,`ψ`,`\\psi`,!0),I(L,z,H,`ω`,`\\omega`,!0),I(L,z,H,`ε`,`\\varepsilon`,!0),I(L,z,H,`ϑ`,`\\vartheta`,!0),I(L,z,H,`ϖ`,`\\varpi`,!0),I(L,z,H,`ϱ`,`\\varrho`,!0),I(L,z,H,`ς`,`\\varsigma`,!0),I(L,z,H,`φ`,`\\varphi`,!0),I(L,z,V,`∗`,`*`,!0),I(L,z,V,`+`,`+`),I(L,z,V,`−`,`-`,!0),I(L,z,V,`⋅`,`\\cdot`,!0),I(L,z,V,`∘`,`\\circ`,!0),I(L,z,V,`÷`,`\\div`,!0),I(L,z,V,`±`,`\\pm`,!0),I(L,z,V,`×`,`\\times`,!0),I(L,z,V,`∩`,`\\cap`,!0),I(L,z,V,`∪`,`\\cup`,!0),I(L,z,V,`∖`,`\\setminus`,!0),I(L,z,V,`∧`,`\\land`),I(L,z,V,`∨`,`\\lor`),I(L,z,V,`∧`,`\\wedge`,!0),I(L,z,V,`∨`,`\\vee`,!0),I(L,z,W,`√`,`\\surd`),I(L,z,to,`⟨`,`\\langle`,!0),I(L,z,to,`∣`,`\\lvert`),I(L,z,to,`∥`,`\\lVert`),I(L,z,Qa,`?`,`?`),I(L,z,Qa,`!`,`!`),I(L,z,Qa,`⟩`,`\\rangle`,!0),I(L,z,Qa,`∣`,`\\rvert`),I(L,z,Qa,`∥`,`\\rVert`),I(L,z,U,`=`,`=`),I(L,z,U,`:`,`:`),I(L,z,U,`≈`,`\\approx`,!0),I(L,z,U,`≅`,`\\cong`,!0),I(L,z,U,`≥`,`\\ge`),I(L,z,U,`≥`,`\\geq`,!0),I(L,z,U,`←`,`\\gets`),I(L,z,U,`>`,`\\gt`,!0),I(L,z,U,`∈`,`\\in`,!0),I(L,z,U,``,`\\@not`),I(L,z,U,`⊂`,`\\subset`,!0),I(L,z,U,`⊃`,`\\supset`,!0),I(L,z,U,`⊆`,`\\subseteq`,!0),I(L,z,U,`⊇`,`\\supseteq`,!0),I(L,B,U,`⊈`,`\\nsubseteq`,!0),I(L,B,U,`⊉`,`\\nsupseteq`,!0),I(L,z,U,`⊨`,`\\models`),I(L,z,U,`←`,`\\leftarrow`,!0),I(L,z,U,`≤`,`\\le`),I(L,z,U,`≤`,`\\leq`,!0),I(L,z,U,`<`,`\\lt`,!0),I(L,z,U,`→`,`\\rightarrow`,!0),I(L,z,U,`→`,`\\to`),I(L,B,U,`≱`,`\\ngeq`,!0),I(L,B,U,`≰`,`\\nleq`,!0),I(L,z,ro,`\xA0`,`\\ `),I(L,z,ro,`\xA0`,`\\space`),I(L,z,ro,`\xA0`,`\\nobreakspace`),I(R,z,ro,`\xA0`,`\\ `),I(R,z,ro,`\xA0`,` `),I(R,z,ro,`\xA0`,`\\space`),I(R,z,ro,`\xA0`,`\\nobreakspace`),I(L,z,ro,``,`\\nobreak`),I(L,z,ro,``,`\\allowbreak`),I(L,z,no,`,`,`,`),I(L,z,no,`;`,`;`),I(L,B,V,`⊼`,`\\barwedge`,!0),I(L,B,V,`⊻`,`\\veebar`,!0),I(L,z,V,`⊙`,`\\odot`,!0),I(L,z,V,`⊕`,`\\oplus`,!0),I(L,z,V,`⊗`,`\\otimes`,!0),I(L,z,W,`∂`,`\\partial`,!0),I(L,z,V,`⊘`,`\\oslash`,!0),I(L,B,V,`⊚`,`\\circledcirc`,!0),I(L,B,V,`⊡`,`\\boxdot`,!0),I(L,z,V,`△`,`\\bigtriangleup`),I(L,z,V,`▽`,`\\bigtriangledown`),I(L,z,V,`†`,`\\dagger`),I(L,z,V,`⋄`,`\\diamond`),I(L,z,V,`⋆`,`\\star`),I(L,z,V,`◃`,`\\triangleleft`),I(L,z,V,`▹`,`\\triangleright`),I(L,z,to,`{`,`\\{`),I(R,z,W,`{`,`\\{`),I(R,z,W,`{`,`\\textbraceleft`),I(L,z,Qa,`}`,`\\}`),I(R,z,W,`}`,`\\}`),I(R,z,W,`}`,`\\textbraceright`),I(L,z,to,`{`,`\\lbrace`),I(L,z,Qa,`}`,`\\rbrace`),I(L,z,to,`[`,`\\lbrack`,!0),I(R,z,W,`[`,`\\lbrack`,!0),I(L,z,Qa,`]`,`\\rbrack`,!0),I(R,z,W,`]`,`\\rbrack`,!0),I(L,z,to,`(`,`\\lparen`,!0),I(L,z,Qa,`)`,`\\rparen`,!0),I(R,z,W,`<`,`\\textless`,!0),I(R,z,W,`>`,`\\textgreater`,!0),I(L,z,to,`⌊`,`\\lfloor`,!0),I(L,z,Qa,`⌋`,`\\rfloor`,!0),I(L,z,to,`⌈`,`\\lceil`,!0),I(L,z,Qa,`⌉`,`\\rceil`,!0),I(L,z,W,`\\`,`\\backslash`),I(L,z,W,`∣`,`|`),I(L,z,W,`∣`,`\\vert`),I(R,z,W,`|`,`\\textbar`,!0),I(L,z,W,`∥`,`\\|`),I(L,z,W,`∥`,`\\Vert`),I(R,z,W,`∥`,`\\textbardbl`),I(R,z,W,`~`,`\\textasciitilde`),I(R,z,W,`\\`,`\\textbackslash`),I(R,z,W,`^`,`\\textasciicircum`),I(L,z,U,`↑`,`\\uparrow`,!0),I(L,z,U,`⇑`,`\\Uparrow`,!0),I(L,z,U,`↓`,`\\downarrow`,!0),I(L,z,U,`⇓`,`\\Downarrow`,!0),I(L,z,U,`↕`,`\\updownarrow`,!0),I(L,z,U,`⇕`,`\\Updownarrow`,!0),I(L,z,eo,`∐`,`\\coprod`),I(L,z,eo,`⋁`,`\\bigvee`),I(L,z,eo,`⋀`,`\\bigwedge`),I(L,z,eo,`⨄`,`\\biguplus`),I(L,z,eo,`⋂`,`\\bigcap`),I(L,z,eo,`⋃`,`\\bigcup`),I(L,z,eo,`∫`,`\\int`),I(L,z,eo,`∫`,`\\intop`),I(L,z,eo,`∬`,`\\iint`),I(L,z,eo,`∭`,`\\iiint`),I(L,z,eo,`∏`,`\\prod`),I(L,z,eo,`∑`,`\\sum`),I(L,z,eo,`⨂`,`\\bigotimes`),I(L,z,eo,`⨁`,`\\bigoplus`),I(L,z,eo,`⨀`,`\\bigodot`),I(L,z,eo,`∮`,`\\oint`),I(L,z,eo,`∯`,`\\oiint`),I(L,z,eo,`∰`,`\\oiiint`),I(L,z,eo,`⨆`,`\\bigsqcup`),I(L,z,eo,`∫`,`\\smallint`),I(R,z,$a,`…`,`\\textellipsis`),I(L,z,$a,`…`,`\\mathellipsis`),I(R,z,$a,`…`,`\\ldots`,!0),I(L,z,$a,`…`,`\\ldots`,!0),I(L,z,$a,`⋯`,`\\@cdots`,!0),I(L,z,$a,`⋱`,`\\ddots`,!0),I(L,z,W,`⋮`,`\\varvdots`),I(R,z,W,`⋮`,`\\varvdots`),I(L,z,Za,`ˊ`,`\\acute`),I(L,z,Za,`ˋ`,`\\grave`),I(L,z,Za,`¨`,`\\ddot`),I(L,z,Za,`~`,`\\tilde`),I(L,z,Za,`ˉ`,`\\bar`),I(L,z,Za,`˘`,`\\breve`),I(L,z,Za,`ˇ`,`\\check`),I(L,z,Za,`^`,`\\hat`),I(L,z,Za,`⃗`,`\\vec`),I(L,z,Za,`˙`,`\\dot`),I(L,z,Za,`˚`,`\\mathring`),I(L,z,H,``,`\\@imath`),I(L,z,H,``,`\\@jmath`),I(L,z,W,`ı`,`ı`),I(L,z,W,`ȷ`,`ȷ`),I(R,z,W,`ı`,`\\i`,!0),I(R,z,W,`ȷ`,`\\j`,!0),I(R,z,W,`ß`,`\\ss`,!0),I(R,z,W,`æ`,`\\ae`,!0),I(R,z,W,`œ`,`\\oe`,!0),I(R,z,W,`ø`,`\\o`,!0),I(R,z,W,`Æ`,`\\AE`,!0),I(R,z,W,`Œ`,`\\OE`,!0),I(R,z,W,`Ø`,`\\O`,!0),I(R,z,Za,`ˊ`,`\\'`),I(R,z,Za,`ˋ`,"\\`"),I(R,z,Za,`ˆ`,`\\^`),I(R,z,Za,`˜`,`\\~`),I(R,z,Za,`ˉ`,`\\=`),I(R,z,Za,`˘`,`\\u`),I(R,z,Za,`˙`,`\\.`),I(R,z,Za,`¸`,`\\c`),I(R,z,Za,`˚`,`\\r`),I(R,z,Za,`ˇ`,`\\v`),I(R,z,Za,`¨`,`\\"`),I(R,z,Za,`˝`,`\\H`),I(R,z,Za,`◯`,`\\textcircled`);var io={"--":!0,"---":!0,"``":!0,"''":!0};I(R,z,W,`–`,`--`,!0),I(R,z,W,`–`,`\\textendash`),I(R,z,W,`—`,`---`,!0),I(R,z,W,`—`,`\\textemdash`),I(R,z,W,`‘`,"`",!0),I(R,z,W,`‘`,`\\textquoteleft`),I(R,z,W,`’`,`'`,!0),I(R,z,W,`’`,`\\textquoteright`),I(R,z,W,`“`,"``",!0),I(R,z,W,`“`,`\\textquotedblleft`),I(R,z,W,`”`,`''`,!0),I(R,z,W,`”`,`\\textquotedblright`),I(L,z,W,`°`,`\\degree`,!0),I(R,z,W,`°`,`\\degree`),I(R,z,W,`°`,`\\textdegree`,!0),I(L,z,W,`£`,`\\pounds`),I(L,z,W,`£`,`\\mathsterling`,!0),I(R,z,W,`£`,`\\pounds`),I(R,z,W,`£`,`\\textsterling`,!0),I(L,B,W,`✠`,`\\maltese`),I(R,B,W,`✠`,`\\maltese`);for(var ao=`0123456789/@."`,oo=0;oo<ao.length;oo++){var so=ao.charAt(oo);I(L,z,W,so,so)}for(var co=`0123456789!@*()-=+";:?/.,`,lo=0;lo<co.length;lo++){var uo=co.charAt(lo);I(R,z,W,uo,uo)}for(var fo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,po=0;po<fo.length;po++){var mo=fo.charAt(po);I(L,z,H,mo,mo),I(R,z,W,mo,mo)}I(L,B,W,`C`,`ℂ`),I(R,B,W,`C`,`ℂ`),I(L,B,W,`H`,`ℍ`),I(R,B,W,`H`,`ℍ`),I(L,B,W,`N`,`ℕ`),I(R,B,W,`N`,`ℕ`),I(L,B,W,`P`,`ℙ`),I(R,B,W,`P`,`ℙ`),I(L,B,W,`Q`,`ℚ`),I(R,B,W,`Q`,`ℚ`),I(L,B,W,`R`,`ℝ`),I(R,B,W,`R`,`ℝ`),I(L,B,W,`Z`,`ℤ`),I(R,B,W,`Z`,`ℤ`),I(L,z,H,`h`,`ℎ`),I(R,z,H,`h`,`ℎ`);for(var G,ho=0;ho<fo.length;ho++){var go=fo.charAt(ho);G=String.fromCharCode(55349,56320+ho),I(L,z,H,go,G),I(R,z,W,go,G),G=String.fromCharCode(55349,56372+ho),I(L,z,H,go,G),I(R,z,W,go,G),G=String.fromCharCode(55349,56424+ho),I(L,z,H,go,G),I(R,z,W,go,G),G=String.fromCharCode(55349,56580+ho),I(L,z,H,go,G),I(R,z,W,go,G),G=String.fromCharCode(55349,56684+ho),I(L,z,H,go,G),I(R,z,W,go,G),G=String.fromCharCode(55349,56736+ho),I(L,z,H,go,G),I(R,z,W,go,G),G=String.fromCharCode(55349,56788+ho),I(L,z,H,go,G),I(R,z,W,go,G),G=String.fromCharCode(55349,56840+ho),I(L,z,H,go,G),I(R,z,W,go,G),G=String.fromCharCode(55349,56944+ho),I(L,z,H,go,G),I(R,z,W,go,G),ho<26&&(G=String.fromCharCode(55349,56632+ho),I(L,z,H,go,G),I(R,z,W,go,G),G=String.fromCharCode(55349,56476+ho),I(L,z,H,go,G),I(R,z,W,go,G))}G=String.fromCharCode(55349,56668),I(L,z,H,`k`,G),I(R,z,W,`k`,G);for(var _o=0;_o<10;_o++){var vo=_o.toString();G=String.fromCharCode(55349,57294+_o),I(L,z,H,vo,G),I(R,z,W,vo,G),G=String.fromCharCode(55349,57314+_o),I(L,z,H,vo,G),I(R,z,W,vo,G),G=String.fromCharCode(55349,57324+_o),I(L,z,H,vo,G),I(R,z,W,vo,G),G=String.fromCharCode(55349,57334+_o),I(L,z,H,vo,G),I(R,z,W,vo,G)}for(var yo=`ÐÞþ`,bo=0;bo<yo.length;bo++){var xo=yo.charAt(bo);I(L,z,H,xo,xo),I(R,z,W,xo,xo)}var So={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},Co={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},wo={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},To={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},Eo={mathClass:``,textClass:``,font:``},Do={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},Oo={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},ko={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},Ao={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},jo={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},Mo={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},No={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},Po=[So,So,Co,Co,wo,wo,To,Eo,Eo,Eo,Do,Do,Oo,Oo,ko,ko,Ao,Ao,jo,jo,Mo,Mo,Eo,Eo,No,No],Fo=[So,Eo,Ao,jo,No],Io=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return Po[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return Fo[Math.floor((r-120782)/10)];if(r===120485||r===120486)return Po[0];if(120486<r&&r<120782)return Eo;throw new N(`Unsupported character: `+e)},Lo=function(e,t,n){if(Xa[n][e]){var r=Xa[n][e].replace;r&&(e=r)}return{value:e,metrics:qa(e,t,n)}},Ro=function(e,t,n,r,i){var a=Lo(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new Ia(e,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<`u`&&console.warn(`No character metrics `+(`for '`+e+`' in style '`+t+`' and mode '`+n+`'`)),s=new Ia(e,0,0,0,0,0,i);if(r){s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();l&&(s.style.color=l)}return s},zo=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&Lo(e,`Main-Bold`,t).metrics?Ro(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||Xa[t][e].font===`main`?Ro(e,`Main-Regular`,t,n,r):Ro(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},Bo=function(e,t,n){return n!==`textord`&&Lo(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},Vo=function(e,t,n){var r=e.mode,i=e.text,a=[`mord`],{font:o,fontFamily:s,fontWeight:c,fontShape:l}=t,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=Io(i);f=m.font,p=m[r+`Class`]}if(f)return Ro(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=Bo(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=es[o].fontName,g=[o]):(h=$o(s,c,l),g=[s,c,l]);if(Lo(i,h,r).metrics)return Ro(i,h,r,t,a.concat(g));if(io.hasOwnProperty(i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(Ro(i[y],h,r,t,a.concat(g)));return Jo(v)}}if(n===`mathord`)return Ro(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=Xa[r][i]&&Xa[r][i].font;if(b===`ams`)return Ro(i,$o(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return Ro(i,$o(`textrm`,c,l),r,t,a.concat(c,l));var x=$o(b,c,l);return Ro(i,x,r,t,a.concat(x,c,l))}else throw Error(`unexpected type: `+n+` in makeOrd`)},Ho=(e,t)=>{if(Ea(e.classes)!==Ea(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Uo=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Ia&&r instanceof Ia&&Ho(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},Wo=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},K=function(e,t,n,r){var i=new Ma(e,t,n,r);return Wo(i),i},Go=(e,t,n,r)=>new Ma(e,t,n,r),Ko=function(e,t,n){var r=K([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=F(r.height),r.maxFontSize=1,r},qo=function(e,t,n,r){var i=new Na(e,t,n,r);return Wo(i),i},Jo=function(e){var t=new xa(e);return Wo(t),t},Yo=function(e,t){return e instanceof xa?K([],[e],t):e},Xo=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},Zo=function(e,t){for(var{children:n,depth:r}=Xo(e),i=0,a=0;a<n.length;a++){var o=n[a];if(o.type===`elem`){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var c=K([`pstrut`],[]);c.style.height=F(i);for(var l=[],u=r,d=r,f=r,p=0;p<n.length;p++){var m=n[p];if(m.type===`kern`)f+=m.size;else{var h=m.elem,g=m.wrapperClasses||[],_=m.wrapperStyle||{},v=K(g,[c,h],void 0,_);v.style.top=F(-i-f-h.depth),m.marginLeft&&(v.style.marginLeft=m.marginLeft),m.marginRight&&(v.style.marginRight=m.marginRight),l.push(v),f+=h.height+h.depth}u=Math.min(u,f),d=Math.max(d,f)}var y=K([`vlist`],l);y.style.height=F(d);var b;if(u<0){var x=K([`vlist`],[K([],[])]);x.style.height=F(-u),b=[K([`vlist-r`],[y,K([`vlist-s`],[new Ia(``)])]),K([`vlist-r`],[x])]}else b=[K([`vlist-r`],[y])];var S=K([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},Qo=(e,t)=>{var n=K([`mspace`],[],t),r=Ta(e,t);return n.style.marginRight=F(r),n},$o=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},es={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`}},ts={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},ns=function(e,t){var[n,r,i]=ts[e],a=Go([`overlay`],[new La([new Ra(n)],{width:F(r),height:F(i),style:`width:`+F(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=F(i),a.style.width=F(r),a},rs={number:3,unit:`mu`},is={number:4,unit:`mu`},as={number:5,unit:`mu`},os={mord:{mop:rs,mbin:is,mrel:as,minner:rs},mop:{mord:rs,mop:rs,mrel:as,minner:rs},mbin:{mord:is,mop:is,mopen:is,minner:is},mrel:{mord:as,mop:as,mopen:as,minner:as},mopen:{},mclose:{mop:rs,mbin:is,mrel:as,minner:rs},mpunct:{mord:rs,mop:rs,mrel:as,mopen:rs,mclose:rs,mpunct:rs,minner:rs},minner:{mord:rs,mop:rs,mbin:is,mrel:as,mopen:rs,mpunct:rs,minner:rs}},ss={mord:{mop:rs},mop:{mord:rs,mop:rs},mbin:{},mrel:{},mopen:{},mclose:{mop:rs},mpunct:{},minner:{mop:rs}},cs={},ls={},us={};function q(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={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:i},c=0;c<n.length;++c)cs[n[c]]=s;t&&(a&&(ls[t]=a),o&&(us[t]=o))}function ds(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;q({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var fs=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},ps=function(e){return e.type===`ordgroup`?e.body:[e]},ms=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),hs=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),gs={display:P.DISPLAY,text:P.TEXT,script:P.SCRIPT,scriptscript:P.SCRIPTSCRIPT},_s={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},vs=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=ws(e[a],t);if(o instanceof xa){var s=o.children;i.push(...s)}else i.push(o)}if(Uo(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(gs[l.style]))}var u=K([r[0]||`leftmost`],[],t),d=K([r[1]||`rightmost`],[],t),f=n===`root`;return ys(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&hs.has(r)?t.classes[0]=`mord`:r===`mbin`&&ms.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),ys(i,(e,t)=>{var n=Ss(t),r=Ss(e),i=n&&r?e.hasClass(`mtight`)?ss[n]?.[r]:os[n]?.[r]:null;if(i)return Qo(i,c)},{node:u},d,f),i},ys=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=bs(o);if(s){ys(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`newline`)&&(n.node=K([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},bs=function(e){return e instanceof xa||e instanceof Na||e instanceof Ma&&e.hasClass(`enclosing`)?e:null},xs=function(e,t){var n=bs(e);if(n){var r=n.children;if(r.length){if(t===`right`)return xs(r[r.length-1],`right`);if(t===`left`)return xs(r[0],`left`)}}return e},Ss=function(e,t){return e?(t&&(e=xs(e,t)),_s[e.classes[0]]||null):null},Cs=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return K(t.concat(n))},ws=function(e,t,n){if(!e)return K();if(ls[e.type]){var r=ls[e.type](e,t);if(n&&t.size!==n.size){r=K(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}else throw new N(`Got group of unknown type: '`+e.type+`'`)};function Ts(e,t){var n=K([`base`],e,t),r=K([`strut`]);return r.style.height=F(n.height+n.depth),n.depth&&(r.style.verticalAlign=F(-n.depth)),n.children.unshift(r),n}function Es(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=vs(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(Ts(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(Ts(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(Ts(o,t));var l;n?(l=Ts(vs(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=K([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=F(u.height+u.depth),u.depth&&(d.style.verticalAlign=F(-u.depth))}return u}function Ds(e){return new xa(e)}var J=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Ea(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Os&&this.children[n+1]instanceof Os){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Os;)r+=this.children[++n].toText();e.appendChild(new Os(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=` `+t+`="`,e+=ji(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+ji(Ea(this.classes))+`"`),e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},Os=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ji(this.toText())}toText(){return this.text}},ks=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=` `:e>=.1666&&e<=.1667?this.character=` `:e>=.2222&&e<=.2223?this.character=` `:e>=.2777&&e<=.2778?this.character=` `:e>=-.05556&&e<=-.05555?this.character=` `:e>=-.1667&&e<=-.1666?this.character=` `:e>=-.2223&&e<=-.2222?this.character=` `:e>=-.2778&&e<=-.2777?this.character=` `:this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,F(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+F(this.width)+`"/>`}toText(){return this.character?this.character:` `}},As=new Set([`\\imath`,`\\jmath`]),js=new Set([`mrow`,`mtable`]),Ms=function(e,t,n){return Xa[t][e]&&Xa[t][e].replace&&e.charCodeAt(0)!==55349&&!(io.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=Xa[t][e].replace),new Os(e)},Ns=function(e){return e.length===1?e[0]:new J(`mrow`,e)},Ps={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},Fs=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=Ps[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(As.has(a))return null;if(Xa[r][a]){var o=Xa[r][a].replace;o&&(a=o)}var s=es[n].fontName;return qa(a,s,r)?es[n].variant:null};function Is(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Os&&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 Os&&n.text===`,`}else return!1}var Ls=function(e,t,n){if(e.length===1){var r=zs(e[0],t);return n&&r instanceof J&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=zs(e[o],t);if(s instanceof J&&a instanceof J){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}else if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}else if(Is(s)&&a.type===`mn`){a.children.push(...s.children);continue}else if(s.type===`mn`&&Is(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||Is(a))){var c=s.children[0];c instanceof J&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof Os&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof Os&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},Rs=function(e,t,n){return Ns(Ls(e,t,n))},zs=function(e,t){if(!e)return new J(`mrow`);if(us[e.type])return us[e.type](e,t);throw new N(`Got group of unknown type: '`+e.type+`'`)};function Bs(e,t,n,r,i){var a=Ls(e,n),o=a.length===1&&a[0]instanceof J&&js.has(a[0].type)?a[0]:new J(`mrow`,a),s=new J(`annotation`,[new Os(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new J(`math`,[new J(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),K([i?`katex`:`katex-mathml`],[c])}var Vs=[[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]],Hs=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Us=function(e,t){return t.size<2?e:Vs[e-1][t.size-1]},Ws=class e{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||e.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=Hs[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,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Us(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Hs[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=Us(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=Ya(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};Ws.BASESIZE=6;var Gs=function(e){return new Ws({style:e.displayMode?P.DISPLAY:P.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Ks=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=K(n,[e])}return e},qs=function(e,t,n){var r=Gs(n),i;return n.output===`mathml`?Bs(e,t,r,n.displayMode,!0):(i=n.output===`html`?K([`katex`],[Es(e,r)]):K([`katex`],[Bs(e,t,r,n.displayMode,!1),Es(e,r)]),Ks(i,n))},Js=function(e,t,n){return Ks(K([`katex`],[Es(e,Gs(n))]),n)},Ys={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,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":`=`},Xs=function(e){var t=new J(`mo`,[new Os(Ys[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},Zs={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],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],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]},Qs=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),$s=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(Qs.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:Go([],[new La([new Ra(o)],{width:`100%`,height:F(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}else{var l=[],u=Zs[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var[d,f,p]=u,m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
|
|
252
|
+
`+h+` children.`);for(var v=0;v<h;v++){var y=new La([new Ra(d[v])],{width:`400em`,height:F(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=Go([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=F(m),l.push(b)}return{span:K([`stretchy`],l,t),minWidth:f,height:m}}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=F(a),i>0&&(r.style.minWidth=F(i)),r},ec=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=K([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new za({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new za({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=Go([],[new La(c,{width:`100%`,height:F(o)})],i)}return a.height=o,a.style.height=F(o),a},tc={bin:1,close:1,inner:1,open:1,punct:1,rel:1},nc={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function rc(e){return e in tc}function Y(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function ic(e){var t=ac(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function ac(e){return e&&(e.type===`atom`||nc.hasOwnProperty(e.type))?e:null}var oc=e=>{if(e instanceof Ia)return e;if(Ha(e)&&e.children.length===1)return oc(e.children[0])},sc=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=Y(e.base,`accent`),n=r.base,e.base=n,i=Va(ws(e,t)),e.base=r):(r=Y(e,`accent`),n=r.base);var a=ws(n,t.havingCrampedStyle()),o=r.isShifty&&Pi(n),s=0;o&&(s=oc(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=$s(r,t),u=Zo({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+F(2*s)+`)`,marginLeft:F(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=ns(`vec`,t),f=ts.vec[1]):(d=Vo({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=Ba(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=K([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=F(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=Zo({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=K([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},cc=(e,t)=>{var n=e.isStretchy?Xs(e.label):new J(`mo`,[Ms(e.label,e.mode)]),r=new J(`mover`,[zs(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},lc=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));q({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=fs(t[0]),r=!lc.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:sc,mathmlBuilder:cc}),q({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:sc,mathmlBuilder:cc}),q({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=ws(e.base,t),r=$s(e,t),i=e.label===`\\utilde`?.12:0;return K([`mord`,`accentunder`],[Zo({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=Xs(e.label),r=new J(`munder`,[zs(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var uc=e=>{var t=new J(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};q({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:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Yo(ws(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=Yo(ws(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=$s(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=Zo({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=Zo({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return K([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=Xs(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=uc(zs(e.body,t));r=e.below?new J(`munderover`,[n,uc(zs(e.below,t)),i]):new J(`mover`,[n,i])}else e.below?r=new J(`munder`,[n,uc(zs(e.below,t))]):(r=uc(),r=new J(`mover`,[n,r]));return r}});function dc(e,t){var n=vs(e.body,t,!0);return K([e.mclass],n,t)}function fc(e,t){var n,r=Ls(e.body,t);return e.mclass===`minner`?n=new J(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new J(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new J(`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}q({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:ps(i),isCharacterBox:Pi(i)}},htmlBuilder:dc,mathmlBuilder:fc});var pc=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`};q({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:pc(t[0]),body:ps(t[1]),isCharacterBox:Pi(t[1])}}}),q({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:pc(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:ps(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:Pi(c)}},htmlBuilder:dc,mathmlBuilder:fc}),q({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:pc(t[0]),body:ps(t[0])}},htmlBuilder(e,t){var n=vs(e.body,t,!0),r=K([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new J(`mstyle`,Ls(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var mc={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},hc=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),gc=e=>e.type===`textord`&&e.text===`@`,_c=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function vc(e,t,n){var r=mc[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function yc(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 N(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=hc(),c=0;c<o.length;c++)if(!gc(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=ic(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l))if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(_c(o[p],l)){f=!1,c=p;break}if(gc(o[p]))throw new N(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new N(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new N(`Expected one of "<>AV=|." after @`,o[c]);var m={type:`styling`,body:[vc(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=hc()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}q({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=Yo(ws(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=F(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new J(`mrow`,[zs(e.label,t)]);return n=new J(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new J(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),q({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=Yo(ws(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new J(`mrow`,[zs(e.fragment,t)])}}),q({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=Y(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=Y(r[a],`textord`);i+=o.text}var s=parseInt(i),c;if(isNaN(s))throw new N(`\\@char has non-numeric argument `+i);if(s<0||s>=1114111)throw new N(`\\@char with invalid code point `+i);return s<=65535?c=String.fromCharCode(s):(s-=65536,c=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:`textord`,mode:n.mode,text:c}}});var bc=(e,t)=>Jo(vs(e.body,t.withColor(e.color),!1)),xc=(e,t)=>{var n=new J(`mstyle`,Ls(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};q({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=Y(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:ps(i)}},htmlBuilder:bc,mathmlBuilder:xc}),q({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=Y(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:bc,mathmlBuilder:xc}),q({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&Y(i,`size`).value}},htmlBuilder(e,t){var n=K([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=F(Ta(e.size,t)))),n},mathmlBuilder(e,t){var n=new J(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,F(Ta(e.size,t)))),n}});var Sc={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},Cc=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new N(`Expected a control sequence`,e);return t},wc=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},Tc=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};q({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(Sc[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=Sc[r.text]),Y(t.parseFunction(),`internal`);throw new N(`Invalid token after macro prefix`,r)}}),q({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(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new N(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new N(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new N(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new N(`Expected a macro definition`);else s[a].push(r.text);var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===Sc[n]),{type:`internal`,mode:t.mode}}}),q({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Cc(t.gullet.popToken());return t.gullet.consumeSpaces(),Tc(t,r,wc(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),q({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Cc(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Tc(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var Ec=function(e,t,n){var r=qa(Xa.math[e]&&Xa.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},Dc=function(e,t,n,r){var i=n.havingBaseStyle(t),a=K(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},Oc=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=F(i),e.height-=i,e.depth+=i},kc=function(e,t,n,r,i,a){var o=Dc(Ro(e,`Main-Regular`,i,r),t,r,a);return n&&Oc(o,r,t),o},Ac=function(e,t,n,r){return Ro(e,`Size`+t+`-Regular`,n,r)},jc=function(e,t,n,r,i,a){var o=Ac(e,t,i,r),s=Dc(K([`delimsizing`,`size`+t],[o],r),P.TEXT,r,a);return n&&Oc(s,r,P.TEXT),s},Mc=function(e,t,n){return{type:`elem`,elem:K([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[K([],[Ro(e,t,n)])])}},Nc=function(e,t,n){var r=Ua[`Size4-Regular`][e.charCodeAt(0)]?Ua[`Size4-Regular`][e.charCodeAt(0)][4]:Ua[`Size1-Regular`][e.charCodeAt(0)][4],i=Go([],[new La([new Ra(`inner`,_a(e,Math.round(1e3*t)))],{width:F(r),height:F(t),style:`width:`+F(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=F(t),i.style.width=F(r),{type:`elem`,elem:i}},Pc=.008,Fc={type:`kern`,size:-1*Pc},Ic=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),Lc=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Rc=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):Ic.has(e)?(c=`∣`,u=`vert`,d=333):Lc.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=Ec(o,f,i),m=p.height+p.depth,h=Ec(c,f,i),g=h.height+h.depth,_=Ec(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=Ec(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,w=r.fontMetrics().axisHeight;n&&(w*=r.sizeMultiplier);var T=C/2-w,ee=[];if(u.length>0){var E=C-m-v,te=Math.round(C*1e3),ne=ya(u,Math.round(E*1e3)),re=new Ra(u,ne),ie=F(d/1e3),ae=F(te/1e3),oe=Go([],[new La([re],{width:ie,height:ae,viewBox:`0 0 `+d+` `+te})],r);oe.height=te/1e3,oe.style.width=ie,oe.style.height=ae,ee.push({type:`elem`,elem:oe})}else{if(ee.push(Mc(l,f,i)),ee.push(Fc),s===null){var se=C-m-v+2*Pc;ee.push(Nc(c,se,r))}else{var ce=(C-m-v-y)/2+2*Pc;ee.push(Nc(c,ce,r)),ee.push(Fc),ee.push(Mc(s,f,i)),ee.push(Fc),ee.push(Nc(c,ce,r))}ee.push(Fc),ee.push(Mc(o,f,i))}var D=r.havingBaseStyle(P.TEXT);return Dc(K([`delimsizing`,`mult`],[Zo({positionType:`bottom`,positionData:T,children:ee})],D),P.TEXT,r,a)},zc=80,Bc=.08,Vc=function(e,t,n,r,i){return Go([`hide-tail`],[new La([new Ra(e,ga(e,r,n))],{width:`400em`,height:F(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},Hc=function(e,t){var n=t.havingBaseSizing(),r=Qc(`\\surd`,e*n.sizeMultiplier,Xc,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+zc,e<1?i=1:e<1.4&&(i=.7),s=(1+a+Bc)/i,c=(1+a)/i,o=Vc(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+zc)*Kc[r.size],c=(Kc[r.size]+a)/i,s=(Kc[r.size]+a+Bc)/i,o=Vc(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+Bc,c=e+a,l=Math.floor(1e3*e+a)+zc,o=Vc(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=F(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},Uc=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),Wc=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Gc=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),Kc=[0,1.2,1.8,2.4,3],qc=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),Uc.has(e)||Gc.has(e))return jc(e,t,!1,n,r,i);if(Wc.has(e))return Rc(e,Kc[t],!1,n,r,i);throw new N(`Illegal delimiter: '`+e+`'`)},Jc=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Yc=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`stack`}],Xc=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],Zc=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},Qc=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=Ec(e,Zc(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},$c=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Gc.has(e)?Jc:Uc.has(e)?Xc:Yc,s=Qc(e,t,o,r);return s.type===`small`?kc(e,s.style,n,r,i,a):s.type===`large`?jc(e,s.size,n,r,i,a):Rc(e,t,n,r,i,a)},el=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return $c(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},tl={"\\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}},nl=new Set(`(,\\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,.`.split(`,`));function rl(e){return`isMiddle`in e}function il(e,t){var n=ac(e);if(n&&nl.has(n.text))return n;throw n?new N(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new N(`Invalid delimiter type '`+e.type+`'`,e)}q({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=il(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:tl[e.funcName].size,mclass:tl[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?K([e.mclass]):qc(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(Ms(e.delim,e.mode));var n=new J(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=F(Kc[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function al(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}q({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new N(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:il(t[0],e).text,color:n}}}),q({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=il(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=Y(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{al(e);for(var n=vs(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];rl(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?Cs(t,[`mopen`]):el(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(rl(u)){var d=u.isMiddle;n[l]=el(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=Cs(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=el(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),K([`minner`],n,t)},mathmlBuilder:(e,t)=>{al(e);var n=Ls(e.body,t);if(e.left!==`.`){var r=new J(`mo`,[Ms(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new J(`mo`,[Ms(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return Ns(n)}}),q({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=il(t[0],e);if(!e.parser.leftrightDepth)throw new N(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=Cs(t,[]):(n=qc(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new J(`mo`,[e.delim===`\\vert`||e.delim===`|`?Ms(`|`,`text`):Ms(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var ol=(e,t)=>{var n=Yo(ws(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=Pi(e.body);if(r===`sout`)a=K([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=Ta({number:.6,unit:`pt`},t),l=Ta({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=F(d/2+c);var f=Math.floor(1e3*d*i);a=Go([`hide-tail`],[new La([new Ra(`phase`,ma(f))],{width:`400em`,height:F(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=F(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=ec(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=F(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=F(h),a.style.borderRightWidth=F(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=Zo({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=Zo({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?K([`mord`,`cancel-lap`],[g],t):K([`mord`],[g],t)},sl=(e,t)=>{var n,r=new J(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[zs(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 i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+F(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`);break}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};q({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Y(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:ol,mathmlBuilder:sl}),q({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Y(t[0],`color-token`).color,o=Y(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:ol,mathmlBuilder:sl}),q({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]}}}),q({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:ol,mathmlBuilder:sl}),q({type:`enclose`,names:[`\\sout`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:ol,mathmlBuilder:sl}),q({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 cl={};function ll(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)cl[n[c]]=s;a&&(ls[t]=a),o&&(us[t]=o)}var ul={};function X(e,t){ul[e]=t}var dl=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},fl=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,dl.range(this,t))}};function pl(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 ml=e=>{if(!e.parser.settings.displayMode)throw new N(`{`+e.envName+`} can be used only in display mode.`)},hl=new Set([`gather`,`gather*`]);function gl(e){if(!e.includes(`ed`))return!e.includes(`*`)}function _l(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new N(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new fl(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(pl(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new N(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var w=void 0;e.gullet.future().text!==` `&&(w=e.parseSizeGroup(!0)),g.push(w?w.value:null),b(),_.push(pl(e)),m=[],h.push(m),y()}else throw new N(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function vl(e){return e.slice(0,1)===`d`?`display`:`text`}var yl=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(P.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?Ta({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var C=ws(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S.cells[r]=C}var w=e.rowGaps[n],T=0;w&&(T=Ta(w,t),T>0&&(T+=g,x<T&&(x=T),T=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+T,s[n]=S,v(a[n+1])}var ee=_/2+t.fontMetrics().axisHeight,E=e.cols||[],te=[],ne,re,ie=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var ae=s[n],oe=ae.pos-ee,se=e.tags[n],ce=void 0;ce=se===!0?K([`eqn-num`],[],t):se===!1?K([],[],t):K([],vs(se,t,!0),t),ce.depth=ae.depth,ce.height=ae.height,ie.push({type:`elem`,elem:ce,shift:oe})}for(r=0,re=0;r<o||re<E.length;++r,++re){for(var D=E[re],le=!0;(ue=D)?.type===`separator`;){var ue;if(le||(ne=K([`arraycolsep`],[]),ne.style.width=F(t.fontMetrics().doubleRuleSep),te.push(ne)),D.separator===`|`||D.separator===`:`){var de=D.separator===`|`?`solid`:`dashed`,fe=K([`vertical-separator`],[],t);fe.style.height=F(_),fe.style.borderRightWidth=F(l),fe.style.borderRightStyle=de,fe.style.margin=`0 `+F(-l/2);var pe=_-ee;pe&&(fe.style.verticalAlign=F(-pe)),te.push(fe)}else throw new N(`Invalid separator type: `+D.separator);re++,D=E[re],le=!1}if(!(r>=o)){var me=void 0;(r>0||e.hskipBeforeAndAfter)&&(me=D?.pregap??d,me!==0&&(ne=K([`arraycolsep`],[]),ne.style.width=F(me),te.push(ne)));var he=[];for(n=0;n<i;++n){var ge=s[n],_e=ge.cells[r];if(_e){var ve=ge.pos-ee;_e.depth=ge.depth,_e.height=ge.height,he.push({type:`elem`,elem:_e,shift:ve})}}var ye=Zo({positionType:`individualShift`,children:he}),O=K([`col-align-`+(D?.align||`c`)],[ye]);te.push(O),(r<o-1||e.hskipBeforeAndAfter)&&(me=D?.postgap??d,me!==0&&(ne=K([`arraycolsep`],[]),ne.style.width=F(me),te.push(ne)))}}var be=K([`mtable`],te);if(c.length>0){for(var xe=Ko(`hline`,t,l),Se=Ko(`hdashline`,t,l),Ce=[{type:`elem`,elem:be,shift:0}];c.length>0;){var we=c.pop(),Te=we.pos-ee;we.isDashed?Ce.push({type:`elem`,elem:Se,shift:Te}):Ce.push({type:`elem`,elem:xe,shift:Te})}be=Zo({positionType:`individualShift`,children:Ce})}if(ie.length===0)return K([`mord`],[be],t);var Ee=K([`tag`],[Zo({positionType:`individualShift`,children:ie})],t);return Jo([be,Ee])},bl={c:`center `,l:`left `,r:`right `},xl=function(e,t){for(var n=[],r=new J(`mtd`,[],[`mtr-glue`]),i=new J(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new J(`mtd`,[zs(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new J(`mtr`,s))}var l=new J(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,F(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=bl[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,w=e.hLinesBeforeRow;d+=w[0].length>0?`left `:``,d+=w[w.length-1].length>0?`right `:``;for(var T=1;T<w.length-1;T++)C+=w[T].length===0?`none `:w[T][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new J(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new J(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},Sl=function(e,t){e.envName.includes(`ed`)||ml(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=_l(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:gl(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},`display`),o=0,s=0,c={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var l=``,u=0;u<t[0].body.length;u++){var d=Y(t[0].body[u],`textord`);l+=d.text}o=Number(l),s=o*2}var f=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2)Y(Y(e[t],`styling`).body[0],`ordgroup`).body.unshift(c);if(f)s<e.length&&(s=e.length);else{var n=e.length/2;if(o<n)throw new N(`Too many math in a row: `+(`expected `+o+`, but got `+n),e[0])}});for(var p=0;p<s;++p){var m=`r`,h=0;p%2==1?m=`l`:p>0&&f&&(h=1),n[p]={type:`align`,align:m,pregap:h,postgap:0}}return a.colSeparationType=f?`align`:`alignat`,a};ll({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(ac(t[0])?[t[0]]:Y(t[0],`ordgroup`).body).map(function(e){var t=ic(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new N(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return _l(e.parser,r,vl(e.envName))},htmlBuilder:yl,mathmlBuilder:xl}),ll({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 i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new N(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=_l(e.parser,r,vl(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:yl,mathmlBuilder:xl}),ll({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=_l(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:yl,mathmlBuilder:xl}),ll({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(ac(t[0])?[t[0]]:Y(t[0],`ordgroup`).body).map(function(e){var t=ic(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new N(`Unknown column alignment: `+t,e)});if(n.length>1)throw new N(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=_l(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new N(`{subarray} can contain only one column`);return i},htmlBuilder:yl,mathmlBuilder:xl}),ll({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=_l(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},vl(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:yl,mathmlBuilder:xl}),ll({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:Sl,htmlBuilder:yl,mathmlBuilder:xl}),ll({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){hl.has(e.envName)&&ml(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:gl(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return _l(e.parser,t,`display`)},htmlBuilder:yl,mathmlBuilder:xl}),ll({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:Sl,htmlBuilder:yl,mathmlBuilder:xl}),ll({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){ml(e);var t={autoTag:gl(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return _l(e.parser,t,`display`)},htmlBuilder:yl,mathmlBuilder:xl}),ll({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return ml(e),yc(e.parser)},htmlBuilder:yl,mathmlBuilder:xl}),X(`\\nonumber`,`\\gdef\\@eqnsw{0}`),X(`\\notag`,`\\nonumber`),q({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new N(e.funcName+` valid only within array environment`)}});var Cl=cl;q({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new N(`Invalid environment name`,i);for(var a=``,o=0;o<i.body.length;++o)a+=Y(i.body[o],`textord`).text;if(r===`\\begin`){if(!Cl.hasOwnProperty(a))throw new N(`No such environment: `+a,i);var s=Cl[a],{args:c,optArgs:l}=n.parseArguments(`\\begin{`+a+`}`,s),u={mode:n.mode,envName:a,parser:n},d=s.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=Y(n.parseFunction(),`environment`);if(p.name!==a)throw new N(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var wl=(e,t)=>{var n=e.font,r=t.withFont(n);return ws(e.body,r)},Tl=(e,t)=>{var n=e.font,r=t.withFont(n);return zs(e.body,r)},El={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};q({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,i=fs(t[0]),a=r;return a in El&&(a=El[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:wl,mathmlBuilder:Tl}),q({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`mclass`,mode:n.mode,mclass:pc(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:Pi(r)}}}),q({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:wl,mathmlBuilder:Tl});var Dl=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=ws(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=ws(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=Ta(e.barSize,t),u=Ko(`frac-line`,t,d)):u=Ko(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===P.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=Zo({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=Zo({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===P.DISPLAY.size?t.fontMetrics().delim1:n.size===P.SCRIPTSCRIPT.size?t.havingStyle(P.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?Cs(t,[`mopen`]):$c(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?K([]):e.rightDelim==null?Cs(t,[`mclose`]):$c(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return K([`mord`].concat(a.sizingClasses(t)),[x,K([`mfrac`],[g]),S],t)},Ol=(e,t)=>{var n=new J(`mfrac`,[zs(e.numer,t),zs(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Ta(e.barSize,t);n.setAttribute(`linethickness`,F(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new J(`mo`,[new Os(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new J(`mo`,[new Os(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return Ns(i)}return n},kl=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;q({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),kl({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:Dl,mathmlBuilder:Ol}),q({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var Al=[`display`,`text`,`script`,`scriptscript`],jl=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};q({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],i=t[5],a=fs(t[0]),o=a.type===`atom`&&a.family===`open`?jl(a.text):null,s=fs(t[1]),c=s.type===`atom`&&s.family===`close`?jl(s.text):null,l=Y(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=Y(p.body[0],`textord`);f=Al[Number(m.text)]}}else p=Y(p,`textord`),f=Al[Number(p.text)];return kl({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),q({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:Y(t[0],`size`).value,token:i}}}),q({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=Y(t[1],`infix`).size;if(!a)throw Error(`\\\\abovefrac expected size, but got `+String(a));var o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var Ml=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?ws(e.sup,t.havingStyle(n.sup()),t):ws(e.sub,t.havingStyle(n.sub()),t),i=Y(e.base,`horizBrace`)):i=Y(e,`horizBrace`);var a=ws(i.base,t.havingBaseStyle(P.DISPLAY)),o=$s(i,t),s=i.isOver?Zo({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):Zo({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=K([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?Zo({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):Zo({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return K([`minner`,i.isOver?`mover`:`munder`],[s],t)};q({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:Ml,mathmlBuilder:(e,t)=>{var n=Xs(e.label);return new J(e.isOver?`mover`:`munder`,[zs(e.base,t),n])}}),q({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=Y(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:ps(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=vs(e.body,t,!1);return qo(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Rs(e.body,t);return n instanceof J||(n=new J(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),q({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=Y(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:ps(s)}}}),q({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:ps(t[0])}},htmlBuilder(e,t){return Jo(vs(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new J(`mrow`,Ls(e.body,t.withFont(``)))}}),q({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],props:{numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=Y(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,c={};switch(r){case`\\htmlClass`:c.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:c.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:c.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var l=a.split(`,`),u=0;u<l.length;u++){var d=l[u],f=d.indexOf(`=`);if(f<0)throw new N(`\\htmlData key/value '`+d+`' missing equals sign`);var p=d.slice(0,f),m=d.slice(f+1);c[`data-`+p.trim()]=m}s={command:`\\htmlData`,attributes:c};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(s)?{type:`html`,mode:n.mode,attributes:c,body:ps(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=vs(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=K(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Rs(e.body,t)}),q({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:ps(t[0]),mathml:ps(t[1])}},htmlBuilder:(e,t)=>Jo(vs(e.html,t,!1)),mathmlBuilder:(e,t)=>Rs(e.mathml,t)});var Nl=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new N(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!wa(n))throw new N(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};q({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=Y(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=Nl(d);break;case`height`:a=Nl(d);break;case`totalheight`:o=Nl(d);break;default:throw new N(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=Y(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=Ta(e.height,t),r=0;e.totalheight.number>0&&(r=Ta(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Ta(e.width,t));var a={height:F(n+r)};i>0&&(a.width=F(i)),r>0&&(a.verticalAlign=F(-r));var o=new Pa(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new J(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Ta(e.height,t),i=0;if(e.totalheight.number>0&&(i=Ta(e.totalheight,t)-r,n.setAttribute(`valign`,F(-i))),n.setAttribute(`height`,F(r+i)),e.width.number>0){var a=Ta(e.width,t);n.setAttribute(`width`,F(a))}return n.setAttribute(`src`,e.src),n}}),q({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,i=Y(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return Qo(e.dimension,t)},mathmlBuilder(e,t){return new ks(Ta(e.dimension,t))}}),q({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=K([],[ws(e.body,t)]),n=K([`inner`],[n],t)):n=K([`inner`],[ws(e.body,t)]);var r=K([`fix`],[]),i=K([e.alignment],[n,r],t),a=K([`strut`]);return a.style.height=F(i.height+i.depth),i.depth&&(a.style.verticalAlign=F(-i.depth)),i.children.unshift(a),i=K([`thinbox`],[i],t),K([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new J(`mpadded`,[zs(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}}),q({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),q({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new N(`Mismatched `+e.funcName)}});var Pl=(e,t)=>{switch(t.style.size){case P.DISPLAY.size:return e.display;case P.TEXT.size:return e.text;case P.SCRIPT.size:return e.script;case P.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};q({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:ps(t[0]),text:ps(t[1]),script:ps(t[2]),scriptscript:ps(t[3])}},htmlBuilder:(e,t)=>Jo(vs(Pl(e,t),t,!1)),mathmlBuilder:(e,t)=>Rs(Pl(e,t),t)});var Fl=(e,t,n,r,i,a,o)=>{e=K([],[e]);var s=n&&Pi(n),c,l;if(t){var u=ws(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=ws(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=Zo({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:F(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:F(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=Zo({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:F(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=Zo({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:F(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=K([`mspace`],[],r);m.style.marginRight=F(a),p.unshift(m)}return K([`mop`,`op-limits`],p,r)},Il=new Set([`\\smallint`]),Ll=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Y(e.base,`op`),i=!0):a=Y(e,`op`);var o=t.style,s=!1;o.size===P.DISPLAY.size&&a.symbol&&!Il.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=Ro(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=ns(d+`Size`+(s?`2`:`1`),t);c=Zo({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=vs(a.body,t,!0);p.length===1&&p[0]instanceof Ia?(c=p[0],c.classes[0]=`mop`):c=K([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(zo(a.name[h],a.mode,t));c=K([`mop`],m,t)}var g=0,_=0;return(c instanceof Ia||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?Fl(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=F(g)),c)},Rl=(e,t)=>{var n;if(e.symbol)n=new J(`mo`,[Ms(e.name,e.mode)]),Il.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new J(`mo`,Ls(e.body,t));else{n=new J(`mi`,[new Os(e.name.slice(1))]);var r=new J(`mo`,[Ms(``,`text`)]);n=e.parentIsSupSub?new J(`mrow`,[n,r]):Ds([n,r])}return n},zl={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};q({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=zl[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Ll,mathmlBuilder:Rl}),q({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:ps(r)}},htmlBuilder:Ll,mathmlBuilder:Rl});var Bl={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};q({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`.split(`.`),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:Ll,mathmlBuilder:Rl}),q({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:Ll,mathmlBuilder:Rl}),q({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Bl[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Ll,mathmlBuilder:Rl});var Vl=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Y(e.base,`operatorname`),i=!0):a=Y(e,`operatorname`);var o;if(a.body.length>0){for(var s=vs(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof Ia&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=K([`mop`],s,t)}else o=K([`mop`],[],t);return i?Fl(o,n,r,t,t.style,0,0):o};q({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:ps(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:Vl,mathmlBuilder:(e,t)=>{for(var n=Ls(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof ks))if(a instanceof J)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof Os?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}r&&(n=[new Os(n.map(e=>e.toText()).join(``))]);var s=new J(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new J(`mo`,[Ms(``,`text`)]);return e.parentIsSupSub?new J(`mrow`,[s,c]):Ds([s,c])}}),X(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),ds({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?Jo(vs(e.body,t,!1)):K([`mord`],vs(e.body,t,!0),t)},mathmlBuilder(e,t){return Rs(e.body,t,!0)}}),q({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=ws(e.body,t.havingCrampedStyle()),r=Ko(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return K([`mord`,`overline`],[Zo({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new J(`mo`,[new Os(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new J(`mover`,[zs(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),q({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:ps(r)}},htmlBuilder:(e,t)=>Jo(vs(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new J(`mphantom`,Ls(e.body,t))}),X(`\\hphantom`,`\\smash{\\phantom{#1}}`),q({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)=>K([`mord`,`rlap`],[K([`inner`],[ws(e.body,t.withPhantom())]),K([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new J(`mpadded`,[new J(`mphantom`,Ls(ps(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),q({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Y(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=ws(e.body,t);return Zo({positionType:`shift`,positionData:-Ta(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new J(`mpadded`,[zs(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),q({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),q({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,i=n[0],a=Y(t[0],`size`),o=Y(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&Y(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=K([`mord`,`rule`],[],t),r=Ta(e.width,t),i=Ta(e.height,t),a=e.shift?Ta(e.shift,t):0;return n.style.borderRightWidth=F(r),n.style.borderTopWidth=F(i),n.style.bottom=F(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Ta(e.width,t),r=Ta(e.height,t),i=e.shift?Ta(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new J(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,F(n)),o.setAttribute(`height`,F(r));var s=new J(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,F(i)):(s.setAttribute(`height`,F(i)),s.setAttribute(`depth`,F(-i))),s.setAttribute(`voffset`,F(i)),s}});function Hl(e,t,n){for(var r=vs(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return Jo(r)}var Ul=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];q({type:`sizing`,names:Ul,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:Ul.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return Hl(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new J(`mstyle`,Ls(e.body,n));return r.setAttribute(`mathsize`,F(n.sizeMultiplier)),r}}),q({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&Y(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=ic(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=K([],[ws(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return K([`mord`,`smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return K([`mord`],[Zo({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new J(`mpadded`,[zs(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),q({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=ws(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Yo(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<P.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=Hc(n.height+n.depth+a+r,t),l=o.height-s;l>n.height+n.depth+a&&(a=(a+l-n.height-n.depth)/2);var u=o.height-n.height-a-s;n.style.paddingLeft=F(c);var d=Zo({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+u)},{type:`elem`,elem:o},{type:`kern`,size:s}]});if(e.index){var f=t.havingStyle(P.SCRIPTSCRIPT),p=ws(e.index,f,t);return K([`mord`,`sqrt`],[K([`root`],[Zo({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}else return K([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new J(`mroot`,[zs(n,t),zs(r,t)]):new J(`msqrt`,[zs(n,t)])}});var Wl={display:P.DISPLAY,text:P.TEXT,script:P.SCRIPT,scriptscript:P.SCRIPTSCRIPT};function Gl(e){return e in Wl}q({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!Gl(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=Wl[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),Hl(e.body,r,t)},mathmlBuilder(e,t){var n=Wl[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new J(`mstyle`,Ls(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var Kl=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===P.DISPLAY.size||n.alwaysHandleSupSub)?Ll:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===P.DISPLAY.size||n.limits)?Vl:null:n.type===`accent`?Pi(n.base)?sc:null:n.type===`horizBrace`&&!e.sub===n.isOver?Ml:null:null};ds({type:`supsub`,htmlBuilder(e,t){var n=Kl(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=ws(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&Pi(r);if(i){var p=t.havingStyle(t.style.sup());s=ws(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=ws(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===P.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=F(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof Ia||y)&&(v=F(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=Zo({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=Zo({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=Zo({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return K([Ss(o,`right`)||`mord`],[o,K([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[zs(e.base,t)];e.sub&&a.push(zs(e.sub,t)),e.sup&&a.push(zs(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===P.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===P.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===P.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===P.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===P.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===P.DISPLAY)?`munder`:`msub`}return new J(o,a)}}),ds({type:`atom`,htmlBuilder(e,t){return zo(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new J(`mo`,[Ms(e.text,e.mode)]);if(e.family===`bin`){var r=Fs(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var ql={mi:`italic`,mn:`normal`,mtext:`normal`};ds({type:`mathord`,htmlBuilder(e,t){return Vo(e,t,`mathord`)},mathmlBuilder(e,t){var n=new J(`mi`,[Ms(e.text,e.mode,t)]),r=Fs(e,t)||`italic`;return r!==ql[n.type]&&n.setAttribute(`mathvariant`,r),n}}),ds({type:`textord`,htmlBuilder(e,t){return Vo(e,t,`textord`)},mathmlBuilder(e,t){var n=Ms(e.text,e.mode,t),r=Fs(e,t)||`normal`,i=e.mode===`text`?new J(`mtext`,[n]):/[0-9]/.test(e.text)?new J(`mn`,[n]):e.text===`\\prime`?new J(`mo`,[n]):new J(`mi`,[n]);return r!==ql[i.type]&&i.setAttribute(`mathvariant`,r),i}});var Jl={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},Yl={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};ds({type:`spacing`,htmlBuilder(e,t){if(Yl.hasOwnProperty(e.text)){var n=Yl[e.text].className||``;if(e.mode===`text`){var r=Vo(e,t,`textord`);return r.classes.push(n),r}else return K([`mspace`,n],[zo(e.text,e.mode,t)],t)}else if(Jl.hasOwnProperty(e.text))return K([`mspace`,Jl[e.text]],[],t);else throw new N(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(Yl.hasOwnProperty(e.text))n=new J(`mtext`,[new Os(`\xA0`)]);else if(Jl.hasOwnProperty(e.text))return new J(`mspace`);else throw new N(`Unknown type of space "`+e.text+`"`);return n}});var Xl=()=>{var e=new J(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};ds({type:`tag`,mathmlBuilder(e,t){var n=new J(`mtable`,[new J(`mtr`,[Xl(),new J(`mtd`,[Rs(e.body,t)]),Xl(),new J(`mtd`,[Rs(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var Zl={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},Ql={"\\textbf":`textbf`,"\\textmd":`textmd`},$l={"\\textit":`textit`,"\\textup":`textup`},eu=(e,t)=>{var n=e.font;return n?Zl[n]?t.withTextFontFamily(Zl[n]):Ql[n]?t.withTextFontWeight(Ql[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape($l[n]):t};q({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,i=t[0];return{type:`text`,mode:n.mode,body:ps(i),font:r}},htmlBuilder(e,t){var n=eu(e,t);return K([`mord`,`text`],vs(e.body,n,!0),n)},mathmlBuilder(e,t){var n=eu(e,t);return Rs(e.body,n)}}),q({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=ws(e.body,t),r=Ko(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return K([`mord`,`underline`],[Zo({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new J(`mo`,[new Os(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new J(`munder`,[zs(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),q({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=ws(e.body,t),r=t.fontMetrics().axisHeight;return Zo({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new J(`mrow`,[new J(`mpadded`,[zs(e.body,t)],[`vcenter`])])}}),q({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new N(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=tu(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(Ro(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return K([`mord`,`text`].concat(i.sizingClasses(t)),Uo(r),i)},mathmlBuilder(e,t){var n=new J(`mtext`,[new Os(tu(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var tu=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),nu=cs,ru=`[ \r
|
|
253
|
+
]`,iu=`\\\\[a-zA-Z@]+`,au=`\\\\[^\ud800-\udfff]`,ou=`(`+iu+`)`+ru+`*`,su=`\\\\(
|
|
378
254
|
|[ \r ]+
|
|
379
|
-
?)[ \r ]*`,
|
|
380
|
-
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.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=i+1,this.lex()}return new jp(r,new Ap(this,t,this.tokenRegex.lastIndex))}},Am=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new F(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},jm=kp;Z(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Z(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Z(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Z(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Z(`\\@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}}),Z(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),Z(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Mm={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};Z(`\\char`,function(e){var t=e.popToken(),n,r=0;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 F("\\char` missing argument");else r=t.text.charCodeAt(0);else n=10;if(n){if(r=Mm[t.text],r==null||r>=n)throw new F(`Invalid base-`+n+` digit `+t.text);for(var i;(i=Mm[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var Nm=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new F(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new F(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new F(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new F(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};Z(`\\newcommand`,e=>Nm(e,!1,!0,!1)),Z(`\\renewcommand`,e=>Nm(e,!0,!1,!1)),Z(`\\providecommand`,e=>Nm(e,!0,!0,!0)),Z(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),Z(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),Z(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),bm[n],ju.math[n],ju.text[n]),``}),Z(`\\bgroup`,`{`),Z(`\\egroup`,`}`),Z(`~`,`\\nobreakspace`),Z(`\\lq`,"`"),Z(`\\rq`,`'`),Z(`\\aa`,`\\r a`),Z(`\\AA`,`\\r A`),Z(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),Z(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),Z(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Z(`ℬ`,`\\mathscr{B}`),Z(`ℰ`,`\\mathscr{E}`),Z(`ℱ`,`\\mathscr{F}`),Z(`ℋ`,`\\mathscr{H}`),Z(`ℐ`,`\\mathscr{I}`),Z(`ℒ`,`\\mathscr{L}`),Z(`ℳ`,`\\mathscr{M}`),Z(`ℛ`,`\\mathscr{R}`),Z(`ℭ`,`\\mathfrak{C}`),Z(`ℌ`,`\\mathfrak{H}`),Z(`ℨ`,`\\mathfrak{Z}`),Z(`\\Bbbk`,`\\Bbb{k}`),Z(`\\llap`,`\\mathllap{\\textrm{#1}}`),Z(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),Z(`\\clap`,`\\mathclap{\\textrm{#1}}`),Z(`\\mathstrut`,`\\vphantom{(}`),Z(`\\underbar`,`\\underline{\\text{#1}}`),Z(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),Z(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Z(`\\ne`,`\\neq`),Z(`≠`,`\\neq`),Z(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Z(`∉`,`\\notin`),Z(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Z(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Z(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Z(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Z(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Z(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Z(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Z(`⟂`,`\\perp`),Z(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),Z(`∌`,`\\notni`),Z(`⌜`,`\\ulcorner`),Z(`⌝`,`\\urcorner`),Z(`⌞`,`\\llcorner`),Z(`⌟`,`\\lrcorner`),Z(`©`,`\\copyright`),Z(`®`,`\\textregistered`),Z(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),Z(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),Z(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),Z(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),Z(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),Z(`⋮`,`\\vdots`),Z(`\\varGamma`,`\\mathit{\\Gamma}`),Z(`\\varDelta`,`\\mathit{\\Delta}`),Z(`\\varTheta`,`\\mathit{\\Theta}`),Z(`\\varLambda`,`\\mathit{\\Lambda}`),Z(`\\varXi`,`\\mathit{\\Xi}`),Z(`\\varPi`,`\\mathit{\\Pi}`),Z(`\\varSigma`,`\\mathit{\\Sigma}`),Z(`\\varUpsilon`,`\\mathit{\\Upsilon}`),Z(`\\varPhi`,`\\mathit{\\Phi}`),Z(`\\varPsi`,`\\mathit{\\Psi}`),Z(`\\varOmega`,`\\mathit{\\Omega}`),Z(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),Z(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),Z(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),Z(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),Z(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),Z(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),Z(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),Z(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var Pm={",":`\\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`},Fm=new Set([`bin`,`rel`]);Z(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in Pm?t=Pm[n]:(n.slice(0,4)===`\\not`||n in ju.math&&Fm.has(ju.math[n].group))&&(t=`\\dotsb`),t});var Im={")":!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};Z(`\\dotso`,function(e){return e.future().text in Im?`\\ldots\\,`:`\\ldots`}),Z(`\\dotsc`,function(e){var t=e.future().text;return t in Im&&t!==`,`?`\\ldots\\,`:`\\ldots`}),Z(`\\cdots`,function(e){return e.future().text in Im?`\\@cdots\\,`:`\\@cdots`}),Z(`\\dotsb`,`\\cdots`),Z(`\\dotsm`,`\\cdots`),Z(`\\dotsi`,`\\!\\cdots`),Z(`\\dotsx`,`\\ldots\\,`),Z(`\\DOTSI`,`\\relax`),Z(`\\DOTSB`,`\\relax`),Z(`\\DOTSX`,`\\relax`),Z(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),Z(`\\,`,`\\tmspace+{3mu}{.1667em}`),Z(`\\thinspace`,`\\,`),Z(`\\>`,`\\mskip{4mu}`),Z(`\\:`,`\\tmspace+{4mu}{.2222em}`),Z(`\\medspace`,`\\:`),Z(`\\;`,`\\tmspace+{5mu}{.2777em}`),Z(`\\thickspace`,`\\;`),Z(`\\!`,`\\tmspace-{3mu}{.1667em}`),Z(`\\negthinspace`,`\\!`),Z(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),Z(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),Z(`\\enspace`,`\\kern.5em `),Z(`\\enskip`,`\\hskip.5em\\relax`),Z(`\\quad`,`\\hskip1em\\relax`),Z(`\\qquad`,`\\hskip2em\\relax`),Z(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),Z(`\\tag@paren`,`\\tag@literal{({#1})}`),Z(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new F(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),Z(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),Z(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),Z(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),Z(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),Z(`\\newline`,`\\\\\\relax`),Z(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var Lm=L(Su[`Main-Regular`][84][1]-.7*Su[`Main-Regular`][65][1]);Z(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Lm+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),Z(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Lm+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),Z(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),Z(`\\@hspace`,`\\hskip #1\\relax`),Z(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),Z(`\\ordinarycolon`,`:`),Z(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),Z(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),Z(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),Z(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),Z(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),Z(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),Z(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),Z(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),Z(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),Z(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),Z(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),Z(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),Z(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),Z(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),Z(`∷`,`\\dblcolon`),Z(`∹`,`\\eqcolon`),Z(`≔`,`\\coloneqq`),Z(`≕`,`\\eqqcolon`),Z(`⩴`,`\\Coloneqq`),Z(`\\ratio`,`\\vcentcolon`),Z(`\\coloncolon`,`\\dblcolon`),Z(`\\colonequals`,`\\coloneqq`),Z(`\\coloncolonequals`,`\\Coloneqq`),Z(`\\equalscolon`,`\\eqqcolon`),Z(`\\equalscoloncolon`,`\\Eqqcolon`),Z(`\\colonminus`,`\\coloneq`),Z(`\\coloncolonminus`,`\\Coloneq`),Z(`\\minuscolon`,`\\eqcolon`),Z(`\\minuscoloncolon`,`\\Eqcolon`),Z(`\\coloncolonapprox`,`\\Colonapprox`),Z(`\\coloncolonsim`,`\\Colonsim`),Z(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Z(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Z(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Z(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Z(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Z(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),Z(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),Z(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),Z(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),Z(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),Z(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),Z(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),Z(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),Z(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),Z(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),Z(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),Z(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),Z(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),Z(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),Z(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),Z(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),Z(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),Z(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),Z(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),Z(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),Z(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),Z(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),Z(`\\imath`,`\\html@mathml{\\@imath}{ı}`),Z(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),Z(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Z(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Z(`⟦`,`\\llbracket`),Z(`⟧`,`\\rrbracket`),Z(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Z(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Z(`⦃`,`\\lBrace`),Z(`⦄`,`\\rBrace`),Z(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Z(`⦵`,`\\minuso`),Z(`\\darr`,`\\downarrow`),Z(`\\dArr`,`\\Downarrow`),Z(`\\Darr`,`\\Downarrow`),Z(`\\lang`,`\\langle`),Z(`\\rang`,`\\rangle`),Z(`\\uarr`,`\\uparrow`),Z(`\\uArr`,`\\Uparrow`),Z(`\\Uarr`,`\\Uparrow`),Z(`\\N`,`\\mathbb{N}`),Z(`\\R`,`\\mathbb{R}`),Z(`\\Z`,`\\mathbb{Z}`),Z(`\\alef`,`\\aleph`),Z(`\\alefsym`,`\\aleph`),Z(`\\Alpha`,`\\mathrm{A}`),Z(`\\Beta`,`\\mathrm{B}`),Z(`\\bull`,`\\bullet`),Z(`\\Chi`,`\\mathrm{X}`),Z(`\\clubs`,`\\clubsuit`),Z(`\\cnums`,`\\mathbb{C}`),Z(`\\Complex`,`\\mathbb{C}`),Z(`\\Dagger`,`\\ddagger`),Z(`\\diamonds`,`\\diamondsuit`),Z(`\\empty`,`\\emptyset`),Z(`\\Epsilon`,`\\mathrm{E}`),Z(`\\Eta`,`\\mathrm{H}`),Z(`\\exist`,`\\exists`),Z(`\\harr`,`\\leftrightarrow`),Z(`\\hArr`,`\\Leftrightarrow`),Z(`\\Harr`,`\\Leftrightarrow`),Z(`\\hearts`,`\\heartsuit`),Z(`\\image`,`\\Im`),Z(`\\infin`,`\\infty`),Z(`\\Iota`,`\\mathrm{I}`),Z(`\\isin`,`\\in`),Z(`\\Kappa`,`\\mathrm{K}`),Z(`\\larr`,`\\leftarrow`),Z(`\\lArr`,`\\Leftarrow`),Z(`\\Larr`,`\\Leftarrow`),Z(`\\lrarr`,`\\leftrightarrow`),Z(`\\lrArr`,`\\Leftrightarrow`),Z(`\\Lrarr`,`\\Leftrightarrow`),Z(`\\Mu`,`\\mathrm{M}`),Z(`\\natnums`,`\\mathbb{N}`),Z(`\\Nu`,`\\mathrm{N}`),Z(`\\Omicron`,`\\mathrm{O}`),Z(`\\plusmn`,`\\pm`),Z(`\\rarr`,`\\rightarrow`),Z(`\\rArr`,`\\Rightarrow`),Z(`\\Rarr`,`\\Rightarrow`),Z(`\\real`,`\\Re`),Z(`\\reals`,`\\mathbb{R}`),Z(`\\Reals`,`\\mathbb{R}`),Z(`\\Rho`,`\\mathrm{P}`),Z(`\\sdot`,`\\cdot`),Z(`\\sect`,`\\S`),Z(`\\spades`,`\\spadesuit`),Z(`\\sub`,`\\subset`),Z(`\\sube`,`\\subseteq`),Z(`\\supe`,`\\supseteq`),Z(`\\Tau`,`\\mathrm{T}`),Z(`\\thetasym`,`\\vartheta`),Z(`\\weierp`,`\\wp`),Z(`\\Zeta`,`\\mathrm{Z}`),Z(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),Z(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),Z(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),Z(`\\bra`,`\\mathinner{\\langle{#1}|}`),Z(`\\ket`,`\\mathinner{|{#1}\\rangle}`),Z(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),Z(`\\Bra`,`\\left\\langle#1\\right|`),Z(`\\Ket`,`\\left|#1\\right\\rangle`);var Rm=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};Z(`\\bra@ket`,Rm(!1)),Z(`\\bra@set`,Rm(!0)),Z(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),Z(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),Z(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),Z(`\\angln`,`{\\angl n}`),Z(`\\blue`,`\\textcolor{##6495ed}{#1}`),Z(`\\orange`,`\\textcolor{##ffa500}{#1}`),Z(`\\pink`,`\\textcolor{##ff00af}{#1}`),Z(`\\red`,`\\textcolor{##df0030}{#1}`),Z(`\\green`,`\\textcolor{##28ae7b}{#1}`),Z(`\\gray`,`\\textcolor{gray}{#1}`),Z(`\\purple`,`\\textcolor{##9d38bd}{#1}`),Z(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),Z(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),Z(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),Z(`\\blueD`,`\\textcolor{##11accd}{#1}`),Z(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),Z(`\\tealA`,`\\textcolor{##94fff5}{#1}`),Z(`\\tealB`,`\\textcolor{##26edd5}{#1}`),Z(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),Z(`\\tealD`,`\\textcolor{##01a995}{#1}`),Z(`\\tealE`,`\\textcolor{##208170}{#1}`),Z(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),Z(`\\greenB`,`\\textcolor{##8af281}{#1}`),Z(`\\greenC`,`\\textcolor{##74cf70}{#1}`),Z(`\\greenD`,`\\textcolor{##1fab54}{#1}`),Z(`\\greenE`,`\\textcolor{##0d923f}{#1}`),Z(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),Z(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),Z(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),Z(`\\goldD`,`\\textcolor{##e07d10}{#1}`),Z(`\\goldE`,`\\textcolor{##a75a05}{#1}`),Z(`\\redA`,`\\textcolor{##fca9a9}{#1}`),Z(`\\redB`,`\\textcolor{##ff8482}{#1}`),Z(`\\redC`,`\\textcolor{##f9685d}{#1}`),Z(`\\redD`,`\\textcolor{##e84d39}{#1}`),Z(`\\redE`,`\\textcolor{##bc2612}{#1}`),Z(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),Z(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),Z(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),Z(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),Z(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),Z(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),Z(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),Z(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),Z(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),Z(`\\purpleE`,`\\textcolor{##543b78}{#1}`),Z(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),Z(`\\mintB`,`\\textcolor{##edf2df}{#1}`),Z(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),Z(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),Z(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),Z(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),Z(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),Z(`\\grayE`,`\\textcolor{##babec2}{#1}`),Z(`\\grayF`,`\\textcolor{##888d93}{#1}`),Z(`\\grayG`,`\\textcolor{##626569}{#1}`),Z(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),Z(`\\grayI`,`\\textcolor{##21242c}{#1}`),Z(`\\kaBlue`,`\\textcolor{##314453}{#1}`),Z(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var zm={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Bm=class{constructor(e,t,n){this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Am(jm,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new km(e,this.settings)}switchMode(e){this.mode=e}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(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else ({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new jp(`EOF`,n.loc)),this.pushTokens(r),new jp(``,Ap.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new F(`Extra }`,i)}else if(i.text===`EOF`)throw new F(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n)if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new F(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new F(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new F(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new F(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new F(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new F(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new jp(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new km(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||bm.hasOwnProperty(e)||ju.math.hasOwnProperty(e)||ju.text.hasOwnProperty(e)||zm.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?bm.hasOwnProperty(e)&&!bm[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Vm=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Hm=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`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Um={"́":{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`}},Wm={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},Gm=class e{constructor(e,t){this.mode=`math`,this.gullet=new Bm(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new F(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new jp(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&bm[i.text]&&bm[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new F(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}else return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new F(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new F(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new F(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new F(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new F(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(Hm[i.text]){var s=Vm.test(i.text),c=[];for(c.push(new jp(Hm[i.text])),this.consume();;){var l=this.fetch().text;if(!Hm[l]||Vm.test(l)!==s)break;c.unshift(new jp(Hm[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n||r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=bm[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new F(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new F(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new F(`Can't use function '`+r+`' in math mode`,n);var{args:a,optArgs:o}=this.parseArguments(r,i);return this.callFunction(r,a,o,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=bm[e];if(o&&o.handler)return o.handler(a,t,n);throw new F(`No function handler for `+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var r=[],i=[],a=0;a<n;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;(`primitive`in t&&t.primitive&&o==null||t.type===`sqrt`&&a===1&&i[0]==null)&&(o=`primitive`);var c=this.parseGroupOfType(`argument to '`+e+`'`,o,s);if(s)i.push(c);else if(c!=null)r.push(c);else throw new F(`Null argument, please report this as a bug`)}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`};case`raw`:var i=this.parseStringGroup(`raw`,n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new F(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new F(`Expected group as `+e,this.fetch());return a;case`original`:case null:case void 0:return this.parseArgumentGroup(n);default:throw new F(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(n==null)return null;for(var r=``,i;(i=this.fetch()).text!==`EOF`;)r+=i.text,this.consume();return this.consume(),n.text=r,n}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new F(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(`color`,e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new F(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(`size`,e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new F(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!iu(i))throw new F(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(`url`,e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:Ap.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!zm.hasOwnProperty(r)){if(this.settings.throwOnError)throw new F(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(!(!a||a.type!==`textord`)){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:Ap.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:Ap.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:Ap.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new F(`\\verb assertion failed --
|
|
381
|
-
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}
|
|
255
|
+
?)[ \r ]*`,cu=`[̀-ͯ]`,lu=RegExp(cu+`+$`),uu=`(`+ru+`+)|`+(su+`|`)+`([!-\\[\\]-‧-豈-]`+(cu+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(cu+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+ou)+(`|`+au+`)`),du=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(uu,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new fl(`EOF`,new dl(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new N(`Unexpected character: '`+e[t]+`'`,new fl(e[t],new dl(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
|
|
256
|
+
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.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=i+1,this.lex()}return new fl(r,new dl(this,t,this.tokenRegex.lastIndex))}},fu=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new N(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},pu=ul;X(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),X(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),X(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),X(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),X(`\\@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}}),X(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),X(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var mu={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};X(`\\char`,function(e){var t=e.popToken(),n,r=0;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 N("\\char` missing argument");else r=t.text.charCodeAt(0);else n=10;if(n){if(r=mu[t.text],r==null||r>=n)throw new N(`Invalid base-`+n+` digit `+t.text);for(var i;(i=mu[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var hu=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new N(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new N(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new N(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new N(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};X(`\\newcommand`,e=>hu(e,!1,!0,!1)),X(`\\renewcommand`,e=>hu(e,!0,!1,!1)),X(`\\providecommand`,e=>hu(e,!0,!0,!0)),X(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),X(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),X(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),nu[n],Xa.math[n],Xa.text[n]),``}),X(`\\bgroup`,`{`),X(`\\egroup`,`}`),X(`~`,`\\nobreakspace`),X(`\\lq`,"`"),X(`\\rq`,`'`),X(`\\aa`,`\\r a`),X(`\\AA`,`\\r A`),X(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),X(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),X(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),X(`ℬ`,`\\mathscr{B}`),X(`ℰ`,`\\mathscr{E}`),X(`ℱ`,`\\mathscr{F}`),X(`ℋ`,`\\mathscr{H}`),X(`ℐ`,`\\mathscr{I}`),X(`ℒ`,`\\mathscr{L}`),X(`ℳ`,`\\mathscr{M}`),X(`ℛ`,`\\mathscr{R}`),X(`ℭ`,`\\mathfrak{C}`),X(`ℌ`,`\\mathfrak{H}`),X(`ℨ`,`\\mathfrak{Z}`),X(`\\Bbbk`,`\\Bbb{k}`),X(`\\llap`,`\\mathllap{\\textrm{#1}}`),X(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),X(`\\clap`,`\\mathclap{\\textrm{#1}}`),X(`\\mathstrut`,`\\vphantom{(}`),X(`\\underbar`,`\\underline{\\text{#1}}`),X(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),X(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),X(`\\ne`,`\\neq`),X(`≠`,`\\neq`),X(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),X(`∉`,`\\notin`),X(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),X(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),X(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),X(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),X(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),X(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),X(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),X(`⟂`,`\\perp`),X(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),X(`∌`,`\\notni`),X(`⌜`,`\\ulcorner`),X(`⌝`,`\\urcorner`),X(`⌞`,`\\llcorner`),X(`⌟`,`\\lrcorner`),X(`©`,`\\copyright`),X(`®`,`\\textregistered`),X(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),X(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),X(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),X(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),X(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),X(`⋮`,`\\vdots`),X(`\\varGamma`,`\\mathit{\\Gamma}`),X(`\\varDelta`,`\\mathit{\\Delta}`),X(`\\varTheta`,`\\mathit{\\Theta}`),X(`\\varLambda`,`\\mathit{\\Lambda}`),X(`\\varXi`,`\\mathit{\\Xi}`),X(`\\varPi`,`\\mathit{\\Pi}`),X(`\\varSigma`,`\\mathit{\\Sigma}`),X(`\\varUpsilon`,`\\mathit{\\Upsilon}`),X(`\\varPhi`,`\\mathit{\\Phi}`),X(`\\varPsi`,`\\mathit{\\Psi}`),X(`\\varOmega`,`\\mathit{\\Omega}`),X(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),X(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),X(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),X(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),X(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),X(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),X(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),X(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var gu={",":`\\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`},_u=new Set([`bin`,`rel`]);X(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in gu?t=gu[n]:(n.slice(0,4)===`\\not`||n in Xa.math&&_u.has(Xa.math[n].group))&&(t=`\\dotsb`),t});var vu={")":!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};X(`\\dotso`,function(e){return e.future().text in vu?`\\ldots\\,`:`\\ldots`}),X(`\\dotsc`,function(e){var t=e.future().text;return t in vu&&t!==`,`?`\\ldots\\,`:`\\ldots`}),X(`\\cdots`,function(e){return e.future().text in vu?`\\@cdots\\,`:`\\@cdots`}),X(`\\dotsb`,`\\cdots`),X(`\\dotsm`,`\\cdots`),X(`\\dotsi`,`\\!\\cdots`),X(`\\dotsx`,`\\ldots\\,`),X(`\\DOTSI`,`\\relax`),X(`\\DOTSB`,`\\relax`),X(`\\DOTSX`,`\\relax`),X(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),X(`\\,`,`\\tmspace+{3mu}{.1667em}`),X(`\\thinspace`,`\\,`),X(`\\>`,`\\mskip{4mu}`),X(`\\:`,`\\tmspace+{4mu}{.2222em}`),X(`\\medspace`,`\\:`),X(`\\;`,`\\tmspace+{5mu}{.2777em}`),X(`\\thickspace`,`\\;`),X(`\\!`,`\\tmspace-{3mu}{.1667em}`),X(`\\negthinspace`,`\\!`),X(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),X(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),X(`\\enspace`,`\\kern.5em `),X(`\\enskip`,`\\hskip.5em\\relax`),X(`\\quad`,`\\hskip1em\\relax`),X(`\\qquad`,`\\hskip2em\\relax`),X(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),X(`\\tag@paren`,`\\tag@literal{({#1})}`),X(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new N(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),X(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),X(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),X(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),X(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),X(`\\newline`,`\\\\\\relax`),X(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var yu=F(Ua[`Main-Regular`][84][1]-.7*Ua[`Main-Regular`][65][1]);X(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+yu+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),X(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+yu+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),X(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),X(`\\@hspace`,`\\hskip #1\\relax`),X(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),X(`\\ordinarycolon`,`:`),X(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),X(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),X(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),X(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),X(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),X(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),X(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),X(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),X(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),X(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),X(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),X(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),X(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),X(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),X(`∷`,`\\dblcolon`),X(`∹`,`\\eqcolon`),X(`≔`,`\\coloneqq`),X(`≕`,`\\eqqcolon`),X(`⩴`,`\\Coloneqq`),X(`\\ratio`,`\\vcentcolon`),X(`\\coloncolon`,`\\dblcolon`),X(`\\colonequals`,`\\coloneqq`),X(`\\coloncolonequals`,`\\Coloneqq`),X(`\\equalscolon`,`\\eqqcolon`),X(`\\equalscoloncolon`,`\\Eqqcolon`),X(`\\colonminus`,`\\coloneq`),X(`\\coloncolonminus`,`\\Coloneq`),X(`\\minuscolon`,`\\eqcolon`),X(`\\minuscoloncolon`,`\\Eqcolon`),X(`\\coloncolonapprox`,`\\Colonapprox`),X(`\\coloncolonsim`,`\\Colonsim`),X(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),X(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),X(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),X(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),X(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),X(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),X(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),X(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),X(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),X(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),X(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),X(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),X(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),X(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),X(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),X(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),X(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),X(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),X(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),X(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),X(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),X(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),X(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),X(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),X(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),X(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),X(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),X(`\\imath`,`\\html@mathml{\\@imath}{ı}`),X(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),X(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),X(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),X(`⟦`,`\\llbracket`),X(`⟧`,`\\rrbracket`),X(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),X(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),X(`⦃`,`\\lBrace`),X(`⦄`,`\\rBrace`),X(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),X(`⦵`,`\\minuso`),X(`\\darr`,`\\downarrow`),X(`\\dArr`,`\\Downarrow`),X(`\\Darr`,`\\Downarrow`),X(`\\lang`,`\\langle`),X(`\\rang`,`\\rangle`),X(`\\uarr`,`\\uparrow`),X(`\\uArr`,`\\Uparrow`),X(`\\Uarr`,`\\Uparrow`),X(`\\N`,`\\mathbb{N}`),X(`\\R`,`\\mathbb{R}`),X(`\\Z`,`\\mathbb{Z}`),X(`\\alef`,`\\aleph`),X(`\\alefsym`,`\\aleph`),X(`\\Alpha`,`\\mathrm{A}`),X(`\\Beta`,`\\mathrm{B}`),X(`\\bull`,`\\bullet`),X(`\\Chi`,`\\mathrm{X}`),X(`\\clubs`,`\\clubsuit`),X(`\\cnums`,`\\mathbb{C}`),X(`\\Complex`,`\\mathbb{C}`),X(`\\Dagger`,`\\ddagger`),X(`\\diamonds`,`\\diamondsuit`),X(`\\empty`,`\\emptyset`),X(`\\Epsilon`,`\\mathrm{E}`),X(`\\Eta`,`\\mathrm{H}`),X(`\\exist`,`\\exists`),X(`\\harr`,`\\leftrightarrow`),X(`\\hArr`,`\\Leftrightarrow`),X(`\\Harr`,`\\Leftrightarrow`),X(`\\hearts`,`\\heartsuit`),X(`\\image`,`\\Im`),X(`\\infin`,`\\infty`),X(`\\Iota`,`\\mathrm{I}`),X(`\\isin`,`\\in`),X(`\\Kappa`,`\\mathrm{K}`),X(`\\larr`,`\\leftarrow`),X(`\\lArr`,`\\Leftarrow`),X(`\\Larr`,`\\Leftarrow`),X(`\\lrarr`,`\\leftrightarrow`),X(`\\lrArr`,`\\Leftrightarrow`),X(`\\Lrarr`,`\\Leftrightarrow`),X(`\\Mu`,`\\mathrm{M}`),X(`\\natnums`,`\\mathbb{N}`),X(`\\Nu`,`\\mathrm{N}`),X(`\\Omicron`,`\\mathrm{O}`),X(`\\plusmn`,`\\pm`),X(`\\rarr`,`\\rightarrow`),X(`\\rArr`,`\\Rightarrow`),X(`\\Rarr`,`\\Rightarrow`),X(`\\real`,`\\Re`),X(`\\reals`,`\\mathbb{R}`),X(`\\Reals`,`\\mathbb{R}`),X(`\\Rho`,`\\mathrm{P}`),X(`\\sdot`,`\\cdot`),X(`\\sect`,`\\S`),X(`\\spades`,`\\spadesuit`),X(`\\sub`,`\\subset`),X(`\\sube`,`\\subseteq`),X(`\\supe`,`\\supseteq`),X(`\\Tau`,`\\mathrm{T}`),X(`\\thetasym`,`\\vartheta`),X(`\\weierp`,`\\wp`),X(`\\Zeta`,`\\mathrm{Z}`),X(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),X(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),X(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),X(`\\bra`,`\\mathinner{\\langle{#1}|}`),X(`\\ket`,`\\mathinner{|{#1}\\rangle}`),X(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),X(`\\Bra`,`\\left\\langle#1\\right|`),X(`\\Ket`,`\\left|#1\\right\\rangle`);var bu=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};X(`\\bra@ket`,bu(!1)),X(`\\bra@set`,bu(!0)),X(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),X(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),X(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),X(`\\angln`,`{\\angl n}`),X(`\\blue`,`\\textcolor{##6495ed}{#1}`),X(`\\orange`,`\\textcolor{##ffa500}{#1}`),X(`\\pink`,`\\textcolor{##ff00af}{#1}`),X(`\\red`,`\\textcolor{##df0030}{#1}`),X(`\\green`,`\\textcolor{##28ae7b}{#1}`),X(`\\gray`,`\\textcolor{gray}{#1}`),X(`\\purple`,`\\textcolor{##9d38bd}{#1}`),X(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),X(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),X(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),X(`\\blueD`,`\\textcolor{##11accd}{#1}`),X(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),X(`\\tealA`,`\\textcolor{##94fff5}{#1}`),X(`\\tealB`,`\\textcolor{##26edd5}{#1}`),X(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),X(`\\tealD`,`\\textcolor{##01a995}{#1}`),X(`\\tealE`,`\\textcolor{##208170}{#1}`),X(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),X(`\\greenB`,`\\textcolor{##8af281}{#1}`),X(`\\greenC`,`\\textcolor{##74cf70}{#1}`),X(`\\greenD`,`\\textcolor{##1fab54}{#1}`),X(`\\greenE`,`\\textcolor{##0d923f}{#1}`),X(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),X(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),X(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),X(`\\goldD`,`\\textcolor{##e07d10}{#1}`),X(`\\goldE`,`\\textcolor{##a75a05}{#1}`),X(`\\redA`,`\\textcolor{##fca9a9}{#1}`),X(`\\redB`,`\\textcolor{##ff8482}{#1}`),X(`\\redC`,`\\textcolor{##f9685d}{#1}`),X(`\\redD`,`\\textcolor{##e84d39}{#1}`),X(`\\redE`,`\\textcolor{##bc2612}{#1}`),X(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),X(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),X(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),X(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),X(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),X(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),X(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),X(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),X(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),X(`\\purpleE`,`\\textcolor{##543b78}{#1}`),X(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),X(`\\mintB`,`\\textcolor{##edf2df}{#1}`),X(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),X(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),X(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),X(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),X(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),X(`\\grayE`,`\\textcolor{##babec2}{#1}`),X(`\\grayF`,`\\textcolor{##888d93}{#1}`),X(`\\grayG`,`\\textcolor{##626569}{#1}`),X(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),X(`\\grayI`,`\\textcolor{##21242c}{#1}`),X(`\\kaBlue`,`\\textcolor{##314453}{#1}`),X(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var xu={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Su=class{constructor(e,t,n){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=t,this.expansionCount=0,this.feed(e),this.macros=new fu(pu,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new du(e,this.settings)}switchMode(e){this.mode=e}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(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else ({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new fl(`EOF`,n.loc)),this.pushTokens(r),new fl(``,dl.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new N(`Extra }`,i)}else if(i.text===`EOF`)throw new N(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n)if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new N(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new N(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new N(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new N(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new N(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new N(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new fl(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new du(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||nu.hasOwnProperty(e)||Xa.math.hasOwnProperty(e)||Xa.text.hasOwnProperty(e)||xu.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?nu.hasOwnProperty(e)&&!nu[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Cu=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,wu=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`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Tu={"́":{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`}},Eu={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},Du=class e{constructor(e,t){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 Su(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new N(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new fl(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&nu[i.text]&&nu[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new N(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}else return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new N(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new N(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new N(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new N(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new N(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(wu[i.text]){var s=Cu.test(i.text),c=[];for(c.push(new fl(wu[i.text])),this.consume();;){var l=this.fetch().text;if(!wu[l]||Cu.test(l)!==s)break;c.unshift(new fl(wu[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n||r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=nu[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new N(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new N(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new N(`Can't use function '`+r+`' in math mode`,n);var{args:a,optArgs:o}=this.parseArguments(r,i);return this.callFunction(r,a,o,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=nu[e];if(o&&o.handler)return o.handler(a,t,n);throw new N(`No function handler for `+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var r=[],i=[],a=0;a<n;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;(`primitive`in t&&t.primitive&&o==null||t.type===`sqrt`&&a===1&&i[0]==null)&&(o=`primitive`);var c=this.parseGroupOfType(`argument to '`+e+`'`,o,s);if(s)i.push(c);else if(c!=null)r.push(c);else throw new N(`Null argument, please report this as a bug`)}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(`raw`,n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new N(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new N(`Expected group as `+e,this.fetch());return a;case`original`:case null:case void 0:return this.parseArgumentGroup(n);default:throw new N(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(n==null)return null;for(var r=``,i;(i=this.fetch()).text!==`EOF`;)r+=i.text,this.consume();return this.consume(),n.text=r,n}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new N(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(`color`,e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new N(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(`size`,e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new N(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!wa(i))throw new N(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(`url`,e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:dl.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!xu.hasOwnProperty(r)){if(this.settings.throwOnError)throw new N(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(!(!a||a.type!==`textord`)){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:dl.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:dl.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:dl.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new N(`\\verb assertion failed --
|
|
257
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}Eu.hasOwnProperty(t[0])&&!Xa[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Accented Unicode text character "`+t[0]+`" used in math mode`,e),t=Eu[t[0]]+t.slice(1));var i=lu.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(Xa[this.mode][t]){this.settings.strict&&this.mode===`math`&&yo.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=Xa[this.mode][t].group,s=dl.range(e);a=rc(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(oa(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:dl.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!Tu[l])throw new N(`Unknown accent ' `+l+`'`,e);var u=Tu[l][this.mode]||Tu[l].text;if(!u)throw new N(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:dl.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};Du.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var Ou=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new Du(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new N(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new fl(`\\df@tag`)])}]}return r},ku=function(e,t,n){t.textContent=``;var r=Nu(e,n).toNode();t.appendChild(r)};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.`),ku=function(){throw new N(`KaTeX doesn't work in quirks mode.`)});var Au=function(e,t){return Nu(e,t).toMarkup()},ju=function(e,t){return Ou(e,new Bi(t))},Mu=function(e,t,n){if(n.throwOnError||!(e instanceof N))throw e;var r=K([`katex-error`],[new Ia(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},Nu=function(e,t){var n=new Bi(t);try{return qs(Ou(e,n),e,n)}catch(t){return Mu(t,e,n)}},Pu={version:`0.16.47`,render:ku,renderToString:Au,ParseError:N,SETTINGS_SCHEMA:Ii,__parse:ju,__renderToDomTree:Nu,__renderToHTMLTree:function(e,t){var n=new Bi(t);try{return Js(Ou(e,n),e,n)}catch(t){return Mu(t,e,n)}},__setFontMetrics:Ka,__defineSymbol:I,__defineFunction:q,__defineMacro:X,__domTree:{Span:Ma,Anchor:Na,SymbolNode:Ia,SvgNode:La,PathNode:Ra,LineNode:za}},Fu=`math_block`,Iu=5,Lu=1200,Ru=e=>(0,u.renderToStaticMarkup)((0,l.createElement)(e,{size:14,strokeWidth:2,"aria-hidden":`true`})),zu=Ru(De),Bu=Ru(xe),Vu=e=>typeof e==`function`?e():null,Hu=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,Uu=class{syncEditableState(){this.dom.dataset.editable=Hu(this.view)?`true`:`false`}constructor(e,t,n,r){this.pointerStartX=null,this.pointerStartY=null,this.hasDragged=!1,this.isDeletingByBackspace=!1,this.copyFeedbackTimer=null,this.handleClick=()=>{if(this.hasDragged){this.hasDragged=!1;return}this.enterEditMode()},this.handlePointerDown=e=>{this.pointerStartX=e.clientX,this.pointerStartY=e.clientY,this.hasDragged=!1},this.handlePointerMove=e=>{if(this.pointerStartX===null||this.pointerStartY===null)return;let t=Math.abs(e.clientX-this.pointerStartX),n=Math.abs(e.clientY-this.pointerStartY);(t>=Iu||n>=Iu)&&(this.hasDragged=!0)},this.handlePointerUp=()=>{this.pointerStartX=null,this.pointerStartY=null},this.handleCopyClick=e=>{if(e.preventDefault(),e.stopPropagation(),!Hu(this.view))return;let t=typeof this.node.attrs.value==`string`?this.node.attrs.value:``;(typeof navigator<`u`&&navigator.clipboard?.writeText?navigator.clipboard.writeText(t):Promise.resolve()).then(()=>{this.copyButton.innerHTML=Bu,this.copyButton.dataset.copied=`true`,this.copyFeedbackTimer!==null&&clearTimeout(this.copyFeedbackTimer),this.copyFeedbackTimer=setTimeout(()=>{this.copyButton.innerHTML=zu,delete this.copyButton.dataset.copied,this.copyFeedbackTimer=null},Lu)}).catch(()=>{})},this.handleDeleteClick=e=>{e.preventDefault(),e.stopPropagation(),Hu(this.view)&&this.deleteCurrentMathBlock()},this.handleInput=()=>{let e=this.sourceTextarea.value,t=Vu(this.getPos);if(t===null)return;this.renderMath(e);let n=this.view.state.tr.setNodeMarkup(t,void 0,{...this.node.attrs,value:e});n.docChanged&&this.view.dispatch(n)},this.handleKeyDown=e=>{let t=this.sourceTextarea.selectionStart,n=this.sourceTextarea.selectionEnd;if(e.key===`Backspace`){if(!(t===0&&n===0)||Vu(this.getPos)===null)return;e.preventDefault(),this.deleteCurrentMathBlock();return}if(e.key!==`ArrowUp`&&e.key!==`ArrowDown`||t!==n)return;let r=this.sourceTextarea.value,i=r.slice(0,t),a=r.slice(n),o=!i.includes(`
|
|
382
258
|
`),s=!a.includes(`
|
|
383
|
-
`);if(!(e.key===`ArrowUp`&&o||e.key===`ArrowDown`&&s))return;let c=ah(this.getPos);if(c===null)return;e.preventDefault();let l=e.key===`ArrowUp`?c:Math.min(c+this.node.nodeSize,this.view.state.doc.content.size),u=e.key===`ArrowUp`?-1:1,d=this.view.state.tr.setSelection(this.createBoundarySelection(l,u)).scrollIntoView();this.view.dispatch(d),this.view.focus()},this.handleBlur=()=>{this.isDeletingByBackspace||this.exitEditMode()},this.node=e,this.view=t,this.getPos=n,this.messages=r,this.dom=document.createElement(`div`),this.dom.dataset.type=$m,this.dom.className=`zt-md-math-block`,this.sourceContainer=document.createElement(`div`),this.sourceContainer.className=`zt-md-math-block-source`,this.sourceContainer.hidden=!0,this.sourceTextarea=document.createElement(`textarea`),this.sourceTextarea.className=`zt-md-math-block-textarea`,this.sourceTextarea.setAttribute(`aria-label`,this.messages.mathBlockSourceAriaLabel),this.sourceTextarea.spellcheck=!1,this.previewContainer=document.createElement(`div`),this.previewContainer.className=`zt-md-math-block-preview`,this.actionsContainer=document.createElement(`div`),this.actionsContainer.className=`zt-md-math-block-actions`,this.copyButton=document.createElement(`button`),this.copyButton.type=`button`,this.copyButton.className=`zt-md-math-block-action-button`,this.copyButton.setAttribute(`aria-label`,this.messages.mathBlockCopyAriaLabel),this.copyButton.innerHTML=rh,this.deleteButton=document.createElement(`button`),this.deleteButton.type=`button`,this.deleteButton.className=`zt-md-math-block-action-button zt-md-math-block-action-button-danger`,this.deleteButton.setAttribute(`aria-label`,this.messages.mathBlockDeleteAriaLabel),this.deleteButton.innerHTML=nh(it),this.errorContainer=document.createElement(`div`),this.errorContainer.className=`zt-md-math-block-error`,this.errorContainer.hidden=!0,this.actionsContainer.append(this.copyButton,this.deleteButton),this.sourceContainer.appendChild(this.sourceTextarea),this.previewContainer.appendChild(this.errorContainer),this.dom.append(this.actionsContainer,this.sourceContainer,this.previewContainer),this.syncFromNode(e),this.dom.addEventListener(`click`,this.handleClick),this.dom.addEventListener(`pointerdown`,this.handlePointerDown),this.dom.addEventListener(`pointermove`,this.handlePointerMove),this.dom.addEventListener(`pointerup`,this.handlePointerUp),this.dom.addEventListener(`pointercancel`,this.handlePointerUp),this.copyButton.addEventListener(`click`,this.handleCopyClick),this.deleteButton.addEventListener(`click`,this.handleDeleteClick),this.sourceTextarea.addEventListener(`input`,this.handleInput),this.sourceTextarea.addEventListener(`keydown`,this.handleKeyDown),this.sourceTextarea.addEventListener(`blur`,this.handleBlur)}deleteCurrentMathBlock(){let e=ah(this.getPos);if(e===null)return;this.isDeletingByBackspace=!0;let n=this.view.state.tr.delete(e,e+this.node.nodeSize),r=Math.min(e,n.doc.content.size);n.setSelection(t.c.near(n.doc.resolve(r),-1)).scrollIntoView(),this.view.dispatch(n),requestAnimationFrame(()=>{this.view.focus(),this.isDeletingByBackspace=!1})}createBoundarySelection(e,n){let r=this.view.state.doc.resolve(e);return O.valid(r)?new O(r):t.c.near(r,n)}syncFromNode(e){let t=typeof e.attrs.value==`string`?e.attrs.value:``;this.dom.dataset.value=t,this.sourceTextarea.value=t,this.renderMath(t)}renderMath(e){this.errorContainer.hidden=!0,this.errorContainer.textContent=``;try{Qm.render(e,this.previewContainer,{displayMode:!0,throwOnError:!0}),this.previewContainer.appendChild(this.errorContainer)}catch{this.previewContainer.textContent=e,this.errorContainer.hidden=!1,this.errorContainer.textContent=this.messages.mathRenderError,this.previewContainer.appendChild(this.errorContainer)}}enterEditMode(){oh(this.view)&&(this.sourceContainer.hidden=!1,this.dom.classList.add(`zt-md-math-block-editing`),this.sourceTextarea.focus())}exitEditMode(){this.sourceContainer.hidden=!0,this.dom.classList.remove(`zt-md-math-block-editing`)}update(e){return e.type.name===$m?(this.node=e,this.syncFromNode(e),!0):!1}selectNode(){this.enterEditMode()}deselectNode(){this.exitEditMode()}stopEvent(e){let t=e.target;return t instanceof Node?this.sourceContainer.contains(t)||this.actionsContainer.contains(t):!1}ignoreMutation(){return!0}destroy(){this.dom.removeEventListener(`click`,this.handleClick),this.dom.removeEventListener(`pointerdown`,this.handlePointerDown),this.dom.removeEventListener(`pointermove`,this.handlePointerMove),this.dom.removeEventListener(`pointerup`,this.handlePointerUp),this.dom.removeEventListener(`pointercancel`,this.handlePointerUp),this.copyButton.removeEventListener(`click`,this.handleCopyClick),this.deleteButton.removeEventListener(`click`,this.handleDeleteClick),this.sourceTextarea.removeEventListener(`input`,this.handleInput),this.sourceTextarea.removeEventListener(`keydown`,this.handleKeyDown),this.sourceTextarea.removeEventListener(`blur`,this.handleBlur),this.copyFeedbackTimer!==null&&(clearTimeout(this.copyFeedbackTimer),this.copyFeedbackTimer=null),this.copyButton.innerHTML=rh,delete this.copyButton.dataset.copied}},ch=(e=un())=>(t,n,r)=>new sh(t,n,typeof r==`function`?()=>{let e=r();return typeof e==`number`?e:0}:!1,e);function lh(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(e){this.enter({type:`math`,meta:null,value:``,data:{hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[]}]}},e)}function t(){this.buffer()}function n(){let e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:`text`,value:t}),this.data.mathFlowInside=void 0}function a(e){this.enter({type:`inlineMath`,value:``,data:{hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[]}},e),this.buffer()}function o(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t,n.data.hChildren.push({type:`text`,value:t})}function s(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}function uh(e){let t=(e||{}).singleDollarTextMath;return t??=!0,i.peek=a,{unsafe:[{character:`\r`,inConstruct:`mathFlowMeta`},{character:`
|
|
384
|
-
`,inConstruct:`mathFlowMeta`},{character:`$`,after:
|
|
385
|
-
`,before:l,encode:[`$`],...o.current()})),
|
|
259
|
+
`);if(!(e.key===`ArrowUp`&&o||e.key===`ArrowDown`&&s))return;let c=Vu(this.getPos);if(c===null)return;e.preventDefault();let l=e.key===`ArrowUp`?c:Math.min(c+this.node.nodeSize,this.view.state.doc.content.size),u=e.key===`ArrowUp`?-1:1,d=this.view.state.tr.setSelection(this.createBoundarySelection(l,u)).scrollIntoView();this.view.dispatch(d),this.view.focus()},this.handleBlur=()=>{this.isDeletingByBackspace||this.exitEditMode()},this.node=e,this.view=t,this.getPos=n,this.messages=r,this.dom=document.createElement(`div`),this.dom.dataset.type=Fu,this.dom.className=`zt-md-math-block`,this.syncEditableState(),this.sourceContainer=document.createElement(`div`),this.sourceContainer.className=`zt-md-math-block-source`,this.sourceContainer.hidden=!0,this.sourceTextarea=document.createElement(`textarea`),this.sourceTextarea.className=`zt-md-math-block-textarea`,this.sourceTextarea.setAttribute(`aria-label`,this.messages.mathBlockSourceAriaLabel),this.sourceTextarea.spellcheck=!1,this.previewContainer=document.createElement(`div`),this.previewContainer.className=`zt-md-math-block-preview`,this.actionsContainer=document.createElement(`div`),this.actionsContainer.className=`zt-md-math-block-actions`,this.copyButton=document.createElement(`button`),this.copyButton.type=`button`,this.copyButton.className=`zt-md-math-block-action-button`,this.copyButton.setAttribute(`aria-label`,this.messages.mathBlockCopyAriaLabel),this.copyButton.innerHTML=zu,this.deleteButton=document.createElement(`button`),this.deleteButton.type=`button`,this.deleteButton.className=`zt-md-math-block-action-button zt-md-math-block-action-button-danger`,this.deleteButton.setAttribute(`aria-label`,this.messages.mathBlockDeleteAriaLabel),this.deleteButton.innerHTML=Ru(tt),this.errorContainer=document.createElement(`div`),this.errorContainer.className=`zt-md-math-block-error`,this.errorContainer.hidden=!0,this.actionsContainer.append(this.copyButton,this.deleteButton),this.sourceContainer.appendChild(this.sourceTextarea),this.previewContainer.appendChild(this.errorContainer),this.dom.append(this.actionsContainer,this.sourceContainer,this.previewContainer),this.syncFromNode(e),this.dom.addEventListener(`click`,this.handleClick),this.dom.addEventListener(`pointerdown`,this.handlePointerDown),this.dom.addEventListener(`pointermove`,this.handlePointerMove),this.dom.addEventListener(`pointerup`,this.handlePointerUp),this.dom.addEventListener(`pointercancel`,this.handlePointerUp),this.copyButton.addEventListener(`click`,this.handleCopyClick),this.deleteButton.addEventListener(`click`,this.handleDeleteClick),this.sourceTextarea.addEventListener(`input`,this.handleInput),this.sourceTextarea.addEventListener(`keydown`,this.handleKeyDown),this.sourceTextarea.addEventListener(`blur`,this.handleBlur)}deleteCurrentMathBlock(){let e=Vu(this.getPos);if(e===null)return;this.isDeletingByBackspace=!0;let n=this.view.state.tr.delete(e,e+this.node.nodeSize),r=Math.min(e,n.doc.content.size);n.setSelection(t.c.near(n.doc.resolve(r),-1)).scrollIntoView(),this.view.dispatch(n),requestAnimationFrame(()=>{this.view.focus(),this.isDeletingByBackspace=!1})}createBoundarySelection(e,n){let r=this.view.state.doc.resolve(e);return E.valid(r)?new E(r):t.c.near(r,n)}syncFromNode(e){let t=typeof e.attrs.value==`string`?e.attrs.value:``;this.dom.dataset.value=t,this.sourceTextarea.value=t,this.renderMath(t)}renderMath(e){this.errorContainer.hidden=!0,this.errorContainer.textContent=``;try{Pu.render(e,this.previewContainer,{displayMode:!0,throwOnError:!0}),this.previewContainer.appendChild(this.errorContainer)}catch{this.previewContainer.textContent=e,this.errorContainer.hidden=!1,this.errorContainer.textContent=this.messages.mathRenderError,this.previewContainer.appendChild(this.errorContainer)}}enterEditMode(){Hu(this.view)&&(this.sourceContainer.hidden=!1,this.dom.classList.add(`zt-md-math-block-editing`),this.sourceTextarea.focus())}exitEditMode(){this.sourceContainer.hidden=!0,this.dom.classList.remove(`zt-md-math-block-editing`)}update(e){return e.type.name===Fu?(this.node=e,this.syncEditableState(),this.syncFromNode(e),!0):!1}selectNode(){this.enterEditMode()}deselectNode(){this.exitEditMode()}stopEvent(e){let t=e.target;return t instanceof Node?this.sourceContainer.contains(t)||this.actionsContainer.contains(t):!1}ignoreMutation(){return!0}destroy(){this.dom.removeEventListener(`click`,this.handleClick),this.dom.removeEventListener(`pointerdown`,this.handlePointerDown),this.dom.removeEventListener(`pointermove`,this.handlePointerMove),this.dom.removeEventListener(`pointerup`,this.handlePointerUp),this.dom.removeEventListener(`pointercancel`,this.handlePointerUp),this.copyButton.removeEventListener(`click`,this.handleCopyClick),this.deleteButton.removeEventListener(`click`,this.handleDeleteClick),this.sourceTextarea.removeEventListener(`input`,this.handleInput),this.sourceTextarea.removeEventListener(`keydown`,this.handleKeyDown),this.sourceTextarea.removeEventListener(`blur`,this.handleBlur),this.copyFeedbackTimer!==null&&(clearTimeout(this.copyFeedbackTimer),this.copyFeedbackTimer=null),this.copyButton.innerHTML=zu,delete this.copyButton.dataset.copied}},Wu=(e=sn())=>(t,n,r)=>new Uu(t,n,typeof r==`function`?()=>{let e=r();return typeof e==`number`?e:0}:!1,e),Gu=`math_inline`,Ku=new t.a(`zt-md-math-inline-edit`),qu=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,Ju=e=>e?.type.name===Gu,Yu=e=>String(e.attrs.value??e.textContent??``),Xu=(e,t,n)=>{qu(e)&&e.dispatch(e.state.tr.setMeta(Ku,{type:`open`,position:t,caret:n?.caret===`start`?`start`:`end`}))},Zu=class{createSafeTextSelection(e,n){try{return t.c.create(e,n)}catch{return t.c.near(e.resolve(n),-1)}}resolveArrowExitTarget(e){if(this.currentPosition===null)return null;let t=this.resolveCurrentNode();if(!t)return null;let n=this.sourceInput.selectionStart,r=this.sourceInput.selectionEnd;if(n===null||r===null||n!==r)return null;if(e.key===`ArrowLeft`&&n===0)return this.currentPosition;let i=this.sourceInput.value.length;return e.key===`ArrowRight`&&n===i?this.currentPosition+t.nodeSize:null}shouldDeleteMathInlineOnBackspace(e){if(e.key!==`Backspace`||this.currentPosition===null)return!1;let t=this.sourceInput.selectionStart,n=this.sourceInput.selectionEnd;return t===null||n===null||t!==0||n!==0?!1:!!this.resolveCurrentNode()}deleteCurrentMathInlineAndFocusEditor(){if(this.currentPosition===null)return;let e=this.resolveCurrentNode();if(!e){this.closeEditor(!1);return}let t=this.currentPosition,n=this.currentPosition+e.nodeSize,r=this.view.state.tr.delete(t,n);r.setSelection(this.createSafeTextSelection(r.doc,t)).setMeta(Ku,{type:`close`}).scrollIntoView(),this.view.dispatch(r),this.view.focus()}constructor(e,t){this.currentPosition=null,this.currentMathInlineElement=null,this.isCommitting=!1,this.currentCaret=`end`,this.handleMouseDown=e=>{e.stopPropagation()},this.handleBeforeInput=e=>{e.stopPropagation()},this.handleInput=e=>{e.stopPropagation(),this.renderMath(this.sourceInput.value)},this.handleKeyDown=e=>{if(e.stopPropagation(),this.shouldDeleteMathInlineOnBackspace(e)){e.preventDefault(),this.deleteCurrentMathInlineAndFocusEditor();return}let t=this.resolveArrowExitTarget(e);if(t!==null){e.preventDefault(),this.commitCurrentValue(t);return}if(e.key===`Enter`){e.preventDefault(),this.commitCurrentValue();return}e.key===`Escape`&&(e.preventDefault(),this.closeEditor(!0))},this.handleBlur=()=>{this.isCommitting||this.currentPosition===null||this.commitCurrentValue()},this.view=e,this.messages=t,this.host=document.createElement(`span`),this.host.className=`zt-md-math-inline-editor`,this.host.style.display=`none`,this.sourceInput=document.createElement(`input`),this.sourceInput.type=`text`,this.sourceInput.className=`zt-md-math-inline-editor-input`,this.sourceInput.setAttribute(`aria-label`,this.messages.mathBlockSourceAriaLabel),this.sourceInput.spellcheck=!1,this.previewContainer=document.createElement(`span`),this.previewContainer.className=`zt-md-math-inline-editor-preview`,this.errorContainer=document.createElement(`span`),this.errorContainer.className=`zt-md-math-inline-editor-error`,this.errorContainer.hidden=!0,this.host.append(this.sourceInput,this.previewContainer,this.errorContainer),this.sourceInput.addEventListener(`input`,this.handleInput),this.sourceInput.addEventListener(`beforeinput`,this.handleBeforeInput),this.sourceInput.addEventListener(`keydown`,this.handleKeyDown),this.sourceInput.addEventListener(`blur`,this.handleBlur),this.host.addEventListener(`mousedown`,this.handleMouseDown),this.update(e)}renderMath(e){this.errorContainer.hidden=!0,this.errorContainer.textContent=``,this.previewContainer.textContent=``;try{Pu.render(e,this.previewContainer,{displayMode:!1,throwOnError:!0})}catch{this.previewContainer.textContent=e,this.errorContainer.hidden=!1,this.errorContainer.textContent=this.messages.mathRenderError}}resolveCurrentNode(){if(this.currentPosition===null)return null;let e=this.view.state.doc.nodeAt(this.currentPosition);return Ju(e)?e:null}openEditor(e){if(!qu(this.view)){this.closeEditor(!1);return}let t=this.view.state.doc.nodeAt(e);if(!Ju(t)){this.closeEditor(!1);return}this.currentPosition=e,this.sourceInput.value=Yu(t),this.renderMath(this.sourceInput.value);let n=this.resolveMathInlineElement(e);if(!n){this.closeEditor(!1);return}this.currentMathInlineElement=n,n.dataset.editing=`true`,n.append(this.host),this.host.style.display=`inline-flex`,requestAnimationFrame(()=>{if(this.currentPosition!==e)return;this.sourceInput.focus();let t=this.sourceInput.value.length;if(this.currentCaret===`start`){this.sourceInput.setSelectionRange(0,0);return}this.sourceInput.setSelectionRange(t,t)})}commitCurrentValue(e){if(this.currentPosition===null)return;let t=this.resolveCurrentNode();if(!t){this.closeEditor(!1);return}let n=this.sourceInput.value,r=typeof e==`number`?e:this.currentPosition+t.nodeSize,i=this.view.state.tr.setNodeMarkup(this.currentPosition,void 0,{...t.attrs,value:n});i.setSelection(this.createSafeTextSelection(i.doc,r)).setMeta(Ku,{type:`close`}).scrollIntoView(),this.isCommitting=!0,this.view.dispatch(i),this.isCommitting=!1,this.view.focus()}closeEditor(e){this.currentMathInlineElement&&(this.currentMathInlineElement.dataset.editing=`false`),this.currentPosition=null,this.currentMathInlineElement=null,this.host.style.display=`none`,this.host.remove(),e&&this.view.dispatch(this.view.state.tr.setMeta(Ku,{type:`close`}))}resolveMathInlineElement(e){let t=this.view.nodeDOM(e);return t instanceof HTMLElement?t:null}update(e){if(this.view=e,!qu(e)){this.closeEditor(!1);return}let t=Ku.getState(e.state);if(!t||t.position===null){this.currentPosition!==null&&this.closeEditor(!1);return}if(this.currentPosition!==t.position){this.currentCaret=t.caret,this.openEditor(t.position);return}if(!this.resolveCurrentNode()){this.closeEditor(!0);return}}destroy(){this.sourceInput.removeEventListener(`input`,this.handleInput),this.sourceInput.removeEventListener(`beforeinput`,this.handleBeforeInput),this.sourceInput.removeEventListener(`keydown`,this.handleKeyDown),this.sourceInput.removeEventListener(`blur`,this.handleBlur),this.host.removeEventListener(`mousedown`,this.handleMouseDown),this.currentMathInlineElement&&(this.currentMathInlineElement.dataset.editing=`false`),this.host.remove()}},Qu=(e,n)=>r.u(()=>new t.i({key:Ku,state:{init:()=>({position:null,caret:`end`}),apply:(e,t)=>{let n=e.getMeta(Ku);if(n?.type===`open`&&typeof n.position==`number`)return{position:n.position,caret:n.caret===`start`?`start`:`end`};if(n?.type===`close`)return{position:null,caret:`end`};if(t.position===null||!e.docChanged)return t;let r=e.mapping.map(t.position,-1);return Ju(e.doc.nodeAt(r))?{position:r,caret:t.caret}:{position:null,caret:`end`}}},view:t=>new Zu(t,e)})),$u=`math_inline`,ed=e=>typeof e==`function`?e():null,td=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,nd=e=>String(e.attrs.value??e.textContent??``),rd=class{syncEditableState(){this.dom.dataset.editable=td(this.view)?`true`:`false`}constructor(e,t,n,r){this.handleMouseDown=e=>{td(this.view)||(e.preventDefault(),e.stopPropagation())},this.handleClick=e=>{if(e.preventDefault(),e.stopPropagation(),!td(this.view))return;let t=ed(this.getPos);t!==null&&Xu(this.view,t)},this.node=e,this.view=t,this.getPos=n,this.messages=r,this.dom=document.createElement(`span`),this.dom.dataset.type=$u,this.dom.className=`zt-md-math-inline`,this.dom.dataset.editing=`false`,this.syncEditableState(),this.previewContainer=document.createElement(`span`),this.previewContainer.className=`zt-md-math-inline-preview`,this.errorContainer=document.createElement(`span`),this.errorContainer.className=`zt-md-math-inline-error`,this.errorContainer.hidden=!0,this.dom.append(this.previewContainer,this.errorContainer),this.syncFromNode(e),this.dom.addEventListener(`mousedown`,this.handleMouseDown),this.dom.addEventListener(`click`,this.handleClick)}syncFromNode(e){let t=nd(e);this.dom.dataset.value=t,this.renderMath(t)}renderMath(e){this.errorContainer.hidden=!0,this.errorContainer.textContent=``,this.previewContainer.textContent=``;try{Pu.render(e,this.previewContainer,{displayMode:!1,throwOnError:!0})}catch{this.previewContainer.textContent=e,this.errorContainer.hidden=!1,this.errorContainer.textContent=this.messages.mathRenderError}}update(e){return e.type.name===$u?(this.node=e,this.syncEditableState(),this.syncFromNode(e),!0):!1}stopEvent(e){let t=e.target;return t instanceof Element?e.type===`click`||!!t.closest(`.zt-md-math-inline-editor`):e.type===`click`}ignoreMutation(){return!0}destroy(){this.dom.removeEventListener(`mousedown`,this.handleMouseDown),this.dom.removeEventListener(`click`,this.handleClick)}},id=(e=sn())=>(t,n,r)=>new rd(t,n,typeof r==`function`?()=>{let e=r();return typeof e==`number`?e:0}:!1,e),ad=`math_inline`,od=`zt-md-math-inline-arrow-navigation`,sd={ArrowLeft:{positionKey:`from`},ArrowRight:{positionKey:`to`}},cd={ArrowLeft:`end`,ArrowRight:`start`},ld={Backspace:`before`,Delete:`after`},ud=e=>e instanceof Element?!!e.closest(`.zt-md-math-inline-editor`):!1,dd=e=>e?.type.name===ad,fd=e=>!ld[e.key]||e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||ud(e.target)||ud(document.activeElement),pd=(e,n)=>{if(!sd[n.key]||ud(n.target))return!1;let{selection:r}=e.state;return!(r instanceof t.r)||r.node.type.name!==ad?!1:(n.preventDefault(),Xu(e,r.from,{caret:cd[n.key]??`end`}),!0)},md=(e,t)=>{let n=sd[t.key];if(!n||ud(t.target))return!1;let{selection:r}=e.state;if(!r.empty)return!1;let i=r.$from,a=n.positionKey===`from`?i.nodeBefore:i.nodeAfter;return dd(a)?(t.preventDefault(),Xu(e,n.positionKey===`from`?r.from-a.nodeSize:r.from,{caret:cd[t.key]??`end`}),!0):!1},hd=(e,n)=>{try{return t.c.create(e,n)}catch{return t.c.near(e.resolve(n),-1)}},gd=(e,t,n)=>{n.preventDefault();let r=t.from,i=e.state.tr.delete(t.from,t.to),a=i.doc.content.size,o=Math.min(r,a);return i.setSelection(hd(i.doc,o)).scrollIntoView(),e.dispatch(i),e.focus(),!0},_d=(e,n)=>{let r=ld[n.key];if(!r)return!1;let{selection:i}=e.state;if(!i.empty)return!1;let a=i.$from,o=r===`before`?a.nodeBefore:a.nodeAfter;if(!dd(o))return!1;n.preventDefault();let s=r===`before`?i.from-o.nodeSize:i.from;return e.dispatch(e.state.tr.setSelection(t.r.create(e.state.doc,s)).scrollIntoView()),e.focus(),!0},vd=(e,n)=>{if(fd(n))return!1;let{selection:r}=e.state;return r instanceof t.r&&dd(r.node)?gd(e,r,n):_d(e,n)},yd=(e,n)=>{if(ud(document.activeElement))return!1;let{selection:r}=e.state;if(!(r instanceof t.r)||r.node.type.name!==ad)return!1;let i=r.to,a=i+n.length,o=e.state.tr.insertText(n,i,i);return o.setSelection(t.c.create(o.doc,a)).scrollIntoView(),e.dispatch(o),e.focus(),!0},bd=r.u(()=>new t.i({key:new t.a(od),props:{handleKeyDown:(e,t)=>md(e,t)||vd(e,t)?!0:pd(e,t),handleTextInput:(e,t,n,r)=>yd(e,r)}}));function xd(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(e){this.enter({type:`math`,meta:null,value:``,data:{hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[]}]}},e)}function t(){this.buffer()}function n(){let e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:`text`,value:t}),this.data.mathFlowInside=void 0}function a(e){this.enter({type:`inlineMath`,value:``,data:{hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[]}},e),this.buffer()}function o(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t,n.data.hChildren.push({type:`text`,value:t})}function s(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}function Sd(t){let n=(t||{}).singleDollarTextMath;return n??=!0,i.peek=a,{unsafe:[{character:`\r`,inConstruct:`mathFlowMeta`},{character:`
|
|
260
|
+
`,inConstruct:`mathFlowMeta`},{character:`$`,after:n?void 0:`\\$`,inConstruct:`phrasing`},{character:`$`,inConstruct:`mathFlowMeta`},{atBreak:!0,character:`$`,after:`\\$`}],handlers:{math:r,inlineMath:i}};function r(t,n,r,i){let a=t.value||``,o=r.createTracker(i),s=`$`.repeat(Math.max(e.$(a,`$`)+1,2)),c=r.enter(`mathFlow`),l=o.move(s);if(t.meta){let e=r.enter(`mathFlowMeta`);l+=o.move(r.safe(t.meta,{after:`
|
|
261
|
+
`,before:l,encode:[`$`],...o.current()})),e()}return l+=o.move(`
|
|
386
262
|
`),a&&(l+=o.move(a+`
|
|
387
|
-
`)),l+=o.move(s),c(),l}function i(e,n,r){let i=e.value||``,a=1;for(t||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s<r.unsafe.length;){let e=r.unsafe[s];if(!e.atBreak)continue;let t=r.compilePattern(e),n;for(;n=t.exec(i);){let e=n.index;i.codePointAt(e)===10&&i.codePointAt(e-1)===13&&e--,i=i.slice(0,e)+` `+i.slice(n.index+1)}}return o+i+o}function a(){return`$`}}var dh={tokenize:ph,concrete:!0,name:`mathFlow`},fh={tokenize:mh,partial:!0};function ph(e,t,n){let i=this,a=i.events[i.events.length-1],o=a&&a[1].type===`linePrefix`?a[2].sliceSerialize(a[1],!0).length:0,s=0;return c;function c(t){return e.enter(`mathFlow`),e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),l(t)}function l(t){return t===36?(e.consume(t),s++,l):s<2?n(t):(e.exit(`mathFlowFenceSequence`),r.C(e,u,`whitespace`)(t))}function u(t){return t===null||r.D(t)?f(t):(e.enter(`mathFlowFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),d(t))}function d(t){return t===null||r.D(t)?(e.exit(`chunkString`),e.exit(`mathFlowFenceMeta`),f(t)):t===36?n(t):(e.consume(t),d)}function f(n){return e.exit(`mathFlowFence`),i.interrupt?t(n):e.attempt(fh,p,_)(n)}function p(t){return e.attempt({tokenize:v,partial:!0},_,m)(t)}function m(t){return(o?r.C(e,h,`linePrefix`,o+1):h)(t)}function h(t){return t===null?_(t):r.D(t)?e.attempt(fh,p,_)(t):(e.enter(`mathFlowValue`),g(t))}function g(t){return t===null||r.D(t)?(e.exit(`mathFlowValue`),h(t)):(e.consume(t),g)}function _(n){return e.exit(`mathFlow`),t(n)}function v(e,t,n){let a=0;return r.C(e,o,`linePrefix`,i.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function o(t){return e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),c(t)}function c(t){return t===36?(a++,e.consume(t),c):a<s?n(t):(e.exit(`mathFlowFenceSequence`),r.C(e,l,`whitespace`)(t))}function l(i){return i===null||r.D(i)?(e.exit(`mathFlowFence`),t(i)):n(i)}}}function mh(e,t,n){let r=this;return i;function i(n){return n===null?t(n):(e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function hh(e){let t=(e||{}).singleDollarTextMath;return t??=!0,{tokenize:n,resolve:gh,previous:_h,name:`mathText`};function n(e,n,i){this;let a=0,o,s;return c;function c(t){return e.enter(`mathText`),e.enter(`mathTextSequence`),l(t)}function l(n){return n===36?(e.consume(n),a++,l):a<2&&!t?i(n):(e.exit(`mathTextSequence`),u(n))}function u(t){return t===null?i(t):t===36?(s=e.enter(`mathTextSequence`),o=0,f(t)):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),u):r.D(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),u):(e.enter(`mathTextData`),d(t))}function d(t){return t===null||t===32||t===36||r.D(t)?(e.exit(`mathTextData`),u(t)):(e.consume(t),d)}function f(t){return t===36?(e.consume(t),o++,f):o===a?(e.exit(`mathTextSequence`),e.exit(`mathText`),n(t)):(s.type=`mathTextData`,d(t))}}}function gh(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`mathTextData`){e[t][1].type=`mathTextPadding`,e[n][1].type=`mathTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`mathTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function _h(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function vh(e){return{flow:{36:dh},text:{36:hh(e)}}}var yh={};function bh(e){let t=this,n=e||yh,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(vh(n)),a.push(lh()),o.push(uh(n))}var xh=`math_inline`,Sh=`math_block`,Ch=/(?:\$)([^$]+)(?:\$)$/,wh=/^\$\$\s$/,Th=a.d(`remarkMath`,()=>bh),Eh=a.n({},`katexOptions`),Dh=a.c(xh,e=>({group:`inline`,content:`text*`,inline:!0,atom:!0,parseDOM:[{tag:`span[data-type="${xh}"]`,getContent:(e,n)=>{let r=e.dataset.value??``;return t.C.from(n.text(r))}}],toDOM:t=>{let n=t.textContent,r=document.createElement(`span`);return r.dataset.type=xh,r.dataset.value=n,Qm.render(n,r,e.get(Eh.key)),r},parseMarkdown:{match:e=>e.type===`inlineMath`,runner:(e,t,n)=>{let r=String(t.value??``);e.openNode(n).addText(r).closeNode()}},toMarkdown:{match:e=>e.type.name===xh,runner:(e,t)=>{e.addNode(`inlineMath`,void 0,t.textContent)}}})),Oh=a.c(Sh,e=>({content:`text*`,group:`block`,marks:``,defining:!0,atom:!0,isolating:!0,attrs:{value:{default:``}},parseDOM:[{tag:`div[data-type="${Sh}"]`,preserveWhitespace:`full`,getAttrs:e=>({value:e.dataset.value??``})}],toDOM:t=>{let n=String(t.attrs.value??``),r=document.createElement(`div`);return r.dataset.type=Sh,r.dataset.value=n,Qm.render(n,r,e.get(Eh.key)),r},parseMarkdown:{match:e=>e.type===`math`,runner:(e,t,n)=>{let r=String(t.value??``);e.addNode(n,{value:r})}},toMarkdown:{match:e=>e.type.name===Sh,runner:(e,t)=>{let n=String(t.attrs.value??``);e.addNode(`math`,void 0,n)}}})),kh=a.r(e=>n.R(Ch,Dh.type(e),{beforeDispatch:({tr:e,match:t,start:n})=>{let r=t[1]??``;e.insertText(r,n+1)}})),Ah=[Th,Eh,Dh,Oh,a.r(e=>new r.o(wh,(t,n,r,i)=>{let a=t.doc.resolve(r),o=Oh.type(e);return a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),o)?t.tr.delete(r,i).setBlockType(r,r,o):null})),kh].flat(),jh=`blockquote`,Mh=`paragraph`,Nh=`Backspace`,Ph=e=>e.key!==Nh||e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey,Fh=e=>{if(e.parent.type.name!==Mh||e.parentOffset!==0)return null;for(let t=e.depth;t>0;--t){let n=e.node(t);if(n.type.name!==jh)continue;let r=e.depth,i=e.index(t);return r<=t||i!==0?null:{paragraphDepth:r,blockquoteDepth:t,blockquoteType:n.type}}return null},Ih=(e,n)=>{let{selection:r}=e.state;if(!r.empty)return!1;let i=r.$from,a=Fh(i);if(!a)return!1;let o=i.blockRange(i,e=>e.type===a.blockquoteType);if(!o)return!1;let s=t.y(o);if(s===null)return!1;n.preventDefault();let c=e.state.tr.lift(o,s).scrollIntoView();return e.dispatch(c),!0},Lh=a.u(()=>new t.i({key:new t.a(`zt-md-blockquote-backspace-lift`),props:{handleKeyDown:(e,t)=>Ph(t)?!1:Ih(e,t)}})),Rh=`code_block`,zh=1200,Bh=e=>(0,Sn.renderToStaticMarkup)((0,p.createElement)(e,{size:14,strokeWidth:2,"aria-hidden":`true`})),Vh=Bh(Me),Hh=Bh(Ee),Uh=Bh(it),Wh=e=>typeof e==`function`?e():null,Gh=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,Kh=class{syncLanguageAttribute(e){let t=typeof e.attrs.language==`string`?e.attrs.language.trim():``;if(!t){this.contentDOM.removeAttribute(`data-language`);return}this.contentDOM.setAttribute(`data-language`,t)}constructor(e,t,n,r){this.copyFeedbackTimer=null,this.handleCopyClick=e=>{if(e.preventDefault(),e.stopPropagation(),!Gh(this.view))return;let t=this.node.textContent;(typeof navigator<`u`&&navigator.clipboard?.writeText?navigator.clipboard.writeText(t):Promise.resolve()).then(()=>{this.copyButton.innerHTML=Hh,this.copyButton.dataset.copied=`true`,this.copyFeedbackTimer!==null&&clearTimeout(this.copyFeedbackTimer),this.copyFeedbackTimer=setTimeout(()=>{this.copyButton.innerHTML=Vh,delete this.copyButton.dataset.copied,this.copyFeedbackTimer=null},zh)}).catch(()=>{})},this.handleDeleteClick=e=>{e.preventDefault(),e.stopPropagation(),Gh(this.view)&&this.deleteCurrentCodeBlock()},this.node=e,this.view=t,this.getPos=n,this.dom=document.createElement(`div`),this.dom.className=`zt-md-code-block`,this.dom.dataset.type=Rh,this.updateEditableState(),this.contentDOM=document.createElement(`pre`),this.actionsContainer=document.createElement(`span`),this.actionsContainer.className=`zt-md-code-block-actions`,this.copyButton=document.createElement(`button`),this.copyButton.type=`button`,this.copyButton.className=`zt-md-code-block-action-button`,this.copyButton.setAttribute(`aria-label`,r.codeBlockCopyAriaLabel),this.copyButton.innerHTML=Vh,this.deleteButton=document.createElement(`button`),this.deleteButton.type=`button`,this.deleteButton.className=`zt-md-code-block-action-button zt-md-code-block-action-button-danger`,this.deleteButton.setAttribute(`aria-label`,r.codeBlockDeleteAriaLabel),this.deleteButton.innerHTML=Uh,this.actionsContainer.append(this.copyButton,this.deleteButton),this.dom.append(this.contentDOM,this.actionsContainer),this.syncLanguageAttribute(e),this.copyButton.addEventListener(`click`,this.handleCopyClick),this.deleteButton.addEventListener(`click`,this.handleDeleteClick)}deleteCurrentCodeBlock(){let e=Wh(this.getPos);if(e===null)return;let n=this.view.state.tr.delete(e,e+this.node.nodeSize),r=Math.min(e,n.doc.content.size);n.setSelection(t.c.near(n.doc.resolve(r),-1)).scrollIntoView(),this.view.dispatch(n),requestAnimationFrame(()=>{this.view.focus()})}updateEditableState(){this.dom.dataset.editable=Gh(this.view)?`true`:`false`}update(e){return e.type.name===Rh?(this.node=e,this.updateEditableState(),this.syncLanguageAttribute(e),!0):!1}stopEvent(e){let t=e.target;return t instanceof Node?this.actionsContainer.contains(t):!1}ignoreMutation(e){return e.type===`selection`?!1:this.actionsContainer.contains(e.target)}destroy(){this.copyButton.removeEventListener(`click`,this.handleCopyClick),this.deleteButton.removeEventListener(`click`,this.handleDeleteClick),this.copyFeedbackTimer!==null&&(clearTimeout(this.copyFeedbackTimer),this.copyFeedbackTimer=null),this.copyButton.innerHTML=Vh,delete this.copyButton.dataset.copied}},qh=(e=un())=>(t,n,r)=>new Kh(t,n,typeof r==`function`?()=>{let e=r();return typeof e==`number`?e:0}:!1,e);Jh.displayName=`clike`,Jh.aliases=[];function Jh(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Yh.displayName=`c`,Yh.aliases=[];function Yh(e){e.register(Jh),e.languages.c=e.languages.extend(`clike`,{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore(`c`,`string`,{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore(`c`,`string`,{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:`property`,inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:`function`}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:`keyword`},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore(`c`,`function`,{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Xh.displayName=`cpp`,Xh.aliases=[];function Xh(e){e.register(Yh),(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:import|module)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.replace(/<mod-name>/g,function(){return n})+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])})(e)}Zh.displayName=`arduino`,Zh.aliases=[`ino`];function Zh(e){e.register(Xh),e.languages.arduino=e.languages.extend(`cpp`,{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}Qh.displayName=`bash`,Qh.aliases=[`sh`,`shell`];function Qh(e){(function(e){var t=`\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b`,n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:`punctuation`,inside:null},r={bash:n,environment:{pattern:RegExp(`\\$`+t),alias:`constant`},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp(`(\\{)`+t),lookbehind:!0,alias:`constant`}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:`important`},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:`function`},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:`function`}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:`variable`,lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp(`(^|[\\s;|&]|[<>]\\()`+t),lookbehind:!0,alias:`constant`}},alias:`variable`,lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:`variable`,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp(`\\$?`+t),alias:`constant`},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:`class-name`},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:`important`},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:`important`}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=[`comment`,`function-name`,`for-or-select`,`assign-left`,`parameter`,`string`,`environment`,`function`,`keyword`,`builtin`,`boolean`,`file-descriptor`,`operator`,`punctuation`,`number`],a=r.variable[1].inside,o=0;o<i.length;o++)a[i[o]]=e.languages.bash[i[o]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(e)}$h.displayName=`csharp`,$h.aliases=[`cs`,`dotnet`];function $h(e){e.register(Jh),(function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return`(?:`+t[+n]+`)`})}function n(e,n,r){return RegExp(t(e,n),r||``)}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return`(?:`+e+`)`});return e.replace(/<<self>>/g,`[^\\s\\S]`)}var i={type:`bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void`,typeDeclaration:`class enum interface record struct`,contextual:`add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)`,other:`abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield`};function a(e){return`\\b(?:`+e.trim().replace(/ /g,`|`)+`)\\b`}var o=a(i.typeDeclaration),s=RegExp(a(i.type+` `+i.typeDeclaration+` `+i.contextual+` `+i.other)),c=a(i.typeDeclaration+` `+i.contextual+` `+i.other),l=a(i.type+` `+i.typeDeclaration+` `+i.other),u=r(`<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>`,2),d=r(`\\((?:[^()]|<<self>>)*\\)`,2),f=`@?\\b[A-Za-z_]\\w*\\b`,p=t(`<<0>>(?:\\s*<<1>>)?`,[f,u]),m=t(`(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*`,[c,p]),h=`\\[\\s*(?:,\\s*)*\\]`,g=t(`<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?`,[m,h]),_=t(`(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?`,[t(`\\(<<0>>+(?:,<<0>>+)+\\)`,[t(`[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>`,[u,d,h])]),m,h]),v={keyword:s,punctuation:/[<>()?,.:[\]]/},y=`'(?:[^\\r\\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'`,b=`"(?:\\\\.|[^\\\\"\\r\\n])*"`,x=`@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")`;e.languages.csharp=e.languages.extend(`clike`,{string:[{pattern:n(`(^|[^$\\\\])<<0>>`,[x]),lookbehind:!0,greedy:!0},{pattern:n(`(^|[^@$\\\\])<<0>>`,[b]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(`(\\busing\\s+static\\s+)<<0>>(?=\\s*;)`,[m]),lookbehind:!0,inside:v},{pattern:n(`(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)`,[f,_]),lookbehind:!0,inside:v},{pattern:n(`(\\busing\\s+)<<0>>(?=\\s*=)`,[f]),lookbehind:!0},{pattern:n(`(\\b<<0>>\\s+)<<1>>`,[o,p]),lookbehind:!0,inside:v},{pattern:n(`(\\bcatch\\s*\\(\\s*)<<0>>`,[m]),lookbehind:!0,inside:v},{pattern:n(`(\\bwhere\\s+)<<0>>`,[f]),lookbehind:!0},{pattern:n(`(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>`,[g]),lookbehind:!0,inside:v},{pattern:n(`\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))`,[_,l,f]),inside:v}],keyword:s,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore(`csharp`,`number`,{range:{pattern:/\.\./,alias:`operator`}}),e.languages.insertBefore(`csharp`,`punctuation`,{"named-parameter":{pattern:n(`([(,]\\s*)<<0>>(?=\\s*:)`,[f]),lookbehind:!0,alias:`punctuation`}}),e.languages.insertBefore(`csharp`,`class-name`,{namespace:{pattern:n(`(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])`,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(`(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))`,[d]),lookbehind:!0,alias:`class-name`,inside:v},"return-type":{pattern:n(`<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))`,[_,m]),inside:v,alias:`class-name`},"constructor-invocation":{pattern:n(`(\\bnew\\s+)<<0>>(?=\\s*[[({])`,[_]),lookbehind:!0,inside:v,alias:`class-name`},"generic-method":{pattern:n(`<<0>>\\s*<<1>>(?=\\s*\\()`,[f,u]),inside:{function:n(`^<<0>>`,[f]),generic:{pattern:RegExp(u),alias:`class-name`,inside:v}}},"type-list":{pattern:n(`\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))`,[o,p,f,_,s.source,d,`\\bnew\\s*\\(\\s*\\)`]),lookbehind:!0,inside:{"record-arguments":{pattern:n(`(^(?!new\\s*\\()<<0>>\\s*)<<1>>`,[p,d]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:s,"class-name":{pattern:RegExp(_),greedy:!0,inside:v},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:`property`,inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:`keyword`}}}});var S=b+`|`+y,C=t(`\\/(?![*/])|\\/\\/[^\\r\\n]*[\\r\\n]|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>`,[S]),w=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[C]),2),T=`\\b(?:assembly|event|field|method|module|param|property|return|type)\\b`,E=t(`<<0>>(?:\\s*\\(<<1>>*\\))?`,[m,w]);e.languages.insertBefore(`csharp`,`class-name`,{attribute:{pattern:n(`((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])`,[T,E]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(`^<<0>>(?=\\s*:)`,[T]),alias:`keyword`},"attribute-arguments":{pattern:n(`\\(<<0>>*\\)`,[w]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ee=`:[^}\\r\\n]+`,te=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[C]),2),D=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[te,ee]),O=r(t(`[^"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)`,[S]),2),ne=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[O,ee]);function re(t,r){return{interpolation:{pattern:n(`((?:^|[^{])(?:\\{\\{)*)<<0>>`,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(`(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)`,[r,ee]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:`language-csharp`,inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore(`csharp`,`string`,{"interpolation-string":[{pattern:n(`(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{"])*"`,[D]),lookbehind:!0,greedy:!0,inside:re(D,te)},{pattern:n(`(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"`,[ne]),lookbehind:!0,greedy:!0,inside:re(ne,O)}],char:{pattern:RegExp(y),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp})(e)}eg.displayName=`markup`,eg.aliases=[`atom`,`html`,`mathml`,`rss`,`ssml`,`svg`,`xml`];function eg(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside[`attr-value`].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside[`internal-subset`].inside=e.languages.markup,e.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.value.replace(/&/,`&`))}),Object.defineProperty(e.languages.markup.tag,`addInlined`,{value:function(t,n){var r={};r[`language-`+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i[`language-`+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var a={};a[t]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return t}),`i`),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(e.languages.markup.tag,`addAttribute`,{value:function(t,n){e.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+t+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,`language-`+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend(`markup`,{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}tg.displayName=`css`,tg.aliases=[];function tg(e){(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(e)}ng.displayName=`diff`,ng.aliases=[];function ng(e){(function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":`-`,"deleted-arrow":`<`,"inserted-sign":`+`,"inserted-arrow":`>`,unchanged:` `,diff:`!`};Object.keys(t).forEach(function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),n===`diff`&&i.push(`bold`),e.languages.diff[n]={pattern:RegExp(`^(?:[`+r+`].*(?:\r
|
|
263
|
+
`)),l+=o.move(s),c(),l}function i(e,t,r){let i=e.value||``,a=1;for(n||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s<r.unsafe.length;){let e=r.unsafe[s];if(!e.atBreak)continue;let t=r.compilePattern(e),n;for(;n=t.exec(i);){let e=n.index;i.codePointAt(e)===10&&i.codePointAt(e-1)===13&&e--,i=i.slice(0,e)+` `+i.slice(n.index+1)}}return o+i+o}function a(){return`$`}}var Cd={tokenize:Td,concrete:!0,name:`mathFlow`},wd={tokenize:Ed,partial:!0};function Td(t,n,r){let i=this,a=i.events[i.events.length-1],o=a&&a[1].type===`linePrefix`?a[2].sliceSerialize(a[1],!0).length:0,s=0;return c;function c(e){return t.enter(`mathFlow`),t.enter(`mathFlowFence`),t.enter(`mathFlowFenceSequence`),l(e)}function l(n){return n===36?(t.consume(n),s++,l):s<2?r(n):(t.exit(`mathFlowFenceSequence`),e.rt(t,u,`whitespace`)(n))}function u(n){return n===null||e.st(n)?f(n):(t.enter(`mathFlowFenceMeta`),t.enter(`chunkString`,{contentType:`string`}),d(n))}function d(n){return n===null||e.st(n)?(t.exit(`chunkString`),t.exit(`mathFlowFenceMeta`),f(n)):n===36?r(n):(t.consume(n),d)}function f(e){return t.exit(`mathFlowFence`),i.interrupt?n(e):t.attempt(wd,p,_)(e)}function p(e){return t.attempt({tokenize:v,partial:!0},_,m)(e)}function m(n){return(o?e.rt(t,h,`linePrefix`,o+1):h)(n)}function h(n){return n===null?_(n):e.st(n)?t.attempt(wd,p,_)(n):(t.enter(`mathFlowValue`),g(n))}function g(n){return n===null||e.st(n)?(t.exit(`mathFlowValue`),h(n)):(t.consume(n),g)}function _(e){return t.exit(`mathFlow`),n(e)}function v(t,n,r){let a=0;return e.rt(t,o,`linePrefix`,i.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function o(e){return t.enter(`mathFlowFence`),t.enter(`mathFlowFenceSequence`),c(e)}function c(n){return n===36?(a++,t.consume(n),c):a<s?r(n):(t.exit(`mathFlowFenceSequence`),e.rt(t,l,`whitespace`)(n))}function l(i){return i===null||e.st(i)?(t.exit(`mathFlowFence`),n(i)):r(i)}}}function Ed(e,t,n){let r=this;return i;function i(n){return n===null?t(n):(e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Dd(t){let n=(t||{}).singleDollarTextMath;return n??=!0,{tokenize:r,resolve:Od,previous:kd,name:`mathText`};function r(t,r,i){let a=0,o,s;return c;function c(e){return t.enter(`mathText`),t.enter(`mathTextSequence`),l(e)}function l(e){return e===36?(t.consume(e),a++,l):a<2&&!n?i(e):(t.exit(`mathTextSequence`),u(e))}function u(n){return n===null?i(n):n===36?(s=t.enter(`mathTextSequence`),o=0,f(n)):n===32?(t.enter(`space`),t.consume(n),t.exit(`space`),u):e.st(n)?(t.enter(`lineEnding`),t.consume(n),t.exit(`lineEnding`),u):(t.enter(`mathTextData`),d(n))}function d(n){return n===null||n===32||n===36||e.st(n)?(t.exit(`mathTextData`),u(n)):(t.consume(n),d)}function f(e){return e===36?(t.consume(e),o++,f):o===a?(t.exit(`mathTextSequence`),t.exit(`mathText`),r(e)):(s.type=`mathTextData`,d(e))}}}function Od(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`mathTextData`){e[t][1].type=`mathTextPadding`,e[n][1].type=`mathTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`mathTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function kd(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function Ad(e){return{flow:{36:Cd},text:{36:Dd(e)}}}var jd={};function Md(e){let t=this,n=e||jd,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Ad(n)),a.push(xd()),o.push(Sd(n))}var Nd=`math_inline`,Pd=`math_block`,Fd=/(?:\$)([^$]+)(?:\$)$/,Id=/^\$\$\s$/,Ld=r.d(`remarkMath`,()=>Md),Rd=r.n({},`katexOptions`),zd=r.c(Nd,e=>({group:`inline`,inline:!0,atom:!0,attrs:{value:{default:``}},parseDOM:[{tag:`span[data-type="${Nd}"]`,getAttrs:e=>{let t=e;return{value:t.dataset.value??t.textContent??``}}}],toDOM:t=>{let n=String(t.attrs.value??t.textContent??``),r=document.createElement(`span`);return r.dataset.type=Nd,r.dataset.value=n,Pu.render(n,r,e.get(Rd.key)),r},parseMarkdown:{match:e=>e.type===`inlineMath`,runner:(e,t,n)=>{let r=String(t.value??``);e.addNode(n,{value:r})}},toMarkdown:{match:e=>e.type.name===Nd,runner:(e,t)=>{let n=String(t.attrs.value??t.textContent??``);e.addNode(`inlineMath`,void 0,n)}}})),Bd=r.c(Pd,e=>({content:`text*`,group:`block`,marks:``,defining:!0,atom:!0,isolating:!0,attrs:{value:{default:``}},parseDOM:[{tag:`div[data-type="${Pd}"]`,preserveWhitespace:`full`,getAttrs:e=>({value:e.dataset.value??``})}],toDOM:t=>{let n=String(t.attrs.value??``),r=document.createElement(`div`);return r.dataset.type=Pd,r.dataset.value=n,Pu.render(n,r,e.get(Rd.key)),r},parseMarkdown:{match:e=>e.type===`math`,runner:(e,t,n)=>{let r=String(t.value??``);e.addNode(n,{value:r})}},toMarkdown:{match:e=>e.type.name===Pd,runner:(e,t)=>{let n=String(t.attrs.value??``);e.addNode(`math`,void 0,n)}}})),Vd=r.r(t=>new e.W(Fd,(e,n,r,i)=>{let a=zd.type(t),o=n[1]??``,s=e.doc.resolve(r);return s.parent.canReplaceWith(s.index(),s.indexAfter(),a)?e.tr.replaceWith(r,i,a.create({value:o})):null})),Hd=[Ld,Rd,zd,Bd,r.r(t=>new e.W(Id,(e,n,r,i)=>{let a=e.doc.resolve(r),o=Bd.type(t);return a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),o)?e.tr.delete(r,i).setBlockType(r,r,o):null})),Vd].flat(),Ud=`blockquote`,Wd=`paragraph`,Gd=`Backspace`,Kd=e=>e.key!==Gd||e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey,qd=e=>{if(e.parent.type.name!==Wd||e.parentOffset!==0)return null;for(let t=e.depth;t>0;--t){let n=e.node(t);if(n.type.name!==Ud)continue;let r=e.depth,i=e.index(t);return r<=t||i!==0?null:{paragraphDepth:r,blockquoteDepth:t,blockquoteType:n.type}}return null},Jd=(e,n)=>{let{selection:r}=e.state;if(!r.empty)return!1;let i=r.$from,a=qd(i);if(!a)return!1;let o=i.blockRange(i,e=>e.type===a.blockquoteType);if(!o)return!1;let s=t.b(o);if(s===null)return!1;n.preventDefault();let c=e.state.tr.lift(o,s).scrollIntoView();return e.dispatch(c),!0},Yd=r.u(()=>new t.i({key:new t.a(`zt-md-blockquote-backspace-lift`),props:{handleKeyDown:(e,t)=>Kd(t)?!1:Jd(e,t)}})),Xd=`code_block`,Zd=1200,Qd=e=>(0,u.renderToStaticMarkup)((0,l.createElement)(e,{size:14,strokeWidth:2,"aria-hidden":`true`})),$d=Qd(De),ef=Qd(xe),tf=Qd(tt),nf=e=>typeof e==`function`?e():null,rf=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,af=class{syncLanguageAttribute(e){let t=typeof e.attrs.language==`string`?e.attrs.language.trim():``;if(!t){this.contentDOM.removeAttribute(`data-language`);return}this.contentDOM.setAttribute(`data-language`,t)}constructor(e,t,n,r){this.copyFeedbackTimer=null,this.handleCopyClick=e=>{if(e.preventDefault(),e.stopPropagation(),!rf(this.view))return;let t=this.node.textContent;(typeof navigator<`u`&&navigator.clipboard?.writeText?navigator.clipboard.writeText(t):Promise.resolve()).then(()=>{this.copyButton.innerHTML=ef,this.copyButton.dataset.copied=`true`,this.copyFeedbackTimer!==null&&clearTimeout(this.copyFeedbackTimer),this.copyFeedbackTimer=setTimeout(()=>{this.copyButton.innerHTML=$d,delete this.copyButton.dataset.copied,this.copyFeedbackTimer=null},Zd)}).catch(()=>{})},this.handleDeleteClick=e=>{e.preventDefault(),e.stopPropagation(),rf(this.view)&&this.deleteCurrentCodeBlock()},this.node=e,this.view=t,this.getPos=n,this.dom=document.createElement(`div`),this.dom.className=`zt-md-code-block`,this.dom.dataset.type=Xd,this.updateEditableState(),this.contentDOM=document.createElement(`pre`),this.actionsContainer=document.createElement(`span`),this.actionsContainer.className=`zt-md-code-block-actions`,this.copyButton=document.createElement(`button`),this.copyButton.type=`button`,this.copyButton.className=`zt-md-code-block-action-button`,this.copyButton.setAttribute(`aria-label`,r.codeBlockCopyAriaLabel),this.copyButton.innerHTML=$d,this.deleteButton=document.createElement(`button`),this.deleteButton.type=`button`,this.deleteButton.className=`zt-md-code-block-action-button zt-md-code-block-action-button-danger`,this.deleteButton.setAttribute(`aria-label`,r.codeBlockDeleteAriaLabel),this.deleteButton.innerHTML=tf,this.actionsContainer.append(this.copyButton,this.deleteButton),this.dom.append(this.contentDOM,this.actionsContainer),this.syncLanguageAttribute(e),this.copyButton.addEventListener(`click`,this.handleCopyClick),this.deleteButton.addEventListener(`click`,this.handleDeleteClick)}deleteCurrentCodeBlock(){let e=nf(this.getPos);if(e===null)return;let n=this.view.state.tr.delete(e,e+this.node.nodeSize),r=Math.min(e,n.doc.content.size);n.setSelection(t.c.near(n.doc.resolve(r),-1)).scrollIntoView(),this.view.dispatch(n),requestAnimationFrame(()=>{this.view.focus()})}updateEditableState(){this.dom.dataset.editable=rf(this.view)?`true`:`false`}update(e){return e.type.name===Xd?(this.node=e,this.updateEditableState(),this.syncLanguageAttribute(e),!0):!1}stopEvent(e){let t=e.target;return t instanceof Node?this.actionsContainer.contains(t):!1}ignoreMutation(e){return e.type===`selection`?!1:this.actionsContainer.contains(e.target)}destroy(){this.copyButton.removeEventListener(`click`,this.handleCopyClick),this.deleteButton.removeEventListener(`click`,this.handleDeleteClick),this.copyFeedbackTimer!==null&&(clearTimeout(this.copyFeedbackTimer),this.copyFeedbackTimer=null),this.copyButton.innerHTML=$d,delete this.copyButton.dataset.copied}},of=(e=sn())=>(t,n,r)=>new af(t,n,typeof r==`function`?()=>{let e=r();return typeof e==`number`?e:0}:!1,e);sf.displayName=`clike`,sf.aliases=[];function sf(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}cf.displayName=`c`,cf.aliases=[];function cf(e){e.register(sf),e.languages.c=e.languages.extend(`clike`,{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore(`c`,`string`,{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore(`c`,`string`,{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:`property`,inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:`function`}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:`keyword`},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore(`c`,`function`,{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}lf.displayName=`cpp`,lf.aliases=[];function lf(e){e.register(cf),(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:import|module)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.replace(/<mod-name>/g,function(){return n})+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])})(e)}uf.displayName=`arduino`,uf.aliases=[`ino`];function uf(e){e.register(lf),e.languages.arduino=e.languages.extend(`cpp`,{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}df.displayName=`bash`,df.aliases=[`sh`,`shell`];function df(e){(function(e){var t=`\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b`,n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:`punctuation`,inside:null},r={bash:n,environment:{pattern:RegExp(`\\$`+t),alias:`constant`},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp(`(\\{)`+t),lookbehind:!0,alias:`constant`}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:`important`},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:`function`},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:`function`}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:`variable`,lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp(`(^|[\\s;|&]|[<>]\\()`+t),lookbehind:!0,alias:`constant`}},alias:`variable`,lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:`variable`,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp(`\\$?`+t),alias:`constant`},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:`class-name`},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:`important`},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:`important`}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=[`comment`,`function-name`,`for-or-select`,`assign-left`,`parameter`,`string`,`environment`,`function`,`keyword`,`builtin`,`boolean`,`file-descriptor`,`operator`,`punctuation`,`number`],a=r.variable[1].inside,o=0;o<i.length;o++)a[i[o]]=e.languages.bash[i[o]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(e)}ff.displayName=`csharp`,ff.aliases=[`cs`,`dotnet`];function ff(e){e.register(sf),(function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return`(?:`+t[+n]+`)`})}function n(e,n,r){return RegExp(t(e,n),r||``)}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return`(?:`+e+`)`});return e.replace(/<<self>>/g,`[^\\s\\S]`)}var i={type:`bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void`,typeDeclaration:`class enum interface record struct`,contextual:`add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)`,other:`abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield`};function a(e){return`\\b(?:`+e.trim().replace(/ /g,`|`)+`)\\b`}var o=a(i.typeDeclaration),s=RegExp(a(i.type+` `+i.typeDeclaration+` `+i.contextual+` `+i.other)),c=a(i.typeDeclaration+` `+i.contextual+` `+i.other),l=a(i.type+` `+i.typeDeclaration+` `+i.other),u=r(`<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>`,2),d=r(`\\((?:[^()]|<<self>>)*\\)`,2),f=`@?\\b[A-Za-z_]\\w*\\b`,p=t(`<<0>>(?:\\s*<<1>>)?`,[f,u]),m=t(`(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*`,[c,p]),h=`\\[\\s*(?:,\\s*)*\\]`,g=t(`<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?`,[m,h]),_=t(`(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?`,[t(`\\(<<0>>+(?:,<<0>>+)+\\)`,[t(`[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>`,[u,d,h])]),m,h]),v={keyword:s,punctuation:/[<>()?,.:[\]]/},y=`'(?:[^\\r\\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'`,b=`"(?:\\\\.|[^\\\\"\\r\\n])*"`,x=`@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")`;e.languages.csharp=e.languages.extend(`clike`,{string:[{pattern:n(`(^|[^$\\\\])<<0>>`,[x]),lookbehind:!0,greedy:!0},{pattern:n(`(^|[^@$\\\\])<<0>>`,[b]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(`(\\busing\\s+static\\s+)<<0>>(?=\\s*;)`,[m]),lookbehind:!0,inside:v},{pattern:n(`(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)`,[f,_]),lookbehind:!0,inside:v},{pattern:n(`(\\busing\\s+)<<0>>(?=\\s*=)`,[f]),lookbehind:!0},{pattern:n(`(\\b<<0>>\\s+)<<1>>`,[o,p]),lookbehind:!0,inside:v},{pattern:n(`(\\bcatch\\s*\\(\\s*)<<0>>`,[m]),lookbehind:!0,inside:v},{pattern:n(`(\\bwhere\\s+)<<0>>`,[f]),lookbehind:!0},{pattern:n(`(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>`,[g]),lookbehind:!0,inside:v},{pattern:n(`\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))`,[_,l,f]),inside:v}],keyword:s,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore(`csharp`,`number`,{range:{pattern:/\.\./,alias:`operator`}}),e.languages.insertBefore(`csharp`,`punctuation`,{"named-parameter":{pattern:n(`([(,]\\s*)<<0>>(?=\\s*:)`,[f]),lookbehind:!0,alias:`punctuation`}}),e.languages.insertBefore(`csharp`,`class-name`,{namespace:{pattern:n(`(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])`,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(`(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))`,[d]),lookbehind:!0,alias:`class-name`,inside:v},"return-type":{pattern:n(`<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))`,[_,m]),inside:v,alias:`class-name`},"constructor-invocation":{pattern:n(`(\\bnew\\s+)<<0>>(?=\\s*[[({])`,[_]),lookbehind:!0,inside:v,alias:`class-name`},"generic-method":{pattern:n(`<<0>>\\s*<<1>>(?=\\s*\\()`,[f,u]),inside:{function:n(`^<<0>>`,[f]),generic:{pattern:RegExp(u),alias:`class-name`,inside:v}}},"type-list":{pattern:n(`\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))`,[o,p,f,_,s.source,d,`\\bnew\\s*\\(\\s*\\)`]),lookbehind:!0,inside:{"record-arguments":{pattern:n(`(^(?!new\\s*\\()<<0>>\\s*)<<1>>`,[p,d]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:s,"class-name":{pattern:RegExp(_),greedy:!0,inside:v},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:`property`,inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:`keyword`}}}});var S=b+`|`+y,C=t(`\\/(?![*/])|\\/\\/[^\\r\\n]*[\\r\\n]|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>`,[S]),w=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[C]),2),T=`\\b(?:assembly|event|field|method|module|param|property|return|type)\\b`,ee=t(`<<0>>(?:\\s*\\(<<1>>*\\))?`,[m,w]);e.languages.insertBefore(`csharp`,`class-name`,{attribute:{pattern:n(`((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])`,[T,ee]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(`^<<0>>(?=\\s*:)`,[T]),alias:`keyword`},"attribute-arguments":{pattern:n(`\\(<<0>>*\\)`,[w]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var E=`:[^}\\r\\n]+`,te=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[C]),2),ne=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[te,E]),re=r(t(`[^"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)`,[S]),2),ie=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[re,E]);function ae(t,r){return{interpolation:{pattern:n(`((?:^|[^{])(?:\\{\\{)*)<<0>>`,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(`(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)`,[r,E]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:`language-csharp`,inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore(`csharp`,`string`,{"interpolation-string":[{pattern:n(`(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{"])*"`,[ne]),lookbehind:!0,greedy:!0,inside:ae(ne,te)},{pattern:n(`(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"`,[ie]),lookbehind:!0,greedy:!0,inside:ae(ie,re)}],char:{pattern:RegExp(y),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp})(e)}pf.displayName=`markup`,pf.aliases=[`atom`,`html`,`mathml`,`rss`,`ssml`,`svg`,`xml`];function pf(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside[`attr-value`].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside[`internal-subset`].inside=e.languages.markup,e.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.value.replace(/&/,`&`))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r[`language-`+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i[`language-`+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var a={};a[t]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return t}),`i`),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+t+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,`language-`+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend(`markup`,{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}mf.displayName=`css`,mf.aliases=[];function mf(e){(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(e)}hf.displayName=`diff`,hf.aliases=[];function hf(e){(function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":`-`,"deleted-arrow":`<`,"inserted-sign":`+`,"inserted-arrow":`>`,unchanged:` `,diff:`!`};Object.keys(t).forEach(function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),n===`diff`&&i.push(`bold`),e.languages.diff[n]={pattern:RegExp(`^(?:[`+r+`].*(?:\r
|
|
388
264
|
?|
|
|
389
|
-
|(?![\\s\\S])))+`,`m`),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,`PREFIXES`,{value:t})})(e)}rg.displayName=`go`,rg.aliases=[];function rg(e){e.register(Jh),e.languages.go=e.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore(`go`,`string`,{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go[`class-name`]}ig.displayName=`ini`,ig.aliases=[];function ig(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:`selector`},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:`attr-name`},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:`attr-value`,inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}ag.displayName=`java`,ag.aliases=[];function ag(e){e.register(Jh),(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=`(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*`,r={pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),lookbehind:!0,inside:r.inside},{pattern:RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)`+n+`[A-Z]\\w*\\b`),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore(`java`,`string`,{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:`string`},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore(`java`,`class-name`,{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:`punctuation`},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(`(\\bimport\\s+)`+n+`(?:[A-Z]\\w*|\\*)(?=\\s*;)`),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(`(\\bimport\\s+static\\s+)`+n+`(?:\\w+|\\*)(?=\\s*;)`),lookbehind:!0,alias:`static`,inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(`(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(e)}og.displayName=`regex`,og.aliases=[];function og(e){(function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:`escape`},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:`class-name`},i={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:`class-name`},a=`(?:[^\\\\-]|`+n.source+`)`,o=RegExp(a+`-`+a),s={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:`variable`};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:`operator`},"char-class-punctuation":{pattern:/^\[|\]$/,alias:`punctuation`},range:{pattern:o,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:`operator`}}},"special-escape":t,"char-set":i,escape:n}},"special-escape":t,"char-set":r,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:`keyword`},{pattern:/\\k<[^<>']+>/,alias:`keyword`,inside:{"group-name":s}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:`function`},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:`punctuation`,inside:{"group-name":s}},{pattern:/\)/,alias:`punctuation`}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:`number`},alternation:{pattern:/\|/,alias:`keyword`}}})(e)}sg.displayName=`javascript`,sg.aliases=[`js`];function sg(e){e.register(Jh),e.languages.javascript=e.languages.extend(`clike`,{"class-name":[e.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),e.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),e.languages.markup&&(e.languages.markup.tag.addInlined(`script`,`javascript`),e.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),e.languages.js=e.languages.javascript}cg.displayName=`json`,cg.aliases=[`webmanifest`];function cg(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:`keyword`}},e.languages.webmanifest=e.languages.json}lg.displayName=`kotlin`,lg.aliases=[`kt`,`kts`];function lg(e){e.register(Jh),(function(e){e.languages.kotlin=e.languages.extend(`clike`,{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin[`class-name`];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:`punctuation`},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore(`kotlin`,`string`,{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:`multiline`,inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:`singleline`,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore(`kotlin`,`keyword`,{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:`builtin`}}),e.languages.insertBefore(`kotlin`,`function`,{label:{pattern:/\b\w+@|@\w+\b/,alias:`symbol`}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin})(e)}ug.displayName=`less`,ug.aliases=[];function ug(e){e.register(tg),e.languages.less=e.languages.extend(`css`,{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore(`less`,`property`,{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:`function`}})}dg.displayName=`lua`,dg.aliases=[];function dg(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}fg.displayName=`makefile`,fg.aliases=[];function fg(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:`builtin`},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:`symbol`,inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}pg.displayName=`yaml`,pg.aliases=[`yml`];function pg(e){(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r=`(?:`+n.source+`(?:[ ]+`+t.source+`)?|`+t.source+`(?:[ ]+`+n.source+`)?)`,i=`(?:[^\\s\\x00-\\x08\\x0e-\\x1f!"#%&'*,\\-:>?@[\\]\`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \\t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*`.replace(/<PLAIN>/g,function(){return`[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]`}),a=`"(?:[^"\\\\\\r\\n]|\\\\.)*"|'(?:[^'\\\\\\r\\n]|\\\\.)*'`;function o(e,t){t=(t||``).replace(/m/g,``)+`m`;var n=`([:\\-,[{]\\s*(?:\\s<<prop>>[ \\t]+)?)(?:<<value>>)(?=[ \\t]*(?:$|,|\\]|\\}|(?:[\\r\\n]\\s*)?#))`.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return e});return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(`([\\-:]\\s*(?:\\s<<prop>>[ \\t]+)?[|>])[ \\t]*(?:((?:\\r?\\n|\\r)[ \\t]+)\\S[^\\r\\n]*(?:\\2[^\\r\\n]+)*)`.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:`string`},comment:/#.*/,key:{pattern:RegExp(`((?:^|[:\\-,[{\\r\\n?])[ \\t]*(?:<<prop>>[ \\t]+)?)<<key>>(?=\\s*:\\s)`.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return`(?:`+i+`|`+a+`)`})),lookbehind:!0,greedy:!0,alias:`atrule`},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:`important`},datetime:{pattern:o(`\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \\t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \\t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?`),lookbehind:!0,alias:`number`},boolean:{pattern:o(`false|true`,`i`),lookbehind:!0,alias:`important`},null:{pattern:o(`null|~`,`i`),lookbehind:!0,alias:`important`},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(`[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)`,`i`),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(e)}mg.displayName=`markdown`,mg.aliases=[`md`];function mg(e){e.register(eg),(function(e){var t=`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var r="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",i=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,function(){return r}),a=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+i+a+`(?:`+i+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+i+a+`)(?:`+i+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+i+`)`+a+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+i+`$`),inside:{"table-header":{pattern:RegExp(r),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:n(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(`(~~?)(?:(?!~)<inner>)+\\2`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:[`code`,`keyword`]},url:{pattern:n(`!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach(function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add(`after-tokenize`,function(e){if(e.language!==`markdown`&&e.language!==`md`)return;function t(e){if(!(!e||typeof e==`string`))for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i.type!==`code`){t(i.content);continue}var a=i.content[1],o=i.content[3];if(a&&o&&a.type===`code-language`&&o.type===`code-block`&&typeof a.content==`string`){var s=a.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`);s=(/[a-z][\w-]*/i.exec(s)||[``])[0].toLowerCase();var c=`language-`+s;o.alias?typeof o.alias==`string`?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}}t(e.tokens)}),e.hooks.add(`wrap`,function(t){if(t.type===`code-block`){for(var n=``,r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],o=/language-(.+)/.exec(a);if(o){n=o[1];break}}var s=e.languages[n];if(s)t.content=e.highlight(t.content.value,s,n);else if(n&&n!==`none`&&e.plugins.autoloader){var c=`md-`+new Date().valueOf()+`-`+Math.floor(Math.random()*0x2386f26fc10000);t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}}),RegExp(e.languages.markup.tag.pattern.source,`gi`),String.fromCodePoint||String.fromCharCode,e.languages.md=e.languages.markdown})(e)}hg.displayName=`objectivec`,hg.aliases=[`objc`];function hg(e){e.register(Yh),e.languages.objectivec=e.languages.extend(`c`,{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec[`class-name`],e.languages.objc=e.languages.objectivec}gg.displayName=`perl`,gg.aliases=[];function gg(e){(function(e){var t=`(?:\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)|\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\}|\\[(?:[^[\\]\\\\]|\\\\[\\s\\S])*\\]|<(?:[^<>\\\\]|\\\\[\\s\\S])*>)`;e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(`\\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\\s*(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`([a-zA-Z0-9])(?:(?!\\2)[^\\\\]|\\\\[\\s\\S])*\\2`,t].join(`|`)+`)`),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(`\\b(?:m|qr)(?![a-zA-Z0-9])\\s*(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`([a-zA-Z0-9])(?:(?!\\2)[^\\\\]|\\\\[\\s\\S])*\\2`,t].join(`|`)+`)[msixpodualngc]*`),greedy:!0},{pattern:RegExp(`(^|[^-])\\b(?:s|tr|y)(?![a-zA-Z0-9])\\s*(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\2)[^\\\\]|\\\\[\\s\\S])*\\2(?:(?!\\2)[^\\\\]|\\\\[\\s\\S])*\\2`,`([a-zA-Z0-9])(?:(?!\\3)[^\\\\]|\\\\[\\s\\S])*\\3(?:(?!\\3)[^\\\\]|\\\\[\\s\\S])*\\3`,t+`\\s*`+t].join(`|`)+`)[msixpodualngcer]*`),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:`symbol`},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:`string`},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}_g.displayName=`markup-templating`,_g.aliases=[];function _g(e){e.register(eg),(function(e){function t(e,t){return`___`+e.toUpperCase()+t+`___`}Object.defineProperties(e.languages[`markup-templating`]={},{buildPlaceholders:{value:function(n,r,i,a){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(i,function(e){if(typeof a==`function`&&!a(e))return e;for(var i=o.length,s;n.code.indexOf(s=t(r,i))!==-1;)++i;return o[i]=e,s}),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language!==r||!n.tokenStack)return;n.grammar=e.languages[r];var i=0,a=Object.keys(n.tokenStack);function o(s){for(var c=0;c<s.length&&!(i>=a.length);c++){var l=s[c];if(typeof l==`string`||l.content&&typeof l.content==`string`){var u=a[i],d=n.tokenStack[u],f=typeof l==`string`?l:l.content,p=t(r,u),m=f.indexOf(p);if(m>-1){++i;var h=f.substring(0,m),g=new e.Token(r,e.tokenize(d,n.grammar),`language-`+r,d),_=f.substring(m+p.length),v=[];h&&v.push.apply(v,o([h])),v.push(g),_&&v.push.apply(v,o([_])),typeof l==`string`?s.splice.apply(s,[c,1].concat(v)):l.content=v}}else l.content&&o(l.content)}return s}o(n.tokens)}}})})(e)}vg.displayName=`php`,vg.aliases=[];function vg(e){e.register(_g),(function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:`boolean`},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:`important`},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:`class-name`},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:`function`},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:`type-casting`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:`type-declaration`,greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:`type-declaration`,greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:`class-name-fully-qualified`,greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:`type-declaration`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-declaration`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:[`class-name-fully-qualified`,`static-context`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-hint`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:[`class-name-fully-qualified`,`return-type`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:`nowdoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:`backtick-quoted-string`,greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:`single-quoted-string`,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:`double-quoted-string`,greedy:!0,inside:{interpolation:o}}];e.languages.insertBefore(`php`,`variable`,{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:`class-name`,greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:[`class-name`,`class-name-fully-qualified`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:`punctuation`}}}}),e.hooks.add(`before-tokenize`,function(t){/<\?/.test(t.code)&&e.languages[`markup-templating`].buildPlaceholders(t,`php`,/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add(`after-tokenize`,function(t){e.languages[`markup-templating`].tokenizePlaceholders(t,`php`)})})(e)}yg.displayName=`python`,yg.aliases=[`py`];function yg(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python[`string-interpolation`].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}bg.displayName=`r`,bg.aliases=[];function bg(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:`operator`},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}xg.displayName=`ruby`,xg.aliases=[`rb`];function xg(e){e.register(Jh),(function(e){e.languages.ruby=e.languages.extend(`clike`,{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore(`ruby`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:`punctuation`}}};delete e.languages.ruby.function;var n=`(?:`+[`([^a-zA-Z0-9\\s{(\\[<=])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`\\((?:[^()\\\\]|\\\\[\\s\\S]|\\((?:[^()\\\\]|\\\\[\\s\\S])*\\))*\\)`,`\\{(?:[^{}\\\\]|\\\\[\\s\\S]|\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\})*\\}`,`\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S]|\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\])*\\]`,`<(?:[^<>\\\\]|\\\\[\\s\\S]|<(?:[^<>\\\\]|\\\\[\\s\\S])*>)*>`].join(`|`)+`)`,r=`(?:"(?:\\\\.|[^"\\\\\\r\\n])*"|(?:\\b[a-zA-Z_]\\w*|[^\\s\\0-\\x7F]+)[?!]?|\\$.)`;e.languages.insertBefore(`ruby`,`keyword`,{"regex-literal":[{pattern:RegExp(`%r`+n+`[egimnosux]{0,6}`),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(`(^|[^:]):`+r),lookbehind:!0,greedy:!0},{pattern:RegExp(`([\\r\\n{(,][ \\t]*)`+r+`(?=:(?!:))`),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore(`ruby`,`string`,{"string-literal":[{pattern:RegExp(`%[qQiIwWs]?`+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(`%x`+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:`string`}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:`string`}}}]}),delete e.languages.ruby.string,e.languages.insertBefore(`ruby`,`number`,{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby})(e)}Sg.displayName=`rust`,Sg.aliases=[];function Sg(e){(function(e){for(var t=`\\/\\*(?:[^*/]|\\*(?!\\/)|\\/(?!\\*)|<self>)*\\*\\/`,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return`[^\\s\\S]`}),e.languages.rust={comment:[{pattern:RegExp(`(^|[^\\\\])`+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:`attr-name`,inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:`punctuation`},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:`symbol`},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:`punctuation`},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:`function`},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:`class-name`},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:`namespace`},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:`namespace`,inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:`property`},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust[`closure-params`].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(e)}Cg.displayName=`sass`,Cg.aliases=[];function Cg(e){e.register(tg),(function(e){e.languages.sass=e.languages.extend(`css`,{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore(`sass`,`atrule`,{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore(`sass`,`property`,{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore(`sass`,`punctuation`,{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(e)}wg.displayName=`scss`,wg.aliases=[];function wg(e){e.register(tg),e.languages.scss=e.languages.extend(`css`,{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:`important`},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore(`scss`,`atrule`,{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore(`scss`,`important`,{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore(`scss`,`function`,{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:`keyword`},placeholder:{pattern:/%[-\w]+/,alias:`selector`},statement:{pattern:/\B!(?:default|optional)\b/i,alias:`keyword`},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:`keyword`},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}Tg.displayName=`sql`,Tg.aliases=[];function Tg(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}Eg.displayName=`swift`,Eg.aliases=[];function Eg(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(`(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:`punctuation`},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(`(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:`punctuation`},string:/[\s\S]+/}}],directive:{pattern:RegExp(`#(?:(?:elseif|if)\\b(?:[ ]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)`),alias:`property`,inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:`constant`},"other-directive":{pattern:/#\w+\b/,alias:`property`},attribute:{pattern:/@\w+/,alias:`atrule`},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:`function`},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:`important`},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:`constant`},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:`keyword`},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift[`string-literal`].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}Dg.displayName=`typescript`,Dg.aliases=[`ts`];function Dg(e){e.register(sg),(function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript})(e)}Og.displayName=`basic`,Og.aliases=[];function Og(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}kg.displayName=`vbnet`,kg.aliases=[];function kg(e){e.register(Og),e.languages.vbnet=e.languages.extend(`basic`,{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}var Ag=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Ag.prototype.normal={},Ag.prototype.property={},Ag.prototype.space=void 0;function jg(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Ag(n,r,t)}function Mg(e){return e.toLowerCase()}var Ng=class{constructor(e,t){this.attribute=t,this.property=e}};Ng.prototype.attribute=``,Ng.prototype.booleanish=!1,Ng.prototype.boolean=!1,Ng.prototype.commaOrSpaceSeparated=!1,Ng.prototype.commaSeparated=!1,Ng.prototype.defined=!1,Ng.prototype.mustUseProperty=!1,Ng.prototype.number=!1,Ng.prototype.overloadedBoolean=!1,Ng.prototype.property=``,Ng.prototype.spaceSeparated=!1,Ng.prototype.space=void 0;var Pg=e.n({boolean:()=>Ig,booleanish:()=>Lg,commaOrSpaceSeparated:()=>Vg,commaSeparated:()=>Bg,number:()=>Q,overloadedBoolean:()=>Rg,spaceSeparated:()=>zg}),Fg=0,Ig=Hg(),Lg=Hg(),Rg=Hg(),Q=Hg(),zg=Hg(),Bg=Hg(),Vg=Hg();function Hg(){return 2**++Fg}var Ug=Object.keys(Pg),Wg=class extends Ng{constructor(e,t,n,r){let i=-1;if(super(e,t),Gg(this,`space`,r),typeof n==`number`)for(;++i<Ug.length;){let e=Ug[i];Gg(this,Ug[i],(n&Pg[e])===Pg[e])}}};Wg.prototype.defined=!0;function Gg(e,t,n){n&&(e[t]=n)}function Kg(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Wg(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Mg(r)]=r,n[Mg(a.attribute)]=r}return new Ag(t,n,e.space)}var qg=Kg({properties:{ariaActiveDescendant:null,ariaAtomic:Lg,ariaAutoComplete:null,ariaBusy:Lg,ariaChecked:Lg,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:zg,ariaCurrent:null,ariaDescribedBy:zg,ariaDetails:null,ariaDisabled:Lg,ariaDropEffect:zg,ariaErrorMessage:null,ariaExpanded:Lg,ariaFlowTo:zg,ariaGrabbed:Lg,ariaHasPopup:null,ariaHidden:Lg,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:zg,ariaLevel:Q,ariaLive:null,ariaModal:Lg,ariaMultiLine:Lg,ariaMultiSelectable:Lg,ariaOrientation:null,ariaOwns:zg,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:Lg,ariaReadOnly:Lg,ariaRelevant:null,ariaRequired:Lg,ariaRoleDescription:zg,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:Lg,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Jg(e,t){return t in e?e[t]:t}function Yg(e,t){return Jg(e,t.toLowerCase())}var Xg=Kg({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Bg,acceptCharset:zg,accessKey:zg,action:null,allow:null,allowFullScreen:Ig,allowPaymentRequest:Ig,allowUserMedia:Ig,alt:null,as:null,async:Ig,autoCapitalize:null,autoComplete:zg,autoFocus:Ig,autoPlay:Ig,blocking:zg,capture:null,charSet:null,checked:Ig,cite:null,className:zg,cols:Q,colSpan:null,content:null,contentEditable:Lg,controls:Ig,controlsList:zg,coords:Q|Bg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ig,defer:Ig,dir:null,dirName:null,disabled:Ig,download:Rg,draggable:Lg,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ig,formTarget:null,headers:zg,height:Q,hidden:Rg,high:Q,href:null,hrefLang:null,htmlFor:zg,httpEquiv:zg,id:null,imageSizes:null,imageSrcSet:null,inert:Ig,inputMode:null,integrity:null,is:null,isMap:Ig,itemId:null,itemProp:zg,itemRef:zg,itemScope:Ig,itemType:zg,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ig,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:Ig,muted:Ig,name:null,nonce:null,noModule:Ig,noValidate:Ig,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ig,optimum:Q,pattern:null,ping:zg,placeholder:null,playsInline:Ig,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ig,referrerPolicy:null,rel:zg,required:Ig,reversed:Ig,rows:Q,rowSpan:Q,sandbox:zg,scope:null,scoped:Ig,seamless:Ig,selected:Ig,shadowRootClonable:Ig,shadowRootDelegatesFocus:Ig,shadowRootMode:null,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:Lg,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:Ig,useMap:null,value:Lg,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:zg,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ig,declare:Ig,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:Ig,noHref:Ig,noShade:Ig,noWrap:Ig,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:Lg,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ig,disableRemotePlayback:Ig,prefix:null,property:null,results:Q,security:null,unselectable:null},space:`html`,transform:Yg}),Zg=Kg({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-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:Vg,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:zg,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:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:Ig,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,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:Bg,g2:Bg,glyphName:Bg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:Vg,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,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:Q,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:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:zg,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Vg,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Vg,rev:Vg,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Vg,requiredFeatures:Vg,requiredFonts:Vg,requiredFormats:Vg,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:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:Vg,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Vg,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Vg,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Jg}),Qg=Kg({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()}}),$g=Kg({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Yg}),e_=Kg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),t_=/[A-Z]/g,n_=/-[a-z]/g,r_=/^data[-\w.:]+$/i;function i_(e,t){let n=Mg(t),r=t,i=Ng;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&r_.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(n_,o_);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!n_.test(e)){let n=e.replace(t_,a_);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Wg}return new i(r,t)}function a_(e){return`-`+e.toLowerCase()}function o_(e){return e.charAt(1).toUpperCase()}var s_=jg([qg,Xg,Qg,$g,e_],`html`),c_=jg([qg,Zg,Qg,$g,e_],`svg`);function l_(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}var u_=/[#.]/g;function d_(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){u_.lastIndex=i;let e=u_.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?a===`#`?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:`element`,tagName:o||t||`div`,properties:r,children:[]}}function f_(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function p_(e,t,n){let r=n?y_(n):void 0;function i(n,i,...a){let o;if(n==null){o={type:`root`,children:[]};let e=i;a.unshift(e)}else{o=d_(n,t);let s=o.tagName.toLowerCase(),c=r?r.get(s):void 0;if(o.tagName=c||s,m_(i))a.unshift(i);else for(let[t,n]of Object.entries(i))h_(e,o.properties,t,n)}for(let e of a)g_(o.children,e);return o.type===`element`&&o.tagName===`template`&&(o.content={type:`root`,children:o.children},o.children=[]),o}return i}function m_(e){if(typeof e!=`object`||!e||Array.isArray(e))return!0;if(typeof e.type!=`string`)return!1;let t=e,n=Object.keys(e);for(let e of n){let n=t[e];if(n&&typeof n==`object`){if(!Array.isArray(n))return!0;let e=n;for(let t of e)if(typeof t!=`number`&&typeof t!=`string`)return!0}}return!!(`children`in e&&Array.isArray(e.children))}function h_(e,t,n,r){let i=i_(e,n),a;if(r!=null){if(typeof r==`number`){if(Number.isNaN(r))return;a=r}else a=typeof r==`boolean`?r:typeof r==`string`?i.spaceSeparated?f_(r):i.commaSeparated?l_(r):i.commaOrSpaceSeparated?f_(l_(r).join(` `)):__(i,i.property,r):Array.isArray(r)?[...r]:i.property===`style`?v_(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(__(i,i.property,t));a=e}i.property===`className`&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function g_(e,t){if(t!=null)if(typeof t==`number`||typeof t==`string`)e.push({type:`text`,value:String(t)});else if(Array.isArray(t))for(let n of t)g_(e,n);else if(typeof t==`object`&&`type`in t)t.type===`root`?g_(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}function __(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||Mg(n)===Mg(t)))return!0}return n}function v_(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(`: `));return t.join(`; `)}function y_(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var b_=`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.solidColor.textArea.textPath`.split(`.`),x_=p_(s_,`div`);p_(c_,`g`,b_);var S_=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),C_={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function w_(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function T_(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function E_(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function D_(e){return E_(e)||w_(e)}var O_=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function k_(e,t){let n=t||{},i=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,a=[],o=0,s=-1,c=``,l,u;n.position&&(`start`in n.position||`indent`in n.position?(u=n.position.indent,l=n.position.start):l=n.position);let d=(l?l.line:0)||1,f=(l?l.column:0)||1,p=h(),m;for(o--;++o<=e.length;)if(m===10&&(f=(u?u[s]:0)||1),m=e.charCodeAt(o),m===38){let t=e.charCodeAt(o+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||i&&t===i){c+=String.fromCharCode(m),f++;continue}let s=o+1,l=s,u=s,d;if(t===35){u=++l;let t=e.charCodeAt(u);t===88||t===120?(d=`hexadecimal`,u=++l):d=`decimal`}else d=`named`;let v=``,y=``,b=``,x=d===`named`?D_:d===`decimal`?w_:T_;for(u--;++u<=e.length;){let t=e.charCodeAt(u);if(!x(t))break;b+=String.fromCharCode(t),d===`named`&&S_.includes(b)&&(v=b,y=r.F(b))}let S=e.charCodeAt(u)===59;if(S){u++;let e=d===`named`?r.F(b):!1;e&&(v=b,y=e)}let C=1+u-s,w=``;if(!(!S&&n.nonTerminated===!1))if(!b)d!==`named`&&g(4,C);else if(d===`named`){if(S&&!y)g(5,1);else if(v!==b&&(u=l+v.length,C=1+u-l,S=!1),!S){let t=v?1:3;if(n.attribute){let n=e.charCodeAt(u);n===61?(g(t,C),y=``):D_(n)?y=``:g(t,C)}else g(t,C)}w=y}else{S||g(2,C);let e=Number.parseInt(b,d===`hexadecimal`?16:10);if(A_(e))g(7,C),w=`�`;else if(e in C_)g(6,C),w=C_[e];else{let t=``;j_(e)&&g(6,C),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),w=t+String.fromCharCode(e)}}if(w){_(),p=h(),o=u-1,f+=u-s+1,a.push(w);let t=h();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,w,{start:p,end:t},e.slice(s-1,u)),p=t}else b=e.slice(s-1,u),c+=b,f+=b.length,o=u-1}else m===10&&(d++,s++,f=0),Number.isNaN(m)?_():(c+=String.fromCharCode(m),f++);return a.join(``);function h(){return{line:d,column:f,offset:o+((l?l.offset:0)||0)}}function g(e,t){let r;n.warning&&(r=h(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,O_[e],r,e))}function _(){c&&=(a.push(c),n.text&&n.text.call(n.textContext||void 0,c,{start:p,end:h()}),``)}}function A_(e){return e>=55296&&e<=57343||e>1114111}function j_(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var M_=0,N_={},P_={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,`__id`,{value:++M_}),e.__id},clone:function e(t,n){n||={};var r,i;switch(P_.util.type(t)){case`Object`:if(i=P_.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case`Array`:return i=P_.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r);default:return t}}},languages:{plain:N_,plaintext:N_,text:N_,txt:N_,extend:function(e,t){var n=P_.util.clone(P_.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=P_.languages;var i=r[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var c=r[e];return r[e]=a,P_.languages.DFS(P_.languages,function(t,n){n===c&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,r,i){i||={};var a=P_.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],c=P_.util.type(s);c===`Object`&&!i[a(s)]?(i[a(s)]=!0,e(s,n,null,i)):c===`Array`&&!i[a(s)]&&(i[a(s)]=!0,e(s,n,o,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(P_.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=P_.tokenize(r.code,r.grammar),P_.hooks.run(`after-tokenize`,r),F_.stringify(P_.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new R_;return z_(i,i.head,e),L_(e,i,t,i.head,0),V_(i)},hooks:{all:{},add:function(e,t){var n=P_.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=P_.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:F_};function F_(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}function I_(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function L_(e,t,n,r,i,a){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var s=n[o];s=Array.isArray(s)?s:[s];for(var c=0;c<s.length;++c){if(a&&a.cause==o+`,`+c)return;var l=s[c],u=l.inside,d=!!l.lookbehind,f=!!l.greedy,p=l.alias;if(f&&!l.pattern.global){var m=l.pattern.toString().match(/[imsuy]*$/)[0];l.pattern=RegExp(l.pattern.source,m+`g`)}for(var h=l.pattern||l,g=r.next,_=i;g!==t.tail&&!(a&&_>=a.reach);_+=g.value.length,g=g.next){var v=g.value;if(t.length>e.length)return;if(!(v instanceof F_)){var y=1,b;if(f){if(b=I_(h,_,e,d),!b||b.index>=e.length)break;var x=b.index,S=b.index+b[0].length,C=_;for(C+=g.value.length;x>=C;)g=g.next,C+=g.value.length;if(C-=g.value.length,_=C,g.value instanceof F_)continue;for(var w=g;w!==t.tail&&(C<S||typeof w.value==`string`);w=w.next)y++,C+=w.value.length;y--,v=e.slice(_,C),b.index-=_}else if(b=I_(h,0,v,d),!b)continue;var x=b.index,T=b[0],E=v.slice(0,x),ee=v.slice(x+T.length),te=_+v.length;a&&te>a.reach&&(a.reach=te);var D=g.prev;E&&(D=z_(t,D,E),_+=E.length),B_(t,D,y);var O=new F_(o,u?P_.tokenize(T,u):T,p,T);if(g=z_(t,D,O),ee&&z_(t,g,ee),y>1){var ne={cause:o+`,`+c,reach:te};L_(e,t,n,g.prev,_,ne),a&&ne.reach>a.reach&&(a.reach=ne.reach)}}}}}}function R_(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function z_(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function B_(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function V_(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}var H_=P_;function U_(){}U_.prototype=H_;var $=new U_;$.highlight=W_,$.register=G_,$.alias=K_,$.registered=q_,$.listLanguages=J_,$.util.encode=X_,$.Token.stringify=Y_;function W_(e,t){if(typeof e!=`string`)throw TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&typeof t==`object`)n=t;else{if(r=t,typeof r!=`string`)throw TypeError("Expected `string` for `name`, got `"+r+"`");if(Object.hasOwn($.languages,r))n=$.languages[r];else throw Error("Unknown language: `"+r+"` is not registered")}return{type:`root`,children:H_.highlight.call($,e,n,r)}}function G_(e){if(typeof e!=`function`||!e.displayName)throw Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn($.languages,e.displayName)||e($)}function K_(e,t){let n=$.languages,r={};typeof e==`string`?t&&(r[e]=t):r=e;let i;for(i in r)if(Object.hasOwn(r,i)){let e=r[i],t=typeof e==`string`?[e]:e,a=-1;for(;++a<t.length;)n[t[a]]=n[i]}}function q_(e){if(typeof e!=`string`)throw TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn($.languages,e)}function J_(){let e=$.languages,t=[],n;for(n in e)Object.hasOwn(e,n)&&typeof e[n]==`object`&&t.push(n);return t}function Y_(e,t){if(typeof e==`string`)return{type:`text`,value:e};if(Array.isArray(e)){let n=[],r=-1;for(;++r<e.length;)e[r]!==null&&e[r]!==void 0&&e[r]!==``&&n.push(Y_(e[r],t));return n}let n={attributes:{},classes:[`token`,e.type],content:Y_(e.content,t),language:t,tag:`span`,type:e.type};return e.alias&&n.classes.push(...typeof e.alias==`string`?[e.alias]:e.alias),$.hooks.run(`wrap`,n),x_(n.tag+`.`+n.classes.join(`.`),Z_(n.attributes),n.content)}function X_(e){return e}function Z_(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=k_(e[t]));return e}$.register(Jh),$.register(Yh),$.register(Xh),$.register(Zh),$.register(Qh),$.register($h),$.register(eg),$.register(tg),$.register(ng),$.register(rg),$.register(ig),$.register(ag),$.register(og),$.register(sg),$.register(cg),$.register(lg),$.register(ug),$.register(dg),$.register(fg),$.register(pg),$.register(mg),$.register(hg),$.register(gg),$.register(_g),$.register(vg),$.register(yg),$.register(bg),$.register(xg),$.register(Sg),$.register(Cg),$.register(wg),$.register(Tg),$.register(Eg),$.register(Dg),$.register(Og),$.register(kg);function Q_({...e}){return(0,h.jsx)(ds,{"data-slot":`popover`,...e})}function $_({...e}){return(0,h.jsx)(fs,{"data-slot":`popover-trigger`,...e})}function ev({container:e,className:t,align:n=`center`,sideOffset:r=4,...i}){return(0,h.jsx)(ps,{container:e??void 0,children:(0,h.jsx)(ms,{"data-slot":`popover-content`,align:n,sideOffset:r,className:zc(`z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,t),...i})})}var tv=new Set,nv=!1,rv=()=>typeof document<`u`,iv=()=>{Array.from(tv).forEach(e=>e())},av=()=>{nv||!rv()||(document.addEventListener(`scroll`,iv,{capture:!0,passive:!0}),nv=!0)},ov=()=>{!nv||!rv()||(document.removeEventListener(`scroll`,iv,!0),nv=!1)},sv=e=>{if(!rv())return()=>void 0;let t=!0;return tv.add(e),av(),()=>{t&&(t=!1,tv.delete(e),tv.size===0&&ov())}},cv=(e,t)=>{let n=(0,p.useRef)(t);(0,p.useEffect)(()=>{n.current=t},[t]),(0,p.useEffect)(()=>e?sv(()=>{n.current()}):void 0,[e])},lv=e=>e?e.closest(`.zt-md-editor`)??e:null,uv=(e,t)=>{let n=typeof window>`u`?e.bottom:window.innerHeight,r=e.top,i=n-e.bottom;return i<t&&r>i?`top`:`bottom`},dv=(e,t)=>{let n=t.getBoundingClientRect();return{anchorTopInContent:e.top-n.top+t.scrollTop,anchorBottomInContent:e.bottom-n.top+t.scrollTop,anchorLeftInContent:e.left-n.left+t.scrollLeft}},fv=e=>{let{wrapper:t,anchor:n,overlaySize:r,placement:i,offsetY:a,boundaryInset:o}=e,s=t.getBoundingClientRect(),c=t.scrollLeft+o,l=t.scrollLeft+t.clientWidth-r.width-o,u=Math.min(Math.max(n.anchorLeftInContent,c),Math.max(c,l)),d=i===`top`?n.anchorTopInContent-a:n.anchorBottomInContent+a;return{left:s.left+u-t.scrollLeft,top:s.top+d-t.scrollTop}},pv=(e,t)=>{let n=fv(e),r=t.getBoundingClientRect();return{left:n.left-r.left,top:n.top-r.top}},mv=e=>{let t=0,n=null,r=null,i=()=>{typeof window>`u`||(t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{t=0,e()}))},a=()=>{window.addEventListener(`resize`,i),r||=sv(i)},o=()=>{window.removeEventListener(`resize`,i),r?.(),r=null},s=e=>{n!==e&&(n&&n.removeEventListener(`scroll`,i),n=e,n&&n.addEventListener(`scroll`,i,{passive:!0}))};return{schedule:i,bindGlobal:a,unbindGlobal:o,bindWrapper:s,destroy:()=>{typeof window<`u`&&t&&(window.cancelAnimationFrame(t),t=0),o(),s(null)}}},hv=`code_block`,gv=`ZT_MD_CODE_BLOCK_LANGUAGE_PICKER`,_v=104,vv=36,yv=`text`,bv={javascript:`JavaScript`,typescript:`TypeScript`,jsx:`JSX`,tsx:`TSX`,json:`JSON`,html:`HTML`,css:`CSS`,bash:`Bash`,shell:`Shell`,sh:`Shell`,markdown:`Markdown`,md:`Markdown`,yaml:`YAML`,yml:`YAML`,sql:`SQL`,xml:`XML`},xv=e=>e.trim().toLowerCase()||yv,Sv=e=>{let t=xv(e);return bv[t]??t},Cv=e=>{let t=$.listLanguages(),n=[...new Set(t.map(e=>xv(e)).filter(e=>e!==yv))].sort((e,t)=>e.localeCompare(t));return[{value:yv,label:e.codeBlockLanguagePlainText},...n.map(e=>({value:e,label:Sv(e)}))]},wv=e=>{let t=e.state.selection.$from;for(let e=t.depth;e>=0;--e){let n=t.node(e);if(n.type.name===hv)return{position:e===0?0:t.before(e),node:n}}return null},Tv=(e,t)=>{let n=e.nodeDOM(t);return n instanceof HTMLPreElement?n:n instanceof HTMLElement?n.querySelector(`pre`):null},Ev=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,Dv=e=>{let[t,n]=(0,p.useState)(!1),[r,i]=(0,p.useState)(``),a=xv(e.currentLanguage),o=Sv(a),s=(0,p.useMemo)(()=>Cv(e.messages),[e.messages]),c=(0,p.useMemo)(()=>{let e=r.trim().toLowerCase();return e?s.filter(t=>{let n=t.label.toLowerCase(),r=t.value.toLowerCase();return n.includes(e)||r.includes(e)}):s},[r,s]);(0,p.useEffect)(()=>{n(!1),i(``)},[e.currentLanguage]);let l=e=>e instanceof HTMLElement?e.closest(`input, textarea, [contenteditable]:not([contenteditable="false"])`)!==null:!1,u=e=>{l(e.target)||e.preventDefault()},d=e=>{e.preventDefault()},f=t=>{e.onSelectLanguage(t),n(!1),i(``)};return cv(t,()=>{n(!1)}),(0,p.createElement)(Q_,{open:t,onOpenChange:n},(0,p.createElement)(`div`,{className:`zt-md-code-language-picker`,onMouseDown:u},(0,p.createElement)($_,{asChild:!0},(0,p.createElement)(`button`,{type:`button`,className:`zt-md-code-language-picker-trigger`,"aria-expanded":t,"aria-label":o},(0,p.createElement)(`span`,{className:`zt-md-code-language-picker-trigger-label`},o),(0,p.createElement)(De,{className:`zt-md-code-language-picker-trigger-icon`,size:14,strokeWidth:2,"aria-hidden":`true`}))),(0,p.createElement)(ev,{align:`end`,side:`bottom`,sideOffset:6,className:`zt-md-code-language-picker-panel`,container:e.portalContainer,onOpenAutoFocus:d,onCloseAutoFocus:d},(0,p.createElement)(`label`,{className:`zt-md-code-language-picker-search`},(0,p.createElement)(Ye,{className:`zt-md-code-language-picker-search-icon`,size:14,strokeWidth:2,"aria-hidden":`true`}),(0,p.createElement)(`input`,{value:r,onChange:e=>i(e.currentTarget.value),placeholder:e.messages.codeBlockLanguageSearchPlaceholder,className:`zt-md-code-language-picker-search-input`})),(0,p.createElement)(`div`,{className:`zt-md-code-language-picker-options`,role:`listbox`},c.length>0?c.map(e=>(0,p.createElement)(`button`,{key:e.value||`__plain_text__`,type:`button`,className:`zt-md-code-language-picker-option`,"data-selected":e.value===a?`true`:`false`,onClick:()=>f(e.value)},(0,p.createElement)(`span`,null,e.label),e.value===a?(0,p.createElement)(Ee,{className:`zt-md-code-language-picker-option-check`,size:14,strokeWidth:2,"aria-hidden":`true`}):null)):(0,p.createElement)(`div`,{className:`zt-md-code-language-picker-empty`},`-`)))))},Ov=class{constructor(e,t,n){this.currentCodeBlockPosition=null,this.currentPreElement=null,this.currentRenderedLanguage=null,this.hasPositionContext=!1,this.repositionScheduler=mv(()=>{this.hasPositionContext&&this.updateOverlayPosition()}),this.view=e,this.messages=t,this.portalContainer=n,this.editorWrapper=lv(e.dom),this.host=document.createElement(`span`),this.host.className=`zt-md-code-language-picker-host`,this.hostRoot=(0,jn.createRoot)(this.host),this.repositionScheduler.bindGlobal(),this.repositionScheduler.bindWrapper(this.editorWrapper),this.update(e)}applyLanguage(e){if(this.currentCodeBlockPosition===null)return;let t=this.view.state.doc.nodeAt(this.currentCodeBlockPosition);if(!t||t.type.name!==hv)return;let n=xv(e),r={...t.attrs,language:n};if(xv(String(t.attrs.language??``))===n)return;let i=this.view.state.tr.setNodeMarkup(this.currentCodeBlockPosition,t.type,r,t.marks);this.view.dispatch(i),this.view.focus()}render(e){this.currentRenderedLanguage!==null&&this.currentRenderedLanguage===e||(this.hostRoot.render((0,p.createElement)(Dv,{currentLanguage:e,messages:this.messages,portalContainer:this.portalContainer,onSelectLanguage:e=>this.applyLanguage(e)})),this.host.dataset.mounted=`true`,this.currentRenderedLanguage=e)}detach(){this.hostRoot.render(null),delete this.host.dataset.mounted,this.host.remove(),this.currentCodeBlockPosition=null,this.currentPreElement=null,this.currentRenderedLanguage=null,this.hasPositionContext=!1}updateOverlayPosition(){if(!this.editorWrapper||!this.currentPreElement||this.host.parentElement!==this.portalContainer)return;let e=this.currentPreElement.getBoundingClientRect(),t=dv(e,this.editorWrapper),n=pv({wrapper:this.editorWrapper,anchor:{anchorLeftInContent:t.anchorLeftInContent+e.width-_v,anchorTopInContent:t.anchorTopInContent+e.height-vv,anchorBottomInContent:t.anchorTopInContent+e.height-vv},overlaySize:{width:96},placement:`top`,offsetY:0,boundaryInset:2},this.portalContainer);this.host.style.left=`${n.left}px`,this.host.style.top=`${n.top}px`}update(e){if(this.view=e,!Ev(e)||!this.editorWrapper){this.detach();return}let t=wv(e);if(!t){this.detach();return}let n=Tv(e,t.position);if(!n){this.detach();return}this.host.parentElement!==this.portalContainer&&this.portalContainer.append(this.host);let r=xv(String(t.node.attrs.language??``)),i=this.currentCodeBlockPosition===t.position&&this.currentPreElement===n&&this.currentRenderedLanguage!==null&&this.currentRenderedLanguage===r;this.currentCodeBlockPosition=t.position,this.currentPreElement=n,this.hasPositionContext=!0,this.updateOverlayPosition(),this.repositionScheduler.schedule(),!i&&this.render(r)}destroy(){this.detach(),this.repositionScheduler.destroy(),this.hostRoot.unmount()}},kv=(e,n)=>a.u(()=>new t.i({key:new t.a(gv),view:t=>new Ov(t,e,n)})),Av=`code_block`,jv=`a`,Mv=`zt-md-code-block-mod-a-select`,Nv=e=>e.key.toLowerCase()!==jv||e.defaultPrevented||e.altKey||e.shiftKey||!e.ctrlKey&&!e.metaKey,Pv=e=>{for(let t=e.depth;t>=0;--t){let n=e.node(t);if(n.type.name!==Av)continue;let r=t===0?0:e.before(t);return{codeBlockStart:r+1,codeBlockEnd:r+n.nodeSize-1}}return null},Fv=(e,n)=>{let r=e.state.selection.$from,i=Pv(r);if(!i)return!1;let a=e.state.tr.setSelection(t.c.create(e.state.doc,i.codeBlockStart,i.codeBlockEnd));return n.preventDefault(),e.dispatch(a),!0},Iv=a.u(()=>new t.i({key:new t.a(Mv),props:{handleKeyDown:(e,t)=>Nv(t)?!1:Fv(e,t)}})),Lv=`code_block`,Rv=`ZT_MD_CODE_BLOCK_PRISM`,zv=(e,t=[])=>e.flatMap(e=>{if(e.type===`element`){let n=[...t,...e.properties?.className??[]];return zv(e.children??[],n)}return[{text:e.value??``,className:t}]}),Bv=(e,t)=>t.listLanguages().includes(e),Vv=(e,t)=>{let i=[];return n.j(e=>e.type.name===Lv)(e).forEach(e=>{let n=String(e.node.attrs.language??``);if(!n||!Bv(n,t))return;let a=e.pos+1;zv(t.highlight(e.node.textContent,n).children).forEach(e=>{let t=a+e.text.length;e.className.length>0&&i.push(r.t.inline(a,t,{class:e.className.join(` `)})),a=t})}),r.n.create(e,i)},Hv=a.u(()=>{let e=$;return new t.i({key:new t.a(Rv),state:{init:(t,n)=>Vv(n.doc,e),apply:(t,n)=>t.docChanged?Vv(t.doc,e):n.map(t.mapping,t.doc)},props:{decorations(e){return this.getState(e)}}})}),Uv=`Expected a function`;function Wv(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Uv);return u.n(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),u.t(e,t,{leading:r,maxWait:t,trailing:i})}var Gv=class{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;constructor(e){this.#a=!1,this.onShow=()=>{},this.onHide=()=>{},this.#u=e=>{c.r(e,this.element,{placement:this.#r.placement??`top`,middleware:[c.i(),c.s(this.#s),c.c(this.#c),...this.#n],...this.#r}).then(({x:e,y:t})=>{Object.assign(this.element.style,{left:`${e}px`,top:`${t}px`})}).catch(console.error)},this.#d=e=>this.#i!==e.dom.parentElement,this.#f=(e,t)=>{let{state:n,composing:r}=e,{selection:i,doc:a}=n,{ranges:o}=i,s=Math.min(...o.map(e=>e.$from.pos)),u=Math.max(...o.map(e=>e.$to.pos)),d=t&&t.doc.eq(a)&&t.selection.eq(i);if(this.#a||=((this.#i??e.dom.parentElement??document.body).appendChild(this.element),!0),r||d)return;if(this.#o?.(),this.#o=void 0,!this.#t(e,t)){this.hide();return}let f={getBoundingClientRect:()=>l.u(e,s,u),contextElement:e.dom};this.#d(e)?this.#o=c.n(f,this.element,()=>this.#u(f)):this.#u(f),this.show()},this.update=(e,t)=>{this.#l(e,t)},this.#p=e=>{let{doc:n,selection:r}=e.state,{empty:i,from:a,to:o}=r,s=!n.textBetween(a,o).length&&e.state.selection instanceof t.c,c=this.element.contains(document.activeElement),l=!e.hasFocus()&&!c,u=!e.editable;return!(l||i||s||u)},this.destroy=()=>{this.#o?.(),this.#l.cancel()},this.show=(e,t)=>{if(this.element.dataset.show=`true`,e){this.#o?.(),this.#o=void 0;let n={...e,contextElement:t?.dom};t&&this.#d(t)?this.#o=c.n(n,this.element,()=>this.#u(n)):this.#u(n)}this.onShow()},this.hide=()=>{this.element.dataset.show!==`false`&&(this.element.dataset.show=`false`,this.onHide())},this.element=e.content,this.#e=e.debounce??200,this.#t=e.shouldShow??this.#p,this.#s=e.offset,this.#c=e.shift,this.#n=e.middleware??[],this.#r=e.floatingUIOptions??{},this.#i=e.root,this.element.dataset.show=`false`,this.#l=Wv(this.#f,this.#e)}#u;#d;#f;#p},Kv=`zt-md-selection-tooltip`,qv=e=>[{command:`strong`,icon:Te,title:e.selectionTooltipStrongTitle,markNames:[`strong`]},{command:`em`,icon:Ue,title:e.selectionTooltipEmTitle,markNames:[`em`,`emphasis`]},{command:`strike`,icon:Qe,title:e.selectionTooltipStrikeTitle,markNames:[`strike_through`,`strikeThrough`]},{command:`inlineCode`,icon:Ae,title:e.selectionTooltipInlineCodeTitle,markNames:[`inlineCode`,`code_inline`]},{command:`link`,icon:We,title:e.selectionTooltipLinkTitle,markNames:[`link`]}],Jv=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,Yv=(e,t)=>{let n=e.state.schema.marks,r=t.find(e=>n[e]);return r?n[r]??null:null},Xv=(e,t)=>{let{from:n,to:r}=e.selection;return e.doc.rangeHasMark(n,r,t)},Zv=(e,t)=>{let{from:n,to:r}=e.selection,i=``;return e.doc.nodesBetween(n,r,e=>{let n=e.marks.find(e=>e.type===t);return n?(i=typeof n.attrs.href==`string`?n.attrs.href:``,!1):!0}),i},Qv=e=>{i.O(e.markType)(e.view.state,e.view.dispatch,e.view),e.view.focus()},$v=e=>{e.toggleLinkPopover(e.view)},ey=(e,t)=>{({strong:Qv,em:Qv,strike:Qv,inlineCode:Qv,link:$v})[e](t)},ty=(e,t,n,r,i)=>{let a=document.createElement(`button`);a.type=`button`,a.className=`zt-md-selection-tooltip-button`,a.dataset.command=e.command,a.title=e.title,a.setAttribute(`aria-label`,e.title);let o=document.createElement(`span`);o.className=`zt-md-selection-tooltip-button-icon`;let s=(0,jn.createRoot)(o);return s.render((0,p.createElement)(e.icon,{size:14,strokeWidth:2})),i.push(s),a.append(o),a.addEventListener(`mousedown`,e=>{e.preventDefault()}),a.addEventListener(`click`,i=>{i.preventDefault();let a=n();!a||a.state.selection.empty||ey(e.command,{view:a,markType:t,toggleLinkPopover:r})}),a},ny=(e,t,n,r,i)=>{let a=document.createElement(`div`);return a.className=`zt-md-selection-tooltip`,t.forEach(t=>{let o=Yv(e,t.markNames);o&&t.command!==`link`&&a.append(ty(t,o,n,r,i))}),a},ry=e=>{let[t,n]=(0,p.useState)(``),r=(0,p.useRef)(null);cv(e.open,()=>{e.onOpenChange(!1)});let i=e=>{e.preventDefault()},a=t=>{let n=e.getCurrentView();if(!n||n.state.selection.empty){e.onOpenChange(!1);return}let r=Yv(n,[`link`]);if(!r){e.onOpenChange(!1);return}let{from:i,to:a}=n.state.selection,o=n.state.tr.removeMark(i,a,r);t&&o.addMark(i,a,r.create({href:t})),n.dispatch(o.scrollIntoView()),e.onOpenChange(!1),n.focus()};return(0,p.useEffect)(()=>{if(!e.open)return;let t=e.getCurrentView(),n=t?Yv(t,[`link`]):null;(!t||!n||t.state.selection.empty)&&e.onOpenChange(!1)},[e.open,e.getCurrentView,e.onOpenChange]),(0,p.useEffect)(()=>{e.open&&r.current?.focus()},[e.open]),(0,p.createElement)(Q_,{open:e.open,onOpenChange:t=>{if(!t){e.onOpenChange(!1);return}let r=e.getCurrentView(),i=r?Yv(r,[`link`]):null;if(!r||!i||r.state.selection.empty){e.onOpenChange(!1);return}n(Zv(r.state,i)),e.onOpenChange(!0)}},(0,p.createElement)($_,{asChild:!0},(0,p.createElement)(`button`,{ref:e.triggerRef,type:`button`,className:`zt-md-selection-tooltip-button`,"data-command":`link`,title:e.messages.selectionTooltipLinkTitle,"aria-label":e.messages.selectionTooltipLinkTitle,onMouseDown:i},(0,p.createElement)(`span`,{className:`zt-md-selection-tooltip-button-icon`},(0,p.createElement)(We,{size:e.iconSize,strokeWidth:e.iconStrokeWidth})))),(0,p.createElement)(ev,{container:e.portalContainer,align:`center`,sideOffset:8,className:`zt-md-selection-link-popover w-fit min-w-0 gap-0 p-2`,onOpenAutoFocus:e=>{e.preventDefault(),requestAnimationFrame(()=>{r.current?.focus()})},onCloseAutoFocus:e=>e.preventDefault()},(0,p.createElement)(`div`,{className:`zt-md-selection-link-popover-row`},(0,p.createElement)(`input`,{ref:r,type:`text`,value:t,placeholder:e.messages.selectionLinkInputPlaceholder,className:`zt-md-selection-link-popover-input`,onChange:e=>n(e.currentTarget.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),a(t.trim()))}}),(0,p.createElement)(Vc,{type:`button`,variant:`ghost`,size:`icon-sm`,className:`zt-md-selection-link-popover-action cursor-pointer bg-transparent hover:bg-transparent focus-visible:ring-0`,onMouseDown:i,onClick:()=>a(t.trim()),"aria-label":e.messages.selectionLinkSaveAriaLabel},(0,p.createElement)(Ee,{size:e.iconSize,strokeWidth:e.iconStrokeWidth})),(0,p.createElement)(Vc,{type:`button`,variant:`ghost`,size:`icon-sm`,className:`zt-md-selection-link-popover-action cursor-pointer bg-transparent hover:bg-transparent focus-visible:ring-0`,onMouseDown:i,onClick:()=>a(``),"aria-label":e.messages.selectionLinkRemoveAriaLabel},(0,p.createElement)(it,{size:e.iconSize,strokeWidth:e.iconStrokeWidth})))))},iy=(e,t,n)=>{n.forEach(n=>{let r=Yv(t,n.markNames);if(!r)return;let i=e.querySelector(`[data-command="${n.command}"]`);i instanceof HTMLButtonElement&&(i.dataset.active=Xv(t.state,r)?`true`:`false`)})},ay=e=>{let{from:t,to:n}=e.state.selection,r=!1;return e.state.doc.nodesBetween(t,n,e=>e.type.name===`code_block`?(r=!0,!1):!0),r},oy=(e,t)=>n=>{let{selection:r,doc:i}=n.state,a=e.contains(document.activeElement);return!Jv(n)||r.empty||!n.hasFocus()&&!a&&!t()||ay(n)?!1:e.childElementCount>0&&i.textBetween(r.from,r.to).trim().length>0},sy=(e,t,n)=>{let r=qv(n),i=e,a=!1,o=[],s=document.createElement(`span`),c=null,l=(0,jn.createRoot)(s),u=e=>{a!==e&&(a=e,f())},d=e=>{e.state.selection.empty||u(!a)},f=()=>{l.render((0,p.createElement)(ry,{getCurrentView:()=>i,portalContainer:t,iconSize:14,iconStrokeWidth:2,triggerRef:e=>{c=e},open:a,onOpenChange:u,messages:n}))},m=ny(e,r,()=>i,d,o);Yv(e,[`link`])&&(m.append(s),f());let h=new Gv({content:m,debounce:80,offset:8,root:t,shouldShow:oy(m,()=>a),floatingUIOptions:{placement:`top`}});return{update:(e,t)=>{if(i=e,i.state.selection.empty&&u(!1),iy(m,i,r),c){let e=Yv(i,[`link`]);c.dataset.active=e&&Xv(i.state,e)?`true`:`false`}h.update(i,t)},destroy:()=>{i=null,l.unmount(),o.splice(0).forEach(e=>{e.unmount()}),h.destroy(),m.remove()}}},cy=(e,n)=>a.u(()=>new t.i({key:new t.a(Kv),view:t=>sy(t,e,n)})),ly=(e,t)=>{if(!(!e||typeof e!=`object`))return e[t]},uy=(e,t)=>e(t.state,t.dispatch,t),dy=e=>{let t=e?.state?.selection?.$from;if(!t)return!1;for(let e=t.depth;e>0;--e)if(t.node(e)?.type?.name===`table`)return!0;return!1},fy=(e,t)=>{let n=e?.state?.doc;if(!n||typeof t!=`number`)return-1;let r=Math.min(Math.max(t,0),n.content.size),i=n.resolve(r);for(let e=i.depth;e>0;--e)if(i.node(e)?.type?.name===`table`)return i.before(e);return-1},py=(e,t,n,r)=>{let i=e?.state?.schema?.nodes;if(!i)return null;let a=i.table,o=i.table_header_row,s=i.table_row,c=i.table_header,l=i.table_cell;if(!a||!o||!s||!c||!l)return null;let u=Math.max(1,t),d=Math.max(1,n),f=Array.from({length:u},(e,t)=>{let n=r&&t===0,i=n?o:s,a=n?c:l,u=Array.from({length:d},()=>a.createAndFill()).filter(Boolean);return i.create(null,u)});return a.create(null,f)},my=async e=>{if(!e?.state||!e?.dispatch||dy(e))return!1;let t=e.state.selection.from,n=py(e,3,3,!0);if(!n)return!1;e.dispatch(e.state.tr.replaceSelectionWith(n).scrollIntoView());let r=fy(e,t);if(r<0&&t>0&&(r=fy(e,t-1)),r<0)return!0;let i=r+2;if(i>e.state.doc.content.size)return!0;let a=ly(await Promise.resolve().then(()=>require(`./state-CHAiIqOA.cjs`)).then(e=>e.t),`TextSelection`);if(!a||typeof a.near!=`function`)return!0;let o=a.near(e.state.doc.resolve(i),1);return e.dispatch(e.state.tr.setSelection(o).scrollIntoView()),e.focus(),!0},hy=(e,t)=>{let n=e?.state?.selection?.$from;if(!n||!e?.dispatch)return!1;for(let r=n.depth;r>0;--r){let i=n.node(r);if(i?.type?.name!==`list_item`)continue;if(!i.type?.spec?.attrs?.checked)return!1;let a=n.before(r);return e.dispatch(e.state.tr.setNodeMarkup(a,void 0,{...i.attrs,checked:t})),!0}return!1},gy=(e,t)=>{let n=e?.state?.schema?.marks??{},r=t.find(e=>n[e]);return r?n[r]??null:null},_y=async(e,t)=>{if(!e?.state||!e?.dispatch)return!1;let n=await Promise.resolve().then(()=>require(`./commands-CDrea4WB.cjs`)).then(e=>e.t),r=await Promise.resolve().then(()=>require(`./schema-list-bL8FNes5.cjs`)).then(e=>e.t),i=ly(n,`setBlockType`),a=ly(n,`wrapIn`),o=ly(n,`toggleMark`),s=ly(r,`wrapInList`);if(typeof i!=`function`||typeof a!=`function`||typeof s!=`function`||typeof o!=`function`)return!1;let c=e.state.schema?.nodes??{},l={heading1:1,heading2:2,heading3:3,heading4:4,heading5:5,heading6:6},u={bulletList:`bullet_list`,orderedList:`ordered_list`};if(t===`paragraph`){let t=c.paragraph;return t?uy(i(t),e):!1}if(t in l){let n=c.heading,r=l[t];return!n||typeof r!=`number`?!1:uy(i(n,{level:r}),e)}if(t===`blockquote`){let t=c.blockquote;return t?uy(a(t),e):!1}if(t===`taskList`){let t=c.bullet_list;return!t||!uy(s(t),e)?!1:hy(e,!1)}if(t===`inlineCode`){let t=gy(e,[`inlineCode`,`code_inline`]);return t?uy(o(t),e):!1}if(t===`codeBlock`){let t=c.code_block;return t?uy(i(t,{language:`text`}),e):!1}if(t===`mathBlock`){let t=c.math_block;if(!t||!uy(i(t),e))return!1;let n=ly(await Promise.resolve().then(()=>require(`./state-CHAiIqOA.cjs`)).then(e=>e.t),`NodeSelection`);if(!n||typeof n.create!=`function`)return!0;let r=e.state.selection?.$from;if(!r)return!0;let a=null;for(let e=r.depth;e>0;--e)if(r.node(e)?.type?.name===`math_block`){a=r.before(e);break}if(a===null)return!0;let o=n.create(e.state.doc,a);return e.dispatch(e.state.tr.setSelection(o).scrollIntoView()),!0}if(t===`table`)return my(e);if(t in u){let n=c[u[t]];return n?uy(s(n),e):!1}return!1},vy=[{id:`paragraph`,label:`普通文本`,group:`标题`,icon:`Type`,command:`paragraph`},{id:`heading-1`,label:`标题 1`,group:`标题`,icon:`Heading1`,command:`heading1`},{id:`heading-2`,label:`标题 2`,group:`标题`,icon:`Heading2`,command:`heading2`},{id:`heading-3`,label:`标题 3`,group:`标题`,icon:`Heading3`,command:`heading3`},{id:`heading-4`,label:`标题 4`,group:`标题`,icon:`Heading4`,command:`heading4`},{id:`heading-5`,label:`标题 5`,group:`标题`,icon:`Heading5`,command:`heading5`},{id:`heading-6`,label:`标题 6`,group:`标题`,icon:`Heading6`,command:`heading6`},{id:`bullet-list`,label:`无序列表`,group:`列表`,icon:`List`,command:`bulletList`},{id:`ordered-list`,label:`有序列表`,group:`列表`,icon:`ListOrdered`,command:`orderedList`},{id:`task-list`,label:`任务列表`,group:`列表`,icon:`ListTodo`,command:`taskList`},{id:`blockquote`,label:`引用块`,group:`插入`,icon:`TextQuote`,command:`blockquote`},{id:`inline-code`,label:`行内代码`,group:`插入`,icon:`Code`,command:`inlineCode`},{id:`code-block`,label:`代码块`,group:`插入`,icon:`SquareCode`,command:`codeBlock`},{id:`math-block`,label:`公式块`,group:`插入`,icon:`Sigma`,command:`mathBlock`},{id:`table`,label:`表格`,group:`插入`,icon:`Table`,command:`table`},{id:`image`,label:`图片`,group:`媒体`,icon:`Image`,command:`image`}],yy=[{id:`paragraph`,label:`Paragraph`,group:`Headings`,icon:`Type`,command:`paragraph`},{id:`heading-1`,label:`Heading 1`,group:`Headings`,icon:`Heading1`,command:`heading1`},{id:`heading-2`,label:`Heading 2`,group:`Headings`,icon:`Heading2`,command:`heading2`},{id:`heading-3`,label:`Heading 3`,group:`Headings`,icon:`Heading3`,command:`heading3`},{id:`heading-4`,label:`Heading 4`,group:`Headings`,icon:`Heading4`,command:`heading4`},{id:`heading-5`,label:`Heading 5`,group:`Headings`,icon:`Heading5`,command:`heading5`},{id:`heading-6`,label:`Heading 6`,group:`Headings`,icon:`Heading6`,command:`heading6`},{id:`bullet-list`,label:`Bullet list`,group:`Lists`,icon:`List`,command:`bulletList`},{id:`ordered-list`,label:`Ordered list`,group:`Lists`,icon:`ListOrdered`,command:`orderedList`},{id:`task-list`,label:`Task list`,group:`Lists`,icon:`ListTodo`,command:`taskList`},{id:`blockquote`,label:`Blockquote`,group:`Insert`,icon:`TextQuote`,command:`blockquote`},{id:`inline-code`,label:`Inline code`,group:`Insert`,icon:`Code`,command:`inlineCode`},{id:`code-block`,label:`Code block`,group:`Insert`,icon:`SquareCode`,command:`codeBlock`},{id:`math-block`,label:`Math block`,group:`Insert`,icon:`Sigma`,command:`mathBlock`},{id:`table`,label:`Table`,group:`Insert`,icon:`Table`,command:`table`},{id:`image`,label:`Image`,group:`Media`,icon:`Image`,command:`image`}],by=(e,t=`zh-CN`)=>e?.items&&e.items.length>0?e.items:t===`en-US`?yy:vy,xy=e=>{let t=e?.state?.selection?.$from;if(!t)return!1;let n=String(t.parent?.type?.name??``);if(n.includes(`code`)||n===`math_block`)return!0;for(let e=t.depth;e>0;--e){let n=String(t.node(e)?.type?.name??``);if(n===`table`||n===`table_cell`||n===`table_header`)return!0}return!1},Sy=e=>{let t=e?.state,n=t?.selection?.$from;if(!t||!n)return``;let r=n.start(),i=n.pos;return t.doc.textBetween(r,i,`
|
|
265
|
+
|(?![\\s\\S])))+`,`m`),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})})(e)}gf.displayName=`go`,gf.aliases=[];function gf(e){e.register(sf),e.languages.go=e.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore(`go`,`string`,{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go[`class-name`]}_f.displayName=`ini`,_f.aliases=[];function _f(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:`selector`},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:`attr-name`},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:`attr-value`,inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}vf.displayName=`java`,vf.aliases=[];function vf(e){e.register(sf),(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=`(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*`,r={pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),lookbehind:!0,inside:r.inside},{pattern:RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)`+n+`[A-Z]\\w*\\b`),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore(`java`,`string`,{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:`string`},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore(`java`,`class-name`,{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:`punctuation`},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(`(\\bimport\\s+)`+n+`(?:[A-Z]\\w*|\\*)(?=\\s*;)`),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(`(\\bimport\\s+static\\s+)`+n+`(?:\\w+|\\*)(?=\\s*;)`),lookbehind:!0,alias:`static`,inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(`(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(e)}yf.displayName=`regex`,yf.aliases=[];function yf(e){(function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:`escape`},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:`class-name`},i={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:`class-name`},a=`(?:[^\\\\-]|`+n.source+`)`,o=RegExp(a+`-`+a),s={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:`variable`};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:`operator`},"char-class-punctuation":{pattern:/^\[|\]$/,alias:`punctuation`},range:{pattern:o,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:`operator`}}},"special-escape":t,"char-set":i,escape:n}},"special-escape":t,"char-set":r,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:`keyword`},{pattern:/\\k<[^<>']+>/,alias:`keyword`,inside:{"group-name":s}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:`function`},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:`punctuation`,inside:{"group-name":s}},{pattern:/\)/,alias:`punctuation`}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:`number`},alternation:{pattern:/\|/,alias:`keyword`}}})(e)}bf.displayName=`javascript`,bf.aliases=[`js`];function bf(e){e.register(sf),e.languages.javascript=e.languages.extend(`clike`,{"class-name":[e.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),e.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),e.languages.markup&&(e.languages.markup.tag.addInlined(`script`,`javascript`),e.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),e.languages.js=e.languages.javascript}xf.displayName=`json`,xf.aliases=[`webmanifest`];function xf(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:`keyword`}},e.languages.webmanifest=e.languages.json}Sf.displayName=`kotlin`,Sf.aliases=[`kt`,`kts`];function Sf(e){e.register(sf),(function(e){e.languages.kotlin=e.languages.extend(`clike`,{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin[`class-name`];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:`punctuation`},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore(`kotlin`,`string`,{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:`multiline`,inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:`singleline`,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore(`kotlin`,`keyword`,{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:`builtin`}}),e.languages.insertBefore(`kotlin`,`function`,{label:{pattern:/\b\w+@|@\w+\b/,alias:`symbol`}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin})(e)}Cf.displayName=`less`,Cf.aliases=[];function Cf(e){e.register(mf),e.languages.less=e.languages.extend(`css`,{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore(`less`,`property`,{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:`function`}})}wf.displayName=`lua`,wf.aliases=[];function wf(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}Tf.displayName=`makefile`,Tf.aliases=[];function Tf(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:`builtin`},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:`symbol`,inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}Ef.displayName=`yaml`,Ef.aliases=[`yml`];function Ef(e){(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r=`(?:`+n.source+`(?:[ ]+`+t.source+`)?|`+t.source+`(?:[ ]+`+n.source+`)?)`,i=`(?:[^\\s\\x00-\\x08\\x0e-\\x1f!"#%&'*,\\-:>?@[\\]\`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \\t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*`.replace(/<PLAIN>/g,function(){return`[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]`}),a=`"(?:[^"\\\\\\r\\n]|\\\\.)*"|'(?:[^'\\\\\\r\\n]|\\\\.)*'`;function o(e,t){t=(t||``).replace(/m/g,``)+`m`;var n=`([:\\-,[{]\\s*(?:\\s<<prop>>[ \\t]+)?)(?:<<value>>)(?=[ \\t]*(?:$|,|\\]|\\}|(?:[\\r\\n]\\s*)?#))`.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return e});return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(`([\\-:]\\s*(?:\\s<<prop>>[ \\t]+)?[|>])[ \\t]*(?:((?:\\r?\\n|\\r)[ \\t]+)\\S[^\\r\\n]*(?:\\2[^\\r\\n]+)*)`.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:`string`},comment:/#.*/,key:{pattern:RegExp(`((?:^|[:\\-,[{\\r\\n?])[ \\t]*(?:<<prop>>[ \\t]+)?)<<key>>(?=\\s*:\\s)`.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return`(?:`+i+`|`+a+`)`})),lookbehind:!0,greedy:!0,alias:`atrule`},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:`important`},datetime:{pattern:o(`\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \\t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \\t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?`),lookbehind:!0,alias:`number`},boolean:{pattern:o(`false|true`,`i`),lookbehind:!0,alias:`important`},null:{pattern:o(`null|~`,`i`),lookbehind:!0,alias:`important`},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(`[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)`,`i`),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(e)}Df.displayName=`markdown`,Df.aliases=[`md`];function Df(e){e.register(pf),(function(e){var t=`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var r="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",i=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,function(){return r}),a=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+i+a+`(?:`+i+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+i+a+`)(?:`+i+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+i+`)`+a+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+i+`$`),inside:{"table-header":{pattern:RegExp(r),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:n(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(`(~~?)(?:(?!~)<inner>)+\\2`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:[`code`,`keyword`]},url:{pattern:n(`!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach(function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add(`after-tokenize`,function(e){if(e.language!==`markdown`&&e.language!==`md`)return;function t(e){if(!(!e||typeof e==`string`))for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i.type!==`code`){t(i.content);continue}var a=i.content[1],o=i.content[3];if(a&&o&&a.type===`code-language`&&o.type===`code-block`&&typeof a.content==`string`){var s=a.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`);s=(/[a-z][\w-]*/i.exec(s)||[``])[0].toLowerCase();var c=`language-`+s;o.alias?typeof o.alias==`string`?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}}t(e.tokens)}),e.hooks.add(`wrap`,function(t){if(t.type===`code-block`){for(var n=``,r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],o=/language-(.+)/.exec(a);if(o){n=o[1];break}}var s=e.languages[n];if(s)t.content=e.highlight(t.content.value,s,n);else if(n&&n!==`none`&&e.plugins.autoloader){var c=`md-`+new Date().valueOf()+`-`+Math.floor(Math.random()*0x2386f26fc10000);t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}}),RegExp(e.languages.markup.tag.pattern.source,`gi`),String.fromCodePoint||String.fromCharCode,e.languages.md=e.languages.markdown})(e)}Of.displayName=`objectivec`,Of.aliases=[`objc`];function Of(e){e.register(cf),e.languages.objectivec=e.languages.extend(`c`,{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec[`class-name`],e.languages.objc=e.languages.objectivec}kf.displayName=`perl`,kf.aliases=[];function kf(e){(function(e){var t=`(?:\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)|\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\}|\\[(?:[^[\\]\\\\]|\\\\[\\s\\S])*\\]|<(?:[^<>\\\\]|\\\\[\\s\\S])*>)`;e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(`\\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\\s*(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`([a-zA-Z0-9])(?:(?!\\2)[^\\\\]|\\\\[\\s\\S])*\\2`,t].join(`|`)+`)`),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(`\\b(?:m|qr)(?![a-zA-Z0-9])\\s*(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`([a-zA-Z0-9])(?:(?!\\2)[^\\\\]|\\\\[\\s\\S])*\\2`,t].join(`|`)+`)[msixpodualngc]*`),greedy:!0},{pattern:RegExp(`(^|[^-])\\b(?:s|tr|y)(?![a-zA-Z0-9])\\s*(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\2)[^\\\\]|\\\\[\\s\\S])*\\2(?:(?!\\2)[^\\\\]|\\\\[\\s\\S])*\\2`,`([a-zA-Z0-9])(?:(?!\\3)[^\\\\]|\\\\[\\s\\S])*\\3(?:(?!\\3)[^\\\\]|\\\\[\\s\\S])*\\3`,t+`\\s*`+t].join(`|`)+`)[msixpodualngcer]*`),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:`symbol`},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:`string`},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}Af.displayName=`markup-templating`,Af.aliases=[];function Af(e){e.register(pf),(function(e){function t(e,t){return`___`+e.toUpperCase()+t+`___`}Object.defineProperties(e.languages[`markup-templating`]={},{buildPlaceholders:{value:function(n,r,i,a){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(i,function(e){if(typeof a==`function`&&!a(e))return e;for(var i=o.length,s;n.code.indexOf(s=t(r,i))!==-1;)++i;return o[i]=e,s}),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language!==r||!n.tokenStack)return;n.grammar=e.languages[r];var i=0,a=Object.keys(n.tokenStack);function o(s){for(var c=0;c<s.length&&!(i>=a.length);c++){var l=s[c];if(typeof l==`string`||l.content&&typeof l.content==`string`){var u=a[i],d=n.tokenStack[u],f=typeof l==`string`?l:l.content,p=t(r,u),m=f.indexOf(p);if(m>-1){++i;var h=f.substring(0,m),g=new e.Token(r,e.tokenize(d,n.grammar),`language-`+r,d),_=f.substring(m+p.length),v=[];h&&v.push.apply(v,o([h])),v.push(g),_&&v.push.apply(v,o([_])),typeof l==`string`?s.splice.apply(s,[c,1].concat(v)):l.content=v}}else l.content&&o(l.content)}return s}o(n.tokens)}}})})(e)}jf.displayName=`php`,jf.aliases=[];function jf(e){e.register(Af),(function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:`boolean`},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:`important`},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:`class-name`},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:`function`},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:`type-casting`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:`type-declaration`,greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:`type-declaration`,greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:`class-name-fully-qualified`,greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:`type-declaration`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-declaration`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:[`class-name-fully-qualified`,`static-context`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-hint`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:[`class-name-fully-qualified`,`return-type`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:`nowdoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:`backtick-quoted-string`,greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:`single-quoted-string`,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:`double-quoted-string`,greedy:!0,inside:{interpolation:o}}];e.languages.insertBefore(`php`,`variable`,{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:`class-name`,greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:[`class-name`,`class-name-fully-qualified`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:`punctuation`}}}}),e.hooks.add(`before-tokenize`,function(t){/<\?/.test(t.code)&&e.languages[`markup-templating`].buildPlaceholders(t,`php`,/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add(`after-tokenize`,function(t){e.languages[`markup-templating`].tokenizePlaceholders(t,`php`)})})(e)}Mf.displayName=`python`,Mf.aliases=[`py`];function Mf(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python[`string-interpolation`].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}Nf.displayName=`r`,Nf.aliases=[];function Nf(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:`operator`},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}Pf.displayName=`ruby`,Pf.aliases=[`rb`];function Pf(e){e.register(sf),(function(e){e.languages.ruby=e.languages.extend(`clike`,{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore(`ruby`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:`punctuation`}}};delete e.languages.ruby.function;var n=`(?:`+[`([^a-zA-Z0-9\\s{(\\[<=])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`\\((?:[^()\\\\]|\\\\[\\s\\S]|\\((?:[^()\\\\]|\\\\[\\s\\S])*\\))*\\)`,`\\{(?:[^{}\\\\]|\\\\[\\s\\S]|\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\})*\\}`,`\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S]|\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\])*\\]`,`<(?:[^<>\\\\]|\\\\[\\s\\S]|<(?:[^<>\\\\]|\\\\[\\s\\S])*>)*>`].join(`|`)+`)`,r=`(?:"(?:\\\\.|[^"\\\\\\r\\n])*"|(?:\\b[a-zA-Z_]\\w*|[^\\s\\0-\\x7F]+)[?!]?|\\$.)`;e.languages.insertBefore(`ruby`,`keyword`,{"regex-literal":[{pattern:RegExp(`%r`+n+`[egimnosux]{0,6}`),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(`(^|[^:]):`+r),lookbehind:!0,greedy:!0},{pattern:RegExp(`([\\r\\n{(,][ \\t]*)`+r+`(?=:(?!:))`),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore(`ruby`,`string`,{"string-literal":[{pattern:RegExp(`%[qQiIwWs]?`+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(`%x`+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:`string`}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:`string`}}}]}),delete e.languages.ruby.string,e.languages.insertBefore(`ruby`,`number`,{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby})(e)}Ff.displayName=`rust`,Ff.aliases=[];function Ff(e){(function(e){for(var t=`\\/\\*(?:[^*/]|\\*(?!\\/)|\\/(?!\\*)|<self>)*\\*\\/`,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return`[^\\s\\S]`}),e.languages.rust={comment:[{pattern:RegExp(`(^|[^\\\\])`+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:`attr-name`,inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:`punctuation`},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:`symbol`},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:`punctuation`},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:`function`},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:`class-name`},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:`namespace`},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:`namespace`,inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:`property`},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust[`closure-params`].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(e)}If.displayName=`sass`,If.aliases=[];function If(e){e.register(mf),(function(e){e.languages.sass=e.languages.extend(`css`,{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore(`sass`,`atrule`,{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore(`sass`,`property`,{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore(`sass`,`punctuation`,{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(e)}Lf.displayName=`scss`,Lf.aliases=[];function Lf(e){e.register(mf),e.languages.scss=e.languages.extend(`css`,{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:`important`},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore(`scss`,`atrule`,{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore(`scss`,`important`,{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore(`scss`,`function`,{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:`keyword`},placeholder:{pattern:/%[-\w]+/,alias:`selector`},statement:{pattern:/\B!(?:default|optional)\b/i,alias:`keyword`},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:`keyword`},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}Rf.displayName=`sql`,Rf.aliases=[];function Rf(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}zf.displayName=`swift`,zf.aliases=[];function zf(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(`(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:`punctuation`},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(`(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:`punctuation`},string:/[\s\S]+/}}],directive:{pattern:RegExp(`#(?:(?:elseif|if)\\b(?:[ ]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)`),alias:`property`,inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:`constant`},"other-directive":{pattern:/#\w+\b/,alias:`property`},attribute:{pattern:/@\w+/,alias:`atrule`},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:`function`},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:`important`},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:`constant`},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:`keyword`},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift[`string-literal`].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}Bf.displayName=`typescript`,Bf.aliases=[`ts`];function Bf(e){e.register(bf),(function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript})(e)}Vf.displayName=`basic`,Vf.aliases=[];function Vf(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}Hf.displayName=`vbnet`,Hf.aliases=[];function Hf(e){e.register(Vf),e.languages.vbnet=e.languages.extend(`basic`,{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}var Uf=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Uf.prototype.normal={},Uf.prototype.property={},Uf.prototype.space=void 0;function Wf(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Uf(n,r,t)}function Gf(e){return e.toLowerCase()}var Kf=class{constructor(e,t){this.attribute=t,this.property=e}};Kf.prototype.attribute=``,Kf.prototype.booleanish=!1,Kf.prototype.boolean=!1,Kf.prototype.commaOrSpaceSeparated=!1,Kf.prototype.commaSeparated=!1,Kf.prototype.defined=!1,Kf.prototype.mustUseProperty=!1,Kf.prototype.number=!1,Kf.prototype.overloadedBoolean=!1,Kf.prototype.property=``,Kf.prototype.spaceSeparated=!1,Kf.prototype.space=void 0;var qf=e.St({boolean:()=>Z,booleanish:()=>Yf,commaOrSpaceSeparated:()=>$f,commaSeparated:()=>Qf,number:()=>Q,overloadedBoolean:()=>Xf,spaceSeparated:()=>Zf}),Jf=0,Z=ep(),Yf=ep(),Xf=ep(),Q=ep(),Zf=ep(),Qf=ep(),$f=ep();function ep(){return 2**++Jf}var tp=Object.keys(qf),np=class extends Kf{constructor(e,t,n,r){let i=-1;if(super(e,t),rp(this,`space`,r),typeof n==`number`)for(;++i<tp.length;){let e=tp[i];rp(this,tp[i],(n&qf[e])===qf[e])}}};np.prototype.defined=!0;function rp(e,t,n){n&&(e[t]=n)}function ip(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new np(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Gf(r)]=r,n[Gf(a.attribute)]=r}return new Uf(t,n,e.space)}var ap=ip({properties:{ariaActiveDescendant:null,ariaAtomic:Yf,ariaAutoComplete:null,ariaBusy:Yf,ariaChecked:Yf,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:Zf,ariaCurrent:null,ariaDescribedBy:Zf,ariaDetails:null,ariaDisabled:Yf,ariaDropEffect:Zf,ariaErrorMessage:null,ariaExpanded:Yf,ariaFlowTo:Zf,ariaGrabbed:Yf,ariaHasPopup:null,ariaHidden:Yf,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Zf,ariaLevel:Q,ariaLive:null,ariaModal:Yf,ariaMultiLine:Yf,ariaMultiSelectable:Yf,ariaOrientation:null,ariaOwns:Zf,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:Yf,ariaReadOnly:Yf,ariaRelevant:null,ariaRequired:Yf,ariaRoleDescription:Zf,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:Yf,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function op(e,t){return t in e?e[t]:t}function sp(e,t){return op(e,t.toLowerCase())}var cp=ip({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Qf,acceptCharset:Zf,accessKey:Zf,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:Zf,autoFocus:Z,autoPlay:Z,blocking:Zf,capture:null,charSet:null,checked:Z,cite:null,className:Zf,cols:Q,colSpan:null,content:null,contentEditable:Yf,controls:Z,controlsList:Zf,coords:Q|Qf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:Xf,draggable:Yf,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:Zf,height:Q,hidden:Xf,high:Q,href:null,hrefLang:null,htmlFor:Zf,httpEquiv:Zf,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:Zf,itemRef:Zf,itemScope:Z,itemType:Zf,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Z,optimum:Q,pattern:null,ping:Zf,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:Zf,required:Z,reversed:Z,rows:Q,rowSpan:Q,sandbox:Zf,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:Yf,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:Yf,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Zf,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:Yf,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Z,disableRemotePlayback:Z,prefix:null,property:null,results:Q,security:null,unselectable:null},space:`html`,transform:sp}),lp=ip({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-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:$f,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:Zf,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:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,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:Qf,g2:Qf,glyphName:Qf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:$f,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,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:Q,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:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Zf,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$f,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$f,rev:$f,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$f,requiredFeatures:$f,requiredFonts:$f,requiredFormats:$f,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:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:$f,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$f,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$f,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:op}),up=ip({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()}}),dp=ip({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:sp}),fp=ip({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),pp=/[A-Z]/g,mp=/-[a-z]/g,hp=/^data[-\w.:]+$/i;function gp(e,t){let n=Gf(t),r=t,i=Kf;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&hp.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(mp,vp);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!mp.test(e)){let n=e.replace(pp,_p);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=np}return new i(r,t)}function _p(e){return`-`+e.toLowerCase()}function vp(e){return e.charAt(1).toUpperCase()}var yp=Wf([ap,cp,up,dp,fp],`html`),bp=Wf([ap,lp,up,dp,fp],`svg`);function xp(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}var Sp=/[#.]/g;function Cp(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){Sp.lastIndex=i;let e=Sp.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?a===`#`?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:`element`,tagName:o||t||`div`,properties:r,children:[]}}function wp(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Tp(e,t,n){let r=n?jp(n):void 0;function i(n,i,...a){let o;if(n==null){o={type:`root`,children:[]};let e=i;a.unshift(e)}else{o=Cp(n,t);let s=o.tagName.toLowerCase(),c=r?r.get(s):void 0;if(o.tagName=c||s,Ep(i))a.unshift(i);else for(let[t,n]of Object.entries(i))Dp(e,o.properties,t,n)}for(let e of a)Op(o.children,e);return o.type===`element`&&o.tagName===`template`&&(o.content={type:`root`,children:o.children},o.children=[]),o}return i}function Ep(e){if(typeof e!=`object`||!e||Array.isArray(e))return!0;if(typeof e.type!=`string`)return!1;let t=e,n=Object.keys(e);for(let e of n){let n=t[e];if(n&&typeof n==`object`){if(!Array.isArray(n))return!0;let e=n;for(let t of e)if(typeof t!=`number`&&typeof t!=`string`)return!0}}return!!(`children`in e&&Array.isArray(e.children))}function Dp(e,t,n,r){let i=gp(e,n),a;if(r!=null){if(typeof r==`number`){if(Number.isNaN(r))return;a=r}else a=typeof r==`boolean`?r:typeof r==`string`?i.spaceSeparated?wp(r):i.commaSeparated?xp(r):i.commaOrSpaceSeparated?wp(xp(r).join(` `)):kp(i,i.property,r):Array.isArray(r)?[...r]:i.property===`style`?Ap(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(kp(i,i.property,t));a=e}i.property===`className`&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Op(e,t){if(t!=null)if(typeof t==`number`||typeof t==`string`)e.push({type:`text`,value:String(t)});else if(Array.isArray(t))for(let n of t)Op(e,n);else if(typeof t==`object`&&`type`in t)t.type===`root`?Op(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}function kp(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||Gf(n)===Gf(t)))return!0}return n}function Ap(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(`: `));return t.join(`; `)}function jp(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var Mp=`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.solidColor.textArea.textPath`.split(`.`),Np=Tp(yp,`div`);Tp(bp,`g`,Mp);var Pp=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),Fp={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function Ip(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function Lp(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Rp(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function zp(e){return Rp(e)||Ip(e)}var Bp=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function Vp(t,n){let r=n||{},i=typeof r.additional==`string`?r.additional.charCodeAt(0):r.additional,a=[],o=0,s=-1,c=``,l,u;r.position&&(`start`in r.position||`indent`in r.position?(u=r.position.indent,l=r.position.start):l=r.position);let d=(l?l.line:0)||1,f=(l?l.column:0)||1,p=h(),m;for(o--;++o<=t.length;)if(m===10&&(f=(u?u[s]:0)||1),m=t.charCodeAt(o),m===38){let n=t.charCodeAt(o+1);if(n===9||n===10||n===12||n===32||n===38||n===60||Number.isNaN(n)||i&&n===i){c+=String.fromCharCode(m),f++;continue}let s=o+1,l=s,u=s,d;if(n===35){u=++l;let e=t.charCodeAt(u);e===88||e===120?(d=`hexadecimal`,u=++l):d=`decimal`}else d=`named`;let v=``,y=``,b=``,x=d===`named`?zp:d===`decimal`?Ip:Lp;for(u--;++u<=t.length;){let n=t.charCodeAt(u);if(!x(n))break;b+=String.fromCharCode(n),d===`named`&&Pp.includes(b)&&(v=b,y=e.ht(b))}let S=t.charCodeAt(u)===59;if(S){u++;let t=d===`named`?e.ht(b):!1;t&&(v=b,y=t)}let C=1+u-s,w=``;if(!(!S&&r.nonTerminated===!1))if(!b)d!==`named`&&g(4,C);else if(d===`named`){if(S&&!y)g(5,1);else if(v!==b&&(u=l+v.length,C=1+u-l,S=!1),!S){let e=v?1:3;if(r.attribute){let n=t.charCodeAt(u);n===61?(g(e,C),y=``):zp(n)?y=``:g(e,C)}else g(e,C)}w=y}else{S||g(2,C);let e=Number.parseInt(b,d===`hexadecimal`?16:10);if(Hp(e))g(7,C),w=`�`;else if(e in Fp)g(6,C),w=Fp[e];else{let t=``;Up(e)&&g(6,C),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),w=t+String.fromCharCode(e)}}if(w){_(),p=h(),o=u-1,f+=u-s+1,a.push(w);let e=h();e.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,w,{start:p,end:e},t.slice(s-1,u)),p=e}else b=t.slice(s-1,u),c+=b,f+=b.length,o=u-1}else m===10&&(d++,s++,f=0),Number.isNaN(m)?_():(c+=String.fromCharCode(m),f++);return a.join(``);function h(){return{line:d,column:f,offset:o+((l?l.offset:0)||0)}}function g(e,t){let n;r.warning&&(n=h(),n.column+=t,n.offset+=t,r.warning.call(r.warningContext||void 0,Bp[e],n,e))}function _(){c&&=(a.push(c),r.text&&r.text.call(r.textContext||void 0,c,{start:p,end:h()}),``)}}function Hp(e){return e>=55296&&e<=57343||e>1114111}function Up(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var Wp=0,Gp={},Kp={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++Wp}),e.__id},clone:function e(t,n){n||={};var r,i;switch(Kp.util.type(t)){case`Object`:if(i=Kp.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case`Array`:return i=Kp.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r);default:return t}}},languages:{plain:Gp,plaintext:Gp,text:Gp,txt:Gp,extend:function(e,t){var n=Kp.util.clone(Kp.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=Kp.languages;var i=r[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var c=r[e];return r[e]=a,Kp.languages.DFS(Kp.languages,function(t,n){n===c&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,r,i){i||={};var a=Kp.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],c=Kp.util.type(s);c===`Object`&&!i[a(s)]?(i[a(s)]=!0,e(s,n,null,i)):c===`Array`&&!i[a(s)]&&(i[a(s)]=!0,e(s,n,o,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Kp.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=Kp.tokenize(r.code,r.grammar),Kp.hooks.run(`after-tokenize`,r),qp.stringify(Kp.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new Xp;return Zp(i,i.head,e),Yp(e,i,t,i.head,0),$p(i)},hooks:{all:{},add:function(e,t){var n=Kp.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Kp.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:qp};function qp(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}function Jp(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function Yp(e,t,n,r,i,a){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var s=n[o];s=Array.isArray(s)?s:[s];for(var c=0;c<s.length;++c){if(a&&a.cause==o+`,`+c)return;var l=s[c],u=l.inside,d=!!l.lookbehind,f=!!l.greedy,p=l.alias;if(f&&!l.pattern.global){var m=l.pattern.toString().match(/[imsuy]*$/)[0];l.pattern=RegExp(l.pattern.source,m+`g`)}for(var h=l.pattern||l,g=r.next,_=i;g!==t.tail&&!(a&&_>=a.reach);_+=g.value.length,g=g.next){var v=g.value;if(t.length>e.length)return;if(!(v instanceof qp)){var y=1,b;if(f){if(b=Jp(h,_,e,d),!b||b.index>=e.length)break;var x=b.index,S=b.index+b[0].length,C=_;for(C+=g.value.length;x>=C;)g=g.next,C+=g.value.length;if(C-=g.value.length,_=C,g.value instanceof qp)continue;for(var w=g;w!==t.tail&&(C<S||typeof w.value==`string`);w=w.next)y++,C+=w.value.length;y--,v=e.slice(_,C),b.index-=_}else if(b=Jp(h,0,v,d),!b)continue;var x=b.index,T=b[0],ee=v.slice(0,x),E=v.slice(x+T.length),te=_+v.length;a&&te>a.reach&&(a.reach=te);var ne=g.prev;ee&&(ne=Zp(t,ne,ee),_+=ee.length),Qp(t,ne,y);var re=new qp(o,u?Kp.tokenize(T,u):T,p,T);if(g=Zp(t,ne,re),E&&Zp(t,g,E),y>1){var ie={cause:o+`,`+c,reach:te};Yp(e,t,n,g.prev,_,ie),a&&ie.reach>a.reach&&(a.reach=ie.reach)}}}}}}function Xp(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Zp(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function Qp(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function $p(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}var em=Kp;function tm(){}tm.prototype=em;var $=new tm;$.highlight=nm,$.register=rm,$.alias=im,$.registered=am,$.listLanguages=om,$.util.encode=cm,$.Token.stringify=sm;function nm(e,t){if(typeof e!=`string`)throw TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&typeof t==`object`)n=t;else{if(r=t,typeof r!=`string`)throw TypeError("Expected `string` for `name`, got `"+r+"`");if(Object.hasOwn($.languages,r))n=$.languages[r];else throw Error("Unknown language: `"+r+"` is not registered")}return{type:`root`,children:em.highlight.call($,e,n,r)}}function rm(e){if(typeof e!=`function`||!e.displayName)throw Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn($.languages,e.displayName)||e($)}function im(e,t){let n=$.languages,r={};typeof e==`string`?t&&(r[e]=t):r=e;let i;for(i in r)if(Object.hasOwn(r,i)){let e=r[i],t=typeof e==`string`?[e]:e,a=-1;for(;++a<t.length;)n[t[a]]=n[i]}}function am(e){if(typeof e!=`string`)throw TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn($.languages,e)}function om(){let e=$.languages,t=[],n;for(n in e)Object.hasOwn(e,n)&&typeof e[n]==`object`&&t.push(n);return t}function sm(e,t){if(typeof e==`string`)return{type:`text`,value:e};if(Array.isArray(e)){let n=[],r=-1;for(;++r<e.length;)e[r]!==null&&e[r]!==void 0&&e[r]!==``&&n.push(sm(e[r],t));return n}let n={attributes:{},classes:[`token`,e.type],content:sm(e.content,t),language:t,tag:`span`,type:e.type};return e.alias&&n.classes.push(...typeof e.alias==`string`?[e.alias]:e.alias),$.hooks.run(`wrap`,n),Np(n.tag+`.`+n.classes.join(`.`),lm(n.attributes),n.content)}function cm(e){return e}function lm(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=Vp(e[t]));return e}$.register(sf),$.register(cf),$.register(lf),$.register(uf),$.register(df),$.register(ff),$.register(pf),$.register(mf),$.register(hf),$.register(gf),$.register(_f),$.register(vf),$.register(yf),$.register(bf),$.register(xf),$.register(Sf),$.register(Cf),$.register(wf),$.register(Tf),$.register(Ef),$.register(Df),$.register(Of),$.register(kf),$.register(Af),$.register(jf),$.register(Mf),$.register(Nf),$.register(Pf),$.register(Ff),$.register(If),$.register(Lf),$.register(Rf),$.register(zf),$.register(Bf),$.register(Vf),$.register(Hf);function um({...e}){return(0,f.jsx)(d.Popover.Root,{"data-slot":`popover`,...e})}function dm({...e}){return(0,f.jsx)(d.Popover.Trigger,{"data-slot":`popover-trigger`,...e})}function fm({container:e,className:t,align:n=`center`,sideOffset:r=4,...i}){return(0,f.jsx)(d.Popover.Portal,{container:e??void 0,children:(0,f.jsx)(d.Popover.Content,{"data-slot":`popover-content`,align:n,sideOffset:r,className:ni(`z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,t),...i})})}var pm=new Set,mm=!1,hm=()=>typeof document<`u`,gm=()=>{Array.from(pm).forEach(e=>e())},_m=()=>{mm||!hm()||(document.addEventListener(`scroll`,gm,{capture:!0,passive:!0}),mm=!0)},vm=()=>{!mm||!hm()||(document.removeEventListener(`scroll`,gm,!0),mm=!1)},ym=e=>{if(!hm())return()=>void 0;let t=!0;return pm.add(e),_m(),()=>{t&&(t=!1,pm.delete(e),pm.size===0&&vm())}},bm=(e,t)=>{let n=(0,l.useRef)(t);(0,l.useEffect)(()=>{n.current=t},[t]),(0,l.useEffect)(()=>e?ym(()=>{n.current()}):void 0,[e])},xm=e=>e?e.closest(`.zt-md-editor`)??e:null,Sm=(e,t)=>{let n=typeof window>`u`?e.bottom:window.innerHeight,r=e.top,i=n-e.bottom;return i<t&&r>i?`top`:`bottom`},Cm=(e,t)=>{let n=t.getBoundingClientRect();return{anchorTopInContent:e.top-n.top+t.scrollTop,anchorBottomInContent:e.bottom-n.top+t.scrollTop,anchorLeftInContent:e.left-n.left+t.scrollLeft}},wm=e=>{let{wrapper:t,anchor:n,overlaySize:r,placement:i,offsetY:a,boundaryInset:o}=e,s=t.getBoundingClientRect(),c=t.scrollLeft+o,l=t.scrollLeft+t.clientWidth-r.width-o,u=Math.min(Math.max(n.anchorLeftInContent,c),Math.max(c,l)),d=i===`top`?n.anchorTopInContent-a:n.anchorBottomInContent+a;return{left:s.left+u-t.scrollLeft,top:s.top+d-t.scrollTop}},Tm=(e,t)=>{let n=wm(e),r=t.getBoundingClientRect();return{left:n.left-r.left,top:n.top-r.top}},Em=e=>{let t=0,n=null,r=null,i=()=>{typeof window>`u`||(t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{t=0,e()}))},a=()=>{window.addEventListener(`resize`,i),r||=ym(i)},o=()=>{window.removeEventListener(`resize`,i),r?.(),r=null},s=e=>{n!==e&&(n&&n.removeEventListener(`scroll`,i),n=e,n&&n.addEventListener(`scroll`,i,{passive:!0}))};return{schedule:i,bindGlobal:a,unbindGlobal:o,bindWrapper:s,destroy:()=>{typeof window<`u`&&t&&(window.cancelAnimationFrame(t),t=0),o(),s(null)}}},Dm=`code_block`,Om=`ZT_MD_CODE_BLOCK_LANGUAGE_PICKER`,km=104,Am=36,jm=`text`,Mm={javascript:`JavaScript`,typescript:`TypeScript`,jsx:`JSX`,tsx:`TSX`,json:`JSON`,html:`HTML`,css:`CSS`,bash:`Bash`,shell:`Shell`,sh:`Shell`,markdown:`Markdown`,md:`Markdown`,yaml:`YAML`,yml:`YAML`,sql:`SQL`,xml:`XML`},Nm=e=>e.trim().toLowerCase()||jm,Pm=e=>{let t=Nm(e);return Mm[t]??t},Fm=e=>{let t=$.listLanguages(),n=[...new Set(t.map(e=>Nm(e)).filter(e=>e!==jm))].sort((e,t)=>e.localeCompare(t));return[{value:jm,label:e.codeBlockLanguagePlainText},...n.map(e=>({value:e,label:Pm(e)}))]},Im=e=>{let t=e.state.selection.$from;for(let e=t.depth;e>=0;--e){let n=t.node(e);if(n.type.name===Dm)return{position:e===0?0:t.before(e),node:n}}return null},Lm=(e,t)=>{let n=e.nodeDOM(t);return n instanceof HTMLPreElement?n:n instanceof HTMLElement?n.querySelector(`pre`):null},Rm=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,zm=e=>{let[t,n]=(0,l.useState)(!1),[r,i]=(0,l.useState)(``),a=Nm(e.currentLanguage),o=Pm(a),s=(0,l.useMemo)(()=>Fm(e.messages),[e.messages]),c=(0,l.useMemo)(()=>{let e=r.trim().toLowerCase();return e?s.filter(t=>{let n=t.label.toLowerCase(),r=t.value.toLowerCase();return n.includes(e)||r.includes(e)}):s},[r,s]);(0,l.useEffect)(()=>{n(!1),i(``)},[e.currentLanguage]);let u=e=>e instanceof HTMLElement?e.closest(`input, textarea, [contenteditable]:not([contenteditable="false"])`)!==null:!1,d=e=>{u(e.target)||e.preventDefault()},f=e=>{e.preventDefault()},p=t=>{e.onSelectLanguage(t),n(!1),i(``)};return bm(t,()=>{n(!1)}),(0,l.createElement)(um,{open:t,onOpenChange:n},(0,l.createElement)(`div`,{className:`zt-md-code-language-picker`,onMouseDown:d},(0,l.createElement)(dm,{asChild:!0},(0,l.createElement)(`button`,{type:`button`,className:`zt-md-code-language-picker-trigger`,"aria-expanded":t,"aria-label":o},(0,l.createElement)(`span`,{className:`zt-md-code-language-picker-trigger-label`},o),(0,l.createElement)(Se,{className:`zt-md-code-language-picker-trigger-icon`,size:14,strokeWidth:2,"aria-hidden":`true`}))),(0,l.createElement)(fm,{align:`end`,side:`bottom`,sideOffset:6,className:`zt-md-code-language-picker-panel`,container:e.portalContainer,onOpenAutoFocus:f,onCloseAutoFocus:f},(0,l.createElement)(`label`,{className:`zt-md-code-language-picker-search`},(0,l.createElement)(Ge,{className:`zt-md-code-language-picker-search-icon`,size:14,strokeWidth:2,"aria-hidden":`true`}),(0,l.createElement)(`input`,{value:r,onChange:e=>i(e.currentTarget.value),placeholder:e.messages.codeBlockLanguageSearchPlaceholder,className:`zt-md-code-language-picker-search-input`})),(0,l.createElement)(`div`,{className:`zt-md-code-language-picker-options`,role:`listbox`},c.length>0?c.map(e=>(0,l.createElement)(`button`,{key:e.value||`__plain_text__`,type:`button`,className:`zt-md-code-language-picker-option`,"data-selected":e.value===a?`true`:`false`,onClick:()=>p(e.value)},(0,l.createElement)(`span`,null,e.label),e.value===a?(0,l.createElement)(xe,{className:`zt-md-code-language-picker-option-check`,size:14,strokeWidth:2,"aria-hidden":`true`}):null)):(0,l.createElement)(`div`,{className:`zt-md-code-language-picker-empty`},`-`)))))},Bm=class{constructor(e,t,n){this.currentCodeBlockPosition=null,this.currentPreElement=null,this.currentRenderedLanguage=null,this.hasPositionContext=!1,this.repositionScheduler=Em(()=>{this.hasPositionContext&&this.updateOverlayPosition()}),this.view=e,this.messages=t,this.portalContainer=n,this.editorWrapper=xm(e.dom),this.host=document.createElement(`span`),this.host.className=`zt-md-code-language-picker-host`,this.hostRoot=(0,Dn.createRoot)(this.host),this.repositionScheduler.bindGlobal(),this.repositionScheduler.bindWrapper(this.editorWrapper),this.update(e)}applyLanguage(e){if(this.currentCodeBlockPosition===null)return;let t=this.view.state.doc.nodeAt(this.currentCodeBlockPosition);if(!t||t.type.name!==Dm)return;let n=Nm(e),r={...t.attrs,language:n};if(Nm(String(t.attrs.language??``))===n)return;let i=this.view.state.tr.setNodeMarkup(this.currentCodeBlockPosition,t.type,r,t.marks);this.view.dispatch(i),this.view.focus()}render(e){this.currentRenderedLanguage!==null&&this.currentRenderedLanguage===e||(this.hostRoot.render((0,l.createElement)(zm,{currentLanguage:e,messages:this.messages,portalContainer:this.portalContainer,onSelectLanguage:e=>this.applyLanguage(e)})),this.host.dataset.mounted=`true`,this.currentRenderedLanguage=e)}detach(){this.hostRoot.render(null),delete this.host.dataset.mounted,this.host.remove(),this.currentCodeBlockPosition=null,this.currentPreElement=null,this.currentRenderedLanguage=null,this.hasPositionContext=!1}updateOverlayPosition(){if(!this.editorWrapper||!this.currentPreElement||this.host.parentElement!==this.portalContainer)return;let e=this.currentPreElement.getBoundingClientRect(),t=Cm(e,this.editorWrapper),n=Tm({wrapper:this.editorWrapper,anchor:{anchorLeftInContent:t.anchorLeftInContent+e.width-km,anchorTopInContent:t.anchorTopInContent+e.height-Am,anchorBottomInContent:t.anchorTopInContent+e.height-Am},overlaySize:{width:96},placement:`top`,offsetY:0,boundaryInset:2},this.portalContainer);this.host.style.left=`${n.left}px`,this.host.style.top=`${n.top}px`}update(e){if(this.view=e,!Rm(e)||!this.editorWrapper){this.detach();return}let t=Im(e);if(!t){this.detach();return}let n=Lm(e,t.position);if(!n){this.detach();return}this.host.parentElement!==this.portalContainer&&this.portalContainer.append(this.host);let r=Nm(String(t.node.attrs.language??``)),i=this.currentCodeBlockPosition===t.position&&this.currentPreElement===n&&this.currentRenderedLanguage!==null&&this.currentRenderedLanguage===r;this.currentCodeBlockPosition=t.position,this.currentPreElement=n,this.hasPositionContext=!0,this.updateOverlayPosition(),this.repositionScheduler.schedule(),!i&&this.render(r)}destroy(){this.detach(),this.repositionScheduler.destroy(),this.hostRoot.unmount()}},Vm=(e,n)=>r.u(()=>new t.i({key:new t.a(Om),view:t=>new Bm(t,e,n)})),Hm=`code_block`,Um=`a`,Wm=`zt-md-code-block-mod-a-select`,Gm=e=>e.key.toLowerCase()!==Um||e.defaultPrevented||e.altKey||e.shiftKey||!e.ctrlKey&&!e.metaKey,Km=e=>{for(let t=e.depth;t>=0;--t){let n=e.node(t);if(n.type.name!==Hm)continue;let r=t===0?0:e.before(t);return{codeBlockStart:r+1,codeBlockEnd:r+n.nodeSize-1}}return null},qm=(e,n)=>{let r=e.state.selection.$from,i=Km(r);if(!i)return!1;let a=e.state.tr.setSelection(t.c.create(e.state.doc,i.codeBlockStart,i.codeBlockEnd));return n.preventDefault(),e.dispatch(a),!0},Jm=r.u(()=>new t.i({key:new t.a(Wm),props:{handleKeyDown:(e,t)=>Gm(t)?!1:qm(e,t)}})),Ym=`code_block`,Xm=`ZT_MD_CODE_BLOCK_PRISM`,Zm=(e,t=[])=>e.flatMap(e=>{if(e.type===`element`){let n=[...t,...e.properties?.className??[]];return Zm(e.children??[],n)}return[{text:e.value??``,className:t}]}),Qm=(e,t)=>t.listLanguages().includes(e),$m=(t,n)=>{let r=[];return e.F(e=>e.type.name===Ym)(t).forEach(t=>{let i=String(t.node.attrs.language??``);if(!i||!Qm(i,n))return;let a=t.pos+1;Zm(n.highlight(t.node.textContent,i).children).forEach(t=>{let n=a+t.text.length;t.className.length>0&&r.push(e.j.inline(a,n,{class:t.className.join(` `)})),a=n})}),e.M.create(t,r)},eh=r.u(()=>{let e=$;return new t.i({key:new t.a(Xm),state:{init:(t,n)=>$m(n.doc,e),apply:(t,n)=>t.docChanged?$m(t.doc,e):n.map(t.mapping,t.doc)},props:{decorations(e){return this.getState(e)}}})}),th=`Expected a function`;function nh(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(th);return s.n(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),s.t(e,t,{leading:r,maxWait:t,trailing:i})}var rh=class{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;constructor(n){this.#a=!1,this.onShow=()=>{},this.onHide=()=>{},this.#u=e=>{o.n(e,this.element,{placement:this.#r.placement??`top`,middleware:[o.r(),o.i(this.#s),o.a(this.#c),...this.#n],...this.#r}).then(({x:e,y:t})=>{Object.assign(this.element.style,{left:`${e}px`,top:`${t}px`})}).catch(console.error)},this.#d=e=>this.#i!==e.dom.parentElement,this.#f=(t,n)=>{let{state:r,composing:i}=t,{selection:a,doc:s}=r,{ranges:c}=a,l=Math.min(...c.map(e=>e.$from.pos)),u=Math.max(...c.map(e=>e.$to.pos)),d=n&&n.doc.eq(s)&&n.selection.eq(a);if(this.#a||=((this.#i??t.dom.parentElement??document.body).appendChild(this.element),!0),i||d)return;if(this.#o?.(),this.#o=void 0,!this.#t(t,n)){this.hide();return}let f={getBoundingClientRect:()=>e.U(t,l,u),contextElement:t.dom};this.#d(t)?this.#o=o.t(f,this.element,()=>this.#u(f)):this.#u(f),this.show()},this.update=(e,t)=>{this.#l(e,t)},this.#p=e=>{let{doc:n,selection:r}=e.state,{empty:i,from:a,to:o}=r,s=!n.textBetween(a,o).length&&e.state.selection instanceof t.c,c=this.element.contains(document.activeElement),l=!e.hasFocus()&&!c,u=!e.editable;return!(l||i||s||u)},this.destroy=()=>{this.#o?.(),this.#l.cancel()},this.show=(e,t)=>{if(this.element.dataset.show=`true`,e){this.#o?.(),this.#o=void 0;let n={...e,contextElement:t?.dom};t&&this.#d(t)?this.#o=o.t(n,this.element,()=>this.#u(n)):this.#u(n)}this.onShow()},this.hide=()=>{this.element.dataset.show!==`false`&&(this.element.dataset.show=`false`,this.onHide())},this.element=n.content,this.#e=n.debounce??200,this.#t=n.shouldShow??this.#p,this.#s=n.offset,this.#c=n.shift,this.#n=n.middleware??[],this.#r=n.floatingUIOptions??{},this.#i=n.root,this.element.dataset.show=`false`,this.#l=nh(this.#f,this.#e)}#u;#d;#f;#p},ih=`zt-md-selection-tooltip`,ah=e=>[{command:`strong`,icon:be,title:e.selectionTooltipStrongTitle,markNames:[`strong`]},{command:`em`,icon:Re,title:e.selectionTooltipEmTitle,markNames:[`em`,`emphasis`]},{command:`strike`,icon:Ye,title:e.selectionTooltipStrikeTitle,markNames:[`strike_through`,`strikeThrough`]},{command:`inlineCode`,icon:Te,title:e.selectionTooltipInlineCodeTitle,markNames:[`inlineCode`,`code_inline`]},{command:`link`,icon:ze,title:e.selectionTooltipLinkTitle,markNames:[`link`]}],oh={paragraph:nt,heading1:ke,heading2:Ae,heading3:je,heading4:Me,heading5:Pe,heading6:Ne,bulletList:Ue,orderedList:Ve,taskList:Be,blockquote:et,codeBlock:Te},sh=e=>[{command:`paragraph`,icon:oh.paragraph,label:e.selectionTooltipTransformParagraphLabel},{command:`heading1`,icon:oh.heading1,label:e.selectionTooltipTransformHeading1Label},{command:`heading2`,icon:oh.heading2,label:e.selectionTooltipTransformHeading2Label},{command:`heading3`,icon:oh.heading3,label:e.selectionTooltipTransformHeading3Label},{command:`heading4`,icon:oh.heading4,label:e.selectionTooltipTransformHeading4Label},{command:`heading5`,icon:oh.heading5,label:e.selectionTooltipTransformHeading5Label},{command:`heading6`,icon:oh.heading6,label:e.selectionTooltipTransformHeading6Label},{command:`bulletList`,icon:oh.bulletList,label:e.selectionTooltipTransformBulletListLabel},{command:`orderedList`,icon:oh.orderedList,label:e.selectionTooltipTransformOrderedListLabel},{command:`taskList`,icon:oh.taskList,label:e.selectionTooltipTransformTaskListLabel},{command:`blockquote`,icon:oh.blockquote,label:e.selectionTooltipTransformBlockquoteLabel},{command:`codeBlock`,icon:oh.codeBlock,label:e.selectionTooltipTransformCodeBlockLabel}],ch=(e,t)=>e(t.state,t.dispatch,t),lh=(e,t)=>{let n=e?.state?.selection?.$from;if(!n||!e?.dispatch)return!1;for(let r=n.depth;r>0;--r){let i=n.node(r);if(i?.type?.name!==`list_item`)continue;if(!i.type?.spec?.attrs?.checked)return!1;let a=n.before(r);return e.dispatch(e.state.tr.setNodeMarkup(a,void 0,{...i.attrs,checked:t})),!0}return!1},uh={heading1:1,heading2:2,heading3:3,heading4:4,heading5:5,heading6:6},dh={bulletList:`bullet_list`,orderedList:`ordered_list`},fh=[`codeBlock`,`heading1`,`heading2`,`heading3`,`heading4`,`heading5`,`heading6`,`taskList`,`orderedList`,`bulletList`,`blockquote`,`paragraph`],ph=async(e,t)=>{if(!e?.state||!e?.dispatch)return!1;let n=await Promise.resolve().then(()=>require("./commands-f4yOm8DQ.cjs")),r=await Promise.resolve().then(()=>require("./schema-list-D9Q6QKgo.cjs")).then(e=>e.t),i=n.setBlockType,a=n.wrapIn,o=r.wrapInList;if(typeof i!=`function`||typeof a!=`function`||typeof o!=`function`)return!1;let s=e.state.schema.nodes;if(t===`paragraph`){let t=s.paragraph;return t?ch(i(t),e):!1}if(t in uh){let n=s.heading,r=uh[t];return!n||typeof r!=`number`?!1:ch(i(n,{level:r}),e)}if(t===`blockquote`){let t=s.blockquote;return t?ch(a(t),e):!1}if(t===`taskList`){let t=s.bullet_list;return!t||!ch(o(t),e)?!1:lh(e,!1)}if(t===`codeBlock`){let t=s.code_block;return t?ch(i(t,{language:`text`}),e):!1}if(t in dh){let n=s[dh[t]];return n?ch(o(n),e):!1}return!1},mh=e=>{let t=e.state.selection.$from,n=new Set;for(let e=t.depth;e>0;--e){let r=t.node(e),i=r.type.name;if(i===`code_block`){n.add(`codeBlock`);continue}if(i===`blockquote`){n.add(`blockquote`);continue}if(i===`heading`){let e={1:`heading1`,2:`heading2`,3:`heading3`,4:`heading4`,5:`heading5`,6:`heading6`}[Number(r.attrs?.level??0)];e&&n.add(e);continue}if(i===`list_item`){typeof r.attrs?.checked==`boolean`&&n.add(`taskList`);continue}if(i===`ordered_list`){n.add(`orderedList`);continue}if(i===`bullet_list`){n.add(`bulletList`);continue}i===`paragraph`&&n.add(`paragraph`)}return n.has(`taskList`)&&n.delete(`bulletList`),n.size===0&&n.add(`paragraph`),n},hh=e=>{let t=mh(e);return fh.find(e=>t.has(e))||`paragraph`},gh=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,_h=(e,t)=>{let n=e.state.schema.marks,r=t.find(e=>n[e]);return r?n[r]??null:null},vh=(e,t)=>{let{from:n,to:r}=e.selection;return e.doc.rangeHasMark(n,r,t)},yh=(e,t)=>{let{from:n,to:r}=e.selection,i=``;return e.doc.nodesBetween(n,r,e=>{let n=e.marks.find(e=>e.type===t);return n?(i=typeof n.attrs.href==`string`?n.attrs.href:``,!1):!0}),i},bh=e=>{n.O(e.markType)(e.view.state,e.view.dispatch,e.view),e.view.focus()},xh=e=>{e.toggleLinkPopover(e.view)},Sh=(e,t)=>{({strong:bh,em:bh,strike:bh,inlineCode:bh,link:xh})[e](t)},Ch=(e,t,n,r,i)=>{let a=document.createElement(`button`);a.type=`button`,a.className=`zt-md-selection-tooltip-button`,a.dataset.command=e.command,a.title=e.title,a.setAttribute(`aria-label`,e.title);let o=document.createElement(`span`);o.className=`zt-md-selection-tooltip-button-icon`;let s=(0,Dn.createRoot)(o);return s.render((0,l.createElement)(e.icon,{size:14,strokeWidth:2})),i.push(s),a.append(o),a.addEventListener(`mousedown`,e=>{e.preventDefault()}),a.addEventListener(`click`,i=>{i.preventDefault();let a=n();!a||a.state.selection.empty||Sh(e.command,{view:a,markType:t,toggleLinkPopover:r})}),a},wh=(e,t,n,r,i,a)=>{let o=document.createElement(`div`);return o.className=`zt-md-selection-tooltip`,o.append(i),t.forEach(t=>{let i=_h(e,t.markNames);i&&t.command!==`link`&&o.append(Ch(t,i,n,r,a))}),o},Th=e=>{bm(e.open,()=>{e.onOpenChange(!1)});let t=e=>{e.preventDefault()},n=t=>{let n=e.getCurrentView();if(!n||n.state.selection.empty){e.onOpenChange(!1);return}ph(n,t).then(()=>{e.onOpenChange(!1),n.focus()})};return(0,l.createElement)(um,{open:e.open,onOpenChange:e.onOpenChange},(0,l.createElement)(dm,{asChild:!0},(0,l.createElement)(`button`,{type:`button`,className:`zt-md-selection-transform-trigger`,"aria-label":e.menuTitle,title:e.menuTitle,onMouseDown:t},(0,l.createElement)(`span`,{className:`zt-md-selection-transform-trigger-label`},e.activeLabel),(0,l.createElement)(Se,{size:e.iconSize,strokeWidth:e.iconStrokeWidth,"aria-hidden":`true`}))),(0,l.createElement)(fm,{container:e.portalContainer,align:`start`,sideOffset:8,className:`zt-md-selection-transform-popover !w-[176px] p-1`,onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault()},(0,l.createElement)(`p`,{className:`zt-md-selection-transform-popover-title`},e.menuTitle),(0,l.createElement)(`div`,{className:`zt-md-selection-transform-popover-list`},...e.items.map(r=>{let i=e.activeCommands.has(r.command);return(0,l.createElement)(`button`,{key:r.command,type:`button`,className:`zt-md-selection-transform-item`,"data-active":i?`true`:`false`,onMouseDown:t,onClick:()=>n(r.command)},(0,l.createElement)(r.icon,{size:e.iconSize,strokeWidth:e.iconStrokeWidth,className:`zt-md-selection-transform-item-icon`,"aria-hidden":`true`}),(0,l.createElement)(`span`,{className:`zt-md-selection-transform-item-label`},r.label))}))))},Eh=e=>{let[t,n]=(0,l.useState)(``),r=(0,l.useRef)(null);bm(e.open,()=>{e.onOpenChange(!1)});let i=e=>{e.preventDefault()},a=t=>{let n=e.getCurrentView();if(!n||n.state.selection.empty){e.onOpenChange(!1);return}let r=_h(n,[`link`]);if(!r){e.onOpenChange(!1);return}let{from:i,to:a}=n.state.selection,o=n.state.tr.removeMark(i,a,r);t&&o.addMark(i,a,r.create({href:t})),n.dispatch(o.scrollIntoView()),e.onOpenChange(!1),n.focus()};return(0,l.useEffect)(()=>{if(!e.open)return;let t=e.getCurrentView(),n=t?_h(t,[`link`]):null;(!t||!n||t.state.selection.empty)&&e.onOpenChange(!1)},[e.open,e.getCurrentView,e.onOpenChange]),(0,l.useEffect)(()=>{e.open&&r.current?.focus()},[e.open]),(0,l.createElement)(um,{open:e.open,onOpenChange:t=>{if(!t){e.onOpenChange(!1);return}let r=e.getCurrentView(),i=r?_h(r,[`link`]):null;if(!r||!i||r.state.selection.empty){e.onOpenChange(!1);return}n(yh(r.state,i)),e.onOpenChange(!0)}},(0,l.createElement)(dm,{asChild:!0},(0,l.createElement)(`button`,{ref:e.triggerRef,type:`button`,className:`zt-md-selection-tooltip-button`,"data-command":`link`,title:e.messages.selectionTooltipLinkTitle,"aria-label":e.messages.selectionTooltipLinkTitle,onMouseDown:i},(0,l.createElement)(`span`,{className:`zt-md-selection-tooltip-button-icon`},(0,l.createElement)(ze,{size:e.iconSize,strokeWidth:e.iconStrokeWidth})))),(0,l.createElement)(fm,{container:e.portalContainer,align:`center`,sideOffset:8,className:`zt-md-selection-link-popover w-fit min-w-0 gap-0 p-2`,onOpenAutoFocus:e=>{e.preventDefault(),requestAnimationFrame(()=>{r.current?.focus()})},onCloseAutoFocus:e=>e.preventDefault()},(0,l.createElement)(`div`,{className:`zt-md-selection-link-popover-row`},(0,l.createElement)(`input`,{ref:r,type:`text`,value:t,placeholder:e.messages.selectionLinkInputPlaceholder,className:`zt-md-selection-link-popover-input`,onChange:e=>n(e.currentTarget.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),a(t.trim()))}}),(0,l.createElement)(ii,{type:`button`,variant:`ghost`,size:`icon-sm`,className:`zt-md-selection-link-popover-action cursor-pointer bg-transparent hover:bg-transparent focus-visible:ring-0`,onMouseDown:i,onClick:()=>a(t.trim()),"aria-label":e.messages.selectionLinkSaveAriaLabel},(0,l.createElement)(xe,{size:e.iconSize,strokeWidth:e.iconStrokeWidth})),(0,l.createElement)(ii,{type:`button`,variant:`ghost`,size:`icon-sm`,className:`zt-md-selection-link-popover-action cursor-pointer bg-transparent hover:bg-transparent focus-visible:ring-0`,onMouseDown:i,onClick:()=>a(``),"aria-label":e.messages.selectionLinkRemoveAriaLabel},(0,l.createElement)(tt,{size:e.iconSize,strokeWidth:e.iconStrokeWidth})))))},Dh=(e,t,n)=>{n.forEach(n=>{let r=_h(t,n.markNames);if(!r)return;let i=e.querySelector(`[data-command="${n.command}"]`);i instanceof HTMLButtonElement&&(i.dataset.active=vh(t.state,r)?`true`:`false`)})},Oh=e=>{let{from:t,to:n}=e.state.selection,r=!1;return e.state.doc.nodesBetween(t,n,e=>e.type.name===`code_block`?(r=!0,!1):!0),r},kh=(e,t,n)=>r=>{let{selection:i,doc:a}=r.state,o=e.contains(document.activeElement);return!gh(r)||i.empty||!r.hasFocus()&&!o&&!t()&&!n()||Oh(r)?!1:e.childElementCount>0&&a.textBetween(i.from,i.to).trim().length>0},Ah=(e,t,n)=>{let r=ah(n),i=sh(n),a=e,o=!1,s=!1,c=[],u=document.createElement(`span`),d=(0,Dn.createRoot)(u),f=document.createElement(`span`),p=null,m=(0,Dn.createRoot)(f),h=e=>{o!==e&&(o=e,y())},g=e=>{s!==e&&(s=e,v())},_=e=>{e.state.selection.empty||h(!o)},v=()=>{let e=a?mh(a):new Set([`paragraph`]),r=a?hh(a):`paragraph`,o=i.find(e=>e.command===r)??i[0];d.render((0,l.createElement)(Th,{getCurrentView:()=>a,portalContainer:t,iconSize:14,iconStrokeWidth:2,menuTitle:n.selectionTooltipTransformLabel,items:i,activeLabel:o?.label??n.selectionTooltipTransformParagraphLabel,open:s,onOpenChange:g,activeCommands:e}))},y=()=>{m.render((0,l.createElement)(Eh,{getCurrentView:()=>a,portalContainer:t,iconSize:14,iconStrokeWidth:2,triggerRef:e=>{p=e},open:o,onOpenChange:h,messages:n}))},b=wh(e,r,()=>a,_,u,c);v(),_h(e,[`link`])&&(b.append(f),y());let x=new rh({content:b,debounce:80,offset:8,root:t,shouldShow:kh(b,()=>o,()=>s),floatingUIOptions:{placement:`top`}});return{update:(e,t)=>{if(a=e,a.state.selection.empty&&(h(!1),g(!1)),Dh(b,a,r),v(),p){let e=_h(a,[`link`]);p.dataset.active=e&&vh(a.state,e)?`true`:`false`}x.update(a,t)},destroy:()=>{a=null,d.unmount(),m.unmount(),c.splice(0).forEach(e=>{e.unmount()}),x.destroy(),b.remove()}}},jh=(e,n)=>r.u(()=>new t.i({key:new t.a(ih),view:t=>Ah(t,e,n)})),Mh=(e,t)=>{if(!(!e||typeof e!=`object`))return e[t]},Nh=(e,t)=>e(t.state,t.dispatch,t),Ph=e=>{let t=e?.state?.selection?.$from;if(!t)return!1;for(let e=t.depth;e>0;--e)if(t.node(e)?.type?.name===`table`)return!0;return!1},Fh=(e,t)=>{let n=e?.state?.doc;if(!n||typeof t!=`number`)return-1;let r=Math.min(Math.max(t,0),n.content.size),i=n.resolve(r);for(let e=i.depth;e>0;--e)if(i.node(e)?.type?.name===`table`)return i.before(e);return-1},Ih=(e,t,n,r)=>{let i=e?.state?.schema?.nodes;if(!i)return null;let a=i.table,o=i.table_header_row,s=i.table_row,c=i.table_header,l=i.table_cell;if(!a||!o||!s||!c||!l)return null;let u=Math.max(1,t),d=Math.max(1,n),f=Array.from({length:u},(e,t)=>{let n=r&&t===0,i=n?o:s,a=n?c:l,u=Array.from({length:d},()=>a.createAndFill()).filter(Boolean);return i.create(null,u)});return a.create(null,f)},Lh=async e=>{if(!e?.state||!e?.dispatch||Ph(e))return!1;let t=e.state.selection.from,n=Ih(e,3,3,!0);if(!n)return!1;e.dispatch(e.state.tr.replaceSelectionWith(n).scrollIntoView());let r=Fh(e,t);if(r<0&&t>0&&(r=Fh(e,t-1)),r<0)return!0;let i=r+2;if(i>e.state.doc.content.size)return!0;let a=Mh(await Promise.resolve().then(()=>require("./state-BC1dqWPQ.cjs")),`TextSelection`);if(!a||typeof a.near!=`function`)return!0;let o=a.near(e.state.doc.resolve(i),1);return e.dispatch(e.state.tr.setSelection(o).scrollIntoView()),e.focus(),!0},Rh=(e,t)=>{let n=e?.state?.schema?.marks??{},r=t.find(e=>n[e]);return r?n[r]??null:null},zh=new Set([`paragraph`,`heading1`,`heading2`,`heading3`,`heading4`,`heading5`,`heading6`,`bulletList`,`orderedList`,`taskList`,`blockquote`,`codeBlock`]),Bh=e=>zh.has(e),Vh=async e=>{let t=e?.state?.schema?.nodes?.math_inline;if(!t||!e?.dispatch)return!1;let n=e.state.selection.from,r=t.create({value:``});return e.dispatch(e.state.tr.replaceSelectionWith(r).setMeta(Ku,{type:`open`,position:n}).scrollIntoView()),!0},Hh=async(e,t)=>{if(!e?.state||!e?.dispatch)return!1;let n=await Promise.resolve().then(()=>require("./commands-f4yOm8DQ.cjs")),r=Mh(n,`setBlockType`),i=Mh(n,`toggleMark`);if(typeof r!=`function`||typeof i!=`function`)return!1;let a=e.state.schema?.nodes??{};if(Bh(t))return ph(e,t);if(t===`inlineCode`){let t=Rh(e,[`inlineCode`,`code_inline`]);return t?Nh(i(t),e):!1}if(t===`inlineMath`)return Vh(e);if(t===`mathBlock`){let t=a.math_block;if(!t||!Nh(r(t),e))return!1;let n=Mh(await Promise.resolve().then(()=>require("./state-BC1dqWPQ.cjs")),`NodeSelection`);if(!n||typeof n.create!=`function`)return!0;let i=e.state.selection?.$from;if(!i)return!0;let o=null;for(let e=i.depth;e>0;--e)if(i.node(e)?.type?.name===`math_block`){o=i.before(e);break}if(o===null)return!0;let s=n.create(e.state.doc,o);return e.dispatch(e.state.tr.setSelection(s).scrollIntoView()),!0}return t===`table`?Lh(e):!1},Uh=e=>typeof e?.props?.editable==`function`?e.props.editable(e.state):!!e?.editable,Wh=[{id:`paragraph`,label:`普通文本`,group:`标题`,icon:`Type`,command:`paragraph`},{id:`heading-1`,label:`标题 1`,group:`标题`,icon:`Heading1`,command:`heading1`},{id:`heading-2`,label:`标题 2`,group:`标题`,icon:`Heading2`,command:`heading2`},{id:`heading-3`,label:`标题 3`,group:`标题`,icon:`Heading3`,command:`heading3`},{id:`heading-4`,label:`标题 4`,group:`标题`,icon:`Heading4`,command:`heading4`},{id:`heading-5`,label:`标题 5`,group:`标题`,icon:`Heading5`,command:`heading5`},{id:`heading-6`,label:`标题 6`,group:`标题`,icon:`Heading6`,command:`heading6`},{id:`bullet-list`,label:`无序列表`,group:`列表`,icon:`List`,command:`bulletList`},{id:`ordered-list`,label:`有序列表`,group:`列表`,icon:`ListOrdered`,command:`orderedList`},{id:`task-list`,label:`任务列表`,group:`列表`,icon:`ListTodo`,command:`taskList`},{id:`blockquote`,label:`引用块`,group:`插入`,icon:`TextQuote`,command:`blockquote`},{id:`inline-code`,label:`行内代码`,group:`插入`,icon:`Code`,command:`inlineCode`},{id:`code-block`,label:`代码块`,group:`插入`,icon:`SquareCode`,command:`codeBlock`},{id:`table`,label:`表格`,group:`插入`,icon:`Table`,command:`table`},{id:`inline-math`,label:`行内公式`,group:`公式`,icon:`Sigma`,command:`inlineMath`},{id:`math-block`,label:`公式块`,group:`公式`,icon:`SquareFunction`,command:`mathBlock`},{id:`image`,label:`图片`,group:`媒体`,icon:`Image`,command:`image`}],Gh=[{id:`paragraph`,label:`Paragraph`,group:`Headings`,icon:`Type`,command:`paragraph`},{id:`heading-1`,label:`Heading 1`,group:`Headings`,icon:`Heading1`,command:`heading1`},{id:`heading-2`,label:`Heading 2`,group:`Headings`,icon:`Heading2`,command:`heading2`},{id:`heading-3`,label:`Heading 3`,group:`Headings`,icon:`Heading3`,command:`heading3`},{id:`heading-4`,label:`Heading 4`,group:`Headings`,icon:`Heading4`,command:`heading4`},{id:`heading-5`,label:`Heading 5`,group:`Headings`,icon:`Heading5`,command:`heading5`},{id:`heading-6`,label:`Heading 6`,group:`Headings`,icon:`Heading6`,command:`heading6`},{id:`bullet-list`,label:`Bullet list`,group:`Lists`,icon:`List`,command:`bulletList`},{id:`ordered-list`,label:`Ordered list`,group:`Lists`,icon:`ListOrdered`,command:`orderedList`},{id:`task-list`,label:`Task list`,group:`Lists`,icon:`ListTodo`,command:`taskList`},{id:`blockquote`,label:`Blockquote`,group:`Insert`,icon:`TextQuote`,command:`blockquote`},{id:`inline-code`,label:`Inline code`,group:`Insert`,icon:`Code`,command:`inlineCode`},{id:`code-block`,label:`Code block`,group:`Insert`,icon:`SquareCode`,command:`codeBlock`},{id:`table`,label:`Table`,group:`Insert`,icon:`Table`,command:`table`},{id:`inline-math`,label:`Inline math`,group:`Math`,icon:`Sigma`,command:`inlineMath`},{id:`math-block`,label:`Math block`,group:`Math`,icon:`SquareFunction`,command:`mathBlock`},{id:`image`,label:`Image`,group:`Media`,icon:`Image`,command:`image`}],Kh=(e,t=`zh-CN`)=>e?.items&&e.items.length>0?e.items:t===`en-US`?Gh:Wh,qh=e=>{let t=e?.state?.selection?.$from;if(!t)return!1;let n=String(t.parent?.type?.name??``);if(n.includes(`code`)||n===`math_block`)return!0;for(let e=t.depth;e>0;--e){let n=String(t.node(e)?.type?.name??``);if(n===`table`||n===`table_cell`||n===`table_header`)return!0}return!1},Jh=e=>{let t=e?.state,n=t?.selection?.$from;if(!t||!n)return``;let r=n.start(),i=n.pos;return t.doc.textBetween(r,i,`
|
|
390
266
|
`,`
|
|
391
|
-
`)},
|
|
267
|
+
`)},Yh=e=>{let t=Jh(e),n=t.lastIndexOf(`/`);if(n<0)return null;let r=t.slice(n+1);return/\s/.test(r)?null:r},Xh=(e,t)=>{if(t===null||t.length===0)return e;let n=t.toLowerCase();return e.filter(e=>[e.label,e.group,e.command,e.id].some(e=>String(e).toLowerCase().startsWith(n)))},Zh=(e,t)=>{if(!Uh(e))return{visibleItems:[],shouldShow:!1};let n=Yh(e),r=Xh(t,n);return{visibleItems:r,shouldShow:!qh(e)&&n!==null&&r.length>0}},Qh=e=>{let t=e?.state,n=t?.selection?.$from;if(!t||!n||!e?.dispatch)return!1;let r=n.start(),i=n.pos,a=t.doc.textBetween(r,i,`
|
|
392
268
|
`,`
|
|
393
|
-
`).lastIndexOf(`/`);if(a<0)return!1;let o=r+a,s=t.tr.delete(o,i);return e.dispatch(s.scrollIntoView()),!0},Dy={Type:at,Heading1:Pe,Heading2:Fe,Heading3:Ie,Heading4:Le,Heading5:Re,Heading6:ze,Image:He,List:qe,ListOrdered:Ge,ListTodo:Ke,Code:je,SquareCode:Ze,TextQuote:rt,Sigma:Xe,Table:$e},Oy=ke,ky=(e,t,n,r)=>{r.splice(0).forEach(e=>{e.unmount()}),e.innerHTML=``;let i=``;t.forEach((t,a)=>{if(t.group!==i){let n=document.createElement(`div`);n.className=`slash-menu-group`,n.textContent=t.group,e.appendChild(n),i=t.group}let o=document.createElement(`div`);o.className=`slash-menu-item`,o.dataset.command=t.command,o.dataset.selected=a===n?`true`:`false`;let s=document.createElement(`span`);s.className=`slash-menu-item-icon`;let c=t.icon?Dy[t.icon]??Oy:null;if(c){let e=(0,jn.createRoot)(s);e.render((0,p.createElement)(c,{size:16,strokeWidth:2})),r.push(e)}let l=document.createElement(`span`);l.className=`slash-menu-item-label`,l.textContent=t.label,o.appendChild(s),o.appendChild(l),e.appendChild(o)})},Ay=e=>{let t=document.createElement(`div`);t.className=`slash-menu`,t.style.display=`none`,e.appendChild(t);let n=!1,r=``,i=!1,a=null,o=[],s=()=>{if(!n||!a)return;let{editorWrapper:r,anchorTopInContent:i,anchorBottomInContent:o,anchorLeftInContent:s,placement:c,offsetY:l}=a,u=pv({wrapper:r,anchor:{anchorTopInContent:i,anchorBottomInContent:o,anchorLeftInContent:s},overlaySize:{width:t.offsetWidth||210},placement:c,offsetY:l,boundaryInset:4},e);t.style.left=`${u.left}px`,t.style.top=`${u.top}px`,t.dataset.placement=c},c=mv(()=>{n&&s()}),l=()=>{t.style.top=``,t.style.left=``,t.style.transform=``,delete t.dataset.placement};return{menu:t,isVisible:()=>n,setVisible:(e,a)=>{if(n!==e){if(n=e,t.style.display=e?`block`:`none`,!e){c.unbindGlobal(),c.bindWrapper(null),l(),r=``,i=!0;return}c.bindGlobal(),a&&(a(),i&&=(a(),!1))}},renderIfNeeded:(e,n)=>{let i=`${e.map(e=>e.command).join(`|`)}::${n}`;r!==i&&(ky(t,e,n,o),r=i)},scrollActiveItemIntoView:e=>{let n=t.querySelector(`.slash-menu-item[data-selected="true"]`);n&&(n.scrollIntoView({block:`nearest`,inline:`nearest`}),e&&e())},updatePositionContext:e=>{a=e,c.bindWrapper(e?.editorWrapper??null)},updatePosition:s,destroy:()=>{o.splice(0).forEach(e=>{e.unmount()}),c.destroy(),t.remove()}}},jy=(e,t)=>{if(!(!e||typeof e!=`object`))return e[t]},My=async()=>{let e=(await Promise.resolve().then(()=>require(`./lib-D4HMdvmK.cjs`))).slashFactory;if(typeof e!=`function`)return console.error(`[zt-md/slash] slashFactory not found`),null;let t=e(`zt-md-slash`),n=Array.isArray(t)?t[0]:void 0,r=Array.isArray(t)?t[1]:t,i=Array.isArray(t)?t[2]:void 0;if(!r)return null;let a=Array.isArray(t)?t.filter((e,t)=>t<2&&e!=null):[r],o=jy(n,`key`)??jy(r,`key`)??jy(i,`key`)??jy(t,`key`);return a.length===0||o===void 0?null:{plugins:a,key:o}},Ny=async(e,t,n,r,i=`zh-CN`)=>{if(t?.enabled===!1)return{plugins:[],config:null};try{let a=await My();if(!a)return{plugins:[],config:null};let o=by(t,i),s=Ay(e),c=0,l=null,u=o,d=!1,f=new Set([`ArrowDown`,`ArrowUp`,`Enter`,`Escape`]),p=e=>!f.has(e.key)||!d?!1:e.key===`ArrowDown`?(e.preventDefault(),u.length===0?!0:(c=(c+1)%u.length,s.renderIfNeeded(u,c),s.scrollActiveItemIntoView(()=>{s.updatePosition()}),!0)):e.key===`ArrowUp`?(e.preventDefault(),u.length===0?!0:(c=(c-1+u.length)%u.length,s.renderIfNeeded(u,c),s.scrollActiveItemIntoView(()=>{s.updatePosition()}),!0)):e.key===`Enter`?(e.preventDefault(),g(),!0):e.key===`Escape`?(e.preventDefault(),s.setVisible(!1),!0):!1,m=e=>{let t=e?.state?.selection?.from;if(typeof t!=`number`)return null;let n=e?.coordsAtPos?.(t);return n?new DOMRect(n.left,n.top,Math.max(n.right-n.left,1),n.bottom-n.top):null},h=e=>{let t=Ty(e,o);if(u=t.visibleItems,d=t.shouldShow,t.shouldShow&&c>=u.length&&(c=0),t.shouldShow&&!s.isVisible()&&(c=0),!t.shouldShow){s.updatePositionContext(null),s.setVisible(!1);return}let n=m(e),r=lv(e?.dom);if(n&&r){let e=uv(n,320),t=dv(n,r);s.updatePositionContext({editorWrapper:r,anchorTopInContent:t.anchorTopInContent,anchorBottomInContent:t.anchorBottomInContent,anchorLeftInContent:t.anchorLeftInContent,placement:e,offsetY:8})}s.renderIfNeeded(u,c),s.isVisible()?s.updatePosition():s.setVisible(!0,()=>{s.updatePosition()})},g=async()=>{if(!l||c<0||c>=u.length)return;let t=u[c];if(Ey(l)){if(t.command===`image`){s.setVisible(!1),n&&rl({portalContainer:e,view:l,messages:n,imageUpload:r});return}await _y(l,t.command)&&(s.setVisible(!1),t.command===`mathBlock`&&queueMicrotask(()=>{let e=l?.dom?.querySelector?.(`.zt-md-math-block-editing .zt-md-math-block-textarea`);!e||document.activeElement===e||e.focus()}))}};return s.menu.addEventListener(`mousedown`,e=>{e.preventDefault();let t=(e.target?.closest(`.slash-menu-item`))?.dataset.command??``;if(!t)return;let n=u.findIndex(e=>e.command===t);n<0||(c=n,g())}),{plugins:a.plugins,config:e=>{e.set(a.key,{props:{handleKeyDown:(e,t)=>p(t)},view:()=>({update:e=>{l=e,h(e)},destroy:()=>{d=!1,s.destroy()}})})}}}catch(e){return console.error(`[zt-md/slash] init failed`,e),{plugins:[],config:null}}},Py=`table`,Fy=`ArrowUp`,Iy=e=>e.key!==Fy||e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey,Ly=(e,t)=>{let n=t.nodeBefore;return!n||n.type.name!==Py?null:{tableNode:n,tableStart:e-n.nodeSize}},Ry=e=>{if(e.parent.type.name!==`paragraph`||e.parentOffset!==0||e.parent.childCount>0||e.depth<1)return null;let t=e.index(e.depth-1);if(t<=0)return null;let n=e.node(e.depth-1).child(t-1);return n.type.name===Py?{tableNode:n,tableStart:e.before(e.depth)-n.nodeSize}:null},zy=(e,t)=>{if(e.childCount===0)return null;let n=e.childCount-1,r=e.child(n);if(r.childCount===0)return null;let i=0;for(let t=0;t<n;t+=1)i+=e.child(t).nodeSize;let a=r.childCount-1,o=r.child(a),s=0;for(let e=0;e<a;e+=1)s+=r.child(e).nodeSize;return t+1+i+1+s+o.nodeSize-1},By=e=>{let{selection:n}=e.state,r=n.$from,i=null;if(n instanceof O?i=Ly(n.from,r):n.empty&&(i=Ry(r)),!i)return!1;let a=zy(i.tableNode,i.tableStart);if(a===null)return!1;let o=e.state.tr.setSelection(t.c.near(e.state.doc.resolve(a),-1)).scrollIntoView();return e.dispatch(o),e.focus(),!0},Vy=a.u(()=>new t.i({key:new t.a(`zt-md-table-arrow-entry`),props:{handleKeyDown:(e,t)=>Iy(t)?!1:By(e)}})),Hy=`table`,Uy=`table_header_row`,Wy=`table_row`,Gy=`table_header`,Ky=`table_cell`,qy=e=>{let t=e.selection.$from,n=-1,r=-1;for(let e=t.depth;e>=0;--e){let i=t.node(e);if(r<0&&(i.type.name===Ky||i.type.name===Gy)&&(r=t.index(e-1)),n<0&&(i.type.name===Wy||i.type.name===Uy)&&(n=t.index(e-1)),i.type.name===Hy)return{tableNode:i,tableStart:e===0?0:t.before(e),tableNodeSize:i.nodeSize,rowIndex:n,columnIndex:r}}return null},Jy=(e,t,n,r)=>{if(n<0||n>=e.childCount)return null;let i=0;for(let t=0;t<n;t+=1)i+=e.child(t).nodeSize;let a=e.child(n);if(r<0||r>=a.childCount)return null;let o=0;for(let e=0;e<r;e+=1)o+=a.child(e).nodeSize;return t+1+i+1+o+1+1},Yy=e=>{if(e.columnIndex<0||e.tableNode.childCount===0)return!1;let t=e.tableNode.child(0);return e.columnIndex<t.childCount},Xy=(e,n,r,i)=>{let a=Jy(n.tableNode,n.tableStart,r,i);if(a===null)return!1;let o=e.state.tr.setSelection(t.c.near(e.state.tr.doc.resolve(a),1));return e.dispatch(o),!0},Zy=(e,t)=>t(e.state,e.dispatch,e)?(e.dispatch(e.state.tr.scrollIntoView()),e.focus(),!0):!1,Qy=(e,t,n)=>t.rowIndex<0||t.columnIndex<0||!Xy(e,t,t.rowIndex,t.columnIndex)?!1:Zy(e,n===`above`?d.o:d.a),$y=(e,t)=>t.rowIndex<=0||t.columnIndex<0||!Xy(e,t,t.rowIndex,t.columnIndex)?!1:Zy(e,d.l),eb=(e,t,n)=>t.rowIndex<0||t.columnIndex<0||!Xy(e,t,t.rowIndex,t.columnIndex)?!1:Zy(e,n===`left`?d.i:d.r),tb=(e,t)=>t.rowIndex<0||t.columnIndex<0||(t.tableNode.childCount>0?t.tableNode.child(0).childCount:0)<=1||!Xy(e,t,t.rowIndex,t.columnIndex)?!1:Zy(e,d.c),nb=(e,t,n)=>{if(t.columnIndex<0)return!1;let r=d.n.get(t.tableNode),i=t.tableStart+1,a=t.columnIndex,o=e.state.tr;for(let e=0;e<r.height;e+=1){let t=e*r.width+a,s=r.map[t];if(typeof s!=`number`)continue;let c=i+s,l=o.doc.nodeAt(c);if(!l)continue;let u={...l.attrs,alignment:n};o.setNodeMarkup(c,l.type,u,l.marks)}return o.docChanged?(o.scrollIntoView(),e.dispatch(o),e.focus(),!0):!1},rb=e=>{let t=qy(e.state);!t||t.rowIndex<=0||$y(e,t)},ib=e=>{let t=qy(e.state);!t||t.rowIndex<0||t.columnIndex<0||tb(e,t)},ab=e=>{let[t,n]=(0,p.useState)(!1);cv(t,()=>n(!1));let r=e=>{e.preventDefault()},i=e=>{n(e)},a=e=>{e.preventDefault()};return(0,p.createElement)(Q_,{open:t,onOpenChange:i},(0,p.createElement)($_,{asChild:!0},(0,p.createElement)(`button`,{type:`button`,className:`zt-md-table-action-button`,"aria-label":e.messages.tableMoreAriaLabel,onMouseDown:r},(0,p.createElement)(Ne,{size:14,strokeWidth:2,"aria-hidden":`true`}))),(0,p.createElement)(ev,{align:`end`,sideOffset:6,className:`zt-md-table-action-popover`,container:e.portalContainer,onOpenAutoFocus:a,onCloseAutoFocus:a},(0,p.createElement)(`div`,{className:`zt-md-table-action-menu-group`},(0,p.createElement)(Vc,{type:`button`,variant:`ghost`,size:`sm`,className:`zt-md-table-action-menu-item disabled:pointer-events-auto disabled:cursor-not-allowed`,disabled:!e.canInsertRowAbove,onMouseDown:r,onClick:()=>{e.onInsertRowAbove(),n(!1)}},e.messages.tableInsertRowAboveLabel),(0,p.createElement)(Vc,{type:`button`,variant:`ghost`,size:`sm`,className:`zt-md-table-action-menu-item disabled:pointer-events-auto disabled:cursor-not-allowed`,onMouseDown:r,onClick:()=>{e.onInsertRowBelow(),n(!1)}},e.messages.tableInsertRowBelowLabel),(0,p.createElement)(Vc,{type:`button`,variant:`ghost`,size:`sm`,className:`zt-md-table-action-menu-item disabled:pointer-events-auto disabled:cursor-not-allowed`,disabled:!e.canInsertColumn,onMouseDown:r,onClick:()=>{e.onInsertColumnLeft(),n(!1)}},e.messages.tableInsertColumnLeftLabel),(0,p.createElement)(Vc,{type:`button`,variant:`ghost`,size:`sm`,className:`zt-md-table-action-menu-item disabled:pointer-events-auto disabled:cursor-not-allowed`,disabled:!e.canInsertColumn,onMouseDown:r,onClick:()=>{e.onInsertColumnRight(),n(!1)}},e.messages.tableInsertColumnRightLabel)),(0,p.createElement)(`div`,{className:`zt-md-table-action-menu-divider`,"aria-hidden":`true`}),(0,p.createElement)(`div`,{className:`zt-md-table-action-menu-group`},(0,p.createElement)(Vc,{type:`button`,variant:`ghost`,size:`sm`,className:`zt-md-table-action-menu-item zt-md-table-action-menu-item-danger disabled:pointer-events-auto disabled:cursor-not-allowed`,disabled:!e.canDeleteRow,onMouseDown:r,onClick:()=>{e.onDeleteRow(),n(!1)}},e.messages.tableDeleteRowLabel),(0,p.createElement)(Vc,{type:`button`,variant:`ghost`,size:`sm`,className:`zt-md-table-action-menu-item zt-md-table-action-menu-item-danger disabled:pointer-events-auto disabled:cursor-not-allowed`,disabled:!e.canDeleteColumn,onMouseDown:r,onClick:()=>{e.onDeleteColumn(),n(!1)}},e.messages.tableDeleteColumnLabel))))},ob=`zt-md-table-focus-actions`,sb=0,cb=24,lb=4,ub=4,db=`top`,fb=`left`,pb=e=>(0,Sn.renderToStaticMarkup)((0,p.createElement)(e,{size:14,strokeWidth:2,"aria-hidden":`true`})),mb=pb(it),hb=pb(nt),gb=pb(et),_b=pb(tt),vb=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,yb=class{constructor(e,t,n){this.currentTableStart=null,this.currentTableNodeSize=null,this.currentColumnIndex=null,this.currentColumnAlignment=fb,this.currentTableElement=null,this.hasPositionContext=!1,this.repositionScheduler=mv(()=>{this.hasPositionContext&&this.updateOverlayPosition()}),this.handleActionsMouseDown=e=>{e.preventDefault()},this.handleDeleteClick=e=>{if(e.preventDefault(),this.currentTableStart===null||this.currentTableNodeSize===null)return;let t=this.currentTableStart,n=this.currentTableStart+this.currentTableNodeSize,r=this.view.state.tr.delete(t,n).scrollIntoView();this.view.dispatch(r),this.view.focus()},this.handleAlignLeftClick=()=>{this.applyColumnAlignment(`left`)},this.handleAlignCenterClick=()=>{this.applyColumnAlignment(`center`)},this.handleAlignRightClick=()=>{this.applyColumnAlignment(`right`)},this.handleInsertRowBelow=()=>{let e=qy(this.view.state);!e||e.rowIndex<0||Qy(this.view,e,`below`)},this.handleInsertRowAbove=()=>{let e=qy(this.view.state);!e||e.rowIndex<=0||Qy(this.view,e,`above`)},this.handleInsertColumnLeft=()=>{this.insertColumn(`left`)},this.handleInsertColumnRight=()=>{this.insertColumn(`right`)},this.handleDeleteRow=()=>{rb(this.view)},this.handleDeleteColumn=()=>{ib(this.view)},this.view=e,this.messages=t,this.portalContainer=n,this.editorWrapper=lv(e.dom),this.actionsContainer=document.createElement(`div`),this.actionsContainer.className=`zt-md-table-actions-overlay`,this.deleteButton=document.createElement(`button`),this.deleteButton.type=`button`,this.deleteButton.className=`zt-md-table-action-button zt-md-table-action-button-danger`,this.deleteButton.style.display=`inline-flex`,this.deleteButton.setAttribute(`aria-label`,t.tableDeleteAriaLabel),this.deleteButton.innerHTML=mb,this.alignLeftButton=this.createColumnAlignmentButton(t.tableAlignLeftAriaLabel,hb),this.alignCenterButton=this.createColumnAlignmentButton(t.tableAlignCenterAriaLabel,gb),this.alignRightButton=this.createColumnAlignmentButton(t.tableAlignRightAriaLabel,_b),this.moreActionsMount=document.createElement(`span`),this.moreActionsMount.className=`zt-md-table-more-actions-mount`,this.moreActionsRoot=(0,jn.createRoot)(this.moreActionsMount),this.actionsContainer.append(this.moreActionsMount,this.alignLeftButton,this.alignCenterButton,this.alignRightButton,this.deleteButton),this.actionsContainer.addEventListener(`mousedown`,this.handleActionsMouseDown),this.deleteButton.addEventListener(`click`,this.handleDeleteClick),this.alignLeftButton.addEventListener(`click`,this.handleAlignLeftClick),this.alignCenterButton.addEventListener(`click`,this.handleAlignCenterClick),this.alignRightButton.addEventListener(`click`,this.handleAlignRightClick),this.repositionScheduler.bindGlobal(),this.repositionScheduler.bindWrapper(this.editorWrapper),this.update(e)}createColumnAlignmentButton(e,t){let n=document.createElement(`button`);return n.type=`button`,n.className=`zt-md-table-action-button`,n.style.display=`inline-flex`,n.setAttribute(`aria-label`,e),n.innerHTML=t,n}resolveColumnAlignment(e){return e===`center`||e===`right`?e:fb}updateAlignmentButtonsState(e){this.alignLeftButton.disabled=!e,this.alignCenterButton.disabled=!e,this.alignRightButton.disabled=!e,this.alignLeftButton.classList.toggle(`zt-md-table-action-button-active`,e&&this.currentColumnAlignment===`left`),this.alignCenterButton.classList.toggle(`zt-md-table-action-button-active`,e&&this.currentColumnAlignment===`center`),this.alignRightButton.classList.toggle(`zt-md-table-action-button-active`,e&&this.currentColumnAlignment===`right`)}applyColumnAlignment(e){let t=qy(this.view.state);!t||t.rowIndex<0||t.columnIndex<0||nb(this.view,t,e)}insertColumn(e){let t=qy(this.view.state);!t||t.rowIndex<0||t.columnIndex<0||eb(this.view,t,e)}renderMoreActions(e,t,n,r){this.moreActionsRoot.render((0,p.createElement)(ab,{messages:this.messages,portalContainer:this.portalContainer,canInsertRowAbove:e,canInsertColumn:t,canDeleteRow:n,canDeleteColumn:r,onInsertRowAbove:this.handleInsertRowAbove,onInsertRowBelow:this.handleInsertRowBelow,onInsertColumnLeft:this.handleInsertColumnLeft,onInsertColumnRight:this.handleInsertColumnRight,onDeleteRow:this.handleDeleteRow,onDeleteColumn:this.handleDeleteColumn}))}resolveTableElement(e){if(e instanceof HTMLTableElement)return e;let t=e.querySelector(`table`);return t instanceof HTMLTableElement?t:null}resolveTableAnchor(e,t){if(!this.editorWrapper)return null;let n=e.getBoundingClientRect(),r=dv(n,this.editorWrapper),i=n.width,a=r.anchorLeftInContent+i-t-sb,o=r.anchorTopInContent-cb+lb;return{anchorLeftInContent:a,anchorTopInContent:o,anchorBottomInContent:o}}resolveActionsContainerWidth(){let e=this.actionsContainer.getBoundingClientRect().width;return e<=0?null:e}updateOverlayPosition(){if(!this.editorWrapper||!this.currentTableElement||this.actionsContainer.parentElement!==this.portalContainer)return;let e=this.resolveActionsContainerWidth();if(e===null)return;let t=this.resolveTableAnchor(this.currentTableElement,e);if(!t)return;let n=pv({wrapper:this.editorWrapper,anchor:t,overlaySize:{width:e},placement:db,offsetY:0,boundaryInset:ub},this.portalContainer);this.actionsContainer.style.left=`${n.left}px`,this.actionsContainer.style.top=`${n.top}px`}update(e){if(this.view=e,!this.editorWrapper||!vb(e)){this.detach();return}let t=qy(e.state);if(!t){this.detach();return}let n=e.nodeDOM(t.tableStart);if(!(n instanceof HTMLElement)){this.detach();return}let r=this.resolveTableElement(n);if(!r){this.detach();return}this.actionsContainer.parentElement!==this.portalContainer&&this.portalContainer.append(this.actionsContainer);let i=Yy(t),a=i&&t.tableNode.child(0).childCount>1,o=t.rowIndex>0,s=t.rowIndex>0,c=t.tableNode.childCount>0?t.tableNode.child(0):null;this.currentColumnIndex=i?t.columnIndex:null,this.currentColumnAlignment=this.resolveColumnAlignment(this.currentColumnIndex===null?null:c?.maybeChild(this.currentColumnIndex)?.attrs?.alignment),this.updateAlignmentButtonsState(i),this.renderMoreActions(o,i,s,a),this.currentTableElement=r,this.currentTableStart=t.tableStart,this.currentTableNodeSize=t.tableNodeSize,this.hasPositionContext=!0,this.updateOverlayPosition(),this.repositionScheduler.schedule()}detach(){this.moreActionsRoot.render(null),this.actionsContainer.remove(),this.currentTableElement=null,this.currentTableStart=null,this.currentTableNodeSize=null,this.currentColumnIndex=null,this.currentColumnAlignment=fb,this.updateAlignmentButtonsState(!1),this.hasPositionContext=!1}destroy(){this.detach(),this.repositionScheduler.destroy(),this.moreActionsRoot.unmount(),this.actionsContainer.removeEventListener(`mousedown`,this.handleActionsMouseDown),this.deleteButton.removeEventListener(`click`,this.handleDeleteClick),this.alignLeftButton.removeEventListener(`click`,this.handleAlignLeftClick),this.alignCenterButton.removeEventListener(`click`,this.handleAlignCenterClick),this.alignRightButton.removeEventListener(`click`,this.handleAlignRightClick)}},bb=(e,n)=>{let r=un(void 0,n);return a.u(()=>new t.i({key:new t.a(ob),view:t=>new yb(t,r,e)}))},xb=`list_item`,Sb=`li[data-item-type="task"]`,Cb=24,wb=(e,t)=>{let n=t.getBoundingClientRect();return e.clientX>=n.left&&e.clientX<=n.left+Cb&&e.clientY>=n.top&&e.clientY<=n.top+Cb},Tb=e=>{if(!(e instanceof Element))return null;let t=e.closest(Sb);return t instanceof HTMLElement?t:null},Eb=(e,t)=>{if(!e.editable)return!1;let n=Tb(t.target);return!n||!wb(t,n)?!1:(t.preventDefault(),!0)},Db=(e,t)=>{let n=e.posAtDOM(t,0)-1,r=e.state.doc.nodeAt(n);return!r||r.type.name!==xb||r.attrs.checked==null?!1:(e.dispatch(e.state.tr.setNodeMarkup(n,void 0,{...r.attrs,checked:!r.attrs.checked})),!0)},Ob=a.u(()=>new t.i({props:{handleDOMEvents:{mousedown:(e,t)=>Eb(e,t),dblclick:(e,t)=>Eb(e,t),click:(e,t)=>{if(!e.editable)return!1;let n=Tb(t.target);return!n||!wb(t,n)||!Db(e,n)?!1:(t.preventDefault(),!0)}}}})),kb=`Tab`,Ab=4,jb=/^ */,Mb=`list_item`,Nb=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,Pb=e=>{let{$from:t}=e.selection;for(let e=t.depth;e>=0;--e){let n=t.node(e);if(n.type.name===Mb)return n.type}return null},Fb=e=>{let{selection:t,doc:n}=e;if(t.empty)return[t.$from.start()];let r=new Set;return n.nodesBetween(t.from,t.to,(e,t)=>{e.isTextblock&&r.add(t+1)}),Array.from(r)},Ib=(e,t)=>{let{state:n}=e,r=` `.repeat(Ab),i=Fb(n).sort((e,t)=>t-e),a=n.tr;return n.selection.empty?a.insertText(r,n.selection.to):i.forEach(e=>{a.insertText(r,e)}),a.docChanged?(t.preventDefault(),e.dispatch(a),!0):!1},Lb=(e,n)=>{let{state:r}=e,{selection:i}=r;if(!(i instanceof t.c))return!1;let a=Fb(r).sort((e,t)=>t-e),o=r.tr;return a.forEach(e=>{let t=r.doc.resolve(e).parent.textContent.match(jb)?.[0].length??0,n=Math.min(t,Ab);n<=0||o.delete(e,e+n)}),o.docChanged?(n.preventDefault(),e.dispatch(o),!0):!1},Rb=a.u(()=>new t.i({key:new t.a(`zt-md-tab-space-indent`),props:{handleKeyDown:(e,t)=>{let n=e;if(!Nb(n)||t.defaultPrevented||t.key!==kb||t.altKey||t.ctrlKey||t.metaKey)return!1;let r=Pb(n.state);if(r){let e=(t.shiftKey?o.n(r):o.r(r))(n.state,n.dispatch);return t.preventDefault(),e||!0}return t.shiftKey?Lb(n,t):Ib(n,t)}}})),zb=async e=>{let t=await Promise.resolve().then(()=>require(`./lib-IahjxPWM.cjs`)).then(e=>e.g),n=await Promise.resolve().then(()=>require(`./lib-38nxOnTd.cjs`)),r=await Promise.resolve().then(()=>require(`./lib-C8xOD1Bp.cjs`)),i=await Promise.resolve().then(()=>require(`./lib-8Tr6mAln.cjs`)),a=await Promise.resolve().then(()=>require(`./lib-BNOSyYeU.cjs`)).then(e=>e.n),o=await Promise.resolve().then(()=>require(`./lib-C5AzmhNY.cjs`)),s=await Promise.resolve().then(()=>require(`./lib-DWZA8C0h.cjs`)).then(e=>e.p),c=w(t,`Editor`),l=w(t,`rootCtx`),u=w(t,`defaultValueCtx`),d=w(t,`editorViewOptionsCtx`),f=w(t,`nodeViewCtx`),p=w(i,`listenerCtx`),m=w(i,`listener`),h=w(n,`clipboard`),g=w(r,`indent`),_=w(r,`indentConfig`),v=w(a,`commonmark`),y=w(o,`gfm`),b=w(s,`replaceAll`),S=e.messages??un(),T=bb(e.portalContainer,S),E=cy(e.portalContainer,S),ee=kv(S,e.portalContainer),te=await Ny(e.portalContainer,e.slashMenu,S,e.imageUpload,e.locale),O=te.plugins,ne={listener:m,commonmark:v,gfm:y,codeBlockPrism:Hv,codeBlockLanguagePicker:ee,clipboard:h,indent:g,tableArrowEntry:Vy,mathBackspaceEntry:ll,blockquoteBackspaceLift:Lh,tableFocusActions:T,selectionTooltip:E,gapCursor:de,dropCursor:D,math:Ah,taskListToggle:Ob,tabSpaceIndent:Rb,codeBlockModASelect:Iv,slash:O.length>0?O:null},re=C(ne,{includeRuntime:!1}),ie=C(ne,{includeRuntime:!0}).filter(e=>e.name===`clipboard`||e.name===`indent`),ae=c.make();ae.config(t=>{xn(t),t.set(l,e.root),t.set(u,e.markdown),t.set(d,{editable:()=>e.editable,handleClick:(e,t,n)=>{let r=n.target;if(!(r instanceof Element))return!1;let i=r.closest(`a[href]`);if(!(i instanceof HTMLAnchorElement))return!1;let a=i.getAttribute(`href`)?.trim();return!a||!n.ctrlKey?!1:(n.preventDefault(),n.stopPropagation(),window.open(a,`_blank`,`noopener,noreferrer`),!0)}});let n=t.get(f)??[];t.set(f,[...n,[`image`,An(S)],[`math_block`,ch(S)],[`code_block`,qh(S)]]),t.get(p).markdownUpdated((t,n)=>{e.onChange(n)}),te.config&&te.config(t)}),re.forEach(e=>{ae.use(e.plugin)}),await ae.create(),ie.forEach(e=>{try{ae.use(e.plugin),e.name===`indent`&&ae.action(e=>{e.set(_,{type:`space`,size:4})})}catch(e){console.error(e)}});let oe=x(b,ae);return{destroy:async()=>{await ae.destroy()},setMarkdown:async e=>{oe(e)},setEditable:async e=>{}}},Bb=e=>{let t=(0,p.useRef)(null),n=(0,p.useRef)(e.markdown),r=(0,p.useRef)(e.markdown),i=(0,p.useRef)(e.onMarkdownChange),a=(0,p.useRef)(e.onInitError),o=(0,p.useRef)(e.onInitReady),s=(0,p.useRef)(null);(0,p.useEffect)(()=>{r.current=e.markdown},[e.markdown]),(0,p.useEffect)(()=>{i.current=e.onMarkdownChange},[e.onMarkdownChange]),(0,p.useEffect)(()=>{a.current=e.onInitError},[e.onInitError]),(0,p.useEffect)(()=>{o.current=e.onInitReady},[e.onInitReady]),(0,p.useEffect)(()=>(s.current&&s.current.cancel(),s.current=b(e=>{i.current(e)},e.debounceMs),()=>{s.current?.cancel(),s.current=null}),[e.debounceMs]),(0,p.useEffect)(()=>{let i=e.root;if(!i)return;let c=!1,l=null;return(async()=>{try{let a=await zb({root:i,portalContainer:e.portalContainer,markdown:r.current,editable:e.editable,messages:e.messages,locale:e.locale,slashMenu:e.slashMenu,imageUpload:e.imageUpload,onChange:e=>{n.current=e,s.current?.(e)}});if(c){await a.destroy();return}l=a,t.current=a,o.current?.()}catch(e){c||(console.error(`Milkdown init failed:`,e),a.current?.(e))}})(),()=>{c=!0,s.current?.cancel(),l&&=(l.destroy(),t.current===l&&(t.current=null),null)}},[e.root,e.editable,e.messages,e.locale,e.portalContainer,e.slashMenu,e.imageUpload]),(0,p.useEffect)(()=>{let r=t.current;r&&e.markdown!==n.current&&(n.current=e.markdown,r.setMarkdown(e.markdown))},[e.markdown])},Vb=160,Hb=e=>e.length===0?`""`:`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\r\n|\r|\n/g,`\\A `)}"`,Ub=e=>(Bb({root:e.root,markdown:e.markdown,portalContainer:e.portalContainer,editable:e.editable,debounceMs:e.debounceMs,messages:e.messages,locale:e.locale,slashMenu:e.slashMenu,imageUpload:e.imageUpload,onMarkdownChange:e.onMarkdownChange,onInitReady:e.onInitReady,onInitError:e.onInitError}),(0,h.jsx)(`div`,{className:_(`zt-md-editor`,e.editable?`zt-md-editable`:`zt-md-readonly`),"aria-label":e.messages.editorAriaLabel,style:e.editorStyle,children:(0,h.jsx)(`div`,{"data-milkdown-root":!0,ref:e.onRootRef})})),Wb=e=>{let[t,n]=(0,p.useState)(``),[r,i]=(0,p.useState)(null),[a,o]=(0,p.useState)(null),s=e.theme??`light`,c=e.editable??!0,l=e.debounceMs??Vb,{markdown:u,setMarkdown:d}=y(e.value,e.defaultValue,e.onChange),f=(0,p.useMemo)(()=>un(e.locale,e.messages,e.placeholder),[e.locale,e.messages,e.placeholder]),m={"--zt-gap-placeholder-content":Hb(f.placeholder),...e.maxHeight===void 0?{}:{maxHeight:e.maxHeight,overflowY:`auto`}},g=(0,p.useCallback)(e=>{d(e)},[d]),v=(0,p.useCallback)(()=>{n(``)},[]),b=(0,p.useCallback)(e=>{n(e instanceof Error?e.message:f.initError)},[f.initError]),x=(0,p.useCallback)(e=>{i(e)},[]),S=(0,p.useCallback)(e=>{o(e)},[]);return(0,h.jsxs)(`div`,{className:_(`zt-md`,s===`dark`?`zt-md-dark`:`zt-md-light`,e.className),children:[e.headerSlot?(0,h.jsx)(`div`,{className:`zt-md-header`,children:e.headerSlot}):null,(0,h.jsxs)(`div`,{className:`zt-md-body`,children:[t?(0,h.jsx)(`div`,{className:`zt-md-error`,children:t}):null,r?(0,h.jsx)(Ub,{root:a,onRootRef:S,markdown:u,locale:e.locale,portalContainer:r,editable:c,debounceMs:l,messages:f,slashMenu:e.slashMenu,imageUpload:e.imageUpload,editorStyle:m,onMarkdownChange:g,onInitReady:v,onInitError:b}):null,(0,h.jsx)(`div`,{ref:x,className:`zt-md-portal`})]})]})};exports.MilkdownEditor=Wb;
|
|
269
|
+
`).lastIndexOf(`/`);if(a<0)return!1;let o=r+a,s=t.tr.delete(o,i);return e.dispatch(s.scrollIntoView()),!0},$h={Type:nt,Heading1:ke,Heading2:Ae,Heading3:je,Heading4:Me,Heading5:Pe,Heading6:Ne,Image:Le,List:Ue,ListOrdered:Ve,ListTodo:He,Code:Ee,SquareFunction:Je,SquareCode:qe,TextQuote:et,Sigma:Ke,Table:Xe},eg=we,tg=(e,t,n,r)=>{r.splice(0).forEach(e=>{e.unmount()}),e.innerHTML=``;let i=``;t.forEach((t,a)=>{if(t.group!==i){let n=document.createElement(`div`);n.className=`slash-menu-group`,n.textContent=t.group,e.appendChild(n),i=t.group}let o=document.createElement(`div`);o.className=`slash-menu-item`,o.dataset.command=t.command,o.dataset.selected=a===n?`true`:`false`;let s=document.createElement(`span`);s.className=`slash-menu-item-icon`;let c=t.icon?$h[t.icon]??eg:null;if(c){let e=(0,Dn.createRoot)(s);e.render((0,l.createElement)(c,{size:16,strokeWidth:2})),r.push(e)}let u=document.createElement(`span`);u.className=`slash-menu-item-label`,u.textContent=t.label,o.appendChild(s),o.appendChild(u),e.appendChild(o)})},ng=e=>{let t=document.createElement(`div`);t.className=`slash-menu`,t.style.display=`none`,e.appendChild(t);let n=!1,r=``,i=!1,a=null,o=[],s=()=>{if(!n||!a)return;let{editorWrapper:r,anchorTopInContent:i,anchorBottomInContent:o,anchorLeftInContent:s,placement:c,offsetY:l}=a,u=Tm({wrapper:r,anchor:{anchorTopInContent:i,anchorBottomInContent:o,anchorLeftInContent:s},overlaySize:{width:t.offsetWidth||210},placement:c,offsetY:l,boundaryInset:4},e);t.style.left=`${u.left}px`,t.style.top=`${u.top}px`,t.dataset.placement=c},c=Em(()=>{n&&s()}),l=()=>{t.style.top=``,t.style.left=``,t.style.transform=``,delete t.dataset.placement};return{menu:t,isVisible:()=>n,setVisible:(e,a)=>{if(n!==e){if(n=e,t.style.display=e?`block`:`none`,!e){c.unbindGlobal(),c.bindWrapper(null),l(),r=``,i=!0;return}c.bindGlobal(),a&&(a(),i&&=(a(),!1))}},renderIfNeeded:(e,n)=>{let i=`${e.map(e=>e.command).join(`|`)}::${n}`;r!==i&&(tg(t,e,n,o),r=i)},scrollActiveItemIntoView:e=>{let n=t.querySelector(`.slash-menu-item[data-selected="true"]`);n&&(n.scrollIntoView({block:`nearest`,inline:`nearest`}),e&&e())},updatePositionContext:e=>{a=e,c.bindWrapper(e?.editorWrapper??null)},updatePosition:s,destroy:()=>{o.splice(0).forEach(e=>{e.unmount()}),c.destroy(),t.remove()}}},rg=(e,t)=>{if(!(!e||typeof e!=`object`))return e[t]},ig=async()=>{let e=(await Promise.resolve().then(()=>require("./lib-DgEwQN1U.cjs"))).slashFactory;if(typeof e!=`function`)return console.error(`[zt-md/slash] slashFactory not found`),null;let t=e(`zt-md-slash`),n=Array.isArray(t)?t[0]:void 0,r=Array.isArray(t)?t[1]:t,i=Array.isArray(t)?t[2]:void 0;if(!r)return null;let a=Array.isArray(t)?t.filter((e,t)=>t<2&&e!=null):[r],o=rg(n,`key`)??rg(r,`key`)??rg(i,`key`)??rg(t,`key`);return a.length===0||o===void 0?null:{plugins:a,key:o}},ag=async(e,t,n,r,i=`zh-CN`)=>{if(t?.enabled===!1)return{plugins:[],config:null};try{let a=await ig();if(!a)return{plugins:[],config:null};let o=Kh(t,i),s=ng(e),c=0,l=null,u=o,d=!1,f=new Set([`ArrowDown`,`ArrowUp`,`Enter`,`Escape`]),p=e=>!f.has(e.key)||!d?!1:e.key===`ArrowDown`?(e.preventDefault(),u.length===0?!0:(c=(c+1)%u.length,s.renderIfNeeded(u,c),s.scrollActiveItemIntoView(()=>{s.updatePosition()}),!0)):e.key===`ArrowUp`?(e.preventDefault(),u.length===0?!0:(c=(c-1+u.length)%u.length,s.renderIfNeeded(u,c),s.scrollActiveItemIntoView(()=>{s.updatePosition()}),!0)):e.key===`Enter`?(e.preventDefault(),g(),!0):e.key===`Escape`?(e.preventDefault(),s.setVisible(!1),!0):!1,m=e=>{let t=e?.state?.selection?.from;if(typeof t!=`number`)return null;let n=e?.coordsAtPos?.(t);return n?new DOMRect(n.left,n.top,Math.max(n.right-n.left,1),n.bottom-n.top):null},h=e=>{if(!Uh(e)){u=[],d=!1,s.updatePositionContext(null),s.setVisible(!1);return}let t=Zh(e,o);if(u=t.visibleItems,d=t.shouldShow,t.shouldShow&&c>=u.length&&(c=0),t.shouldShow&&!s.isVisible()&&(c=0),!t.shouldShow){s.updatePositionContext(null),s.setVisible(!1);return}let n=m(e),r=xm(e?.dom);if(n&&r){let e=Sm(n,320),t=Cm(n,r);s.updatePositionContext({editorWrapper:r,anchorTopInContent:t.anchorTopInContent,anchorBottomInContent:t.anchorBottomInContent,anchorLeftInContent:t.anchorLeftInContent,placement:e,offsetY:8})}s.renderIfNeeded(u,c),s.isVisible()?s.updatePosition():s.setVisible(!0,()=>{s.updatePosition()})},g=async()=>{if(!Uh(l)){d=!1,s.updatePositionContext(null),s.setVisible(!1);return}if(!l||c<0||c>=u.length)return;let t=u[c];if(Qh(l)){if(t.command===`image`){s.setVisible(!1),n&&bi({portalContainer:e,view:l,messages:n,imageUpload:r});return}await Hh(l,t.command)&&(s.setVisible(!1),t.command===`mathBlock`&&queueMicrotask(()=>{let e=l?.dom?.querySelector?.(`.zt-md-math-block-editing .zt-md-math-block-textarea`);!e||document.activeElement===e||e.focus()}))}};return s.menu.addEventListener(`mousedown`,e=>{e.preventDefault();let t=(e.target?.closest(`.slash-menu-item`))?.dataset.command??``;if(!t)return;let n=u.findIndex(e=>e.command===t);n<0||(c=n,g())}),{plugins:a.plugins,config:e=>{e.set(a.key,{props:{handleKeyDown:(e,t)=>p(t)},view:()=>({update:e=>{l=e,h(e)},destroy:()=>{d=!1,s.destroy()}})})}}}catch(e){return console.error(`[zt-md/slash] init failed`,e),{plugins:[],config:null}}},og=`table`,sg=`ArrowUp`,cg=e=>e.key!==sg||e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey,lg=(e,t)=>{let n=t.nodeBefore;return!n||n.type.name!==og?null:{tableNode:n,tableStart:e-n.nodeSize}},ug=e=>{if(e.parent.type.name!==`paragraph`||e.parentOffset!==0||e.parent.childCount>0||e.depth<1)return null;let t=e.index(e.depth-1);if(t<=0)return null;let n=e.node(e.depth-1).child(t-1);return n.type.name===og?{tableNode:n,tableStart:e.before(e.depth)-n.nodeSize}:null},dg=(e,t)=>{if(e.childCount===0)return null;let n=e.childCount-1,r=e.child(n);if(r.childCount===0)return null;let i=0;for(let t=0;t<n;t+=1)i+=e.child(t).nodeSize;let a=r.childCount-1,o=r.child(a),s=0;for(let e=0;e<a;e+=1)s+=r.child(e).nodeSize;return t+1+i+1+s+o.nodeSize-1},fg=e=>{let{selection:n}=e.state,r=n.$from,i=null;if(n instanceof E?i=lg(n.from,r):n.empty&&(i=ug(r)),!i)return!1;let a=dg(i.tableNode,i.tableStart);if(a===null)return!1;let o=e.state.tr.setSelection(t.c.near(e.state.doc.resolve(a),-1)).scrollIntoView();return e.dispatch(o),e.focus(),!0},pg=r.u(()=>new t.i({key:new t.a(`zt-md-table-arrow-entry`),props:{handleKeyDown:(e,t)=>cg(t)?!1:fg(e)}})),mg=`table`,hg=`table_header_row`,gg=`table_row`,_g=`table_header`,vg=`table_cell`,yg=e=>{let t=e.selection.$from,n=-1,r=-1;for(let e=t.depth;e>=0;--e){let i=t.node(e);if(r<0&&(i.type.name===vg||i.type.name===_g)&&(r=t.index(e-1)),n<0&&(i.type.name===gg||i.type.name===hg)&&(n=t.index(e-1)),i.type.name===mg)return{tableNode:i,tableStart:e===0?0:t.before(e),tableNodeSize:i.nodeSize,rowIndex:n,columnIndex:r}}return null},bg=(e,t,n,r)=>{if(n<0||n>=e.childCount)return null;let i=0;for(let t=0;t<n;t+=1)i+=e.child(t).nodeSize;let a=e.child(n);if(r<0||r>=a.childCount)return null;let o=0;for(let e=0;e<r;e+=1)o+=a.child(e).nodeSize;return t+1+i+1+o+1+1},xg=e=>{if(e.columnIndex<0||e.tableNode.childCount===0)return!1;let t=e.tableNode.child(0);return e.columnIndex<t.childCount},Sg=(e,n,r,i)=>{let a=bg(n.tableNode,n.tableStart,r,i);if(a===null)return!1;let o=e.state.tr.setSelection(t.c.near(e.state.tr.doc.resolve(a),1));return e.dispatch(o),!0},Cg=(e,t)=>t(e.state,e.dispatch,e)?(e.dispatch(e.state.tr.scrollIntoView()),e.focus(),!0):!1,wg=(e,t,n)=>t.rowIndex<0||t.columnIndex<0||!Sg(e,t,t.rowIndex,t.columnIndex)?!1:Cg(e,n===`above`?c.o:c.a),Tg=(e,t)=>t.rowIndex<=0||t.columnIndex<0||!Sg(e,t,t.rowIndex,t.columnIndex)?!1:Cg(e,c.l),Eg=(e,t,n)=>t.rowIndex<0||t.columnIndex<0||!Sg(e,t,t.rowIndex,t.columnIndex)?!1:Cg(e,n===`left`?c.i:c.r),Dg=(e,t)=>t.rowIndex<0||t.columnIndex<0||(t.tableNode.childCount>0?t.tableNode.child(0).childCount:0)<=1||!Sg(e,t,t.rowIndex,t.columnIndex)?!1:Cg(e,c.c),Og=(e,t,n)=>{if(t.columnIndex<0)return!1;let r=c.n.get(t.tableNode),i=t.tableStart+1,a=t.columnIndex,o=e.state.tr;for(let e=0;e<r.height;e+=1){let t=e*r.width+a,s=r.map[t];if(typeof s!=`number`)continue;let c=i+s,l=o.doc.nodeAt(c);if(!l)continue;let u={...l.attrs,alignment:n};o.setNodeMarkup(c,l.type,u,l.marks)}return o.docChanged?(o.scrollIntoView(),e.dispatch(o),e.focus(),!0):!1},kg=e=>{let t=yg(e.state);!t||t.rowIndex<=0||Tg(e,t)},Ag=e=>{let t=yg(e.state);!t||t.rowIndex<0||t.columnIndex<0||Dg(e,t)},jg=e=>{let[t,n]=(0,l.useState)(!1);bm(t,()=>n(!1));let r=e=>{e.preventDefault()},i=e=>{n(e)},a=e=>{e.preventDefault()};return(0,l.createElement)(um,{open:t,onOpenChange:i},(0,l.createElement)(dm,{asChild:!0},(0,l.createElement)(`button`,{type:`button`,className:`zt-md-table-action-button`,"aria-label":e.messages.tableMoreAriaLabel,onMouseDown:r},(0,l.createElement)(Oe,{size:14,strokeWidth:2,"aria-hidden":`true`}))),(0,l.createElement)(fm,{align:`end`,sideOffset:6,className:`zt-md-table-action-popover`,container:e.portalContainer,onOpenAutoFocus:a,onCloseAutoFocus:a},(0,l.createElement)(`div`,{className:`zt-md-table-action-menu-group`},(0,l.createElement)(ii,{type:`button`,variant:`ghost`,size:`sm`,className:`zt-md-table-action-menu-item disabled:pointer-events-auto disabled:cursor-not-allowed`,disabled:!e.canInsertRowAbove,onMouseDown:r,onClick:()=>{e.onInsertRowAbove(),n(!1)}},e.messages.tableInsertRowAboveLabel),(0,l.createElement)(ii,{type:`button`,variant:`ghost`,size:`sm`,className:`zt-md-table-action-menu-item disabled:pointer-events-auto disabled:cursor-not-allowed`,onMouseDown:r,onClick:()=>{e.onInsertRowBelow(),n(!1)}},e.messages.tableInsertRowBelowLabel),(0,l.createElement)(ii,{type:`button`,variant:`ghost`,size:`sm`,className:`zt-md-table-action-menu-item disabled:pointer-events-auto disabled:cursor-not-allowed`,disabled:!e.canInsertColumn,onMouseDown:r,onClick:()=>{e.onInsertColumnLeft(),n(!1)}},e.messages.tableInsertColumnLeftLabel),(0,l.createElement)(ii,{type:`button`,variant:`ghost`,size:`sm`,className:`zt-md-table-action-menu-item disabled:pointer-events-auto disabled:cursor-not-allowed`,disabled:!e.canInsertColumn,onMouseDown:r,onClick:()=>{e.onInsertColumnRight(),n(!1)}},e.messages.tableInsertColumnRightLabel)),(0,l.createElement)(`div`,{className:`zt-md-table-action-menu-divider`,"aria-hidden":`true`}),(0,l.createElement)(`div`,{className:`zt-md-table-action-menu-group`},(0,l.createElement)(ii,{type:`button`,variant:`ghost`,size:`sm`,className:`zt-md-table-action-menu-item zt-md-table-action-menu-item-danger disabled:pointer-events-auto disabled:cursor-not-allowed`,disabled:!e.canDeleteRow,onMouseDown:r,onClick:()=>{e.onDeleteRow(),n(!1)}},e.messages.tableDeleteRowLabel),(0,l.createElement)(ii,{type:`button`,variant:`ghost`,size:`sm`,className:`zt-md-table-action-menu-item zt-md-table-action-menu-item-danger disabled:pointer-events-auto disabled:cursor-not-allowed`,disabled:!e.canDeleteColumn,onMouseDown:r,onClick:()=>{e.onDeleteColumn(),n(!1)}},e.messages.tableDeleteColumnLabel))))},Mg=`zt-md-table-focus-actions`,Ng=0,Pg=24,Fg=4,Ig=4,Lg=`top`,Rg=`left`,zg=e=>(0,u.renderToStaticMarkup)((0,l.createElement)(e,{size:14,strokeWidth:2,"aria-hidden":`true`})),Bg=zg(tt),Vg=zg($e),Hg=zg(Qe),Ug=zg(Ze),Wg=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,Gg=class{constructor(e,t,n){this.currentTableStart=null,this.currentTableNodeSize=null,this.currentColumnIndex=null,this.currentColumnAlignment=Rg,this.currentTableElement=null,this.hasPositionContext=!1,this.repositionScheduler=Em(()=>{this.hasPositionContext&&this.updateOverlayPosition()}),this.handleActionsMouseDown=e=>{e.preventDefault()},this.handleDeleteClick=e=>{if(e.preventDefault(),this.currentTableStart===null||this.currentTableNodeSize===null)return;let t=this.currentTableStart,n=this.currentTableStart+this.currentTableNodeSize,r=this.view.state.tr.delete(t,n).scrollIntoView();this.view.dispatch(r),this.view.focus()},this.handleAlignLeftClick=()=>{this.applyColumnAlignment(`left`)},this.handleAlignCenterClick=()=>{this.applyColumnAlignment(`center`)},this.handleAlignRightClick=()=>{this.applyColumnAlignment(`right`)},this.handleInsertRowBelow=()=>{let e=yg(this.view.state);!e||e.rowIndex<0||wg(this.view,e,`below`)},this.handleInsertRowAbove=()=>{let e=yg(this.view.state);!e||e.rowIndex<=0||wg(this.view,e,`above`)},this.handleInsertColumnLeft=()=>{this.insertColumn(`left`)},this.handleInsertColumnRight=()=>{this.insertColumn(`right`)},this.handleDeleteRow=()=>{kg(this.view)},this.handleDeleteColumn=()=>{Ag(this.view)},this.view=e,this.messages=t,this.portalContainer=n,this.editorWrapper=xm(e.dom),this.actionsContainer=document.createElement(`div`),this.actionsContainer.className=`zt-md-table-actions-overlay`,this.deleteButton=document.createElement(`button`),this.deleteButton.type=`button`,this.deleteButton.className=`zt-md-table-action-button zt-md-table-action-button-danger`,this.deleteButton.style.display=`inline-flex`,this.deleteButton.setAttribute(`aria-label`,t.tableDeleteAriaLabel),this.deleteButton.innerHTML=Bg,this.alignLeftButton=this.createColumnAlignmentButton(t.tableAlignLeftAriaLabel,Vg),this.alignCenterButton=this.createColumnAlignmentButton(t.tableAlignCenterAriaLabel,Hg),this.alignRightButton=this.createColumnAlignmentButton(t.tableAlignRightAriaLabel,Ug),this.moreActionsMount=document.createElement(`span`),this.moreActionsMount.className=`zt-md-table-more-actions-mount`,this.moreActionsRoot=(0,Dn.createRoot)(this.moreActionsMount),this.actionsContainer.append(this.moreActionsMount,this.alignLeftButton,this.alignCenterButton,this.alignRightButton,this.deleteButton),this.actionsContainer.addEventListener(`mousedown`,this.handleActionsMouseDown),this.deleteButton.addEventListener(`click`,this.handleDeleteClick),this.alignLeftButton.addEventListener(`click`,this.handleAlignLeftClick),this.alignCenterButton.addEventListener(`click`,this.handleAlignCenterClick),this.alignRightButton.addEventListener(`click`,this.handleAlignRightClick),this.repositionScheduler.bindGlobal(),this.repositionScheduler.bindWrapper(this.editorWrapper),this.update(e)}createColumnAlignmentButton(e,t){let n=document.createElement(`button`);return n.type=`button`,n.className=`zt-md-table-action-button`,n.style.display=`inline-flex`,n.setAttribute(`aria-label`,e),n.innerHTML=t,n}resolveColumnAlignment(e){return e===`center`||e===`right`?e:Rg}updateAlignmentButtonsState(e){this.alignLeftButton.disabled=!e,this.alignCenterButton.disabled=!e,this.alignRightButton.disabled=!e,this.alignLeftButton.classList.toggle(`zt-md-table-action-button-active`,e&&this.currentColumnAlignment===`left`),this.alignCenterButton.classList.toggle(`zt-md-table-action-button-active`,e&&this.currentColumnAlignment===`center`),this.alignRightButton.classList.toggle(`zt-md-table-action-button-active`,e&&this.currentColumnAlignment===`right`)}applyColumnAlignment(e){let t=yg(this.view.state);!t||t.rowIndex<0||t.columnIndex<0||Og(this.view,t,e)}insertColumn(e){let t=yg(this.view.state);!t||t.rowIndex<0||t.columnIndex<0||Eg(this.view,t,e)}renderMoreActions(e,t,n,r){this.moreActionsRoot.render((0,l.createElement)(jg,{messages:this.messages,portalContainer:this.portalContainer,canInsertRowAbove:e,canInsertColumn:t,canDeleteRow:n,canDeleteColumn:r,onInsertRowAbove:this.handleInsertRowAbove,onInsertRowBelow:this.handleInsertRowBelow,onInsertColumnLeft:this.handleInsertColumnLeft,onInsertColumnRight:this.handleInsertColumnRight,onDeleteRow:this.handleDeleteRow,onDeleteColumn:this.handleDeleteColumn}))}resolveTableElement(e){if(e instanceof HTMLTableElement)return e;let t=e.querySelector(`table`);return t instanceof HTMLTableElement?t:null}resolveTableAnchor(e,t){if(!this.editorWrapper)return null;let n=e.getBoundingClientRect(),r=Cm(n,this.editorWrapper),i=n.width,a=r.anchorLeftInContent+i-t-Ng,o=r.anchorTopInContent-Pg+Fg;return{anchorLeftInContent:a,anchorTopInContent:o,anchorBottomInContent:o}}resolveActionsContainerWidth(){let e=this.actionsContainer.getBoundingClientRect().width;return e<=0?null:e}updateOverlayPosition(){if(!this.editorWrapper||!this.currentTableElement||this.actionsContainer.parentElement!==this.portalContainer)return;let e=this.resolveActionsContainerWidth();if(e===null)return;let t=this.resolveTableAnchor(this.currentTableElement,e);if(!t)return;let n=Tm({wrapper:this.editorWrapper,anchor:t,overlaySize:{width:e},placement:Lg,offsetY:0,boundaryInset:Ig},this.portalContainer);this.actionsContainer.style.left=`${n.left}px`,this.actionsContainer.style.top=`${n.top}px`}update(e){if(this.view=e,!this.editorWrapper||!Wg(e)){this.detach();return}let t=yg(e.state);if(!t){this.detach();return}let n=e.nodeDOM(t.tableStart);if(!(n instanceof HTMLElement)){this.detach();return}let r=this.resolveTableElement(n);if(!r){this.detach();return}this.actionsContainer.parentElement!==this.portalContainer&&this.portalContainer.append(this.actionsContainer);let i=xg(t),a=i&&t.tableNode.child(0).childCount>1,o=t.rowIndex>0,s=t.rowIndex>0,c=t.tableNode.childCount>0?t.tableNode.child(0):null;this.currentColumnIndex=i?t.columnIndex:null,this.currentColumnAlignment=this.resolveColumnAlignment(this.currentColumnIndex===null?null:c?.maybeChild(this.currentColumnIndex)?.attrs?.alignment),this.updateAlignmentButtonsState(i),this.renderMoreActions(o,i,s,a),this.currentTableElement=r,this.currentTableStart=t.tableStart,this.currentTableNodeSize=t.tableNodeSize,this.hasPositionContext=!0,this.updateOverlayPosition(),this.repositionScheduler.schedule()}detach(){this.moreActionsRoot.render(null),this.actionsContainer.remove(),this.currentTableElement=null,this.currentTableStart=null,this.currentTableNodeSize=null,this.currentColumnIndex=null,this.currentColumnAlignment=Rg,this.updateAlignmentButtonsState(!1),this.hasPositionContext=!1}destroy(){this.detach(),this.repositionScheduler.destroy(),this.moreActionsRoot.unmount(),this.actionsContainer.removeEventListener(`mousedown`,this.handleActionsMouseDown),this.deleteButton.removeEventListener(`click`,this.handleDeleteClick),this.alignLeftButton.removeEventListener(`click`,this.handleAlignLeftClick),this.alignCenterButton.removeEventListener(`click`,this.handleAlignCenterClick),this.alignRightButton.removeEventListener(`click`,this.handleAlignRightClick)}},Kg=(e,n)=>{let i=sn(void 0,n);return r.u(()=>new t.i({key:new t.a(Mg),view:t=>new Gg(t,i,e)}))},qg=`list_item`,Jg=`li[data-item-type="task"]`,Yg=24,Xg=(e,t)=>{let n=t.getBoundingClientRect();return e.clientX>=n.left&&e.clientX<=n.left+Yg&&e.clientY>=n.top&&e.clientY<=n.top+Yg},Zg=e=>{if(!(e instanceof Element))return null;let t=e.closest(Jg);return t instanceof HTMLElement?t:null},Qg=(e,t)=>{if(!e.editable)return!1;let n=Zg(t.target);return!n||!Xg(t,n)?!1:(t.preventDefault(),!0)},$g=(e,t)=>{let n=e.posAtDOM(t,0)-1,r=e.state.doc.nodeAt(n);return!r||r.type.name!==qg||r.attrs.checked==null?!1:(e.dispatch(e.state.tr.setNodeMarkup(n,void 0,{...r.attrs,checked:!r.attrs.checked})),!0)},e_=r.u(()=>new t.i({props:{handleDOMEvents:{mousedown:(e,t)=>Qg(e,t),dblclick:(e,t)=>Qg(e,t),click:(e,t)=>{if(!e.editable)return!1;let n=Zg(t.target);return!n||!Xg(t,n)||!$g(e,n)?!1:(t.preventDefault(),!0)}}}})),t_=`Tab`,n_=4,r_=/^ */,i_=`list_item`,a_=e=>typeof e.props.editable==`function`?e.props.editable(e.state):e.editable,o_=e=>{let{$from:t}=e.selection;for(let e=t.depth;e>=0;--e){let n=t.node(e);if(n.type.name===i_)return n.type}return null},s_=e=>{let{selection:t,doc:n}=e;if(t.empty)return[t.$from.start()];let r=new Set;return n.nodesBetween(t.from,t.to,(e,t)=>{e.isTextblock&&r.add(t+1)}),Array.from(r)},c_=(e,t)=>{let{state:n}=e,r=` `.repeat(n_),i=s_(n).sort((e,t)=>t-e),a=n.tr;return n.selection.empty?a.insertText(r,n.selection.to):i.forEach(e=>{a.insertText(r,e)}),a.docChanged?(t.preventDefault(),e.dispatch(a),!0):!1},l_=(e,n)=>{let{state:r}=e,{selection:i}=r;if(!(i instanceof t.c))return!1;let a=s_(r).sort((e,t)=>t-e),o=r.tr;return a.forEach(e=>{let t=r.doc.resolve(e).parent.textContent.match(r_)?.[0].length??0,n=Math.min(t,n_);n<=0||o.delete(e,e+n)}),o.docChanged?(n.preventDefault(),e.dispatch(o),!0):!1},u_=r.u(()=>new t.i({key:new t.a(`zt-md-tab-space-indent`),props:{handleKeyDown:(e,t)=>{let n=e;if(!a_(n)||t.defaultPrevented||t.key!==t_||t.altKey||t.ctrlKey||t.metaKey)return!1;let r=o_(n.state);if(r){let e=(t.shiftKey?i.n(r):i.r(r))(n.state,n.dispatch);return t.preventDefault(),e||!0}return t.shiftKey?l_(n,t):c_(n,t)}}})),d_=async e=>{let t=await Promise.resolve().then(()=>require("./lib-DzY83R_P.cjs")).then(e=>e._),n=await Promise.resolve().then(()=>require("./lib-CVebEyb8.cjs")),r=await Promise.resolve().then(()=>require("./lib-5pUyY-Tl.cjs")),i=await Promise.resolve().then(()=>require("./lib-F08NY8fk.cjs")),a=await Promise.resolve().then(()=>require("./lib-BmAQCwSQ.cjs")),o=await Promise.resolve().then(()=>require("./lib-Dplx6t-N.cjs")).then(e=>e.n),s=await Promise.resolve().then(()=>require("./lib-De0djIEV.cjs")),c=await Promise.resolve().then(()=>require("./lib-DIx8C5AZ.cjs")).then(e=>e.m),l=x(t,`Editor`),u=x(t,`rootCtx`),d=x(t,`defaultValueCtx`),f=x(t,`editorViewOptionsCtx`),p=x(t,`nodeViewCtx`),m=x(i,`listenerCtx`),h=x(i,`listener`),g=x(a,`history`),_=x(n,`clipboard`),y=x(r,`indent`),S=x(r,`indentConfig`),C=x(o,`commonmark`),w=x(s,`gfm`),T=x(c,`replaceAll`),E=e.messages??sn(),te=Kg(e.portalContainer,E),ne=jh(e.portalContainer,E),re=Vm(E,e.portalContainer),ie=Qu(E,e.portalContainer),ae=await ag(e.portalContainer,e.slashMenu,E,e.imageUpload,e.locale),oe=ae.plugins,se={listener:h,commonmark:C,gfm:w,history:g,codeBlockPrism:eh,codeBlockLanguagePicker:re,clipboard:_,indent:y,tableArrowEntry:pg,mathBackspaceEntry:Ei,blockquoteBackspaceLift:Yd,tableFocusActions:te,selectionTooltip:ne,gapCursor:ue,dropCursor:ee,math:Hd,mathInlineEdit:ie,mathInlineArrowNavigation:bd,taskListToggle:e_,tabSpaceIndent:u_,codeBlockModASelect:Jm,slash:oe.length>0?oe:null},ce=b(se,{includeRuntime:!1}),D=b(se,{includeRuntime:!0}).filter(e=>e.name===`clipboard`||e.name===`indent`),le=l.make();le.config(t=>{vn(t),t.set(u,e.root),t.set(d,e.markdown),t.set(f,{editable:()=>!e.readOnly,handleClick:(e,t,n)=>{let r=n.target;if(!(r instanceof Element))return!1;let i=r.closest(`a[href]`);if(!(i instanceof HTMLAnchorElement))return!1;let a=i.getAttribute(`href`)?.trim();return!a||!n.ctrlKey?!1:(n.preventDefault(),n.stopPropagation(),window.open(a,`_blank`,`noopener,noreferrer`),!0)}});let n=t.get(p)??[];t.set(p,[...n,[`image`,En(E)],[`math_block`,Wu(E)],[`math_inline`,id(E)],[`code_block`,of(E)]]),t.get(m).markdownUpdated((t,n)=>{e.onChange(n)}),ae.config&&ae.config(t)}),ce.forEach(e=>{le.use(e.plugin)}),await le.create(),D.forEach(e=>{try{le.use(e.plugin),e.name===`indent`&&le.action(e=>{e.set(S,{type:`space`,size:4})})}catch(e){console.error(e)}});let de=v(T,le);return{destroy:async()=>{await le.destroy()},setMarkdown:async e=>{de(e)},setEditable:async e=>{}}},f_=e=>{let t=(0,l.useRef)(null),n=(0,l.useRef)(e.markdown),r=(0,l.useRef)(e.markdown),i=(0,l.useRef)(e.messages),a=(0,l.useRef)(e.locale),o=(0,l.useRef)(e.slashMenu),s=(0,l.useRef)(e.imageUpload),c=(0,l.useRef)(e.onMarkdownChange),u=(0,l.useRef)(e.onInitError),d=(0,l.useRef)(e.onInitReady),f=(0,l.useRef)(null);(0,l.useEffect)(()=>{r.current=e.markdown},[e.markdown]),(0,l.useEffect)(()=>{i.current=e.messages},[e.messages]),(0,l.useEffect)(()=>{a.current=e.locale},[e.locale]),(0,l.useEffect)(()=>{o.current=e.slashMenu},[e.slashMenu]),(0,l.useEffect)(()=>{s.current=e.imageUpload},[e.imageUpload]),(0,l.useEffect)(()=>{c.current=e.onMarkdownChange},[e.onMarkdownChange]),(0,l.useEffect)(()=>{u.current=e.onInitError},[e.onInitError]),(0,l.useEffect)(()=>{d.current=e.onInitReady},[e.onInitReady]),(0,l.useEffect)(()=>(f.current&&f.current.cancel(),f.current=_(e=>{c.current(e)},e.debounceMs),()=>{f.current?.cancel(),f.current=null}),[e.debounceMs]),(0,l.useEffect)(()=>{let c=e.root;if(!c)return;let l=!1,p=null;return(async()=>{try{let u=await d_({root:c,portalContainer:e.portalContainer,markdown:r.current,readOnly:e.readOnly,messages:i.current,locale:a.current,slashMenu:o.current,imageUpload:s.current,onChange:e=>{n.current=e,f.current?.(e)}});if(l){await u.destroy();return}p=u,t.current=u,d.current?.()}catch(e){l||(console.error(`Milkdown init failed:`,e),u.current?.(e))}})(),()=>{l=!0,f.current?.cancel(),p&&=(p.destroy(),t.current===p&&(t.current=null),null)}},[e.root,e.readOnly,e.portalContainer,e.locale]),(0,l.useEffect)(()=>{let r=t.current;r&&e.markdown!==n.current&&(n.current=e.markdown,r.setMarkdown(e.markdown))},[e.markdown])},p_=160,m_=e=>e.length===0?`""`:`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\r\n|\r|\n/g,`\\A `)}"`,h_=e=>(f_({root:e.root,markdown:e.markdown,portalContainer:e.portalContainer,readOnly:e.readOnly,debounceMs:e.debounceMs,messages:e.messages,locale:e.locale,slashMenu:e.slashMenu,imageUpload:e.imageUpload,onMarkdownChange:e.onMarkdownChange,onInitReady:e.onInitReady,onInitError:e.onInitError}),(0,f.jsx)(`div`,{className:m(`zt-md-editor`,e.readOnly?`zt-md-readonly`:`zt-md-editable`),"aria-label":e.messages.editorAriaLabel,style:e.editorStyle,children:(0,f.jsx)(`div`,{"data-milkdown-root":!0,ref:e.onRootRef})})),g_=e=>{let[t,n]=(0,l.useState)(``),[r,i]=(0,l.useState)(null),[a,o]=(0,l.useState)(null),s=e.theme??`light`,c=e.readOnly??!1,u=e.debounceMs??p_,{markdown:d,setMarkdown:p}=g(e.value,e.defaultValue,e.onChange),h=(0,l.useMemo)(()=>sn(e.locale,e.messages,e.placeholder),[e.locale,e.messages,e.placeholder]),_={"--zt-gap-placeholder-content":m_(h.placeholder),...e.maxHeight===void 0?{}:{maxHeight:e.maxHeight,overflowY:`auto`}},v=(0,l.useCallback)(e=>{p(e)},[p]),y=(0,l.useCallback)(()=>{n(``)},[]),b=(0,l.useCallback)(e=>{n(e instanceof Error?e.message:h.initError)},[h.initError]),x=(0,l.useCallback)(e=>{i(e)},[]),S=(0,l.useCallback)(e=>{o(e)},[]);return(0,f.jsxs)(`div`,{className:m(`zt-md`,s===`dark`?`zt-md-dark`:`zt-md-light`,e.className),children:[e.headerSlot?(0,f.jsx)(`div`,{className:`zt-md-header`,children:e.headerSlot}):null,(0,f.jsxs)(`div`,{className:`zt-md-body`,children:[t?(0,f.jsx)(`div`,{className:`zt-md-error`,children:t}):null,r?(0,f.jsx)(h_,{root:a,onRootRef:S,markdown:d,locale:e.locale,portalContainer:r,readOnly:c,debounceMs:u,messages:h,slashMenu:e.slashMenu,imageUpload:e.imageUpload,editorStyle:_,onMarkdownChange:v,onInitReady:y,onInitError:b}):null,(0,f.jsx)(`div`,{ref:x,className:`zt-md-portal`})]})]})};exports.MilkdownEditor=g_;
|