@topwrite/reader 1.0.27-alpha.0 → 1.0.28-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -65,5 +65,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
65
65
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
66
66
  PERFORMANCE OF THIS SOFTWARE.
67
67
  ***************************************************************************** */
68
- var et=function(e,t){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},et(e,t)};function tt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}et(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var rt=function(){return rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},rt.apply(this,arguments)};Object.create;function nt(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}var it,ot,at;Object.create;function st(e){return e.type===ot.literal}function ut(e){return e.type===ot.argument}function ct(e){return e.type===ot.number}function lt(e){return e.type===ot.date}function ft(e){return e.type===ot.time}function pt(e){return e.type===ot.select}function ht(e){return e.type===ot.plural}function dt(e){return e.type===ot.pound}function mt(e){return e.type===ot.tag}function gt(e){return!(!e||"object"!=typeof e||e.type!==at.number)}function yt(e){return!(!e||"object"!=typeof e||e.type!==at.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(it||(it={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(ot||(ot={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(at||(at={}));var vt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,bt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Et(e){var t={};return e.replace(bt,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var wt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var xt,St=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,kt=/^(@+)?(\+|#+)?[rs]?$/g,At=/(\*)(0+)|(#+)(0+)|(0+)/g,Dt=/^(0+)$/;function Ft(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(kt,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Ct(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Pt(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Dt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ot(e){var t=Ct(e);return t||{}}function Tt(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=rt(rt(rt({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return rt(rt({},e),Ot(t))}),{}));continue;case"engineering":t=rt(rt(rt({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return rt(rt({},e),Ot(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(At,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Dt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(St.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(St,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=rt(rt({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=rt(rt({},t),Ft(o)))}else if(kt.test(i.stem))t=rt(rt({},t),Ft(i.stem));else{var a=Ct(i.stem);a&&(t=rt(rt({},t),a));var s=Pt(i.stem);s&&(t=rt(rt({},t),s))}}return t}var jt=new RegExp("^"+vt.source+"*"),_t=new RegExp(vt.source+"*$");function It(e,t){return{start:e,end:t}}var Rt=!!String.prototype.startsWith,Lt=!!String.fromCodePoint,Nt=!!Object.fromEntries,Mt=!!String.prototype.codePointAt,Bt=!!String.prototype.trimStart,zt=!!String.prototype.trimEnd,Ut=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},$t=!0;try{$t="a"===(null===(xt=Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===xt?void 0:xt[0])}catch(N){$t=!1}var qt,Vt=Rt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ht=Lt?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Gt=Nt?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],a=i[1];t[o]=a}return t},Wt=Mt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},Qt=Bt?function(e){return e.trimStart()}:function(e){return e.replace(jt,"")},Kt=zt?function(e){return e.trimEnd()}:function(e){return e.replace(_t,"")};function Yt(e,t){return new RegExp(e,t)}if($t){var Xt=Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qt=function(e,t){var r;return Xt.lastIndex=t,null!==(r=Xt.exec(e)[1])&&void 0!==r?r:""}}else qt=function(e,t){for(var r=[];;){var n=Wt(e,t);if(void 0===n||tr(n)||rr(n))break;r.push(n),t+=n>=65536?2:1}return Ht.apply(void 0,r)};var Zt=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(it.UNMATCHED_CLOSING_TAG,It(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Jt(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:ot.pound,location:It(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ot.literal,value:"<"+n+"/>",location:It(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Jt(this.char()))return this.error(it.INVALID_TAG,It(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(it.UNMATCHED_CLOSING_TAG,It(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ot.tag,value:n,children:o,location:It(r,this.clonePosition())},err:null}:this.error(it.INVALID_TAG,It(a,this.clonePosition())))}return this.error(it.UNCLOSED_TAG,It(r,this.clonePosition()))}return this.error(it.INVALID_TAG,It(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&er(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=It(r,this.clonePosition());return{val:{type:ot.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Jt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Ht.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),Ht(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(it.EXPECT_ARGUMENT_CLOSING_BRACE,It(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(it.EMPTY_ARGUMENT,It(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(it.MALFORMED_ARGUMENT,It(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(it.EXPECT_ARGUMENT_CLOSING_BRACE,It(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ot.argument,value:n,location:It(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(it.EXPECT_ARGUMENT_CLOSING_BRACE,It(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(it.MALFORMED_ARGUMENT,It(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=qt(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:It(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(it.EXPECT_ARGUMENT_TYPE,It(o,s));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=Kt(g.val)).length)return this.error(it.EXPECT_ARGUMENT_STYLE,It(this.clonePosition(),this.clonePosition()));u={style:p,styleLocation:It(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var l=It(n,this.clonePosition());if(u&&Vt(null==u?void 0:u.style,"::",0)){var f=Qt(u.style.slice(2));if("number"===a)return(g=this.parseNumberSkeletonFromString(f,u.styleLocation)).err?g:{val:{type:ot.number,value:r,location:l,style:g.val},err:null};if(0===f.length)return this.error(it.EXPECT_DATE_TIME_SKELETON,l);var p={type:at.dateTime,pattern:f,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Et(f):{}};return{val:{type:"date"===a?ot.date:ot.time,value:r,location:l,style:p},err:null}}return{val:{type:"number"===a?ot.number:"date"===a?ot.date:ot.time,value:r,location:l,style:null!==(i=null==u?void 0:u.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(it.EXPECT_SELECT_ARGUMENT_OPTIONS,It(h,rt({},h)));this.bumpSpace();var d=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(it.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,It(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(it.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,it.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),d=this.parseIdentifierIfPossible(),m=g.val}var y,v=this.tryParsePluralOrSelectOptions(e,a,t,d);if(v.err)return v;if((y=this.tryParseArgumentClose(n)).err)return y;var b=It(n,this.clonePosition());return"select"===a?{val:{type:ot.select,value:r,options:Gt(v.val),location:b},err:null}:{val:{type:ot.plural,value:r,options:Gt(v.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:b},err:null};default:return this.error(it.INVALID_ARGUMENT_TYPE,It(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(it.EXPECT_ARGUMENT_CLOSING_BRACE,It(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(it.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,It(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(wt).filter((function(e){return e.length>0})),r=[],n=0,i=t;n<i.length;n++){var o=i[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],s=o.slice(1),u=0,c=s;u<c.length;u++)if(0===c[u].length)throw new Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}(e)}catch(e){return this.error(it.INVALID_NUMBER_SKELETON,t)}return{val:{type:at.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Tt(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,a=[],s=new Set,u=n.value,c=n.location;;){if(0===u.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(it.EXPECT_PLURAL_ARGUMENT_SELECTOR,it.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=It(l,this.clonePosition()),u=this.message.slice(l.offset,this.offset())}if(s.has(u))return this.error("select"===t?it.DUPLICATE_SELECT_ARGUMENT_SELECTOR:it.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?it.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:it.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,It(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,r);if(h.err)return h;var d=this.tryParseArgumentClose(p);if(d.err)return d;a.push([u,{value:h.val,location:It(p,this.clonePosition())}]),s.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===a.length?this.error("select"===t?it.EXPECT_SELECT_ARGUMENT_SELECTOR:it.EXPECT_PLURAL_ARGUMENT_SELECTOR,It(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(it.MISSING_OTHER_CLAUSE,It(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=It(n,this.clonePosition());return i?Ut(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Wt(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Vt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&tr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Jt(e){return e>=97&&e<=122||e>=65&&e<=90}function er(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function tr(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function rr(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function nr(e){e.forEach((function(e){if(delete e.location,pt(e)||ht(e))for(var t in e.options)delete e.options[t].location,nr(e.options[t].value);else ct(e)&&gt(e.style)||(lt(e)||ft(e))&&yt(e.style)?delete e.style.location:mt(e)&&nr(e.children)}))}function ir(e,t){void 0===t&&(t={}),t=rt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Zt(e,t).parse();if(r.err){var n=SyntaxError(it[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||nr(r.val),r.val}function or(e,t){var r=t&&t.cache?t.cache:hr,n=t&&t.serializer?t.serializer:lr;return(t&&t.strategy?t.strategy:cr)(e,{cache:r,serializer:n})}function ar(e,t,r,n){var i=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),o=t.get(i);return void 0===o&&(o=e.call(this,n),t.set(i,o)),o}function sr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function ur(e,t,r,n,i){return r.bind(t,e,n,i)}function cr(e,t){return ur(e,this,1===e.length?ar:sr,t.cache.create(),t.serializer)}var lr=function(){return JSON.stringify(arguments)};function fr(){this.cache=Object.create(null)}fr.prototype.get=function(e){return this.cache[e]},fr.prototype.set=function(e,t){this.cache[e]=t};var pr,hr={create:function(){return new fr}},dr={variadic:function(e,t){return ur(e,this,sr,t.cache.create(),t.serializer)},monadic:function(e,t){return ur(e,this,ar,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(pr||(pr={}));var mr,gr=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return tt(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),yr=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',pr.INVALID_VALUE,i)||this}return tt(t,e),t}(gr),vr=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,pr.INVALID_VALUE,n)||this}return tt(t,e),t}(gr),br=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',pr.MISSING_VALUE,r)||this}return tt(t,e),t}(gr);function Er(e){return"function"==typeof e}function wr(e,t,r,n,i,o,a){if(1===e.length&&st(e[0]))return[{type:mr.literal,value:e[0].value}];for(var s=[],u=0,c=e;u<c.length;u++){var l=c[u];if(st(l))s.push({type:mr.literal,value:l.value});else if(dt(l))"number"==typeof o&&s.push({type:mr.literal,value:r.getNumberFormat(t).format(o)});else{var f=l.value;if(!i||!(f in i))throw new br(f,a);var p=i[f];if(ut(l))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?mr.literal:mr.object,value:p});else if(lt(l)){var h="string"==typeof l.style?n.date[l.style]:yt(l.style)?l.style.parsedOptions:void 0;s.push({type:mr.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(ft(l)){h="string"==typeof l.style?n.time[l.style]:yt(l.style)?l.style.parsedOptions:void 0;s.push({type:mr.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(ct(l)){(h="string"==typeof l.style?n.number[l.style]:gt(l.style)?l.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:mr.literal,value:r.getNumberFormat(t,h).format(p)})}else{if(mt(l)){var d=l.children,m=l.value,g=i[m];if(!Er(g))throw new vr(m,"function",a);var y=g(wr(d,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),s.push.apply(s,y.map((function(e){return{type:"string"==typeof e?mr.literal:mr.object,value:e}})))}if(pt(l)){if(!(v=l.options[p]||l.options.other))throw new yr(l.value,p,Object.keys(l.options),a);s.push.apply(s,wr(v.value,t,r,n,i))}else if(ht(l)){var v;if(!(v=l.options["="+p])){if(!Intl.PluralRules)throw new gr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',pr.MISSING_INTL_API,a);var b=r.getPluralRules(t,{type:l.pluralType}).select(p-(l.offset||0));v=l.options[b]||l.options.other}if(!v)throw new yr(l.value,p,Object.keys(l.options),a);s.push.apply(s,wr(v.value,t,r,n,i,p-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===mr.literal&&t.type===mr.literal?r.value+=t.value:e.push(t),e}),[])}(s)}function xr(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?rt(rt(rt({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=rt(rt({},i[t]),o[t]||{}),e}),{})):i),r}),rt({},e)):e}function Sr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(mr||(mr={}));var kr,Ar=function(){function e(t,r,n,i){var o,a=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===mr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return wr(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=xr(e.formats,n),this.locales=r,this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:or((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,nt([void 0],t,!1)))}),{cache:Sr(o.number),strategy:dr.variadic}),getDateTimeFormat:or((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,nt([void 0],t,!1)))}),{cache:Sr(o.dateTime),strategy:dr.variadic}),getPluralRules:or((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,nt([void 0],t,!1)))}),{cache:Sr(o.pluralRules),strategy:dr.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=ir,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(kr||(kr={}));var Dr=function(e){function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error "+r+"] "+n+" \n"+(a?"\n"+a.message+"\n"+a.stack:""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return tt(t,e),t}(Error),Fr=function(e){function t(t,r){return e.call(this,kr.UNSUPPORTED_FORMATTER,t,r)||this}return tt(t,e),t}(Dr),Cr=function(e){function t(t,r){return e.call(this,kr.INVALID_CONFIG,t,r)||this}return tt(t,e),t}(Dr),Pr=function(e){function t(t,r){return e.call(this,kr.MISSING_DATA,t,r)||this}return tt(t,e),t}(Dr),Or=function(e){function t(t,r,n){return e.call(this,kr.FORMAT_ERROR,t+" \nLocale: "+r+"\n",n)||this}return tt(t,e),t}(Dr),Tr=function(e){function t(t,r,n,i){var o=e.call(this,t+" \nMessageID: "+(null==n?void 0:n.id)+"\nDefault Message: "+(null==n?void 0:n.defaultMessage)+"\nDescription: "+(null==n?void 0:n.description)+" \n",r,i)||this;return o.descriptor=n,o}return tt(t,e),t}(Or),jr=function(e){function t(t,r){var n=e.call(this,kr.MISSING_TRANSLATION,'Missing message: "'+t.id+'" for locale "'+r+'", using '+(t.defaultMessage?"default message":"id")+" as fallback.")||this;return n.descriptor=t,n}return tt(t,e),t}(Dr);function _r(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var Ir={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0}};function Rr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Lr(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new Fr("No "+t+" format named: "+r))}function Nr(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function Mr(e){Nr(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Br=rt(rt({},Ir),{textComponent:i.Fragment});function zr(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=rt({timeZone:t},e[n]),r}),{})}function Ur(e,t){return Object.keys(rt(rt({},e),t)).reduce((function(r,n){return r[n]=rt(rt({},e[n]||{}),t[n]||{}),r}),{})}function $r(e,t){if(!t)return e;var r=Ar.formats;return rt(rt(rt({},r),e),{date:Ur(zr(r.date,t),zr(e.date||{},t)),time:Ur(zr(r.time,t),zr(e.time||{},t))})}function qr(e,t,r,n,i){var o=e.locale,a=e.formats,s=e.messages,u=e.defaultLocale,c=e.defaultFormats,l=e.fallbackOnEmptyString,f=e.onError,p=e.timeZone,h=e.defaultRichTextElements;void 0===r&&(r={id:""});var d=r.id,m=r.defaultMessage;Nr(!!d,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(d),y=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(y)&&1===y.length&&y[0].type===ot.literal)return y[0].value;if(!n&&y&&"string"==typeof y&&!h)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=rt(rt({},h),n||{}),a=$r(a,p),c=$r(c,p),!y){if(!1===l&&""===y)return y;if((!m||o&&o.toLowerCase()!==u.toLowerCase())&&f(new jr(r,o)),m)try{return t.getMessageFormat(m,u,c,i).format(n)}catch(e){return f(new Tr('Error formatting default message for: "'+g+'", rendering default message verbatim',o,r,e)),"string"==typeof m?m:g}return g}try{return t.getMessageFormat(y,o,a,rt({formatters:t},i||{})).format(n)}catch(e){f(new Tr('Error formatting message: "'+g+'", using '+(m?"default message":"id")+" as fallback.",o,r,e))}if(m)try{return t.getMessageFormat(m,u,c,i).format(n)}catch(e){f(new Tr('Error formatting the default message for: "'+g+'", rendering message verbatim',o,r,e))}return"string"==typeof y?y:"string"==typeof m?m:g}var Vr=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Hr(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=a&&Lr(i,"number",a,o)||{};return t(n,_r(r,Vr,s))}function Gr(e,t,r,n){void 0===n&&(n={});try{return Hr(e,t,n).format(r)}catch(t){e.onError(new Dr(kr.FORMAT_ERROR,"Error formatting number.",t))}return String(r)}function Wr(e,t,r,n){void 0===n&&(n={});try{return Hr(e,t,n).formatToParts(r)}catch(t){e.onError(new Dr(kr.FORMAT_ERROR,"Error formatting number.",t))}return[]}var Qr=["numeric","style"];function Kr(e,t,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new gr('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',pr.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&Lr(i,"relative",a,o)||{};return t(n,_r(r,Qr,s))}(e,t,i).format(r,n)}catch(t){e.onError(new Or("Error formatting relative time.",e.locale,t))}return String(r)}var Yr=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function Xr(e,t,r,n){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var u=n.format,c=rt(rt({},s&&{timeZone:s}),u&&Lr(o,t,u,a)),l=_r(n,Yr,c);return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=rt(rt({},l),{hour:"numeric",minute:"numeric"})),r(i,l)}function Zr(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Xr(e,"date",t,a).format(s)}catch(t){e.onError(new Dr(kr.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function Jr(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Xr(e,"time",t,a).format(s)}catch(t){e.onError(new Dr(kr.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function en(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=void 0===a?{}:a,u=e.timeZone,c=e.locale,l=e.onError,f=_r(s,Yr,u?{timeZone:u}:{});try{return t(c,f).formatRange(i,o)}catch(e){l(new Dr(kr.FORMAT_ERROR,"Error formatting date time range.",e))}return String(i)}function tn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Xr(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new Dr(kr.FORMAT_ERROR,"Error formatting date.",t))}return[]}function rn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Xr(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new Dr(kr.FORMAT_ERROR,"Error formatting time.",t))}return[]}var nn=["localeMatcher","type"];function on(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.PluralRules||o(new gr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',pr.MISSING_INTL_API));var a=_r(n,nn);try{return t(i,a).select(r)}catch(e){o(new Or("Error formatting plural.",i,e))}return"other"}var an=["localeMatcher","type","style"],sn=Date.now();function un(e,t,r,n){void 0===n&&(n={});var i=cn(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===i.length?i[0]:i}function cn(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.ListFormat||o(new gr('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',pr.MISSING_INTL_API));var a=_r(n,an);try{var s={},u=r.map((function(e,t){if("object"==typeof e){var r=function(e){return sn+"_"+e+"_"+sn}(t);return s[r]=e,r}return String(e)}));return t(i,a).formatToParts(u).map((function(e){return"literal"===e.type?e:rt(rt({},e),{value:s[e.value]||e.value})}))}catch(e){o(new Dr(kr.FORMAT_ERROR,"Error formatting list.",e))}return r}var ln=["localeMatcher","style","type","fallback"];function fn(e,t,r,n){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new gr('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',pr.MISSING_INTL_API));var a=_r(n,ln);try{return t(i,a).of(r)}catch(e){o(new Dr(kr.FORMAT_ERROR,"Error formatting display name.",e))}}function pn(e){var t;e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&console.warn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}function hn(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=or((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,nt([void 0],t,!1)))}),{cache:Rr(e.dateTime),strategy:dr.variadic}),o=or((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,nt([void 0],t,!1)))}),{cache:Rr(e.number),strategy:dr.variadic}),a=or((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,nt([void 0],t,!1)))}),{cache:Rr(e.pluralRules),strategy:dr.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:or((function(e,t,r,n){return new Ar(e,t,r,rt({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},n||{}))}),{cache:Rr(e.message),strategy:dr.variadic}),getRelativeTimeFormat:or((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,nt([void 0],e,!1)))}),{cache:Rr(e.relativeTime),strategy:dr.variadic}),getPluralRules:a,getListFormat:or((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,nt([void 0],e,!1)))}),{cache:Rr(e.list),strategy:dr.variadic}),getDisplayNames:or((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,nt([void 0],e,!1)))}),{cache:Rr(e.displayNames),strategy:dr.variadic})}}(t),n=rt(rt({},Ir),e),i=n.locale,o=n.defaultLocale,a=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Pr('Missing locale data for locale: "'+i+'" in Intl.NumberFormat. Using default locale: "'+o+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new Pr('Missing locale data for locale: "'+i+'" in Intl.DateTimeFormat. Using default locale: "'+o+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(a&&a(new Cr('"locale" was not configured, using "'+o+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),n.locale=n.defaultLocale||"en"),pn(n),rt(rt({},n),{formatters:r,formatNumber:Gr.bind(null,n,r.getNumberFormat),formatNumberToParts:Wr.bind(null,n,r.getNumberFormat),formatRelativeTime:Kr.bind(null,n,r.getRelativeTimeFormat),formatDate:Zr.bind(null,n,r.getDateTimeFormat),formatDateToParts:tn.bind(null,n,r.getDateTimeFormat),formatTime:Jr.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:en.bind(null,n,r.getDateTimeFormat),formatTimeToParts:rn.bind(null,n,r.getDateTimeFormat),formatPlural:on.bind(null,n,r.getPluralRules),formatMessage:qr.bind(null,n,r),formatList:un.bind(null,n,r.getListFormat),formatListToParts:cn.bind(null,n,r.getListFormat),formatDisplayName:fn.bind(null,n,r.getDisplayNames)})}function dn(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function mn(e){return e?Object.keys(e).reduce((function(t,r){var n,o=e[r];return t[r]=Er(o)?(n=o,function(e){return n(i.Children.toArray(e))}):o,t}),{}):e}var gn=function(e,t,r,n){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];var s=mn(n),u=qr.apply(void 0,nt([e,t,r,s],o,!1));return Array.isArray(u)?i.Children.toArray(u):u},yn=function(e,t){var r=e.defaultRichTextElements,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["defaultRichTextElements"]),i=mn(r),o=hn(rt(rt(rt({},Br),n),{defaultRichTextElements:i}),t);return rt(rt({},o),{formatMessage:gn.bind(null,{locale:o.locale,timeZone:o.timeZone,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i},o.formatters)})};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:yn(dn(t.props),t.cache),prevConfig:dn(t.props)},t}tt(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,i=dn(e);return function(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var o=0;o<i;o++){var a=r[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}(r,i)?null:{intl:yn(i,n),prevConfig:i}},t.prototype.render=function(){return Mr(this.state.intl),i.createElement(Ze,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Br}(i.PureComponent);function vn(){var e=i.useContext(Je);return Mr(e),e}function bn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var En=a(2348),wn=a(4445),xn=a.n(wn);const Sn=function(e){function t(e,n,u,c,p){for(var h,d,m,g,E,x=0,S=0,k=0,A=0,D=0,j=0,I=m=h=0,L=0,N=0,M=0,B=0,z=u.length,U=z-1,$="",q="",V="",H="";L<z;){if(d=u.charCodeAt(L),L===U&&0!==S+A+k+x&&(0!==S&&(d=47===S?10:47),A=k=x=0,z++,U++),0===S+A+k+x){if(L===U&&(0<N&&($=$.replace(f,"")),0<$.trim().length)){switch(d){case 32:case 9:case 59:case 13:case 10:break;default:$+=u.charAt(L)}d=59}switch(d){case 123:for(h=($=$.trim()).charCodeAt(0),m=1,B=++L;L<z;){switch(d=u.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(d=u.charCodeAt(L+1)){case 42:case 47:e:{for(I=L+1;I<U;++I)switch(u.charCodeAt(I)){case 47:if(42===d&&42===u.charCodeAt(I-1)&&L+2!==I){L=I+1;break e}break;case 10:if(47===d){L=I+1;break e}}L=I}}break;case 91:d++;case 40:d++;case 34:case 39:for(;L++<U&&u.charCodeAt(L)!==d;);}if(0===m)break;L++}if(m=u.substring(B,L),0===h&&(h=($=$.replace(l,"").trim()).charCodeAt(0)),64===h){switch(0<N&&($=$.replace(f,"")),d=$.charCodeAt(1)){case 100:case 109:case 115:case 45:N=n;break;default:N=T}if(B=(m=t(n,N,m,d,p+1)).length,0<_&&(E=s(3,m,N=r(T,$,M),n,C,F,B,d,p,c),$=N.join(""),void 0!==E&&0===(B=(m=E.trim()).length)&&(d=0,m="")),0<B)switch(d){case 115:$=$.replace(w,a);case 100:case 109:case 45:m=$+"{"+m+"}";break;case 107:m=($=$.replace(y,"$1 $2"))+"{"+m+"}",m=1===O||2===O&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=$+m,112===c&&(q+=m,m="")}else m=""}else m=t(n,r(n,$,M),m,c,p+1);V+=m,m=M=N=I=h=0,$="",d=u.charCodeAt(++L);break;case 125:case 59:if(1<(B=($=(0<N?$.replace(f,""):$).trim()).length))switch(0===I&&(h=$.charCodeAt(0),45===h||96<h&&123>h)&&(B=($=$.replace(" ",":")).length),0<_&&void 0!==(E=s(1,$,n,e,C,F,q.length,c,p,c))&&0===(B=($=E.trim()).length)&&($="\0\0"),h=$.charCodeAt(0),d=$.charCodeAt(1),h){case 0:break;case 64:if(105===d||99===d){H+=$+u.charAt(L);break}default:58!==$.charCodeAt(B-1)&&(q+=i($,h,d,$.charCodeAt(2)))}M=N=I=h=0,$="",d=u.charCodeAt(++L)}}switch(d){case 13:case 10:47===S?S=0:0===1+h&&107!==c&&0<$.length&&(N=1,$+="\0"),0<_*R&&s(0,$,n,e,C,F,q.length,c,p,c),F=1,C++;break;case 59:case 125:if(0===S+A+k+x){F++;break}default:switch(F++,g=u.charAt(L),d){case 9:case 32:if(0===A+x+S)switch(D){case 44:case 58:case 9:case 32:g="";break;default:32!==d&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===A+S+x&&(N=M=1,g="\f"+g);break;case 108:if(0===A+S+x+P&&0<I)switch(L-I){case 2:112===D&&58===u.charCodeAt(L-3)&&(P=D);case 8:111===j&&(P=j)}break;case 58:0===A+S+x&&(I=L);break;case 44:0===S+k+A+x&&(N=1,g+="\r");break;case 34:case 39:0===S&&(A=A===d?0:0===A?d:A);break;case 91:0===A+S+k&&x++;break;case 93:0===A+S+k&&x--;break;case 41:0===A+S+x&&k--;break;case 40:if(0===A+S+x){if(0===h)if(2*D+3*j==533);else h=1;k++}break;case 64:0===S+k+A+x+I+m&&(m=1);break;case 42:case 47:if(!(0<A+x+k))switch(S){case 0:switch(2*d+3*u.charCodeAt(L+1)){case 235:S=47;break;case 220:B=L,S=42}break;case 42:47===d&&42===D&&B+2!==L&&(33===u.charCodeAt(B+2)&&(q+=u.substring(B,L+1)),g="",S=0)}}0===S&&($+=g)}j=D,D=d,L++}if(0<(B=q.length)){if(N=n,0<_&&(void 0!==(E=s(2,q,N,e,C,F,B,c,p,c))&&0===(q=E).length))return H+q+V;if(q=N.join(",")+"{"+q+"}",0!=O*P){switch(2!==O||o(q,2)||(P=0),P){case 111:q=q.replace(b,":-moz-$1")+q;break;case 112:q=q.replace(v,"::-webkit-input-$1")+q.replace(v,"::-moz-$1")+q.replace(v,":-ms-input-$1")+q}P=0}}return H+q+V}function r(e,t,r){var i=t.trim().split(m);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[u++]=n(e[c]+" ",i[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===O||2===O&&o(u,1)?"-webkit-"+u+u:u}if(0===O||2===O&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(D,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return h.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(E,"tb");break;case 232:u=a.replace(E,"tb-rl");break;case 220:u=a.replace(E,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+a}return a}function o(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),I(2!==t?n:n.replace(k,"$1"),r,t)}function a(e,t){var r=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,i,o,a,s,u,l){for(var f,p=0,h=t;p<_;++p)switch(f=j[p].call(c,e,h,r,n,i,o,a,s,u,l)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function u(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?O=1:(O=2,I=e):O=0),u}function c(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<_){var i=s(-1,r,n,n,C,F,0,0,0,0);void 0!==i&&"string"==typeof i&&(r=i)}var o=t(T,n,r,0,0);return 0<_&&(void 0!==(i=s(-2,o,n,n,C,F,o.length,0,0,0))&&(o=i)),"",P=0,F=C=1,o}var l=/^\0+/g,f=/[\0\r\f]/g,p=/: */g,h=/zoo|gra/,d=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,S=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,D=/([^-])(image-set\()/,F=1,C=1,P=0,O=1,T=[],j=[],_=0,I=null,R=0;return c.use=function e(t){switch(t){case void 0:case null:_=j.length=0;break;default:if("function"==typeof t)j[_++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},c.set=u,void 0!==e&&u(e),c};const kn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const An=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}};var Dn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const Fn=An((function(e){return Dn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Cn=a(7061);function Pn(){return(Pn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var On=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},Tn=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,En.typeOf)(e)},jn=Object.freeze([]),_n=Object.freeze({});function In(e){return"function"==typeof e}function Rn(e){return e.displayName||e.name||"Component"}function Ln(e){return e&&"string"==typeof e.styledComponentId}var Nn=void 0!==Cn&&(Cn.env.REACT_APP_SC_ATTR||Cn.env.SC_ATTR)||"data-styled",Mn="undefined"!=typeof window&&"HTMLElement"in window,Bn=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==Cn&&void 0!==Cn.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==Cn.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==Cn.env.REACT_APP_SC_DISABLE_SPEEDY&&Cn.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==Cn&&void 0!==Cn.env.SC_DISABLE_SPEEDY&&""!==Cn.env.SC_DISABLE_SPEEDY&&("false"!==Cn.env.SC_DISABLE_SPEEDY&&Cn.env.SC_DISABLE_SPEEDY)),zn={};function Un(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var $n=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&Un(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),qn=new Map,Vn=new Map,Hn=1,Gn=function(e){if(qn.has(e))return qn.get(e);for(;Vn.has(Hn);)Hn++;var t=Hn++;return qn.set(e,t),Vn.set(t,e),t},Wn=function(e){return Vn.get(e)},Qn=function(e,t){t>=Hn&&(Hn=t+1),qn.set(e,t),Vn.set(t,e)},Kn="style["+Nn+'][data-styled-version="5.3.5"]',Yn=new RegExp("^"+Nn+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Xn=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},Zn=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],i=0,o=r.length;i<o;i++){var a=r[i].trim();if(a){var s=a.match(Yn);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Qn(c,u),Xn(e,c,s[3]),e.getTag().insertRules(u,n)),n.length=0}else n.push(a)}}},Jn=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},ei=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(Nn))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(Nn,"active"),n.setAttribute("data-styled-version","5.3.5");var a=Jn();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},ti=function(){function e(e){var t=this.element=ei(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}Un(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),ri=function(){function e(e){var t=this.element=ei(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ni=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ii=Mn,oi={isServer:!Mn,useCSSOMInjection:!Bn},ai=function(){function e(e,t,r){void 0===e&&(e=_n),void 0===t&&(t={}),this.options=Pn({},oi,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Mn&&ii&&(ii=!1,function(e){for(var t=document.querySelectorAll(Kn),r=0,n=t.length;r<n;r++){var i=t[r];i&&"active"!==i.getAttribute(Nn)&&(Zn(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return Gn(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Pn({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,i=t.target,e=r?new ni(i):n?new ti(i):new ri(i),new $n(e)));var e,t,r,n,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Gn(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Gn(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Gn(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++){var o=Wn(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var u=Nn+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),n+=""+s+u+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),si=/(a)(d)/gi,ui=function(e){return String.fromCharCode(e+(e>25?39:97))};function ci(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ui(t%52)+r;return(ui(t%52)+r).replace(si,"$1-$2")}var li=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},fi=function(e){return li(5381,e)};function pi(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(In(r)&&!Ln(r))return!1}return!0}var hi=fi("5.3.5"),di=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&pi(e),this.componentId=t,this.baseHash=li(hi,t),this.baseStyle=r,ai.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var o=ji(this.rules,e,t,r).join(""),a=ci(li(this.baseHash,o)>>>0);if(!t.hasNameForId(n,a)){var s=r(o,"."+a,void 0,n);t.insertRules(n,a,s)}i.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,c=li(this.baseHash,r.hash),l="",f=0;f<u;f++){var p=this.rules[f];if("string"==typeof p)l+=p;else if(p){var h=ji(p,e,t,r),d=Array.isArray(h)?h.join(""):h;c=li(c,d+f),l+=d}}if(l){var m=ci(c>>>0);if(!t.hasNameForId(n,m)){var g=r(l,"."+m,void 0,n);t.insertRules(n,m,g)}i.push(m)}}return i.join(" ")},e}(),mi=/^\s*\/\/.*$/gm,gi=[":","[",".","#"];function yi(e){var t,r,n,i,o=void 0===e?_n:e,a=o.options,s=void 0===a?_n:a,u=o.plugins,c=void 0===u?jn:u,l=new Sn(s),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,a,s,u,c,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,n,o){return 0===n&&-1!==gi.indexOf(o[r.length])||o.match(i)?e:"."+t};function d(e,o,a,s){void 0===s&&(s="&");var u=e.replace(mi,""),c=o&&a?a+" "+o+" { "+u+" }":u;return t=s,r=o,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),l(a||!o?"":o,c)}return l.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,h))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),d.hash=c.length?c.reduce((function(e,t){return t.name||Un(15),li(e,t.name)}),5381).toString():"",d}var vi=o().createContext(),bi=(vi.Consumer,o().createContext()),Ei=(bi.Consumer,new ai),wi=yi();function xi(){return(0,i.useContext)(vi)||Ei}function Si(){return(0,i.useContext)(bi)||wi}function ki(e){var t=(0,i.useState)(e.stylisPlugins),r=t[0],n=t[1],a=xi(),s=(0,i.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=(0,i.useMemo)((function(){return yi({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,i.useEffect)((function(){xn()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),o().createElement(vi.Provider,{value:s},o().createElement(bi.Provider,{value:u},e.children))}var Ai=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=wi);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return Un(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=wi),this.name+e.hash},e}(),Di=/([A-Z])/,Fi=/([A-Z])/g,Ci=/^ms-/,Pi=function(e){return"-"+e.toLowerCase()};function Oi(e){return Di.test(e)?e.replace(Fi,Pi).replace(Ci,"-ms-"):e}var Ti=function(e){return null==e||!1===e||""===e};function ji(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=ji(e[a],t,r,n))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return Ti(e)?"":Ln(e)?"."+e.styledComponentId:In(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:ji(e(t),t,r,n):e instanceof Ai?r?(e.inject(r,n),e.getName(n)):e:Tn(e)?function e(t,r){var n,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!Ti(t[a])&&(Array.isArray(t[a])&&t[a].isCss||In(t[a])?o.push(Oi(a)+":",t[a],";"):Tn(t[a])?o.push.apply(o,e(t[a],a)):o.push(Oi(a)+": "+(n=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||n in kn?String(i).trim():i+"px")+";")));return r?[r+" {"].concat(o,["}"]):o}(e):e.toString();var u}var _i=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ii(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return In(e)||Tn(e)?_i(ji(On(jn,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:_i(ji(On(e,r)))}new Set;var Ri=function(e,t,r){return void 0===r&&(r=_n),e.theme!==r.theme&&e.theme||t||r.theme},Li=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ni=/(^-|-$)/g;function Mi(e){return e.replace(Li,"-").replace(Ni,"")}var Bi=function(e){return ci(fi(e)>>>0)};function zi(e){return"string"==typeof e&&!0}var Ui=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},$i=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function qi(e,t,r){var n=e[r];Ui(t)&&Ui(n)?Vi(n,t):e[r]=t}function Vi(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];if(Ui(a))for(var s in a)$i(s)&&qi(e,a[s],s)}return e}var Hi=o().createContext();Hi.Consumer;var Gi={};function Wi(e,t,r){var n=Ln(e),a=!zi(e),s=t.attrs,u=void 0===s?jn:s,c=t.componentId,l=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Mi(e);Gi[r]=(Gi[r]||0)+1;var n=r+"-"+Bi("5.3.5"+r+Gi[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):c,f=t.displayName,p=void 0===f?function(e){return zi(e)?"styled."+e:"Styled("+Rn(e)+")"}(e):f,h=t.displayName&&t.componentId?Mi(t.displayName)+"-"+t.componentId:t.componentId||l,d=n&&e.attrs?Array.prototype.concat(e.attrs,u).filter(Boolean):u,m=t.shouldForwardProp;n&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(r,n,i){return e.shouldForwardProp(r,n,i)&&t.shouldForwardProp(r,n,i)}:e.shouldForwardProp);var g,y=new di(r,h,n?e.componentStyle:void 0),v=y.isStatic&&0===u.length,b=function(e,t){return function(e,t,r,n){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,c=e.shouldForwardProp,l=e.styledComponentId,f=e.target,p=function(e,t,r){void 0===e&&(e=_n);var n=Pn({},t,{theme:e}),i={};return r.forEach((function(e){var t,r,o,a=e;for(t in In(a)&&(a=a(n)),a)n[t]=i[t]="className"===t?(r=i[t],o=a[t],r&&o?r+" "+o:r||o):a[t]})),[n,i]}(Ri(t,(0,i.useContext)(Hi),s)||_n,t,o),h=p[0],d=p[1],m=function(e,t,r,n){var i=xi(),o=Si();return t?e.generateAndInjectStyles(_n,i,o):e.generateAndInjectStyles(r,i,o)}(a,n,h),g=r,y=d.$as||t.$as||d.as||t.as||f,v=zi(y),b=d!==t?Pn({},t,{},d):t,E={};for(var w in b)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?E.as=b[w]:(c?c(w,Fn,y):!v||Fn(w))&&(E[w]=b[w]));return t.style&&d.style!==t.style&&(E.style=Pn({},t.style,{},d.style)),E.className=Array.prototype.concat(u,l,m!==l?m:null,t.className,d.className).filter(Boolean).join(" "),E.ref=g,(0,i.createElement)(y,E)}(g,e,t,v)};return b.displayName=p,(g=o().forwardRef(b)).attrs=d,g.componentStyle=y,g.displayName=p,g.shouldForwardProp=m,g.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):jn,g.styledComponentId=h,g.target=n?e.target:e,g.withComponent=function(e){var n=t.componentId,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(t,["componentId"]),o=n&&n+"-"+(zi(e)?e:Mi(Rn(e)));return Wi(e,Pn({},i,{attrs:d,componentId:o}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Vi({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},a&&Ce()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var Qi=function(e){return function e(t,r,n){if(void 0===n&&(n=_n),!(0,En.isValidElementType)(r))return Un(1,String(r));var i=function(){return t(r,n,Ii.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,r,Pn({},n,{},i))},i.attrs=function(i){return e(t,r,Pn({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}(Wi,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Qi[e]=Qi(e)}));var Ki=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=pi(e),ai.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var i=n(ji(this.rules,t,r,n).join(""),""),o=this.componentId+e;r.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&ai.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Yi(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=Ii.apply(void 0,[e].concat(r)),s="sc-global-"+Bi(JSON.stringify(a)),u=new Ki(a,s);function c(e){var t=xi(),r=Si(),n=(0,i.useContext)(Hi),o=(0,i.useRef)(t.allocateGSInstance(s)).current;return t.server&&l(o,e,t,n,r),(0,i.useLayoutEffect)((function(){if(!t.server)return l(o,e,t,n,r),function(){return u.removeStyles(o,t)}}),[o,e,t,n,r]),null}function l(e,t,r,n,i){if(u.isStatic)u.renderStyles(e,zn,r,i);else{var o=Pn({},t,{theme:Ri(t,n,c.defaultProps)});u.renderStyles(e,o,r,i)}}return o().memo(c)}function Xi(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Ii.apply(void 0,[e].concat(r)).join(""),o=Bi(i);return new Ai(o,i)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=Jn();return"<style "+[r&&'nonce="'+r+'"',Nn+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?Un(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return Un(2);var r=((t={})[Nn]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=Jn();return n&&(r.nonce=n),[o().createElement("style",Pn({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new ai({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?Un(2):o().createElement(ki,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return Un(3)}}();const Zi=Qi;var Ji=a(5969),eo=a(8717),to=a(7918);var ro=a(213);function no(e){return new RegExp("^("+e+")$","i")}const io=new Ji;function oo(e,t,r){const n=r.skip&&no(r.skip),i=(0,ro.convert)(r.parents||(t=>t===e)),o=[];let a,s,u;var c,l,f,p;return io.reset(),c=e,f=function(e,c,l){const f=(0,eo.B)(e,{includeImageAlt:!1}),p=e.data&&e.data.hProperties&&e.data.hProperties.id,h=io.slug(p||f);if(i(l)){if(null!==c&&t&&!a&&t.test(f))return a=c+1,void(u=e);null!==c&&u&&!s&&e.depth<=u.depth&&(s=c),!s&&t||r.maxDepth&&!(e.depth<=r.maxDepth)||n&&n.test(f)||o.push({depth:e.depth,children:e.children,id:h})}},"function"==typeof(l="heading")&&"function"!=typeof f&&(p=f,f=l,l=null),(0,to.S4)(c,l,(function(e,t){var r=t[t.length-1];return f(e,r?r.children.indexOf(e):null,r)}),p),{index:a||-1,endIndex:a?s||e.children.length:-1,map:o}}var ao=a(229);function so(e,t){const{ordered:r=!1,tight:n=!1,prefix:i=null}=t,o={type:"list",ordered:r,spread:!1,children:[]};let a=Number.POSITIVE_INFINITY,s=-1;for(;++s<e.length;)e[s].depth<a&&(a=e[s].depth);for(s=-1;++s<e.length;)e[s].depth-=a-1;for(s=-1;++s<e.length;)uo(e[s],o,{ordered:r,tight:n,prefix:i});return o}function uo(e,t,r){let n=-1;if("list"===t.type)if(1===e.depth)t.children.push({type:"listItem",spread:!1,children:[{type:"paragraph",children:[{type:"link",title:null,url:"#"+(r.prefix||"")+e.id,children:co(e.children)}]}]});else if(t.children.length>0)uo(e,t.children[t.children.length-1],r);else{const n={type:"listItem",spread:!1,children:[]};t.children.push(n),uo(e,n,r)}else if(t.children[t.children.length-1]&&"list"===t.children[t.children.length-1].type)e.depth--,uo(e,t.children[t.children.length-1],r);else{const n={type:"list",ordered:r.ordered,spread:!1,children:[]};t.children.push(n),e.depth--,uo(e,n,r)}if("list"!==t.type||r.tight)t.spread=!r.tight;else for(t.spread=!1;++n<t.children.length;)if(t.children[n].children.length>1){t.spread=!0;break}}function co(e){let t=[],r=-1;if(e)for(;++r<e.length;)t=t.concat(lo(e[r]));return t}function lo(e){if("link"===e.type||"linkReference"===e.type||"footnote"===e.type||"footnoteReference"===e.type)return co(e.children);if("children"in e){const{children:t,position:r,...n}=e;return Object.assign(ao(!0,{},n),{children:co(e.children)})}const{position:t,...r}=e;return ao(!0,{},r)}var fo=a(3428);const po=new Ji;function ho(){return e=>{po.reset(),(0,fo.visit)(e,"heading",(e=>{const t=e.data||(e.data={}),r=t.hProperties||(t.hProperties={});let n=r.id;n=n?po.slug(String(n),!0):po.slug((0,eo.B)(e)),t.id=n,r.id=n}))}}var mo=function(e,t,r){var n={type:String(e)};return null!=r||"string"!=typeof t&&!Array.isArray(t)?Object.assign(n,t):r=t,Array.isArray(r)?n.children=r:null!=r&&(n.value=String(r)),n},go=vo("start"),yo=vo("end");function vo(e){return function(t){var r=t&&t.position&&t.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}const bo={}.hasOwnProperty;function Eo(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");var r,n,i,o;return r=e,i=function(e){const r=wo(e.identifier);r&&!bo.call(t,r)&&(t[r]=e)},"function"==typeof(n="definition")&&"function"!=typeof i&&(o=i,i=n,n=null),(0,to.S4)(r,n,(function(e,t){var r=t[t.length-1];return i(e,r?r.children.indexOf(e):null,r)}),o),function(e){const r=wo(e);return r&&bo.call(t,r)?t[r]:null}}function wo(e){return String(e||"").toUpperCase()}const xo={}.hasOwnProperty;function So(e,t){const r=t.data||{};return"value"in t&&!(xo.call(r,"hName")||xo.call(r,"hProperties")||xo.call(r,"hChildren"))?e.augment(t,mo("text",t.value)):e(t,"div",Do(e,t))}function ko(e,t,r){const n=t&&t.type;let i;if(!n)throw new Error("Expected node, got `"+t+"`");return i=xo.call(e.handlers,n)?e.handlers[n]:e.passThrough&&e.passThrough.includes(n)?Ao:e.unknownHandler,("function"==typeof i?i:So)(e,t,r)}function Ao(e,t){return"children"in t?{...t,children:Do(e,t)}:t}function Do(e,t){const r=[];if("children"in t){const n=t.children;let i=-1;for(;++i<n.length;){const o=ko(e,n[i],t);if(o){if(i&&"break"===n[i-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(o)?r.push(...o):r.push(o)}}}return r}var Fo=a(488);const Co={'"':"quot","&":"amp","<":"lt",">":"gt"};function Po(e,t){const r=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+Co[e]+";"}))}(function(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const o=e.charCodeAt(r);let a="";if(37===o&&(0,Fo.asciiAlphanumeric)(e.charCodeAt(r+1))&&(0,Fo.asciiAlphanumeric)(e.charCodeAt(r+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(r+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+i+1,a=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}(e||""));if(!t)return r;const n=r.indexOf(":"),i=r.indexOf("?"),o=r.indexOf("#"),a=r.indexOf("/");return n<0||a>-1&&n>a||i>-1&&n>i||o>-1&&n>o||t.test(r.slice(0,n))?r:""}function Oo(e,t){const r=[];let n=-1;for(t&&r.push(mo("text","\n"));++n<e.length;)n&&r.push(mo("text","\n")),r.push(e[n]);return t&&e.length>0&&r.push(mo("text","\n")),r}function To(e,t){const r=String(t.identifier),n=Po(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let o;-1===i?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,o=e.footnoteOrder.length):(e.footnoteCounts[r]++,o=i+1);const a=e.footnoteCounts[r];return e(t,"sup",[e(t.position,"a",{href:"#"+e.clobberPrefix+"fn-"+n,id:e.clobberPrefix+"fnref-"+n+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[mo("text",String(o))])])}var jo=a(4651);function _o(e,t){const r=t.referenceType;let n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return mo("text","!["+t.alt+n);const i=Do(e,t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift(mo("text","["));const a=i[i.length-1];return a&&"text"===a.type?a.value+=n:i.push(mo("text",n)),i}function Io(e){const t=e.spread;return null==t?e.children.length>1:t}const Ro={blockquote:function(e,t){return e(t,"blockquote",Oo(Do(e,t),!0))},break:function(e,t){return[e(t,"br"),mo("text","\n")]},code:function(e,t){const r=t.value?t.value+"\n":"",n=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),i={};n&&(i.className=["language-"+n]);const o=e(t,"code",i,[mo("text",r)]);return t.meta&&(o.data={meta:t.meta}),e(t.position,"pre",[o])},delete:function(e,t){return e(t,"del",Do(e,t))},emphasis:function(e,t){return e(t,"em",Do(e,t))},footnoteReference:To,footnote:function(e,t){const r=e.footnoteById;let n=1;for(;n in r;)n++;const i=String(n);return r[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},To(e,{type:"footnoteReference",identifier:i,position:t.position})},heading:function(e,t){return e(t,"h"+t.depth,Do(e,t))},html:function(e,t){return e.dangerous?e.augment(t,mo("raw",t.value)):null},imageReference:function(e,t){const r=e.definition(t.identifier);if(!r)return _o(e,t);const n={src:jo(r.url||""),alt:t.alt};return null!==r.title&&void 0!==r.title&&(n.title=r.title),e(t,"img",n)},image:function(e,t){const r={src:jo(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(t,"img",r)},inlineCode:function(e,t){return e(t,"code",[mo("text",t.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,t){const r=e.definition(t.identifier);if(!r)return _o(e,t);const n={href:jo(r.url||"")};return null!==r.title&&void 0!==r.title&&(n.title=r.title),e(t,"a",n,Do(e,t))},link:function(e,t){const r={href:jo(t.url)};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(t,"a",r,Do(e,t))},listItem:function(e,t,r){const n=Do(e,t),i=r?function(e){let t=e.spread;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Io(r[n]);return Boolean(t)}(r):Io(t),o={},a=[];if("boolean"==typeof t.checked){let r;n[0]&&"element"===n[0].type&&"p"===n[0].tagName?r=n[0]:(r=e(null,"p",[]),n.unshift(r)),r.children.length>0&&r.children.unshift(mo("text"," ")),r.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),o.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const e=n[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push(mo("text","\n")),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}const u=n[n.length-1];return!u||!i&&"tagName"in u&&"p"===u.tagName||a.push(mo("text","\n")),e(t,"li",o,a)},list:function(e,t){const r={},n=t.ordered?"ol":"ul",i=Do(e,t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++o<i.length;){const e=i[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}return e(t,n,r,Oo(i,!0))},paragraph:function(e,t){return e(t,"p",Do(e,t))},root:function(e,t){return e.augment(t,mo("root",Oo(Do(e,t))))},strong:function(e,t){return e(t,"strong",Do(e,t))},table:function(e,t){const r=t.children;let n=-1;const i=t.align||[],o=[];for(;++n<r.length;){const a=r[n].children,s=0===n?"th":"td";let u=t.align?i.length:a.length;const c=[];for(;u--;){const t=a[u];c[u]=e(t,s,{align:i[u]},t?Do(e,t):[])}o[n]=e(r[n],"tr",Oo(c,!0))}return e(t,"table",Oo([e(o[0].position,"thead",Oo([o[0]],!0))].concat(o[1]?e({start:go(o[1]),end:yo(o[o.length-1])},"tbody",Oo(o.slice(1),!0)):[]),!0))},text:function(e,t){return e.augment(t,mo("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))},thematicBreak:function(e,t){return e(t,"hr")},toml:Lo,yaml:Lo,definition:Lo,footnoteDefinition:Lo};function Lo(){return null}const No={}.hasOwnProperty;function Mo(e,t){const r=function(e,t){const r=t||{},n=r.allowDangerousHtml||!1,i={};return a.dangerous=n,a.clobberPrefix=void 0===r.clobberPrefix||null===r.clobberPrefix?"user-content-":r.clobberPrefix,a.footnoteLabel=r.footnoteLabel||"Footnotes",a.footnoteBackLabel=r.footnoteBackLabel||"Back to content",a.definition=Eo(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.augment=o,a.handlers={...Ro,...r.handlers},a.unknownHandler=r.unknownHandler,a.passThrough=r.passThrough,(0,fo.visit)(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();No.call(i,t)||(i[t]=e)})),a;function o(e,t){if(e&&"data"in e&&e.data){const r=e.data;r.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=r.hName),"element"===t.type&&r.hProperties&&(t.properties={...t.properties,...r.hProperties}),"children"in t&&t.children&&r.hChildren&&(t.children=r.hChildren)}if(e){const n="type"in e?e:{position:e};(r=n)&&r.position&&r.position.start&&r.position.start.line&&r.position.start.column&&r.position.end&&r.position.end.line&&r.position.end.column&&(t.position={start:go(n),end:yo(n)})}var r;return t}function a(e,t,r,n){return Array.isArray(r)&&(n=r,r={}),o(e,{type:"element",tagName:t,properties:r||{},children:n||[]})}}(e,t),n=ko(r,e,null),i=function(e){let t=-1;const r=[];for(;++t<e.footnoteOrder.length;){const n=e.footnoteById[e.footnoteOrder[t].toUpperCase()];if(!n)continue;const i=Do(e,n),o=String(n.identifier),a=Po(o.toLowerCase());let s=0;const u=[];for(;++s<=e.footnoteCounts[o];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(t)}const c=i[i.length-1];if(c&&"element"===c.type&&"p"===c.tagName){const e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...u)}else i.push(...u);const l={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:Oo(i,!0)};n.position&&(l.position=n.position),r.push(l)}return 0===r.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[mo("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:Oo(r,!0)},{type:"text",value:"\n"}]}}(r);return i&&n.children.push(mo("text","\n"),i),Array.isArray(n)?{type:"root",children:n}:n}var Bo=a(4799),zo="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Uo(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent&&e.attachEvent("on".concat(t),(function(){r(window.event)}))}function $o(e,t){for(var r=t.slice(0,t.length-1),n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function qo(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),r=t.lastIndexOf("");r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}for(var Vo={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":zo?173:189,"=":zo?61:187,";":zo?59:186,"'":222,"[":219,"]":221,"\\":220},Ho={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Go={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Wo={16:!1,18:!1,17:!1,91:!1},Qo={},Ko=1;Ko<20;Ko++)Vo["f".concat(Ko)]=111+Ko;var Yo=[],Xo="all",Zo=[],Jo=function(e){return Vo[e.toLowerCase()]||Ho[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function ea(e){Xo=e||"all"}function ta(){return Xo||"all"}var ra=function(e){var t=e.key,r=e.scope,n=e.method,i=e.splitKey,o=void 0===i?"+":i;qo(t).forEach((function(e){var t=e.split(o),i=t.length,a=t[i-1],s="*"===a?"*":Jo(a);if(Qo[s]){r||(r=ta());var u=i>1?$o(Ho,t):[];Qo[s]=Qo[s].map((function(e){return(!n||e.method===n)&&e.scope===r&&function(e,t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,i=!0,o=0;o<r.length;o++)-1===n.indexOf(r[o])&&(i=!1);return i}(e.mods,u)?{}:e}))}}))};function na(e,t,r){var n;if(t.scope===r||"all"===t.scope){for(var i in n=t.mods.length>0,Wo)Object.prototype.hasOwnProperty.call(Wo,i)&&(!Wo[i]&&t.mods.indexOf(+i)>-1||Wo[i]&&-1===t.mods.indexOf(+i))&&(n=!1);(0!==t.mods.length||Wo[16]||Wo[18]||Wo[17]||Wo[91])&&!n&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function ia(e){var t=Qo["*"],r=e.keyCode||e.which||e.charCode;if(oa.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===Yo.indexOf(r)&&229!==r&&Yo.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var r=Go[t];e[t]&&-1===Yo.indexOf(r)?Yo.push(r):!e[t]&&Yo.indexOf(r)>-1?Yo.splice(Yo.indexOf(r),1):"metaKey"===t&&e[t]&&3===Yo.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Yo=Yo.slice(Yo.indexOf(r))))})),r in Wo){for(var n in Wo[r]=!0,Ho)Ho[n]===r&&(oa[n]=!0);if(!t)return}for(var i in Wo)Object.prototype.hasOwnProperty.call(Wo,i)&&(Wo[i]=e[Go[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Yo.indexOf(17)&&Yo.push(17),-1===Yo.indexOf(18)&&Yo.push(18),Wo[17]=!0,Wo[18]=!0);var o=ta();if(t)for(var a=0;a<t.length;a++)t[a].scope===o&&("keydown"===e.type&&t[a].keydown||"keyup"===e.type&&t[a].keyup)&&na(e,t[a],o);if(r in Qo)for(var s=0;s<Qo[r].length;s++)if(("keydown"===e.type&&Qo[r][s].keydown||"keyup"===e.type&&Qo[r][s].keyup)&&Qo[r][s].key){for(var u=Qo[r][s],c=u.splitKey,l=u.key.split(c),f=[],p=0;p<l.length;p++)f.push(Jo(l[p]));f.sort().join("")===Yo.sort().join("")&&na(e,u,o)}}}function oa(e,t,r){Yo=[];var n=qo(e),i=[],o="all",a=document,s=0,u=!1,c=!0,l="+";for(void 0===r&&"function"==typeof t&&(r=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(o=t.scope),t.element&&(a=t.element),t.keyup&&(u=t.keyup),void 0!==t.keydown&&(c=t.keydown),"string"==typeof t.splitKey&&(l=t.splitKey)),"string"==typeof t&&(o=t);s<n.length;s++)i=[],(e=n[s].split(l)).length>1&&(i=$o(Ho,e)),(e="*"===(e=e[e.length-1])?"*":Jo(e))in Qo||(Qo[e]=[]),Qo[e].push({keyup:u,keydown:c,scope:o,mods:i,shortcut:n[s],method:r,key:n[s],splitKey:l});void 0!==a&&!function(e){return Zo.indexOf(e)>-1}(a)&&window&&(Zo.push(a),Uo(a,"keydown",(function(e){ia(e)})),Uo(window,"focus",(function(){Yo=[]})),Uo(a,"keyup",(function(e){ia(e),function(e){var t=e.keyCode||e.which||e.charCode,r=Yo.indexOf(t);if(r>=0&&Yo.splice(r,1),e.key&&"meta"===e.key.toLowerCase()&&Yo.splice(0,Yo.length),93!==t&&224!==t||(t=91),t in Wo)for(var n in Wo[t]=!1,Ho)Ho[n]===t&&(oa[n]=!1)}(e)})))}var aa={setScope:ea,getScope:ta,deleteScope:function(e,t){var r,n;for(var i in e||(e=ta()),Qo)if(Object.prototype.hasOwnProperty.call(Qo,i))for(r=Qo[i],n=0;n<r.length;)r[n].scope===e?r.splice(n,1):n++;ta()===e&&ea(t||"all")},getPressedKeyCodes:function(){return Yo.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=Jo(e)),-1!==Yo.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,r=t.tagName,n=!0;return!t.isContentEditable&&("INPUT"!==r&&"TEXTAREA"!==r&&"SELECT"!==r||t.readOnly)||(n=!1),n},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&ra(e)}));else if("object"==typeof e)e.key&&ra(e);else if("string"==typeof e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=r[0],o=r[1];"function"==typeof i&&(o=i,i=""),ra({key:e,scope:i,method:o,splitKey:"+"})}}else Object.keys(Qo).forEach((function(e){return delete Qo[e]}))}};for(var sa in aa)Object.prototype.hasOwnProperty.call(aa,sa)&&(oa[sa]=aa[sa]);if("undefined"!=typeof window){var ua=window.hotkeys;oa.noConflict=function(e){return e&&window.hotkeys===oa&&(window.hotkeys=ua),oa},window.hotkeys=oa}const ca=oa;ca.filter=function(){return!0};var la=function(e,t){var r=e.target,n=r&&r.tagName;return Boolean(n&&t&&t.includes(n))};function fa(e,t,r,n){r instanceof Array&&(n=r,r=void 0);var o=r||{},a=o.enableOnTags,s=o.filter,u=o.keyup,c=o.keydown,l=o.filterPreventDefault,f=void 0===l||l,p=o.enabled,h=void 0===p||p,d=o.enableOnContentEditable,m=void 0!==d&&d,g=(0,i.useRef)(null),y=(0,i.useCallback)((function(e,r){var n;return s&&!s(e)?!f:!!(la(e,["INPUT","TEXTAREA","SELECT"])&&!la(e,a)||null!=(n=e.target)&&n.isContentEditable&&!m)||(null===g.current||document.activeElement===g.current)&&(t(e,r),!0)}),n?[g,a,s].concat(n):[g,a,s]);return(0,i.useEffect)((function(){if(h)return u&&!0!==c&&(r.keydown=!1),ca(e,r||{},y),function(){return ca.unbind(e,y)};ca.unbind(e,y)}),[y,e,h]),g}ca.isPressed;function pa(){return pa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pa.apply(this,arguments)}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var ha="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect,da={status:"not-requested",loading:!1,result:void 0,error:void 0},ma={status:"loading",loading:!0,result:void 0,error:void 0},ga=function(){},ya={initialState:function(e){return e&&e.executeOnMount?ma:da},executeOnMount:!0,executeOnUpdate:!0,setLoading:function(e){return ma},setResult:function(e,t){return{status:"success",loading:!1,result:e,error:void 0}},setError:function(e,t){return{status:"error",loading:!1,result:void 0,error:e}},onSuccess:ga,onError:ga},va=function(e,t,r){var n,o=function(e){return pa({},ya,{},e)}(r),a=(0,i.useState)(null),s=a[0],u=a[1],c=function(e){var t=(0,i.useState)((function(){return e.initialState(e)})),r=t[0],n=t[1],o=(0,i.useCallback)((function(){return n(e.initialState(e))}),[n,e]),a=(0,i.useCallback)((function(){return n(e.setLoading(r))}),[r,n]),s=(0,i.useCallback)((function(t){return n(e.setResult(t,r))}),[r,n]),u=(0,i.useCallback)((function(t){return n(e.setError(t,r))}),[r,n]),c=n,l=(0,i.useCallback)((function(e){return c(pa({},r,{},e))}),[r,c]);return{value:r,set:c,merge:l,reset:o,setLoading:a,setResult:s,setError:u}}(o),l=(n=(0,i.useRef)(!1),(0,i.useEffect)((function(){return n.current=!0,function(){n.current=!1}}),[]),function(){return n.current}),f=function(){var e=(0,i.useRef)(null);return{set:function(t){return e.current=t},get:function(){return e.current},is:function(t){return e.current===t}}}(),p=function(e){return l()&&f.is(e)},h=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=e.apply(void 0,r);if(u(r),i instanceof Promise)return f.set(i),c.setLoading(),i.then((function(e){p(i)&&c.setResult(e),o.onSuccess(e,{isCurrent:function(){return f.is(i)}})}),(function(e){p(i)&&c.setError(e),o.onError(e,{isCurrent:function(){return f.is(i)}})})),i;var a=i;return c.setResult(a),Promise.resolve(a)},d=!l();return(0,i.useEffect)((function(){d?o.executeOnMount&&h.apply(void 0,t):o.executeOnUpdate&&h.apply(void 0,t)}),t),pa({},c.value,{set:c.set,merge:c.merge,reset:c.reset,execute:h,currentPromise:f.get(),currentParams:s})};function ba(e,t,r){return va(e,t,r)}var Ea=function(e,t){return va(e,[],pa({},t,{executeOnMount:!1,executeOnUpdate:!1}))},wa=function(e){var t=e.value,r=e.fetchMore,n=e.merge,o=e.isEnd,a=function(e){var t=(0,i.useRef)(e);return ha((function(){t.current=e})),function(){return t.current}}(t),s=(0,i.useState)(!1),u=s[0],c=s[1],l=(0,i.useRef)(0),f=Ea((function(){try{var e=a();if("success"!==e.status)throw new Error("Can't fetch more if the original fetch is not a success");if("loading"===f.status)throw new Error("Can't fetch more, because we are already fetching more!");l.current=l.current+1;var i=l.current;return Promise.resolve(r(e.result)).then((function(r){var s=e.status===a().status&&e.result===a().result,u=l.current===i;return s&&u&&(t.merge({result:n(t.result,r)}),o(r)&&c(!0)),r}))}catch(e){return Promise.reject(e)}})),p="success"!==t.status;return(0,i.useEffect)((function(){p&&(f.reset(),c(!1))}),[p]),{canFetchMore:"success"===t.status&&"loading"!==f.status,loading:f.loading,status:f.status,fetchMore:f.execute,isEnd:u}};window.TopWritePlugins={};class xa extends HTMLElement{connectedCallback(){this.addEventListener("click",(e=>{if(e.preventDefault(),!this.isContentEditable){const e=this.attributes.getNamedItem("src");let t=null==e?void 0:e.value;if(t){let e=document.createElement("a");e.download=this.textContent||"",e.style.display="none",e.target="_blank",e.href=r.resolve(location.href,t),document.body.appendChild(e),e.click(),document.body.removeChild(e)}}}))}}function Sa(e){let{component:t,defaultComponent:r=i.Fragment,props:o,children:a=null}=e;return null===t?null:(0,n.jsx)(i.Suspense,{fallback:null,children:(0,n.jsx)(t,{props:o,Component:r,children:a})})}customElements.define("t-attachment",xa);var ka=(e,t)=>e.filter((e=>{let{descriptor:r}=e;return t===r.role})).sort(((e,t)=>{let{descriptor:{priority:r=0}}=e,{descriptor:{priority:n=0}}=t;return r-n})).map((e=>e.Component));function Aa(e){let{props:t,role:r,component:o}=e;const a=o?(0,i.createElement)(o,t):null,s=Ge("components");return(0,i.useMemo)((()=>ka(s,r)),[s,r]).reduce(((e,r)=>(0,n.jsx)(Sa,{defaultComponent:o,component:r,props:t,children:e})),a)}function Da(e){let{props:t,component:r,role:o}=e;const a=Ge("components"),s=(0,i.useMemo)((()=>ka(a,o)),[a,o]);return(0,n.jsx)(n.Fragment,{children:s.map(((e,i)=>(0,n.jsx)(Sa,{defaultComponent:r,component:e,props:t},i)))})}async function Fa(e){let t="topwrite-plugin-".concat(e.name);if(!Qe().isDefined(t)){let r="".concat(e.host,"/").concat(e.main);try{await Qe()(r,t,{returnPromise:!0})}catch{console.warn("插件".concat(e.name,"加载失败"))}}}function Ca(e,t){let r;return r=t instanceof Array?{Component:t[0],descriptor:{role:e,...t[1]}}:{Component:t,descriptor:{role:e}},r}function Pa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage";if("undefined"==typeof window)throw new Error("Browser storage is not available on NodeJS / TopWrite SSR process");if("none"===e)return null;try{return window[e]}catch(e){return null}}const Oa={get:()=>null,set:()=>{},del:()=>{}},Ta=(e,t)=>{const r=Pa(null==t?void 0:t.persistence);return null===r?Oa:{get:()=>r.getItem(e),set:t=>r.setItem(e,t),del:()=>r.removeItem(e)}};function ja(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage";const t=Pa(e);if(!t)return[];const r=[];for(let e=0;e<t.length;e+=1){const n=t.key(e);null!==n&&r.push(n)}return r}function _a(){const e=Ge("book");if(!e)throw new Error("book object not initialized");return e}function Ia(){const{config:e}=_a();return e.getValue("themeConfig")}const Ra="light",La="dark";function Na(e){document.documentElement.setAttribute("data-theme",e)}const Ma=(0,i.createContext)(void 0);function Ba(e){let{children:t,context:r}=e;const{isDarkTheme:o,setLightTheme:a,setDarkTheme:s}=(e=>{const t=_a(),r=(0,i.useMemo)((()=>Ta("".concat(e,".").concat(t.id,".theme"))),[t.id,e]),{defaultMode:n}=Ia(),[o,a]=(0,i.useState)((()=>{const e=(e=>e===La?La:Ra)(r.get()||n);return Na(e),e}));(0,i.useEffect)((()=>{Na(o)}),[o]);const s=(0,i.useCallback)((()=>{a(Ra),r.set(Ra)}),[r]),u=(0,i.useCallback)((()=>{a(La),r.set(La)}),[r]);return{isDarkTheme:o===La,setLightTheme:s,setDarkTheme:u}})(r);return(0,n.jsx)(Ma.Provider,{value:{isDarkTheme:o,setLightTheme:a,setDarkTheme:s},children:t})}function za(){const e=(0,i.useContext)(Ma);return null==e?{isDarkTheme:!1,setLightTheme:be.noop,setDarkTheme:be.noop}:e}var Ua;function $a(){const{primaryColor:e}=Ia();return(0,n.jsx)(qa,{primaryColor:e})}const qa=Yi(Ua||(Ua=bn(["\n :root {\n --ttw-primary-color: ",";\n }\n\n //附件\n t-attachment {\n color: var(--ttw-primary-color);\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n overflow: hidden;\n padding: 0 4px;\n vertical-align: bottom;\n margin: 0 1px;\n\n &:before {\n content: '';\n width: 18px;\n height: 18px;\n background-color: var(--ttw-primary-color);\n mask: url(\"",'") no-repeat center;\n margin-right: 4px;\n }\n\n &:after {\n content: "(" attr(size) ")";\n margin-left: 4px;\n display: none;\n }\n\n &[size]:after {\n display: inline;\n }\n\n &:hover {\n background: rgba(0, 0, 0, .1);\n }\n\n &:read-write {\n cursor: text;\n }\n }\n'])),(e=>e.primaryColor),"data:image/svg+xml,%3csvg t='1642406480574' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='2254' width='16' height='16'%3e %3cpath d='M874.666667 467.2c-10.666667-10.666667-29.866667-12.8-42.666667 0l-343.466667 341.333333c-74.666667 74.666667-198.4 74.666667-275.2 0-36.266667-36.266667-57.6-85.333333-57.6-136.533333s19.2-100.266667 57.6-136.533333L556.8 192c46.933333-46.933333 121.6-46.933333 168.533333 0 23.466667 23.466667 34.133333 53.333333 34.133334 83.2 0 32-12.8 61.866667-34.133334 83.2L384 704c-17.066667 17.066667-44.8 17.066667-64 0-8.533333-8.533333-12.8-19.2-12.8-32s4.266667-23.466667 12.8-32l317.866667-315.733333c10.666667-10.666667 12.8-29.866667 0-42.666667-10.666667-12.8-29.866667-12.8-42.666667 0L277.333333 597.333333c-19.2 19.2-29.866667 46.933333-29.866666 74.666667S258.133333 725.333333 277.333333 746.666667c40.533333 40.533333 106.666667 40.533333 147.2 0L768 403.2c34.133333-34.133333 53.333333-78.933333 53.333333-125.866667s-19.2-93.866667-53.333333-125.866666a178.986667 178.986667 0 0 0-253.866667 0l-341.333333 341.333333c-46.933333 46.933333-74.666667 110.933333-74.666667 179.2s25.6 132.266667 74.666667 179.2c49.066667 49.066667 115.2 74.666667 179.2 74.666667s130.133333-25.6 179.2-74.666667l343.466667-341.333333c10.666667-12.8 10.666667-32 0-42.666667z' p-id='2255'%3e%3c/path%3e%3c/svg%3e"),Va=new class extends Be{constructor(){super(...arguments),Ye(this,"initialState",[])}*register(e){yield this.setState((t=>t.push(e)))}},Ha=new class extends Be{};var Ga=Object.freeze({__proto__:null,components:Va,options:Ha});class Wa{constructor(e,t,r){Ye(this,"name",void 0),Ye(this,"book",void 0),Ye(this,"models",{...Ga}),Ye(this,"components",[]),Ye(this,"activates",[]),Ye(this,"plugins",[]),Ye(this,"initialState",void 0),this.name=e,this.book=t,this.initialState=r}registerComponents(e,t){for(let[r,n]of Object.entries(e))n&&("plugin:setting"===r&&t&&(r="plugin:setting:".concat(t)),this.components.push(Ca(r,n)))}registerModels(e,t){for(const[r,n]of Object.entries(e))t?this.models["@".concat(t,"@").concat(r)]=n:this.models[r]=n}async registerPlugins(e){this.plugins=e;for(const t of e)try{this.registerComponents(t.components,t.name),this.registerModels(t.models,t.name),t.activate&&this.activates.push(t.activate),t.register&&await t.register(this.name,this.book)}catch(e){console.log(e)}}async createApp(e){const t=await this.createIntl(e),r=qe(this.models,{book:this.book,components:this.components,...this.initialState}),i=()=>{for(const e of this.activates)e(this.name);return null};return e=>{let{children:o}=e;return(0,n.jsx)(Ze,{value:t,children:(0,n.jsx)(He,{store:r,children:(0,n.jsxs)(Ba,{context:this.name,children:[(0,n.jsx)(i,{}),(0,n.jsx)($a,{}),o]})})})}}async createIntl(e){const t=navigator.language,r={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},n=await this.plugins.reduce((async(e,r)=>{const n=await e;return r.localize?Object.assign({},n,await r.localize(t)):n}),e(t));return yn({locale:t,messages:n,defaultLocale:"en"},r)}}async function Qa(e,r,n,i,o,a){const s=await async function(e,r){const n=Object.entries(window.TopWritePlugins).filter((e=>{let[,t]=e;return!!t.meta})).map((e=>{let[,t]=e;return t.meta}));if(r){const i=(0,t.NC)(r);try{const r=Object.keys(window.TopWritePlugins);let o=await i.getInstalled(e);const a=Object.entries(window.TopWritePlugins).some((e=>{let[,t]=e;return t.meta&&"theme"===t.meta.type}));o=o.filter((e=>{var t;return!(null!==(t=window.TopWritePlugins[e.name])&&void 0!==t&&t.meta)}));const s=sessionStorage.getItem("PLUGIN_DEV"),u=Ke.parse(window.location.search);if("dev"in u||s){const e=u.dev||s||8080;try{const r=(await t.WY.get("http://localhost:".concat(e,"/meta"),{raxConfig:{retry:0}})).data;o=o.filter((e=>e.name!==r.name&&!("theme"===r.type&&"theme"===e.type))),o.unshift(r),sessionStorage.setItem("PLUGIN_DEV",String(e))}catch(e){console.warn(e),sessionStorage.removeItem("PLUGIN_DEV")}}const c=[];for(let e of o)e.disabled||r.includes(e.name)||a&&"theme"===e.type||c.push(Fa(e));await Promise.all(c),n.push(...o)}catch{}}return window.TopWritePluginsMeta=n,Object.values(window.TopWritePlugins||{})}(r,a),u=new Wa(e,r,i);return u.registerModels(n),await u.registerPlugins(s),await u.createApp(o)}function Ka(e){return function(e){const{actions:t}=(0,i.useContext)(Ve);return e?t[e]:t}(e)}function Ya(e){return Ge(e)}function Xa(e){return[Ya(e),Ka(e)]}function Za(e,t,r){const n="function"==typeof t;n||(r=t),(0,i.useEffect)((()=>{let r;const i=e();return Promise.resolve(i).then((e=>{r=e})),()=>{n&&t(r)}}),r)}function Ja(e){const t=(0,i.useRef)(null),[r,n]=(0,i.useState)(e);return(0,i.useEffect)((()=>{t.current&&(t.current(),t.current=null)}),[r]),[r,(e,r)=>{t.current="function"==typeof r?r:null,n(e)}]}function es(){const e=document.currentScript;if(!e)throw new Error("Automatic publicPath is not supported in this browser");return e.src.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}class ts{constructor(e){let{name:t,meta:r,models:n={},components:i={},activate:o,register:a,localize:s,config:u}=e;Ye(this,"name",void 0),Ye(this,"config",void 0),Ye(this,"localize",void 0),Ye(this,"models",void 0),Ye(this,"components",void 0),Ye(this,"activate",void 0),Ye(this,"register",void 0),Ye(this,"meta",void 0),this.name=t,this.meta=r,this.models=n,this.components=i,this.activate=o,this.register=a,this.localize=s,this.config=u}}const rs=(0,ro.convert)("root"),ns=(0,ro.convert)("element"),is=(0,ro.convert)("text");function os(e){return e.filter((e=>!(is(e)&&"\n"===e.value)))}function as(e,t,r){const n=t.properties,i=t.tagName,o={...n};r.prefix&&(r.key++,o.key=r.prefix+r.key);const a=[],s=os(t.children),u=s?s.length:0;let c=-1;for(;++c<u;){const t=s[c];ns(t)?a.push(as(e,t,r)):is(t)&&a.push(t.value)}return e.call(t,i,o,a.length>0?a:void 0)}function ss(e,t){let{extensions:r=[],creator:n=o().createElement}=t;const i={allowDangerousHtml:!1,handlers:{...r.reduce(((e,t)=>Object.assign(e,t)),{}),textDirective:(e,t)=>e({},"textDirective",{name:t.name,attributes:t.attributes},Do(e,t)),leafDirective:(e,t)=>e({},"leafDirective",t.attributes),containerDirective:(e,t)=>e({},"containerDirective",t.attributes,Do(e,t)),heading(e,t){const r=e(t,"heading",Do(e,t));return r.properties={...r.properties,depth:t.depth},r}},unknownHandler:()=>null},a=Mo(e,i);if(rs(a))return os(a.children).map(((e,t)=>ns(e)?as(n,e,{key:0,prefix:"h-".concat(t,"-")}):is(e)?e.value:void 0));if(!ns(a))throw new Error("Expected root or element, not `"+(a&&a.type||a)+"`");return as(n,a,{key:0,prefix:"h-"})}const us=e=>{let{value:t}=e;return(0,n.jsx)("pre",{children:(0,n.jsx)("code",{children:t})})},cs=e=>{let{value:t}=e;return(0,n.jsx)("code",{children:t})},ls=["video","audio","attachment"];function fs(e){let{depth:t=5,...r}=e;return(0,i.createElement)("h".concat(t),r)}const ps={"x-inline":function(e){const{name:t,value:r}=e;return(0,n.jsx)(Aa,{role:"inline:".concat(t),props:{value:r,type:"inline"},component:cs})},"x-block":function(e){const{name:t,value:r}=e;return(0,n.jsx)(Aa,{role:"block:".concat(t),props:{value:r,type:"block"},component:us})},textDirective:function(e){const{name:t,attributes:r,children:i,components:o={}}=e;if(!ls.includes(t))return null;let a=t;return customElements.get("t-".concat(t))&&(a="t-".concat(t)),(0,n.jsx)(Aa,{role:"html:".concat(t),props:{...r,children:i},component:o[t]||a})},heading:function(e){let{components:t={},...r}=e;return(0,n.jsx)(Aa,{role:"html:heading",props:r,component:t.heading||fs})}};var hs;const ds=e=>{let{tagName:t,components:r={},...o}=e;return ps[t]?(0,i.createElement)(ps[t],{...o,components:r}):Bo.includes(t)?(0,n.jsx)(Aa,{role:"html:".concat(t),props:o,component:r[t]||t}):(console.warn("unknown tagName: ".concat(t)),null)};function ms(e){let{as:r=i.Fragment,children:o,components:a={},aside:s=!0,header:u,footer:c,css:l,...f}=e;const p=(0,i.useMemo)((()=>(0,t.JH)().use(ho).freeze()),[]);return(0,i.useMemo)((()=>{try{const e=p.data("toHastExtensions"),t=p.runSync(p.parse(o));let h=null;if(s){const r=function(e,t){const r=t||{},n=r.heading?no(r.heading):null,i=oo(e,n,r);return{index:n?i.index:null,endIndex:n?i.endIndex:null,map:i.map.length>0?so(i.map,r):null}}(t).map;r&&(h=ss(r,{extensions:e}))}const d=ss(t,{extensions:e,creator:(e,t,r)=>(0,i.createElement)(ds,{...t,tagName:e,components:a},r)});return(0,i.createElement)(r,f,(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("article",{children:[u,(0,n.jsx)(gs,{css:l,children:d}),c]}),h&&(0,n.jsx)("aside",{children:h})]}))}catch(e){return console.log(e),null}}),[o,s,p,l])}const gs=Zi.section(hs||(hs=bn(["\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n line-height: 1.2;\n word-wrap: break-word;\n\n & > *:first-child {\n margin-top: 0 !important;\n }\n\n & > *:last-child {\n margin-bottom: 0 !important;\n }\n\n h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, table {\n margin: 1em 0;\n line-height: 1.2;\n padding: 0;\n\n &:last-child {\n margin-bottom: 0 !important;\n }\n\n &:first-child {\n margin-top: 0 !important;\n }\n }\n\n p {\n margin: 0;\n line-height: 2;\n }\n\n h1, h2, h3, h4, h5, h6 {\n font-weight: normal;\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n h1 {\n font-size: 2em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee;\n padding-bottom: .5em;\n }\n\n h2 {\n padding-bottom: .4em;\n font-size: 1.3em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee\n }\n\n h3 {\n font-size: 1.2em;\n line-height: 1.2;\n }\n\n h4 {\n font-size: 1.1em;\n line-height: 1.2;\n }\n\n h5 {\n font-size: 1em;\n line-height: 1.2;\n }\n\n hr {\n border: 0;\n border-bottom: 1px solid #eeeeee;\n margin-bottom: 0.5em;\n }\n\n ul {\n padding-left: 2em;\n\n ul {\n margin: 0;\n }\n\n &.task-list {\n list-style: none;\n\n li {\n position: relative;\n\n .icon.square {\n position: absolute;\n left: -1.75em;\n top: 1px;\n }\n }\n }\n }\n\n ol {\n padding-left: 2em;\n }\n\n li {\n line-height: 2;\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n code {\n display: inline-block;\n border-radius: 4px;\n padding: .2em .4em;\n background-color: #f7f7f7;\n word-break: break-all;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n white-space: pre;\n line-height: 1.3;\n margin: -.2em .4em;\n }\n\n pre {\n padding: 1.05em;\n overflow: auto;\n line-height: 1.45;\n background-color: #f7f7f7;\n border: 0;\n border-radius: 3px;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n }\n\n\n pre > code {\n display: inline;\n max-width: 100%;\n padding: 0;\n margin: 0;\n overflow: initial;\n line-height: inherit;\n background-color: rgba(0, 0, 0, 0);\n border: 0;\n tab-size: 4;\n }\n\n p {\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n table {\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n line-height: 1.8;\n border-spacing: 0;\n\n th {\n text-align: left;\n }\n\n th, td {\n border: 1px solid #e0e0e0;\n padding: 3px 12px;\n height: 34px;\n }\n\n tr:hover td {\n background-color: #f1f1f1;\n }\n }\n\n img {\n max-width: 100%;\n display: inline-block;\n padding: 3px;\n vertical-align: middle;\n }\n\n a {\n text-decoration: none;\n color: var(--ttw-primary-color);\n\n &:hover {\n text-decoration: underline;\n }\n }\n\n blockquote {\n padding: 5px 5px 5px 15px;\n color: #777777;\n border-left: 4px solid #dddddd;\n\n &.info {\n border-left-color: #5bc0de;\n color: #5bc0de;\n background-color: #f4f8fa;\n }\n\n &.warning {\n background-color: #fcf8f2;\n border-color: #f0ad4e;\n color: #f0ad4e;\n }\n\n &.danger {\n color: #d9534f;\n background-color: #fdf7f7;\n border-color: #d9534f;\n }\n\n &.success {\n background-color: #f3f8f3;\n border-color: #50af51;\n color: #50af51;\n }\n }\n\n video {\n width: 100%;\n }\n\n audio {\n width: 100%;\n }\n\n html[data-theme=dark] & {\n code {\n background-color: #333437;\n }\n\n pre {\n background-color: #333437;\n }\n\n h1, h2, hr {\n border-color: #404040;\n }\n\n th, td {\n border-color: #404040;\n }\n\n tr:hover td {\n background-color: #333437;\n }\n }\n\n ","\n"])),(e=>e.css));function ys(e){const t=(0,i.useRef)();return(0,i.useEffect)((()=>{t.current=e}),[e]),t.current}function vs(e){const t=(0,i.useRef)(e);(0,i.useEffect)((()=>(document.title=e,()=>{document.title=t.current})),[e])}function bs(e,t,r){const n=(0,i.useRef)(e),o=(0,i.useRef)((0,be.debounce)(e,t,r));return(0,i.useEffect)((()=>{n.current=e})),(0,i.useEffect)((()=>{o.current=(0,be.debounce)((function(){n.current(...arguments)}),t,r)}),[t,r]),o.current}function Es(){return Ge("options")}const ws=new EventTarget;function xs(){return ws}function Ss(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.document;"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/html"));const t=e.querySelector('script[type="application/payload+json"]');if(t)try{return JSON.parse(t.innerHTML)}catch{return{}}}var ks=Object.freeze({__proto__:null,encode:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return window.btoa(unescape(encodeURIComponent(e)))}catch(e){if(t)throw e;return""}},decode:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return decodeURIComponent(escape(window.atob(e)))}catch(e){if(t)throw e;return""}}});function As(){return"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)}const Ds="1.0.0";function Fs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cs(){return Cs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cs.apply(this,arguments)}t.$B.prototype[se]=!0;var Ps,Os=Ps||(Ps={});Os.Pop="POP",Os.Push="PUSH",Os.Replace="REPLACE";var Ts=function(e){return e};function js(e){e.preventDefault(),e.returnValue=""}function _s(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function Is(){return Math.random().toString(36).substr(2,8)}function Rs(e){var t=e.pathname,r=e.search;return(void 0===t?"/":t)+(void 0===r?"":r)+(void 0===(e=e.hash)?"":e)}function Ls(e){var t={};if(e){var r=e.indexOf("#");0<=r&&(t.hash=e.substr(r),e=e.substr(0,r)),0<=(r=e.indexOf("?"))&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}const Ns="undefined"!=typeof window&&window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)&&"file:"!==window.location.protocol;class Ms{constructor(){Fs(this,"history",void 0),this.history=Ns?function(e){function t(){var e=a.location,t=s.state||{};return[t.idx,Ts({pathname:e.pathname,search:e.search,hash:e.hash,state:t.usr||null,key:t.key||"default"})]}function r(e){return"string"==typeof e?e:Rs(e)}function n(e,t){return void 0===t&&(t=null),Ts(Cs({pathname:f.pathname,hash:"",search:""},"string"==typeof e?Ls(e):e,{state:t,key:Is()}))}function i(e){c=e,e=t(),l=e[0],f=e[1],p.call({action:c,location:f})}function o(e){s.go(e)}void 0===e&&(e={});var a=void 0===(e=e.window)?document.defaultView:e,s=a.history,u=null;a.addEventListener("popstate",(function(){if(u)h.call(u),u=null;else{var e=Ps.Pop,r=t(),n=r[0];if(r=r[1],h.length){if(null!=n){var a=l-n;a&&(u={action:e,location:r,retry:function(){o(-1*a)}},o(a))}}else i(e)}}));var c=Ps.Pop,l=(e=t())[0],f=e[1],p=_s(),h=_s();return null==l&&(l=0,s.replaceState(Cs({},s.state,{idx:l}),"")),{get action(){return c},get location(){return f},createHref:r,push:function e(t,o){var u=Ps.Push,c=n(t,o);if(!h.length||(h.call({action:u,location:c,retry:function(){e(t,o)}}),0)){var f=[{usr:c.state,key:c.key,idx:l+1},r(c)];c=f[0],f=f[1];try{s.pushState(c,"",f)}catch(e){a.location.assign(f)}i(u)}},replace:function e(t,o){var a=Ps.Replace,u=n(t,o);h.length&&(h.call({action:a,location:u,retry:function(){e(t,o)}}),1)||(u=[{usr:u.state,key:u.key,idx:l},r(u)],s.replaceState(u[0],"",u[1]),i(a))},go:o,back:function(){o(-1)},forward:function(){o(1)},listen:function(e){return p.push(e)},block:function(e){var t=h.push(e);return 1===h.length&&a.addEventListener("beforeunload",js),function(){t(),h.length||a.removeEventListener("beforeunload",js)}}}}():function(e){function t(e,t){return void 0===t&&(t=null),Ts(Cs({pathname:c.pathname,search:"",hash:""},"string"==typeof e?Ls(e):e,{state:t,key:Is()}))}function r(e,t,r){return!f.length||(f.call({action:e,location:t,retry:r}),!1)}function n(e,t){u=e,c=t,l.call({action:u,location:c})}function i(e){var t=Math.min(Math.max(s+e,0),a.length-1),o=Ps.Pop,u=a[t];r(o,u,(function(){i(e)}))&&(s=t,n(o,u))}void 0===e&&(e={});var o=e;e=o.initialEntries,o=o.initialIndex;var a=(void 0===e?["/"]:e).map((function(e){return Ts(Cs({pathname:"/",search:"",hash:"",state:null,key:Is()},"string"==typeof e?Ls(e):e))})),s=Math.min(Math.max(null==o?a.length-1:o,0),a.length-1),u=Ps.Pop,c=a[s],l=_s(),f=_s();return{get index(){return s},get action(){return u},get location(){return c},createHref:function(e){return"string"==typeof e?e:Rs(e)},push:function e(i,o){var u=Ps.Push,c=t(i,o);r(u,c,(function(){e(i,o)}))&&(s+=1,a.splice(s,a.length,c),n(u,c))},replace:function e(i,o){var u=Ps.Replace,c=t(i,o);r(u,c,(function(){e(i,o)}))&&(a[s]=c,n(u,c))},go:i,back:function(){i(-1)},forward:function(){i(1)},listen:function(e){return l.push(e)},block:function(e){return f.push(e)}}}({initialEntries:[window.location]})}get location(){const e=this.history.location;return{...e,toString:()=>Rs(e)}}listen(e){this.history.listen(e)}replace(e){return this.history.replace(e)}push(e){return this.history.push(e)}}let Bs;const zs=new class extends Be{};const Us=new class extends Be{constructor(){super(...arguments),Fs(this,"initialState",{loading:!1,request:t.WY.create(),config:{}})}subscription(e,t){let{fetch:r}=e,n=Bs.location;Bs.listen((async e=>{let{location:t}=e;n.pathname!==t.pathname&&(r(t.pathname),requestAnimationFrame((()=>{window.scrollTo(0,0)}))),n=t})),t.file||r(n.pathname)}async*fetch(e){yield this.setState((e=>{e.loading=!0}));const{request:r,config:n}=yield*this.getState("page");try{const i=decodeURI(e);let{data:o}=await r.get(i,n);"string"==typeof o&&(o=Ss(o));const{file:a,lfs:s}=o;yield this.setState((e=>{a&&(e.file=new t.$B(a)),e.lfs=s}))}catch(e){yield this.setState((t=>{t.error=e}))}finally{yield this.setState((e=>{e.loading=!1}))}}*intercept(e){const{request:t}=yield*this.getState("page");e(t.interceptors)}*updateConfig(e){yield this.setState((t=>{e(t.config)}))}};const $s=new class extends Be{constructor(){super(...arguments),Fs(this,"initialState",{status:"idle",results:[],query:""})}async*fetch(e){if(e=e.trim()){yield this.setState((t=>{t.query=e,t.status="loading"}));let{handler:t}=yield*this.getState("search");if(!t){const{summary:r}=yield*this.getState("book");t=()=>{const t=[];return r.getArticle((r=>{const n=r.getPath();return r.title.includes(e)&&n&&t.push({title:r.title,path:n}),!1})),t}}try{const r=await t(e);yield this.setState((e=>{e.results=r,e.status="idle"}))}catch{yield this.setState((e=>{e.results=[],e.status="error"}))}}else yield this.setState((t=>{t.query=e,t.status="idle",t.results=[]}))}*setHandler(e){yield this.setState((t=>{t.handler=e}))}};function qs(){const e=vn(),{config:t}=_a();return t.getValue("title",e.formatMessage({id:"n24ytq",defaultMessage:[{type:0,value:"未命名文档"}]}))}var Vs=a(3615),Hs=a.n(Vs),Gs=a(4335),Ws=a.n(Gs),Qs=a(3996),Ks=a.n(Qs);function Ys(){return(Ys=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Xs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zs(e,t)}function Zs(e,t){return(Zs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Js(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}var eu={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},tu={rel:["amphtml","canonical","alternate"]},ru={type:["application/ld+json"]},nu={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},iu=Object.keys(eu).map((function(e){return eu[e]})),ou={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},au=Object.keys(ou).reduce((function(e,t){return e[ou[t]]=t,e}),{}),su=function(e,t){for(var r=e.length-1;r>=0;r-=1){var n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},uu=function(e){var t=su(e,eu.TITLE),r=su(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,(function(){return t}));var n=su(e,"defaultTitle");return t||n||void 0},cu=function(e){return su(e,"onChangeClientState")||function(){}},lu=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Ys({},e,t)}),{})},fu=function(e,t){return t.filter((function(e){return void 0!==e[eu.BASE]})).map((function(e){return e[eu.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),i=0;i<n.length;i+=1){var o=n[i].toLowerCase();if(-1!==e.indexOf(o)&&r[o])return t.concat(r)}return t}),[])},pu=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var i={};r.filter((function(e){for(var r,o=Object.keys(e),a=0;a<o.length;a+=1){var s=o[a],u=s.toLowerCase();-1===t.indexOf(u)||"rel"===r&&"canonical"===e[r].toLowerCase()||"rel"===u&&"stylesheet"===e[u].toLowerCase()||(r=u),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(r=s)}if(!r||!e[r])return!1;var c=e[r].toLowerCase();return n[r]||(n[r]={}),i[r]||(i[r]={}),!n[r][c]&&(i[r][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a+=1){var s=o[a],u=Ys({},n[s],i[s]);n[s]=u}return e}),[]).reverse()},hu=function(e,t){if(Array.isArray(e)&&e.length)for(var r=0;r<e.length;r+=1)if(e[r][t])return!0;return!1},du=function(e){return Array.isArray(e)?e.join(""):e},mu=function(e,t){return Array.isArray(e)?e.reduce((function(e,r){return function(e,t){for(var r=Object.keys(e),n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1}(r,t)?e.priority.push(r):e.default.push(r),e}),{priority:[],default:[]}):{default:e}},gu=[eu.NOSCRIPT,eu.SCRIPT,eu.STYLE],yu=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},vu=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},bu=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,r){return t[ou[r]||r]=e[r],t}),t)},Eu=function(e,t){return t.map((function(t,r){var n,i=((n={key:r})["data-rh"]=!0,n);return Object.keys(t).forEach((function(e){var r=ou[e]||e;"innerHTML"===r||"cssText"===r?i.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:i[r]=t[e]})),o().createElement(e,i)}))},wu=function(e,t,r){switch(e){case eu.TITLE:return{toComponent:function(){return r=t.titleAttributes,(n={key:e=t.title})["data-rh"]=!0,i=bu(r,n),[o().createElement(eu.TITLE,i,e)];var e,r,n,i},toString:function(){return function(e,t,r,n){var i=vu(r),o=du(t);return i?"<"+e+' data-rh="true" '+i+">"+yu(o,n)+"</"+e+">":"<"+e+' data-rh="true">'+yu(o,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return bu(t)},toString:function(){return vu(t)}};default:return{toComponent:function(){return Eu(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var i=Object.keys(n).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var i=void 0===n[t]?t:t+'="'+yu(n[t],r)+'"';return e?e+" "+i:i}),""),o=n.innerHTML||n.cssText||"",a=-1===gu.indexOf(e);return t+"<"+e+' data-rh="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(e,t,r)}}}},xu=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,i=e.htmlAttributes,o=e.noscriptTags,a=e.styleTags,s=e.title,u=void 0===s?"":s,c=e.titleAttributes,l=e.linkTags,f=e.metaTags,p=e.scriptTags,h={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var d=function(e){var t=e.linkTags,r=e.scriptTags,n=e.encode,i=mu(e.metaTags,nu),o=mu(t,tu),a=mu(r,ru);return{priorityMethods:{toComponent:function(){return[].concat(Eu(eu.META,i.priority),Eu(eu.LINK,o.priority),Eu(eu.SCRIPT,a.priority))},toString:function(){return wu(eu.META,i.priority,n)+" "+wu(eu.LINK,o.priority,n)+" "+wu(eu.SCRIPT,a.priority,n)}},metaTags:i.default,linkTags:o.default,scriptTags:a.default}}(e);h=d.priorityMethods,l=d.linkTags,f=d.metaTags,p=d.scriptTags}return{priority:h,base:wu(eu.BASE,t,n),bodyAttributes:wu("bodyAttributes",r,n),htmlAttributes:wu("htmlAttributes",i,n),link:wu(eu.LINK,l,n),meta:wu(eu.META,f,n),noscript:wu(eu.NOSCRIPT,o,n),script:wu(eu.SCRIPT,p,n),style:wu(eu.STYLE,a,n),title:wu(eu.TITLE,{title:u,titleAttributes:c},n)}},Su=o().createContext({}),ku=Hs().shape({setHelmet:Hs().func,helmetInstances:Hs().shape({get:Hs().func,add:Hs().func,remove:Hs().func})}),Au="undefined"!=typeof document,Du=function(e){function t(r){var n;return(n=e.call(this,r)||this).instances=[],n.value={setHelmet:function(e){n.props.context.helmet=e},helmetInstances:{get:function(){return n.instances},add:function(e){n.instances.push(e)},remove:function(e){var t=n.instances.indexOf(e);n.instances.splice(t,1)}}},t.canUseDOM||(r.context.helmet=xu({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),n}return Xs(t,e),t.prototype.render=function(){return o().createElement(Su.Provider,{value:this.value},this.props.children)},t}(i.Component);Du.canUseDOM=Au,Du.propTypes={context:Hs().shape({helmet:Hs().shape()}),children:Hs().node.isRequired},Du.defaultProps={context:{}},Du.displayName="HelmetProvider";var Fu=function(e,t){var r,n=document.head||document.querySelector(eu.HEAD),i=n.querySelectorAll(e+"[data-rh]"),o=[].slice.call(i),a=[];return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&("innerHTML"===i?n.innerHTML=t.innerHTML:"cssText"===i?n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText)):n.setAttribute(i,void 0===t[i]?"":t[i]));n.setAttribute("data-rh","true"),o.some((function(e,t){return r=t,n.isEqualNode(e)}))?o.splice(r,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},Cu=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute("data-rh"),i=n?n.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s<a.length;s+=1){var u=a[s],c=t[u]||"";r.getAttribute(u)!==c&&r.setAttribute(u,c),-1===i.indexOf(u)&&i.push(u);var l=o.indexOf(u);-1!==l&&o.splice(l,1)}for(var f=o.length-1;f>=0;f-=1)r.removeAttribute(o[f]);i.length===o.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==a.join(",")&&r.setAttribute("data-rh",a.join(","))}},Pu=function(e,t){var r=e.baseTag,n=e.htmlAttributes,i=e.linkTags,o=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,c=e.styleTags,l=e.title,f=e.titleAttributes;Cu(eu.BODY,e.bodyAttributes),Cu(eu.HTML,n),function(e,t){void 0!==e&&document.title!==e&&(document.title=du(e)),Cu(eu.TITLE,t)}(l,f);var p={baseTag:Fu(eu.BASE,r),linkTags:Fu(eu.LINK,i),metaTags:Fu(eu.META,o),noscriptTags:Fu(eu.NOSCRIPT,a),scriptTags:Fu(eu.SCRIPT,u),styleTags:Fu(eu.STYLE,c)},h={},d={};Object.keys(p).forEach((function(e){var t=p[e],r=t.newTags,n=t.oldTags;r.length&&(h[e]=r),n.length&&(d[e]=p[e].oldTags)})),t&&t(),s(e,h,d)},Ou=null,Tu=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).rendered=!1,t}Xs(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!xn()(e,this.props)},r.componentDidUpdate=function(){this.emitChange()},r.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},r.emitChange=function(){var e,t,r=this.props.context,n=r.setHelmet,i=null,o=(e=r.helmetInstances.get().map((function(e){var t=Ys({},e.props);return delete t.context,t})),{baseTag:fu(["href"],e),bodyAttributes:lu("bodyAttributes",e),defer:su(e,"defer"),encode:su(e,"encodeSpecialCharacters"),htmlAttributes:lu("htmlAttributes",e),linkTags:pu(eu.LINK,["rel","href"],e),metaTags:pu(eu.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:pu(eu.NOSCRIPT,["innerHTML"],e),onChangeClientState:cu(e),scriptTags:pu(eu.SCRIPT,["src","innerHTML"],e),styleTags:pu(eu.STYLE,["cssText"],e),title:uu(e),titleAttributes:lu("titleAttributes",e),prioritizeSeoTags:hu(e,"prioritizeSeoTags")});Du.canUseDOM?(t=o,Ou&&cancelAnimationFrame(Ou),t.defer?Ou=requestAnimationFrame((function(){Pu(t,(function(){Ou=null}))})):(Pu(t),Ou=null)):xu&&(i=xu(o)),n(i)},r.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},r.render=function(){return this.init(),null},t}(i.Component);Tu.propTypes={context:ku.isRequired},Tu.displayName="HelmetDispatcher";var ju=["children"],_u=["children"],Iu=function(e){function t(){return e.apply(this,arguments)||this}Xs(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!Ws()(this.props,e)},r.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case eu.SCRIPT:case eu.NOSCRIPT:return{innerHTML:t};case eu.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren;return Ys({},n,((t={})[r.type]=[].concat(n[r.type]||[],[Ys({},e.newChildProps,this.mapNestedChildrenToProps(r,e.nestedChildren))]),t))},r.mapObjectTypeChildren=function(e){var t,r,n=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(n.type){case eu.TITLE:return Ys({},i,((t={})[n.type]=a,t.titleAttributes=Ys({},o),t));case eu.BODY:return Ys({},i,{bodyAttributes:Ys({},o)});case eu.HTML:return Ys({},i,{htmlAttributes:Ys({},o)});default:return Ys({},i,((r={})[n.type]=Ys({},o),r))}},r.mapArrayTypeChildrenToProps=function(e,t){var r=Ys({},t);return Object.keys(e).forEach((function(t){var n;r=Ys({},r,((n={})[t]=e[t],n))})),r},r.warnOnInvalidChildren=function(e,t){return Ks()(iu.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+iu.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),Ks()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(e,t){var r=this,n={};return o().Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=Js(i,ju),s=Object.keys(a).reduce((function(e,t){return e[au[t]||t]=a[t],e}),{}),u=e.type;switch("symbol"==typeof u?u=u.toString():r.warnOnInvalidChildren(e,o),u){case eu.FRAGMENT:t=r.mapChildrenToProps(o,t);break;case eu.LINK:case eu.META:case eu.NOSCRIPT:case eu.SCRIPT:case eu.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:s,nestedChildren:o});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(n,t)},r.render=function(){var e=this.props,t=e.children,r=Ys({},Js(e,_u));return t&&(r=this.mapChildrenToProps(t,r)),o().createElement(Su.Consumer,null,(function(e){return o().createElement(Tu,Ys({},r,{context:e}))}))},t}(i.Component);Iu.propTypes={base:Hs().object,bodyAttributes:Hs().object,children:Hs().oneOfType([Hs().arrayOf(Hs().node),Hs().node]),defaultTitle:Hs().string,defer:Hs().bool,encodeSpecialCharacters:Hs().bool,htmlAttributes:Hs().object,link:Hs().arrayOf(Hs().object),meta:Hs().arrayOf(Hs().object),noscript:Hs().arrayOf(Hs().object),onChangeClientState:Hs().func,script:Hs().arrayOf(Hs().object),style:Hs().arrayOf(Hs().object),title:Hs().string,titleAttributes:Hs().object,titleTemplate:Hs().string,prioritizeSeoTags:Hs().bool},Iu.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Iu.displayName="Helmet";const Ru=(0,i.createContext)(void 0);function Lu(){return(0,i.useContext)(Ru)}function Nu(){const{summary:e}=_a(),t=Lu();if(t)return(0,i.useMemo)((()=>{const r=t.getLevel();let n=!1;return e.getArticle((e=>n?!!e.getPath():(n=e.getLevel()==r,!1)))}),[e,t])}function Mu(){const{summary:e}=_a(),t=Lu();if(t)return(0,i.useMemo)((()=>{const r=t.getLevel();let n;return e.getArticle((e=>e.getLevel()==r||(e.getPath()&&(n=e),!1))),n}),[e,t])}function Bu(){const{file:e}=Ya("page");if(!e)throw new Error("file object not initialized");return e}const zu=(0,i.createContext)(void 0);function Uu(e){let{children:r,file:o}=e;const[a,s]=(0,i.useState)((()=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="));return(0,i.useEffect)((()=>{const e=o.relative(t.fy.logo),r=new Image;r.addEventListener("load",(function(){const e=document.createElement("canvas");e.height=this.height,e.width=this.width;const t=e.getContext("2d");t&&(t.drawImage(this,0,0),e.toBlob((e=>{e&&s(window.URL.createObjectURL(e))})))})),r.src=e}),[]),(0,n.jsx)(zu.Provider,{value:a,children:r})}function $u(){return(0,i.useContext)(zu)}function qu(){const{summary:e}=_a(),t=qs(),r=Bu(),o=(0,i.useMemo)((()=>e.getArticle((e=>e.getPath()===r.path))),[e,r]);(0,i.useEffect)((()=>{window.dispatchEvent(new Event("bootstrapped"))}),[]);const a=$u();return(0,n.jsxs)(Du,{children:[(0,n.jsxs)(Iu,{children:[(0,n.jsx)("title",{children:"".concat(o?"".concat(o.title," - "):"").concat(t)}),(0,n.jsx)("link",{rel:"shortcut icon",href:a,type:"image/png"})]}),(0,n.jsx)(Ru.Provider,{value:o,children:(0,n.jsx)(Aa,{role:"app"})})]})}const Vu=(0,i.createContext)(void 0);function Hu(e){let{children:r,file:i}=e;const{result:o,loading:a}=ba((async()=>{const{data:e}=await(0,t.WY)(i.relative(t.fy.style));return e}),[]);return a?null:(0,n.jsx)(Vu.Provider,{value:o,children:r})}function Gu(){const{file:e}=Ya("page");return e?(0,n.jsx)(Uu,{file:e,children:(0,n.jsx)(Hu,{file:e,children:(0,n.jsx)(qu,{})})}):null}async function Wu(e){return"en"===e?a.e(7).then(a.t.bind(a,2007,19)):a.e(267).then(a.t.bind(a,3267,19))}function Qu(){const[r,o]=(0,i.useState)();return Za((async()=>{try{const{location:r}=Bs=new Ms;let i=Ss();if(!i){i=(await t.WY.get(r.toString())).data}let{id:a,summary:s,file:u,config:c={},options:l={},lfs:f,pluginsCenter:p}=i;c=t.De.createFromObject(c),s=t.ER.create(s);const h=new t.fy(a,c,s);u&&(u=new t.$B(u));const d={page:{config:{params:Ke.parse(r.search)},file:u,lfs:f},options:l},m=await Qa("reader",h,e,d,Wu,p);o((0,n.jsx)(m,{children:(0,n.jsx)(Gu,{})}))}catch(e){var r;if(console.error(e),t.WY.isAxiosError(e))o((null===(r=e.response)||void 0===r?void 0:r.data)||e.message);else o(e.message)}}),[]),r||null}const Ku=()=>{Re().render((0,n.jsx)(Qu,{}),document.getElementById("root"))},Yu={desktop:"desktop",mobile:"mobile"};function Xu(){function e(){return window.innerWidth>996?Yu.desktop:Yu.mobile}const[t,r]=(0,i.useState)(e);return(0,i.useEffect)((()=>{function t(){r(e())}return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[]),t}function Zu(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(0,i.useEffect)((()=>(document.body.style.overflow=e?"hidden":"visible",window.scrollTo(0,0),()=>{document.body.style.overflow="visible"})),[e])}function Ju(e){let{className:t}=e;const r=vn();return(0,n.jsx)("div",{className:t,children:r.formatMessage({id:"IHXx7d",defaultMessage:[{type:0,value:"本文档使用 "},{type:1,value:"link"},{type:0,value:" 构建"}]},{link:(0,n.jsx)("a",{href:"https://x.topthink.com",target:"_blank",children:r.formatMessage({id:"R10y2x",defaultMessage:[{type:0,value:"顶想云"}]})})})})}function ec(e){let{size:t=60,className:r}=e;const i=$u();return(0,n.jsx)("img",{className:r,src:i,width:t,height:t,alt:"logo"})}function tc(e){let{children:r,to:o,className:a,...s}=e;const u=Bu(),{loading:c}=Ya("page");let l;o instanceof t.oI?(l=o.getPath(),r||(r=o.getTitle())):l=o;const f=l?u.relative(l):"#!",p=(0,i.useCallback)((e=>{if(e.preventDefault(),l&&!c){const t={pathname:"",search:"",hash:"",...Ls(e.currentTarget.pathname)};Bs.push(t)}}),[l,c]);return(0,n.jsx)("a",{...s,onClick:p,className:a,href:f,children:r})}var rc=a(7425),nc=a.n(rc);const ic=e=>{let{base:r,href:i,...o}=e;const{summary:a}=_a();if(i){if(!(0,t.CB)(i)){let e=i;if(".md"===nc().extname(i)){let t;t=r?decodeURIComponent(nc().join(nc().dirname(r),i)):i;const n=a.getArticle((e=>e.ref===t));n&&(e=n)}return(0,n.jsx)(tc,{to:e,...o})}o.target="_blank"}return(0,n.jsx)("a",{href:i,...o,rel:"noopener noreferrer"})};function oc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ac(e){let{element:r,src:i,...o}=e;const{lfs:a,file:s}=Ya("page");if(i&&a&&!(0,t.CB)(i)&&s){const{url:e,files:t}=a,r=t[s.resolve(decodeURIComponent(i))];r&&(i=e.replace("{oid}",r))}return(0,n.jsx)(Aa,{role:"page:asset",props:{src:i,...o},component:r})}var sc;const uc=Zi.a(sc||(sc=oc(["\n display: block;\n position: relative;\n top: -.5rem;\n"]))),cc={a:function(e){const t=Bu();return(0,n.jsx)(ic,{...e,base:t.path})},img:function(e){return(0,n.jsx)(ac,{element:"img",...e})},attachment:function(e){return(0,n.jsx)(ac,{element:"t-attachment",...e})},video:function(e){return(0,n.jsx)(ac,{element:"video",...e})},audio:function(e){return(0,n.jsx)(ac,{element:"audio",...e})},heading:function(e){let{depth:t,id:r,children:o,...a}=e;return r&&(o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(uc,{tabIndex:-1,id:r}),o]})),(0,i.createElement)("h".concat(t),a,o)}};function lc(e){let{children:t,...r}=e;(0,i.useEffect)((()=>{const e=Bs.location.hash;if(e){const t=document.getElementById(decodeURIComponent(e).substr(1));t&&window.scrollTo(0,t.offsetTop)}}),[]);const o=(0,i.useContext)(Vu);return(0,n.jsx)(ms,{css:o,...r,components:cc,children:t})}var fc;function pc(e){let{className:t,header:r,footer:o,container:a="div",...s}=e;const u=Bu(),c=Lu();void 0===r&&c&&(r=(0,n.jsx)(hc,{children:c.title})),r=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Da,{role:"page:article:before"}),r]}),o=(0,n.jsxs)(n.Fragment,{children:[o,(0,n.jsx)(Da,{role:"page:article:after"})]});const l=(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(lc,{header:r,footer:o,...s,children:u.content})});return(0,i.createElement)(a,{className:t},l)}const hc=Zi.h1(fc||(fc=oc(["\n border-bottom: 1px solid #eee;\n font-size: 2em;\n line-height: 1.2;\n padding: 0 0 .5em;\n margin: 0 0 1em;\n font-weight: 400;\n"]))),dc=e=>{let{item:t,itemComponent:r,itemsComponent:o}=e;const{path:a}=Bu(),s=Lu(),u=(0,i.useMemo)((()=>Boolean(s&&t.getLevel().isDescendant(s.getLevel()))),[t,s]),c=a===t.getPath(),l=t.children.length>0,f=!t.getPath(),p=l?(0,n.jsx)(gc,{itemsComponent:o,itemComponent:r,items:t.children}):null;return(0,n.jsx)(Aa,{role:"catalog:item",props:{item:t,active:c,disabled:f,activeDescendant:u,children:p},component:r})},mc=e=>{let{children:t}=e;return(0,n.jsx)("ul",{children:t})},gc=e=>{let{items:t,part:r,itemsComponent:i=mc,itemComponent:o}=e;const a=(0,n.jsx)(n.Fragment,{children:t.map((e=>(0,n.jsx)(dc,{itemsComponent:i,itemComponent:o,item:e},e.level.toString())))});return(0,n.jsx)(Aa,{role:"catalog:items",props:{part:r,children:a},component:i})},yc=e=>{let{part:t,component:r,itemsComponent:i,itemComponent:o}=e;const a=(0,n.jsx)(gc,{itemsComponent:i,itemComponent:o,items:t.articles,part:t});return(0,n.jsx)(Aa,{role:"catalog:part",props:{part:t,children:a},component:r})},vc=e=>{let{summary:t,partComponent:r,itemsComponent:i,itemComponent:o}=e;return t.isSinglePart()?(0,n.jsx)(gc,{itemsComponent:i,itemComponent:o,items:t.getLastPart().getArticles()}):(0,n.jsx)(n.Fragment,{children:t.parts.map((e=>(0,n.jsx)(yc,{component:r,itemsComponent:i,itemComponent:o,part:e},e.level.toString())))})};function bc(e){let{...t}=e;const{summary:r}=Ya("book"),{renderItem:i,renderPart:o}=t;i&&(console.warn("renderItem deprecated"),t.itemComponent=i),o&&(console.warn("renderPart deprecated"),t.partComponent=o);const{partComponent:a,itemsComponent:s,itemComponent:u}=t;return(0,n.jsx)(vc,{summary:r,partComponent:a,itemsComponent:s,itemComponent:u})}function Ec(e){let{className:r}=e;const{summary:i}=_a(),o=Lu(),a=vn(),s=[(0,n.jsx)("li",{children:(0,n.jsx)(tc,{to:".",children:a.formatMessage({id:"4R5GEq",defaultMessage:[{type:0,value:"首页"}]})})},"0")];if(o){const e=o.getLevel();e.data.reduce(((r,o)=>{r.push(o);const a=new t.aC(r),u=i.getByLevel(a);return u&&(u instanceof t.oI&&!a.eq(e)?s.push((0,n.jsx)("li",{children:(0,n.jsx)(tc,{to:u})},a.toString())):u.title&&s.push((0,n.jsx)("li",{children:u.title},a.toString()))),r}),[])}return(0,n.jsx)("ol",{className:r,children:s})}function wc(e){let{children:t}=e;const{summary:r}=_a(),n=Lu(),o=Bu();return(0,i.useEffect)((()=>{if(!n){const e=r.getFirstArticle();e&&Bs.replace(o.relative(e.path))}}),[n]),n?t:null}})(),window.TopWrite=s})();
68
+ var et=function(e,t){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},et(e,t)};function tt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}et(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var rt=function(){return rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},rt.apply(this,arguments)};Object.create;function nt(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}var it,ot,at;Object.create;function st(e){return e.type===ot.literal}function ut(e){return e.type===ot.argument}function ct(e){return e.type===ot.number}function lt(e){return e.type===ot.date}function ft(e){return e.type===ot.time}function pt(e){return e.type===ot.select}function ht(e){return e.type===ot.plural}function dt(e){return e.type===ot.pound}function mt(e){return e.type===ot.tag}function gt(e){return!(!e||"object"!=typeof e||e.type!==at.number)}function yt(e){return!(!e||"object"!=typeof e||e.type!==at.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(it||(it={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(ot||(ot={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(at||(at={}));var vt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,bt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Et(e){var t={};return e.replace(bt,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var wt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var xt,St=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,kt=/^(@+)?(\+|#+)?[rs]?$/g,At=/(\*)(0+)|(#+)(0+)|(0+)/g,Dt=/^(0+)$/;function Ft(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(kt,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Ct(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Pt(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Dt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ot(e){var t=Ct(e);return t||{}}function Tt(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=rt(rt(rt({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return rt(rt({},e),Ot(t))}),{}));continue;case"engineering":t=rt(rt(rt({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return rt(rt({},e),Ot(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(At,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Dt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(St.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(St,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=rt(rt({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=rt(rt({},t),Ft(o)))}else if(kt.test(i.stem))t=rt(rt({},t),Ft(i.stem));else{var a=Ct(i.stem);a&&(t=rt(rt({},t),a));var s=Pt(i.stem);s&&(t=rt(rt({},t),s))}}return t}var jt=new RegExp("^"+vt.source+"*"),_t=new RegExp(vt.source+"*$");function It(e,t){return{start:e,end:t}}var Rt=!!String.prototype.startsWith,Lt=!!String.fromCodePoint,Nt=!!Object.fromEntries,Mt=!!String.prototype.codePointAt,Bt=!!String.prototype.trimStart,zt=!!String.prototype.trimEnd,Ut=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},$t=!0;try{$t="a"===(null===(xt=Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===xt?void 0:xt[0])}catch(N){$t=!1}var qt,Vt=Rt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Ht=Lt?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Gt=Nt?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],a=i[1];t[o]=a}return t},Wt=Mt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},Qt=Bt?function(e){return e.trimStart()}:function(e){return e.replace(jt,"")},Kt=zt?function(e){return e.trimEnd()}:function(e){return e.replace(_t,"")};function Yt(e,t){return new RegExp(e,t)}if($t){var Xt=Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qt=function(e,t){var r;return Xt.lastIndex=t,null!==(r=Xt.exec(e)[1])&&void 0!==r?r:""}}else qt=function(e,t){for(var r=[];;){var n=Wt(e,t);if(void 0===n||tr(n)||rr(n))break;r.push(n),t+=n>=65536?2:1}return Ht.apply(void 0,r)};var Zt=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(it.UNMATCHED_CLOSING_TAG,It(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Jt(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:ot.pound,location:It(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ot.literal,value:"<"+n+"/>",location:It(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Jt(this.char()))return this.error(it.INVALID_TAG,It(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(it.UNMATCHED_CLOSING_TAG,It(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ot.tag,value:n,children:o,location:It(r,this.clonePosition())},err:null}:this.error(it.INVALID_TAG,It(a,this.clonePosition())))}return this.error(it.UNCLOSED_TAG,It(r,this.clonePosition()))}return this.error(it.INVALID_TAG,It(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&er(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=It(r,this.clonePosition());return{val:{type:ot.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Jt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Ht.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),Ht(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(it.EXPECT_ARGUMENT_CLOSING_BRACE,It(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(it.EMPTY_ARGUMENT,It(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(it.MALFORMED_ARGUMENT,It(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(it.EXPECT_ARGUMENT_CLOSING_BRACE,It(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ot.argument,value:n,location:It(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(it.EXPECT_ARGUMENT_CLOSING_BRACE,It(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(it.MALFORMED_ARGUMENT,It(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=qt(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:It(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(it.EXPECT_ARGUMENT_TYPE,It(o,s));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=Kt(g.val)).length)return this.error(it.EXPECT_ARGUMENT_STYLE,It(this.clonePosition(),this.clonePosition()));u={style:p,styleLocation:It(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var l=It(n,this.clonePosition());if(u&&Vt(null==u?void 0:u.style,"::",0)){var f=Qt(u.style.slice(2));if("number"===a)return(g=this.parseNumberSkeletonFromString(f,u.styleLocation)).err?g:{val:{type:ot.number,value:r,location:l,style:g.val},err:null};if(0===f.length)return this.error(it.EXPECT_DATE_TIME_SKELETON,l);var p={type:at.dateTime,pattern:f,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Et(f):{}};return{val:{type:"date"===a?ot.date:ot.time,value:r,location:l,style:p},err:null}}return{val:{type:"number"===a?ot.number:"date"===a?ot.date:ot.time,value:r,location:l,style:null!==(i=null==u?void 0:u.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(it.EXPECT_SELECT_ARGUMENT_OPTIONS,It(h,rt({},h)));this.bumpSpace();var d=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(it.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,It(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(it.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,it.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),d=this.parseIdentifierIfPossible(),m=g.val}var y,v=this.tryParsePluralOrSelectOptions(e,a,t,d);if(v.err)return v;if((y=this.tryParseArgumentClose(n)).err)return y;var b=It(n,this.clonePosition());return"select"===a?{val:{type:ot.select,value:r,options:Gt(v.val),location:b},err:null}:{val:{type:ot.plural,value:r,options:Gt(v.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:b},err:null};default:return this.error(it.INVALID_ARGUMENT_TYPE,It(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(it.EXPECT_ARGUMENT_CLOSING_BRACE,It(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(it.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,It(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(wt).filter((function(e){return e.length>0})),r=[],n=0,i=t;n<i.length;n++){var o=i[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],s=o.slice(1),u=0,c=s;u<c.length;u++)if(0===c[u].length)throw new Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}(e)}catch(e){return this.error(it.INVALID_NUMBER_SKELETON,t)}return{val:{type:at.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Tt(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,a=[],s=new Set,u=n.value,c=n.location;;){if(0===u.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(it.EXPECT_PLURAL_ARGUMENT_SELECTOR,it.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=It(l,this.clonePosition()),u=this.message.slice(l.offset,this.offset())}if(s.has(u))return this.error("select"===t?it.DUPLICATE_SELECT_ARGUMENT_SELECTOR:it.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?it.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:it.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,It(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,r);if(h.err)return h;var d=this.tryParseArgumentClose(p);if(d.err)return d;a.push([u,{value:h.val,location:It(p,this.clonePosition())}]),s.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===a.length?this.error("select"===t?it.EXPECT_SELECT_ARGUMENT_SELECTOR:it.EXPECT_PLURAL_ARGUMENT_SELECTOR,It(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(it.MISSING_OTHER_CLAUSE,It(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=It(n,this.clonePosition());return i?Ut(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Wt(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Vt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&tr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Jt(e){return e>=97&&e<=122||e>=65&&e<=90}function er(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function tr(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function rr(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function nr(e){e.forEach((function(e){if(delete e.location,pt(e)||ht(e))for(var t in e.options)delete e.options[t].location,nr(e.options[t].value);else ct(e)&&gt(e.style)||(lt(e)||ft(e))&&yt(e.style)?delete e.style.location:mt(e)&&nr(e.children)}))}function ir(e,t){void 0===t&&(t={}),t=rt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Zt(e,t).parse();if(r.err){var n=SyntaxError(it[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||nr(r.val),r.val}function or(e,t){var r=t&&t.cache?t.cache:hr,n=t&&t.serializer?t.serializer:lr;return(t&&t.strategy?t.strategy:cr)(e,{cache:r,serializer:n})}function ar(e,t,r,n){var i=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),o=t.get(i);return void 0===o&&(o=e.call(this,n),t.set(i,o)),o}function sr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function ur(e,t,r,n,i){return r.bind(t,e,n,i)}function cr(e,t){return ur(e,this,1===e.length?ar:sr,t.cache.create(),t.serializer)}var lr=function(){return JSON.stringify(arguments)};function fr(){this.cache=Object.create(null)}fr.prototype.get=function(e){return this.cache[e]},fr.prototype.set=function(e,t){this.cache[e]=t};var pr,hr={create:function(){return new fr}},dr={variadic:function(e,t){return ur(e,this,sr,t.cache.create(),t.serializer)},monadic:function(e,t){return ur(e,this,ar,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(pr||(pr={}));var mr,gr=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return tt(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),yr=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',pr.INVALID_VALUE,i)||this}return tt(t,e),t}(gr),vr=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,pr.INVALID_VALUE,n)||this}return tt(t,e),t}(gr),br=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',pr.MISSING_VALUE,r)||this}return tt(t,e),t}(gr);function Er(e){return"function"==typeof e}function wr(e,t,r,n,i,o,a){if(1===e.length&&st(e[0]))return[{type:mr.literal,value:e[0].value}];for(var s=[],u=0,c=e;u<c.length;u++){var l=c[u];if(st(l))s.push({type:mr.literal,value:l.value});else if(dt(l))"number"==typeof o&&s.push({type:mr.literal,value:r.getNumberFormat(t).format(o)});else{var f=l.value;if(!i||!(f in i))throw new br(f,a);var p=i[f];if(ut(l))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?mr.literal:mr.object,value:p});else if(lt(l)){var h="string"==typeof l.style?n.date[l.style]:yt(l.style)?l.style.parsedOptions:void 0;s.push({type:mr.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(ft(l)){h="string"==typeof l.style?n.time[l.style]:yt(l.style)?l.style.parsedOptions:void 0;s.push({type:mr.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(ct(l)){(h="string"==typeof l.style?n.number[l.style]:gt(l.style)?l.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:mr.literal,value:r.getNumberFormat(t,h).format(p)})}else{if(mt(l)){var d=l.children,m=l.value,g=i[m];if(!Er(g))throw new vr(m,"function",a);var y=g(wr(d,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),s.push.apply(s,y.map((function(e){return{type:"string"==typeof e?mr.literal:mr.object,value:e}})))}if(pt(l)){if(!(v=l.options[p]||l.options.other))throw new yr(l.value,p,Object.keys(l.options),a);s.push.apply(s,wr(v.value,t,r,n,i))}else if(ht(l)){var v;if(!(v=l.options["="+p])){if(!Intl.PluralRules)throw new gr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',pr.MISSING_INTL_API,a);var b=r.getPluralRules(t,{type:l.pluralType}).select(p-(l.offset||0));v=l.options[b]||l.options.other}if(!v)throw new yr(l.value,p,Object.keys(l.options),a);s.push.apply(s,wr(v.value,t,r,n,i,p-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===mr.literal&&t.type===mr.literal?r.value+=t.value:e.push(t),e}),[])}(s)}function xr(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?rt(rt(rt({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=rt(rt({},i[t]),o[t]||{}),e}),{})):i),r}),rt({},e)):e}function Sr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(mr||(mr={}));var kr,Ar=function(){function e(t,r,n,i){var o,a=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===mr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return wr(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=xr(e.formats,n),this.locales=r,this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:or((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,nt([void 0],t,!1)))}),{cache:Sr(o.number),strategy:dr.variadic}),getDateTimeFormat:or((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,nt([void 0],t,!1)))}),{cache:Sr(o.dateTime),strategy:dr.variadic}),getPluralRules:or((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,nt([void 0],t,!1)))}),{cache:Sr(o.pluralRules),strategy:dr.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=ir,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(kr||(kr={}));var Dr=function(e){function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error "+r+"] "+n+" \n"+(a?"\n"+a.message+"\n"+a.stack:""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return tt(t,e),t}(Error),Fr=function(e){function t(t,r){return e.call(this,kr.UNSUPPORTED_FORMATTER,t,r)||this}return tt(t,e),t}(Dr),Cr=function(e){function t(t,r){return e.call(this,kr.INVALID_CONFIG,t,r)||this}return tt(t,e),t}(Dr),Pr=function(e){function t(t,r){return e.call(this,kr.MISSING_DATA,t,r)||this}return tt(t,e),t}(Dr),Or=function(e){function t(t,r,n){return e.call(this,kr.FORMAT_ERROR,t+" \nLocale: "+r+"\n",n)||this}return tt(t,e),t}(Dr),Tr=function(e){function t(t,r,n,i){var o=e.call(this,t+" \nMessageID: "+(null==n?void 0:n.id)+"\nDefault Message: "+(null==n?void 0:n.defaultMessage)+"\nDescription: "+(null==n?void 0:n.description)+" \n",r,i)||this;return o.descriptor=n,o}return tt(t,e),t}(Or),jr=function(e){function t(t,r){var n=e.call(this,kr.MISSING_TRANSLATION,'Missing message: "'+t.id+'" for locale "'+r+'", using '+(t.defaultMessage?"default message":"id")+" as fallback.")||this;return n.descriptor=t,n}return tt(t,e),t}(Dr);function _r(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var Ir={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0}};function Rr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Lr(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new Fr("No "+t+" format named: "+r))}function Nr(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function Mr(e){Nr(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Br=rt(rt({},Ir),{textComponent:i.Fragment});function zr(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=rt({timeZone:t},e[n]),r}),{})}function Ur(e,t){return Object.keys(rt(rt({},e),t)).reduce((function(r,n){return r[n]=rt(rt({},e[n]||{}),t[n]||{}),r}),{})}function $r(e,t){if(!t)return e;var r=Ar.formats;return rt(rt(rt({},r),e),{date:Ur(zr(r.date,t),zr(e.date||{},t)),time:Ur(zr(r.time,t),zr(e.time||{},t))})}function qr(e,t,r,n,i){var o=e.locale,a=e.formats,s=e.messages,u=e.defaultLocale,c=e.defaultFormats,l=e.fallbackOnEmptyString,f=e.onError,p=e.timeZone,h=e.defaultRichTextElements;void 0===r&&(r={id:""});var d=r.id,m=r.defaultMessage;Nr(!!d,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(d),y=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(y)&&1===y.length&&y[0].type===ot.literal)return y[0].value;if(!n&&y&&"string"==typeof y&&!h)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=rt(rt({},h),n||{}),a=$r(a,p),c=$r(c,p),!y){if(!1===l&&""===y)return y;if((!m||o&&o.toLowerCase()!==u.toLowerCase())&&f(new jr(r,o)),m)try{return t.getMessageFormat(m,u,c,i).format(n)}catch(e){return f(new Tr('Error formatting default message for: "'+g+'", rendering default message verbatim',o,r,e)),"string"==typeof m?m:g}return g}try{return t.getMessageFormat(y,o,a,rt({formatters:t},i||{})).format(n)}catch(e){f(new Tr('Error formatting message: "'+g+'", using '+(m?"default message":"id")+" as fallback.",o,r,e))}if(m)try{return t.getMessageFormat(m,u,c,i).format(n)}catch(e){f(new Tr('Error formatting the default message for: "'+g+'", rendering message verbatim',o,r,e))}return"string"==typeof y?y:"string"==typeof m?m:g}var Vr=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Hr(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=a&&Lr(i,"number",a,o)||{};return t(n,_r(r,Vr,s))}function Gr(e,t,r,n){void 0===n&&(n={});try{return Hr(e,t,n).format(r)}catch(t){e.onError(new Dr(kr.FORMAT_ERROR,"Error formatting number.",t))}return String(r)}function Wr(e,t,r,n){void 0===n&&(n={});try{return Hr(e,t,n).formatToParts(r)}catch(t){e.onError(new Dr(kr.FORMAT_ERROR,"Error formatting number.",t))}return[]}var Qr=["numeric","style"];function Kr(e,t,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new gr('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',pr.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&Lr(i,"relative",a,o)||{};return t(n,_r(r,Qr,s))}(e,t,i).format(r,n)}catch(t){e.onError(new Or("Error formatting relative time.",e.locale,t))}return String(r)}var Yr=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function Xr(e,t,r,n){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var u=n.format,c=rt(rt({},s&&{timeZone:s}),u&&Lr(o,t,u,a)),l=_r(n,Yr,c);return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=rt(rt({},l),{hour:"numeric",minute:"numeric"})),r(i,l)}function Zr(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Xr(e,"date",t,a).format(s)}catch(t){e.onError(new Dr(kr.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function Jr(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Xr(e,"time",t,a).format(s)}catch(t){e.onError(new Dr(kr.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function en(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=void 0===a?{}:a,u=e.timeZone,c=e.locale,l=e.onError,f=_r(s,Yr,u?{timeZone:u}:{});try{return t(c,f).formatRange(i,o)}catch(e){l(new Dr(kr.FORMAT_ERROR,"Error formatting date time range.",e))}return String(i)}function tn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Xr(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new Dr(kr.FORMAT_ERROR,"Error formatting date.",t))}return[]}function rn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Xr(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new Dr(kr.FORMAT_ERROR,"Error formatting time.",t))}return[]}var nn=["localeMatcher","type"];function on(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.PluralRules||o(new gr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',pr.MISSING_INTL_API));var a=_r(n,nn);try{return t(i,a).select(r)}catch(e){o(new Or("Error formatting plural.",i,e))}return"other"}var an=["localeMatcher","type","style"],sn=Date.now();function un(e,t,r,n){void 0===n&&(n={});var i=cn(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===i.length?i[0]:i}function cn(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.ListFormat||o(new gr('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',pr.MISSING_INTL_API));var a=_r(n,an);try{var s={},u=r.map((function(e,t){if("object"==typeof e){var r=function(e){return sn+"_"+e+"_"+sn}(t);return s[r]=e,r}return String(e)}));return t(i,a).formatToParts(u).map((function(e){return"literal"===e.type?e:rt(rt({},e),{value:s[e.value]||e.value})}))}catch(e){o(new Dr(kr.FORMAT_ERROR,"Error formatting list.",e))}return r}var ln=["localeMatcher","style","type","fallback"];function fn(e,t,r,n){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new gr('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',pr.MISSING_INTL_API));var a=_r(n,ln);try{return t(i,a).of(r)}catch(e){o(new Dr(kr.FORMAT_ERROR,"Error formatting display name.",e))}}function pn(e){var t;e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&console.warn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}function hn(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=or((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,nt([void 0],t,!1)))}),{cache:Rr(e.dateTime),strategy:dr.variadic}),o=or((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,nt([void 0],t,!1)))}),{cache:Rr(e.number),strategy:dr.variadic}),a=or((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,nt([void 0],t,!1)))}),{cache:Rr(e.pluralRules),strategy:dr.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:or((function(e,t,r,n){return new Ar(e,t,r,rt({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},n||{}))}),{cache:Rr(e.message),strategy:dr.variadic}),getRelativeTimeFormat:or((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,nt([void 0],e,!1)))}),{cache:Rr(e.relativeTime),strategy:dr.variadic}),getPluralRules:a,getListFormat:or((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,nt([void 0],e,!1)))}),{cache:Rr(e.list),strategy:dr.variadic}),getDisplayNames:or((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,nt([void 0],e,!1)))}),{cache:Rr(e.displayNames),strategy:dr.variadic})}}(t),n=rt(rt({},Ir),e),i=n.locale,o=n.defaultLocale,a=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Pr('Missing locale data for locale: "'+i+'" in Intl.NumberFormat. Using default locale: "'+o+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new Pr('Missing locale data for locale: "'+i+'" in Intl.DateTimeFormat. Using default locale: "'+o+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(a&&a(new Cr('"locale" was not configured, using "'+o+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),n.locale=n.defaultLocale||"en"),pn(n),rt(rt({},n),{formatters:r,formatNumber:Gr.bind(null,n,r.getNumberFormat),formatNumberToParts:Wr.bind(null,n,r.getNumberFormat),formatRelativeTime:Kr.bind(null,n,r.getRelativeTimeFormat),formatDate:Zr.bind(null,n,r.getDateTimeFormat),formatDateToParts:tn.bind(null,n,r.getDateTimeFormat),formatTime:Jr.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:en.bind(null,n,r.getDateTimeFormat),formatTimeToParts:rn.bind(null,n,r.getDateTimeFormat),formatPlural:on.bind(null,n,r.getPluralRules),formatMessage:qr.bind(null,n,r),formatList:un.bind(null,n,r.getListFormat),formatListToParts:cn.bind(null,n,r.getListFormat),formatDisplayName:fn.bind(null,n,r.getDisplayNames)})}function dn(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function mn(e){return e?Object.keys(e).reduce((function(t,r){var n,o=e[r];return t[r]=Er(o)?(n=o,function(e){return n(i.Children.toArray(e))}):o,t}),{}):e}var gn=function(e,t,r,n){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];var s=mn(n),u=qr.apply(void 0,nt([e,t,r,s],o,!1));return Array.isArray(u)?i.Children.toArray(u):u},yn=function(e,t){var r=e.defaultRichTextElements,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["defaultRichTextElements"]),i=mn(r),o=hn(rt(rt(rt({},Br),n),{defaultRichTextElements:i}),t);return rt(rt({},o),{formatMessage:gn.bind(null,{locale:o.locale,timeZone:o.timeZone,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i},o.formatters)})};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:yn(dn(t.props),t.cache),prevConfig:dn(t.props)},t}tt(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,i=dn(e);return function(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var o=0;o<i;o++){var a=r[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}(r,i)?null:{intl:yn(i,n),prevConfig:i}},t.prototype.render=function(){return Mr(this.state.intl),i.createElement(Ze,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Br}(i.PureComponent);function vn(){var e=i.useContext(Je);return Mr(e),e}function bn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var En=a(2348),wn=a(4445),xn=a.n(wn);const Sn=function(e){function t(e,n,u,c,p){for(var h,d,m,g,E,x=0,S=0,k=0,A=0,D=0,j=0,I=m=h=0,L=0,N=0,M=0,B=0,z=u.length,U=z-1,$="",q="",V="",H="";L<z;){if(d=u.charCodeAt(L),L===U&&0!==S+A+k+x&&(0!==S&&(d=47===S?10:47),A=k=x=0,z++,U++),0===S+A+k+x){if(L===U&&(0<N&&($=$.replace(f,"")),0<$.trim().length)){switch(d){case 32:case 9:case 59:case 13:case 10:break;default:$+=u.charAt(L)}d=59}switch(d){case 123:for(h=($=$.trim()).charCodeAt(0),m=1,B=++L;L<z;){switch(d=u.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(d=u.charCodeAt(L+1)){case 42:case 47:e:{for(I=L+1;I<U;++I)switch(u.charCodeAt(I)){case 47:if(42===d&&42===u.charCodeAt(I-1)&&L+2!==I){L=I+1;break e}break;case 10:if(47===d){L=I+1;break e}}L=I}}break;case 91:d++;case 40:d++;case 34:case 39:for(;L++<U&&u.charCodeAt(L)!==d;);}if(0===m)break;L++}if(m=u.substring(B,L),0===h&&(h=($=$.replace(l,"").trim()).charCodeAt(0)),64===h){switch(0<N&&($=$.replace(f,"")),d=$.charCodeAt(1)){case 100:case 109:case 115:case 45:N=n;break;default:N=T}if(B=(m=t(n,N,m,d,p+1)).length,0<_&&(E=s(3,m,N=r(T,$,M),n,C,F,B,d,p,c),$=N.join(""),void 0!==E&&0===(B=(m=E.trim()).length)&&(d=0,m="")),0<B)switch(d){case 115:$=$.replace(w,a);case 100:case 109:case 45:m=$+"{"+m+"}";break;case 107:m=($=$.replace(y,"$1 $2"))+"{"+m+"}",m=1===O||2===O&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=$+m,112===c&&(q+=m,m="")}else m=""}else m=t(n,r(n,$,M),m,c,p+1);V+=m,m=M=N=I=h=0,$="",d=u.charCodeAt(++L);break;case 125:case 59:if(1<(B=($=(0<N?$.replace(f,""):$).trim()).length))switch(0===I&&(h=$.charCodeAt(0),45===h||96<h&&123>h)&&(B=($=$.replace(" ",":")).length),0<_&&void 0!==(E=s(1,$,n,e,C,F,q.length,c,p,c))&&0===(B=($=E.trim()).length)&&($="\0\0"),h=$.charCodeAt(0),d=$.charCodeAt(1),h){case 0:break;case 64:if(105===d||99===d){H+=$+u.charAt(L);break}default:58!==$.charCodeAt(B-1)&&(q+=i($,h,d,$.charCodeAt(2)))}M=N=I=h=0,$="",d=u.charCodeAt(++L)}}switch(d){case 13:case 10:47===S?S=0:0===1+h&&107!==c&&0<$.length&&(N=1,$+="\0"),0<_*R&&s(0,$,n,e,C,F,q.length,c,p,c),F=1,C++;break;case 59:case 125:if(0===S+A+k+x){F++;break}default:switch(F++,g=u.charAt(L),d){case 9:case 32:if(0===A+x+S)switch(D){case 44:case 58:case 9:case 32:g="";break;default:32!==d&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===A+S+x&&(N=M=1,g="\f"+g);break;case 108:if(0===A+S+x+P&&0<I)switch(L-I){case 2:112===D&&58===u.charCodeAt(L-3)&&(P=D);case 8:111===j&&(P=j)}break;case 58:0===A+S+x&&(I=L);break;case 44:0===S+k+A+x&&(N=1,g+="\r");break;case 34:case 39:0===S&&(A=A===d?0:0===A?d:A);break;case 91:0===A+S+k&&x++;break;case 93:0===A+S+k&&x--;break;case 41:0===A+S+x&&k--;break;case 40:if(0===A+S+x){if(0===h)if(2*D+3*j==533);else h=1;k++}break;case 64:0===S+k+A+x+I+m&&(m=1);break;case 42:case 47:if(!(0<A+x+k))switch(S){case 0:switch(2*d+3*u.charCodeAt(L+1)){case 235:S=47;break;case 220:B=L,S=42}break;case 42:47===d&&42===D&&B+2!==L&&(33===u.charCodeAt(B+2)&&(q+=u.substring(B,L+1)),g="",S=0)}}0===S&&($+=g)}j=D,D=d,L++}if(0<(B=q.length)){if(N=n,0<_&&(void 0!==(E=s(2,q,N,e,C,F,B,c,p,c))&&0===(q=E).length))return H+q+V;if(q=N.join(",")+"{"+q+"}",0!=O*P){switch(2!==O||o(q,2)||(P=0),P){case 111:q=q.replace(b,":-moz-$1")+q;break;case 112:q=q.replace(v,"::-webkit-input-$1")+q.replace(v,"::-moz-$1")+q.replace(v,":-ms-input-$1")+q}P=0}}return H+q+V}function r(e,t,r){var i=t.trim().split(m);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[u++]=n(e[c]+" ",i[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===O||2===O&&o(u,1)?"-webkit-"+u+u:u}if(0===O||2===O&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(D,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return h.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(E,"tb");break;case 232:u=a.replace(E,"tb-rl");break;case 220:u=a.replace(E,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+a}return a}function o(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),I(2!==t?n:n.replace(k,"$1"),r,t)}function a(e,t){var r=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,i,o,a,s,u,l){for(var f,p=0,h=t;p<_;++p)switch(f=j[p].call(c,e,h,r,n,i,o,a,s,u,l)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function u(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?O=1:(O=2,I=e):O=0),u}function c(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<_){var i=s(-1,r,n,n,C,F,0,0,0,0);void 0!==i&&"string"==typeof i&&(r=i)}var o=t(T,n,r,0,0);return 0<_&&(void 0!==(i=s(-2,o,n,n,C,F,o.length,0,0,0))&&(o=i)),"",P=0,F=C=1,o}var l=/^\0+/g,f=/[\0\r\f]/g,p=/: */g,h=/zoo|gra/,d=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,S=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,D=/([^-])(image-set\()/,F=1,C=1,P=0,O=1,T=[],j=[],_=0,I=null,R=0;return c.use=function e(t){switch(t){case void 0:case null:_=j.length=0;break;default:if("function"==typeof t)j[_++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},c.set=u,void 0!==e&&u(e),c};const kn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const An=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}};var Dn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const Fn=An((function(e){return Dn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Cn=a(7061);function Pn(){return(Pn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var On=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},Tn=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,En.typeOf)(e)},jn=Object.freeze([]),_n=Object.freeze({});function In(e){return"function"==typeof e}function Rn(e){return e.displayName||e.name||"Component"}function Ln(e){return e&&"string"==typeof e.styledComponentId}var Nn=void 0!==Cn&&(Cn.env.REACT_APP_SC_ATTR||Cn.env.SC_ATTR)||"data-styled",Mn="undefined"!=typeof window&&"HTMLElement"in window,Bn=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==Cn&&void 0!==Cn.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==Cn.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==Cn.env.REACT_APP_SC_DISABLE_SPEEDY&&Cn.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==Cn&&void 0!==Cn.env.SC_DISABLE_SPEEDY&&""!==Cn.env.SC_DISABLE_SPEEDY&&("false"!==Cn.env.SC_DISABLE_SPEEDY&&Cn.env.SC_DISABLE_SPEEDY)),zn={};function Un(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var $n=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&Un(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),qn=new Map,Vn=new Map,Hn=1,Gn=function(e){if(qn.has(e))return qn.get(e);for(;Vn.has(Hn);)Hn++;var t=Hn++;return qn.set(e,t),Vn.set(t,e),t},Wn=function(e){return Vn.get(e)},Qn=function(e,t){t>=Hn&&(Hn=t+1),qn.set(e,t),Vn.set(t,e)},Kn="style["+Nn+'][data-styled-version="5.3.5"]',Yn=new RegExp("^"+Nn+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Xn=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},Zn=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],i=0,o=r.length;i<o;i++){var a=r[i].trim();if(a){var s=a.match(Yn);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Qn(c,u),Xn(e,c,s[3]),e.getTag().insertRules(u,n)),n.length=0}else n.push(a)}}},Jn=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},ei=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(Nn))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(Nn,"active"),n.setAttribute("data-styled-version","5.3.5");var a=Jn();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},ti=function(){function e(e){var t=this.element=ei(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}Un(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),ri=function(){function e(e){var t=this.element=ei(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ni=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ii=Mn,oi={isServer:!Mn,useCSSOMInjection:!Bn},ai=function(){function e(e,t,r){void 0===e&&(e=_n),void 0===t&&(t={}),this.options=Pn({},oi,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Mn&&ii&&(ii=!1,function(e){for(var t=document.querySelectorAll(Kn),r=0,n=t.length;r<n;r++){var i=t[r];i&&"active"!==i.getAttribute(Nn)&&(Zn(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return Gn(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Pn({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,i=t.target,e=r?new ni(i):n?new ti(i):new ri(i),new $n(e)));var e,t,r,n,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Gn(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Gn(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Gn(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++){var o=Wn(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var u=Nn+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),n+=""+s+u+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),si=/(a)(d)/gi,ui=function(e){return String.fromCharCode(e+(e>25?39:97))};function ci(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ui(t%52)+r;return(ui(t%52)+r).replace(si,"$1-$2")}var li=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},fi=function(e){return li(5381,e)};function pi(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(In(r)&&!Ln(r))return!1}return!0}var hi=fi("5.3.5"),di=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&pi(e),this.componentId=t,this.baseHash=li(hi,t),this.baseStyle=r,ai.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var o=ji(this.rules,e,t,r).join(""),a=ci(li(this.baseHash,o)>>>0);if(!t.hasNameForId(n,a)){var s=r(o,"."+a,void 0,n);t.insertRules(n,a,s)}i.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,c=li(this.baseHash,r.hash),l="",f=0;f<u;f++){var p=this.rules[f];if("string"==typeof p)l+=p;else if(p){var h=ji(p,e,t,r),d=Array.isArray(h)?h.join(""):h;c=li(c,d+f),l+=d}}if(l){var m=ci(c>>>0);if(!t.hasNameForId(n,m)){var g=r(l,"."+m,void 0,n);t.insertRules(n,m,g)}i.push(m)}}return i.join(" ")},e}(),mi=/^\s*\/\/.*$/gm,gi=[":","[",".","#"];function yi(e){var t,r,n,i,o=void 0===e?_n:e,a=o.options,s=void 0===a?_n:a,u=o.plugins,c=void 0===u?jn:u,l=new Sn(s),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,a,s,u,c,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,n,o){return 0===n&&-1!==gi.indexOf(o[r.length])||o.match(i)?e:"."+t};function d(e,o,a,s){void 0===s&&(s="&");var u=e.replace(mi,""),c=o&&a?a+" "+o+" { "+u+" }":u;return t=s,r=o,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),l(a||!o?"":o,c)}return l.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,h))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),d.hash=c.length?c.reduce((function(e,t){return t.name||Un(15),li(e,t.name)}),5381).toString():"",d}var vi=o().createContext(),bi=(vi.Consumer,o().createContext()),Ei=(bi.Consumer,new ai),wi=yi();function xi(){return(0,i.useContext)(vi)||Ei}function Si(){return(0,i.useContext)(bi)||wi}function ki(e){var t=(0,i.useState)(e.stylisPlugins),r=t[0],n=t[1],a=xi(),s=(0,i.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=(0,i.useMemo)((function(){return yi({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,i.useEffect)((function(){xn()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),o().createElement(vi.Provider,{value:s},o().createElement(bi.Provider,{value:u},e.children))}var Ai=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=wi);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return Un(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=wi),this.name+e.hash},e}(),Di=/([A-Z])/,Fi=/([A-Z])/g,Ci=/^ms-/,Pi=function(e){return"-"+e.toLowerCase()};function Oi(e){return Di.test(e)?e.replace(Fi,Pi).replace(Ci,"-ms-"):e}var Ti=function(e){return null==e||!1===e||""===e};function ji(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=ji(e[a],t,r,n))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return Ti(e)?"":Ln(e)?"."+e.styledComponentId:In(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:ji(e(t),t,r,n):e instanceof Ai?r?(e.inject(r,n),e.getName(n)):e:Tn(e)?function e(t,r){var n,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!Ti(t[a])&&(Array.isArray(t[a])&&t[a].isCss||In(t[a])?o.push(Oi(a)+":",t[a],";"):Tn(t[a])?o.push.apply(o,e(t[a],a)):o.push(Oi(a)+": "+(n=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||n in kn?String(i).trim():i+"px")+";")));return r?[r+" {"].concat(o,["}"]):o}(e):e.toString();var u}var _i=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ii(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return In(e)||Tn(e)?_i(ji(On(jn,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:_i(ji(On(e,r)))}new Set;var Ri=function(e,t,r){return void 0===r&&(r=_n),e.theme!==r.theme&&e.theme||t||r.theme},Li=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ni=/(^-|-$)/g;function Mi(e){return e.replace(Li,"-").replace(Ni,"")}var Bi=function(e){return ci(fi(e)>>>0)};function zi(e){return"string"==typeof e&&!0}var Ui=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},$i=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function qi(e,t,r){var n=e[r];Ui(t)&&Ui(n)?Vi(n,t):e[r]=t}function Vi(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];if(Ui(a))for(var s in a)$i(s)&&qi(e,a[s],s)}return e}var Hi=o().createContext();Hi.Consumer;var Gi={};function Wi(e,t,r){var n=Ln(e),a=!zi(e),s=t.attrs,u=void 0===s?jn:s,c=t.componentId,l=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Mi(e);Gi[r]=(Gi[r]||0)+1;var n=r+"-"+Bi("5.3.5"+r+Gi[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):c,f=t.displayName,p=void 0===f?function(e){return zi(e)?"styled."+e:"Styled("+Rn(e)+")"}(e):f,h=t.displayName&&t.componentId?Mi(t.displayName)+"-"+t.componentId:t.componentId||l,d=n&&e.attrs?Array.prototype.concat(e.attrs,u).filter(Boolean):u,m=t.shouldForwardProp;n&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(r,n,i){return e.shouldForwardProp(r,n,i)&&t.shouldForwardProp(r,n,i)}:e.shouldForwardProp);var g,y=new di(r,h,n?e.componentStyle:void 0),v=y.isStatic&&0===u.length,b=function(e,t){return function(e,t,r,n){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,c=e.shouldForwardProp,l=e.styledComponentId,f=e.target,p=function(e,t,r){void 0===e&&(e=_n);var n=Pn({},t,{theme:e}),i={};return r.forEach((function(e){var t,r,o,a=e;for(t in In(a)&&(a=a(n)),a)n[t]=i[t]="className"===t?(r=i[t],o=a[t],r&&o?r+" "+o:r||o):a[t]})),[n,i]}(Ri(t,(0,i.useContext)(Hi),s)||_n,t,o),h=p[0],d=p[1],m=function(e,t,r,n){var i=xi(),o=Si();return t?e.generateAndInjectStyles(_n,i,o):e.generateAndInjectStyles(r,i,o)}(a,n,h),g=r,y=d.$as||t.$as||d.as||t.as||f,v=zi(y),b=d!==t?Pn({},t,{},d):t,E={};for(var w in b)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?E.as=b[w]:(c?c(w,Fn,y):!v||Fn(w))&&(E[w]=b[w]));return t.style&&d.style!==t.style&&(E.style=Pn({},t.style,{},d.style)),E.className=Array.prototype.concat(u,l,m!==l?m:null,t.className,d.className).filter(Boolean).join(" "),E.ref=g,(0,i.createElement)(y,E)}(g,e,t,v)};return b.displayName=p,(g=o().forwardRef(b)).attrs=d,g.componentStyle=y,g.displayName=p,g.shouldForwardProp=m,g.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):jn,g.styledComponentId=h,g.target=n?e.target:e,g.withComponent=function(e){var n=t.componentId,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(t,["componentId"]),o=n&&n+"-"+(zi(e)?e:Mi(Rn(e)));return Wi(e,Pn({},i,{attrs:d,componentId:o}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Vi({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},a&&Ce()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var Qi=function(e){return function e(t,r,n){if(void 0===n&&(n=_n),!(0,En.isValidElementType)(r))return Un(1,String(r));var i=function(){return t(r,n,Ii.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,r,Pn({},n,{},i))},i.attrs=function(i){return e(t,r,Pn({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}(Wi,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Qi[e]=Qi(e)}));var Ki=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=pi(e),ai.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var i=n(ji(this.rules,t,r,n).join(""),""),o=this.componentId+e;r.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&ai.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Yi(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=Ii.apply(void 0,[e].concat(r)),s="sc-global-"+Bi(JSON.stringify(a)),u=new Ki(a,s);function c(e){var t=xi(),r=Si(),n=(0,i.useContext)(Hi),o=(0,i.useRef)(t.allocateGSInstance(s)).current;return t.server&&l(o,e,t,n,r),(0,i.useLayoutEffect)((function(){if(!t.server)return l(o,e,t,n,r),function(){return u.removeStyles(o,t)}}),[o,e,t,n,r]),null}function l(e,t,r,n,i){if(u.isStatic)u.renderStyles(e,zn,r,i);else{var o=Pn({},t,{theme:Ri(t,n,c.defaultProps)});u.renderStyles(e,o,r,i)}}return o().memo(c)}function Xi(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Ii.apply(void 0,[e].concat(r)).join(""),o=Bi(i);return new Ai(o,i)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=Jn();return"<style "+[r&&'nonce="'+r+'"',Nn+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?Un(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return Un(2);var r=((t={})[Nn]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=Jn();return n&&(r.nonce=n),[o().createElement("style",Pn({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new ai({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?Un(2):o().createElement(ki,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return Un(3)}}();const Zi=Qi;var Ji=a(5969),eo=a(8717),to=a(7918);var ro=a(213);function no(e){return new RegExp("^("+e+")$","i")}const io=new Ji;function oo(e,t,r){const n=r.skip&&no(r.skip),i=(0,ro.convert)(r.parents||(t=>t===e)),o=[];let a,s,u;var c,l,f,p;return io.reset(),c=e,f=function(e,c,l){const f=(0,eo.B)(e,{includeImageAlt:!1}),p=e.data&&e.data.hProperties&&e.data.hProperties.id,h=io.slug(p||f);if(i(l)){if(null!==c&&t&&!a&&t.test(f))return a=c+1,void(u=e);null!==c&&u&&!s&&e.depth<=u.depth&&(s=c),!s&&t||r.maxDepth&&!(e.depth<=r.maxDepth)||n&&n.test(f)||o.push({depth:e.depth,children:e.children,id:h})}},"function"==typeof(l="heading")&&"function"!=typeof f&&(p=f,f=l,l=null),(0,to.S4)(c,l,(function(e,t){var r=t[t.length-1];return f(e,r?r.children.indexOf(e):null,r)}),p),{index:a||-1,endIndex:a?s||e.children.length:-1,map:o}}var ao=a(229);function so(e,t){const{ordered:r=!1,tight:n=!1,prefix:i=null}=t,o={type:"list",ordered:r,spread:!1,children:[]};let a=Number.POSITIVE_INFINITY,s=-1;for(;++s<e.length;)e[s].depth<a&&(a=e[s].depth);for(s=-1;++s<e.length;)e[s].depth-=a-1;for(s=-1;++s<e.length;)uo(e[s],o,{ordered:r,tight:n,prefix:i});return o}function uo(e,t,r){let n=-1;if("list"===t.type)if(1===e.depth)t.children.push({type:"listItem",spread:!1,children:[{type:"paragraph",children:[{type:"link",title:null,url:"#"+(r.prefix||"")+e.id,children:co(e.children)}]}]});else if(t.children.length>0)uo(e,t.children[t.children.length-1],r);else{const n={type:"listItem",spread:!1,children:[]};t.children.push(n),uo(e,n,r)}else if(t.children[t.children.length-1]&&"list"===t.children[t.children.length-1].type)e.depth--,uo(e,t.children[t.children.length-1],r);else{const n={type:"list",ordered:r.ordered,spread:!1,children:[]};t.children.push(n),e.depth--,uo(e,n,r)}if("list"!==t.type||r.tight)t.spread=!r.tight;else for(t.spread=!1;++n<t.children.length;)if(t.children[n].children.length>1){t.spread=!0;break}}function co(e){let t=[],r=-1;if(e)for(;++r<e.length;)t=t.concat(lo(e[r]));return t}function lo(e){if("link"===e.type||"linkReference"===e.type||"footnote"===e.type||"footnoteReference"===e.type)return co(e.children);if("children"in e){const{children:t,position:r,...n}=e;return Object.assign(ao(!0,{},n),{children:co(e.children)})}const{position:t,...r}=e;return ao(!0,{},r)}var fo=a(3428);const po=new Ji;function ho(){return e=>{po.reset(),(0,fo.visit)(e,"heading",(e=>{const t=e.data||(e.data={}),r=t.hProperties||(t.hProperties={});let n=r.id;n=n?po.slug(String(n),!0):po.slug((0,eo.B)(e)),t.id=n,r.id=n}))}}var mo=function(e,t,r){var n={type:String(e)};return null!=r||"string"!=typeof t&&!Array.isArray(t)?Object.assign(n,t):r=t,Array.isArray(r)?n.children=r:null!=r&&(n.value=String(r)),n},go=vo("start"),yo=vo("end");function vo(e){return function(t){var r=t&&t.position&&t.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}const bo={}.hasOwnProperty;function Eo(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");var r,n,i,o;return r=e,i=function(e){const r=wo(e.identifier);r&&!bo.call(t,r)&&(t[r]=e)},"function"==typeof(n="definition")&&"function"!=typeof i&&(o=i,i=n,n=null),(0,to.S4)(r,n,(function(e,t){var r=t[t.length-1];return i(e,r?r.children.indexOf(e):null,r)}),o),function(e){const r=wo(e);return r&&bo.call(t,r)?t[r]:null}}function wo(e){return String(e||"").toUpperCase()}const xo={}.hasOwnProperty;function So(e,t){const r=t.data||{};return"value"in t&&!(xo.call(r,"hName")||xo.call(r,"hProperties")||xo.call(r,"hChildren"))?e.augment(t,mo("text",t.value)):e(t,"div",Do(e,t))}function ko(e,t,r){const n=t&&t.type;let i;if(!n)throw new Error("Expected node, got `"+t+"`");return i=xo.call(e.handlers,n)?e.handlers[n]:e.passThrough&&e.passThrough.includes(n)?Ao:e.unknownHandler,("function"==typeof i?i:So)(e,t,r)}function Ao(e,t){return"children"in t?{...t,children:Do(e,t)}:t}function Do(e,t){const r=[];if("children"in t){const n=t.children;let i=-1;for(;++i<n.length;){const o=ko(e,n[i],t);if(o){if(i&&"break"===n[i-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(o)?r.push(...o):r.push(o)}}}return r}var Fo=a(488);const Co={'"':"quot","&":"amp","<":"lt",">":"gt"};function Po(e,t){const r=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+Co[e]+";"}))}(function(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const o=e.charCodeAt(r);let a="";if(37===o&&(0,Fo.asciiAlphanumeric)(e.charCodeAt(r+1))&&(0,Fo.asciiAlphanumeric)(e.charCodeAt(r+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(r+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+i+1,a=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}(e||""));if(!t)return r;const n=r.indexOf(":"),i=r.indexOf("?"),o=r.indexOf("#"),a=r.indexOf("/");return n<0||a>-1&&n>a||i>-1&&n>i||o>-1&&n>o||t.test(r.slice(0,n))?r:""}function Oo(e,t){const r=[];let n=-1;for(t&&r.push(mo("text","\n"));++n<e.length;)n&&r.push(mo("text","\n")),r.push(e[n]);return t&&e.length>0&&r.push(mo("text","\n")),r}function To(e,t){const r=String(t.identifier),n=Po(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let o;-1===i?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,o=e.footnoteOrder.length):(e.footnoteCounts[r]++,o=i+1);const a=e.footnoteCounts[r];return e(t,"sup",[e(t.position,"a",{href:"#"+e.clobberPrefix+"fn-"+n,id:e.clobberPrefix+"fnref-"+n+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[mo("text",String(o))])])}var jo=a(4651);function _o(e,t){const r=t.referenceType;let n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return mo("text","!["+t.alt+n);const i=Do(e,t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift(mo("text","["));const a=i[i.length-1];return a&&"text"===a.type?a.value+=n:i.push(mo("text",n)),i}function Io(e){const t=e.spread;return null==t?e.children.length>1:t}const Ro={blockquote:function(e,t){return e(t,"blockquote",Oo(Do(e,t),!0))},break:function(e,t){return[e(t,"br"),mo("text","\n")]},code:function(e,t){const r=t.value?t.value+"\n":"",n=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),i={};n&&(i.className=["language-"+n]);const o=e(t,"code",i,[mo("text",r)]);return t.meta&&(o.data={meta:t.meta}),e(t.position,"pre",[o])},delete:function(e,t){return e(t,"del",Do(e,t))},emphasis:function(e,t){return e(t,"em",Do(e,t))},footnoteReference:To,footnote:function(e,t){const r=e.footnoteById;let n=1;for(;n in r;)n++;const i=String(n);return r[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},To(e,{type:"footnoteReference",identifier:i,position:t.position})},heading:function(e,t){return e(t,"h"+t.depth,Do(e,t))},html:function(e,t){return e.dangerous?e.augment(t,mo("raw",t.value)):null},imageReference:function(e,t){const r=e.definition(t.identifier);if(!r)return _o(e,t);const n={src:jo(r.url||""),alt:t.alt};return null!==r.title&&void 0!==r.title&&(n.title=r.title),e(t,"img",n)},image:function(e,t){const r={src:jo(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(t,"img",r)},inlineCode:function(e,t){return e(t,"code",[mo("text",t.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,t){const r=e.definition(t.identifier);if(!r)return _o(e,t);const n={href:jo(r.url||"")};return null!==r.title&&void 0!==r.title&&(n.title=r.title),e(t,"a",n,Do(e,t))},link:function(e,t){const r={href:jo(t.url)};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(t,"a",r,Do(e,t))},listItem:function(e,t,r){const n=Do(e,t),i=r?function(e){let t=e.spread;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Io(r[n]);return Boolean(t)}(r):Io(t),o={},a=[];if("boolean"==typeof t.checked){let r;n[0]&&"element"===n[0].type&&"p"===n[0].tagName?r=n[0]:(r=e(null,"p",[]),n.unshift(r)),r.children.length>0&&r.children.unshift(mo("text"," ")),r.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),o.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const e=n[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push(mo("text","\n")),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}const u=n[n.length-1];return!u||!i&&"tagName"in u&&"p"===u.tagName||a.push(mo("text","\n")),e(t,"li",o,a)},list:function(e,t){const r={},n=t.ordered?"ol":"ul",i=Do(e,t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++o<i.length;){const e=i[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}return e(t,n,r,Oo(i,!0))},paragraph:function(e,t){return e(t,"p",Do(e,t))},root:function(e,t){return e.augment(t,mo("root",Oo(Do(e,t))))},strong:function(e,t){return e(t,"strong",Do(e,t))},table:function(e,t){const r=t.children;let n=-1;const i=t.align||[],o=[];for(;++n<r.length;){const a=r[n].children,s=0===n?"th":"td";let u=t.align?i.length:a.length;const c=[];for(;u--;){const t=a[u];c[u]=e(t,s,{align:i[u]},t?Do(e,t):[])}o[n]=e(r[n],"tr",Oo(c,!0))}return e(t,"table",Oo([e(o[0].position,"thead",Oo([o[0]],!0))].concat(o[1]?e({start:go(o[1]),end:yo(o[o.length-1])},"tbody",Oo(o.slice(1),!0)):[]),!0))},text:function(e,t){return e.augment(t,mo("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))},thematicBreak:function(e,t){return e(t,"hr")},toml:Lo,yaml:Lo,definition:Lo,footnoteDefinition:Lo};function Lo(){return null}const No={}.hasOwnProperty;function Mo(e,t){const r=function(e,t){const r=t||{},n=r.allowDangerousHtml||!1,i={};return a.dangerous=n,a.clobberPrefix=void 0===r.clobberPrefix||null===r.clobberPrefix?"user-content-":r.clobberPrefix,a.footnoteLabel=r.footnoteLabel||"Footnotes",a.footnoteBackLabel=r.footnoteBackLabel||"Back to content",a.definition=Eo(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.augment=o,a.handlers={...Ro,...r.handlers},a.unknownHandler=r.unknownHandler,a.passThrough=r.passThrough,(0,fo.visit)(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();No.call(i,t)||(i[t]=e)})),a;function o(e,t){if(e&&"data"in e&&e.data){const r=e.data;r.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=r.hName),"element"===t.type&&r.hProperties&&(t.properties={...t.properties,...r.hProperties}),"children"in t&&t.children&&r.hChildren&&(t.children=r.hChildren)}if(e){const n="type"in e?e:{position:e};(r=n)&&r.position&&r.position.start&&r.position.start.line&&r.position.start.column&&r.position.end&&r.position.end.line&&r.position.end.column&&(t.position={start:go(n),end:yo(n)})}var r;return t}function a(e,t,r,n){return Array.isArray(r)&&(n=r,r={}),o(e,{type:"element",tagName:t,properties:r||{},children:n||[]})}}(e,t),n=ko(r,e,null),i=function(e){let t=-1;const r=[];for(;++t<e.footnoteOrder.length;){const n=e.footnoteById[e.footnoteOrder[t].toUpperCase()];if(!n)continue;const i=Do(e,n),o=String(n.identifier),a=Po(o.toLowerCase());let s=0;const u=[];for(;++s<=e.footnoteCounts[o];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(t)}const c=i[i.length-1];if(c&&"element"===c.type&&"p"===c.tagName){const e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...u)}else i.push(...u);const l={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:Oo(i,!0)};n.position&&(l.position=n.position),r.push(l)}return 0===r.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[mo("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:Oo(r,!0)},{type:"text",value:"\n"}]}}(r);return i&&n.children.push(mo("text","\n"),i),Array.isArray(n)?{type:"root",children:n}:n}var Bo=a(4799),zo="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Uo(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent&&e.attachEvent("on".concat(t),(function(){r(window.event)}))}function $o(e,t){for(var r=t.slice(0,t.length-1),n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function qo(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),r=t.lastIndexOf("");r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}for(var Vo={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":zo?173:189,"=":zo?61:187,";":zo?59:186,"'":222,"[":219,"]":221,"\\":220},Ho={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Go={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Wo={16:!1,18:!1,17:!1,91:!1},Qo={},Ko=1;Ko<20;Ko++)Vo["f".concat(Ko)]=111+Ko;var Yo=[],Xo="all",Zo=[],Jo=function(e){return Vo[e.toLowerCase()]||Ho[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function ea(e){Xo=e||"all"}function ta(){return Xo||"all"}var ra=function(e){var t=e.key,r=e.scope,n=e.method,i=e.splitKey,o=void 0===i?"+":i;qo(t).forEach((function(e){var t=e.split(o),i=t.length,a=t[i-1],s="*"===a?"*":Jo(a);if(Qo[s]){r||(r=ta());var u=i>1?$o(Ho,t):[];Qo[s]=Qo[s].map((function(e){return(!n||e.method===n)&&e.scope===r&&function(e,t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,i=!0,o=0;o<r.length;o++)-1===n.indexOf(r[o])&&(i=!1);return i}(e.mods,u)?{}:e}))}}))};function na(e,t,r){var n;if(t.scope===r||"all"===t.scope){for(var i in n=t.mods.length>0,Wo)Object.prototype.hasOwnProperty.call(Wo,i)&&(!Wo[i]&&t.mods.indexOf(+i)>-1||Wo[i]&&-1===t.mods.indexOf(+i))&&(n=!1);(0!==t.mods.length||Wo[16]||Wo[18]||Wo[17]||Wo[91])&&!n&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function ia(e){var t=Qo["*"],r=e.keyCode||e.which||e.charCode;if(oa.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===Yo.indexOf(r)&&229!==r&&Yo.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var r=Go[t];e[t]&&-1===Yo.indexOf(r)?Yo.push(r):!e[t]&&Yo.indexOf(r)>-1?Yo.splice(Yo.indexOf(r),1):"metaKey"===t&&e[t]&&3===Yo.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Yo=Yo.slice(Yo.indexOf(r))))})),r in Wo){for(var n in Wo[r]=!0,Ho)Ho[n]===r&&(oa[n]=!0);if(!t)return}for(var i in Wo)Object.prototype.hasOwnProperty.call(Wo,i)&&(Wo[i]=e[Go[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Yo.indexOf(17)&&Yo.push(17),-1===Yo.indexOf(18)&&Yo.push(18),Wo[17]=!0,Wo[18]=!0);var o=ta();if(t)for(var a=0;a<t.length;a++)t[a].scope===o&&("keydown"===e.type&&t[a].keydown||"keyup"===e.type&&t[a].keyup)&&na(e,t[a],o);if(r in Qo)for(var s=0;s<Qo[r].length;s++)if(("keydown"===e.type&&Qo[r][s].keydown||"keyup"===e.type&&Qo[r][s].keyup)&&Qo[r][s].key){for(var u=Qo[r][s],c=u.splitKey,l=u.key.split(c),f=[],p=0;p<l.length;p++)f.push(Jo(l[p]));f.sort().join("")===Yo.sort().join("")&&na(e,u,o)}}}function oa(e,t,r){Yo=[];var n=qo(e),i=[],o="all",a=document,s=0,u=!1,c=!0,l="+";for(void 0===r&&"function"==typeof t&&(r=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(o=t.scope),t.element&&(a=t.element),t.keyup&&(u=t.keyup),void 0!==t.keydown&&(c=t.keydown),"string"==typeof t.splitKey&&(l=t.splitKey)),"string"==typeof t&&(o=t);s<n.length;s++)i=[],(e=n[s].split(l)).length>1&&(i=$o(Ho,e)),(e="*"===(e=e[e.length-1])?"*":Jo(e))in Qo||(Qo[e]=[]),Qo[e].push({keyup:u,keydown:c,scope:o,mods:i,shortcut:n[s],method:r,key:n[s],splitKey:l});void 0!==a&&!function(e){return Zo.indexOf(e)>-1}(a)&&window&&(Zo.push(a),Uo(a,"keydown",(function(e){ia(e)})),Uo(window,"focus",(function(){Yo=[]})),Uo(a,"keyup",(function(e){ia(e),function(e){var t=e.keyCode||e.which||e.charCode,r=Yo.indexOf(t);if(r>=0&&Yo.splice(r,1),e.key&&"meta"===e.key.toLowerCase()&&Yo.splice(0,Yo.length),93!==t&&224!==t||(t=91),t in Wo)for(var n in Wo[t]=!1,Ho)Ho[n]===t&&(oa[n]=!1)}(e)})))}var aa={setScope:ea,getScope:ta,deleteScope:function(e,t){var r,n;for(var i in e||(e=ta()),Qo)if(Object.prototype.hasOwnProperty.call(Qo,i))for(r=Qo[i],n=0;n<r.length;)r[n].scope===e?r.splice(n,1):n++;ta()===e&&ea(t||"all")},getPressedKeyCodes:function(){return Yo.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=Jo(e)),-1!==Yo.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,r=t.tagName,n=!0;return!t.isContentEditable&&("INPUT"!==r&&"TEXTAREA"!==r&&"SELECT"!==r||t.readOnly)||(n=!1),n},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&ra(e)}));else if("object"==typeof e)e.key&&ra(e);else if("string"==typeof e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=r[0],o=r[1];"function"==typeof i&&(o=i,i=""),ra({key:e,scope:i,method:o,splitKey:"+"})}}else Object.keys(Qo).forEach((function(e){return delete Qo[e]}))}};for(var sa in aa)Object.prototype.hasOwnProperty.call(aa,sa)&&(oa[sa]=aa[sa]);if("undefined"!=typeof window){var ua=window.hotkeys;oa.noConflict=function(e){return e&&window.hotkeys===oa&&(window.hotkeys=ua),oa},window.hotkeys=oa}const ca=oa;ca.filter=function(){return!0};var la=function(e,t){var r=e.target,n=r&&r.tagName;return Boolean(n&&t&&t.includes(n))};function fa(e,t,r,n){r instanceof Array&&(n=r,r=void 0);var o=r||{},a=o.enableOnTags,s=o.filter,u=o.keyup,c=o.keydown,l=o.filterPreventDefault,f=void 0===l||l,p=o.enabled,h=void 0===p||p,d=o.enableOnContentEditable,m=void 0!==d&&d,g=(0,i.useRef)(null),y=(0,i.useCallback)((function(e,r){var n;return s&&!s(e)?!f:!!(la(e,["INPUT","TEXTAREA","SELECT"])&&!la(e,a)||null!=(n=e.target)&&n.isContentEditable&&!m)||(null===g.current||document.activeElement===g.current)&&(t(e,r),!0)}),n?[g,a,s].concat(n):[g,a,s]);return(0,i.useEffect)((function(){if(h)return u&&!0!==c&&(r.keydown=!1),ca(e,r||{},y),function(){return ca.unbind(e,y)};ca.unbind(e,y)}),[y,e,h]),g}ca.isPressed;function pa(){return pa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pa.apply(this,arguments)}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var ha="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect,da={status:"not-requested",loading:!1,result:void 0,error:void 0},ma={status:"loading",loading:!0,result:void 0,error:void 0},ga=function(){},ya={initialState:function(e){return e&&e.executeOnMount?ma:da},executeOnMount:!0,executeOnUpdate:!0,setLoading:function(e){return ma},setResult:function(e,t){return{status:"success",loading:!1,result:e,error:void 0}},setError:function(e,t){return{status:"error",loading:!1,result:void 0,error:e}},onSuccess:ga,onError:ga},va=function(e,t,r){var n,o=function(e){return pa({},ya,{},e)}(r),a=(0,i.useState)(null),s=a[0],u=a[1],c=function(e){var t=(0,i.useState)((function(){return e.initialState(e)})),r=t[0],n=t[1],o=(0,i.useCallback)((function(){return n(e.initialState(e))}),[n,e]),a=(0,i.useCallback)((function(){return n(e.setLoading(r))}),[r,n]),s=(0,i.useCallback)((function(t){return n(e.setResult(t,r))}),[r,n]),u=(0,i.useCallback)((function(t){return n(e.setError(t,r))}),[r,n]),c=n,l=(0,i.useCallback)((function(e){return c(pa({},r,{},e))}),[r,c]);return{value:r,set:c,merge:l,reset:o,setLoading:a,setResult:s,setError:u}}(o),l=(n=(0,i.useRef)(!1),(0,i.useEffect)((function(){return n.current=!0,function(){n.current=!1}}),[]),function(){return n.current}),f=function(){var e=(0,i.useRef)(null);return{set:function(t){return e.current=t},get:function(){return e.current},is:function(t){return e.current===t}}}(),p=function(e){return l()&&f.is(e)},h=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=e.apply(void 0,r);if(u(r),i instanceof Promise)return f.set(i),c.setLoading(),i.then((function(e){p(i)&&c.setResult(e),o.onSuccess(e,{isCurrent:function(){return f.is(i)}})}),(function(e){p(i)&&c.setError(e),o.onError(e,{isCurrent:function(){return f.is(i)}})})),i;var a=i;return c.setResult(a),Promise.resolve(a)},d=!l();return(0,i.useEffect)((function(){d?o.executeOnMount&&h.apply(void 0,t):o.executeOnUpdate&&h.apply(void 0,t)}),t),pa({},c.value,{set:c.set,merge:c.merge,reset:c.reset,execute:h,currentPromise:f.get(),currentParams:s})};function ba(e,t,r){return va(e,t,r)}var Ea=function(e,t){return va(e,[],pa({},t,{executeOnMount:!1,executeOnUpdate:!1}))},wa=function(e){var t=e.value,r=e.fetchMore,n=e.merge,o=e.isEnd,a=function(e){var t=(0,i.useRef)(e);return ha((function(){t.current=e})),function(){return t.current}}(t),s=(0,i.useState)(!1),u=s[0],c=s[1],l=(0,i.useRef)(0),f=Ea((function(){try{var e=a();if("success"!==e.status)throw new Error("Can't fetch more if the original fetch is not a success");if("loading"===f.status)throw new Error("Can't fetch more, because we are already fetching more!");l.current=l.current+1;var i=l.current;return Promise.resolve(r(e.result)).then((function(r){var s=e.status===a().status&&e.result===a().result,u=l.current===i;return s&&u&&(t.merge({result:n(t.result,r)}),o(r)&&c(!0)),r}))}catch(e){return Promise.reject(e)}})),p="success"!==t.status;return(0,i.useEffect)((function(){p&&(f.reset(),c(!1))}),[p]),{canFetchMore:"success"===t.status&&"loading"!==f.status,loading:f.loading,status:f.status,fetchMore:f.execute,isEnd:u}};window.TopWritePlugins={};class xa extends HTMLElement{connectedCallback(){this.addEventListener("click",(e=>{if(e.preventDefault(),!this.isContentEditable){const e=this.attributes.getNamedItem("src");let t=null==e?void 0:e.value;if(t){let e=document.createElement("a");e.download=this.textContent||"",e.style.display="none",e.target="_blank",e.href=r.resolve(location.href,t),document.body.appendChild(e),e.click(),document.body.removeChild(e)}}}))}}function Sa(e){let{component:t,defaultComponent:r=i.Fragment,props:o,children:a=null}=e;return null===t?null:(0,n.jsx)(i.Suspense,{fallback:null,children:(0,n.jsx)(t,{props:o,Component:r,children:a})})}customElements.define("t-attachment",xa);var ka=(e,t)=>e.filter((e=>{let{descriptor:r}=e;return t===r.role})).sort(((e,t)=>{let{descriptor:{priority:r=0}}=e,{descriptor:{priority:n=0}}=t;return r-n})).map((e=>e.Component));function Aa(e){let{props:t,role:r,component:o}=e;const a=o?(0,i.createElement)(o,t):null,s=Ge("components");return(0,i.useMemo)((()=>ka(s,r)),[s,r]).reduce(((e,r)=>(0,n.jsx)(Sa,{defaultComponent:o,component:r,props:t,children:e})),a)}function Da(e){let{props:t,component:r,role:o}=e;const a=Ge("components"),s=(0,i.useMemo)((()=>ka(a,o)),[a,o]);return(0,n.jsx)(n.Fragment,{children:s.map(((e,i)=>(0,n.jsx)(Sa,{defaultComponent:r,component:e,props:t},i)))})}async function Fa(e){let t="topwrite-plugin-".concat(e.name);if(!Qe().isDefined(t)){let r="".concat(e.host,"/").concat(e.main);try{await Qe()(r,t,{returnPromise:!0})}catch{console.warn("插件".concat(e.name,"加载失败"))}}}function Ca(e,t){let r;return r=t instanceof Array?{Component:t[0],descriptor:{role:e,...t[1]}}:{Component:t,descriptor:{role:e}},r}function Pa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage";if("undefined"==typeof window)throw new Error("Browser storage is not available on NodeJS / TopWrite SSR process");if("none"===e)return null;try{return window[e]}catch(e){return null}}const Oa={get:()=>null,set:()=>{},del:()=>{}},Ta=(e,t)=>{const r=Pa(null==t?void 0:t.persistence);return null===r?Oa:{get:()=>r.getItem(e),set:t=>r.setItem(e,t),del:()=>r.removeItem(e)}};function ja(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage";const t=Pa(e);if(!t)return[];const r=[];for(let e=0;e<t.length;e+=1){const n=t.key(e);null!==n&&r.push(n)}return r}function _a(){const e=Ge("book");if(!e)throw new Error("book object not initialized");return e}function Ia(){const{config:e}=_a();return e.getValue("themeConfig")}const Ra="light",La="dark";function Na(e){document.documentElement.setAttribute("data-theme",e)}const Ma=(0,i.createContext)(void 0);function Ba(e){let{children:t,context:r}=e;const{isDarkTheme:o,setLightTheme:a,setDarkTheme:s}=(e=>{const t=_a(),r=(0,i.useMemo)((()=>Ta("".concat(e,".").concat(t.id,".theme"))),[t.id,e]),{defaultMode:n}=Ia(),[o,a]=(0,i.useState)((()=>{const e=(e=>e===La?La:Ra)(r.get()||n);return Na(e),e}));(0,i.useEffect)((()=>{Na(o)}),[o]);const s=(0,i.useCallback)((()=>{a(Ra),r.set(Ra)}),[r]),u=(0,i.useCallback)((()=>{a(La),r.set(La)}),[r]);return{isDarkTheme:o===La,setLightTheme:s,setDarkTheme:u}})(r);return(0,n.jsx)(Ma.Provider,{value:{isDarkTheme:o,setLightTheme:a,setDarkTheme:s},children:t})}function za(){const e=(0,i.useContext)(Ma);return null==e?{isDarkTheme:!1,setLightTheme:be.noop,setDarkTheme:be.noop}:e}var Ua;function $a(){const{primaryColor:e}=Ia();return(0,n.jsx)(qa,{primaryColor:e})}const qa=Yi(Ua||(Ua=bn(["\n :root {\n --ttw-primary-color: ",";\n }\n\n //TODO 转移到异步加载\n //附件\n t-attachment {\n color: var(--ttw-primary-color);\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n overflow: hidden;\n padding: 0 4px;\n vertical-align: bottom;\n margin: 0 1px;\n\n &:before {\n content: '';\n width: 18px;\n height: 18px;\n background-color: var(--ttw-primary-color);\n mask: url(\"",'") no-repeat center;\n margin-right: 4px;\n }\n\n &:after {\n content: "(" attr(size) ")";\n margin-left: 4px;\n display: none;\n }\n\n &[size]:after {\n display: inline;\n }\n\n &:hover {\n background: rgba(0, 0, 0, .1);\n }\n\n &:read-write {\n cursor: text;\n }\n }\n'])),(e=>e.primaryColor),"data:image/svg+xml,%3csvg t='1642406480574' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='2254' width='16' height='16'%3e %3cpath d='M874.666667 467.2c-10.666667-10.666667-29.866667-12.8-42.666667 0l-343.466667 341.333333c-74.666667 74.666667-198.4 74.666667-275.2 0-36.266667-36.266667-57.6-85.333333-57.6-136.533333s19.2-100.266667 57.6-136.533333L556.8 192c46.933333-46.933333 121.6-46.933333 168.533333 0 23.466667 23.466667 34.133333 53.333333 34.133334 83.2 0 32-12.8 61.866667-34.133334 83.2L384 704c-17.066667 17.066667-44.8 17.066667-64 0-8.533333-8.533333-12.8-19.2-12.8-32s4.266667-23.466667 12.8-32l317.866667-315.733333c10.666667-10.666667 12.8-29.866667 0-42.666667-10.666667-12.8-29.866667-12.8-42.666667 0L277.333333 597.333333c-19.2 19.2-29.866667 46.933333-29.866666 74.666667S258.133333 725.333333 277.333333 746.666667c40.533333 40.533333 106.666667 40.533333 147.2 0L768 403.2c34.133333-34.133333 53.333333-78.933333 53.333333-125.866667s-19.2-93.866667-53.333333-125.866666a178.986667 178.986667 0 0 0-253.866667 0l-341.333333 341.333333c-46.933333 46.933333-74.666667 110.933333-74.666667 179.2s25.6 132.266667 74.666667 179.2c49.066667 49.066667 115.2 74.666667 179.2 74.666667s130.133333-25.6 179.2-74.666667l343.466667-341.333333c10.666667-12.8 10.666667-32 0-42.666667z' p-id='2255'%3e%3c/path%3e%3c/svg%3e"),Va=new class extends Be{constructor(){super(...arguments),Ye(this,"initialState",[])}*register(e){yield this.setState((t=>t.push(e)))}},Ha=new class extends Be{};var Ga=Object.freeze({__proto__:null,components:Va,options:Ha});class Wa{constructor(e,t,r){Ye(this,"name",void 0),Ye(this,"book",void 0),Ye(this,"models",{...Ga}),Ye(this,"components",[]),Ye(this,"activates",[]),Ye(this,"plugins",[]),Ye(this,"initialState",void 0),this.name=e,this.book=t,this.initialState=r}registerComponents(e,t){for(let[r,n]of Object.entries(e))n&&("plugin:setting"===r&&t&&(r="plugin:setting:".concat(t)),this.components.push(Ca(r,n)))}registerModels(e,t){for(const[r,n]of Object.entries(e))t?this.models["@".concat(t,"@").concat(r)]=n:this.models[r]=n}async registerPlugins(e){this.plugins=e;for(const t of e)try{this.registerComponents(t.components,t.name),this.registerModels(t.models,t.name),t.activate&&this.activates.push(t.activate),t.register&&await t.register(this.name,this.book)}catch(e){console.log(e)}}async createApp(e){const t=await this.createIntl(e),r=qe(this.models,{book:this.book,components:this.components,...this.initialState}),i=()=>{for(const e of this.activates)e(this.name);return null};return e=>{let{children:o}=e;return(0,n.jsx)(Ze,{value:t,children:(0,n.jsx)(He,{store:r,children:(0,n.jsxs)(Ba,{context:this.name,children:[(0,n.jsx)(i,{}),(0,n.jsx)($a,{}),o]})})})}}async createIntl(e){const t=navigator.language,r={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},n=await this.plugins.reduce((async(e,r)=>{const n=await e;return r.localize?Object.assign({},n,await r.localize(t)):n}),e(t));return yn({locale:t,messages:n,defaultLocale:"en"},r)}}async function Qa(e,r,n,i,o,a){const s=await async function(e,r){const n=Object.entries(window.TopWritePlugins).filter((e=>{let[,t]=e;return!!t.meta})).map((e=>{let[,t]=e;return t.meta}));if(r){const i=(0,t.NC)(r);try{const r=Object.keys(window.TopWritePlugins);let o=await i.getInstalled(e);const a=Object.entries(window.TopWritePlugins).some((e=>{let[,t]=e;return t.meta&&"theme"===t.meta.type}));o=o.filter((e=>{var t;return!(null!==(t=window.TopWritePlugins[e.name])&&void 0!==t&&t.meta)}));const s=sessionStorage.getItem("PLUGIN_DEV"),u=Ke.parse(window.location.search);if("dev"in u||s){const e=u.dev||s||8080;try{const r=(await t.WY.get("http://localhost:".concat(e,"/meta"),{raxConfig:{retry:0}})).data;o=o.filter((e=>e.name!==r.name&&!("theme"===r.type&&"theme"===e.type))),o.unshift(r),sessionStorage.setItem("PLUGIN_DEV",String(e))}catch(e){console.warn(e),sessionStorage.removeItem("PLUGIN_DEV")}}const c=[];for(let e of o)e.disabled||r.includes(e.name)||a&&"theme"===e.type||c.push(Fa(e));await Promise.all(c),n.push(...o)}catch{}}return window.TopWritePluginsMeta=n,Object.values(window.TopWritePlugins||{})}(r,a),u=new Wa(e,r,i);return u.registerModels(n),await u.registerPlugins(s),await u.createApp(o)}function Ka(e){return function(e){const{actions:t}=(0,i.useContext)(Ve);return e?t[e]:t}(e)}function Ya(e){return Ge(e)}function Xa(e){return[Ya(e),Ka(e)]}function Za(e,t,r){const n="function"==typeof t;n||(r=t),(0,i.useEffect)((()=>{let r;const i=e();return Promise.resolve(i).then((e=>{r=e})),()=>{n&&t(r)}}),r)}function Ja(e){const t=(0,i.useRef)(null),[r,n]=(0,i.useState)(e);return(0,i.useEffect)((()=>{t.current&&(t.current(),t.current=null)}),[r]),[r,(e,r)=>{t.current="function"==typeof r?r:null,n(e)}]}function es(){const e=document.currentScript;if(!e)throw new Error("Automatic publicPath is not supported in this browser");return e.src.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}class ts{constructor(e){let{name:t,meta:r,models:n={},components:i={},activate:o,register:a,localize:s,config:u}=e;Ye(this,"name",void 0),Ye(this,"config",void 0),Ye(this,"localize",void 0),Ye(this,"models",void 0),Ye(this,"components",void 0),Ye(this,"activate",void 0),Ye(this,"register",void 0),Ye(this,"meta",void 0),this.name=t,this.meta=r,this.models=n,this.components=i,this.activate=o,this.register=a,this.localize=s,this.config=u}}const rs=(0,ro.convert)("root"),ns=(0,ro.convert)("element"),is=(0,ro.convert)("text");function os(e){return e.filter((e=>!(is(e)&&"\n"===e.value)))}function as(e,t,r){const n=t.properties,i=t.tagName,o={...n};r.prefix&&(r.key++,o.key=r.prefix+r.key);const a=[],s=os(t.children),u=s?s.length:0;let c=-1;for(;++c<u;){const t=s[c];ns(t)?a.push(as(e,t,r)):is(t)&&a.push(t.value)}return e.call(t,i,o,a.length>0?a:void 0)}function ss(e,t){let{extensions:r=[],creator:n=o().createElement}=t;const i={allowDangerousHtml:!1,handlers:{...r.reduce(((e,t)=>Object.assign(e,t)),{}),textDirective:(e,t)=>e({},"textDirective",{name:t.name,attributes:t.attributes},Do(e,t)),leafDirective:(e,t)=>e({},"leafDirective",t.attributes),containerDirective:(e,t)=>e({},"containerDirective",t.attributes,Do(e,t)),heading(e,t){const r=e(t,"heading",Do(e,t));return r.properties={...r.properties,depth:t.depth},r}},unknownHandler:()=>null},a=Mo(e,i);if(rs(a))return os(a.children).map(((e,t)=>ns(e)?as(n,e,{key:0,prefix:"h-".concat(t,"-")}):is(e)?e.value:void 0));if(!ns(a))throw new Error("Expected root or element, not `"+(a&&a.type||a)+"`");return as(n,a,{key:0,prefix:"h-"})}const us=e=>{let{value:t}=e;return(0,n.jsx)("pre",{children:(0,n.jsx)("code",{children:t})})},cs=e=>{let{value:t}=e;return(0,n.jsx)("code",{children:t})},ls=["video","audio","attachment"];function fs(e){let{depth:t=5,...r}=e;return(0,i.createElement)("h".concat(t),r)}const ps={"x-inline":function(e){const{name:t,value:r}=e;return(0,n.jsx)(Aa,{role:"inline:".concat(t),props:{type:"inline",name:t,value:r},component:cs})},"x-block":function(e){const{name:t,value:r,parameter:i}=e;return(0,n.jsx)(Aa,{role:"block:".concat(t),props:{type:"block",name:t,parameter:i,value:r},component:us})},textDirective:function(e){const{name:t,attributes:r,children:i,components:o={}}=e;if(!ls.includes(t))return null;let a=t;return customElements.get("t-".concat(t))&&(a="t-".concat(t)),(0,n.jsx)(Aa,{role:"html:".concat(t),props:{...r,children:i},component:o[t]||a})},heading:function(e){let{components:t={},...r}=e;return(0,n.jsx)(Aa,{role:"html:heading",props:r,component:t.heading||fs})}};var hs;const ds=e=>{let{tagName:t,components:r={},...o}=e;return ps[t]?(0,i.createElement)(ps[t],{...o,components:r}):Bo.includes(t)?(0,n.jsx)(Aa,{role:"html:".concat(t),props:o,component:r[t]||t}):(console.warn("unknown tagName: ".concat(t)),null)};function ms(e){let{as:r=i.Fragment,children:o,components:a={},aside:s=!0,header:u,footer:c,css:l,...f}=e;const p=(0,i.useMemo)((()=>(0,t.JH)().use(ho).freeze()),[]);return(0,i.useMemo)((()=>{try{const e=p.data("toHastExtensions"),t=p.runSync(p.parse(o));let h=null;if(s){const r=function(e,t){const r=t||{},n=r.heading?no(r.heading):null,i=oo(e,n,r);return{index:n?i.index:null,endIndex:n?i.endIndex:null,map:i.map.length>0?so(i.map,r):null}}(t).map;r&&(h=ss(r,{extensions:e}))}const d=ss(t,{extensions:e,creator:(e,t,r)=>(0,i.createElement)(ds,{...t,tagName:e,components:a},r)});return(0,i.createElement)(r,f,(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("article",{children:[u,(0,n.jsx)(gs,{css:l,children:d}),c]}),h&&(0,n.jsx)("aside",{children:h})]}))}catch(e){return console.log(e),null}}),[o,s,p,l])}const gs=Zi.section(hs||(hs=bn(["\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n line-height: 1.2;\n word-wrap: break-word;\n\n & > *:first-child {\n margin-top: 0 !important;\n }\n\n & > *:last-child {\n margin-bottom: 0 !important;\n }\n\n h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, table {\n margin: 1em 0;\n line-height: 1.2;\n padding: 0;\n\n &:last-child {\n margin-bottom: 0 !important;\n }\n\n &:first-child {\n margin-top: 0 !important;\n }\n }\n\n p {\n margin: 0;\n line-height: 2;\n }\n\n h1, h2, h3, h4, h5, h6 {\n font-weight: normal;\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n h1 {\n font-size: 2em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee;\n padding-bottom: .5em;\n }\n\n h2 {\n padding-bottom: .4em;\n font-size: 1.3em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee\n }\n\n h3 {\n font-size: 1.2em;\n line-height: 1.2;\n }\n\n h4 {\n font-size: 1.1em;\n line-height: 1.2;\n }\n\n h5 {\n font-size: 1em;\n line-height: 1.2;\n }\n\n hr {\n border: 0;\n border-bottom: 1px solid #eeeeee;\n margin-bottom: 0.5em;\n }\n\n ul {\n padding-left: 2em;\n\n ul {\n margin: 0;\n }\n\n &.task-list {\n list-style: none;\n\n li {\n position: relative;\n\n .icon.square {\n position: absolute;\n left: -1.75em;\n top: 1px;\n }\n }\n }\n }\n\n ol {\n padding-left: 2em;\n }\n\n li {\n line-height: 2;\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n code {\n display: inline-block;\n border-radius: 4px;\n padding: .2em .4em;\n background-color: #f7f7f7;\n word-break: break-all;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n white-space: pre;\n line-height: 1.3;\n margin: -.2em .4em;\n }\n\n pre {\n padding: 1.05em;\n overflow: auto;\n line-height: 1.45;\n background-color: #f7f7f7;\n border: 0;\n border-radius: 3px;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n }\n\n\n pre > code {\n display: inline;\n max-width: 100%;\n padding: 0;\n margin: 0;\n overflow: initial;\n line-height: inherit;\n background-color: rgba(0, 0, 0, 0);\n border: 0;\n tab-size: 4;\n }\n\n p {\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n table {\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n line-height: 1.8;\n border-spacing: 0;\n\n th {\n text-align: left;\n }\n\n th, td {\n border: 1px solid #e0e0e0;\n padding: 3px 12px;\n height: 34px;\n }\n\n tr:hover td {\n background-color: #f1f1f1;\n }\n }\n\n img {\n max-width: 100%;\n display: inline-block;\n padding: 3px;\n vertical-align: middle;\n }\n\n a {\n text-decoration: none;\n color: var(--ttw-primary-color);\n\n &:hover {\n text-decoration: underline;\n }\n }\n\n blockquote {\n padding: 5px 5px 5px 15px;\n color: #777777;\n border-left: 4px solid #dddddd;\n\n &.info {\n border-left-color: #5bc0de;\n color: #5bc0de;\n background-color: #f4f8fa;\n }\n\n &.warning {\n background-color: #fcf8f2;\n border-color: #f0ad4e;\n color: #f0ad4e;\n }\n\n &.danger {\n color: #d9534f;\n background-color: #fdf7f7;\n border-color: #d9534f;\n }\n\n &.success {\n background-color: #f3f8f3;\n border-color: #50af51;\n color: #50af51;\n }\n }\n\n video {\n width: 100%;\n }\n\n audio {\n width: 100%;\n }\n\n html[data-theme=dark] & {\n code {\n background-color: #333437;\n }\n\n pre {\n background-color: #333437;\n }\n\n h1, h2, hr {\n border-color: #404040;\n }\n\n th, td {\n border-color: #404040;\n }\n\n tr:hover td {\n background-color: #333437;\n }\n }\n\n ","\n"])),(e=>e.css));function ys(e){const t=(0,i.useRef)();return(0,i.useEffect)((()=>{t.current=e}),[e]),t.current}function vs(e){const t=(0,i.useRef)(e);(0,i.useEffect)((()=>(document.title=e,()=>{document.title=t.current})),[e])}function bs(e,t,r){const n=(0,i.useRef)(e),o=(0,i.useRef)((0,be.debounce)(e,t,r));return(0,i.useEffect)((()=>{n.current=e})),(0,i.useEffect)((()=>{o.current=(0,be.debounce)((function(){n.current(...arguments)}),t,r)}),[t,r]),o.current}function Es(){return Ge("options")}const ws=new EventTarget;function xs(){return ws}function Ss(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.document;"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/html"));const t=e.querySelector('script[type="application/payload+json"]');if(t)try{return JSON.parse(t.innerHTML)}catch{return{}}}var ks=Object.freeze({__proto__:null,encode:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return window.btoa(unescape(encodeURIComponent(e)))}catch(e){if(t)throw e;return""}},decode:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return decodeURIComponent(escape(window.atob(e)))}catch(e){if(t)throw e;return""}}});function As(){return"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)}const Ds="1.0.0";function Fs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cs(){return Cs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cs.apply(this,arguments)}t.$B.prototype[se]=!0;var Ps,Os=Ps||(Ps={});Os.Pop="POP",Os.Push="PUSH",Os.Replace="REPLACE";var Ts=function(e){return e};function js(e){e.preventDefault(),e.returnValue=""}function _s(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function Is(){return Math.random().toString(36).substr(2,8)}function Rs(e){var t=e.pathname,r=e.search;return(void 0===t?"/":t)+(void 0===r?"":r)+(void 0===(e=e.hash)?"":e)}function Ls(e){var t={};if(e){var r=e.indexOf("#");0<=r&&(t.hash=e.substr(r),e=e.substr(0,r)),0<=(r=e.indexOf("?"))&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}const Ns="undefined"!=typeof window&&window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)&&"file:"!==window.location.protocol;class Ms{constructor(){Fs(this,"history",void 0),this.history=Ns?function(e){function t(){var e=a.location,t=s.state||{};return[t.idx,Ts({pathname:e.pathname,search:e.search,hash:e.hash,state:t.usr||null,key:t.key||"default"})]}function r(e){return"string"==typeof e?e:Rs(e)}function n(e,t){return void 0===t&&(t=null),Ts(Cs({pathname:f.pathname,hash:"",search:""},"string"==typeof e?Ls(e):e,{state:t,key:Is()}))}function i(e){c=e,e=t(),l=e[0],f=e[1],p.call({action:c,location:f})}function o(e){s.go(e)}void 0===e&&(e={});var a=void 0===(e=e.window)?document.defaultView:e,s=a.history,u=null;a.addEventListener("popstate",(function(){if(u)h.call(u),u=null;else{var e=Ps.Pop,r=t(),n=r[0];if(r=r[1],h.length){if(null!=n){var a=l-n;a&&(u={action:e,location:r,retry:function(){o(-1*a)}},o(a))}}else i(e)}}));var c=Ps.Pop,l=(e=t())[0],f=e[1],p=_s(),h=_s();return null==l&&(l=0,s.replaceState(Cs({},s.state,{idx:l}),"")),{get action(){return c},get location(){return f},createHref:r,push:function e(t,o){var u=Ps.Push,c=n(t,o);if(!h.length||(h.call({action:u,location:c,retry:function(){e(t,o)}}),0)){var f=[{usr:c.state,key:c.key,idx:l+1},r(c)];c=f[0],f=f[1];try{s.pushState(c,"",f)}catch(e){a.location.assign(f)}i(u)}},replace:function e(t,o){var a=Ps.Replace,u=n(t,o);h.length&&(h.call({action:a,location:u,retry:function(){e(t,o)}}),1)||(u=[{usr:u.state,key:u.key,idx:l},r(u)],s.replaceState(u[0],"",u[1]),i(a))},go:o,back:function(){o(-1)},forward:function(){o(1)},listen:function(e){return p.push(e)},block:function(e){var t=h.push(e);return 1===h.length&&a.addEventListener("beforeunload",js),function(){t(),h.length||a.removeEventListener("beforeunload",js)}}}}():function(e){function t(e,t){return void 0===t&&(t=null),Ts(Cs({pathname:c.pathname,search:"",hash:""},"string"==typeof e?Ls(e):e,{state:t,key:Is()}))}function r(e,t,r){return!f.length||(f.call({action:e,location:t,retry:r}),!1)}function n(e,t){u=e,c=t,l.call({action:u,location:c})}function i(e){var t=Math.min(Math.max(s+e,0),a.length-1),o=Ps.Pop,u=a[t];r(o,u,(function(){i(e)}))&&(s=t,n(o,u))}void 0===e&&(e={});var o=e;e=o.initialEntries,o=o.initialIndex;var a=(void 0===e?["/"]:e).map((function(e){return Ts(Cs({pathname:"/",search:"",hash:"",state:null,key:Is()},"string"==typeof e?Ls(e):e))})),s=Math.min(Math.max(null==o?a.length-1:o,0),a.length-1),u=Ps.Pop,c=a[s],l=_s(),f=_s();return{get index(){return s},get action(){return u},get location(){return c},createHref:function(e){return"string"==typeof e?e:Rs(e)},push:function e(i,o){var u=Ps.Push,c=t(i,o);r(u,c,(function(){e(i,o)}))&&(s+=1,a.splice(s,a.length,c),n(u,c))},replace:function e(i,o){var u=Ps.Replace,c=t(i,o);r(u,c,(function(){e(i,o)}))&&(a[s]=c,n(u,c))},go:i,back:function(){i(-1)},forward:function(){i(1)},listen:function(e){return l.push(e)},block:function(e){return f.push(e)}}}({initialEntries:[window.location]})}get location(){const e=this.history.location;return{...e,toString:()=>Rs(e)}}listen(e){this.history.listen(e)}replace(e){return this.history.replace(e)}push(e){return this.history.push(e)}}let Bs;const zs=new class extends Be{};const Us=new class extends Be{constructor(){super(...arguments),Fs(this,"initialState",{loading:!1,request:t.WY.create(),config:{}})}subscription(e,t){let{fetch:r}=e,n=Bs.location;Bs.listen((async e=>{let{location:t}=e;n.pathname!==t.pathname&&(r(t.pathname),requestAnimationFrame((()=>{window.scrollTo(0,0)}))),n=t})),t.file||r(n.pathname)}async*fetch(e){yield this.setState((e=>{e.loading=!0}));const{request:r,config:n}=yield*this.getState("page");try{const i=decodeURI(e);let{data:o}=await r.get(i,n);"string"==typeof o&&(o=Ss(o));const{file:a,lfs:s}=o;yield this.setState((e=>{a&&(e.file=new t.$B(a)),e.lfs=s}))}catch(e){yield this.setState((t=>{t.error=e}))}finally{yield this.setState((e=>{e.loading=!1}))}}*intercept(e){const{request:t}=yield*this.getState("page");e(t.interceptors)}*updateConfig(e){yield this.setState((t=>{e(t.config)}))}};const $s=new class extends Be{constructor(){super(...arguments),Fs(this,"initialState",{status:"idle",results:[],query:""})}async*fetch(e){if(e=e.trim()){yield this.setState((t=>{t.query=e,t.status="loading"}));let{handler:t}=yield*this.getState("search");if(!t){const{summary:r}=yield*this.getState("book");t=()=>{const t=[];return r.getArticle((r=>{const n=r.getPath();return r.title.includes(e)&&n&&t.push({title:r.title,path:n}),!1})),t}}try{const r=await t(e);yield this.setState((e=>{e.results=r,e.status="idle"}))}catch{yield this.setState((e=>{e.results=[],e.status="error"}))}}else yield this.setState((t=>{t.query=e,t.status="idle",t.results=[]}))}*setHandler(e){yield this.setState((t=>{t.handler=e}))}};function qs(){const e=vn(),{config:t}=_a();return t.getValue("title",e.formatMessage({id:"n24ytq",defaultMessage:[{type:0,value:"未命名文档"}]}))}var Vs=a(3615),Hs=a.n(Vs),Gs=a(4335),Ws=a.n(Gs),Qs=a(3996),Ks=a.n(Qs);function Ys(){return(Ys=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Xs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zs(e,t)}function Zs(e,t){return(Zs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Js(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}var eu={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},tu={rel:["amphtml","canonical","alternate"]},ru={type:["application/ld+json"]},nu={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},iu=Object.keys(eu).map((function(e){return eu[e]})),ou={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},au=Object.keys(ou).reduce((function(e,t){return e[ou[t]]=t,e}),{}),su=function(e,t){for(var r=e.length-1;r>=0;r-=1){var n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},uu=function(e){var t=su(e,eu.TITLE),r=su(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,(function(){return t}));var n=su(e,"defaultTitle");return t||n||void 0},cu=function(e){return su(e,"onChangeClientState")||function(){}},lu=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Ys({},e,t)}),{})},fu=function(e,t){return t.filter((function(e){return void 0!==e[eu.BASE]})).map((function(e){return e[eu.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),i=0;i<n.length;i+=1){var o=n[i].toLowerCase();if(-1!==e.indexOf(o)&&r[o])return t.concat(r)}return t}),[])},pu=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var i={};r.filter((function(e){for(var r,o=Object.keys(e),a=0;a<o.length;a+=1){var s=o[a],u=s.toLowerCase();-1===t.indexOf(u)||"rel"===r&&"canonical"===e[r].toLowerCase()||"rel"===u&&"stylesheet"===e[u].toLowerCase()||(r=u),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(r=s)}if(!r||!e[r])return!1;var c=e[r].toLowerCase();return n[r]||(n[r]={}),i[r]||(i[r]={}),!n[r][c]&&(i[r][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a+=1){var s=o[a],u=Ys({},n[s],i[s]);n[s]=u}return e}),[]).reverse()},hu=function(e,t){if(Array.isArray(e)&&e.length)for(var r=0;r<e.length;r+=1)if(e[r][t])return!0;return!1},du=function(e){return Array.isArray(e)?e.join(""):e},mu=function(e,t){return Array.isArray(e)?e.reduce((function(e,r){return function(e,t){for(var r=Object.keys(e),n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1}(r,t)?e.priority.push(r):e.default.push(r),e}),{priority:[],default:[]}):{default:e}},gu=[eu.NOSCRIPT,eu.SCRIPT,eu.STYLE],yu=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},vu=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},bu=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,r){return t[ou[r]||r]=e[r],t}),t)},Eu=function(e,t){return t.map((function(t,r){var n,i=((n={key:r})["data-rh"]=!0,n);return Object.keys(t).forEach((function(e){var r=ou[e]||e;"innerHTML"===r||"cssText"===r?i.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:i[r]=t[e]})),o().createElement(e,i)}))},wu=function(e,t,r){switch(e){case eu.TITLE:return{toComponent:function(){return r=t.titleAttributes,(n={key:e=t.title})["data-rh"]=!0,i=bu(r,n),[o().createElement(eu.TITLE,i,e)];var e,r,n,i},toString:function(){return function(e,t,r,n){var i=vu(r),o=du(t);return i?"<"+e+' data-rh="true" '+i+">"+yu(o,n)+"</"+e+">":"<"+e+' data-rh="true">'+yu(o,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return bu(t)},toString:function(){return vu(t)}};default:return{toComponent:function(){return Eu(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var i=Object.keys(n).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var i=void 0===n[t]?t:t+'="'+yu(n[t],r)+'"';return e?e+" "+i:i}),""),o=n.innerHTML||n.cssText||"",a=-1===gu.indexOf(e);return t+"<"+e+' data-rh="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(e,t,r)}}}},xu=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,i=e.htmlAttributes,o=e.noscriptTags,a=e.styleTags,s=e.title,u=void 0===s?"":s,c=e.titleAttributes,l=e.linkTags,f=e.metaTags,p=e.scriptTags,h={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var d=function(e){var t=e.linkTags,r=e.scriptTags,n=e.encode,i=mu(e.metaTags,nu),o=mu(t,tu),a=mu(r,ru);return{priorityMethods:{toComponent:function(){return[].concat(Eu(eu.META,i.priority),Eu(eu.LINK,o.priority),Eu(eu.SCRIPT,a.priority))},toString:function(){return wu(eu.META,i.priority,n)+" "+wu(eu.LINK,o.priority,n)+" "+wu(eu.SCRIPT,a.priority,n)}},metaTags:i.default,linkTags:o.default,scriptTags:a.default}}(e);h=d.priorityMethods,l=d.linkTags,f=d.metaTags,p=d.scriptTags}return{priority:h,base:wu(eu.BASE,t,n),bodyAttributes:wu("bodyAttributes",r,n),htmlAttributes:wu("htmlAttributes",i,n),link:wu(eu.LINK,l,n),meta:wu(eu.META,f,n),noscript:wu(eu.NOSCRIPT,o,n),script:wu(eu.SCRIPT,p,n),style:wu(eu.STYLE,a,n),title:wu(eu.TITLE,{title:u,titleAttributes:c},n)}},Su=o().createContext({}),ku=Hs().shape({setHelmet:Hs().func,helmetInstances:Hs().shape({get:Hs().func,add:Hs().func,remove:Hs().func})}),Au="undefined"!=typeof document,Du=function(e){function t(r){var n;return(n=e.call(this,r)||this).instances=[],n.value={setHelmet:function(e){n.props.context.helmet=e},helmetInstances:{get:function(){return n.instances},add:function(e){n.instances.push(e)},remove:function(e){var t=n.instances.indexOf(e);n.instances.splice(t,1)}}},t.canUseDOM||(r.context.helmet=xu({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),n}return Xs(t,e),t.prototype.render=function(){return o().createElement(Su.Provider,{value:this.value},this.props.children)},t}(i.Component);Du.canUseDOM=Au,Du.propTypes={context:Hs().shape({helmet:Hs().shape()}),children:Hs().node.isRequired},Du.defaultProps={context:{}},Du.displayName="HelmetProvider";var Fu=function(e,t){var r,n=document.head||document.querySelector(eu.HEAD),i=n.querySelectorAll(e+"[data-rh]"),o=[].slice.call(i),a=[];return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&("innerHTML"===i?n.innerHTML=t.innerHTML:"cssText"===i?n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText)):n.setAttribute(i,void 0===t[i]?"":t[i]));n.setAttribute("data-rh","true"),o.some((function(e,t){return r=t,n.isEqualNode(e)}))?o.splice(r,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},Cu=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute("data-rh"),i=n?n.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s<a.length;s+=1){var u=a[s],c=t[u]||"";r.getAttribute(u)!==c&&r.setAttribute(u,c),-1===i.indexOf(u)&&i.push(u);var l=o.indexOf(u);-1!==l&&o.splice(l,1)}for(var f=o.length-1;f>=0;f-=1)r.removeAttribute(o[f]);i.length===o.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==a.join(",")&&r.setAttribute("data-rh",a.join(","))}},Pu=function(e,t){var r=e.baseTag,n=e.htmlAttributes,i=e.linkTags,o=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,c=e.styleTags,l=e.title,f=e.titleAttributes;Cu(eu.BODY,e.bodyAttributes),Cu(eu.HTML,n),function(e,t){void 0!==e&&document.title!==e&&(document.title=du(e)),Cu(eu.TITLE,t)}(l,f);var p={baseTag:Fu(eu.BASE,r),linkTags:Fu(eu.LINK,i),metaTags:Fu(eu.META,o),noscriptTags:Fu(eu.NOSCRIPT,a),scriptTags:Fu(eu.SCRIPT,u),styleTags:Fu(eu.STYLE,c)},h={},d={};Object.keys(p).forEach((function(e){var t=p[e],r=t.newTags,n=t.oldTags;r.length&&(h[e]=r),n.length&&(d[e]=p[e].oldTags)})),t&&t(),s(e,h,d)},Ou=null,Tu=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).rendered=!1,t}Xs(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!xn()(e,this.props)},r.componentDidUpdate=function(){this.emitChange()},r.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},r.emitChange=function(){var e,t,r=this.props.context,n=r.setHelmet,i=null,o=(e=r.helmetInstances.get().map((function(e){var t=Ys({},e.props);return delete t.context,t})),{baseTag:fu(["href"],e),bodyAttributes:lu("bodyAttributes",e),defer:su(e,"defer"),encode:su(e,"encodeSpecialCharacters"),htmlAttributes:lu("htmlAttributes",e),linkTags:pu(eu.LINK,["rel","href"],e),metaTags:pu(eu.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:pu(eu.NOSCRIPT,["innerHTML"],e),onChangeClientState:cu(e),scriptTags:pu(eu.SCRIPT,["src","innerHTML"],e),styleTags:pu(eu.STYLE,["cssText"],e),title:uu(e),titleAttributes:lu("titleAttributes",e),prioritizeSeoTags:hu(e,"prioritizeSeoTags")});Du.canUseDOM?(t=o,Ou&&cancelAnimationFrame(Ou),t.defer?Ou=requestAnimationFrame((function(){Pu(t,(function(){Ou=null}))})):(Pu(t),Ou=null)):xu&&(i=xu(o)),n(i)},r.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},r.render=function(){return this.init(),null},t}(i.Component);Tu.propTypes={context:ku.isRequired},Tu.displayName="HelmetDispatcher";var ju=["children"],_u=["children"],Iu=function(e){function t(){return e.apply(this,arguments)||this}Xs(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!Ws()(this.props,e)},r.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case eu.SCRIPT:case eu.NOSCRIPT:return{innerHTML:t};case eu.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren;return Ys({},n,((t={})[r.type]=[].concat(n[r.type]||[],[Ys({},e.newChildProps,this.mapNestedChildrenToProps(r,e.nestedChildren))]),t))},r.mapObjectTypeChildren=function(e){var t,r,n=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(n.type){case eu.TITLE:return Ys({},i,((t={})[n.type]=a,t.titleAttributes=Ys({},o),t));case eu.BODY:return Ys({},i,{bodyAttributes:Ys({},o)});case eu.HTML:return Ys({},i,{htmlAttributes:Ys({},o)});default:return Ys({},i,((r={})[n.type]=Ys({},o),r))}},r.mapArrayTypeChildrenToProps=function(e,t){var r=Ys({},t);return Object.keys(e).forEach((function(t){var n;r=Ys({},r,((n={})[t]=e[t],n))})),r},r.warnOnInvalidChildren=function(e,t){return Ks()(iu.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+iu.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),Ks()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(e,t){var r=this,n={};return o().Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=Js(i,ju),s=Object.keys(a).reduce((function(e,t){return e[au[t]||t]=a[t],e}),{}),u=e.type;switch("symbol"==typeof u?u=u.toString():r.warnOnInvalidChildren(e,o),u){case eu.FRAGMENT:t=r.mapChildrenToProps(o,t);break;case eu.LINK:case eu.META:case eu.NOSCRIPT:case eu.SCRIPT:case eu.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:s,nestedChildren:o});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(n,t)},r.render=function(){var e=this.props,t=e.children,r=Ys({},Js(e,_u));return t&&(r=this.mapChildrenToProps(t,r)),o().createElement(Su.Consumer,null,(function(e){return o().createElement(Tu,Ys({},r,{context:e}))}))},t}(i.Component);Iu.propTypes={base:Hs().object,bodyAttributes:Hs().object,children:Hs().oneOfType([Hs().arrayOf(Hs().node),Hs().node]),defaultTitle:Hs().string,defer:Hs().bool,encodeSpecialCharacters:Hs().bool,htmlAttributes:Hs().object,link:Hs().arrayOf(Hs().object),meta:Hs().arrayOf(Hs().object),noscript:Hs().arrayOf(Hs().object),onChangeClientState:Hs().func,script:Hs().arrayOf(Hs().object),style:Hs().arrayOf(Hs().object),title:Hs().string,titleAttributes:Hs().object,titleTemplate:Hs().string,prioritizeSeoTags:Hs().bool},Iu.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Iu.displayName="Helmet";const Ru=(0,i.createContext)(void 0);function Lu(){return(0,i.useContext)(Ru)}function Nu(){const{summary:e}=_a(),t=Lu();if(t)return(0,i.useMemo)((()=>{const r=t.getLevel();let n=!1;return e.getArticle((e=>n?!!e.getPath():(n=e.getLevel()==r,!1)))}),[e,t])}function Mu(){const{summary:e}=_a(),t=Lu();if(t)return(0,i.useMemo)((()=>{const r=t.getLevel();let n;return e.getArticle((e=>e.getLevel()==r||(e.getPath()&&(n=e),!1))),n}),[e,t])}function Bu(){const{file:e}=Ya("page");if(!e)throw new Error("file object not initialized");return e}const zu=(0,i.createContext)(void 0);function Uu(e){let{children:r,file:o}=e;const[a,s]=(0,i.useState)((()=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="));return(0,i.useEffect)((()=>{const e=o.relative(t.fy.logo),r=new Image;r.addEventListener("load",(function(){const e=document.createElement("canvas");e.height=this.height,e.width=this.width;const t=e.getContext("2d");t&&(t.drawImage(this,0,0),e.toBlob((e=>{e&&s(window.URL.createObjectURL(e))})))})),r.src=e}),[]),(0,n.jsx)(zu.Provider,{value:a,children:r})}function $u(){return(0,i.useContext)(zu)}function qu(){const{summary:e}=_a(),t=qs(),r=Bu(),o=(0,i.useMemo)((()=>e.getArticle((e=>e.getPath()===r.path))),[e,r]);(0,i.useEffect)((()=>{window.dispatchEvent(new Event("bootstrapped"))}),[]);const a=$u();return(0,n.jsxs)(Du,{children:[(0,n.jsxs)(Iu,{children:[(0,n.jsx)("title",{children:"".concat(o?"".concat(o.title," - "):"").concat(t)}),(0,n.jsx)("link",{rel:"shortcut icon",href:a,type:"image/png"})]}),(0,n.jsx)(Ru.Provider,{value:o,children:(0,n.jsx)(Aa,{role:"app"})})]})}const Vu=(0,i.createContext)(void 0);function Hu(e){let{children:r,file:i}=e;const{result:o,loading:a}=ba((async()=>{const{data:e}=await(0,t.WY)(i.relative(t.fy.style));return e}),[]);return a?null:(0,n.jsx)(Vu.Provider,{value:o,children:r})}function Gu(){const{file:e}=Ya("page");return e?(0,n.jsx)(Uu,{file:e,children:(0,n.jsx)(Hu,{file:e,children:(0,n.jsx)(qu,{})})}):null}async function Wu(e){return"en"===e?a.e(7).then(a.t.bind(a,2007,19)):a.e(267).then(a.t.bind(a,3267,19))}function Qu(){const[r,o]=(0,i.useState)();return Za((async()=>{try{const{location:r}=Bs=new Ms;let i=Ss();if(!i){i=(await t.WY.get(r.toString())).data}let{id:a,summary:s,file:u,config:c={},options:l={},lfs:f,pluginsCenter:p}=i;c=t.De.createFromObject(c),s=t.ER.create(s);const h=new t.fy(a,c,s);u&&(u=new t.$B(u));const d={page:{config:{params:Ke.parse(r.search)},file:u,lfs:f},options:l},m=await Qa("reader",h,e,d,Wu,p);o((0,n.jsx)(m,{children:(0,n.jsx)(Gu,{})}))}catch(e){var r;if(console.error(e),t.WY.isAxiosError(e))o((null===(r=e.response)||void 0===r?void 0:r.data)||e.message);else o(e.message)}}),[]),r||null}const Ku=()=>{Re().render((0,n.jsx)(Qu,{}),document.getElementById("root"))},Yu={desktop:"desktop",mobile:"mobile"};function Xu(){function e(){return window.innerWidth>996?Yu.desktop:Yu.mobile}const[t,r]=(0,i.useState)(e);return(0,i.useEffect)((()=>{function t(){r(e())}return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[]),t}function Zu(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(0,i.useEffect)((()=>(document.body.style.overflow=e?"hidden":"visible",window.scrollTo(0,0),()=>{document.body.style.overflow="visible"})),[e])}function Ju(e){let{className:t}=e;const r=vn();return(0,n.jsx)("div",{className:t,children:r.formatMessage({id:"IHXx7d",defaultMessage:[{type:0,value:"本文档使用 "},{type:1,value:"link"},{type:0,value:" 构建"}]},{link:(0,n.jsx)("a",{href:"https://x.topthink.com",target:"_blank",children:r.formatMessage({id:"R10y2x",defaultMessage:[{type:0,value:"顶想云"}]})})})})}function ec(e){let{size:t=60,className:r}=e;const i=$u();return(0,n.jsx)("img",{className:r,src:i,width:t,height:t,alt:"logo"})}function tc(e){let{children:r,to:o,className:a,...s}=e;const u=Bu(),{loading:c}=Ya("page");let l;o instanceof t.oI?(l=o.getPath(),r||(r=o.getTitle())):l=o;const f=l?u.relative(l):"#!",p=(0,i.useCallback)((e=>{if(e.preventDefault(),l&&!c){const t={pathname:"",search:"",hash:"",...Ls(e.currentTarget.pathname)};Bs.push(t)}}),[l,c]);return(0,n.jsx)("a",{...s,onClick:p,className:a,href:f,children:r})}var rc=a(7425),nc=a.n(rc);const ic=e=>{let{base:r,href:i,...o}=e;const{summary:a}=_a();if(i){if(!(0,t.CB)(i)){let e=i;if(".md"===nc().extname(i)){let t;t=r?decodeURIComponent(nc().join(nc().dirname(r),i)):i;const n=a.getArticle((e=>e.ref===t));n&&(e=n)}return(0,n.jsx)(tc,{to:e,...o})}o.target="_blank"}return(0,n.jsx)("a",{href:i,...o,rel:"noopener noreferrer"})};function oc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ac(e){let{element:r,src:i,...o}=e;const{lfs:a,file:s}=Ya("page");if(i&&a&&!(0,t.CB)(i)&&s){const{url:e,files:t}=a,r=t[s.resolve(decodeURIComponent(i))];r&&(i=e.replace("{oid}",r))}return(0,n.jsx)(Aa,{role:"page:asset",props:{src:i,...o},component:r})}var sc;const uc=Zi.a(sc||(sc=oc(["\n display: block;\n position: relative;\n top: -.5rem;\n"]))),cc={a:function(e){const t=Bu();return(0,n.jsx)(ic,{...e,base:t.path})},img:function(e){return(0,n.jsx)(ac,{element:"img",...e})},attachment:function(e){return(0,n.jsx)(ac,{element:"t-attachment",...e})},video:function(e){return(0,n.jsx)(ac,{element:"video",...e})},audio:function(e){return(0,n.jsx)(ac,{element:"audio",...e})},heading:function(e){let{depth:t,id:r,children:o,...a}=e;return r&&(o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(uc,{tabIndex:-1,id:r}),o]})),(0,i.createElement)("h".concat(t),a,o)}};function lc(e){let{children:t,...r}=e;(0,i.useEffect)((()=>{const e=Bs.location.hash;if(e){const t=document.getElementById(decodeURIComponent(e).substr(1));t&&window.scrollTo(0,t.offsetTop)}}),[]);const o=(0,i.useContext)(Vu);return(0,n.jsx)(ms,{css:o,...r,components:cc,children:t})}var fc;function pc(e){let{className:t,header:r,footer:o,container:a="div",...s}=e;const u=Bu(),c=Lu();void 0===r&&c&&(r=(0,n.jsx)(hc,{children:c.title})),r=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Da,{role:"page:article:before"}),r]}),o=(0,n.jsxs)(n.Fragment,{children:[o,(0,n.jsx)(Da,{role:"page:article:after"})]});const l=(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(lc,{header:r,footer:o,...s,children:u.content})});return(0,i.createElement)(a,{className:t},l)}const hc=Zi.h1(fc||(fc=oc(["\n border-bottom: 1px solid #eee;\n font-size: 2em;\n line-height: 1.2;\n padding: 0 0 .5em;\n margin: 0 0 1em;\n font-weight: 400;\n"]))),dc=e=>{let{item:t,itemComponent:r,itemsComponent:o}=e;const{path:a}=Bu(),s=Lu(),u=(0,i.useMemo)((()=>Boolean(s&&t.getLevel().isDescendant(s.getLevel()))),[t,s]),c=a===t.getPath(),l=t.children.length>0,f=!t.getPath(),p=l?(0,n.jsx)(gc,{itemsComponent:o,itemComponent:r,items:t.children}):null;return(0,n.jsx)(Aa,{role:"catalog:item",props:{item:t,active:c,disabled:f,activeDescendant:u,children:p},component:r})},mc=e=>{let{children:t}=e;return(0,n.jsx)("ul",{children:t})},gc=e=>{let{items:t,part:r,itemsComponent:i=mc,itemComponent:o}=e;const a=(0,n.jsx)(n.Fragment,{children:t.map((e=>(0,n.jsx)(dc,{itemsComponent:i,itemComponent:o,item:e},e.level.toString())))});return(0,n.jsx)(Aa,{role:"catalog:items",props:{part:r,children:a},component:i})},yc=e=>{let{part:t,component:r,itemsComponent:i,itemComponent:o}=e;const a=(0,n.jsx)(gc,{itemsComponent:i,itemComponent:o,items:t.articles,part:t});return(0,n.jsx)(Aa,{role:"catalog:part",props:{part:t,children:a},component:r})},vc=e=>{let{summary:t,partComponent:r,itemsComponent:i,itemComponent:o}=e;return t.isSinglePart()?(0,n.jsx)(gc,{itemsComponent:i,itemComponent:o,items:t.getLastPart().getArticles()}):(0,n.jsx)(n.Fragment,{children:t.parts.map((e=>(0,n.jsx)(yc,{component:r,itemsComponent:i,itemComponent:o,part:e},e.level.toString())))})};function bc(e){let{...t}=e;const{summary:r}=Ya("book"),{renderItem:i,renderPart:o}=t;i&&(console.warn("renderItem deprecated"),t.itemComponent=i),o&&(console.warn("renderPart deprecated"),t.partComponent=o);const{partComponent:a,itemsComponent:s,itemComponent:u}=t;return(0,n.jsx)(vc,{summary:r,partComponent:a,itemsComponent:s,itemComponent:u})}function Ec(e){let{className:r}=e;const{summary:i}=_a(),o=Lu(),a=vn(),s=[(0,n.jsx)("li",{children:(0,n.jsx)(tc,{to:".",children:a.formatMessage({id:"4R5GEq",defaultMessage:[{type:0,value:"首页"}]})})},"0")];if(o){const e=o.getLevel();e.data.reduce(((r,o)=>{r.push(o);const a=new t.aC(r),u=i.getByLevel(a);return u&&(u instanceof t.oI&&!a.eq(e)?s.push((0,n.jsx)("li",{children:(0,n.jsx)(tc,{to:u})},a.toString())):u.title&&s.push((0,n.jsx)("li",{children:u.title},a.toString()))),r}),[])}return(0,n.jsx)("ol",{className:r,children:s})}function wc(e){let{children:t}=e;const{summary:r}=_a(),n=Lu(),o=Bu();return(0,i.useEffect)((()=>{if(!n){const e=r.getFirstArticle();e&&Bs.replace(o.relative(e.path))}}),[n]),n?t:null}})(),window.TopWrite=s})();
69
69
  //# sourceMappingURL=index.js.map