@readme/markdown 14.2.6 → 14.4.0
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/components/Embed/index.tsx +24 -4
- package/components/Image/index.tsx +45 -23
- package/components/Image/style.scss +33 -0
- package/components/Tabs/index.tsx +5 -3
- package/components/TailwindStyle/index.tsx +19 -6
- package/dist/components/Embed/index.d.ts +2 -2
- package/dist/components/Image/index.d.ts +1 -0
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/main.css +1 -1
- package/dist/main.css.map +1 -1
- package/dist/main.js +722 -196
- package/dist/main.node.js +752 -196
- package/dist/main.node.js.map +1 -1
- package/dist/processor/transform/mdxish/evaluate-exports.d.ts +27 -0
- package/dist/processor/transform/mdxish/evaluate-expressions.d.ts +4 -3
- package/dist/processor/transform/mdxish/tables/tag-walker.d.ts +4 -0
- package/dist/processor/transform/mdxish/tables/utils.d.ts +1 -0
- package/dist/processor/transform/mdxish/terminate-html-flow-blocks.d.ts +8 -7
- package/dist/processor/utils.d.ts +10 -2
- package/package.json +7 -2
- package/types.d.ts +1 -0
package/dist/main.js
CHANGED
|
@@ -10829,6 +10829,234 @@ process.chdir = function (dir) {
|
|
|
10829
10829
|
process.umask = function() { return 0; };
|
|
10830
10830
|
|
|
10831
10831
|
|
|
10832
|
+
/***/ }),
|
|
10833
|
+
|
|
10834
|
+
/***/ 7633:
|
|
10835
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
10836
|
+
|
|
10837
|
+
"use strict";
|
|
10838
|
+
/**
|
|
10839
|
+
* @license React
|
|
10840
|
+
* react-dom-server-legacy.browser.production.min.js
|
|
10841
|
+
*
|
|
10842
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10843
|
+
*
|
|
10844
|
+
* This source code is licensed under the MIT license found in the
|
|
10845
|
+
* LICENSE file in the root directory of this source tree.
|
|
10846
|
+
*/
|
|
10847
|
+
var aa=__webpack_require__(1307);function l(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
|
|
10848
|
+
var p=Object.prototype.hasOwnProperty,fa=/^[: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]*$/,ha={},ia={};
|
|
10849
|
+
function ja(a){if(p.call(ia,a))return!0;if(p.call(ha,a))return!1;if(fa.test(a))return ia[a]=!0;ha[a]=!0;return!1}function r(a,b,c,d,f,e,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=f;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=e;this.removeEmptyString=g}var t={};
|
|
10850
|
+
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){t[a]=new r(a,0,!1,a,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];t[b]=new r(b,1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){t[a]=new r(a,2,!1,a.toLowerCase(),null,!1,!1)});
|
|
10851
|
+
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){t[a]=new r(a,2,!1,a,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(a){t[a]=new r(a,3,!1,a.toLowerCase(),null,!1,!1)});
|
|
10852
|
+
["checked","multiple","muted","selected"].forEach(function(a){t[a]=new r(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){t[a]=new r(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){t[a]=new r(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){t[a]=new r(a,5,!1,a.toLowerCase(),null,!1,!1)});var ka=/[\-:]([a-z])/g;function la(a){return a[1].toUpperCase()}
|
|
10853
|
+
"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(a){var b=a.replace(ka,
|
|
10854
|
+
la);t[b]=new r(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(ka,la);t[b]=new r(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(ka,la);t[b]=new r(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){t[a]=new r(a,1,!1,a.toLowerCase(),null,!1,!1)});
|
|
10855
|
+
t.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){t[a]=new r(a,1,!1,a.toLowerCase(),null,!0,!0)});
|
|
10856
|
+
var u={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,
|
|
10857
|
+
fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ma=["Webkit","ms","Moz","O"];Object.keys(u).forEach(function(a){ma.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);u[b]=u[a]})});var na=/["'&<>]/;
|
|
10858
|
+
function v(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=na.exec(a);if(b){var c="",d,f=0;for(d=b.index;d<a.length;d++){switch(a.charCodeAt(d)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==d&&(c+=a.substring(f,d));f=d+1;c+=b}a=f!==d?c+a.substring(f,d):c}return a}var oa=/([A-Z])/g,pa=/^ms-/,qa=Array.isArray;function w(a,b){return{insertionMode:a,selectedValue:b}}
|
|
10859
|
+
function ra(a,b,c){switch(b){case "select":return w(1,null!=c.value?c.value:c.defaultValue);case "svg":return w(2,null);case "math":return w(3,null);case "foreignObject":return w(1,null);case "table":return w(4,null);case "thead":case "tbody":case "tfoot":return w(5,null);case "colgroup":return w(7,null);case "tr":return w(6,null)}return 4<=a.insertionMode||0===a.insertionMode?w(1,null):a}var sa=new Map;
|
|
10860
|
+
function ta(a,b,c){if("object"!==typeof c)throw Error(l(62));b=!0;for(var d in c)if(p.call(c,d)){var f=c[d];if(null!=f&&"boolean"!==typeof f&&""!==f){if(0===d.indexOf("--")){var e=v(d);f=v((""+f).trim())}else{e=d;var g=sa.get(e);void 0!==g?e=g:(g=v(e.replace(oa,"-$1").toLowerCase().replace(pa,"-ms-")),sa.set(e,g),e=g);f="number"===typeof f?0===f||p.call(u,d)?""+f:f+"px":v((""+f).trim())}b?(b=!1,a.push(' style="',e,":",f)):a.push(";",e,":",f)}}b||a.push('"')}
|
|
10861
|
+
function x(a,b,c,d){switch(c){case "style":ta(a,b,d);return;case "defaultValue":case "defaultChecked":case "innerHTML":case "suppressContentEditableWarning":case "suppressHydrationWarning":return}if(!(2<c.length)||"o"!==c[0]&&"O"!==c[0]||"n"!==c[1]&&"N"!==c[1])if(b=t.hasOwnProperty(c)?t[c]:null,null!==b){switch(typeof d){case "function":case "symbol":return;case "boolean":if(!b.acceptsBooleans)return}c=b.attributeName;switch(b.type){case 3:d&&a.push(" ",c,'=""');break;case 4:!0===d?a.push(" ",c,'=""'):
|
|
10862
|
+
!1!==d&&a.push(" ",c,'="',v(d),'"');break;case 5:isNaN(d)||a.push(" ",c,'="',v(d),'"');break;case 6:!isNaN(d)&&1<=d&&a.push(" ",c,'="',v(d),'"');break;default:b.sanitizeURL&&(d=""+d),a.push(" ",c,'="',v(d),'"')}}else if(ja(c)){switch(typeof d){case "function":case "symbol":return;case "boolean":if(b=c.toLowerCase().slice(0,5),"data-"!==b&&"aria-"!==b)return}a.push(" ",c,'="',v(d),'"')}}
|
|
10863
|
+
function y(a,b,c){if(null!=b){if(null!=c)throw Error(l(60));if("object"!==typeof b||!("__html"in b))throw Error(l(61));b=b.__html;null!==b&&void 0!==b&&a.push(""+b)}}function ua(a){var b="";aa.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}
|
|
10864
|
+
function va(a,b,c,d){a.push(A(c));var f=c=null,e;for(e in b)if(p.call(b,e)){var g=b[e];if(null!=g)switch(e){case "children":c=g;break;case "dangerouslySetInnerHTML":f=g;break;default:x(a,d,e,g)}}a.push(">");y(a,f,c);return"string"===typeof c?(a.push(v(c)),null):c}var wa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,xa=new Map;function A(a){var b=xa.get(a);if(void 0===b){if(!wa.test(a))throw Error(l(65,a));b="<"+a;xa.set(a,b)}return b}
|
|
10865
|
+
function ya(a,b,c,d,f){switch(b){case "select":a.push(A("select"));var e=null,g=null;for(n in c)if(p.call(c,n)){var h=c[n];if(null!=h)switch(n){case "children":e=h;break;case "dangerouslySetInnerHTML":g=h;break;case "defaultValue":case "value":break;default:x(a,d,n,h)}}a.push(">");y(a,g,e);return e;case "option":g=f.selectedValue;a.push(A("option"));var k=h=null,m=null;var n=null;for(e in c)if(p.call(c,e)){var q=c[e];if(null!=q)switch(e){case "children":h=q;break;case "selected":m=q;break;case "dangerouslySetInnerHTML":n=
|
|
10866
|
+
q;break;case "value":k=q;default:x(a,d,e,q)}}if(null!=g)if(c=null!==k?""+k:ua(h),qa(g))for(d=0;d<g.length;d++){if(""+g[d]===c){a.push(' selected=""');break}}else""+g===c&&a.push(' selected=""');else m&&a.push(' selected=""');a.push(">");y(a,n,h);return h;case "textarea":a.push(A("textarea"));n=g=e=null;for(h in c)if(p.call(c,h)&&(k=c[h],null!=k))switch(h){case "children":n=k;break;case "value":e=k;break;case "defaultValue":g=k;break;case "dangerouslySetInnerHTML":throw Error(l(91));default:x(a,d,
|
|
10867
|
+
h,k)}null===e&&null!==g&&(e=g);a.push(">");if(null!=n){if(null!=e)throw Error(l(92));if(qa(n)&&1<n.length)throw Error(l(93));e=""+n}"string"===typeof e&&"\n"===e[0]&&a.push("\n");null!==e&&a.push(v(""+e));return null;case "input":a.push(A("input"));k=n=h=e=null;for(g in c)if(p.call(c,g)&&(m=c[g],null!=m))switch(g){case "children":case "dangerouslySetInnerHTML":throw Error(l(399,"input"));case "defaultChecked":k=m;break;case "defaultValue":h=m;break;case "checked":n=m;break;case "value":e=m;break;
|
|
10868
|
+
default:x(a,d,g,m)}null!==n?x(a,d,"checked",n):null!==k&&x(a,d,"checked",k);null!==e?x(a,d,"value",e):null!==h&&x(a,d,"value",h);a.push("/>");return null;case "menuitem":a.push(A("menuitem"));for(var C in c)if(p.call(c,C)&&(e=c[C],null!=e))switch(C){case "children":case "dangerouslySetInnerHTML":throw Error(l(400));default:x(a,d,C,e)}a.push(">");return null;case "title":a.push(A("title"));e=null;for(q in c)if(p.call(c,q)&&(g=c[q],null!=g))switch(q){case "children":e=g;break;case "dangerouslySetInnerHTML":throw Error(l(434));
|
|
10869
|
+
default:x(a,d,q,g)}a.push(">");return e;case "listing":case "pre":a.push(A(b));g=e=null;for(k in c)if(p.call(c,k)&&(h=c[k],null!=h))switch(k){case "children":e=h;break;case "dangerouslySetInnerHTML":g=h;break;default:x(a,d,k,h)}a.push(">");if(null!=g){if(null!=e)throw Error(l(60));if("object"!==typeof g||!("__html"in g))throw Error(l(61));c=g.__html;null!==c&&void 0!==c&&("string"===typeof c&&0<c.length&&"\n"===c[0]?a.push("\n",c):a.push(""+c))}"string"===typeof e&&"\n"===e[0]&&a.push("\n");return e;
|
|
10870
|
+
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":a.push(A(b));for(var D in c)if(p.call(c,D)&&(e=c[D],null!=e))switch(D){case "children":case "dangerouslySetInnerHTML":throw Error(l(399,b));default:x(a,d,D,e)}a.push("/>");return 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 va(a,
|
|
10871
|
+
c,b,d);case "html":return 0===f.insertionMode&&a.push("<!DOCTYPE html>"),va(a,c,b,d);default:if(-1===b.indexOf("-")&&"string"!==typeof c.is)return va(a,c,b,d);a.push(A(b));g=e=null;for(m in c)if(p.call(c,m)&&(h=c[m],null!=h))switch(m){case "children":e=h;break;case "dangerouslySetInnerHTML":g=h;break;case "style":ta(a,d,h);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":break;default:ja(m)&&"function"!==typeof h&&"symbol"!==typeof h&&a.push(" ",m,'="',v(h),'"')}a.push(">");
|
|
10872
|
+
y(a,g,e);return e}}function za(a,b,c){a.push('\x3c!--$?--\x3e<template id="');if(null===c)throw Error(l(395));a.push(c);return a.push('"></template>')}
|
|
10873
|
+
function Aa(a,b,c,d){switch(c.insertionMode){case 0:case 1:return a.push('<div hidden id="'),a.push(b.segmentPrefix),b=d.toString(16),a.push(b),a.push('">');case 2:return a.push('<svg aria-hidden="true" style="display:none" id="'),a.push(b.segmentPrefix),b=d.toString(16),a.push(b),a.push('">');case 3:return a.push('<math aria-hidden="true" style="display:none" id="'),a.push(b.segmentPrefix),b=d.toString(16),a.push(b),a.push('">');case 4:return a.push('<table hidden id="'),a.push(b.segmentPrefix),
|
|
10874
|
+
b=d.toString(16),a.push(b),a.push('">');case 5:return a.push('<table hidden><tbody id="'),a.push(b.segmentPrefix),b=d.toString(16),a.push(b),a.push('">');case 6:return a.push('<table hidden><tr id="'),a.push(b.segmentPrefix),b=d.toString(16),a.push(b),a.push('">');case 7:return a.push('<table hidden><colgroup id="'),a.push(b.segmentPrefix),b=d.toString(16),a.push(b),a.push('">');default:throw Error(l(397));}}
|
|
10875
|
+
function Ba(a,b){switch(b.insertionMode){case 0:case 1:return a.push("</div>");case 2:return a.push("</svg>");case 3:return a.push("</math>");case 4:return a.push("</table>");case 5:return a.push("</tbody></table>");case 6:return a.push("</tr></table>");case 7:return a.push("</colgroup></table>");default:throw Error(l(397));}}var Ca=/[<\u2028\u2029]/g;
|
|
10876
|
+
function Da(a){return JSON.stringify(a).replace(Ca,function(a){switch(a){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");}})}
|
|
10877
|
+
function Ea(a,b){b=void 0===b?"":b;return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:b+"P:",segmentPrefix:b+"S:",boundaryPrefix:b+"B:",idPrefix:b,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:a}}function Fa(a,b,c,d){if(c.generateStaticMarkup)return a.push(v(b)),!1;""===b?a=d:(d&&a.push("\x3c!-- --\x3e"),a.push(v(b)),a=!0);return a}
|
|
10878
|
+
var B=Object.assign,Ga=Symbol.for("react.element"),Ha=Symbol.for("react.portal"),Ia=Symbol.for("react.fragment"),Ja=Symbol.for("react.strict_mode"),Ka=Symbol.for("react.profiler"),La=Symbol.for("react.provider"),Ma=Symbol.for("react.context"),Na=Symbol.for("react.forward_ref"),Oa=Symbol.for("react.suspense"),Pa=Symbol.for("react.suspense_list"),Qa=Symbol.for("react.memo"),Ra=Symbol.for("react.lazy"),Sa=Symbol.for("react.scope"),Ta=Symbol.for("react.debug_trace_mode"),Ua=Symbol.for("react.legacy_hidden"),
|
|
10879
|
+
Va=Symbol.for("react.default_value"),Wa=Symbol.iterator;
|
|
10880
|
+
function Xa(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case Ia:return"Fragment";case Ha:return"Portal";case Ka:return"Profiler";case Ja:return"StrictMode";case Oa:return"Suspense";case Pa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Ma:return(a.displayName||"Context")+".Consumer";case La:return(a._context.displayName||"Context")+".Provider";case Na:var b=a.render;a=a.displayName;a||(a=b.displayName||
|
|
10881
|
+
b.name||"",a=""!==a?"ForwardRef("+a+")":"ForwardRef");return a;case Qa:return b=a.displayName||null,null!==b?b:Xa(a.type)||"Memo";case Ra:b=a._payload;a=a._init;try{return Xa(a(b))}catch(c){}}return null}var Ya={};function Za(a,b){a=a.contextTypes;if(!a)return Ya;var c={},d;for(d in a)c[d]=b[d];return c}var E=null;
|
|
10882
|
+
function F(a,b){if(a!==b){a.context._currentValue2=a.parentValue;a=a.parent;var c=b.parent;if(null===a){if(null!==c)throw Error(l(401));}else{if(null===c)throw Error(l(401));F(a,c)}b.context._currentValue2=b.value}}function $a(a){a.context._currentValue2=a.parentValue;a=a.parent;null!==a&&$a(a)}function ab(a){var b=a.parent;null!==b&&ab(b);a.context._currentValue2=a.value}
|
|
10883
|
+
function bb(a,b){a.context._currentValue2=a.parentValue;a=a.parent;if(null===a)throw Error(l(402));a.depth===b.depth?F(a,b):bb(a,b)}function cb(a,b){var c=b.parent;if(null===c)throw Error(l(402));a.depth===c.depth?F(a,c):cb(a,c);b.context._currentValue2=b.value}function G(a){var b=E;b!==a&&(null===b?ab(a):null===a?$a(b):b.depth===a.depth?F(b,a):b.depth>a.depth?bb(b,a):cb(b,a),E=a)}
|
|
10884
|
+
var db={isMounted:function(){return!1},enqueueSetState:function(a,b){a=a._reactInternals;null!==a.queue&&a.queue.push(b)},enqueueReplaceState:function(a,b){a=a._reactInternals;a.replace=!0;a.queue=[b]},enqueueForceUpdate:function(){}};
|
|
10885
|
+
function eb(a,b,c,d){var f=void 0!==a.state?a.state:null;a.updater=db;a.props=c;a.state=f;var e={queue:[],replace:!1};a._reactInternals=e;var g=b.contextType;a.context="object"===typeof g&&null!==g?g._currentValue2:d;g=b.getDerivedStateFromProps;"function"===typeof g&&(g=g(c,f),f=null===g||void 0===g?f:B({},f,g),a.state=f);if("function"!==typeof b.getDerivedStateFromProps&&"function"!==typeof a.getSnapshotBeforeUpdate&&("function"===typeof a.UNSAFE_componentWillMount||"function"===typeof a.componentWillMount))if(b=
|
|
10886
|
+
a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),b!==a.state&&db.enqueueReplaceState(a,a.state,null),null!==e.queue&&0<e.queue.length)if(b=e.queue,g=e.replace,e.queue=null,e.replace=!1,g&&1===b.length)a.state=b[0];else{e=g?b[0]:a.state;f=!0;for(g=g?1:0;g<b.length;g++){var h=b[g];h="function"===typeof h?h.call(a,e,c,d):h;null!=h&&(f?(f=!1,e=B({},e,h)):B(e,h))}a.state=e}else e.queue=null}
|
|
10887
|
+
var fb={id:1,overflow:""};function gb(a,b,c){var d=a.id;a=a.overflow;var f=32-H(d)-1;d&=~(1<<f);c+=1;var e=32-H(b)+f;if(30<e){var g=f-f%5;e=(d&(1<<g)-1).toString(32);d>>=g;f-=g;return{id:1<<32-H(b)+f|c<<f|d,overflow:e+a}}return{id:1<<e|c<<f|d,overflow:a}}var H=Math.clz32?Math.clz32:hb,ib=Math.log,jb=Math.LN2;function hb(a){a>>>=0;return 0===a?32:31-(ib(a)/jb|0)|0}function kb(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}
|
|
10888
|
+
var lb="function"===typeof Object.is?Object.is:kb,I=null,ob=null,J=null,K=null,L=!1,M=!1,N=0,O=null,P=0;function Q(){if(null===I)throw Error(l(321));return I}function pb(){if(0<P)throw Error(l(312));return{memoizedState:null,queue:null,next:null}}function qb(){null===K?null===J?(L=!1,J=K=pb()):(L=!0,K=J):null===K.next?(L=!1,K=K.next=pb()):(L=!0,K=K.next);return K}function rb(){ob=I=null;M=!1;J=null;P=0;K=O=null}function sb(a,b){return"function"===typeof b?b(a):b}
|
|
10889
|
+
function tb(a,b,c){I=Q();K=qb();if(L){var d=K.queue;b=d.dispatch;if(null!==O&&(c=O.get(d),void 0!==c)){O.delete(d);d=K.memoizedState;do d=a(d,c.action),c=c.next;while(null!==c);K.memoizedState=d;return[d,b]}return[K.memoizedState,b]}a=a===sb?"function"===typeof b?b():b:void 0!==c?c(b):b;K.memoizedState=a;a=K.queue={last:null,dispatch:null};a=a.dispatch=ub.bind(null,I,a);return[K.memoizedState,a]}
|
|
10890
|
+
function vb(a,b){I=Q();K=qb();b=void 0===b?null:b;if(null!==K){var c=K.memoizedState;if(null!==c&&null!==b){var d=c[1];a:if(null===d)d=!1;else{for(var f=0;f<d.length&&f<b.length;f++)if(!lb(b[f],d[f])){d=!1;break a}d=!0}if(d)return c[0]}}a=a();K.memoizedState=[a,b];return a}function ub(a,b,c){if(25<=P)throw Error(l(301));if(a===I)if(M=!0,a={action:c,next:null},null===O&&(O=new Map),c=O.get(b),void 0===c)O.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}function wb(){throw Error(l(394));}
|
|
10891
|
+
function R(){}
|
|
10892
|
+
var xb={readContext:function(a){return a._currentValue2},useContext:function(a){Q();return a._currentValue2},useMemo:vb,useReducer:tb,useRef:function(a){I=Q();K=qb();var b=K.memoizedState;return null===b?(a={current:a},K.memoizedState=a):b},useState:function(a){return tb(sb,a)},useInsertionEffect:R,useLayoutEffect:function(){},useCallback:function(a,b){return vb(function(){return a},b)},useImperativeHandle:R,useEffect:R,useDebugValue:R,useDeferredValue:function(a){Q();return a},useTransition:function(){Q();return[!1,
|
|
10893
|
+
wb]},useId:function(){var a=ob.treeContext;var b=a.overflow;a=a.id;a=(a&~(1<<32-H(a)-1)).toString(32)+b;var c=S;if(null===c)throw Error(l(404));b=N++;a=":"+c.idPrefix+"R"+a;0<b&&(a+="H"+b.toString(32));return a+":"},useMutableSource:function(a,b){Q();return b(a._source)},useSyncExternalStore:function(a,b,c){if(void 0===c)throw Error(l(407));return c()}},S=null,yb=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function zb(a){console.error(a);return null}
|
|
10894
|
+
function T(){}
|
|
10895
|
+
function Ab(a,b,c,d,f,e,g,h,k){var m=[],n=new Set;b={destination:null,responseState:b,progressiveChunkSize:void 0===d?12800:d,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:n,pingedTasks:m,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===f?zb:f,onAllReady:void 0===e?T:e,onShellReady:void 0===g?T:g,onShellError:void 0===h?T:h,onFatalError:void 0===k?T:k};c=U(b,0,null,c,!1,!1);c.parentFlushed=
|
|
10896
|
+
!0;a=Bb(b,a,null,c,n,Ya,null,fb);m.push(a);return b}function Bb(a,b,c,d,f,e,g,h){a.allPendingTasks++;null===c?a.pendingRootTasks++:c.pendingTasks++;var k={node:b,ping:function(){var b=a.pingedTasks;b.push(k);1===b.length&&Cb(a)},blockedBoundary:c,blockedSegment:d,abortSet:f,legacyContext:e,context:g,treeContext:h};f.add(k);return k}function U(a,b,c,d,f,e){return{status:0,id:-1,index:b,parentFlushed:!1,chunks:[],children:[],formatContext:d,boundary:c,lastPushedText:f,textEmbedded:e}}
|
|
10897
|
+
function V(a,b){a=a.onError(b);if(null!=a&&"string"!==typeof a)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 a+'" instead');return a}function W(a,b){var c=a.onShellError;c(b);c=a.onFatalError;c(b);null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
|
|
10898
|
+
function Db(a,b,c,d,f){I={};ob=b;N=0;for(a=c(d,f);M;)M=!1,N=0,P+=1,K=null,a=c(d,f);rb();return a}function Eb(a,b,c,d){var f=c.render(),e=d.childContextTypes;if(null!==e&&void 0!==e){var g=b.legacyContext;if("function"!==typeof c.getChildContext)d=g;else{c=c.getChildContext();for(var h in c)if(!(h in e))throw Error(l(108,Xa(d)||"Unknown",h));d=B({},g,c)}b.legacyContext=d;X(a,b,f);b.legacyContext=g}else X(a,b,f)}
|
|
10899
|
+
function Fb(a,b){if(a&&a.defaultProps){b=B({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c]);return b}return b}
|
|
10900
|
+
function Gb(a,b,c,d,f){if("function"===typeof c)if(c.prototype&&c.prototype.isReactComponent){f=Za(c,b.legacyContext);var e=c.contextType;e=new c(d,"object"===typeof e&&null!==e?e._currentValue2:f);eb(e,c,d,f);Eb(a,b,e,c)}else{e=Za(c,b.legacyContext);f=Db(a,b,c,d,e);var g=0!==N;if("object"===typeof f&&null!==f&&"function"===typeof f.render&&void 0===f.$$typeof)eb(f,c,d,e),Eb(a,b,f,c);else if(g){d=b.treeContext;b.treeContext=gb(d,1,0);try{X(a,b,f)}finally{b.treeContext=d}}else X(a,b,f)}else if("string"===
|
|
10901
|
+
typeof c){f=b.blockedSegment;e=ya(f.chunks,c,d,a.responseState,f.formatContext);f.lastPushedText=!1;g=f.formatContext;f.formatContext=ra(g,c,d);Hb(a,b,e);f.formatContext=g;switch(c){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:f.chunks.push("</",c,">")}f.lastPushedText=!1}else{switch(c){case Ua:case Ta:case Ja:case Ka:case Ia:X(a,b,d.children);return;
|
|
10902
|
+
case Pa:X(a,b,d.children);return;case Sa:throw Error(l(343));case Oa:a:{c=b.blockedBoundary;f=b.blockedSegment;e=d.fallback;d=d.children;g=new Set;var h={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:g,errorDigest:null},k=U(a,f.chunks.length,h,f.formatContext,!1,!1);f.children.push(k);f.lastPushedText=!1;var m=U(a,0,null,f.formatContext,!1,!1);m.parentFlushed=!0;b.blockedBoundary=h;b.blockedSegment=m;try{if(Hb(a,
|
|
10903
|
+
b,d),a.responseState.generateStaticMarkup||m.lastPushedText&&m.textEmbedded&&m.chunks.push("\x3c!-- --\x3e"),m.status=1,Y(h,m),0===h.pendingTasks)break a}catch(n){m.status=4,h.forceClientRender=!0,h.errorDigest=V(a,n)}finally{b.blockedBoundary=c,b.blockedSegment=f}b=Bb(a,e,c,k,g,b.legacyContext,b.context,b.treeContext);a.pingedTasks.push(b)}return}if("object"===typeof c&&null!==c)switch(c.$$typeof){case Na:d=Db(a,b,c.render,d,f);if(0!==N){c=b.treeContext;b.treeContext=gb(c,1,0);try{X(a,b,d)}finally{b.treeContext=
|
|
10904
|
+
c}}else X(a,b,d);return;case Qa:c=c.type;d=Fb(c,d);Gb(a,b,c,d,f);return;case La:f=d.children;c=c._context;d=d.value;e=c._currentValue2;c._currentValue2=d;g=E;E=d={parent:g,depth:null===g?0:g.depth+1,context:c,parentValue:e,value:d};b.context=d;X(a,b,f);a=E;if(null===a)throw Error(l(403));d=a.parentValue;a.context._currentValue2=d===Va?a.context._defaultValue:d;a=E=a.parent;b.context=a;return;case Ma:d=d.children;d=d(c._currentValue2);X(a,b,d);return;case Ra:f=c._init;c=f(c._payload);d=Fb(c,d);Gb(a,
|
|
10905
|
+
b,c,d,void 0);return}throw Error(l(130,null==c?c:typeof c,""));}}
|
|
10906
|
+
function X(a,b,c){b.node=c;if("object"===typeof c&&null!==c){switch(c.$$typeof){case Ga:Gb(a,b,c.type,c.props,c.ref);return;case Ha:throw Error(l(257));case Ra:var d=c._init;c=d(c._payload);X(a,b,c);return}if(qa(c)){Ib(a,b,c);return}null===c||"object"!==typeof c?d=null:(d=Wa&&c[Wa]||c["@@iterator"],d="function"===typeof d?d:null);if(d&&(d=d.call(c))){c=d.next();if(!c.done){var f=[];do f.push(c.value),c=d.next();while(!c.done);Ib(a,b,f)}return}a=Object.prototype.toString.call(c);throw Error(l(31,"[object Object]"===
|
|
10907
|
+
a?"object with keys {"+Object.keys(c).join(", ")+"}":a));}"string"===typeof c?(d=b.blockedSegment,d.lastPushedText=Fa(b.blockedSegment.chunks,c,a.responseState,d.lastPushedText)):"number"===typeof c&&(d=b.blockedSegment,d.lastPushedText=Fa(b.blockedSegment.chunks,""+c,a.responseState,d.lastPushedText))}function Ib(a,b,c){for(var d=c.length,f=0;f<d;f++){var e=b.treeContext;b.treeContext=gb(e,d,f);try{Hb(a,b,c[f])}finally{b.treeContext=e}}}
|
|
10908
|
+
function Hb(a,b,c){var d=b.blockedSegment.formatContext,f=b.legacyContext,e=b.context;try{return X(a,b,c)}catch(k){if(rb(),"object"===typeof k&&null!==k&&"function"===typeof k.then){c=k;var g=b.blockedSegment,h=U(a,g.chunks.length,null,g.formatContext,g.lastPushedText,!0);g.children.push(h);g.lastPushedText=!1;a=Bb(a,b.node,b.blockedBoundary,h,b.abortSet,b.legacyContext,b.context,b.treeContext).ping;c.then(a,a);b.blockedSegment.formatContext=d;b.legacyContext=f;b.context=e;G(e)}else throw b.blockedSegment.formatContext=
|
|
10909
|
+
d,b.legacyContext=f,b.context=e,G(e),k;}}function Jb(a){var b=a.blockedBoundary;a=a.blockedSegment;a.status=3;Kb(this,b,a)}
|
|
10910
|
+
function Lb(a,b,c){var d=a.blockedBoundary;a.blockedSegment.status=3;null===d?(b.allPendingTasks--,2!==b.status&&(b.status=2,null!==b.destination&&b.destination.push(null))):(d.pendingTasks--,d.forceClientRender||(d.forceClientRender=!0,a=void 0===c?Error(l(432)):c,d.errorDigest=b.onError(a),d.parentFlushed&&b.clientRenderedBoundaries.push(d)),d.fallbackAbortableTasks.forEach(function(a){return Lb(a,b,c)}),d.fallbackAbortableTasks.clear(),b.allPendingTasks--,0===b.allPendingTasks&&(d=b.onAllReady,
|
|
10911
|
+
d()))}function Y(a,b){if(0===b.chunks.length&&1===b.children.length&&null===b.children[0].boundary){var c=b.children[0];c.id=b.id;c.parentFlushed=!0;1===c.status&&Y(a,c)}else a.completedSegments.push(b)}
|
|
10912
|
+
function Kb(a,b,c){if(null===b){if(c.parentFlushed){if(null!==a.completedRootSegment)throw Error(l(389));a.completedRootSegment=c}a.pendingRootTasks--;0===a.pendingRootTasks&&(a.onShellError=T,b=a.onShellReady,b())}else b.pendingTasks--,b.forceClientRender||(0===b.pendingTasks?(c.parentFlushed&&1===c.status&&Y(b,c),b.parentFlushed&&a.completedBoundaries.push(b),b.fallbackAbortableTasks.forEach(Jb,a),b.fallbackAbortableTasks.clear()):c.parentFlushed&&1===c.status&&(Y(b,c),1===b.completedSegments.length&&
|
|
10913
|
+
b.parentFlushed&&a.partialBoundaries.push(b)));a.allPendingTasks--;0===a.allPendingTasks&&(a=a.onAllReady,a())}
|
|
10914
|
+
function Cb(a){if(2!==a.status){var b=E,c=yb.current;yb.current=xb;var d=S;S=a.responseState;try{var f=a.pingedTasks,e;for(e=0;e<f.length;e++){var g=f[e];var h=a,k=g.blockedSegment;if(0===k.status){G(g.context);try{X(h,g,g.node),h.responseState.generateStaticMarkup||k.lastPushedText&&k.textEmbedded&&k.chunks.push("\x3c!-- --\x3e"),g.abortSet.delete(g),k.status=1,Kb(h,g.blockedBoundary,k)}catch(z){if(rb(),"object"===typeof z&&null!==z&&"function"===typeof z.then){var m=g.ping;z.then(m,m)}else{g.abortSet.delete(g);
|
|
10915
|
+
k.status=4;var n=g.blockedBoundary,q=z,C=V(h,q);null===n?W(h,q):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,n.errorDigest=C,n.parentFlushed&&h.clientRenderedBoundaries.push(n)));h.allPendingTasks--;if(0===h.allPendingTasks){var D=h.onAllReady;D()}}}finally{}}}f.splice(0,e);null!==a.destination&&Mb(a,a.destination)}catch(z){V(a,z),W(a,z)}finally{S=d,yb.current=c,c===xb&&G(b)}}}
|
|
10916
|
+
function Z(a,b,c){c.parentFlushed=!0;switch(c.status){case 0:var d=c.id=a.nextSegmentId++;c.lastPushedText=!1;c.textEmbedded=!1;a=a.responseState;b.push('<template id="');b.push(a.placeholderPrefix);a=d.toString(16);b.push(a);return b.push('"></template>');case 1:c.status=2;var f=!0;d=c.chunks;var e=0;c=c.children;for(var g=0;g<c.length;g++){for(f=c[g];e<f.index;e++)b.push(d[e]);f=Nb(a,b,f)}for(;e<d.length-1;e++)b.push(d[e]);e<d.length&&(f=b.push(d[e]));return f;default:throw Error(l(390));}}
|
|
10917
|
+
function Nb(a,b,c){var d=c.boundary;if(null===d)return Z(a,b,c);d.parentFlushed=!0;if(d.forceClientRender)return a.responseState.generateStaticMarkup||(d=d.errorDigest,b.push("\x3c!--$!--\x3e"),b.push("<template"),d&&(b.push(' data-dgst="'),d=v(d),b.push(d),b.push('"')),b.push("></template>")),Z(a,b,c),a=a.responseState.generateStaticMarkup?!0:b.push("\x3c!--/$--\x3e"),a;if(0<d.pendingTasks){d.rootSegmentID=a.nextSegmentId++;0<d.completedSegments.length&&a.partialBoundaries.push(d);var f=a.responseState;
|
|
10918
|
+
var e=f.nextSuspenseID++;f=f.boundaryPrefix+e.toString(16);d=d.id=f;za(b,a.responseState,d);Z(a,b,c);return b.push("\x3c!--/$--\x3e")}if(d.byteSize>a.progressiveChunkSize)return d.rootSegmentID=a.nextSegmentId++,a.completedBoundaries.push(d),za(b,a.responseState,d.id),Z(a,b,c),b.push("\x3c!--/$--\x3e");a.responseState.generateStaticMarkup||b.push("\x3c!--$--\x3e");c=d.completedSegments;if(1!==c.length)throw Error(l(391));Nb(a,b,c[0]);a=a.responseState.generateStaticMarkup?!0:b.push("\x3c!--/$--\x3e");
|
|
10919
|
+
return a}function Ob(a,b,c){Aa(b,a.responseState,c.formatContext,c.id);Nb(a,b,c);return Ba(b,c.formatContext)}
|
|
10920
|
+
function Pb(a,b,c){for(var d=c.completedSegments,f=0;f<d.length;f++)Qb(a,b,c,d[f]);d.length=0;a=a.responseState;d=c.id;c=c.rootSegmentID;b.push(a.startInlineScript);a.sentCompleteBoundaryFunction?b.push('$RC("'):(a.sentCompleteBoundaryFunction=!0,b.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("'));if(null===
|
|
10921
|
+
d)throw Error(l(395));c=c.toString(16);b.push(d);b.push('","');b.push(a.segmentPrefix);b.push(c);return b.push('")\x3c/script>')}
|
|
10922
|
+
function Qb(a,b,c,d){if(2===d.status)return!0;var f=d.id;if(-1===f){if(-1===(d.id=c.rootSegmentID))throw Error(l(392));return Ob(a,b,d)}Ob(a,b,d);a=a.responseState;b.push(a.startInlineScript);a.sentCompleteSegmentFunction?b.push('$RS("'):(a.sentCompleteSegmentFunction=!0,b.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("'));b.push(a.segmentPrefix);
|
|
10923
|
+
f=f.toString(16);b.push(f);b.push('","');b.push(a.placeholderPrefix);b.push(f);return b.push('")\x3c/script>')}
|
|
10924
|
+
function Mb(a,b){try{var c=a.completedRootSegment;if(null!==c&&0===a.pendingRootTasks){Nb(a,b,c);a.completedRootSegment=null;var d=a.responseState.bootstrapChunks;for(c=0;c<d.length-1;c++)b.push(d[c]);c<d.length&&b.push(d[c])}var f=a.clientRenderedBoundaries,e;for(e=0;e<f.length;e++){var g=f[e];d=b;var h=a.responseState,k=g.id,m=g.errorDigest,n=g.errorMessage,q=g.errorComponentStack;d.push(h.startInlineScript);h.sentClientRenderFunction?d.push('$RX("'):(h.sentClientRenderFunction=!0,d.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("'));
|
|
10925
|
+
if(null===k)throw Error(l(395));d.push(k);d.push('"');if(m||n||q){d.push(",");var C=Da(m||"");d.push(C)}if(n||q){d.push(",");var D=Da(n||"");d.push(D)}if(q){d.push(",");var z=Da(q);d.push(z)}if(!d.push(")\x3c/script>")){a.destination=null;e++;f.splice(0,e);return}}f.splice(0,e);var ba=a.completedBoundaries;for(e=0;e<ba.length;e++)if(!Pb(a,b,ba[e])){a.destination=null;e++;ba.splice(0,e);return}ba.splice(0,e);var ca=a.partialBoundaries;for(e=0;e<ca.length;e++){var mb=ca[e];a:{f=a;g=b;var da=mb.completedSegments;
|
|
10926
|
+
for(h=0;h<da.length;h++)if(!Qb(f,g,mb,da[h])){h++;da.splice(0,h);var nb=!1;break a}da.splice(0,h);nb=!0}if(!nb){a.destination=null;e++;ca.splice(0,e);return}}ca.splice(0,e);var ea=a.completedBoundaries;for(e=0;e<ea.length;e++)if(!Pb(a,b,ea[e])){a.destination=null;e++;ea.splice(0,e);return}ea.splice(0,e)}finally{0===a.allPendingTasks&&0===a.pingedTasks.length&&0===a.clientRenderedBoundaries.length&&0===a.completedBoundaries.length&&b.push(null)}}
|
|
10927
|
+
function Rb(a,b){try{var c=a.abortableTasks;c.forEach(function(c){return Lb(c,a,b)});c.clear();null!==a.destination&&Mb(a,a.destination)}catch(d){V(a,d),W(a,d)}}function Sb(){}
|
|
10928
|
+
function Tb(a,b,c,d){var f=!1,e=null,g="",h={push:function(a){null!==a&&(g+=a);return!0},destroy:function(a){f=!0;e=a}},k=!1;a=Ab(a,Ea(c,b?b.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},Infinity,Sb,void 0,function(){k=!0},void 0,void 0);Cb(a);Rb(a,d);if(1===a.status)a.status=2,h.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=h;try{Mb(a,h)}catch(m){V(a,m),W(a,m)}}if(f)throw e;if(!k)throw Error(l(426));return g}
|
|
10929
|
+
exports.renderToNodeStream=function(){throw Error(l(207));};exports.renderToStaticMarkup=function(a,b){return Tb(a,b,!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')};exports.renderToStaticNodeStream=function(){throw Error(l(208));};exports.renderToString=function(a,b){return Tb(a,b,!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')};
|
|
10930
|
+
exports.version="18.2.0";
|
|
10931
|
+
|
|
10932
|
+
|
|
10933
|
+
/***/ }),
|
|
10934
|
+
|
|
10935
|
+
/***/ 2911:
|
|
10936
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
10937
|
+
|
|
10938
|
+
"use strict";
|
|
10939
|
+
/**
|
|
10940
|
+
* @license React
|
|
10941
|
+
* react-dom-server.browser.production.min.js
|
|
10942
|
+
*
|
|
10943
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10944
|
+
*
|
|
10945
|
+
* This source code is licensed under the MIT license found in the
|
|
10946
|
+
* LICENSE file in the root directory of this source tree.
|
|
10947
|
+
*/
|
|
10948
|
+
var aa=__webpack_require__(1307);function k(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=null,n=0;
|
|
10949
|
+
function p(a,b){if(0!==b.length)if(512<b.length)0<n&&(a.enqueue(new Uint8Array(l.buffer,0,n)),l=new Uint8Array(512),n=0),a.enqueue(b);else{var c=l.length-n;c<b.length&&(0===c?a.enqueue(l):(l.set(b.subarray(0,c),n),a.enqueue(l),b=b.subarray(c)),l=new Uint8Array(512),n=0);l.set(b,n);n+=b.length}}function t(a,b){p(a,b);return!0}function ba(a){l&&0<n&&(a.enqueue(new Uint8Array(l.buffer,0,n)),l=null,n=0)}var ca=new TextEncoder;function u(a){return ca.encode(a)}function w(a){return ca.encode(a)}
|
|
10950
|
+
function da(a,b){"function"===typeof a.error?a.error(b):a.close()}var x=Object.prototype.hasOwnProperty,ea=/^[: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]*$/,fa={},ha={};
|
|
10951
|
+
function ia(a){if(x.call(ha,a))return!0;if(x.call(fa,a))return!1;if(ea.test(a))return ha[a]=!0;fa[a]=!0;return!1}function y(a,b,c,d,f,e,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=f;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=e;this.removeEmptyString=g}var z={};
|
|
10952
|
+
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){z[a]=new y(a,0,!1,a,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];z[b]=new y(b,1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){z[a]=new y(a,2,!1,a.toLowerCase(),null,!1,!1)});
|
|
10953
|
+
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){z[a]=new y(a,2,!1,a,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(a){z[a]=new y(a,3,!1,a.toLowerCase(),null,!1,!1)});
|
|
10954
|
+
["checked","multiple","muted","selected"].forEach(function(a){z[a]=new y(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){z[a]=new y(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){z[a]=new y(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){z[a]=new y(a,5,!1,a.toLowerCase(),null,!1,!1)});var ja=/[\-:]([a-z])/g;function ka(a){return a[1].toUpperCase()}
|
|
10955
|
+
"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(a){var b=a.replace(ja,
|
|
10956
|
+
ka);z[b]=new y(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(ja,ka);z[b]=new y(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(ja,ka);z[b]=new y(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){z[a]=new y(a,1,!1,a.toLowerCase(),null,!1,!1)});
|
|
10957
|
+
z.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){z[a]=new y(a,1,!1,a.toLowerCase(),null,!0,!0)});
|
|
10958
|
+
var B={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,
|
|
10959
|
+
fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},la=["Webkit","ms","Moz","O"];Object.keys(B).forEach(function(a){la.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);B[b]=B[a]})});var oa=/["'&<>]/;
|
|
10960
|
+
function C(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=oa.exec(a);if(b){var c="",d,f=0;for(d=b.index;d<a.length;d++){switch(a.charCodeAt(d)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==d&&(c+=a.substring(f,d));f=d+1;c+=b}a=f!==d?c+a.substring(f,d):c}return a}
|
|
10961
|
+
var pa=/([A-Z])/g,qa=/^ms-/,ra=Array.isArray,sa=w("<script>"),ta=w("\x3c/script>"),ua=w('<script src="'),va=w('<script type="module" src="'),wa=w('" async="">\x3c/script>'),xa=/(<\/|<)(s)(cript)/gi;function ya(a,b,c,d){return""+b+("s"===c?"\\u0073":"\\u0053")+d}
|
|
10962
|
+
function za(a,b,c,d,f){a=void 0===a?"":a;b=void 0===b?sa:w('<script nonce="'+C(b)+'">');var e=[];void 0!==c&&e.push(b,u((""+c).replace(xa,ya)),ta);if(void 0!==d)for(c=0;c<d.length;c++)e.push(ua,u(C(d[c])),wa);if(void 0!==f)for(d=0;d<f.length;d++)e.push(va,u(C(f[d])),wa);return{bootstrapChunks:e,startInlineScript:b,placeholderPrefix:w(a+"P:"),segmentPrefix:w(a+"S:"),boundaryPrefix:a+"B:",idPrefix:a,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}
|
|
10963
|
+
function D(a,b){return{insertionMode:a,selectedValue:b}}function Aa(a){return D("http://www.w3.org/2000/svg"===a?2:"http://www.w3.org/1998/Math/MathML"===a?3:0,null)}
|
|
10964
|
+
function Ba(a,b,c){switch(b){case "select":return D(1,null!=c.value?c.value:c.defaultValue);case "svg":return D(2,null);case "math":return D(3,null);case "foreignObject":return D(1,null);case "table":return D(4,null);case "thead":case "tbody":case "tfoot":return D(5,null);case "colgroup":return D(7,null);case "tr":return D(6,null)}return 4<=a.insertionMode||0===a.insertionMode?D(1,null):a}var Ca=w("\x3c!-- --\x3e");function Da(a,b,c,d){if(""===b)return d;d&&a.push(Ca);a.push(u(C(b)));return!0}
|
|
10965
|
+
var Ea=new Map,Fa=w(' style="'),Ga=w(":"),Ha=w(";");
|
|
10966
|
+
function Ia(a,b,c){if("object"!==typeof c)throw Error(k(62));b=!0;for(var d in c)if(x.call(c,d)){var f=c[d];if(null!=f&&"boolean"!==typeof f&&""!==f){if(0===d.indexOf("--")){var e=u(C(d));f=u(C((""+f).trim()))}else{e=d;var g=Ea.get(e);void 0!==g?e=g:(g=w(C(e.replace(pa,"-$1").toLowerCase().replace(qa,"-ms-"))),Ea.set(e,g),e=g);f="number"===typeof f?0===f||x.call(B,d)?u(""+f):u(f+"px"):u(C((""+f).trim()))}b?(b=!1,a.push(Fa,e,Ga,f)):a.push(Ha,e,Ga,f)}}b||a.push(E)}
|
|
10967
|
+
var H=w(" "),I=w('="'),E=w('"'),Ja=w('=""');
|
|
10968
|
+
function J(a,b,c,d){switch(c){case "style":Ia(a,b,d);return;case "defaultValue":case "defaultChecked":case "innerHTML":case "suppressContentEditableWarning":case "suppressHydrationWarning":return}if(!(2<c.length)||"o"!==c[0]&&"O"!==c[0]||"n"!==c[1]&&"N"!==c[1])if(b=z.hasOwnProperty(c)?z[c]:null,null!==b){switch(typeof d){case "function":case "symbol":return;case "boolean":if(!b.acceptsBooleans)return}c=u(b.attributeName);switch(b.type){case 3:d&&a.push(H,c,Ja);break;case 4:!0===d?a.push(H,c,Ja):!1!==
|
|
10969
|
+
d&&a.push(H,c,I,u(C(d)),E);break;case 5:isNaN(d)||a.push(H,c,I,u(C(d)),E);break;case 6:!isNaN(d)&&1<=d&&a.push(H,c,I,u(C(d)),E);break;default:b.sanitizeURL&&(d=""+d),a.push(H,c,I,u(C(d)),E)}}else if(ia(c)){switch(typeof d){case "function":case "symbol":return;case "boolean":if(b=c.toLowerCase().slice(0,5),"data-"!==b&&"aria-"!==b)return}a.push(H,u(c),I,u(C(d)),E)}}var K=w(">"),Ka=w("/>");
|
|
10970
|
+
function L(a,b,c){if(null!=b){if(null!=c)throw Error(k(60));if("object"!==typeof b||!("__html"in b))throw Error(k(61));b=b.__html;null!==b&&void 0!==b&&a.push(u(""+b))}}function La(a){var b="";aa.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}var Ma=w(' selected=""');
|
|
10971
|
+
function Na(a,b,c,d){a.push(M(c));var f=c=null,e;for(e in b)if(x.call(b,e)){var g=b[e];if(null!=g)switch(e){case "children":c=g;break;case "dangerouslySetInnerHTML":f=g;break;default:J(a,d,e,g)}}a.push(K);L(a,f,c);return"string"===typeof c?(a.push(u(C(c))),null):c}var Oa=w("\n"),Pa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Qa=new Map;function M(a){var b=Qa.get(a);if(void 0===b){if(!Pa.test(a))throw Error(k(65,a));b=w("<"+a);Qa.set(a,b)}return b}var Ra=w("<!DOCTYPE html>");
|
|
10972
|
+
function Sa(a,b,c,d,f){switch(b){case "select":a.push(M("select"));var e=null,g=null;for(r in c)if(x.call(c,r)){var h=c[r];if(null!=h)switch(r){case "children":e=h;break;case "dangerouslySetInnerHTML":g=h;break;case "defaultValue":case "value":break;default:J(a,d,r,h)}}a.push(K);L(a,g,e);return e;case "option":g=f.selectedValue;a.push(M("option"));var m=h=null,q=null;var r=null;for(e in c)if(x.call(c,e)){var v=c[e];if(null!=v)switch(e){case "children":h=v;break;case "selected":q=v;break;case "dangerouslySetInnerHTML":r=
|
|
10973
|
+
v;break;case "value":m=v;default:J(a,d,e,v)}}if(null!=g)if(c=null!==m?""+m:La(h),ra(g))for(d=0;d<g.length;d++){if(""+g[d]===c){a.push(Ma);break}}else""+g===c&&a.push(Ma);else q&&a.push(Ma);a.push(K);L(a,r,h);return h;case "textarea":a.push(M("textarea"));r=g=e=null;for(h in c)if(x.call(c,h)&&(m=c[h],null!=m))switch(h){case "children":r=m;break;case "value":e=m;break;case "defaultValue":g=m;break;case "dangerouslySetInnerHTML":throw Error(k(91));default:J(a,d,h,m)}null===e&&null!==g&&(e=g);a.push(K);
|
|
10974
|
+
if(null!=r){if(null!=e)throw Error(k(92));if(ra(r)&&1<r.length)throw Error(k(93));e=""+r}"string"===typeof e&&"\n"===e[0]&&a.push(Oa);null!==e&&a.push(u(C(""+e)));return null;case "input":a.push(M("input"));m=r=h=e=null;for(g in c)if(x.call(c,g)&&(q=c[g],null!=q))switch(g){case "children":case "dangerouslySetInnerHTML":throw Error(k(399,"input"));case "defaultChecked":m=q;break;case "defaultValue":h=q;break;case "checked":r=q;break;case "value":e=q;break;default:J(a,d,g,q)}null!==r?J(a,d,"checked",
|
|
10975
|
+
r):null!==m&&J(a,d,"checked",m);null!==e?J(a,d,"value",e):null!==h&&J(a,d,"value",h);a.push(Ka);return null;case "menuitem":a.push(M("menuitem"));for(var A in c)if(x.call(c,A)&&(e=c[A],null!=e))switch(A){case "children":case "dangerouslySetInnerHTML":throw Error(k(400));default:J(a,d,A,e)}a.push(K);return null;case "title":a.push(M("title"));e=null;for(v in c)if(x.call(c,v)&&(g=c[v],null!=g))switch(v){case "children":e=g;break;case "dangerouslySetInnerHTML":throw Error(k(434));default:J(a,d,v,g)}a.push(K);
|
|
10976
|
+
return e;case "listing":case "pre":a.push(M(b));g=e=null;for(m in c)if(x.call(c,m)&&(h=c[m],null!=h))switch(m){case "children":e=h;break;case "dangerouslySetInnerHTML":g=h;break;default:J(a,d,m,h)}a.push(K);if(null!=g){if(null!=e)throw Error(k(60));if("object"!==typeof g||!("__html"in g))throw Error(k(61));c=g.__html;null!==c&&void 0!==c&&("string"===typeof c&&0<c.length&&"\n"===c[0]?a.push(Oa,u(c)):a.push(u(""+c)))}"string"===typeof e&&"\n"===e[0]&&a.push(Oa);return e;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":a.push(M(b));
|
|
10977
|
+
for(var F in c)if(x.call(c,F)&&(e=c[F],null!=e))switch(F){case "children":case "dangerouslySetInnerHTML":throw Error(k(399,b));default:J(a,d,F,e)}a.push(Ka);return 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 Na(a,c,b,d);case "html":return 0===f.insertionMode&&a.push(Ra),Na(a,c,b,d);default:if(-1===b.indexOf("-")&&"string"!==typeof c.is)return Na(a,c,b,d);a.push(M(b));
|
|
10978
|
+
g=e=null;for(q in c)if(x.call(c,q)&&(h=c[q],null!=h))switch(q){case "children":e=h;break;case "dangerouslySetInnerHTML":g=h;break;case "style":Ia(a,d,h);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":break;default:ia(q)&&"function"!==typeof h&&"symbol"!==typeof h&&a.push(H,u(q),I,u(C(h)),E)}a.push(K);L(a,g,e);return e}}
|
|
10979
|
+
var Ta=w("</"),Ua=w(">"),Va=w('<template id="'),Wa=w('"></template>'),Xa=w("\x3c!--$--\x3e"),Ya=w('\x3c!--$?--\x3e<template id="'),Za=w('"></template>'),$a=w("\x3c!--$!--\x3e"),ab=w("\x3c!--/$--\x3e"),bb=w("<template"),cb=w('"'),db=w(' data-dgst="');w(' data-msg="');w(' data-stck="');var eb=w("></template>");function fb(a,b,c){p(a,Ya);if(null===c)throw Error(k(395));p(a,c);return t(a,Za)}
|
|
10980
|
+
var gb=w('<div hidden id="'),hb=w('">'),ib=w("</div>"),jb=w('<svg aria-hidden="true" style="display:none" id="'),kb=w('">'),lb=w("</svg>"),mb=w('<math aria-hidden="true" style="display:none" id="'),nb=w('">'),ob=w("</math>"),pb=w('<table hidden id="'),qb=w('">'),rb=w("</table>"),sb=w('<table hidden><tbody id="'),tb=w('">'),ub=w("</tbody></table>"),vb=w('<table hidden><tr id="'),wb=w('">'),xb=w("</tr></table>"),yb=w('<table hidden><colgroup id="'),zb=w('">'),Ab=w("</colgroup></table>");
|
|
10981
|
+
function Bb(a,b,c,d){switch(c.insertionMode){case 0:case 1:return p(a,gb),p(a,b.segmentPrefix),p(a,u(d.toString(16))),t(a,hb);case 2:return p(a,jb),p(a,b.segmentPrefix),p(a,u(d.toString(16))),t(a,kb);case 3:return p(a,mb),p(a,b.segmentPrefix),p(a,u(d.toString(16))),t(a,nb);case 4:return p(a,pb),p(a,b.segmentPrefix),p(a,u(d.toString(16))),t(a,qb);case 5:return p(a,sb),p(a,b.segmentPrefix),p(a,u(d.toString(16))),t(a,tb);case 6:return p(a,vb),p(a,b.segmentPrefix),p(a,u(d.toString(16))),t(a,wb);case 7:return p(a,
|
|
10982
|
+
yb),p(a,b.segmentPrefix),p(a,u(d.toString(16))),t(a,zb);default:throw Error(k(397));}}function Cb(a,b){switch(b.insertionMode){case 0:case 1:return t(a,ib);case 2:return t(a,lb);case 3:return t(a,ob);case 4:return t(a,rb);case 5:return t(a,ub);case 6:return t(a,xb);case 7:return t(a,Ab);default:throw Error(k(397));}}
|
|
10983
|
+
var Db=w('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("'),Eb=w('$RS("'),Gb=w('","'),Hb=w('")\x3c/script>'),Ib=w('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("'),
|
|
10984
|
+
Jb=w('$RC("'),Kb=w('","'),Lb=w('")\x3c/script>'),Mb=w('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("'),Nb=w('$RX("'),Ob=w('"'),Pb=w(")\x3c/script>"),Qb=w(","),Rb=/[<\u2028\u2029]/g;
|
|
10985
|
+
function Sb(a){return JSON.stringify(a).replace(Rb,function(a){switch(a){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");}})}
|
|
10986
|
+
var N=Object.assign,Tb=Symbol.for("react.element"),Ub=Symbol.for("react.portal"),Vb=Symbol.for("react.fragment"),Wb=Symbol.for("react.strict_mode"),Xb=Symbol.for("react.profiler"),Yb=Symbol.for("react.provider"),Zb=Symbol.for("react.context"),$b=Symbol.for("react.forward_ref"),ac=Symbol.for("react.suspense"),bc=Symbol.for("react.suspense_list"),cc=Symbol.for("react.memo"),dc=Symbol.for("react.lazy"),ec=Symbol.for("react.scope"),fc=Symbol.for("react.debug_trace_mode"),gc=Symbol.for("react.legacy_hidden"),
|
|
10987
|
+
hc=Symbol.for("react.default_value"),ic=Symbol.iterator;
|
|
10988
|
+
function jc(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case Vb:return"Fragment";case Ub:return"Portal";case Xb:return"Profiler";case Wb:return"StrictMode";case ac:return"Suspense";case bc:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Zb:return(a.displayName||"Context")+".Consumer";case Yb:return(a._context.displayName||"Context")+".Provider";case $b:var b=a.render;a=a.displayName;a||(a=b.displayName||
|
|
10989
|
+
b.name||"",a=""!==a?"ForwardRef("+a+")":"ForwardRef");return a;case cc:return b=a.displayName||null,null!==b?b:jc(a.type)||"Memo";case dc:b=a._payload;a=a._init;try{return jc(a(b))}catch(c){}}return null}var kc={};function lc(a,b){a=a.contextTypes;if(!a)return kc;var c={},d;for(d in a)c[d]=b[d];return c}var O=null;
|
|
10990
|
+
function P(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var c=b.parent;if(null===a){if(null!==c)throw Error(k(401));}else{if(null===c)throw Error(k(401));P(a,c)}b.context._currentValue=b.value}}function mc(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&mc(a)}function nc(a){var b=a.parent;null!==b&&nc(b);a.context._currentValue=a.value}
|
|
10991
|
+
function oc(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error(k(402));a.depth===b.depth?P(a,b):oc(a,b)}function pc(a,b){var c=b.parent;if(null===c)throw Error(k(402));a.depth===c.depth?P(a,c):pc(a,c);b.context._currentValue=b.value}function Q(a){var b=O;b!==a&&(null===b?nc(a):null===a?mc(b):b.depth===a.depth?P(b,a):b.depth>a.depth?oc(b,a):pc(b,a),O=a)}
|
|
10992
|
+
var qc={isMounted:function(){return!1},enqueueSetState:function(a,b){a=a._reactInternals;null!==a.queue&&a.queue.push(b)},enqueueReplaceState:function(a,b){a=a._reactInternals;a.replace=!0;a.queue=[b]},enqueueForceUpdate:function(){}};
|
|
10993
|
+
function rc(a,b,c,d){var f=void 0!==a.state?a.state:null;a.updater=qc;a.props=c;a.state=f;var e={queue:[],replace:!1};a._reactInternals=e;var g=b.contextType;a.context="object"===typeof g&&null!==g?g._currentValue:d;g=b.getDerivedStateFromProps;"function"===typeof g&&(g=g(c,f),f=null===g||void 0===g?f:N({},f,g),a.state=f);if("function"!==typeof b.getDerivedStateFromProps&&"function"!==typeof a.getSnapshotBeforeUpdate&&("function"===typeof a.UNSAFE_componentWillMount||"function"===typeof a.componentWillMount))if(b=
|
|
10994
|
+
a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),b!==a.state&&qc.enqueueReplaceState(a,a.state,null),null!==e.queue&&0<e.queue.length)if(b=e.queue,g=e.replace,e.queue=null,e.replace=!1,g&&1===b.length)a.state=b[0];else{e=g?b[0]:a.state;f=!0;for(g=g?1:0;g<b.length;g++){var h=b[g];h="function"===typeof h?h.call(a,e,c,d):h;null!=h&&(f?(f=!1,e=N({},e,h)):N(e,h))}a.state=e}else e.queue=null}
|
|
10995
|
+
var sc={id:1,overflow:""};function tc(a,b,c){var d=a.id;a=a.overflow;var f=32-uc(d)-1;d&=~(1<<f);c+=1;var e=32-uc(b)+f;if(30<e){var g=f-f%5;e=(d&(1<<g)-1).toString(32);d>>=g;f-=g;return{id:1<<32-uc(b)+f|c<<f|d,overflow:e+a}}return{id:1<<e|c<<f|d,overflow:a}}var uc=Math.clz32?Math.clz32:vc,wc=Math.log,xc=Math.LN2;function vc(a){a>>>=0;return 0===a?32:31-(wc(a)/xc|0)|0}function yc(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}
|
|
10996
|
+
var zc="function"===typeof Object.is?Object.is:yc,R=null,Ac=null,Bc=null,S=null,T=!1,Cc=!1,U=0,V=null,Dc=0;function W(){if(null===R)throw Error(k(321));return R}function Ec(){if(0<Dc)throw Error(k(312));return{memoizedState:null,queue:null,next:null}}function Fc(){null===S?null===Bc?(T=!1,Bc=S=Ec()):(T=!0,S=Bc):null===S.next?(T=!1,S=S.next=Ec()):(T=!0,S=S.next);return S}function Gc(){Ac=R=null;Cc=!1;Bc=null;Dc=0;S=V=null}function Hc(a,b){return"function"===typeof b?b(a):b}
|
|
10997
|
+
function Ic(a,b,c){R=W();S=Fc();if(T){var d=S.queue;b=d.dispatch;if(null!==V&&(c=V.get(d),void 0!==c)){V.delete(d);d=S.memoizedState;do d=a(d,c.action),c=c.next;while(null!==c);S.memoizedState=d;return[d,b]}return[S.memoizedState,b]}a=a===Hc?"function"===typeof b?b():b:void 0!==c?c(b):b;S.memoizedState=a;a=S.queue={last:null,dispatch:null};a=a.dispatch=Jc.bind(null,R,a);return[S.memoizedState,a]}
|
|
10998
|
+
function Kc(a,b){R=W();S=Fc();b=void 0===b?null:b;if(null!==S){var c=S.memoizedState;if(null!==c&&null!==b){var d=c[1];a:if(null===d)d=!1;else{for(var f=0;f<d.length&&f<b.length;f++)if(!zc(b[f],d[f])){d=!1;break a}d=!0}if(d)return c[0]}}a=a();S.memoizedState=[a,b];return a}function Jc(a,b,c){if(25<=Dc)throw Error(k(301));if(a===R)if(Cc=!0,a={action:c,next:null},null===V&&(V=new Map),c=V.get(b),void 0===c)V.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}
|
|
10999
|
+
function Lc(){throw Error(k(394));}function Mc(){}
|
|
11000
|
+
var Oc={readContext:function(a){return a._currentValue},useContext:function(a){W();return a._currentValue},useMemo:Kc,useReducer:Ic,useRef:function(a){R=W();S=Fc();var b=S.memoizedState;return null===b?(a={current:a},S.memoizedState=a):b},useState:function(a){return Ic(Hc,a)},useInsertionEffect:Mc,useLayoutEffect:function(){},useCallback:function(a,b){return Kc(function(){return a},b)},useImperativeHandle:Mc,useEffect:Mc,useDebugValue:Mc,useDeferredValue:function(a){W();return a},useTransition:function(){W();
|
|
11001
|
+
return[!1,Lc]},useId:function(){var a=Ac.treeContext;var b=a.overflow;a=a.id;a=(a&~(1<<32-uc(a)-1)).toString(32)+b;var c=Nc;if(null===c)throw Error(k(404));b=U++;a=":"+c.idPrefix+"R"+a;0<b&&(a+="H"+b.toString(32));return a+":"},useMutableSource:function(a,b){W();return b(a._source)},useSyncExternalStore:function(a,b,c){if(void 0===c)throw Error(k(407));return c()}},Nc=null,Pc=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Qc(a){console.error(a);return null}
|
|
11002
|
+
function X(){}
|
|
11003
|
+
function Rc(a,b,c,d,f,e,g,h,m){var q=[],r=new Set;b={destination:null,responseState:b,progressiveChunkSize:void 0===d?12800:d,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:r,pingedTasks:q,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===f?Qc:f,onAllReady:void 0===e?X:e,onShellReady:void 0===g?X:g,onShellError:void 0===h?X:h,onFatalError:void 0===m?X:m};c=Sc(b,0,null,c,!1,!1);c.parentFlushed=
|
|
11004
|
+
!0;a=Tc(b,a,null,c,r,kc,null,sc);q.push(a);return b}function Tc(a,b,c,d,f,e,g,h){a.allPendingTasks++;null===c?a.pendingRootTasks++:c.pendingTasks++;var m={node:b,ping:function(){var b=a.pingedTasks;b.push(m);1===b.length&&Uc(a)},blockedBoundary:c,blockedSegment:d,abortSet:f,legacyContext:e,context:g,treeContext:h};f.add(m);return m}function Sc(a,b,c,d,f,e){return{status:0,id:-1,index:b,parentFlushed:!1,chunks:[],children:[],formatContext:d,boundary:c,lastPushedText:f,textEmbedded:e}}
|
|
11005
|
+
function Y(a,b){a=a.onError(b);if(null!=a&&"string"!==typeof a)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 a+'" instead');return a}function Vc(a,b){var c=a.onShellError;c(b);c=a.onFatalError;c(b);null!==a.destination?(a.status=2,da(a.destination,b)):(a.status=1,a.fatalError=b)}
|
|
11006
|
+
function Wc(a,b,c,d,f){R={};Ac=b;U=0;for(a=c(d,f);Cc;)Cc=!1,U=0,Dc+=1,S=null,a=c(d,f);Gc();return a}function Xc(a,b,c,d){var f=c.render(),e=d.childContextTypes;if(null!==e&&void 0!==e){var g=b.legacyContext;if("function"!==typeof c.getChildContext)d=g;else{c=c.getChildContext();for(var h in c)if(!(h in e))throw Error(k(108,jc(d)||"Unknown",h));d=N({},g,c)}b.legacyContext=d;Z(a,b,f);b.legacyContext=g}else Z(a,b,f)}
|
|
11007
|
+
function Yc(a,b){if(a&&a.defaultProps){b=N({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c]);return b}return b}
|
|
11008
|
+
function Zc(a,b,c,d,f){if("function"===typeof c)if(c.prototype&&c.prototype.isReactComponent){f=lc(c,b.legacyContext);var e=c.contextType;e=new c(d,"object"===typeof e&&null!==e?e._currentValue:f);rc(e,c,d,f);Xc(a,b,e,c)}else{e=lc(c,b.legacyContext);f=Wc(a,b,c,d,e);var g=0!==U;if("object"===typeof f&&null!==f&&"function"===typeof f.render&&void 0===f.$$typeof)rc(f,c,d,e),Xc(a,b,f,c);else if(g){d=b.treeContext;b.treeContext=tc(d,1,0);try{Z(a,b,f)}finally{b.treeContext=d}}else Z(a,b,f)}else if("string"===
|
|
11009
|
+
typeof c){f=b.blockedSegment;e=Sa(f.chunks,c,d,a.responseState,f.formatContext);f.lastPushedText=!1;g=f.formatContext;f.formatContext=Ba(g,c,d);$c(a,b,e);f.formatContext=g;switch(c){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:f.chunks.push(Ta,u(c),Ua)}f.lastPushedText=!1}else{switch(c){case gc:case fc:case Wb:case Xb:case Vb:Z(a,b,d.children);return;
|
|
11010
|
+
case bc:Z(a,b,d.children);return;case ec:throw Error(k(343));case ac:a:{c=b.blockedBoundary;f=b.blockedSegment;e=d.fallback;d=d.children;g=new Set;var h={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:g,errorDigest:null},m=Sc(a,f.chunks.length,h,f.formatContext,!1,!1);f.children.push(m);f.lastPushedText=!1;var q=Sc(a,0,null,f.formatContext,!1,!1);q.parentFlushed=!0;b.blockedBoundary=h;b.blockedSegment=q;try{if($c(a,
|
|
11011
|
+
b,d),q.lastPushedText&&q.textEmbedded&&q.chunks.push(Ca),q.status=1,ad(h,q),0===h.pendingTasks)break a}catch(r){q.status=4,h.forceClientRender=!0,h.errorDigest=Y(a,r)}finally{b.blockedBoundary=c,b.blockedSegment=f}b=Tc(a,e,c,m,g,b.legacyContext,b.context,b.treeContext);a.pingedTasks.push(b)}return}if("object"===typeof c&&null!==c)switch(c.$$typeof){case $b:d=Wc(a,b,c.render,d,f);if(0!==U){c=b.treeContext;b.treeContext=tc(c,1,0);try{Z(a,b,d)}finally{b.treeContext=c}}else Z(a,b,d);return;case cc:c=
|
|
11012
|
+
c.type;d=Yc(c,d);Zc(a,b,c,d,f);return;case Yb:f=d.children;c=c._context;d=d.value;e=c._currentValue;c._currentValue=d;g=O;O=d={parent:g,depth:null===g?0:g.depth+1,context:c,parentValue:e,value:d};b.context=d;Z(a,b,f);a=O;if(null===a)throw Error(k(403));d=a.parentValue;a.context._currentValue=d===hc?a.context._defaultValue:d;a=O=a.parent;b.context=a;return;case Zb:d=d.children;d=d(c._currentValue);Z(a,b,d);return;case dc:f=c._init;c=f(c._payload);d=Yc(c,d);Zc(a,b,c,d,void 0);return}throw Error(k(130,
|
|
11013
|
+
null==c?c:typeof c,""));}}
|
|
11014
|
+
function Z(a,b,c){b.node=c;if("object"===typeof c&&null!==c){switch(c.$$typeof){case Tb:Zc(a,b,c.type,c.props,c.ref);return;case Ub:throw Error(k(257));case dc:var d=c._init;c=d(c._payload);Z(a,b,c);return}if(ra(c)){bd(a,b,c);return}null===c||"object"!==typeof c?d=null:(d=ic&&c[ic]||c["@@iterator"],d="function"===typeof d?d:null);if(d&&(d=d.call(c))){c=d.next();if(!c.done){var f=[];do f.push(c.value),c=d.next();while(!c.done);bd(a,b,f)}return}a=Object.prototype.toString.call(c);throw Error(k(31,"[object Object]"===
|
|
11015
|
+
a?"object with keys {"+Object.keys(c).join(", ")+"}":a));}"string"===typeof c?(d=b.blockedSegment,d.lastPushedText=Da(b.blockedSegment.chunks,c,a.responseState,d.lastPushedText)):"number"===typeof c&&(d=b.blockedSegment,d.lastPushedText=Da(b.blockedSegment.chunks,""+c,a.responseState,d.lastPushedText))}function bd(a,b,c){for(var d=c.length,f=0;f<d;f++){var e=b.treeContext;b.treeContext=tc(e,d,f);try{$c(a,b,c[f])}finally{b.treeContext=e}}}
|
|
11016
|
+
function $c(a,b,c){var d=b.blockedSegment.formatContext,f=b.legacyContext,e=b.context;try{return Z(a,b,c)}catch(m){if(Gc(),"object"===typeof m&&null!==m&&"function"===typeof m.then){c=m;var g=b.blockedSegment,h=Sc(a,g.chunks.length,null,g.formatContext,g.lastPushedText,!0);g.children.push(h);g.lastPushedText=!1;a=Tc(a,b.node,b.blockedBoundary,h,b.abortSet,b.legacyContext,b.context,b.treeContext).ping;c.then(a,a);b.blockedSegment.formatContext=d;b.legacyContext=f;b.context=e;Q(e)}else throw b.blockedSegment.formatContext=
|
|
11017
|
+
d,b.legacyContext=f,b.context=e,Q(e),m;}}function cd(a){var b=a.blockedBoundary;a=a.blockedSegment;a.status=3;dd(this,b,a)}
|
|
11018
|
+
function ed(a,b,c){var d=a.blockedBoundary;a.blockedSegment.status=3;null===d?(b.allPendingTasks--,2!==b.status&&(b.status=2,null!==b.destination&&b.destination.close())):(d.pendingTasks--,d.forceClientRender||(d.forceClientRender=!0,a=void 0===c?Error(k(432)):c,d.errorDigest=b.onError(a),d.parentFlushed&&b.clientRenderedBoundaries.push(d)),d.fallbackAbortableTasks.forEach(function(a){return ed(a,b,c)}),d.fallbackAbortableTasks.clear(),b.allPendingTasks--,0===b.allPendingTasks&&(d=b.onAllReady,d()))}
|
|
11019
|
+
function ad(a,b){if(0===b.chunks.length&&1===b.children.length&&null===b.children[0].boundary){var c=b.children[0];c.id=b.id;c.parentFlushed=!0;1===c.status&&ad(a,c)}else a.completedSegments.push(b)}
|
|
11020
|
+
function dd(a,b,c){if(null===b){if(c.parentFlushed){if(null!==a.completedRootSegment)throw Error(k(389));a.completedRootSegment=c}a.pendingRootTasks--;0===a.pendingRootTasks&&(a.onShellError=X,b=a.onShellReady,b())}else b.pendingTasks--,b.forceClientRender||(0===b.pendingTasks?(c.parentFlushed&&1===c.status&&ad(b,c),b.parentFlushed&&a.completedBoundaries.push(b),b.fallbackAbortableTasks.forEach(cd,a),b.fallbackAbortableTasks.clear()):c.parentFlushed&&1===c.status&&(ad(b,c),1===b.completedSegments.length&&
|
|
11021
|
+
b.parentFlushed&&a.partialBoundaries.push(b)));a.allPendingTasks--;0===a.allPendingTasks&&(a=a.onAllReady,a())}
|
|
11022
|
+
function Uc(a){if(2!==a.status){var b=O,c=Pc.current;Pc.current=Oc;var d=Nc;Nc=a.responseState;try{var f=a.pingedTasks,e;for(e=0;e<f.length;e++){var g=f[e];var h=a,m=g.blockedSegment;if(0===m.status){Q(g.context);try{Z(h,g,g.node),m.lastPushedText&&m.textEmbedded&&m.chunks.push(Ca),g.abortSet.delete(g),m.status=1,dd(h,g.blockedBoundary,m)}catch(G){if(Gc(),"object"===typeof G&&null!==G&&"function"===typeof G.then){var q=g.ping;G.then(q,q)}else{g.abortSet.delete(g);m.status=4;var r=g.blockedBoundary,
|
|
11023
|
+
v=G,A=Y(h,v);null===r?Vc(h,v):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,r.errorDigest=A,r.parentFlushed&&h.clientRenderedBoundaries.push(r)));h.allPendingTasks--;if(0===h.allPendingTasks){var F=h.onAllReady;F()}}}finally{}}}f.splice(0,e);null!==a.destination&&fd(a,a.destination)}catch(G){Y(a,G),Vc(a,G)}finally{Nc=d,Pc.current=c,c===Oc&&Q(b)}}}
|
|
11024
|
+
function gd(a,b,c){c.parentFlushed=!0;switch(c.status){case 0:var d=c.id=a.nextSegmentId++;c.lastPushedText=!1;c.textEmbedded=!1;a=a.responseState;p(b,Va);p(b,a.placeholderPrefix);a=u(d.toString(16));p(b,a);return t(b,Wa);case 1:c.status=2;var f=!0;d=c.chunks;var e=0;c=c.children;for(var g=0;g<c.length;g++){for(f=c[g];e<f.index;e++)p(b,d[e]);f=hd(a,b,f)}for(;e<d.length-1;e++)p(b,d[e]);e<d.length&&(f=t(b,d[e]));return f;default:throw Error(k(390));}}
|
|
11025
|
+
function hd(a,b,c){var d=c.boundary;if(null===d)return gd(a,b,c);d.parentFlushed=!0;if(d.forceClientRender)d=d.errorDigest,t(b,$a),p(b,bb),d&&(p(b,db),p(b,u(C(d))),p(b,cb)),t(b,eb),gd(a,b,c);else if(0<d.pendingTasks){d.rootSegmentID=a.nextSegmentId++;0<d.completedSegments.length&&a.partialBoundaries.push(d);var f=a.responseState;var e=f.nextSuspenseID++;f=w(f.boundaryPrefix+e.toString(16));d=d.id=f;fb(b,a.responseState,d);gd(a,b,c)}else if(d.byteSize>a.progressiveChunkSize)d.rootSegmentID=a.nextSegmentId++,
|
|
11026
|
+
a.completedBoundaries.push(d),fb(b,a.responseState,d.id),gd(a,b,c);else{t(b,Xa);c=d.completedSegments;if(1!==c.length)throw Error(k(391));hd(a,b,c[0])}return t(b,ab)}function id(a,b,c){Bb(b,a.responseState,c.formatContext,c.id);hd(a,b,c);return Cb(b,c.formatContext)}
|
|
11027
|
+
function jd(a,b,c){for(var d=c.completedSegments,f=0;f<d.length;f++)kd(a,b,c,d[f]);d.length=0;a=a.responseState;d=c.id;c=c.rootSegmentID;p(b,a.startInlineScript);a.sentCompleteBoundaryFunction?p(b,Jb):(a.sentCompleteBoundaryFunction=!0,p(b,Ib));if(null===d)throw Error(k(395));c=u(c.toString(16));p(b,d);p(b,Kb);p(b,a.segmentPrefix);p(b,c);return t(b,Lb)}
|
|
11028
|
+
function kd(a,b,c,d){if(2===d.status)return!0;var f=d.id;if(-1===f){if(-1===(d.id=c.rootSegmentID))throw Error(k(392));return id(a,b,d)}id(a,b,d);a=a.responseState;p(b,a.startInlineScript);a.sentCompleteSegmentFunction?p(b,Eb):(a.sentCompleteSegmentFunction=!0,p(b,Db));p(b,a.segmentPrefix);f=u(f.toString(16));p(b,f);p(b,Gb);p(b,a.placeholderPrefix);p(b,f);return t(b,Hb)}
|
|
11029
|
+
function fd(a,b){l=new Uint8Array(512);n=0;try{var c=a.completedRootSegment;if(null!==c&&0===a.pendingRootTasks){hd(a,b,c);a.completedRootSegment=null;var d=a.responseState.bootstrapChunks;for(c=0;c<d.length-1;c++)p(b,d[c]);c<d.length&&t(b,d[c])}var f=a.clientRenderedBoundaries,e;for(e=0;e<f.length;e++){var g=f[e];d=b;var h=a.responseState,m=g.id,q=g.errorDigest,r=g.errorMessage,v=g.errorComponentStack;p(d,h.startInlineScript);h.sentClientRenderFunction?p(d,Nb):(h.sentClientRenderFunction=!0,p(d,
|
|
11030
|
+
Mb));if(null===m)throw Error(k(395));p(d,m);p(d,Ob);if(q||r||v)p(d,Qb),p(d,u(Sb(q||"")));if(r||v)p(d,Qb),p(d,u(Sb(r||"")));v&&(p(d,Qb),p(d,u(Sb(v))));if(!t(d,Pb)){a.destination=null;e++;f.splice(0,e);return}}f.splice(0,e);var A=a.completedBoundaries;for(e=0;e<A.length;e++)if(!jd(a,b,A[e])){a.destination=null;e++;A.splice(0,e);return}A.splice(0,e);ba(b);l=new Uint8Array(512);n=0;var F=a.partialBoundaries;for(e=0;e<F.length;e++){var G=F[e];a:{f=a;g=b;var ma=G.completedSegments;for(h=0;h<ma.length;h++)if(!kd(f,
|
|
11031
|
+
g,G,ma[h])){h++;ma.splice(0,h);var Fb=!1;break a}ma.splice(0,h);Fb=!0}if(!Fb){a.destination=null;e++;F.splice(0,e);return}}F.splice(0,e);var na=a.completedBoundaries;for(e=0;e<na.length;e++)if(!jd(a,b,na[e])){a.destination=null;e++;na.splice(0,e);return}na.splice(0,e)}finally{ba(b),0===a.allPendingTasks&&0===a.pingedTasks.length&&0===a.clientRenderedBoundaries.length&&0===a.completedBoundaries.length&&b.close()}}
|
|
11032
|
+
function ld(a,b){try{var c=a.abortableTasks;c.forEach(function(c){return ed(c,a,b)});c.clear();null!==a.destination&&fd(a,a.destination)}catch(d){Y(a,d),Vc(a,d)}}
|
|
11033
|
+
exports.renderToReadableStream=function(a,b){return new Promise(function(c,d){var f,e,g=new Promise(function(a,b){e=a;f=b}),h=Rc(a,za(b?b.identifierPrefix:void 0,b?b.nonce:void 0,b?b.bootstrapScriptContent:void 0,b?b.bootstrapScripts:void 0,b?b.bootstrapModules:void 0),Aa(b?b.namespaceURI:void 0),b?b.progressiveChunkSize:void 0,b?b.onError:void 0,e,function(){var a=new ReadableStream({type:"bytes",pull:function(a){if(1===h.status)h.status=2,da(a,h.fatalError);else if(2!==h.status&&null===h.destination){h.destination=
|
|
11034
|
+
a;try{fd(h,a)}catch(A){Y(h,A),Vc(h,A)}}},cancel:function(){ld(h)}},{highWaterMark:0});a.allReady=g;c(a)},function(a){g.catch(function(){});d(a)},f);if(b&&b.signal){var m=b.signal,q=function(){ld(h,m.reason);m.removeEventListener("abort",q)};m.addEventListener("abort",q)}Uc(h)})};exports.version="18.2.0";
|
|
11035
|
+
|
|
11036
|
+
|
|
11037
|
+
/***/ }),
|
|
11038
|
+
|
|
11039
|
+
/***/ 5848:
|
|
11040
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
11041
|
+
|
|
11042
|
+
"use strict";
|
|
11043
|
+
var __webpack_unused_export__;
|
|
11044
|
+
|
|
11045
|
+
|
|
11046
|
+
var l, s;
|
|
11047
|
+
if (true) {
|
|
11048
|
+
l = __webpack_require__(7633);
|
|
11049
|
+
s = __webpack_require__(2911);
|
|
11050
|
+
} else {}
|
|
11051
|
+
|
|
11052
|
+
__webpack_unused_export__ = l.version;
|
|
11053
|
+
__webpack_unused_export__ = l.renderToString;
|
|
11054
|
+
exports.qV = l.renderToStaticMarkup;
|
|
11055
|
+
__webpack_unused_export__ = l.renderToNodeStream;
|
|
11056
|
+
__webpack_unused_export__ = l.renderToStaticNodeStream;
|
|
11057
|
+
__webpack_unused_export__ = s.renderToReadableStream;
|
|
11058
|
+
|
|
11059
|
+
|
|
10832
11060
|
/***/ }),
|
|
10833
11061
|
|
|
10834
11062
|
/***/ 3753:
|
|
@@ -11820,9 +12048,13 @@ const Columns = ({ children, layout = 'auto' }) => {
|
|
|
11820
12048
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
11821
12049
|
|
|
11822
12050
|
const Favicon = ({ src, alt = 'favicon', ...attr }) => (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("img", { ...attr, alt: alt, height: "14", src: src, width: "14" }));
|
|
11823
|
-
const
|
|
12051
|
+
const IFRAME_DERIVABLE_TYPES = new Set(['youtube', 'jsfiddle', 'pdf']);
|
|
12052
|
+
// HTML width/height attrs accept bare numbers (interpreted as px), but CSS does not, convert.
|
|
12053
|
+
const toCssSize = (v, fallback) => (v ? (/^\d+$/.test(v) ? `${v}px` : v) : fallback);
|
|
12054
|
+
const Embed = ({ lazy = true, url, html, providerName, providerUrl, title, iframe, image, favicon, typeOfEmbed, ...attrs }) => {
|
|
12055
|
+
const explicitOptOut = iframe === false || iframe === 'false';
|
|
11824
12056
|
if (typeof iframe !== 'boolean')
|
|
11825
|
-
iframe = iframe === 'true';
|
|
12057
|
+
iframe = iframe === 'true' || typeOfEmbed === 'iframe';
|
|
11826
12058
|
if (html) {
|
|
11827
12059
|
try {
|
|
11828
12060
|
if (html !== decodeURIComponent(html)) {
|
|
@@ -11837,8 +12069,18 @@ const Embed = ({ lazy = true, url, html, providerName, providerUrl, title, ifram
|
|
|
11837
12069
|
html = undefined;
|
|
11838
12070
|
}
|
|
11839
12071
|
}
|
|
11840
|
-
|
|
11841
|
-
|
|
12072
|
+
const { height, width, ...spreadAttrs } = attrs;
|
|
12073
|
+
const iframeStyle = {
|
|
12074
|
+
border: 'none',
|
|
12075
|
+
display: 'flex',
|
|
12076
|
+
margin: 'auto',
|
|
12077
|
+
width: toCssSize(width, '100%'),
|
|
12078
|
+
height: toCssSize(height, '480px'),
|
|
12079
|
+
};
|
|
12080
|
+
// Fall back to a direct iframe for URL-derivable embed types when html is missing.
|
|
12081
|
+
const renderTypeAsIframe = !html && !explicitOptOut && url && typeOfEmbed && IFRAME_DERIVABLE_TYPES.has(typeOfEmbed);
|
|
12082
|
+
if (iframe || renderTypeAsIframe) {
|
|
12083
|
+
return external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("iframe", { ...spreadAttrs, src: url, style: iframeStyle, title: title });
|
|
11842
12084
|
}
|
|
11843
12085
|
if (!providerUrl && url)
|
|
11844
12086
|
providerUrl = new URL(url).hostname
|
|
@@ -11966,9 +12208,10 @@ const LightboxPortal = ({ children }) => {
|
|
|
11966
12208
|
return (0,external_amd_react_dom_commonjs2_react_dom_commonjs_react_dom_root_ReactDOM_umd_react_dom_.createPortal)(children, document.body);
|
|
11967
12209
|
};
|
|
11968
12210
|
const Image = (Props) => {
|
|
11969
|
-
const { align = '', alt = '', border: borderProp = false, caption, className = '', height = 'auto', src, title = '', width = 'auto', lazy = true, children, } = Props;
|
|
11970
|
-
// Normalize border: MDXish passes {false} as the string "false", not a boolean
|
|
12211
|
+
const { align = '', alt = '', border: borderProp = false, caption, className = '', framed: framedProp = false, height = 'auto', src, title = '', width = 'auto', lazy = true, children, } = Props;
|
|
12212
|
+
// Normalize border/framed: MDXish passes {false} as the string "false", not a boolean
|
|
11971
12213
|
const border = borderProp === true || borderProp === 'true';
|
|
12214
|
+
const framed = framedProp === true || framedProp === 'true';
|
|
11972
12215
|
const [lightbox, setLightbox] = external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.useState(false);
|
|
11973
12216
|
if (className === 'emoji') {
|
|
11974
12217
|
return external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("img", { alt: alt, height: height, loading: lazy ? 'lazy' : 'eager', src: src, title: title, width: width });
|
|
@@ -11997,7 +12240,10 @@ const Image = (Props) => {
|
|
|
11997
12240
|
return;
|
|
11998
12241
|
setLightbox(!lightbox);
|
|
11999
12242
|
};
|
|
12000
|
-
|
|
12243
|
+
// Framed images center the <img> itself; outer wrapper handles left/right alignment via text-align.
|
|
12244
|
+
const imgElement = (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("img", { alt: alt, className: `img ${caption || children || framed ? 'img-align-center' : align ? `img-align-${align}` : ''} ${border ? 'border' : ''}`, height: height, loading: lazy ? 'lazy' : 'eager', src: src, title: title, width: width }));
|
|
12245
|
+
const closedLightbox = (ariaLabel, content) => (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("span", { "aria-label": ariaLabel, className: "img lightbox closed", onClick: toggle, onKeyDown: handleKeyDown, role: 'button', tabIndex: 0 },
|
|
12246
|
+
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("span", { className: "lightbox-inner" }, content)));
|
|
12001
12247
|
const lightboxOverlay = lightbox ? (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement(LightboxPortal, null,
|
|
12002
12248
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("div", { className: "markdown-body" },
|
|
12003
12249
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("span", { "aria-label": alt || 'Collapse image', className: "img lightbox open", onClick: toggle, onKeyDown: handleKeyDown, role: 'button', tabIndex: 0 },
|
|
@@ -12006,17 +12252,27 @@ const Image = (Props) => {
|
|
|
12006
12252
|
(children || caption) && external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("figcaption", null, children || caption))),
|
|
12007
12253
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("button", { "aria-label": "Minimize image", className: "lightbox-close", onClick: toggle, type: "button" },
|
|
12008
12254
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("i", { "aria-hidden": "true", className: "fa-solid fa-xmark" }))))) : null;
|
|
12255
|
+
if (framed) {
|
|
12256
|
+
const frameClass = `img-frame img-frame-${align || 'center'}`;
|
|
12257
|
+
if (children || caption) {
|
|
12258
|
+
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("figure", { className: frameClass },
|
|
12259
|
+
closedLightbox(alt || 'Expand image', imgElement),
|
|
12260
|
+
lightboxOverlay,
|
|
12261
|
+
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("figcaption", null, children || caption)));
|
|
12262
|
+
}
|
|
12263
|
+
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("div", { className: frameClass },
|
|
12264
|
+
closedLightbox(alt || 'Expand image', imgElement),
|
|
12265
|
+
lightboxOverlay));
|
|
12266
|
+
}
|
|
12009
12267
|
if (children || caption) {
|
|
12010
12268
|
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("figure", null,
|
|
12011
|
-
|
|
12012
|
-
|
|
12013
|
-
|
|
12014
|
-
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("figcaption", null, children || caption))),
|
|
12269
|
+
closedLightbox(alt || 'Expand image', external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement(external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.Fragment, null,
|
|
12270
|
+
imgElement,
|
|
12271
|
+
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("figcaption", null, children || caption))),
|
|
12015
12272
|
lightboxOverlay));
|
|
12016
12273
|
}
|
|
12017
12274
|
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement(external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.Fragment, null,
|
|
12018
|
-
|
|
12019
|
-
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("span", { className: "lightbox-inner" }, imgElement)),
|
|
12275
|
+
closedLightbox('Expand image', imgElement),
|
|
12020
12276
|
lightboxOverlay));
|
|
12021
12277
|
};
|
|
12022
12278
|
/* harmony default export */ const components_Image = (Image);
|
|
@@ -12254,12 +12510,14 @@ const Tab = ({ children }) => {
|
|
|
12254
12510
|
};
|
|
12255
12511
|
const Tabs = ({ children }) => {
|
|
12256
12512
|
const [activeTab, setActiveTab] = (0,external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.useState)(0);
|
|
12513
|
+
// React passes `children` as a single element when there's only one child, so normalize.
|
|
12514
|
+
const tabs = external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().Children.toArray(children);
|
|
12257
12515
|
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "TabGroup" },
|
|
12258
12516
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("header", null,
|
|
12259
|
-
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("nav", { className: "TabGroup-nav" },
|
|
12517
|
+
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("nav", { className: "TabGroup-nav" }, tabs.map((tab, index) => (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("button", { key: tab.props.title, className: `TabGroup-tab${activeTab === index ? '_active' : ''}`, onClick: () => setActiveTab(index) },
|
|
12260
12518
|
tab.props.icon && (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("i", { className: `TabGroup-icon fa-duotone fa-solid ${tab.props.icon}`, style: { color: `${tab.props.iconColor}` } })),
|
|
12261
12519
|
tab.props.title))))),
|
|
12262
|
-
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("section", null,
|
|
12520
|
+
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("section", null, tabs[activeTab])));
|
|
12263
12521
|
};
|
|
12264
12522
|
/* harmony default export */ const components_Tabs = (Tabs);
|
|
12265
12523
|
|
|
@@ -12509,17 +12767,32 @@ const TailwindStyle = ({ children, darkModeDataAttribute }) => {
|
|
|
12509
12767
|
records.forEach(record => {
|
|
12510
12768
|
if (record.type === 'childList') {
|
|
12511
12769
|
record.addedNodes.forEach(node => {
|
|
12512
|
-
if (!(node instanceof HTMLElement)
|
|
12770
|
+
if (!(node instanceof HTMLElement))
|
|
12513
12771
|
return;
|
|
12514
|
-
|
|
12515
|
-
|
|
12772
|
+
const sizeBefore = classesSet.current.size;
|
|
12773
|
+
if (node.classList.contains(tailwindPrefix)) {
|
|
12774
|
+
// traverse visits all descendants recursively, no need to querySelectorAll
|
|
12775
|
+
traverse(node, addClasses);
|
|
12776
|
+
}
|
|
12777
|
+
else {
|
|
12778
|
+
// Node isn't a TailwindRoot itself — check descendants.
|
|
12779
|
+
// React may insert a parent wrapper during navigation whose
|
|
12780
|
+
// children contain TailwindRoot elements.
|
|
12781
|
+
node.querySelectorAll(`.${tailwindPrefix}`).forEach(child => {
|
|
12782
|
+
traverse(child, addClasses);
|
|
12783
|
+
});
|
|
12784
|
+
}
|
|
12785
|
+
if (classesSet.current.size > sizeBefore)
|
|
12786
|
+
shouldUpdate = true;
|
|
12516
12787
|
});
|
|
12517
12788
|
}
|
|
12518
12789
|
else if (record.type === 'attributes') {
|
|
12519
12790
|
if (record.attributeName !== 'class' || !(record.target instanceof HTMLElement))
|
|
12520
12791
|
return;
|
|
12792
|
+
const sizeBefore = classesSet.current.size;
|
|
12521
12793
|
addClasses(record.target);
|
|
12522
|
-
|
|
12794
|
+
if (classesSet.current.size > sizeBefore)
|
|
12795
|
+
shouldUpdate = true;
|
|
12523
12796
|
}
|
|
12524
12797
|
});
|
|
12525
12798
|
if (shouldUpdate) {
|
|
@@ -54066,11 +54339,20 @@ const mdast = (text, opts = {}) => {
|
|
|
54066
54339
|
|
|
54067
54340
|
|
|
54068
54341
|
|
|
54342
|
+
|
|
54343
|
+
|
|
54344
|
+
/**
|
|
54345
|
+
* Single instance of acorn parser extended with `acorn-jsx`
|
|
54346
|
+
* to parse expressions containing JSX.
|
|
54347
|
+
*/
|
|
54348
|
+
const jsxAcornParser = external_acorn_.Parser.extend(acorn_jsx_default()());
|
|
54069
54349
|
/**
|
|
54070
54350
|
* Evaluate a JavaScript expression source and return its value.
|
|
54071
54351
|
*
|
|
54072
54352
|
* Wrapping in parens lets object literals (`{color: 'red'}`) parse as
|
|
54073
|
-
* expressions.
|
|
54353
|
+
* expressions. Pass `scope` to expose named bindings (e.g. values introduced
|
|
54354
|
+
* by an `export const`) to the expression; without it, only self-contained
|
|
54355
|
+
* literals resolve.
|
|
54074
54356
|
*
|
|
54075
54357
|
* > ☢️ **Danger**: this `eval`s JavaScript. Only call when safeMode is off —
|
|
54076
54358
|
* > safeMode's contract is that expression syntax is never evaluated, and the
|
|
@@ -54079,9 +54361,11 @@ const mdast = (text, opts = {}) => {
|
|
|
54079
54361
|
*
|
|
54080
54362
|
* Throws on parse/runtime error; callers decide the fallback.
|
|
54081
54363
|
*/
|
|
54082
|
-
function evaluate(source) {
|
|
54364
|
+
function evaluate(source, scope = {}) {
|
|
54365
|
+
const names = Object.keys(scope);
|
|
54366
|
+
const values = names.map(name => scope[name]);
|
|
54083
54367
|
// eslint-disable-next-line no-new-func
|
|
54084
|
-
return new Function(`return (${source})`)();
|
|
54368
|
+
return new Function(...names, `return (${source})`)(...values);
|
|
54085
54369
|
}
|
|
54086
54370
|
/**
|
|
54087
54371
|
* Formats the hProperties of a node as a string, so they can be compiled back into JSX/MDX.
|
|
@@ -75314,13 +75598,14 @@ const applyInserts = (html, inserts) => {
|
|
|
75314
75598
|
const sorted = [...inserts].sort((a, b) => a.offset - b.offset);
|
|
75315
75599
|
let out = '';
|
|
75316
75600
|
let cursor = 0;
|
|
75317
|
-
sorted.forEach(({ offset, text }) => {
|
|
75601
|
+
sorted.forEach(({ offset, text, consumes = 0 }) => {
|
|
75318
75602
|
const clamped = Math.min(Math.max(offset, cursor), html.length);
|
|
75319
75603
|
if (clamped > cursor) {
|
|
75320
75604
|
out += html.slice(cursor, clamped);
|
|
75321
75605
|
cursor = clamped;
|
|
75322
75606
|
}
|
|
75323
75607
|
out += text;
|
|
75608
|
+
cursor = Math.min(cursor + consumes, html.length);
|
|
75324
75609
|
});
|
|
75325
75610
|
return { value: out + html.slice(cursor), inserts: sorted };
|
|
75326
75611
|
};
|
|
@@ -75432,9 +75717,10 @@ const buildOffsetMapper = (inserts) => {
|
|
|
75432
75717
|
// Pre-compute each insert's start in repaired-space.
|
|
75433
75718
|
let acc = 0;
|
|
75434
75719
|
const segments = inserts.map(ins => {
|
|
75720
|
+
const consumes = ins.consumes ?? 0;
|
|
75435
75721
|
const repairedStart = ins.offset + acc;
|
|
75436
|
-
acc += ins.text.length;
|
|
75437
|
-
return { origOffset: ins.offset, len: ins.text.length, repairedStart };
|
|
75722
|
+
acc += ins.text.length - consumes;
|
|
75723
|
+
return { origOffset: ins.offset, consumes, len: ins.text.length, repairedStart };
|
|
75438
75724
|
});
|
|
75439
75725
|
return (repaired) => {
|
|
75440
75726
|
// Offsets inside an insert's synthetic span have no original counterpart;
|
|
@@ -75442,7 +75728,7 @@ const buildOffsetMapper = (inserts) => {
|
|
|
75442
75728
|
const hit = segments.find(seg => seg.repairedStart < repaired && repaired < seg.repairedStart + seg.len);
|
|
75443
75729
|
if (hit)
|
|
75444
75730
|
return hit.origOffset;
|
|
75445
|
-
const shift = segments.reduce((acc2, seg) => (seg.repairedStart < repaired ? acc2 + seg.len : acc2), 0);
|
|
75731
|
+
const shift = segments.reduce((acc2, seg) => (seg.repairedStart < repaired ? acc2 + seg.len - seg.consumes : acc2), 0);
|
|
75446
75732
|
return repaired - shift;
|
|
75447
75733
|
};
|
|
75448
75734
|
};
|
|
@@ -75621,6 +75907,43 @@ const HTML_VOID_ELEMENTS = new Set([
|
|
|
75621
75907
|
|
|
75622
75908
|
|
|
75623
75909
|
const isStandardHtmlTag = (name) => STANDARD_HTML_TAGS.has(name.toLowerCase());
|
|
75910
|
+
// Intentionally simpler than htmlparser2: `[^>]*` does not honor `>` inside
|
|
75911
|
+
// quoted attribute values. That's acceptable here because the main walker
|
|
75912
|
+
// (htmlparser2) handles attribute parsing; this scan only needs to locate
|
|
75913
|
+
// orphan closers, which can't appear inside an attribute value anyway.
|
|
75914
|
+
const HTML_TAG_TOKEN_RE = /<(\/)?([a-zA-Z][a-zA-Z0-9-]*)\b[^>]*>/g;
|
|
75915
|
+
/**
|
|
75916
|
+
* htmlparser2 silently drops closing tags that have no matching opener
|
|
75917
|
+
* (e.g. the trailing `</li>` in `<ul><li>x</ul></li>`), leaving them in the
|
|
75918
|
+
* source makes mdxjs choke on the dangling closer. Scan the masked
|
|
75919
|
+
* source for `</name>` tokens that don't pair with any prior unmatched
|
|
75920
|
+
* `<name>` and return their spans so the caller can drop them.
|
|
75921
|
+
*/
|
|
75922
|
+
const findOrphanClosers = (html) => {
|
|
75923
|
+
const masked = maskNonTagRegions(html);
|
|
75924
|
+
const stack = [];
|
|
75925
|
+
const orphans = [];
|
|
75926
|
+
HTML_TAG_TOKEN_RE.lastIndex = 0;
|
|
75927
|
+
let match;
|
|
75928
|
+
while ((match = HTML_TAG_TOKEN_RE.exec(masked)) !== null) {
|
|
75929
|
+
const name = match[2].toLowerCase();
|
|
75930
|
+
// Non-HTML names and void elements are handled by the main walker.
|
|
75931
|
+
// eslint-disable-next-line no-continue
|
|
75932
|
+
if (!isStandardHtmlTag(name) || HTML_VOID_ELEMENTS.has(name))
|
|
75933
|
+
continue;
|
|
75934
|
+
if (match[1] === '/') {
|
|
75935
|
+
const idx = stack.lastIndexOf(name);
|
|
75936
|
+
if (idx === -1)
|
|
75937
|
+
orphans.push({ offset: match.index, length: match[0].length });
|
|
75938
|
+
else
|
|
75939
|
+
stack.length = idx;
|
|
75940
|
+
}
|
|
75941
|
+
else if (!match[0].endsWith('/>')) {
|
|
75942
|
+
stack.push(name);
|
|
75943
|
+
}
|
|
75944
|
+
}
|
|
75945
|
+
return orphans;
|
|
75946
|
+
};
|
|
75624
75947
|
/**
|
|
75625
75948
|
* MDX requires a JSX inline tag and its closer to live on the same line — not
|
|
75626
75949
|
* just the same paragraph. (`<td>\nArray <object>\n</object></td>` still
|
|
@@ -75677,6 +76000,7 @@ const repairUnclosedTags = (html) => {
|
|
|
75677
76000
|
inserts.push({ offset: findOffsetToPlaceCloser(html, openTag.end, start), text: `</${name}>` });
|
|
75678
76001
|
},
|
|
75679
76002
|
});
|
|
76003
|
+
findOrphanClosers(html).forEach(({ offset, length }) => inserts.push({ offset, text: '', consumes: length }));
|
|
75680
76004
|
return applyInserts(html, inserts);
|
|
75681
76005
|
};
|
|
75682
76006
|
|
|
@@ -98106,6 +98430,12 @@ function parseTextChildren(node, processMarkdown, components) {
|
|
|
98106
98430
|
node.children = node.children.flatMap(child => {
|
|
98107
98431
|
if (child.type !== 'text' || !child.value.trim())
|
|
98108
98432
|
return [child];
|
|
98433
|
+
// Store multiline template-literal children (e.g. {`...\n...`}) as a bare string prop
|
|
98434
|
+
// via node.properties.children so hast-to-hyperscript doesn't wrap them in an array.
|
|
98435
|
+
if (child.value.includes('\n')) {
|
|
98436
|
+
node.properties = { ...node.properties, children: child.value };
|
|
98437
|
+
return [];
|
|
98438
|
+
}
|
|
98109
98439
|
const hast = processMarkdown(child.value.trim());
|
|
98110
98440
|
const children = (hast.children ?? []).filter(isElementContentNode);
|
|
98111
98441
|
// For inline components, preserve plain text instead of wrapping in <p>
|
|
@@ -98167,6 +98497,10 @@ function normalizeProperties(node) {
|
|
|
98167
98497
|
*/
|
|
98168
98498
|
const rehypeMdxishComponents = ({ components, processMarkdown }) => {
|
|
98169
98499
|
return (tree, vfile) => {
|
|
98500
|
+
// Merge any local bindings introduced by `export const/function` declarations
|
|
98501
|
+
// (collected by the evaluate-exports transformer) into the lookup map.
|
|
98502
|
+
const localScope = vfile.data.mdxishScope ?? {};
|
|
98503
|
+
const allComponents = { ...components, ...localScope };
|
|
98170
98504
|
const nodesToRemove = [];
|
|
98171
98505
|
visit(tree, 'element', (node, index, parent) => {
|
|
98172
98506
|
if (index === undefined || !parent)
|
|
@@ -98190,14 +98524,14 @@ const rehypeMdxishComponents = ({ components, processMarkdown }) => {
|
|
|
98190
98524
|
if (isActualHtmlTag(node.tagName, original))
|
|
98191
98525
|
return;
|
|
98192
98526
|
}
|
|
98193
|
-
const componentName = getComponentName(node.tagName,
|
|
98527
|
+
const componentName = getComponentName(node.tagName, allComponents);
|
|
98194
98528
|
if (!componentName) {
|
|
98195
98529
|
nodesToRemove.push({ index, parent });
|
|
98196
98530
|
return;
|
|
98197
98531
|
}
|
|
98198
98532
|
node.tagName = componentName;
|
|
98199
98533
|
normalizeProperties(node);
|
|
98200
|
-
parseTextChildren(node, processMarkdown,
|
|
98534
|
+
parseTextChildren(node, processMarkdown, allComponents);
|
|
98201
98535
|
});
|
|
98202
98536
|
// Remove unknown components in reverse order to preserve indices
|
|
98203
98537
|
for (let i = nodesToRemove.length - 1; i >= 0; i -= 1) {
|
|
@@ -100253,6 +100587,123 @@ function createTokenize(mode) {
|
|
|
100253
100587
|
const isSameCaseAsTag = (code) => isLowercaseTag
|
|
100254
100588
|
? code >= codes.lowercaseA && code <= codes.lowercaseZ
|
|
100255
100589
|
: code >= codes.uppercaseA && code <= codes.uppercaseZ;
|
|
100590
|
+
// Shared brace-expression state machine. The two call sites differ only in where
|
|
100591
|
+
// to continue after a line ending and where to return when braceDepth reaches zero.
|
|
100592
|
+
function createBraceExprStates(continuationStart, afterBraceClose) {
|
|
100593
|
+
function braceExpr(code) {
|
|
100594
|
+
if (code === null)
|
|
100595
|
+
return nok(code);
|
|
100596
|
+
if (markdownLineEnding(code)) {
|
|
100597
|
+
if (!isFlow)
|
|
100598
|
+
return nok(code);
|
|
100599
|
+
effects.exit('mdxComponentData');
|
|
100600
|
+
return continuationStart(code);
|
|
100601
|
+
}
|
|
100602
|
+
if (code === codes.quotationMark || code === codes.apostrophe) {
|
|
100603
|
+
quoteChar = code;
|
|
100604
|
+
effects.consume(code);
|
|
100605
|
+
return braceString;
|
|
100606
|
+
}
|
|
100607
|
+
if (code === codes.graveAccent) {
|
|
100608
|
+
inTemplateLit = true;
|
|
100609
|
+
effects.consume(code);
|
|
100610
|
+
return braceTemplateLiteral;
|
|
100611
|
+
}
|
|
100612
|
+
if (code === codes.leftCurlyBrace) {
|
|
100613
|
+
braceDepth += 1;
|
|
100614
|
+
effects.consume(code);
|
|
100615
|
+
return braceExpr;
|
|
100616
|
+
}
|
|
100617
|
+
if (code === codes.rightCurlyBrace) {
|
|
100618
|
+
braceDepth -= 1;
|
|
100619
|
+
effects.consume(code);
|
|
100620
|
+
if (templateStack.length > 0 && braceDepth === templateStack[templateStack.length - 1]) {
|
|
100621
|
+
templateStack.pop();
|
|
100622
|
+
inTemplateLit = true;
|
|
100623
|
+
return braceTemplateLiteral;
|
|
100624
|
+
}
|
|
100625
|
+
if (braceDepth === 0) {
|
|
100626
|
+
return afterBraceClose;
|
|
100627
|
+
}
|
|
100628
|
+
return braceExpr;
|
|
100629
|
+
}
|
|
100630
|
+
effects.consume(code);
|
|
100631
|
+
return braceExpr;
|
|
100632
|
+
}
|
|
100633
|
+
function braceString(code) {
|
|
100634
|
+
if (code === null)
|
|
100635
|
+
return nok(code);
|
|
100636
|
+
if (markdownLineEnding(code)) {
|
|
100637
|
+
if (!isFlow)
|
|
100638
|
+
return nok(code);
|
|
100639
|
+
effects.exit('mdxComponentData');
|
|
100640
|
+
return continuationStart(code);
|
|
100641
|
+
}
|
|
100642
|
+
if (code === codes.backslash) {
|
|
100643
|
+
effects.consume(code);
|
|
100644
|
+
return braceStringEscape;
|
|
100645
|
+
}
|
|
100646
|
+
if (code === quoteChar) {
|
|
100647
|
+
effects.consume(code);
|
|
100648
|
+
quoteChar = null;
|
|
100649
|
+
return braceExpr;
|
|
100650
|
+
}
|
|
100651
|
+
effects.consume(code);
|
|
100652
|
+
return braceString;
|
|
100653
|
+
}
|
|
100654
|
+
function braceStringEscape(code) {
|
|
100655
|
+
if (code === null || markdownLineEnding(code)) {
|
|
100656
|
+
return braceString(code);
|
|
100657
|
+
}
|
|
100658
|
+
effects.consume(code);
|
|
100659
|
+
return braceString;
|
|
100660
|
+
}
|
|
100661
|
+
function braceTemplateLiteral(code) {
|
|
100662
|
+
if (code === null)
|
|
100663
|
+
return nok(code);
|
|
100664
|
+
if (markdownLineEnding(code)) {
|
|
100665
|
+
if (!isFlow)
|
|
100666
|
+
return nok(code);
|
|
100667
|
+
effects.exit('mdxComponentData');
|
|
100668
|
+
return continuationStart(code);
|
|
100669
|
+
}
|
|
100670
|
+
if (code === codes.graveAccent) {
|
|
100671
|
+
inTemplateLit = false;
|
|
100672
|
+
effects.consume(code);
|
|
100673
|
+
return braceExpr;
|
|
100674
|
+
}
|
|
100675
|
+
if (code === codes.backslash) {
|
|
100676
|
+
effects.consume(code);
|
|
100677
|
+
return braceTemplateLiteralEscape;
|
|
100678
|
+
}
|
|
100679
|
+
if (code === codes.dollarSign) {
|
|
100680
|
+
effects.consume(code);
|
|
100681
|
+
return braceTemplateLiteralDollar;
|
|
100682
|
+
}
|
|
100683
|
+
effects.consume(code);
|
|
100684
|
+
return braceTemplateLiteral;
|
|
100685
|
+
}
|
|
100686
|
+
function braceTemplateLiteralEscape(code) {
|
|
100687
|
+
if (code === null || markdownLineEnding(code)) {
|
|
100688
|
+
return braceTemplateLiteral(code);
|
|
100689
|
+
}
|
|
100690
|
+
effects.consume(code);
|
|
100691
|
+
return braceTemplateLiteral;
|
|
100692
|
+
}
|
|
100693
|
+
function braceTemplateLiteralDollar(code) {
|
|
100694
|
+
if (code === codes.leftCurlyBrace) {
|
|
100695
|
+
templateStack.push(braceDepth);
|
|
100696
|
+
braceDepth += 1;
|
|
100697
|
+
inTemplateLit = false;
|
|
100698
|
+
effects.consume(code);
|
|
100699
|
+
return braceExpr;
|
|
100700
|
+
}
|
|
100701
|
+
return braceTemplateLiteral(code);
|
|
100702
|
+
}
|
|
100703
|
+
return { braceExpr, braceString, braceTemplateLiteral };
|
|
100704
|
+
}
|
|
100705
|
+
const { braceExpr: inBraceExpr, braceString: inBraceString, braceTemplateLiteral: inBraceTemplateLiteral, } = createBraceExprStates(openTagContinuationStart, afterOpenTagName);
|
|
100706
|
+
const { braceExpr: inBodyBraceExpr, braceString: inBodyBraceString, braceTemplateLiteral: inBodyBraceTemplateLiteral, } = createBraceExprStates(bodyContinuationStart, body);
|
|
100256
100707
|
return start;
|
|
100257
100708
|
// ── Start ──────────────────────────────────────────────────────────────
|
|
100258
100709
|
function start(code) {
|
|
@@ -100375,126 +100826,6 @@ function createTokenize(mode) {
|
|
|
100375
100826
|
effects.consume(code);
|
|
100376
100827
|
return inQuotedAttr;
|
|
100377
100828
|
}
|
|
100378
|
-
function inBraceExpr(code) {
|
|
100379
|
-
if (code === null)
|
|
100380
|
-
return nok(code);
|
|
100381
|
-
if (markdownLineEnding(code)) {
|
|
100382
|
-
if (!isFlow)
|
|
100383
|
-
return nok(code);
|
|
100384
|
-
effects.exit('mdxComponentData');
|
|
100385
|
-
return openTagContinuationStart(code);
|
|
100386
|
-
}
|
|
100387
|
-
// Handle strings inside braces
|
|
100388
|
-
if (code === codes.quotationMark || code === codes.apostrophe) {
|
|
100389
|
-
quoteChar = code;
|
|
100390
|
-
effects.consume(code);
|
|
100391
|
-
return inBraceString;
|
|
100392
|
-
}
|
|
100393
|
-
// Handle template literals inside braces
|
|
100394
|
-
if (code === codes.graveAccent) {
|
|
100395
|
-
inTemplateLit = true;
|
|
100396
|
-
effects.consume(code);
|
|
100397
|
-
return inBraceTemplateLiteral;
|
|
100398
|
-
}
|
|
100399
|
-
if (code === codes.leftCurlyBrace) {
|
|
100400
|
-
braceDepth += 1;
|
|
100401
|
-
effects.consume(code);
|
|
100402
|
-
return inBraceExpr;
|
|
100403
|
-
}
|
|
100404
|
-
if (code === codes.rightCurlyBrace) {
|
|
100405
|
-
braceDepth -= 1;
|
|
100406
|
-
effects.consume(code);
|
|
100407
|
-
// Check if this } closes a ${...} interpolation
|
|
100408
|
-
if (templateStack.length > 0 && braceDepth === templateStack[templateStack.length - 1]) {
|
|
100409
|
-
templateStack.pop();
|
|
100410
|
-
inTemplateLit = true; // back inside the template literal
|
|
100411
|
-
return inBraceTemplateLiteral;
|
|
100412
|
-
}
|
|
100413
|
-
if (braceDepth === 0) {
|
|
100414
|
-
return afterOpenTagName;
|
|
100415
|
-
}
|
|
100416
|
-
return inBraceExpr;
|
|
100417
|
-
}
|
|
100418
|
-
effects.consume(code);
|
|
100419
|
-
return inBraceExpr;
|
|
100420
|
-
}
|
|
100421
|
-
function inBraceString(code) {
|
|
100422
|
-
if (code === null)
|
|
100423
|
-
return nok(code);
|
|
100424
|
-
if (markdownLineEnding(code)) {
|
|
100425
|
-
if (!isFlow)
|
|
100426
|
-
return nok(code);
|
|
100427
|
-
effects.exit('mdxComponentData');
|
|
100428
|
-
return openTagContinuationStart(code);
|
|
100429
|
-
}
|
|
100430
|
-
if (code === codes.backslash) {
|
|
100431
|
-
effects.consume(code);
|
|
100432
|
-
return inBraceStringEscape;
|
|
100433
|
-
}
|
|
100434
|
-
if (code === quoteChar) {
|
|
100435
|
-
effects.consume(code);
|
|
100436
|
-
quoteChar = null;
|
|
100437
|
-
return inBraceExpr;
|
|
100438
|
-
}
|
|
100439
|
-
effects.consume(code);
|
|
100440
|
-
return inBraceString;
|
|
100441
|
-
}
|
|
100442
|
-
function inBraceStringEscape(code) {
|
|
100443
|
-
if (code === null || markdownLineEnding(code)) {
|
|
100444
|
-
return inBraceString(code);
|
|
100445
|
-
}
|
|
100446
|
-
effects.consume(code);
|
|
100447
|
-
return inBraceString;
|
|
100448
|
-
}
|
|
100449
|
-
// ── Template literal handling inside brace expressions ─────────────────
|
|
100450
|
-
function inBraceTemplateLiteral(code) {
|
|
100451
|
-
if (code === null)
|
|
100452
|
-
return nok(code);
|
|
100453
|
-
if (markdownLineEnding(code)) {
|
|
100454
|
-
if (!isFlow)
|
|
100455
|
-
return nok(code);
|
|
100456
|
-
effects.exit('mdxComponentData');
|
|
100457
|
-
return openTagContinuationStart(code);
|
|
100458
|
-
}
|
|
100459
|
-
// Closing backtick ends the template literal
|
|
100460
|
-
if (code === codes.graveAccent) {
|
|
100461
|
-
inTemplateLit = false;
|
|
100462
|
-
effects.consume(code);
|
|
100463
|
-
return inBraceExpr;
|
|
100464
|
-
}
|
|
100465
|
-
// Backslash escape (e.g., \` or \$)
|
|
100466
|
-
if (code === codes.backslash) {
|
|
100467
|
-
effects.consume(code);
|
|
100468
|
-
return inBraceTemplateLiteralEscape;
|
|
100469
|
-
}
|
|
100470
|
-
// ${ starts an interpolation
|
|
100471
|
-
if (code === codes.dollarSign) {
|
|
100472
|
-
effects.consume(code);
|
|
100473
|
-
return inBraceTemplateLiteralDollar;
|
|
100474
|
-
}
|
|
100475
|
-
effects.consume(code);
|
|
100476
|
-
return inBraceTemplateLiteral;
|
|
100477
|
-
}
|
|
100478
|
-
function inBraceTemplateLiteralEscape(code) {
|
|
100479
|
-
if (code === null || markdownLineEnding(code)) {
|
|
100480
|
-
return inBraceTemplateLiteral(code);
|
|
100481
|
-
}
|
|
100482
|
-
effects.consume(code);
|
|
100483
|
-
return inBraceTemplateLiteral;
|
|
100484
|
-
}
|
|
100485
|
-
function inBraceTemplateLiteralDollar(code) {
|
|
100486
|
-
if (code === codes.leftCurlyBrace) {
|
|
100487
|
-
// Enter ${...} interpolation. Save current braceDepth so we know
|
|
100488
|
-
// when the matching } returns us to this template literal.
|
|
100489
|
-
templateStack.push(braceDepth);
|
|
100490
|
-
braceDepth += 1;
|
|
100491
|
-
inTemplateLit = false; // now inside interpolation expression
|
|
100492
|
-
effects.consume(code);
|
|
100493
|
-
return inBraceExpr;
|
|
100494
|
-
}
|
|
100495
|
-
// Just a $ not followed by { — back to template literal
|
|
100496
|
-
return inBraceTemplateLiteral(code);
|
|
100497
|
-
}
|
|
100498
100829
|
function selfCloseGt(code) {
|
|
100499
100830
|
if (code === codes.greaterThan) {
|
|
100500
100831
|
effects.consume(code);
|
|
@@ -100564,6 +100895,15 @@ function createTokenize(mode) {
|
|
|
100564
100895
|
codeSpanOpenSize = 0;
|
|
100565
100896
|
return countOpenTicks(code);
|
|
100566
100897
|
}
|
|
100898
|
+
// JSX expression child — track braces/template literals so the closing
|
|
100899
|
+
// backtick of `{`...`}` is not misread as a code span opener
|
|
100900
|
+
if (code === codes.leftCurlyBrace) {
|
|
100901
|
+
braceDepth = 1;
|
|
100902
|
+
inTemplateLit = false;
|
|
100903
|
+
effects.consume(code);
|
|
100904
|
+
atLineStart = false;
|
|
100905
|
+
return inBodyBraceExpr;
|
|
100906
|
+
}
|
|
100567
100907
|
effects.consume(code);
|
|
100568
100908
|
atLineStart = false;
|
|
100569
100909
|
return body;
|
|
@@ -100804,6 +101144,14 @@ function createTokenize(mode) {
|
|
|
100804
101144
|
return bodyContinuationStart(code);
|
|
100805
101145
|
}
|
|
100806
101146
|
effects.enter('mdxComponentData');
|
|
101147
|
+
// Resume inside a body brace expression if a line ending interrupted one
|
|
101148
|
+
if (braceDepth > 0) {
|
|
101149
|
+
if (inTemplateLit)
|
|
101150
|
+
return inBodyBraceTemplateLiteral(code);
|
|
101151
|
+
if (quoteChar !== null)
|
|
101152
|
+
return inBodyBraceString(code);
|
|
101153
|
+
return inBodyBraceExpr(code);
|
|
101154
|
+
}
|
|
100807
101155
|
// Detect tilde fences at line start
|
|
100808
101156
|
if (atLineStart && code === codes.tilde) {
|
|
100809
101157
|
return bodyAfterLineStart(code);
|
|
@@ -100906,7 +101254,8 @@ const buildInlineMdProcessor = (safeMode) => {
|
|
|
100906
101254
|
// Since evaluating expressions can be dangerous, do so only when safeMode is off
|
|
100907
101255
|
if (!safeMode) {
|
|
100908
101256
|
const mdxExprExt = mdxExpression({ allowEmpty: true });
|
|
100909
|
-
|
|
101257
|
+
// We include both flow and text extensions to support both single-line and multi-line expressions
|
|
101258
|
+
micromarkExts.push({ flow: mdxExprExt.flow, text: mdxExprExt.text });
|
|
100910
101259
|
fromMarkdownExts.push(mdxExpressionFromMarkdown());
|
|
100911
101260
|
}
|
|
100912
101261
|
return unified()
|
|
@@ -101419,57 +101768,180 @@ function restoreSnakeCase(placeholderName, mapping) {
|
|
|
101419
101768
|
return matchingKey ? mapping[matchingKey] : placeholderName;
|
|
101420
101769
|
}
|
|
101421
101770
|
|
|
101771
|
+
;// ./processor/transform/mdxish/evaluate-exports.ts
|
|
101772
|
+
|
|
101773
|
+
|
|
101774
|
+
|
|
101775
|
+
|
|
101776
|
+
|
|
101777
|
+
/**
|
|
101778
|
+
* Recursively extract all identifier names introduced by a binding pattern.
|
|
101779
|
+
* Handles destructuring (`{ a, b }`, `[x, y]`), rest elements (`...rest`),
|
|
101780
|
+
* and default values (`{ a = 1 }`).
|
|
101781
|
+
*/
|
|
101782
|
+
const namesFromPattern = (pattern) => {
|
|
101783
|
+
if (pattern.type === 'Identifier')
|
|
101784
|
+
return [pattern.name];
|
|
101785
|
+
if (pattern.type === 'ObjectPattern') {
|
|
101786
|
+
return pattern.properties.flatMap(prop => prop.type === 'RestElement' ? namesFromPattern(prop.argument) : namesFromPattern(prop.value));
|
|
101787
|
+
}
|
|
101788
|
+
if (pattern.type === 'ArrayPattern') {
|
|
101789
|
+
return pattern.elements.flatMap(el => (el ? namesFromPattern(el) : []));
|
|
101790
|
+
}
|
|
101791
|
+
if (pattern.type === 'RestElement')
|
|
101792
|
+
return namesFromPattern(pattern.argument);
|
|
101793
|
+
if (pattern.type === 'AssignmentPattern')
|
|
101794
|
+
return namesFromPattern(pattern.left);
|
|
101795
|
+
return [];
|
|
101796
|
+
};
|
|
101797
|
+
/**
|
|
101798
|
+
* Collect names introduced by an `export const/function/class` declaration.
|
|
101799
|
+
*/
|
|
101800
|
+
const collectExportNames = (declaration) => {
|
|
101801
|
+
if (declaration.type === 'VariableDeclaration') {
|
|
101802
|
+
return declaration.declarations.flatMap(dec => namesFromPattern(dec.id));
|
|
101803
|
+
}
|
|
101804
|
+
if ('id' in declaration && declaration.id?.type === 'Identifier') {
|
|
101805
|
+
return [declaration.id.name];
|
|
101806
|
+
}
|
|
101807
|
+
return [];
|
|
101808
|
+
};
|
|
101809
|
+
/**
|
|
101810
|
+
* Evaluate `export const/function` declarations introduced by mdxjsEsm nodes.
|
|
101811
|
+
*
|
|
101812
|
+
* Walks each mdxjsEsm node's estree to gather all export declarations while
|
|
101813
|
+
* stripping the `export` statements. All declarations are then evaluated in a
|
|
101814
|
+
* single sandboxed Function so that they can reference one another regardless
|
|
101815
|
+
* of source order. Every resulting binding lands in a flat scope record —
|
|
101816
|
+
* components, helpers, and plain values share the same map.
|
|
101817
|
+
*
|
|
101818
|
+
* Any evaluation error is consumed and logged. We don't throw because it's
|
|
101819
|
+
* against the spirit of this engine to be less permissive than MDX needs.
|
|
101820
|
+
*/
|
|
101821
|
+
const evaluateExports = () => (tree, file) => {
|
|
101822
|
+
const programBody = [];
|
|
101823
|
+
const exportNames = [];
|
|
101824
|
+
const nodesToRemove = [];
|
|
101825
|
+
visit(tree, isMDXEsm, (node, index, parent) => {
|
|
101826
|
+
if (parent && typeof index === 'number') {
|
|
101827
|
+
nodesToRemove.push({ index, parent: parent });
|
|
101828
|
+
}
|
|
101829
|
+
const estreeBody = node.data?.estree?.body;
|
|
101830
|
+
if (!estreeBody)
|
|
101831
|
+
return;
|
|
101832
|
+
// One mdxjsEsm node can contain multiple export declarations.
|
|
101833
|
+
// `export default function Foo()` and `export default class Foo {}` are
|
|
101834
|
+
// handled the same as a named export — the inner declaration carries the
|
|
101835
|
+
// binding name
|
|
101836
|
+
estreeBody.forEach(statement => {
|
|
101837
|
+
let declaration = null;
|
|
101838
|
+
if (statement.type === 'ExportNamedDeclaration' && statement.declaration) {
|
|
101839
|
+
declaration = statement.declaration;
|
|
101840
|
+
}
|
|
101841
|
+
else if (statement.type === 'ExportDefaultDeclaration' &&
|
|
101842
|
+
(statement.declaration.type === 'FunctionDeclaration' || statement.declaration.type === 'ClassDeclaration') &&
|
|
101843
|
+
statement.declaration.id) {
|
|
101844
|
+
declaration = statement.declaration;
|
|
101845
|
+
}
|
|
101846
|
+
if (!declaration)
|
|
101847
|
+
return;
|
|
101848
|
+
programBody.push(declaration);
|
|
101849
|
+
exportNames.push(...collectExportNames(declaration));
|
|
101850
|
+
});
|
|
101851
|
+
});
|
|
101852
|
+
// Remove the mdxjsEsm nodes from the tree
|
|
101853
|
+
nodesToRemove
|
|
101854
|
+
.sort((a, b) => b.index - a.index)
|
|
101855
|
+
.forEach(({ index, parent }) => parent.children.splice(index, 1));
|
|
101856
|
+
if (!exportNames.length)
|
|
101857
|
+
return tree;
|
|
101858
|
+
const scope = {};
|
|
101859
|
+
// Evaluate the declarations together at once in a single sandboxed Function
|
|
101860
|
+
try {
|
|
101861
|
+
const program = { type: 'Program', sourceType: 'module', body: programBody };
|
|
101862
|
+
buildJsx(program, { runtime: 'classic', pragma: 'React.createElement', pragmaFrag: 'React.Fragment' });
|
|
101863
|
+
const { value: source } = toJs(program);
|
|
101864
|
+
// Evaluate and build on the expression source
|
|
101865
|
+
// Use react to compile JSX codes
|
|
101866
|
+
const evaluatedExports = evaluate(`(() => { ${source}\nreturn { ${exportNames.join(', ')} }; })()`, { React: (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default()) });
|
|
101867
|
+
Object.assign(scope, evaluatedExports);
|
|
101868
|
+
}
|
|
101869
|
+
catch (error) {
|
|
101870
|
+
// eslint-disable-next-line no-console
|
|
101871
|
+
console.warn('[WARNING] Failed to evaluate exported declarations:', error);
|
|
101872
|
+
// eslint-disable-next-line no-console
|
|
101873
|
+
console.warn('[WARNING] Falling back to not evaluating exported declarations.');
|
|
101874
|
+
}
|
|
101875
|
+
file.data.mdxishScope = scope;
|
|
101876
|
+
return tree;
|
|
101877
|
+
};
|
|
101878
|
+
/* harmony default export */ const evaluate_exports = (evaluateExports);
|
|
101879
|
+
|
|
101880
|
+
// EXTERNAL MODULE: ./node_modules/react-dom/server.browser.js
|
|
101881
|
+
var server_browser = __webpack_require__(5848);
|
|
101422
101882
|
;// ./processor/transform/mdxish/evaluate-expressions.ts
|
|
101423
101883
|
|
|
101424
101884
|
|
|
101885
|
+
|
|
101886
|
+
|
|
101887
|
+
|
|
101888
|
+
|
|
101889
|
+
const HAS_JSX = /<[A-Za-z]|<>/;
|
|
101890
|
+
/** The raw Function() can't parse JSX, so parse & convert it to a React element first so later we can get its HTML representation */
|
|
101891
|
+
const evalJsxExpression = (expression, scope) => {
|
|
101892
|
+
const program = jsxAcornParser.parse(expression, { ecmaVersion: 'latest', sourceType: 'module' });
|
|
101893
|
+
buildJsx(program, { runtime: 'classic', pragma: 'React.createElement', pragmaFrag: 'React.Fragment' });
|
|
101894
|
+
const { value: source } = toJs(program);
|
|
101895
|
+
return evaluate(`(() => { return ${source.trim().replace(/;$/, '')}; })()`, scope);
|
|
101896
|
+
};
|
|
101897
|
+
/** Evaluate an expression body, transforming JSX to `React.createElement` only when needed. */
|
|
101898
|
+
const evalExpression = (expression, scope) => {
|
|
101899
|
+
if (HAS_JSX.test(expression))
|
|
101900
|
+
return evalJsxExpression(expression, scope);
|
|
101901
|
+
return evaluate(expression, scope);
|
|
101902
|
+
};
|
|
101903
|
+
/** Given the type of the expression result, create the corresponding mdast node. */
|
|
101904
|
+
const createEvaluatedNode = (result, position) => {
|
|
101905
|
+
if (result === null || result === undefined) {
|
|
101906
|
+
return { type: 'text', value: '', position };
|
|
101907
|
+
}
|
|
101908
|
+
else if (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().isValidElement(result)) {
|
|
101909
|
+
// Convert react elements to its HTML representation
|
|
101910
|
+
// This must come before the object check as this is a subset of it
|
|
101911
|
+
return { type: 'html', value: (0,server_browser/* renderToStaticMarkup */.qV)(result), position };
|
|
101912
|
+
}
|
|
101913
|
+
else if (typeof result === 'object') {
|
|
101914
|
+
return { type: 'text', value: JSON.stringify(result), position };
|
|
101915
|
+
}
|
|
101916
|
+
return { type: 'text', value: String(result), position };
|
|
101917
|
+
};
|
|
101425
101918
|
/**
|
|
101426
101919
|
* AST transformer to evaluate MDX expressions.
|
|
101427
101920
|
* Replaces mdxFlowExpression and mdxTextExpression nodes with their evaluated values.
|
|
101428
|
-
*
|
|
101429
|
-
*
|
|
101430
|
-
*
|
|
101921
|
+
* Self-contained expressions resolve directly (e.g. `{1+1}`); expressions that
|
|
101922
|
+
* reference identifiers can resolve if those identifiers were introduced by an
|
|
101923
|
+
* earlier `export const/function` (collected onto `file.data.mdxishScope`).
|
|
101924
|
+
* Anything else falls through to the error branch and is kept as literal `{...}` text.
|
|
101431
101925
|
*/
|
|
101432
|
-
const evaluateExpressions = () => tree => {
|
|
101926
|
+
const evaluateExpressions = () => (tree, file) => {
|
|
101927
|
+
const scope = { ...(file.data.mdxishScope), React: (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default()) };
|
|
101433
101928
|
visit(tree, ['mdxFlowExpression', 'mdxTextExpression'], (node, index, parent) => {
|
|
101434
101929
|
if (!parent || index === null || index === undefined)
|
|
101435
101930
|
return;
|
|
101436
|
-
const
|
|
101437
|
-
|
|
101438
|
-
return;
|
|
101439
|
-
const expression = expressionNode.value.trim();
|
|
101440
|
-
// Skip if expression is empty (shouldn't happen, but defensive)
|
|
101931
|
+
const { value, position } = node;
|
|
101932
|
+
const expression = value?.trim();
|
|
101441
101933
|
if (!expression)
|
|
101442
101934
|
return;
|
|
101443
101935
|
try {
|
|
101444
|
-
const result =
|
|
101445
|
-
|
|
101446
|
-
let textValue;
|
|
101447
|
-
if (result === null || result === undefined) {
|
|
101448
|
-
textValue = '';
|
|
101449
|
-
}
|
|
101450
|
-
else if (typeof result === 'object') {
|
|
101451
|
-
textValue = JSON.stringify(result);
|
|
101452
|
-
}
|
|
101453
|
-
else {
|
|
101454
|
-
textValue = String(result).replace(/\s+/g, ' ').trim();
|
|
101455
|
-
}
|
|
101456
|
-
// Replace expression node with text node since the expression is conceptually a text
|
|
101457
|
-
parent.children.splice(index, 1, {
|
|
101458
|
-
type: 'text',
|
|
101459
|
-
value: textValue,
|
|
101460
|
-
position: expressionNode.position,
|
|
101461
|
-
});
|
|
101936
|
+
const result = evalExpression(expression, scope);
|
|
101937
|
+
parent.children.splice(index, 1, createEvaluatedNode(result, position));
|
|
101462
101938
|
}
|
|
101463
101939
|
catch (_error) {
|
|
101464
|
-
//
|
|
101465
|
-
//
|
|
101466
|
-
//
|
|
101940
|
+
// Evaluation failed — fall back to literal `{...}` text. The expression
|
|
101941
|
+
// parser treats contents as code, so backslash escapes aren't applied;
|
|
101942
|
+
// restore them here so e.g. `{\!}` round-trips to `{!}`.
|
|
101467
101943
|
const processed = expression.replace(/\\([!-/:-@[-`{-~])/g, '$1');
|
|
101468
|
-
parent.children.splice(index, 1, {
|
|
101469
|
-
type: 'text',
|
|
101470
|
-
value: `{${processed}}`,
|
|
101471
|
-
position: expressionNode.position,
|
|
101472
|
-
});
|
|
101944
|
+
parent.children.splice(index, 1, { type: 'text', value: `{${processed}}`, position });
|
|
101473
101945
|
}
|
|
101474
101946
|
});
|
|
101475
101947
|
return tree;
|
|
@@ -103151,7 +103623,7 @@ const transformAnchor = (jsx) => {
|
|
|
103151
103623
|
*/
|
|
103152
103624
|
const transformImage = (jsx) => {
|
|
103153
103625
|
const attrs = getAttrs(jsx);
|
|
103154
|
-
const { align, alt = '', border, caption, className, height, lazy, src = '', title = '', width } = attrs;
|
|
103626
|
+
const { align, alt = '', border, caption, className, framed, height, lazy, src = '', title = '', width } = attrs;
|
|
103155
103627
|
const validAlign = toImageAlign(align);
|
|
103156
103628
|
const sizing = width !== undefined ? String(width) : undefined;
|
|
103157
103629
|
const hProperties = {
|
|
@@ -103162,6 +103634,7 @@ const transformImage = (jsx) => {
|
|
|
103162
103634
|
...(border !== undefined && { border: toBool(border) }),
|
|
103163
103635
|
...(caption && { caption }),
|
|
103164
103636
|
...(className && { className }),
|
|
103637
|
+
...(framed !== undefined && { framed: toBool(framed) }),
|
|
103165
103638
|
...(height !== undefined && { height: String(height) }),
|
|
103166
103639
|
...(lazy !== undefined && { lazy: toBool(lazy) }),
|
|
103167
103640
|
...(sizing && { sizing }),
|
|
@@ -103175,6 +103648,7 @@ const transformImage = (jsx) => {
|
|
|
103175
103648
|
caption,
|
|
103176
103649
|
children: caption ? lib_mdast(caption).children : [],
|
|
103177
103650
|
className,
|
|
103651
|
+
framed: toBool(framed),
|
|
103178
103652
|
height: height !== undefined ? String(height) : undefined,
|
|
103179
103653
|
lazy: toBool(lazy),
|
|
103180
103654
|
sizing,
|
|
@@ -103543,6 +104017,14 @@ const mdxishJsxToMdast = () => tree => {
|
|
|
103543
104017
|
else if (node.border !== undefined) {
|
|
103544
104018
|
node.border = toBool(node.border);
|
|
103545
104019
|
}
|
|
104020
|
+
if (hProps.framed !== undefined) {
|
|
104021
|
+
const val = toBool(hProps.framed);
|
|
104022
|
+
node.framed = val;
|
|
104023
|
+
hProps.framed = val;
|
|
104024
|
+
}
|
|
104025
|
+
else if (node.framed !== undefined) {
|
|
104026
|
+
node.framed = toBool(node.framed);
|
|
104027
|
+
}
|
|
103546
104028
|
// Validate align
|
|
103547
104029
|
const validAlign = toImageAlign(hProps.align) || toImageAlign(node.align);
|
|
103548
104030
|
node.align = validAlign;
|
|
@@ -103997,11 +104479,30 @@ function normalizeTableSeparator(content) {
|
|
|
103997
104479
|
|
|
103998
104480
|
;// ./processor/transform/mdxish/terminate-html-flow-blocks.ts
|
|
103999
104481
|
|
|
104482
|
+
|
|
104000
104483
|
const STANDALONE_HTML_LINE_REGEX = /^(<[a-z][^<>]*>|<\/[a-z][^<>]*>)+\s*$/;
|
|
104001
104484
|
const HTML_LINE_WITH_CONTENT_REGEX = /^<[a-z][^<>]*>.*<\/[a-z][^<>]*>(?:[^<]*)$/;
|
|
104485
|
+
const terminate_html_flow_blocks_TABLE_STRUCTURE_TAGS = ['table', 'thead', 'tbody', 'tfoot', 'tr', 'td', 'th', 'caption', 'colgroup'];
|
|
104486
|
+
// Tags whose contents must be preserved as is, inserting a blank line after the
|
|
104487
|
+
// opener corrupts the payload.
|
|
104488
|
+
// htmlRawNames here refer to <pre>, <textarea>, <script>, <style>
|
|
104489
|
+
const RAW_CONTENT_TAGS = [...htmlRawNames, ...terminate_html_flow_blocks_TABLE_STRUCTURE_TAGS];
|
|
104490
|
+
// The `(?=[\s/>])` lookahead avoids false matches on lookalike names like `<script-foo>`.
|
|
104491
|
+
const RAW_CONTENT_TAG_MATCHERS = RAW_CONTENT_TAGS.map(tag => ({
|
|
104492
|
+
open: new RegExp(`<${tag}(?=[\\s/>])[^>]*?(?<!/)>`, 'gi'),
|
|
104493
|
+
close: new RegExp(`</${tag}(?=[\\s>])[^>]*>`, 'gi'),
|
|
104494
|
+
}));
|
|
104002
104495
|
function isLineHtml(line) {
|
|
104003
104496
|
return STANDALONE_HTML_LINE_REGEX.test(line) || HTML_LINE_WITH_CONTENT_REGEX.test(line);
|
|
104004
104497
|
}
|
|
104498
|
+
// True if any RAW_CONTENT_TAGS opener on this line is not closed on the same line.
|
|
104499
|
+
function hasUnclosedRawContentOpener(line) {
|
|
104500
|
+
return RAW_CONTENT_TAG_MATCHERS.some(({ open, close }) => {
|
|
104501
|
+
const opens = (line.match(open) ?? []).length;
|
|
104502
|
+
const closes = (line.match(close) ?? []).length;
|
|
104503
|
+
return opens > closes;
|
|
104504
|
+
});
|
|
104505
|
+
}
|
|
104005
104506
|
/**
|
|
104006
104507
|
* Preprocessor to terminate HTML flow blocks.
|
|
104007
104508
|
*
|
|
@@ -104012,15 +104513,16 @@ function isLineHtml(line) {
|
|
|
104012
104513
|
*
|
|
104013
104514
|
* @link https://spec.commonmark.org/0.29/#html-blocks
|
|
104014
104515
|
*
|
|
104015
|
-
* This preprocessor inserts a blank line after standalone HTML lines when the
|
|
104016
|
-
*
|
|
104017
|
-
*
|
|
104516
|
+
* This preprocessor inserts a blank line after standalone HTML lines when the next
|
|
104517
|
+
* line is non-blank and not an HTML construct, ensuring micromark's HTML flow
|
|
104518
|
+
* tokenizer terminates and subsequent content is parsed independently.
|
|
104018
104519
|
*
|
|
104019
104520
|
* Conditions:
|
|
104020
|
-
* 1. Only
|
|
104021
|
-
*
|
|
104022
|
-
*
|
|
104023
|
-
* 2. Lines inside protected blocks (e.g
|
|
104521
|
+
* 1. Only non-indented lines with lowercase tag names are considered. Uppercase tags
|
|
104522
|
+
* (e.g. `<Table>`, `<MyComponent>`) are JSX custom components and don't trigger
|
|
104523
|
+
* CommonMark HTML blocks.
|
|
104524
|
+
* 2. Lines inside protected blocks (e.g. fenced code) are left untouched.
|
|
104525
|
+
* 3. Lines with an unclosed RAW_CONTENT_TAGS opener are exempted.
|
|
104024
104526
|
*/
|
|
104025
104527
|
function terminateHtmlFlowBlocks(content) {
|
|
104026
104528
|
const { protectedContent, protectedCode } = protectCodeBlocks(content);
|
|
@@ -104035,7 +104537,7 @@ function terminateHtmlFlowBlocks(content) {
|
|
|
104035
104537
|
}
|
|
104036
104538
|
const isCurrentLineHtml = isLineHtml(lines[i]);
|
|
104037
104539
|
const isNextLineHtml = isLineHtml(lines[i + 1]);
|
|
104038
|
-
if (isCurrentLineHtml && !isNextLineHtml) {
|
|
104540
|
+
if (isCurrentLineHtml && !isNextLineHtml && !hasUnclosedRawContentOpener(lines[i])) {
|
|
104039
104541
|
result.push('');
|
|
104040
104542
|
}
|
|
104041
104543
|
}
|
|
@@ -104694,6 +105196,10 @@ function loadComponents() {
|
|
|
104694
105196
|
|
|
104695
105197
|
|
|
104696
105198
|
|
|
105199
|
+
|
|
105200
|
+
|
|
105201
|
+
|
|
105202
|
+
|
|
104697
105203
|
|
|
104698
105204
|
|
|
104699
105205
|
|
|
@@ -104765,6 +105271,9 @@ function mdxishAstProcessor(mdContent, opts = {}) {
|
|
|
104765
105271
|
// Insert mdx expression (text-only, no flow) after gemoji at index 3
|
|
104766
105272
|
micromarkExts.splice(3, 0, mdxExprTextOnly);
|
|
104767
105273
|
fromMarkdownExts.splice(3, 0, mdxExpressionFromMarkdown());
|
|
105274
|
+
// Tokenizer for MDX variable declarations
|
|
105275
|
+
micromarkExts.push(mdxjsEsm({ acorn: jsxAcornParser, addResult: true }));
|
|
105276
|
+
fromMarkdownExts.push(mdxjsEsmFromMarkdown());
|
|
104768
105277
|
}
|
|
104769
105278
|
if (!safeMode) {
|
|
104770
105279
|
// JSX comment tokenizer must come before magicBlock so it claims `{/* ... */}` first
|
|
@@ -104845,8 +105354,9 @@ function mdxish(mdContent, opts = {}) {
|
|
|
104845
105354
|
const contentWithoutComments = restoreCodeBlocks(withoutComments, protectedCode);
|
|
104846
105355
|
const { processor, parserReadyContent } = mdxishAstProcessor(contentWithoutComments, opts);
|
|
104847
105356
|
processor
|
|
105357
|
+
.use(safeMode ? undefined : evaluate_exports) // Evaluate `export const/function` and stash scope on file.data.mdxishScope
|
|
105358
|
+
.use(remarkBreaks) // Must precede evaluateExpressions to avoid splitting the \n in an evaluated template literal into a <br> node
|
|
104848
105359
|
.use(safeMode ? undefined : evaluate_expressions) // Evaluate self-contained MDX expressions (e.g. `{1+1}`)
|
|
104849
|
-
.use(remarkBreaks)
|
|
104850
105360
|
.use(variables_code, { variables }) // Resolve <<...>> and {user.*} inside code and inline code nodes
|
|
104851
105361
|
.use(remarkRehype, { allowDangerousHtml: true, handlers: mdxComponentHandlers })
|
|
104852
105362
|
.use(preserveBooleanProperties) // RehypeRaw converts boolean properties to empty strings
|
|
@@ -104861,10 +105371,17 @@ function mdxish(mdContent, opts = {}) {
|
|
|
104861
105371
|
processMarkdown: (markdown) => mdxish(markdown, opts),
|
|
104862
105372
|
});
|
|
104863
105373
|
const vfile = new VFile({ value: parserReadyContent });
|
|
104864
|
-
const
|
|
105374
|
+
const mdast = processor.parse(parserReadyContent);
|
|
105375
|
+
const hast = processor.runSync(mdast, vfile);
|
|
104865
105376
|
if (!hast) {
|
|
104866
105377
|
throw new Error('Markdown pipeline did not produce a HAST tree.');
|
|
104867
105378
|
}
|
|
105379
|
+
// Stash the in-document exported components on the tree
|
|
105380
|
+
// so that the renderer consumer knows & renders them.
|
|
105381
|
+
// Required for exported components to get rendered.
|
|
105382
|
+
if (vfile.data.mdxishScope) {
|
|
105383
|
+
hast.data = { ...hast.data, mdxishScope: vfile.data.mdxishScope };
|
|
105384
|
+
}
|
|
104868
105385
|
return hast;
|
|
104869
105386
|
}
|
|
104870
105387
|
/* harmony default export */ const lib_mdxish = (mdxish);
|
|
@@ -105091,7 +105608,10 @@ function exportComponentsForRehype(components) {
|
|
|
105091
105608
|
function createElementPreservingHastProps(type, props, ...children) {
|
|
105092
105609
|
if (props?.node?.properties) {
|
|
105093
105610
|
const { node, ...rest } = props;
|
|
105094
|
-
|
|
105611
|
+
const mergedProps = { ...rest, ...node.properties };
|
|
105612
|
+
// Strip undefined so positional args don't shadow node.properties.children
|
|
105613
|
+
const definedChildren = children.filter(c => c !== undefined);
|
|
105614
|
+
return external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(type, mergedProps, ...definedChildren);
|
|
105095
105615
|
}
|
|
105096
105616
|
return external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(type, props, ...children);
|
|
105097
105617
|
}
|
|
@@ -105157,6 +105677,12 @@ const renderMdxish = (tree, opts = {}) => {
|
|
|
105157
105677
|
};
|
|
105158
105678
|
const headings = extractToc(tree, components);
|
|
105159
105679
|
const componentsForRehype = exportComponentsForRehype(components);
|
|
105680
|
+
// Merge any in-document bindings collected at compile time. Local scope wins
|
|
105681
|
+
// over caller-provided components
|
|
105682
|
+
const localScope = tree.data?.mdxishScope ?? {};
|
|
105683
|
+
Object.entries(localScope).forEach(([name, value]) => {
|
|
105684
|
+
componentsForRehype[name] = value;
|
|
105685
|
+
});
|
|
105160
105686
|
const processor = createRehypeReactProcessor(componentsForRehype);
|
|
105161
105687
|
const content = processor.stringify(tree);
|
|
105162
105688
|
const tocHast = headings.length > 0 ? tocToHast(headings, variables) : null;
|