@useloops/design-system 1.4.93 → 1.4.95
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/esm/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +150 -150
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
object-assign
|
|
21
21
|
(c) Sindre Sorhus
|
|
22
22
|
@license MIT
|
|
23
|
-
*/function Ra(){if(Ca)return $a;Ca=1;var e=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return $a=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var a={},r=0;r<10;r++)a["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(a).map((function(e){return a[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(n,i){for(var t,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),l=1;l<arguments.length;l++){for(var c in t=Object(arguments[l]))a.call(t,c)&&(s[c]=t[c]);if(e){o=e(t);for(var d=0;d<o.length;d++)r.call(t,o[d])&&(s[o[d]]=t[o[d]])}}return s},$a}function La(){if(Sa)return _a;Sa=1;return _a="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ba(){return Aa?Ea:(Aa=1,Ea=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Va=Pa();wa.exports=function(){if(Fa)return Ma;Fa=1;var e=Pa(),a=Ra(),r=La(),n=Ba(),i=function(){if(Da)return Oa;Da=1;var e=function(){};if("production"!==process.env.NODE_ENV){var a=La(),r={},n=Ba();e=function(e){var a="Warning: "+e;"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}}function i(i,t,o,s,l){if("production"!==process.env.NODE_ENV)for(var c in i)if(n(i,c)){var d;try{if("function"!=typeof i[c]){var u=Error((s||"React class")+": "+o+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[c](t,c,s,o,null,a)}catch(e){d=e}if(!d||d instanceof Error||e((s||"React class")+": type specification of "+o+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var h=l?l():"";e("Failed "+o+" type: "+d.message+(null!=h?h:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},Oa=i}(),t=function(){};function o(){return null}return"production"!==process.env.NODE_ENV&&(t=function(e){var a="Warning: "+e;"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}),Ma=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,d="<<anonymous>>",u={array:p("array"),bigint:p("bigint"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:g(o),arrayOf:function(e){return g((function(a,n,i,t,o){if("function"!=typeof e)return new m("Property `"+o+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var s=a[n];if(!Array.isArray(s))return new m("Invalid "+t+" `"+o+"` of type `"+f(s)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,i,t,o+"["+l+"]",r);if(c instanceof Error)return c}return null}))},element:g((function(e,a,r,n,i){var t=e[a];return s(t)?null:new m("Invalid "+n+" `"+i+"` of type `"+f(t)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:g((function(a,r,n,i,t){var o=a[r];return e.isValidElementType(o)?null:new m("Invalid "+i+" `"+t+"` of type `"+f(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(a,r,n,i,t){if(!(a[r]instanceof e)){var o=e.name||d;return new m("Invalid "+i+" `"+t+"` of type `"+((s=a[r]).constructor&&s.constructor.name?s.constructor.name:d)+"` supplied to `"+n+"`, expected instance of `"+o+"`.")}var s;return null}))},node:g((function(e,a,r,n,i){return k(e[a])?null:new m("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(a,i,t,o,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+t+"` has invalid PropType notation inside objectOf.");var l=a[i],c=f(l);if("object"!==c)return new m("Invalid "+o+" `"+s+"` of type `"+c+"` supplied to `"+t+"`, expected an object.");for(var d in l)if(n(l,d)){var u=e(l,d,t,o,s+"."+d,r);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(a,r,n,i,t){for(var o=a[r],s=0;s<e.length;s++)if(h(o,e[s]))return null;var l=JSON.stringify(e,(function(e,a){return"symbol"===y(a)?String(a):a}));return new m("Invalid "+i+" `"+t+"` of value `"+String(o)+"` supplied to `"+n+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&t(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),o)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&t("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var a=0;a<e.length;a++){var i=e[a];if("function"!=typeof i)return t("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v(i)+" at index "+a+"."),o}return g((function(a,i,t,o,s){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(a,i,t,o,s,r);if(null==d)return null;d.data&&n(d.data,"expectedType")&&l.push(d.data.expectedType)}return new m("Invalid "+o+" `"+s+"` supplied to `"+t+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(a,n,i,t,o){var s=a[n],l=f(s);if("object"!==l)return new m("Invalid "+t+" `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return b(i,t,o,c,y(d));var u=d(s,c,i,t,o+"."+c,r);if(u)return u}return null}))},exact:function(e){return g((function(i,t,o,s,l){var c=i[t],d=f(c);if("object"!==d)return new m("Invalid "+s+" `"+l+"` of type `"+d+"` supplied to `"+o+"`, expected `object`.");var u=a({},i[t],e);for(var h in u){var g=e[h];if(n(e,h)&&"function"!=typeof g)return b(o,s,l,h,y(g));if(!g)return new m("Invalid "+s+" `"+l+"` key `"+h+"` supplied to `"+o+"`.\nBad object: "+JSON.stringify(i[t],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=g(c,h,o,s,l+"."+h,r);if(p)return p}return null}))}};function h(e,a){return e===a?0!==e||1/e==1/a:e!=e&&a!=a}function m(e,a){this.message=e,this.data=a&&"object"==typeof a?a:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var a={},n=0;function i(i,o,s,c,u,h,g){if(c=c||d,h=h||s,g!==r){if(l){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var b=c+":"+s;!a[b]&&n<3&&(t("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),a[b]=!0,n++)}}return null==o[s]?i?null===o[s]?new m("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(o,s,c,u,h)}var o=i.bind(null,!1);return o.isRequired=i.bind(null,!0),o}function p(e){return g((function(a,r,n,i,t,o){var s=a[r];return f(s)!==e?new m("Invalid "+i+" `"+t+"` of type `"+y(s)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,a,r,n,i){return new m((e||"React class")+": "+a+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function k(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(k);if(null===e||s(e))return!0;var a=function(e){var a=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof a)return a}(e);if(!a)return!1;var r,n=a.call(e);if(a!==e.entries){for(;!(r=n.next()).done;)if(!k(r.value))return!1}else for(;!(r=n.next()).done;){var i=r.value;if(i&&!k(i[1]))return!1}return!0;default:return!1}}function f(e){var a=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,a){return"symbol"===e||!!a&&("Symbol"===a["@@toStringTag"]||"function"==typeof Symbol&&a instanceof Symbol)}(a,e)?"symbol":a}function y(e){if(null==e)return""+e;var a=f(e);if("object"===a){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return a}function v(e){var a=y(e);switch(a){case"array":case"object":return"an "+a;case"boolean":case"date":case"regexp":return"a "+a;default:return a}}return m.prototype=Error.prototype,u.checkPropTypes=i,u.resetWarningCache=i.resetWarningCache,u.PropTypes=u,u},Ma}()(Va.isElement,!0)}else wa.exports=function(){if(Na)return Ta;Na=1;var e=La();function a(){}function r(){}return r.resetWarningCache=a,Ta=function(){function n(a,r,n,i,t,o){if(o!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return n}n.isRequired=n;var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:a};return t.PropTypes=t,t}}()();var Ua=g(wa.exports);function Ha(e){if("object"!=typeof e||null===e)return!1;const a=Object.getPrototypeOf(e);return!(null!==a&&a!==Object.prototype&&null!==Object.getPrototypeOf(a)||Symbol.toStringTag in e||Symbol.iterator in e)}function Ga(e){if(m.isValidElement(e)||!Ha(e))return e;const a={};return Object.keys(e).forEach((r=>{a[r]=Ga(e[r])})),a}function Wa(e,a,r={clone:!0}){const n=r.clone?ba({},e):e;return Ha(e)&&Ha(a)&&Object.keys(a).forEach((i=>{m.isValidElement(a[i])?n[i]=a[i]:Ha(a[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Ha(e[i])?n[i]=Wa(e[i],a[i],r):r.clone?n[i]=Ha(a[i])?Ga(a[i]):a[i]:n[i]=a[i]})),n}const Za=["values","unit","step"];function Ka(e){const{values:a={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=ka(e,Za),t=(e=>{const a=Object.keys(e).map((a=>({key:a,val:e[a]})))||[];return a.sort(((e,a)=>e.val-a.val)),a.reduce(((e,a)=>ba({},e,{[a.key]:a.val})),{})})(a),o=Object.keys(t);function s(e){return`@media (min-width:${"number"==typeof a[e]?a[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof a[e]?a[e]:e)-n/100}${r})`}function c(e,i){const t=o.indexOf(i);return`@media (min-width:${"number"==typeof a[e]?a[e]:e}${r}) and (max-width:${(-1!==t&&"number"==typeof a[o[t]]?a[o[t]]:i)-n/100}${r})`}return ba({keys:o,values:t,up:s,down:l,between:c,only:function(e){return o.indexOf(e)+1<o.length?c(e,o[o.indexOf(e)+1]):s(e)},not:function(e){const a=o.indexOf(e);return 0===a?s(o[1]):a===o.length-1?l(o[a]):c(e,o[o.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},i)}const Ja={borderRadius:4},Ya="production"!==process.env.NODE_ENV?Ua.oneOfType([Ua.number,Ua.string,Ua.object,Ua.array]):{};function Xa(e,a){return a?Wa(e,a,{clone:!1}):e}const Qa={xs:0,sm:600,md:900,lg:1200,xl:1536},er={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qa[e]}px)`};function ar(e,a,r){const n=e.theme||{};if(Array.isArray(a)){const e=n.breakpoints||er;return a.reduce(((n,i,t)=>(n[e.up(e.keys[t])]=r(a[t]),n)),{})}if("object"==typeof a){const e=n.breakpoints||er;return Object.keys(a).reduce(((n,i)=>{if(-1!==Object.keys(e.values||Qa).indexOf(i)){n[e.up(i)]=r(a[i],i)}else{const e=i;n[e]=a[e]}return n}),{})}return r(a)}function rr(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":fa(7));return e.charAt(0).toUpperCase()+e.slice(1)}function nr(e,a,r=!0){if(!a||"string"!=typeof a)return null;if(e&&e.vars&&r){const r=`vars.${a}`.split(".").reduce(((e,a)=>e&&e[a]?e[a]:null),e);if(null!=r)return r}return a.split(".").reduce(((e,a)=>e&&null!=e[a]?e[a]:null),e)}function ir(e,a,r,n=r){let i;return i="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:nr(e,r)||n,a&&(i=a(i,n,e)),i}function tr(e){const{prop:a,cssProperty:r=e.prop,themeKey:n,transform:i}=e,t=e=>{if(null==e[a])return null;const t=e[a],o=nr(e.theme,n)||{};return ar(e,t,(e=>{let n=ir(o,i,e);return e===n&&"string"==typeof e&&(n=ir(o,i,`${a}${"default"===e?"":rr(e)}`,e)),!1===r?n:{[r]:n}}))};return t.propTypes="production"!==process.env.NODE_ENV?{[a]:Ya}:{},t.filterProps=[a],t}const or={m:"margin",p:"padding"},sr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cr=function(e){const a={};return r=>(void 0===a[r]&&(a[r]=e(r)),a[r])}((e=>{if(e.length>2){if(!lr[e])return[e];e=lr[e]}const[a,r]=e.split(""),n=or[a],i=sr[r]||"";return Array.isArray(i)?i.map((e=>n+e)):[n+i]})),dr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ur=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],hr=[...dr,...ur];function mr(e,a,r,n){var i;const t=null!=(i=nr(e,a,!1))?i:r;return"number"==typeof t?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${e}.`),t*e):Array.isArray(t)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>t.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(t)}.`,`${e} > ${t.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${a}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${a}\` as a number.`].join("\n"))),t[e]):"function"==typeof t?t:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${a}\` value (${t}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function gr(e){return mr(e,"spacing",8,"spacing")}function pr(e,a){if("string"==typeof a||null==a)return a;const r=e(Math.abs(a));return a>=0?r:"number"==typeof r?-r:`-${r}`}function br(e,a,r,n){if(-1===a.indexOf(r))return null;const i=function(e,a){return r=>e.reduce(((e,n)=>(e[n]=pr(a,r),e)),{})}(cr(r),n);return ar(e,e[r],i)}function kr(e,a){const r=gr(e.theme);return Object.keys(e).map((n=>br(e,a,n,r))).reduce(Xa,{})}function fr(e){return kr(e,dr)}function yr(e){return kr(e,ur)}function vr(...e){const a=e.reduce(((e,a)=>(a.filterProps.forEach((r=>{e[r]=a})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>a[n]?Xa(r,a[n](e)):r),{});return r.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,a)=>Object.assign(e,a.propTypes)),{}):{},r.filterProps=e.reduce(((e,a)=>e.concat(a.filterProps)),[]),r}function wr(e){return"number"!=typeof e?e:`${e}px solid`}function zr(e,a){return tr({prop:e,themeKey:"borders",transform:a})}fr.propTypes="production"!==process.env.NODE_ENV?dr.reduce(((e,a)=>(e[a]=Ya,e)),{}):{},fr.filterProps=dr,yr.propTypes="production"!==process.env.NODE_ENV?ur.reduce(((e,a)=>(e[a]=Ya,e)),{}):{},yr.filterProps=ur,"production"===process.env.NODE_ENV||hr.reduce(((e,a)=>(e[a]=Ya,e)),{});const jr=zr("border",wr),xr=zr("borderTop",wr),qr=zr("borderRight",wr),$r=zr("borderBottom",wr),Cr=zr("borderLeft",wr),_r=zr("borderColor"),Sr=zr("borderTopColor"),Er=zr("borderRightColor"),Ar=zr("borderBottomColor"),Or=zr("borderLeftColor"),Dr=zr("outline",wr),Mr=zr("outlineColor"),Fr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const a=mr(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:pr(a,e)});return ar(e,e.borderRadius,r)}return null};Fr.propTypes="production"!==process.env.NODE_ENV?{borderRadius:Ya}:{},Fr.filterProps=["borderRadius"],vr(jr,xr,qr,$r,Cr,_r,Sr,Er,Ar,Or,Fr,Dr,Mr);const Tr=e=>{if(void 0!==e.gap&&null!==e.gap){const a=mr(e.theme,"spacing",8,"gap"),r=e=>({gap:pr(a,e)});return ar(e,e.gap,r)}return null};Tr.propTypes="production"!==process.env.NODE_ENV?{gap:Ya}:{},Tr.filterProps=["gap"];const Nr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const a=mr(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:pr(a,e)});return ar(e,e.columnGap,r)}return null};Nr.propTypes="production"!==process.env.NODE_ENV?{columnGap:Ya}:{},Nr.filterProps=["columnGap"];const Ir=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const a=mr(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:pr(a,e)});return ar(e,e.rowGap,r)}return null};Ir.propTypes="production"!==process.env.NODE_ENV?{rowGap:Ya}:{},Ir.filterProps=["rowGap"];function Pr(e,a){return"grey"===a?a:e}vr(Tr,Nr,Ir,tr({prop:"gridColumn"}),tr({prop:"gridRow"}),tr({prop:"gridAutoFlow"}),tr({prop:"gridAutoColumns"}),tr({prop:"gridAutoRows"}),tr({prop:"gridTemplateColumns"}),tr({prop:"gridTemplateRows"}),tr({prop:"gridTemplateAreas"}),tr({prop:"gridArea"}));function Rr(e){return e<=1&&0!==e?100*e+"%":e}vr(tr({prop:"color",themeKey:"palette",transform:Pr}),tr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pr}),tr({prop:"backgroundColor",themeKey:"palette",transform:Pr}));const Lr=tr({prop:"width",transform:Rr}),Br=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const a=a=>{var r,n;const i=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[a])||Qa[a];return i?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Rr(a)}};return ar(e,e.maxWidth,a)}return null};Br.filterProps=["maxWidth"];const Vr=tr({prop:"minWidth",transform:Rr}),Ur=tr({prop:"height",transform:Rr}),Hr=tr({prop:"maxHeight",transform:Rr}),Gr=tr({prop:"minHeight",transform:Rr});tr({prop:"size",cssProperty:"width",transform:Rr}),tr({prop:"size",cssProperty:"height",transform:Rr});vr(Lr,Br,Vr,Ur,Hr,Gr,tr({prop:"boxSizing"}));const Wr={border:{themeKey:"borders",transform:wr},borderTop:{themeKey:"borders",transform:wr},borderRight:{themeKey:"borders",transform:wr},borderBottom:{themeKey:"borders",transform:wr},borderLeft:{themeKey:"borders",transform:wr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fr},color:{themeKey:"palette",transform:Pr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pr},backgroundColor:{themeKey:"palette",transform:Pr},p:{style:yr},pt:{style:yr},pr:{style:yr},pb:{style:yr},pl:{style:yr},px:{style:yr},py:{style:yr},padding:{style:yr},paddingTop:{style:yr},paddingRight:{style:yr},paddingBottom:{style:yr},paddingLeft:{style:yr},paddingX:{style:yr},paddingY:{style:yr},paddingInline:{style:yr},paddingInlineStart:{style:yr},paddingInlineEnd:{style:yr},paddingBlock:{style:yr},paddingBlockStart:{style:yr},paddingBlockEnd:{style:yr},m:{style:fr},mt:{style:fr},mr:{style:fr},mb:{style:fr},ml:{style:fr},mx:{style:fr},my:{style:fr},margin:{style:fr},marginTop:{style:fr},marginRight:{style:fr},marginBottom:{style:fr},marginLeft:{style:fr},marginX:{style:fr},marginY:{style:fr},marginInline:{style:fr},marginInlineStart:{style:fr},marginInlineEnd:{style:fr},marginBlock:{style:fr},marginBlockStart:{style:fr},marginBlockEnd:{style:fr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Tr},rowGap:{style:Ir},columnGap:{style:Nr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rr},maxWidth:{style:Br},minWidth:{transform:Rr},height:{transform:Rr},maxHeight:{transform:Rr},minHeight:{transform:Rr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Zr=function(){function e(e,a,r,n){const i={[e]:a,theme:r},t=n[e];if(!t)return{[e]:a};const{cssProperty:o=e,themeKey:s,transform:l,style:c}=t;if(null==a)return null;if("typography"===s&&"inherit"===a)return{[e]:a};const d=nr(r,s)||{};if(c)return c(i);return ar(i,a,(a=>{let r=ir(d,l,a);return a===r&&"string"==typeof a&&(r=ir(d,l,`${e}${"default"===a?"":rr(a)}`,a)),!1===o?r:{[o]:r}}))}return function a(r){var n;const{sx:i,theme:t={}}=r||{};if(!i)return null;const o=null!=(n=t.unstable_sxConfig)?n:Wr;function s(r){let n=r;if("function"==typeof r)n=r(t);else if("object"!=typeof r)return r;if(!n)return null;const i=function(e={}){var a;return(null==(a=e.keys)?void 0:a.reduce(((a,r)=>(a[e.up(r)]={},a)),{}))||{}}(t.breakpoints),s=Object.keys(i);let l=i;return Object.keys(n).forEach((r=>{const i=(s=n[r],c=t,"function"==typeof s?s(c):s);var s,c;if(null!=i)if("object"==typeof i)if(o[r])l=Xa(l,e(r,i,t,o));else{const e=ar({theme:t},i,(e=>({[r]:e})));!function(...e){const a=e.reduce(((e,a)=>e.concat(Object.keys(a))),[]),r=new Set(a);return e.every((e=>r.size===Object.keys(e).length))}(e,i)?l=Xa(l,e):l[r]=a({sx:i,theme:t})}else l=Xa(l,e(r,i,t,o))})),function(e,a){return e.reduce(((e,a)=>{const r=e[a];return(!r||0===Object.keys(r).length)&&delete e[a],e}),a)}(s,l)}return Array.isArray(i)?i.map(s):s(i)}}();function Kr(e,a){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:a}}return r.palette.mode===e?a:{}}Zr.filterProps=["sx"];const Jr=["breakpoints","palette","spacing","shape"];function Yr(e={},...a){const{breakpoints:r={},palette:n={},spacing:i,shape:t={}}=e,o=ka(e,Jr),s=Ka(r),l=function(e=8){if(e.mui)return e;const a=gr({spacing:e}),r=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const r=a(e);return"number"==typeof r?`${r}px`:r})).join(" "));return r.mui=!0,r}(i);let c=Wa({breakpoints:s,direction:"ltr",components:{},palette:ba({mode:"light"},n),spacing:l,shape:ba({},Ja,t)},o);return c.applyStyles=Kr,c=a.reduce(((e,a)=>Wa(e,a)),c),c.unstable_sxConfig=ba({},Wr,null==o?void 0:o.unstable_sxConfig),c.unstable_sx=function(e){return Zr({sx:e,theme:this})},c}function Xr(e=null){const a=m.useContext(n.ThemeContext);return a&&(r=a,0!==Object.keys(r).length)?a:e;var r}const Qr=Yr();function en(e,a){const r=ba({},a);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=ba({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},t=a[n];r[n]={},t&&Object.keys(t)?i&&Object.keys(i)?(r[n]=ba({},t),Object.keys(i).forEach((e=>{r[n][e]=en(i[e],t[e])}))):r[n]=t:r[n]=i}else void 0===r[n]&&(r[n]=e[n])})),r}function an(e){const{theme:a,name:r,props:n}=e;return a&&a.components&&a.components[r]&&a.components[r].defaultProps?en(a.components[r].defaultProps,n):n}const rn="undefined"!=typeof window?m.useLayoutEffect:m.useEffect;function nn(e,a,r,n,i){const[t,o]=m.useState((()=>i&&r?r(e).matches:n?n(e).matches:a));return rn((()=>{let a=!0;if(!r)return;const n=r(e),i=()=>{a&&o(n.matches)};return i(),n.addListener(i),()=>{a=!1,n.removeListener(i)}}),[e,r]),t}const tn=m.useSyncExternalStore;function on(e,a,r,n,i){const t=m.useCallback((()=>a),[a]),o=m.useMemo((()=>{if(i&&r)return()=>r(e).matches;if(null!==n){const{matches:a}=n(e);return()=>a}return t}),[t,e,n,i,r]),[s,l]=m.useMemo((()=>{if(null===r)return[t,()=>()=>{}];const a=r(e);return[()=>a.matches,e=>(a.addListener(e),()=>{a.removeListener(e)})]}),[t,r,e]);return tn(l,s,o)}var sn=Object.freeze({__proto__:null,default:function(e,a=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(a,Math.min(e,r))}});const ln="exact-prop: ";const cn=m.createContext(null);function dn(){const e=m.useContext(cn);return"production"!==process.env.NODE_ENV&&m.useDebugValue(e),e}"production"!==process.env.NODE_ENV&&(cn.displayName="ThemeContext");var un="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function hn(e){const{children:a,theme:r}=e,n=dn();"production"!==process.env.NODE_ENV&&null===n&&"function"==typeof r&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const i=m.useMemo((()=>{const e=null===n?r:function(e,a){if("function"==typeof a){const r=a(e);return"production"!==process.env.NODE_ENV&&(r||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join("\n"))),r}return ba({},e,a)}(n,r);return null!=e&&(e[un]=null!==n),e}),[r,n]);return w.jsx(cn.Provider,{value:i,children:a})}"production"!==process.env.NODE_ENV&&(hn.propTypes={children:Ua.node,theme:Ua.oneOfType([Ua.object,Ua.func]).isRequired}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(hn.propTypes=function(e){return"production"===process.env.NODE_ENV?e:ba({},e,{[ln]:a=>{const r=Object.keys(a).filter((a=>!e.hasOwnProperty(a)));return r.length>0?new Error(`The following props are not supported: ${r.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}(hn.propTypes));const mn="exact-prop: ";const gn=["value"],pn=m.createContext();function bn(e){let{value:a}=e,r=ka(e,gn);return w.jsx(pn.Provider,ba({value:null==a||a},r))}"production"!==process.env.NODE_ENV&&(bn.propTypes={children:Ua.node,value:Ua.bool});const kn=m.createContext(void 0);function fn({value:e,children:a}){return w.jsx(kn.Provider,{value:e,children:a})}"production"!==process.env.NODE_ENV&&(fn.propTypes={children:Ua.node,value:Ua.object});const yn={};function vn(e,a,r,n=!1){return m.useMemo((()=>{const i=e&&a[e]||a;if("function"==typeof r){const t=r(i),o=e?ba({},a,{[e]:t}):t;return n?()=>o:o}return ba({},a,e?{[e]:r}:r)}),[e,a,r,n])}function wn(e){const{children:a,theme:r,themeId:i}=e,t=Xr(yn),o=dn()||yn;"production"!==process.env.NODE_ENV&&(null===t&&"function"==typeof r||i&&t&&!t[i]&&"function"==typeof r)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const s=vn(i,t,r),l=vn(i,o,r,!0),c="rtl"===s.direction;return w.jsx(hn,{theme:l,children:w.jsx(n.ThemeContext.Provider,{value:s,children:w.jsx(bn,{value:c,children:w.jsx(fn,{value:null==s?void 0:s.components,children:a})})})})}function zn(e){if("object"!=typeof e||null===e)return!1;const a=Object.getPrototypeOf(e);return!(null!==a&&a!==Object.prototype&&null!==Object.getPrototypeOf(a)||Symbol.toStringTag in e||Symbol.iterator in e)}function jn(e){if(m.isValidElement(e)||!zn(e))return e;const a={};return Object.keys(e).forEach((r=>{a[r]=jn(e[r])})),a}function xn(e,a,r={clone:!0}){const n=r.clone?ba({},e):e;return zn(e)&&zn(a)&&Object.keys(a).forEach((i=>{m.isValidElement(a[i])?n[i]=a[i]:zn(a[i])&&Object.prototype.hasOwnProperty.call(e,i)&&zn(e[i])?n[i]=xn(e[i],a[i],r):r.clone?n[i]=zn(a[i])?jn(a[i]):a[i]:n[i]=a[i]})),n}"production"!==process.env.NODE_ENV&&(wn.propTypes={children:Ua.node,theme:Ua.oneOfType([Ua.func,Ua.object]).isRequired,themeId:Ua.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(wn.propTypes=function(e){return"production"===process.env.NODE_ENV?e:ba({},e,{[mn]:a=>{const r=Object.keys(a).filter((a=>!e.hasOwnProperty(a)));return r.length>0?new Error(`The following props are not supported: ${r.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}(wn.propTypes));const qn=e=>e,$n=(()=>{let e=qn;return{configure(a){e=a},generate:a=>e(a),reset(){e=qn}}})(),Cn={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _n(e,a,r="Mui"){const n=Cn[a];return n?`${r}-${n}`:`${$n.generate(e)}-${a}`}function Sn(e,a){return ba({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},a)}var En,An={},On={exports:{}};(En=On).exports=function(e){return e&&e.__esModule?e:{default:e}},En.exports.__esModule=!0,En.exports.default=En.exports;var Dn=On.exports,Mn=p(va),Fn=p(sn),Tn=Dn;Object.defineProperty(An,"__esModule",{value:!0}),An.alpha=Kn,An.blend=function(e,a,r,n=1){const i=(e,a)=>Math.round((e**(1/n)*(1-r)+a**(1/n)*r)**n),t=Un(e),o=Un(a),s=[i(t.values[0],o.values[0]),i(t.values[1],o.values[1]),i(t.values[2],o.values[2])];return Gn({type:"rgb",values:s})},An.colorChannel=void 0;var Nn=An.darken=Jn;An.decomposeColor=Un,An.emphasize=Xn;var In=An.getContrastRatio=function(e,a){const r=Zn(e),n=Zn(a);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};An.getLuminance=Zn,An.hexToRgb=Vn,An.hslToRgb=Wn;var Pn=An.lighten=Yn;An.private_safeAlpha=function(e,a,r){try{return Kn(e,a)}catch(a){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},An.private_safeColorChannel=void 0,An.private_safeDarken=function(e,a,r){try{return Jn(e,a)}catch(a){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},An.private_safeEmphasize=function(e,a,r){try{return Xn(e,a)}catch(a){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},An.private_safeLighten=function(e,a,r){try{return Yn(e,a)}catch(a){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},An.recomposeColor=Gn,An.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:a}=Un(e);return`#${a.map(((e,a)=>function(e){const a=e.toString(16);return 1===a.length?`0${a}`:a}(3===a?Math.round(255*e):e))).join("")}`};var Rn=Tn(Mn),Ln=Tn(Fn);function Bn(e,a=0,r=1){return"production"!==process.env.NODE_ENV&&(e<a||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${a}, ${r}].`),(0,Ln.default)(e,a,r)}function Vn(e){e=e.slice(1);const a=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(a);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,a)=>a<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Un(e){if(e.type)return e;if("#"===e.charAt(0))return Un(Vn(e));const a=e.indexOf("("),r=e.substring(0,a);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Rn.default)(9,e));let n,i=e.substring(a+1,e.length-1);if("color"===r){if(i=i.split(" "),n=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${n}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Rn.default)(10,n))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:r,values:i,colorSpace:n}}const Hn=e=>{const a=Un(e);return a.values.slice(0,3).map(((e,r)=>-1!==a.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};An.colorChannel=Hn;function Gn(e){const{type:a,colorSpace:r}=e;let{values:n}=e;return-1!==a.indexOf("rgb")?n=n.map(((e,a)=>a<3?parseInt(e,10):e)):-1!==a.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==a.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${a}(${n})`}function Wn(e){e=Un(e);const{values:a}=e,r=a[0],n=a[1]/100,i=a[2]/100,t=n*Math.min(i,1-i),o=(e,a=(e+r/30)%12)=>i-t*Math.max(Math.min(a-3,9-a,1),-1);let s="rgb";const l=[Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4))];return"hsla"===e.type&&(s+="a",l.push(a[3])),Gn({type:s,values:l})}function Zn(e){let a="hsl"===(e=Un(e)).type||"hsla"===e.type?Un(Wn(e)).values:e.values;return a=a.map((a=>("color"!==e.type&&(a/=255),a<=.03928?a/12.92:((a+.055)/1.055)**2.4))),Number((.2126*a[0]+.7152*a[1]+.0722*a[2]).toFixed(3))}function Kn(e,a){return e=Un(e),a=Bn(a),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${a}`:e.values[3]=a,Gn(e)}function Jn(e,a){if(e=Un(e),a=Bn(a),-1!==e.type.indexOf("hsl"))e.values[2]*=1-a;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-a;return Gn(e)}function Yn(e,a){if(e=Un(e),a=Bn(a),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*a;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*a;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*a;return Gn(e)}function Xn(e,a=.15){return Zn(e)>.5?Jn(e,a):Yn(e,a)}An.private_safeColorChannel=(e,a)=>{try{return Hn(e)}catch(r){return a&&"production"!==process.env.NODE_ENV&&console.warn(a),e}};const Qn={black:"#000",white:"#fff"},ei={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ai="#f3e5f5",ri="#ce93d8",ni="#ba68c8",ii="#ab47bc",ti="#9c27b0",oi="#7b1fa2",si="#e57373",li="#ef5350",ci="#f44336",di="#d32f2f",ui="#c62828",hi="#ffb74d",mi="#ffa726",gi="#ff9800",pi="#f57c00",bi="#e65100",ki="#e3f2fd",fi="#90caf9",yi="#42a5f5",vi="#1976d2",wi="#1565c0",zi="#4fc3f7",ji="#29b6f6",xi="#03a9f4",qi="#0288d1",$i="#01579b",Ci="#81c784",_i="#66bb6a",Si="#4caf50",Ei="#388e3c",Ai="#2e7d32",Oi="#1b5e20",Di=["mode","contrastThreshold","tonalOffset"],Mi={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Qn.white,default:Qn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Fi={text:{primary:Qn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Qn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ti(e,a,r,n){const i=n.light||n,t=n.dark||1.5*n;e[a]||(e.hasOwnProperty(r)?e[a]=e[r]:"light"===a?e.light=Pn(e.main,i):"dark"===a&&(e.dark=Nn(e.main,t)))}function Ni(e){const{mode:a="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=ka(e,Di),t=e.primary||function(e="light"){return"dark"===e?{main:fi,light:ki,dark:yi}:{main:vi,light:yi,dark:wi}}(a),o=e.secondary||function(e="light"){return"dark"===e?{main:ri,light:ai,dark:ii}:{main:ti,light:ni,dark:oi}}(a),s=e.error||function(e="light"){return"dark"===e?{main:ci,light:si,dark:di}:{main:di,light:li,dark:ui}}(a),l=e.info||function(e="light"){return"dark"===e?{main:ji,light:zi,dark:qi}:{main:qi,light:xi,dark:$i}}(a),c=e.success||function(e="light"){return"dark"===e?{main:_i,light:Ci,dark:Ei}:{main:Ai,light:Si,dark:Oi}}(a),d=e.warning||function(e="light"){return"dark"===e?{main:mi,light:hi,dark:pi}:{main:"#ed6c02",light:gi,dark:bi}}(a);function u(e){const a=In(e,Fi.text.primary)>=r?Fi.text.primary:Mi.text.primary;if("production"!==process.env.NODE_ENV){const r=In(e,a);r<3&&console.error([`MUI: The contrast ratio of ${r}:1 for ${a} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return a}const h=({color:e,name:a,mainShade:r=500,lightShade:i=300,darkShade:t=700})=>{if(!(e=ba({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${a?` (${a})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${r}\` property.`:ga(11,a?` (${a})`:"",r));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${a?` (${a})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:ga(12,a?` (${a})`:"",JSON.stringify(e.main)));return Ti(e,"light",i,n),Ti(e,"dark",t,n),e.contrastText||(e.contrastText=u(e.main)),e},m={dark:Fi,light:Mi};"production"!==process.env.NODE_ENV&&(m[a]||console.error(`MUI: The palette mode \`${a}\` is not supported.`));return xn(ba({common:ba({},Qn),mode:a,primary:h({color:t,name:"primary"}),secondary:h({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:ei,contrastThreshold:r,getContrastText:u,augmentColor:h,tonalOffset:n},m[a]),i)}const Ii=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Pi={textTransform:"uppercase"},Ri='"Roboto", "Helvetica", "Arial", sans-serif';function Li(e,a){const r="function"==typeof a?a(e):a,{fontFamily:n=Ri,fontSize:i=14,fontWeightLight:t=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=r,h=ka(r,Ii);"production"!==process.env.NODE_ENV&&("number"!=typeof i&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof c&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=i/14,g=u||(e=>e/c*m+"rem"),p=(e,a,r,i,t)=>{return ba({fontFamily:n,fontWeight:e,fontSize:g(a),lineHeight:r},n===Ri?{letterSpacing:(o=i/a,Math.round(1e5*o)/1e5)+"em"}:{},t,d);var o},b={h1:p(t,96,1.167,-1.5),h2:p(t,60,1.2,-.5),h3:p(o,48,1.167,0),h4:p(o,34,1.235,.25),h5:p(o,24,1.334,0),h6:p(s,20,1.6,.15),subtitle1:p(o,16,1.75,.15),subtitle2:p(s,14,1.57,.1),body1:p(o,16,1.5,.15),body2:p(o,14,1.43,.15),button:p(s,14,1.75,.4,Pi),caption:p(o,12,1.66,.4),overline:p(o,12,2.66,1,Pi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return xn(ba({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:i,fontWeightLight:t,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},b),h,{clone:!1})}function Bi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Vi=["none",Bi(0,2,1,-1,0,1,1,0,0,1,3,0),Bi(0,3,1,-2,0,2,2,0,0,1,5,0),Bi(0,3,3,-2,0,3,4,0,0,1,8,0),Bi(0,2,4,-1,0,4,5,0,0,1,10,0),Bi(0,3,5,-1,0,5,8,0,0,1,14,0),Bi(0,3,5,-1,0,6,10,0,0,1,18,0),Bi(0,4,5,-2,0,7,10,1,0,2,16,1),Bi(0,5,5,-3,0,8,10,1,0,3,14,2),Bi(0,5,6,-3,0,9,12,1,0,3,16,2),Bi(0,6,6,-3,0,10,14,1,0,4,18,3),Bi(0,6,7,-4,0,11,15,1,0,4,20,3),Bi(0,7,8,-4,0,12,17,2,0,5,22,4),Bi(0,7,8,-4,0,13,19,2,0,5,24,4),Bi(0,7,9,-4,0,14,21,2,0,5,26,4),Bi(0,8,9,-5,0,15,22,2,0,6,28,5),Bi(0,8,10,-5,0,16,24,2,0,6,30,5),Bi(0,8,11,-5,0,17,26,2,0,6,32,5),Bi(0,9,11,-5,0,18,28,2,0,7,34,6),Bi(0,9,12,-6,0,19,29,2,0,7,36,6),Bi(0,10,13,-6,0,20,31,3,0,8,38,7),Bi(0,10,13,-6,0,21,33,3,0,8,40,7),Bi(0,10,14,-6,0,22,35,3,0,8,42,7),Bi(0,11,14,-7,0,23,36,3,0,9,44,8),Bi(0,11,15,-7,0,24,38,3,0,9,46,8)],Ui=["duration","easing","delay"],Hi={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Gi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wi(e){return`${Math.round(e)}ms`}function Zi(e){if(!e)return 0;const a=e/36;return Math.round(10*(4+15*a**.25+a/5))}function Ki(e){const a=ba({},Hi,e.easing),r=ba({},Gi,e.duration);return ba({getAutoHeightDuration:Zi,create:(e=["all"],n={})=>{const{duration:i=r.standard,easing:t=a.easeInOut,delay:o=0}=n,s=ka(n,Ui);if("production"!==process.env.NODE_ENV){const a=e=>"string"==typeof e,r=e=>!isNaN(parseFloat(e));a(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),r(i)||a(i)||console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),a(t)||console.error('MUI: Argument "easing" must be a string.'),r(o)||a(o)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof n&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:Wi(i)} ${t} ${"string"==typeof o?o:Wi(o)}`)).join(",")}},e,{easing:a,duration:r})}const Ji={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Yi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Xi=function(e={},...a){const{mixins:r={},palette:n={},transitions:i={},typography:t={}}=e,o=ka(e,Yi);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":ga(18));const s=Ni(n),l=Yr(e);let c=xn(l,{mixins:Sn(l.breakpoints,r),palette:s,shadows:Vi.slice(),typography:Li(s,t),transitions:Ki(i),zIndex:ba({},Ji)});if(c=xn(c,o),c=a.reduce(((e,a)=>xn(e,a)),c),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],a=(a,r)=>{let n;for(n in a){const i=a[n];if(-1!==e.indexOf(n)&&Object.keys(i).length>0){if("production"!==process.env.NODE_ENV){const e=_n("",n);console.error([`MUI: The \`${r}\` component increases the CSS specificity of the \`${n}\` internal state.`,"You can not override it like this: ",JSON.stringify(a,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:i}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}a[n]={}}}};Object.keys(c.components).forEach((e=>{const r=c.components[e].styleOverrides;r&&0===e.indexOf("Mui")&&a(r,e)}))}return c.unstable_sxConfig=ba({},Wr,null==o?void 0:o.unstable_sxConfig),c.unstable_sx=function(e){return Zr({sx:e,theme:this})},c}();function Qi(){const e=function(e=Qr){return Xr(e)}(Xi);return"production"!==process.env.NODE_ENV&&m.useDebugValue(e),e[pa]||e}const et=["theme"];function at(e){let{theme:a}=e,r=ka(e,et);const n=a[pa];return w.jsx(wn,ba({},r,{themeId:n?pa:void 0,theme:n||a}))}"production"!==process.env.NODE_ENV&&(at.propTypes={children:Ua.node,theme:Ua.oneOfType([Ua.object,Ua.func]).isRequired});const rt=()=>{const e=Qi();return[...e.breakpoints.keys].reduce(((a,r)=>{const n=function(e,a={}){const r=Xr(),n="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:t=(n?window.matchMedia:null),ssrMatchMedia:o=null,noSsr:s=!1}=an({name:"MuiUseMediaQuery",props:a,theme:r});"production"!==process.env.NODE_ENV&&"function"==typeof e&&null===r&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join("\n"));let l="function"==typeof e?e(r):e;l=l.replace(/^@media( ?)/m,"");const c=(void 0!==tn?on:nn)(l,i,t,o,s);return"production"!==process.env.NODE_ENV&&m.useDebugValue({query:l,match:c}),c}(e.breakpoints.up(r));return n?r:a}),null)??"sm"},nt=e=>({backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.icon.primary}),it=e=>({backgroundColor:e.custom.palette.purple[100],color:e.custom.palette.icon.primary,"&:hover":{"&:before":{background:e.custom.palette.interaction.hoverOnDark}},"&:active":{"&:before":{background:e.custom.palette.interaction.pressOnDark}}}),tt=e=>({backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,color:e.custom.palette.icon.primary,"&.MuiIconButton-root:disabled":{border:"none"}}),ot=e=>({backgroundColor:e.custom.palette.surface.raised,boxShadow:e.custom.elevation.raised,color:e.custom.palette.icon.primary,"&:focus-visible:after":{boxShadow:e.custom.boxShadow.input.focus},"&.MuiIconButton-root:disabled":{boxShadow:"none"}}),st=(e,a)=>({borderRadius:"default"===e?a.spacing(a.custom.radius.md):a.custom.radius.round}),lt={xs:3*O,sm:3.5*O,md:4*O,lg:5*O,xl:6*O},ct=e=>({height:lt[e],width:lt[e]}),dt={xs:2*O,sm:2*O,md:2*O,lg:2.5*O,xl:3*O},ut=e=>({height:dt[e],width:dt[e]}),ht=a.styled(a.IconButton)((({theme:e,variation:a,shape:r="default",sizing:n})=>({boxSizing:"border-box",transition:"all 200ms ease","&:before, &:after":{...r&&{...st(r,e)},transition:"all 250ms ease",content:'""',position:"absolute",inset:0},"&:hover:before":{backgroundColor:e.custom.palette.interaction.hover},"&:focus:before":{backgroundColor:e.custom.palette.interaction.hover},"&:active:before":{backgroundColor:e.custom.palette.interaction.press},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},...r&&{...st(r,e)},...n&&{...ct(n)},"&.MuiIconButton-root":{..."default"===a&&{...nt(e)},..."toggle"===a&&{...it(e)},..."outlined"===a&&{...tt(e)},..."raised"===a&&{...ot(e)},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,color:e.custom.palette.icon.disabled}},"& .MuiSvgIcon-root":{...n&&{...ut(n)},position:"relative",zIndex:1}}))),mt=({icon:e,loading:a,sizing:r,...n})=>w.jsx(ht,{...n,sizing:r,children:a?w.jsx(Be,{sizing:r}):e}),gt=(e,a)=>({"&:after":{content:'""',position:"absolute",bottom:0,width:0,height:1,borderBottom:`1px solid ${e.custom.palette.stroke.default}`,background:"grey"},borderRadius:0,"&:first-of-type":{borderRadius:e.spacing(e.custom.radius.md),borderBottomLeftRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:e.spacing(e.custom.radius.md),borderTopRightRadius:0,borderTopLeftRadius:0,"&:after":{content:"none"}}}),pt=(e,a)=>({"&:after":{content:'""',position:"absolute",right:0,width:1,height:0,borderRight:`1px solid ${e.custom.palette.stroke.default}`,background:"grey"},borderRadius:0,"&:first-of-type":{borderRadius:e.spacing(e.custom.radius.md),borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:e.spacing(e.custom.radius.md),borderTopLeftRadius:0,borderBottomLeftRadius:0,"&:after":{content:"none"}}}),bt=a.styled(a.ButtonGroup)((({theme:e,variation:a,orientation:r="horizontal",iconColor:n,sizing:i="lg",groupRaised:t=!1})=>({"&.MuiButtonGroup-root":{border:`1px solid ${e.custom.palette.stroke.default}`,...t&&{boxShadow:e.custom.elevation.raised,border:"none"},"& > button":{..."default"===a&&{...nt(e)},..."toggle"===a&&{...it(e)},..."vertical"===r&&{...gt(e)},..."horizontal"===r&&{...pt(e)},...i&&{...ct(i)}},"& .MuiSvgIcon-root":{...i&&{...ut(i)},fill:n||"inherit"}}}))),kt=({sx:e,...a})=>w.jsx(na,{...a,sx:z({fontSize:{xs:Se.sm.body.md,sm:Se.sm.body.md,md:Se.sm.body.md,lg:Se.lg.body.md,xl:Se.lg.body.md}},!!e&&{...e})}),ft=a.styled(a.Box)((({theme:e})=>({"& .MuiGrid-item":{"&:first-of-type":{"& .MuiBox-root":{"&:before":{width:C,borderRadius:e.custom.radius.round,right:"50%",transform:`translateX(-${C}px)`,left:"auto"}}},"&:last-child":{"& .MuiBox-root":{"&:after":{width:C,borderRadius:e.custom.radius.round,right:"auto",left:"50%",transform:`translateX(${C}px)`}}}}}))),yt=({children:e,width:a})=>w.jsx(ft,{sx:{width:a},children:e}),vt=a.styled(ia)((()=>({lineHeight:"110%",textAlign:"center",width:"100%"}))),wt=({disabled:e,children:a})=>w.jsx(vt,{showicon:!1,disabled:e,sx:{cursor:"inherit"},children:a}),zt=a.styled(la)((()=>({marginRight:0}))),jt=a.styled(a.Box)((({theme:e})=>({posiion:"relative","&:before":{content:'""',position:"absolute",top:"50%",left:0,height:q,width:`calc(50% - ${S/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default},"&:after":{content:'""',position:"absolute",top:"50%",right:0,height:q,width:`calc(50% - ${S/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default}}))),xt=e=>w.jsx(jt,{sx:{textAlign:"center",position:"relative"},children:w.jsx(zt,{...e})}),qt=({options:e=[],disabled:r=!1,sizing:n="lg",onChange:i,internalChange:t,value:o})=>{const s=a.useTheme();function l(e){console.warn(e),i(e.value),t&&t()}return w.jsx(a.Box,{children:w.jsx(yt,{children:w.jsx(a.Grid,{container:!0,justifyContent:"space-between",children:e.map((e=>w.jsxs(a.Grid,{item:!0,sm:!0,onClick:()=>l(e),sx:{cursor:"pointer",textAlign:"center","&:hover":{"& .MuiButtonBase-root.MuiRadio-root":{"&:before":{backgroundColor:s.custom.palette.interaction.hover}}},"&:active":{"& .MuiButtonBase-root.MuiRadio-root":{backgroundColor:s.custom.palette.input.default,borderColor:s.custom.palette.stroke.focus,boxShadow:s.custom.boxShadow.input.focus,"&:before":{backgroundColor:s.custom.palette.interaction.press},"&.Mui-checked":{backgroundColor:s.custom.palette.purple[500]}}}},children:[w.jsx(xt,{sizing:n,disabled:r,onChange:a=>l(e),checked:o===e.value},e.value),w.jsx(a.Box,{sx:{mt:D.xs,width:"100%"},children:w.jsx(wt,{disabled:r,children:e.label})})]},e.value)))})})})},$t=a.styled(a.Link)((({theme:e,disabled:a})=>({"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus,borderRadius:e.spacing(e.custom.radius.sm),outline:"none"},"&.MuiLink-root":{transition:"all 200ms ease",display:"inline",cursor:"pointer",color:a?e.custom.palette.text.lockedWhite:e.custom.palette.text.textLink,textDecorationColor:e.custom.palette.text.textLink,pointerEvents:a?"none":"auto","&:hover":{color:a?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover,textDecorationColor:a?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover},"&:active":{color:e.custom.palette.text.textLinkHover,textDecorationColor:e.custom.palette.text.textLinkHover},"&:visited":{color:a?e.custom.palette.text.disabled:e.custom.palette.text.textLink,textDecorationColor:a?e.custom.palette.text.disabled:e.custom.palette.text.textLink}}}))),Ct=e=>e.target&&"_blank"===e.target?w.jsx($t,{rel:"noopener",...e}):w.jsx($t,{...e});function _t(e,a){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.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++)a.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}var St;function Et(){}function At(e){return!!(e||"").match(/\d/)}function Ot(e){return null==e}function Dt(e){return Ot(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Mt(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Ft(e,a){void 0===a&&(a=!0);var r="-"===e[0],n=r&&a,i=(e=e.replace("-","")).split(".");return{beforeDecimal:i[0],afterDecimal:i[1]||"",hasNegation:r,addNegation:n}}function Tt(e,a,r){for(var n="",i=r?"0":"",t=0;t<=a-1;t++)n+=e[t]||i;return n}function Nt(e,a){return Array(a+1).join(e)}function It(e){var a=e+"",r="-"===a[0]?"-":"";r&&(a=a.substring(1));var n=a.split(/[eE]/g),i=n[0],t=n[1];if(!(t=Number(t)))return r+i;var o=1+t,s=(i=i.replace(".","")).length;return o<0?i="0."+Nt("0",Math.abs(o))+i:o>=s?i+=Nt("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),r+i}function Pt(e,a,r){if(-1!==["","-"].indexOf(e))return e;var n=(-1!==e.indexOf(".")||r)&&a,i=Ft(e),t=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),c=(o.length<=a?"0."+o:l.toFixed(a)).split("."),d=t;return t&&Number(c[0])&&(d=t.split("").reverse().reduce((function(e,a,r){return e.length>r?(Number(e[0])+Number(a)).toString()+e.substring(1,e.length):a+e}),c[0])),""+(s?"-":"")+d+(n?".":"")+Tt(c[1]||"",a,r)}function Rt(e,a){if(e.value=e.value,null!==e){if(e.createTextRange){var r=e.createTextRange();return r.move("character",a),r.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(a,a),!0):(e.focus(),!1)}}!function(e){e.event="event",e.props="prop"}(St||(St={}));var Lt,Bt,Vt,Ut=(Lt=function(e,a){for(var r=0,n=0,i=e.length,t=a.length;e[r]===a[r]&&r<i;)r++;for(;e[i-1-n]===a[t-1-n]&&t-n>r&&i-n>r;)n++;return{from:{start:r,end:i-n},to:{start:r,end:t-n}}},Vt=void 0,function(){for(var e=[],a=arguments.length;a--;)e[a]=arguments[a];return Bt&&e.length===Bt.length&&e.every((function(e,a){return e===Bt[a]}))?Vt:(Bt=e,Vt=Lt.apply(void 0,e))});function Ht(e){return Math.max(e.selectionStart,e.selectionEnd)}function Gt(e){var a=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,i=e.formattedValueIndex;return a[n]===r[i]}function Wt(e,a,r,n){var i=e.length;if(a=function(e,a,r){return Math.min(Math.max(e,a),r)}(a,0,i),"left"===n){for(;a>=0&&!r[a];)a--;-1===a&&(a=r.indexOf(!0))}else{for(;a<=i&&!r[a];)a++;a>i&&(a=r.lastIndexOf(!0))}return-1===a&&(a=i),a}function Zt(e){for(var a=Array.from({length:e.length+1}).map((function(){return!0})),r=0,n=a.length;r<n;r++)a[r]=Boolean(At(e[r])||At(e[r-1]));return a}function Kt(a,r,n,i,t,o){void 0===o&&(o=Et);var s=function(a){var r=e.useRef(a);r.current=a;var n=e.useRef((function(){for(var e=[],a=arguments.length;a--;)e[a]=arguments[a];return r.current.apply(r,e)}));return n.current}((function(e,a){var r,n;return Dt(e)?(n="",r=""):"number"==typeof e||a?(n="number"==typeof e?It(e):e,r=i(n)):(n=t(e,void 0),r=i(n)),{formattedValue:r,numAsString:n}})),l=e.useState((function(){return s(Ot(a)?r:a,n)})),c=l[0],d=l[1],u=a,h=n;Ot(a)&&(u=c.numAsString,h=!0);var m=s(u,h);return e.useMemo((function(){d(m)}),[m.formattedValue]),[c,function(e,a){e.formattedValue!==c.formattedValue&&d({formattedValue:e.formattedValue,numAsString:e.value}),o(e,a)}]}function Jt(e){return e.replace(/[^0-9]/g,"")}function Yt(e){return e}function Xt(a){var r=a.type;void 0===r&&(r="text");var n=a.displayType;void 0===n&&(n="input");var i=a.customInput,t=a.renderText,o=a.getInputRef,s=a.format;void 0===s&&(s=Yt);var l=a.removeFormatting;void 0===l&&(l=Jt);var c=a.defaultValue,d=a.valueIsNumericString,u=a.onValueChange,h=a.isAllowed,m=a.onChange;void 0===m&&(m=Et);var g=a.onKeyDown;void 0===g&&(g=Et);var p=a.onMouseUp;void 0===p&&(p=Et);var b=a.onFocus;void 0===b&&(b=Et);var k=a.onBlur;void 0===k&&(k=Et);var f=a.value,y=a.getCaretBoundary;void 0===y&&(y=Zt);var v=a.isValidInputCharacter;void 0===v&&(v=At);var w=a.isCharacterSame,z=_t(a,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),j=Kt(f,c,Boolean(d),s,l,u),x=j[0],q=x.formattedValue,$=x.numAsString,C=j[1],_=e.useRef(),S=e.useRef({formattedValue:q,numAsString:$}),E=function(e,a){S.current={formattedValue:e.formattedValue,numAsString:e.value},C(e,a)},A=e.useState(!1),O=A[0],D=A[1],M=e.useRef(null),F=e.useRef({setCaretTimeout:null,focusTimeout:null});e.useEffect((function(){return D(!0),function(){clearTimeout(F.current.setCaretTimeout),clearTimeout(F.current.focusTimeout)}}),[]);var T=s,N=function(e,a){var r=parseFloat(a);return{formattedValue:e,value:a,floatValue:isNaN(r)?void 0:r}},I=function(e,a,r){0===e.selectionStart&&e.selectionEnd===e.value.length||(Rt(e,a),F.current.setCaretTimeout=setTimeout((function(){e.value===r&&e.selectionStart!==a&&Rt(e,a)}),0))},P=function(e,a,r){return Wt(e,a,y(e),r)},R=function(e,a,r){var n=y(a),i=function(e,a,r,n,i,t,o){void 0===o&&(o=Gt);var s=i.findIndex((function(e){return e})),l=e.slice(0,s);a||r.startsWith(l)||(a=l,r=l+r,n+=l.length);for(var c=r.length,d=e.length,u={},h=new Array(c),m=0;m<c;m++){h[m]=-1;for(var g=0,p=d;g<p;g++)if(o({currentValue:r,lastValue:a,formattedValue:e,currentValueIndex:m,formattedValueIndex:g})&&!0!==u[g]){h[m]=g,u[g]=!0;break}}for(var b=n;b<c&&(-1===h[b]||!t(r[b]));)b++;var k=b===c||-1===h[b]?d:h[b];for(b=n-1;b>0&&-1===h[b];)b--;var f=-1===b||-1===h[b]?0:h[b]+1;return f>k?k:n-f<k-n?f:k}(a,q,e,r,n,v,w);return i=Wt(a,i,n)};e.useEffect((function(){var e=S.current,a=e.formattedValue,r=e.numAsString;q===a&&$===r||E(N(q,$),{event:void 0,source:St.props})}),[q,$]);var L=M.current?Ht(M.current):void 0;("undefined"!=typeof window?e.useLayoutEffect:e.useEffect)((function(){var e=M.current;if(q!==S.current.formattedValue&&e){var a=R(S.current.formattedValue,q,L);e.value=q,I(e,a,q)}}),[q]);var B=function(e,a,r){var n=a.target,i=_.current?function(e,a){var r=Math.min(e.selectionStart,a);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:a}}}(_.current,n.selectionEnd):Ut(q,e),t=Object.assign(Object.assign({},i),{lastValue:q}),o=l(e,t),s=T(o);if(o=l(s,void 0),h&&!h(N(s,o))){var c=a.target,d=Ht(c),u=R(e,q,d);return c.value=q,I(c,u,q),!1}return function(e){var a=e.formattedValue;void 0===a&&(a="");var r,n=e.input,i=e.source,t=e.event,o=e.numAsString;if(n){var s=e.inputValue||n.value,l=Ht(n);n.value=a,void 0!==(r=R(s,a,l))&&I(n,r,a)}a!==q&&E(N(a,o),{event:t,source:i})}({formattedValue:s,numAsString:o,inputValue:e,event:a,source:r,input:a.target}),!0},V=function(e,a){void 0===a&&(a=0);var r=e.selectionStart,n=e.selectionEnd;_.current={selectionStart:r,selectionEnd:n+a}},U=!O||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",H=Object.assign({inputMode:U},z,{type:r,value:q,onChange:function(e){var a=e.target.value;B(a,e,St.event)&&m(e),_.current=void 0},onKeyDown:function(e){var a,r=e.target,n=e.key,i=r.selectionStart,t=r.selectionEnd,o=r.value;void 0===o&&(o=""),"ArrowLeft"===n||"Backspace"===n?a=Math.max(i-1,0):"ArrowRight"===n?a=Math.min(i+1,o.length):"Delete"===n&&(a=i);var s=0;"Delete"===n&&i===t&&(s=1);var l="ArrowLeft"===n||"ArrowRight"===n;if(void 0===a||i!==t&&!l)return g(e),void V(r,s);var c=a;l?(c=P(o,a,"ArrowLeft"===n?"left":"right"))!==a&&e.preventDefault():"Delete"!==n||v(o[a])?"Backspace"!==n||v(o[a])||(c=P(o,a,"left")):c=P(o,a,"right");c!==a&&I(r,c,o),g(e),V(r,s)},onMouseUp:function(e){var a=e.target,r=function(){var e=a.selectionStart,r=a.selectionEnd,n=a.value;if(void 0===n&&(n=""),e===r){var i=P(n,e);i!==e&&I(a,i,n)}};r(),requestAnimationFrame((function(){r()})),p(e),V(a)},onFocus:function(e){e.persist&&e.persist();var a=e.target,r=e.currentTarget;M.current=a,F.current.focusTimeout=setTimeout((function(){var n=a.selectionStart,i=a.selectionEnd,t=a.value;void 0===t&&(t="");var o=P(t,n);o===n||0===n&&i===t.length||I(a,o,t),b(Object.assign(Object.assign({},e),{currentTarget:r}))}),0)},onBlur:function(e){M.current=null,clearTimeout(F.current.focusTimeout),clearTimeout(F.current.setCaretTimeout),k(e)}});if("text"===n)return t?e.createElement(e.Fragment,null,t(q,z)||null):e.createElement("span",Object.assign({},z,{ref:o}),q);if(i){var G=i;return e.createElement(G,Object.assign({},H,{ref:o}))}return e.createElement("input",Object.assign({},H,{ref:o}))}function Qt(e,a){var r=a.decimalScale,n=a.fixedDecimalScale,i=a.prefix;void 0===i&&(i="");var t=a.suffix;void 0===t&&(t="");var o=a.allowNegative,s=a.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var l=eo(a),c=l.thousandSeparator,d=l.decimalSeparator,u=0!==r&&-1!==e.indexOf(".")||r&&n,h=Ft(e,o),m=h.beforeDecimal,g=h.afterDecimal,p=h.addNegation;return void 0!==r&&(g=Tt(g,r,!!n)),c&&(m=function(e,a,r){var n=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(r),i=e.search(/[1-9]/);return i=-1===i?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(n,"$1"+a)}(m,c,s)),i&&(m=i+m),t&&(g+=t),p&&(m="-"+m),e=m+(u&&d||"")+g}function eo(e){var a=e.decimalSeparator;void 0===a&&(a=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return!0===r&&(r=","),n||(n=[a,"."]),{decimalSeparator:a,thousandSeparator:r,allowedDecimalSeparators:n}}function ao(e,a,r){var n;void 0===a&&(a=function(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}(e));var i=r.allowNegative,t=r.prefix;void 0===t&&(t="");var o=r.suffix;void 0===o&&(o="");var s=r.decimalScale,l=a.from,c=a.to,d=c.start,u=c.end,h=eo(r),m=h.allowedDecimalSeparators,g=h.decimalSeparator,p=e[u]===g;if(At(e)&&(e===t||e===o)&&""===a.lastValue)return e;if(u-d==1&&-1!==m.indexOf(e[d])){var b=0===s?"":g;e=e.substring(0,d)+b+e.substring(d+1,e.length)}var k=function(e,a,r){var n=!1,i=!1;t.startsWith("-")?n=!1:e.startsWith("--")?(n=!1,i=!0):o.startsWith("-")&&e.length===o.length?n=!1:"-"===e[0]&&(n=!0);var s=n?1:0;return i&&(s=2),s&&(e=e.substring(s),a-=s,r-=s),{value:e,start:a,end:r,hasNegation:n}},f=k(e,d,u),y=f.hasNegation;e=(n=f).value,d=n.start,u=n.end;var v=k(a.lastValue,l.start,l.end),w=v.start,z=v.end,j=v.value,x=e.substring(d,u);!(e.length&&j.length&&(w>j.length-o.length||z<t.length))||x&&o.startsWith(x)||(e=j);var q=0;e.startsWith(t)?q+=t.length:d<t.length&&(q=d),u-=q;var $=(e=e.substring(q)).length,C=e.length-o.length;e.endsWith(o)?$=C:(u>C||u>e.length-o.length)&&($=u),e=e.substring(0,$),e=function(e,a){void 0===e&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),i=r.test(e),t=n.test(e);return e=e.replace(/-/g,""),i&&!t&&a&&(e="-"+e),e}(y?"-"+e:e,i),e=(e.match(function(e){return new RegExp("(^-)|[0-9]|"+Mt(e),"g")}(g))||[]).join("");var _=e.indexOf(g);e=e.replace(new RegExp(Mt(g),"g"),(function(e,a){return a===_?".":""}));var S=Ft(e,i),E=S.beforeDecimal,A=S.afterDecimal,O=S.addNegation;return c.end-c.start<l.end-l.start&&""===E&&p&&!parseFloat(A)&&(e=O?"-":""),e}function ro(e){e=function(e){var a=eo(e),r=a.thousandSeparator,n=a.decimalSeparator,i=e.prefix;void 0===i&&(i="");var t=e.allowNegative;if(void 0===t&&(t=!0),r===n)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+r+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+n+" (default value for decimalSeparator is .)\n ");return i.startsWith("-")&&t&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+i+"\n allowNegative: "+t+"\n "),t=!1),Object.assign(Object.assign({},e),{allowNegative:t})}(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var a=e.suffix,r=e.allowNegative,n=e.allowLeadingZeros,i=e.onKeyDown;void 0===i&&(i=Et);var t=e.onBlur;void 0===t&&(t=Et);var o=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,c=e.prefix;void 0===c&&(c="");var d=e.defaultValue,u=e.value,h=e.valueIsNumericString,m=e.onValueChange,g=_t(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),p=eo(e),b=p.decimalSeparator,k=p.allowedDecimalSeparators,f=function(a){return Qt(a,e)},y=function(a,r){return ao(a,r,e)},v=Ot(u)?d:u,w=null!=h?h:function(e,a,r){return""===e||!(null==a?void 0:a.match(/\d/))&&!(null==r?void 0:r.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(v,c,a);Ot(u)?Ot(d)||(w=w||"number"==typeof d):w=w||"number"==typeof u;var z=function(e){return Dt(e)?e:("number"==typeof e&&(e=It(e)),w&&"number"==typeof s?Pt(e,s,Boolean(l)):e)},j=Kt(z(u),z(d),Boolean(w),f,y,m),x=j[0],q=x.numAsString,$=x.formattedValue,C=j[1];return Object.assign(Object.assign({},g),{value:$,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===b||At(e)},isCharacterSame:function(e){var a=e.currentValue,r=e.lastValue,n=e.formattedValue,i=e.currentValueIndex,t=e.formattedValueIndex,o=a[i],d=n[t],h=Ut(r,a).to,m=function(e){return y(e).indexOf(".")+c.length};return!(0===u&&l&&s&&a[h.start]===b&&m(a)<i&&m(n)>t)&&(!!(i>=h.start&&i<h.end&&k&&k.includes(o)&&d===b)||o===d)},onValueChange:C,format:f,removeFormatting:y,getCaretBoundary:function(a){return function(e,a){var r=a.prefix;void 0===r&&(r="");var n=a.suffix;void 0===n&&(n="");var i=Array.from({length:e.length+1}).map((function(){return!0})),t="-"===e[0];i.fill(!1,0,r.length+(t?1:0));var o=e.length;return i.fill(!1,o-n.length+1,o+1),i}(a,e)},onKeyDown:function(e){var a=e.target,n=e.key,t=a.selectionStart,d=a.selectionEnd,u=a.value;if(void 0===u&&(u=""),("Backspace"===n||"Delete"===n)&&d<c.length)e.preventDefault();else if(t===d){"Backspace"===n&&"-"===u[0]&&t===c.length+1&&r&&Rt(a,1),s&&l&&("Backspace"===n&&u[t-1]===b?(Rt(a,t-1),e.preventDefault()):"Delete"===n&&u[t]===b&&e.preventDefault()),(null==k?void 0:k.includes(n))&&u[t]===b&&Rt(a,t+1);var h=!0===o?",":o;"Backspace"===n&&u[t-1]===h&&Rt(a,t-1),"Delete"===n&&u[t]===h&&Rt(a,t+1),i(e)}else i(e)},onBlur:function(a){var r=q;if(r.match(/\d/g)||(r=""),n||(r=function(e){if(!e)return e;var a="-"===e[0];a&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",i=r[1]||"";return(a?"-":"")+n+(i?"."+i:"")}(r)),l&&s&&(r=Pt(r,s,l)),r!==q){var i=Qt(r,e);C({formattedValue:i,value:r,floatValue:parseFloat(r)},{event:a,source:St.event})}t(a)}})}function no(a){var r=ro(a);return e.createElement(Xt,Object.assign({},r))}const io=(e,a,r)=>0===e||e?a&&e<a?a:r&&e>r?r:e:a||0,to=e.forwardRef((({inputRef:n,onChange:i,name:t,min:o,max:s,value:l,...c},d)=>{const u=a.useTheme(),[h,m]=e.useState(io(l,o,s)||0),g=e=>{m((a=>io(e?a+1:a-1,o,s)))},p=e.useCallback((()=>{const e=io(h,o,s);i&&i({target:{value:e}}),m(e)}),[h]);return w.jsxs(w.Fragment,{children:[w.jsx(no,{...c,style:{width:"100%"},getInputRef:n,allowNegative:o&&Math.sign(o),autoFocus:!1,value:h,onValueChange:({floatValue:e})=>{m(e)},onBlurCapture:p}),w.jsxs(a.Stack,{sx:{position:"absolute",top:0,right:0,height:"100%",ml:"auto",width:32,borderLeft:`1px solid ${u.custom.palette.stroke.default}`},children:[w.jsx(a.ButtonBase,{onClick:()=>g(!0),sx:{flex:1,borderTopRightRadius:u.spacing(u.custom.radius.md),fontSize:16,"&:hover":{background:u.custom.palette.interaction.hover}},children:w.jsx(r.ArrowDropUp,{fontSize:"inherit"})}),w.jsx(a.Divider,{}),w.jsx(a.ButtonBase,{onClick:()=>g(!1),sx:{flex:1,borderBottomRightRadius:u.spacing(u.custom.radius.md),fontSize:16,"&:hover":{background:u.custom.palette.interaction.hover}},children:w.jsx(r.ArrowDropDown,{fontSize:"inherit"})})]})]})})),oo=({startAdornment:e,endAdornment:r,placeholder:n,onChange:i,internalChange:t,inputRef:o,min:s,max:l,...c})=>w.jsx(Je,{placeholder:n,sx:{height:E,"& .MuiOutlinedInput-input":{pl:e?1:2,pr:e?1:2}},inputRef:o,inputProps:{min:s,max:l},InputProps:{inputComponent:to,endAdornment:r?w.jsx(a.InputAdornment,{position:"start",sx:{pr:1},children:r}):null},...c,onChange:e=>{i&&i(e),t&&t()}}),so=(e,a)=>"light"===a?{fontWeight:400}:{fontWeight:500,textTransform:"uppercase"},lo=(e,a,r)=>{switch(a){case"peach":return{background:e.custom.palette.peach[100],color:"heavy"===r?e.custom.palette.peach[1e3]:e.custom.palette.peach[800]};case"peachDark":return{background:e.custom.palette.peach[800],color:e.custom.palette.peach[0]};case"purple":return{background:e.custom.palette.purple[100],color:"heavy"===r?e.custom.palette.purple[1e3]:e.custom.palette.purple[800]};default:return{background:e.custom.palette.neutral[100],color:"heavy"===r?e.custom.palette.neutral[1e3]:e.custom.palette.neutral[800]}}},co=a.styled(a.Chip)((({theme:e,variation:a,weight:r})=>({borderRadius:e.spacing(e.custom.radius.md),height:28,...lo(e,a,r),"& .MuiChip-label":{fontSize:`${Se.sm.body.sm}`,padding:`0 ${e.spacing(e.custom.padding.sm)}`,...so(0,r)},"& .MuiChip-icon":{width:"0.8em",height:"0.8em",marginRight:-4,...lo(e,a,r),...so(0,r)}})));var uo=function(){function e(e){var a=this;this._insertTag=function(e){var r;r=0===a.tags.length?a.insertionPoint?a.insertionPoint.nextSibling:a.prepend?a.container.firstChild:a.before:a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(e,r),a.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var a=e.prototype;return a.hydrate=function(e){e.forEach(this._insertTag)},a.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var a=document.createElement("style");return a.setAttribute("data-emotion",e.key),void 0!==e.nonce&&a.setAttribute("nonce",e.nonce),a.appendChild(document.createTextNode("")),a.setAttribute("data-s",""),a}(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a].ownerNode===e)return document.styleSheets[a]}(a);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else a.appendChild(document.createTextNode(e));this.ctr++},a.flush=function(){this.tags.forEach((function(e){var a;return null==(a=e.parentNode)?void 0:a.removeChild(e)})),this.tags=[],this.ctr=0},e}(),ho="-ms-",mo="-moz-",go="-webkit-",po="comm",bo="rule",ko="decl",fo="@keyframes",yo=Math.abs,vo=String.fromCharCode,wo=Object.assign;function zo(e){return e.trim()}function jo(e,a,r){return e.replace(a,r)}function xo(e,a){return e.indexOf(a)}function qo(e,a){return 0|e.charCodeAt(a)}function $o(e,a,r){return e.slice(a,r)}function Co(e){return e.length}function _o(e){return e.length}function So(e,a){return a.push(e),e}var Eo=1,Ao=1,Oo=0,Do=0,Mo=0,Fo="";function To(e,a,r,n,i,t,o){return{value:e,root:a,parent:r,type:n,props:i,children:t,line:Eo,column:Ao,length:o,return:""}}function No(e,a){return wo(To("",null,null,"",null,null,0),e,{length:-e.length},a)}function Io(){return Mo=Do<Oo?qo(Fo,Do++):0,Ao++,10===Mo&&(Ao=1,Eo++),Mo}function Po(){return qo(Fo,Do)}function Ro(){return Do}function Lo(e,a){return $o(Fo,e,a)}function Bo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Vo(e){return Eo=Ao=1,Oo=Co(Fo=e),Do=0,[]}function Uo(e){return Fo="",e}function Ho(e){return zo(Lo(Do-1,Zo(91===e?e+2:40===e?e+1:e)))}function Go(e){for(;(Mo=Po())&&Mo<33;)Io();return Bo(e)>2||Bo(Mo)>3?"":" "}function Wo(e,a){for(;--a&&Io()&&!(Mo<48||Mo>102||Mo>57&&Mo<65||Mo>70&&Mo<97););return Lo(e,Ro()+(a<6&&32==Po()&&32==Io()))}function Zo(e){for(;Io();)switch(Mo){case e:return Do;case 34:case 39:34!==e&&39!==e&&Zo(Mo);break;case 40:41===e&&Zo(e);break;case 92:Io()}return Do}function Ko(e,a){for(;Io()&&e+Mo!==57&&(e+Mo!==84||47!==Po()););return"/*"+Lo(a,Do-1)+"*"+vo(47===e?e:Io())}function Jo(e){for(;!Bo(Po());)Io();return Lo(e,Do)}function Yo(e){return Uo(Xo("",null,null,null,[""],e=Vo(e),0,[0],e))}function Xo(e,a,r,n,i,t,o,s,l){for(var c=0,d=0,u=o,h=0,m=0,g=0,p=1,b=1,k=1,f=0,y="",v=i,w=t,z=n,j=y;b;)switch(g=f,f=Io()){case 40:if(108!=g&&58==qo(j,u-1)){-1!=xo(j+=jo(Ho(f),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:j+=Ho(f);break;case 9:case 10:case 13:case 32:j+=Go(g);break;case 92:j+=Wo(Ro()-1,7);continue;case 47:switch(Po()){case 42:case 47:So(es(Ko(Io(),Ro()),a,r),l);break;default:j+="/"}break;case 123*p:s[c++]=Co(j)*k;case 125*p:case 59:case 0:switch(f){case 0:case 125:b=0;case 59+d:-1==k&&(j=jo(j,/\f/g,"")),m>0&&Co(j)-u&&So(m>32?as(j+";",n,r,u-1):as(jo(j," ","")+";",n,r,u-2),l);break;case 59:j+=";";default:if(So(z=Qo(j,a,r,c,d,i,s,y,v=[],w=[],u),t),123===f)if(0===d)Xo(j,a,z,z,v,t,u,s,w);else switch(99===h&&110===qo(j,3)?100:h){case 100:case 108:case 109:case 115:Xo(e,z,z,n&&So(Qo(e,z,z,0,0,i,s,y,i,v=[],u),w),i,w,u,s,n?v:w);break;default:Xo(j,z,z,z,[""],w,0,s,w)}}c=d=m=0,p=k=1,y=j="",u=o;break;case 58:u=1+Co(j),m=g;default:if(p<1)if(123==f)--p;else if(125==f&&0==p++&&125==(Mo=Do>0?qo(Fo,--Do):0,Ao--,10===Mo&&(Ao=1,Eo--),Mo))continue;switch(j+=vo(f),f*p){case 38:k=d>0?1:(j+="\f",-1);break;case 44:s[c++]=(Co(j)-1)*k,k=1;break;case 64:45===Po()&&(j+=Ho(Io())),h=Po(),d=u=Co(y=j+=Jo(Ro())),f++;break;case 45:45===g&&2==Co(j)&&(p=0)}}return t}function Qo(e,a,r,n,i,t,o,s,l,c,d){for(var u=i-1,h=0===i?t:[""],m=_o(h),g=0,p=0,b=0;g<n;++g)for(var k=0,f=$o(e,u+1,u=yo(p=o[g])),y=e;k<m;++k)(y=zo(p>0?h[k]+" "+f:jo(f,/&\f/g,h[k])))&&(l[b++]=y);return To(e,a,r,0===i?bo:s,l,c,d)}function es(e,a,r){return To(e,a,r,po,vo(Mo),$o(e,2,-2),0)}function as(e,a,r,n){return To(e,a,r,ko,$o(e,0,n),$o(e,n+1,-1),n)}function rs(e,a){for(var r="",n=_o(e),i=0;i<n;i++)r+=a(e[i],i,e,a)||"";return r}function ns(e,a,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ko:return e.return=e.return||e.value;case po:return"";case fo:return e.return=e.value+"{"+rs(e.children,n)+"}";case bo:e.value=e.props.join(",")}return Co(r=rs(e.children,n))?e.return=e.value+"{"+r+"}":""}function is(e){var a=_o(e);return function(r,n,i,t){for(var o="",s=0;s<a;s++)o+=e[s](r,n,i,t)||"";return o}}var ts="undefined"!=typeof document,ss=function(e,a,r){for(var n=0,i=0;n=i,i=Po(),38===n&&12===i&&(a[r]=1),!Bo(i);)Io();return Lo(e,Do)},ls=function(e,a){return Uo(function(e,a){var r=-1,n=44;do{switch(Bo(n)){case 0:38===n&&12===Po()&&(a[r]=1),e[r]+=ss(Do-1,a,r);break;case 2:e[r]+=Ho(n);break;case 4:if(44===n){e[++r]=58===Po()?"&\f":"",a[r]=e[r].length;break}default:e[r]+=vo(n)}}while(n=Io());return e}(Vo(e),a))},cs=new WeakMap,ds=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var a=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===a.charCodeAt(0)||cs.get(r))&&!n){cs.set(e,!0);for(var i=[],t=ls(a,i),o=r.props,s=0,l=0;s<t.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=i[s]?t[s].replace(/&\f/g,o[c]):o[c]+" "+t[s]}}},us=function(e){if("decl"===e.type){var a=e.value;108===a.charCodeAt(0)&&98===a.charCodeAt(2)&&(e.return="",e.value="")}};function hs(e,a){switch(function(e,a){return 45^qo(e,0)?(((a<<2^qo(e,0))<<2^qo(e,1))<<2^qo(e,2))<<2^qo(e,3):0}(e,a)){case 5103:return go+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return go+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return go+e+mo+e+ho+e+e;case 6828:case 4268:return go+e+ho+e+e;case 6165:return go+e+ho+"flex-"+e+e;case 5187:return go+e+jo(e,/(\w+).+(:[^]+)/,go+"box-$1$2"+ho+"flex-$1$2")+e;case 5443:return go+e+ho+"flex-item-"+jo(e,/flex-|-self/,"")+e;case 4675:return go+e+ho+"flex-line-pack"+jo(e,/align-content|flex-|-self/,"")+e;case 5548:return go+e+ho+jo(e,"shrink","negative")+e;case 5292:return go+e+ho+jo(e,"basis","preferred-size")+e;case 6060:return go+"box-"+jo(e,"-grow","")+go+e+ho+jo(e,"grow","positive")+e;case 4554:return go+jo(e,/([^-])(transform)/g,"$1"+go+"$2")+e;case 6187:return jo(jo(jo(e,/(zoom-|grab)/,go+"$1"),/(image-set)/,go+"$1"),e,"")+e;case 5495:case 3959:return jo(e,/(image-set\([^]*)/,go+"$1$`$1");case 4968:return jo(jo(e,/(.+:)(flex-)?(.*)/,go+"box-pack:$3"+ho+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+go+e+e;case 4095:case 3583:case 4068:case 2532:return jo(e,/(.+)-inline(.+)/,go+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Co(e)-1-a>6)switch(qo(e,a+1)){case 109:if(45!==qo(e,a+4))break;case 102:return jo(e,/(.+:)(.+)-([^]+)/,"$1"+go+"$2-$3$1"+mo+(108==qo(e,a+3)?"$3":"$2-$3"))+e;case 115:return~xo(e,"stretch")?hs(jo(e,"stretch","fill-available"),a)+e:e}break;case 4949:if(115!==qo(e,a+1))break;case 6444:switch(qo(e,Co(e)-3-(~xo(e,"!important")&&10))){case 107:return jo(e,":",":"+go)+e;case 101:return jo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+go+(45===qo(e,14)?"inline-":"")+"box$3$1"+go+"$2$3$1"+ho+"$2box$3")+e}break;case 5936:switch(qo(e,a+11)){case 114:return go+e+ho+jo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return go+e+ho+jo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return go+e+ho+jo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return go+e+ho+e+e}return e}var ms,gs,ps=ts?void 0:(ms=function(){return e=function(){return{}},a=Object.create(null),function(r){return void 0===a[r]&&(a[r]=e(r)),a[r]};var e,a},gs=new WeakMap,function(e){if(gs.has(e))return gs.get(e);var a=ms(e);return gs.set(e,a),a}),bs=[function(e,a,r,n){if(e.length>-1&&!e.return)switch(e.type){case ko:e.return=hs(e.value,e.length);break;case fo:return rs([No(e,{value:jo(e.value,"@","@"+go)})],n);case bo:if(e.length)return function(e,a){return e.map(a).join("")}(e.props,(function(a){switch(function(e,a){return(e=a.exec(e))?e[0]:e}(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rs([No(e,{props:[jo(a,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return rs([No(e,{props:[jo(a,/:(plac\w+)/,":"+go+"input-$1")]}),No(e,{props:[jo(a,/:(plac\w+)/,":-moz-$1")]}),No(e,{props:[jo(a,/:(plac\w+)/,ho+"input-$1")]})],n)}return""}))}}],ks=function(e){var a=e.key;if(ts&&"css"===a){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,i,t=e.stylisPlugins||bs,o={},s=[];ts&&(n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),(function(e){for(var a=e.getAttribute("data-emotion").split(" "),r=1;r<a.length;r++)o[a[r]]=!0;s.push(e)})));var l,c=[ds,us];if(ps){var d=[ns],u=is(c.concat(t,d)),h=ps(t)(a),m=function(e,a){var r=a.name;return void 0===h[r]&&(h[r]=rs(Yo(e?e+"{"+a.styles+"}":a.styles),u)),h[r]};i=function(e,a,r,n){var i=a.name,t=m(e,a);return void 0===k.compat?(n&&(k.inserted[i]=!0),t):n?void(k.inserted[i]=t):t}}else{var g,p=[ns,(l=function(e){g.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],b=is(c.concat(t,p));i=function(e,a,r,n){g=r,rs(Yo(e?e+"{"+a.styles+"}":a.styles),b),n&&(k.inserted[a.name]=!0)}}var k={key:a,sheet:new uo({key:a,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:i};return k.sheet.hydrate(s),k};const fs=a.styled("iframe")((()=>({border:"none",height:"100%",width:"100%"}))),ys=({options:r,onChange:n,other:i,value:t,internalChange:o,...s})=>{const l=i?.enabled,c="other-option",d=`${c}-value-`,[u,h]=e.useState(t),[m,g]=e.useState(!1);e.useEffect((()=>{!m&&u?.includes(d)?g(!0):m&&g(!1)}),[u]);return w.jsxs(w.Fragment,{children:[w.jsxs(a.RadioGroup,{...s,value:u,sx:{display:"flex",gap:e=>e.custom.margin.sm,label:{"&:last-child":{mb:0},"&:hover":{"& .MuiRadio-root":{backgroundColor:e=>e.custom.palette.interaction.hover,"&.Mui-checked":{backgroundColor:e=>e.custom.palette.purple[500]}}}}},onChange:(e,a)=>{n&&n(a),h(a),o&&o()},children:[r?r.map(((e,a)=>w.jsx(Ge,{sx:{"& .MuiButtonBase-root.MuiRadio-root":{alignSelf:"baseline"}},...e,control:w.jsx(la,{})},a))):null,l&&w.jsx(Ge,{label:i?.label||"Other",value:d,control:w.jsx(la,{checked:u?.includes(d)})},c)]}),m&&w.jsx(a.Box,{sx:{mt:1},children:w.jsx(Ye,{fullWidth:!0,autoFocus:!0,placeholder:i?.placeholder,defaultValue:u?.replace(d,""),onChange:e=>{var a;n&&n((a=e.target.value,`${d}${a}`)),o&&o()},required:!0})})]})},vs=e.createContext({attributes:{},listeners:void 0,ref(){}}),ws=e=>s.defaultAnimateLayoutChanges({...e,wasDragging:!0});function zs({children:r,top:n,bottom:i,id:t}){const{attributes:o,isDragging:c,listeners:d,setNodeRef:u,setActivatorNodeRef:h,transform:m,transition:g}=s.useSortable({id:t,animateLayoutChanges:ws}),p=e.useMemo((()=>({attributes:o,listeners:d,ref:h})),[o,d,h]),b={opacity:c?.4:void 0,transform:l.CSS.Translate.toString(m),transition:g};return w.jsx(vs.Provider,{value:p,children:w.jsxs(a.Stack,{className:"SortableItem",...o,sx:{position:"relative",...b,width:"100%"},ref:u,children:[n&&n,w.jsx(a.Box,{...d,sx:{display:"flex",cursor:"grab"},children:r}),i&&i]})})}const js={sideEffects:o.defaultDropAnimationSideEffects({styles:{active:{opacity:"0.4"}}})};function xs({children:e}){return t.createPortal(w.jsx(o.DragOverlay,{zIndex:999999,dropAnimation:js,children:e}),document.body)}const qs=({nativeEvent:e})=>{let a=e.target;for(;a;){if(a.dataset.noDnd)return!1;a=a.parentElement}return!0};class $s extends o.MouseSensor{static activators=[{eventName:"onMouseDown",handler:qs}]}class Cs extends o.TouchSensor{static activators=[{eventName:"onTouchStart",handler:qs}]}function _s({items:r,onChange:n,renderItem:i,disabled:t,direction:l}){if(!r)return;const[c,d]=e.useState(null),u=e.useMemo((()=>r.find((e=>e?.id===c?.id))),[c,r]),h=a.useTheme(),m=a.useMediaQuery(h.breakpoints.down("md")),g=o.useSensors(o.useSensor($s,{activationConstraint:{distance:5}}),o.useSensor(Cs,{activationConstraint:{delay:m?300:0,tolerance:8}}),o.useSensor(o.KeyboardSensor,{coordinateGetter:s.sortableKeyboardCoordinates}));return w.jsxs(o.DndContext,{measuring:{droppable:{strategy:o.MeasuringStrategy.Always}},sensors:g,onDragStart:({active:e})=>{d(e)},onDragEnd:({active:e,over:a})=>{if(a&&e.id!==a?.id){const i=r.findIndex((({id:a})=>a===e.id)),t=r.findIndex((({id:e})=>e===a.id));n(s.arrayMove(r,i,t))}d(null)},onDragCancel:()=>{d(null)},children:[w.jsx(s.SortableContext,{items:r,disabled:t,strategy:"horizontal"===l?s.horizontalListSortingStrategy:s.verticalListSortingStrategy,children:w.jsx(a.Stack,{sx:{..."horizontal"===l&&{flexDirection:"row"},display:"flex",m:0,gap:1,padding:0,alignContent:"flex-start"},children:r.map((a=>w.jsx(e.Fragment,{children:i(a)},a.id)))})}),w.jsx(xs,{children:u?i(u,!0,!!c):null})]})}_s.Item=zs,_s.DragHandle=function(){const{attributes:r,listeners:n,ref:i}=e.useContext(vs);return w.jsx(a.Box,{...r,...n,ref:i,children:w.jsx("svg",{viewBox:"0 0 20 20",width:"12",children:w.jsx("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})};const Ss=({handleSelectAll:r,isIndeterminate:n,isAllSelected:i,sizing:t})=>{const[o,s]=e.useState(!1),l=a.useTheme();return e.useEffect((()=>{i&&s(i)}),[i]),w.jsxs(a.Stack,{direction:"row",gap:l.spacing(l.custom.padding.sm),onClick:e=>{const a=!o;s(a),r(e,a)},sx:{marginLeft:"auto",display:"flex",alignItems:"center",justifyContent:"flex-end",p:e=>e.custom.padding.sm},children:[w.jsx(a.FormLabel,{sx:{cursor:"pointer",fontSize:()=>t&&Ae[t]},children:"Select all"}),w.jsx(Ze,{sizing:"default",indeterminate:n,checked:o})]})},Es=e.forwardRef((({children:e,handleSelectAll:a,value:r=[],selections:n,sizing:i,...t},o)=>{const s=r.length===n.length,l=r.length>0&&r.length<n.length;return w.jsxs("ul",{ref:o,...t,children:[w.jsx(Ss,{handleSelectAll:a,isIndeterminate:l,isAllSelected:s,sizing:i}),e]})})),As="0px 4px 8px 0px #06040D14, 0px 16px 24px 0px #06040D14, 0px 0px 4px 2px #06040D0A, 0px 0px 0px 1px #FFFFFF29",Os=e=>{switch(e){case"xs":return 24;case"md":return 32;default:return 40}},Ds=(e,a)=>({"& .MuiTypography-root":{height:Os(a),fontSize:Ae[a],display:"flex",alignItems:"center",paddingLeft:e.spacing("xs"===a?e.custom.padding.xs:e.custom.padding.sm),paddingRight:e.spacing("xs"===a?e.custom.padding.xs:e.custom.padding.sm)}}),Ms=e=>({fontSize:`${Se.sm.body.md}`,borderRadius:e.spacing(e.custom.radius.md),position:"relative",padding:e.spacing(e.custom.padding.sm),"& .MuiSelect-outlined":{padding:0},"& .MuiSelect-select.MuiInputBase-input":{paddingRight:e.spacing(M.md)},"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",background:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.md),inset:0,zIndex:0},"&:hover:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-focused:before":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-disabled:before":{backgroundColor:e.custom.palette.interaction.none},"& .MuiSelect-select":{position:"relative"}}),Fs=(e,a)=>{switch(a){case"lg":return{height:Os(a),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:R.lg,height:R.lg,top:`calc(50% - ${R.lg/2}px)`}};case"md":return{height:Os(a),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:R.md,height:R.md,top:`calc(50% - ${R.md/2}px)`}};case"xs":return{height:Os(a),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:R.xs,height:R.xs,top:`calc(50% - ${R.xs/2}px)`}};default:return{height:Os("lg"),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:R.lg,height:R.lg,top:`calc(50% - ${R.lg/2}px)`}}}},Ts=e=>({position:"relative",fontSize:`${Se.sm.body.md}`,backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.text.primary,"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",inset:0,zIndex:1},"& > .MuiBox-root":{position:"relative",zIndex:2,width:"100%","& .MuiSvgIcon-root":{marginRight:e.spacing(e.custom.margin.sm),width:R.xl,height:R.xl},"& .MuiBox-root":{padding:e.spacing(e.custom.padding.sm),lineHeight:"22px"}}}),Ns=e=>({"&.MuiModal-root.MuiPopover-root":{"&.MuiMenu-root":{borderRadius:e.spacing(e.custom.radius.sm),"& .MuiPaper-root":{border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:As}}}}),Is=a.styled(a.Autocomplete)((({theme:e,sizing:a,value:r})=>({maxWidth:"100%",backgroundColor:e.custom.palette.surface.raised,borderRadius:e.spacing(e.custom.radius.md),border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiSvgIcon-root":{...a&&{width:R[a],height:R[a]}},"&.MuiAutocomplete-root .MuiOutlinedInput-root .MuiAutocomplete-input":{...a&&{height:"xs"===a?2*O+"px":3*O+"px"},paddingTop:0,paddingBottom:0,paddingLeft:r&&r?.length>0?0:e.spacing(e.custom.padding.sm),justifyContent:"center",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .MuiAutocomplete-inputRoot":{...a&&{fontSize:Ae[a],gap:"lg"===a?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)},display:"flex",alignItems:"flex-start",paddingRight:3*O+"px",flexWrap:"wrap",height:"auto"},"& .MuiOutlinedInput-root":{display:"flex",alignItems:"center",padding:"0"},"& .MuiAutocomplete-tag":{...a&&{height:"xs"===a?2*O+"px":3*O+"px"},margin:0,"& .MuiSvgIcon-root":{height:"12px",width:"12px"}},"&.Mui-disabled":{backgroundColor:`${e.custom.palette.input.disabled}`,borderColor:`${e.custom.palette.stroke.disabled}`},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"& .MuiChip-root .MuiChip-label":{height:20,lineHeight:"20px",maxWidth:140,...a&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`}}}))),Ps=a.styled(a.Chip)((({theme:e,sizing:a})=>({borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.default,...a&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`},"& .MuiChip-deleteIcon":{fill:e.custom.palette.icon.primary,borderRadius:e.custom.radius.round,margin:0,"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,fill:e.custom.palette.icon.disabled}}}))),Rs=a.styled(a.TextField)((({theme:e,sizing:a})=>({"& .MuiOutlinedInput-root":{padding:0,...a&&{margin:"lg"===a?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)}},"& .MuiInputBase-input":{padding:"0 14px"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}}))),Ls=a.styled(a.Popper)((({theme:e,sizing:r})=>({"& .MuiPaper-root":{...r&&{margin:"lg"===r?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs),marginLeft:"lg"===r?`-${e.spacing(e.custom.padding.sm)}`:`-${e.spacing(e.custom.padding.xs)}`,marginTop:`calc(${"lg"===r?e.spacing(e.custom.margin.sm):e.spacing(e.custom.margin.xs)} + ${e.spacing(e.custom.margin.xs)})`},border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:As,borderRadius:e.spacing(e.custom.radius.sm)},[`& .${a.autocompleteClasses.listbox}`]:{overflowX:"hidden",[`& .${a.autocompleteClasses.option}`]:{fontSize:Ae[r],...r&&{height:"lg"===r?5*O+"px":4*O+"px"},"> span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},'&[aria-selected="true"]':{backgroundColor:e.custom.palette.interaction.hover,display:"flex",alignItems:"center",justifyContent:"space-between"}}}}))),Bs=e=>w.jsx(Ls,{...e}),Vs=({selections:a,disableClearable:n=!1,disabled:i,internalChange:t,onChange:o,placeholder:s="",renderListItem:l,sizing:c="lg",value:d=[]})=>{const[u,h]=e.useState(a.filter((e=>d.includes(e?.value)))),m=(e,r)=>{if(o){const n=r?a.map((({value:e})=>e)):[];h(r?a:[]),o(e,n,"selectOption"),t&&t()}};return w.jsx(Is,{disabledItemsFocusable:!0,autoFocus:!1,disableCloseOnSelect:!0,blurOnSelect:!1,popupIcon:w.jsx(r.KeyboardArrowDown,{}),sizing:c,disabled:i,disableClearable:n,autoComplete:!0,multiple:!0,renderInput:e=>w.jsx(Rs,{...e,placeholder:u.length>0?void 0:s,sizing:c}),options:a,renderTags:(e,a)=>e.map(((e,n)=>{const{key:i,...t}=a({index:n});return w.jsx(Ps,{sizing:c,deleteIcon:w.jsx(r.CloseRounded,{fontSize:"small"}),label:e.label,...t},i)})),onChange:(e,a,r)=>{const n=a.map((({value:e})=>e));o&&(h(a),o(e,n,r)),t&&t()},PopperComponent:e=>w.jsx(Bs,{...e,sizing:c}),isOptionEqualToValue:(e,a)=>e.value===a.value,renderOption:(e,a,{selected:n})=>{const{key:i,...t}=e;return w.jsxs("li",{...t,children:[w.jsx("span",{children:l?l(a.label):a.label}),w.jsx(r.Check,{sx:{visibility:n?"visible":"hidden",fontSize:"16px"}})]},i)},ListboxComponent:e.forwardRef(((e,r)=>w.jsx(Es,{ref:r,...e,handleSelectAll:m,value:u,selections:a,sizing:c}))),value:u})},Us=a.styled(a.MenuItem)((({theme:e})=>({...{...Ts(e)},"&.Mui-focusVisible":{backgroundColor:e.custom.palette.interaction.none},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{backgroundColor:e.custom.palette.input.default}},"&.MuiButtonBase-root.MuiMenuItem-root.Mui-disabled":{backgroundColor:e.custom.palette.input.default,color:e.custom.palette.text.disabled,"&:before":{backgroundColor:e.custom.palette.interaction.disabled}},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:before":{backgroundColor:e.custom.palette.interaction.hover}}},"&:active":{"&:before":{backgroundColor:e.custom.palette.interaction.press}}}))),Hs=({children:e,selected:n,...i})=>w.jsx(Us,{...i,children:w.jsxs(a.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[w.jsx(a.Box,{children:e}),n&&w.jsx(r.Check,{})]})}),Gs=a.styled(a.Select)((({theme:e,sizing:a})=>({...{...Ms(e)},...a&&{...Fs(e,a)},...a&&{...Ds(e,a)},backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiOutlinedInput-notchedOutline":{border:e.custom.palette.stroke.default},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.custom.palette.stroke.default}},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& .MuiSvgIcon-root":{color:e.custom.palette.icon.disabled,transition:e.custom.easing.input}}}))),Ws=({selections:e,autoComplete:n=!1,disabled:i=!1,disablePortal:t=!1,inputRef:o,internalChange:s,onChange:l,placeholder:c="",selectOptionProps:d,sizing:u="lg",sx:h,value:m=[],renderListItem:g,...p})=>{const b=a.useTheme(),k=rt();return n?w.jsx(Vs,{selections:e,placeholder:c,disabled:i,sizing:u,onChange:(e,a)=>{l&&l(a),s&&s()},value:Array.isArray(m)?m:[],internalChange:s,renderListItem:g}):w.jsxs(Gs,{sizing:u,inputRef:o,MenuProps:{disablePortal:t,sx:Ns,anchorOrigin:{vertical:45,horizontal:"center"}},displayEmpty:!0,IconComponent:r.KeyboardArrowDown,renderValue:a=>c&&!a?w.jsx(qe,{component:"p",variation:"sm"===k||"md"===k?"sm":"lg",sx:{color:b.custom.palette.text.placeholder},children:c}):w.jsx(qe,{component:"p",variation:"sm"===k||"md"===k?"sm":"lg",children:e?.find((({value:e})=>e===a))?.label}),onChange:(e,a)=>{l&&l(e,a),s&&s()},sx:h,value:m,...p,children:[""!==c.trim()&&w.jsx(Hs,{disabled:!0,value:"","aria-label":"placeholder",children:c},"placeholder"),e?.map((({value:e,label:a})=>w.jsx(Hs,{value:e,...d,children:g?g(a):a},e)))]})},Zs=a.styled(a.Box)((({theme:e,disabled:a,fullWidth:r})=>({width:r?"100%":"auto",minWidth:240,backgroundColor:a?e.custom.palette.input.disabled:e.custom.palette.surface.raised,border:`1px solid ${a?e.custom.palette.stroke.disabled:e.custom.palette.stroke.default}`,borderRadius:e.spacing(e.custom.radius.lg),padding:e.spacing(e.custom.padding.md),position:"relative",zIndex:0,"&:after":{content:'""',backgroundColor:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.lg),position:"absolute",inset:0},"&:hover":{"&:after":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{"&:after":{backgroundColor:e.custom.palette.interaction.press}},"& svg":{fill:e.custom.palette.icon.primary},...a&&{background:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"&:after":{backgroundColor:e.custom.palette.interaction.none},"& .MuiBox-root > .MuiSvgIcon-root":{fill:"none"}}}))),Ks=a.styled(kt)((({theme:e})=>({fontSize:Se.button.md,color:e.custom.palette.text.primary,lineHeight:"120%",letterSpacing:"0.16px"}))),Js=({label:e="Placeholder",disabled:n,onChange:i,options:t,fullWidth:o})=>{const s=a.useTheme(),l=t.map((e=>e.label)).indexOf(e);return w.jsx(Zs,{disabled:n,fullWidth:o,children:w.jsxs(a.Stack,{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center",sx:{position:"relative",zIndex:1},children:[w.jsxs(a.Box,{display:"flex",alignItems:"center",sx:{"& svg":{fill:s.custom.palette.icon.secondary}},children:[w.jsx(r.DragHandle,{sx:{width:R.lg,height:R.lg,mr:s.custom.padding.sm}}),w.jsx(Ks,{align:"left",disabled:n,children:e})]}),w.jsx(Ws,{sizing:"xs",selections:t.map(((e,a)=>({label:`${a+1}`,value:`${a}`}))),disabled:n,value:`${l}`,onChange:function(e){const a=l,r=Number(e.target.value),n=t;let o=1;const s=n.splice(a,o)[0];o=0,n.splice(r,o,s),i(n)},MenuProps:{anchorOrigin:{vertical:S,horizontal:"center"}}})]})})},Ys=({labelTop:r,labelBottom:n,disabled:i,fullWidth:t=!1,options:o,onChange:s,value:l,internalChange:c})=>{const d=a.useTheme(),[u,h]=e.useState(l||o);function m(e){h(e),s(e.map((({id:e})=>e))),c&&c()}return w.jsxs(a.Stack,{gap:d.custom.margin.sm,textAlign:"center",sx:{width:t?"100%":"auto"},children:[r&&w.jsx(kt,{disabled:i,sx:{color:d.custom.palette.text.secondary},children:r}),w.jsx(_s,{onChange:function(e){h(e),s(e.map((({id:e})=>e))),c&&c()},items:u,direction:"vertical",renderItem:({...e})=>w.jsx(zs,{id:e.id,children:w.jsx(Js,{onChange:m,...e,options:u,disabled:i,selections:e.selections,fullWidth:t})})}),n&&w.jsx(kt,{disabled:i,sx:{color:d.custom.palette.text.secondary},children:n})]})};function Xs(e){this.content=e}function Qs(e,a,r){for(let n=0;;n++){if(n==e.childCount||n==a.childCount)return e.childCount==a.childCount?null:r;let i=e.child(n),t=a.child(n);if(i!=t){if(!i.sameMarkup(t))return r;if(i.isText&&i.text!=t.text){for(let e=0;i.text[e]==t.text[e];e++)r++;return r}if(i.content.size||t.content.size){let e=Qs(i.content,t.content,r+1);if(null!=e)return e}r+=i.nodeSize}else r+=i.nodeSize}}function el(e,a,r,n){for(let i=e.childCount,t=a.childCount;;){if(0==i||0==t)return i==t?null:{a:r,b:n};let o=e.child(--i),s=a.child(--t),l=o.nodeSize;if(o!=s){if(!o.sameMarkup(s))return{a:r,b:n};if(o.isText&&o.text!=s.text){let e=0,a=Math.min(o.text.length,s.text.length);for(;e<a&&o.text[o.text.length-e-1]==s.text[s.text.length-e-1];)e++,r--,n--;return{a:r,b:n}}if(o.content.size||s.content.size){let e=el(o.content,s.content,r-1,n-1);if(e)return e}r-=l,n-=l}else r-=l,n-=l}}Xs.prototype={constructor:Xs,find:function(e){for(var a=0;a<this.content.length;a+=2)if(this.content[a]===e)return a;return-1},get:function(e){var a=this.find(e);return-1==a?void 0:this.content[a+1]},update:function(e,a,r){var n=r&&r!=e?this.remove(r):this,i=n.find(e),t=n.content.slice();return-1==i?t.push(r||e,a):(t[i+1]=a,r&&(t[i]=r)),new Xs(t)},remove:function(e){var a=this.find(e);if(-1==a)return this;var r=this.content.slice();return r.splice(a,2),new Xs(r)},addToStart:function(e,a){return new Xs([e,a].concat(this.remove(e).content))},addToEnd:function(e,a){var r=this.remove(e).content.slice();return r.push(e,a),new Xs(r)},addBefore:function(e,a,r){var n=this.remove(a),i=n.content.slice(),t=n.find(e);return i.splice(-1==t?i.length:t,0,a,r),new Xs(i)},forEach:function(e){for(var a=0;a<this.content.length;a+=2)e(this.content[a],this.content[a+1])},prepend:function(e){return(e=Xs.from(e)).size?new Xs(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=Xs.from(e)).size?new Xs(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var a=this;e=Xs.from(e);for(var r=0;r<e.content.length;r+=2)a=a.remove(e.content[r]);return a},toObject:function(){var e={};return this.forEach((function(a,r){e[a]=r})),e},get size(){return this.content.length>>1}},Xs.from=function(e){if(e instanceof Xs)return e;var a=[];if(e)for(var r in e)a.push(r,e[r]);return new Xs(a)};class al{constructor(e,a){if(this.content=e,this.size=a||0,null==a)for(let a=0;a<e.length;a++)this.size+=e[a].nodeSize}nodesBetween(e,a,r,n=0,i){for(let t=0,o=0;o<a;t++){let s=this.content[t],l=o+s.nodeSize;if(l>e&&!1!==r(s,n+o,i||null,t)&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,a-i),r,n+i)}o=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,a,r,n){let i="",t=!0;return this.nodesBetween(e,a,((o,s)=>{let l=o.isText?o.text.slice(Math.max(e,s)-s,a-s):o.isLeaf?n?"function"==typeof n?n(o):n:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&l||o.isTextblock)&&r&&(t?t=!1:i+=r),i+=l}),0),i}append(e){if(!e.size)return this;if(!this.size)return e;let a=this.lastChild,r=e.firstChild,n=this.content.slice(),i=0;for(a.isText&&a.sameMarkup(r)&&(n[n.length-1]=a.withText(a.text+r.text),i=1);i<e.content.length;i++)n.push(e.content[i]);return new al(n,this.size+e.size)}cut(e,a=this.size){if(0==e&&a==this.size)return this;let r=[],n=0;if(a>e)for(let i=0,t=0;t<a;i++){let o=this.content[i],s=t+o.nodeSize;s>e&&((t<e||s>a)&&(o=o.isText?o.cut(Math.max(0,e-t),Math.min(o.text.length,a-t)):o.cut(Math.max(0,e-t-1),Math.min(o.content.size,a-t-1))),r.push(o),n+=o.nodeSize),t=s}return new al(r,n)}cutByIndex(e,a){return e==a?al.empty:0==e&&a==this.content.length?this:new al(this.content.slice(e,a))}replaceChild(e,a){let r=this.content[e];if(r==a)return this;let n=this.content.slice(),i=this.size+a.nodeSize-r.nodeSize;return n[e]=a,new al(n,i)}addToStart(e){return new al([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new al(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let a=0;a<this.content.length;a++)if(!this.content[a].eq(e.content[a]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let a=this.content[e];if(!a)throw new RangeError("Index "+e+" out of range for "+this);return a}maybeChild(e){return this.content[e]||null}forEach(e){for(let a=0,r=0;a<this.content.length;a++){let n=this.content[a];e(n,r,a),r+=n.nodeSize}}findDiffStart(e,a=0){return Qs(this,e,a)}findDiffEnd(e,a=this.size,r=e.size){return el(this,e,a,r)}findIndex(e,a=-1){if(0==e)return nl(0,e);if(e==this.size)return nl(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,n=0;;r++){let i=n+this.child(r).nodeSize;if(i>=e)return i==e||a>0?nl(r+1,i):nl(r,n);n=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((e=>e.toJSON())):null}static fromJSON(e,a){if(!a)return al.empty;if(!Array.isArray(a))throw new RangeError("Invalid input for Fragment.fromJSON");return new al(a.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return al.empty;let a,r=0;for(let n=0;n<e.length;n++){let i=e[n];r+=i.nodeSize,n&&i.isText&&e[n-1].sameMarkup(i)?(a||(a=e.slice(0,n)),a[a.length-1]=i.withText(a[a.length-1].text+i.text)):a&&a.push(i)}return new al(a||e,r)}static from(e){if(!e)return al.empty;if(e instanceof al)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new al([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}al.empty=new al([],0);const rl={index:0,offset:0};function nl(e,a){return rl.index=e,rl.offset=a,rl}function il(e,a){if(e===a)return!0;if(!e||"object"!=typeof e||!a||"object"!=typeof a)return!1;let r=Array.isArray(e);if(Array.isArray(a)!=r)return!1;if(r){if(e.length!=a.length)return!1;for(let r=0;r<e.length;r++)if(!il(e[r],a[r]))return!1}else{for(let r in e)if(!(r in a)||!il(e[r],a[r]))return!1;for(let r in a)if(!(r in e))return!1}return!0}let tl=class e{constructor(e,a){this.type=e,this.attrs=a}addToSet(e){let a,r=!1;for(let n=0;n<e.length;n++){let i=e[n];if(this.eq(i))return e;if(this.type.excludes(i.type))a||(a=e.slice(0,n));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(a||(a=e.slice(0,n)),a.push(this),r=!0),a&&a.push(i)}}return a||(a=e.slice()),r||a.push(this),a}removeFromSet(e){for(let a=0;a<e.length;a++)if(this.eq(e[a]))return e.slice(0,a).concat(e.slice(a+1));return e}isInSet(e){for(let a=0;a<e.length;a++)if(this.eq(e[a]))return!0;return!1}eq(e){return this==e||this.type==e.type&&il(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let a in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,a){if(!a)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[a.type];if(!r)throw new RangeError(`There is no mark type ${a.type} in this schema`);let n=r.create(a.attrs);return r.checkAttrs(n.attrs),n}static sameSet(e,a){if(e==a)return!0;if(e.length!=a.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(a[r]))return!1;return!0}static setFrom(a){if(!a||Array.isArray(a)&&0==a.length)return e.none;if(a instanceof e)return[a];let r=a.slice();return r.sort(((e,a)=>e.type.rank-a.type.rank)),r}};tl.none=[];class ol extends Error{}class sl{constructor(e,a,r){this.content=e,this.openStart=a,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,a){let r=cl(this.content,e+this.openStart,a);return r&&new sl(r,this.openStart,this.openEnd)}removeBetween(e,a){return new sl(ll(this.content,e+this.openStart,a+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,a){if(!a)return sl.empty;let r=a.openStart||0,n=a.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw new RangeError("Invalid input for Slice.fromJSON");return new sl(al.fromJSON(e,a.content),r,n)}static maxOpen(e,a=!0){let r=0,n=0;for(let n=e.firstChild;n&&!n.isLeaf&&(a||!n.type.spec.isolating);n=n.firstChild)r++;for(let r=e.lastChild;r&&!r.isLeaf&&(a||!r.type.spec.isolating);r=r.lastChild)n++;return new sl(e,r,n)}}function ll(e,a,r){let{index:n,offset:i}=e.findIndex(a),t=e.maybeChild(n),{index:o,offset:s}=e.findIndex(r);if(i==a||t.isText){if(s!=r&&!e.child(o).isText)throw new RangeError("Removing non-flat range");return e.cut(0,a).append(e.cut(r))}if(n!=o)throw new RangeError("Removing non-flat range");return e.replaceChild(n,t.copy(ll(t.content,a-i-1,r-i-1)))}function cl(e,a,r,n){let{index:i,offset:t}=e.findIndex(a),o=e.maybeChild(i);if(t==a||o.isText)return e.cut(0,a).append(r).append(e.cut(a));let s=cl(o.content,a-t-1,r);return s&&e.replaceChild(i,o.copy(s))}function dl(e,a,r){if(r.openStart>e.depth)throw new ol("Inserted content deeper than insertion position");if(e.depth-r.openStart!=a.depth-r.openEnd)throw new ol("Inconsistent open depths");return ul(e,a,r,0)}function ul(e,a,r,n){let i=e.index(n),t=e.node(n);if(i==a.index(n)&&n<e.depth-r.openStart){let o=ul(e,a,r,n+1);return t.copy(t.content.replaceChild(i,o))}if(r.content.size){if(r.openStart||r.openEnd||e.depth!=n||a.depth!=n){let{start:i,end:o}=function(e,a){let r=a.depth-e.openStart,n=a.node(r).copy(e.content);for(let e=r-1;e>=0;e--)n=a.node(e).copy(al.from(n));return{start:n.resolveNoCache(e.openStart+r),end:n.resolveNoCache(n.content.size-e.openEnd-r)}}(r,e);return bl(t,kl(e,i,o,a,n))}{let n=e.parent,i=n.content;return bl(n,i.cut(0,e.parentOffset).append(r.content).append(i.cut(a.parentOffset)))}}return bl(t,fl(e,a,n))}function hl(e,a){if(!a.type.compatibleContent(e.type))throw new ol("Cannot join "+a.type.name+" onto "+e.type.name)}function ml(e,a,r){let n=e.node(r);return hl(n,a.node(r)),n}function gl(e,a){let r=a.length-1;r>=0&&e.isText&&e.sameMarkup(a[r])?a[r]=e.withText(a[r].text+e.text):a.push(e)}function pl(e,a,r,n){let i=(a||e).node(r),t=0,o=a?a.index(r):i.childCount;e&&(t=e.index(r),e.depth>r?t++:e.textOffset&&(gl(e.nodeAfter,n),t++));for(let e=t;e<o;e++)gl(i.child(e),n);a&&a.depth==r&&a.textOffset&&gl(a.nodeBefore,n)}function bl(e,a){return e.type.checkContent(a),e.copy(a)}function kl(e,a,r,n,i){let t=e.depth>i&&ml(e,a,i+1),o=n.depth>i&&ml(r,n,i+1),s=[];return pl(null,e,i,s),t&&o&&a.index(i)==r.index(i)?(hl(t,o),gl(bl(t,kl(e,a,r,n,i+1)),s)):(t&&gl(bl(t,fl(e,a,i+1)),s),pl(a,r,i,s),o&&gl(bl(o,fl(r,n,i+1)),s)),pl(n,null,i,s),new al(s)}function fl(e,a,r){let n=[];if(pl(null,e,r,n),e.depth>r){gl(bl(ml(e,a,r+1),fl(e,a,r+1)),n)}return pl(a,null,r,n),new al(n)}sl.empty=new sl(al.empty,0,0);class yl{constructor(e,a,r){this.pos=e,this.path=a,this.parentOffset=r,this.depth=a.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,a=this.index(this.depth);if(a==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=e.child(a);return r?e.child(a).cut(r):n}get nodeBefore(){let e=this.index(this.depth),a=this.pos-this.path[this.path.length-1];return a?this.parent.child(e).cut(0,a):0==e?null:this.parent.child(e-1)}posAtIndex(e,a){a=this.resolveDepth(a);let r=this.path[3*a],n=0==a?0:this.path[3*a-1]+1;for(let a=0;a<e;a++)n+=r.child(a).nodeSize;return n}marks(){let e=this.parent,a=this.index();if(0==e.content.size)return tl.none;if(this.textOffset)return e.child(a).marks;let r=e.maybeChild(a-1),n=e.maybeChild(a);if(!r){let e=r;r=n,n=e}let i=r.marks;for(var t=0;t<i.length;t++)!1!==i[t].type.spec.inclusive||n&&i[t].isInSet(n.marks)||(i=i[t--].removeFromSet(i));return i}marksAcross(e){let a=this.parent.maybeChild(this.index());if(!a||!a.isInline)return null;let r=a.marks,n=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)!1!==r[i].type.spec.inclusive||n&&r[i].isInSet(n.marks)||(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let a=this.depth;a>0;a--)if(this.start(a)<=e&&this.end(a)>=e)return a;return 0}blockRange(e=this,a){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!a||a(this.node(r))))return new jl(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let a=1;a<=this.depth;a++)e+=(e?"/":"")+this.node(a).type.name+"_"+this.index(a-1);return e+":"+this.parentOffset}static resolve(e,a){if(!(a>=0&&a<=e.content.size))throw new RangeError("Position "+a+" out of range");let r=[],n=0,i=a;for(let a=e;;){let{index:e,offset:t}=a.content.findIndex(i),o=i-t;if(r.push(a,e,n+t),!o)break;if(a=a.child(e),a.isText)break;i=o-1,n+=t+1}return new yl(a,r,i)}static resolveCached(e,a){let r=zl.get(e);if(r)for(let e=0;e<r.elts.length;e++){let n=r.elts[e];if(n.pos==a)return n}else zl.set(e,r=new vl);let n=r.elts[r.i]=yl.resolve(e,a);return r.i=(r.i+1)%wl,n}}class vl{constructor(){this.elts=[],this.i=0}}const wl=12,zl=new WeakMap;class jl{constructor(e,a,r){this.$from=e,this.$to=a,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const xl=Object.create(null);let ql=class e{constructor(e,a,r,n=tl.none){this.type=e,this.attrs=a,this.marks=n,this.content=r||al.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,a,r,n=0){this.content.nodesBetween(e,a,r,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,a,r,n){return this.content.textBetween(e,a,r,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,a,r){return this.type==e&&il(this.attrs,a||e.defaultAttrs||xl)&&tl.sameSet(this.marks,r||tl.none)}copy(a=null){return a==this.content?this:new e(this.type,this.attrs,a,this.marks)}mark(a){return a==this.marks?this:new e(this.type,this.attrs,this.content,a)}cut(e,a=this.content.size){return 0==e&&a==this.content.size?this:this.copy(this.content.cut(e,a))}slice(e,a=this.content.size,r=!1){if(e==a)return sl.empty;let n=this.resolve(e),i=this.resolve(a),t=r?0:n.sharedDepth(a),o=n.start(t),s=n.node(t).content.cut(n.pos-o,i.pos-o);return new sl(s,n.depth-t,i.depth-t)}replace(e,a,r){return dl(this.resolve(e),this.resolve(a),r)}nodeAt(e){for(let a=this;;){let{index:r,offset:n}=a.content.findIndex(e);if(a=a.maybeChild(r),!a)return null;if(n==e||a.isText)return a;e-=n+1}}childAfter(e){let{index:a,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(a),index:a,offset:r}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:a,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(a),index:a,offset:r};let n=this.content.child(a-1);return{node:n,index:a-1,offset:r-n.nodeSize}}resolve(e){return yl.resolveCached(this,e)}resolveNoCache(e){return yl.resolve(this,e)}rangeHasMark(e,a,r){let n=!1;return a>e&&this.nodesBetween(e,a,(e=>(r.isInSet(e.marks)&&(n=!0),!n))),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Cl(this.marks,e)}contentMatchAt(e){let a=this.type.contentMatch.matchFragment(this.content,0,e);if(!a)throw new Error("Called contentMatchAt on a node with invalid content");return a}canReplace(e,a,r=al.empty,n=0,i=r.childCount){let t=this.contentMatchAt(e).matchFragment(r,n,i),o=t&&t.matchFragment(this.content,a);if(!o||!o.validEnd)return!1;for(let e=n;e<i;e++)if(!this.type.allowsMarks(r.child(e).marks))return!1;return!0}canReplaceWith(e,a,r,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(e).matchType(r),t=i&&i.matchFragment(this.content,a);return!!t&&t.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=tl.none;for(let a=0;a<this.marks.length;a++){let r=this.marks[a];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!tl.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((e=>e.type.name))}`);this.content.forEach((e=>e.check()))}toJSON(){let e={type:this.type.name};for(let a in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((e=>e.toJSON()))),e}static fromJSON(e,a){if(!a)throw new RangeError("Invalid input for Node.fromJSON");let r;if(a.marks){if(!Array.isArray(a.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=a.marks.map(e.markFromJSON)}if("text"==a.type){if("string"!=typeof a.text)throw new RangeError("Invalid text node in JSON");return e.text(a.text,r)}let n=al.fromJSON(e,a.content),i=e.nodeType(a.type).create(a.attrs,n,r);return i.type.checkAttrs(i.attrs),i}};ql.prototype.text=void 0;class $l extends ql{constructor(e,a,r,n){if(super(e,a,null,n),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Cl(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,a){return this.text.slice(e,a)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new $l(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new $l(this.type,this.attrs,e,this.marks)}cut(e=0,a=this.text.length){return 0==e&&a==this.text.length?this:this.withText(this.text.slice(e,a))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Cl(e,a){for(let r=e.length-1;r>=0;r--)a=e[r].type.name+"("+a+")";return a}class _l{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,a){let r=new Sl(e,a);if(null==r.next)return _l.empty;let n=El(r);r.next&&r.err("Unexpected trailing text");let i=function(e){let a=Object.create(null);return r(Tl(e,0));function r(n){let i=[];n.forEach((a=>{e[a].forEach((({term:a,to:r})=>{if(!a)return;let n;for(let e=0;e<i.length;e++)i[e][0]==a&&(n=i[e][1]);Tl(e,r).forEach((e=>{n||i.push([a,n=[]]),-1==n.indexOf(e)&&n.push(e)}))}))}));let t=a[n.join(",")]=new _l(n.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let n=i[e][1].sort(Fl);t.next.push({type:i[e][0],next:a[n.join(",")]||r(n)})}return t}}(function(e){let a=[[]];return i(t(e,0),r()),a;function r(){return a.push([])-1}function n(e,r,n){let i={term:n,to:r};return a[e].push(i),i}function i(e,a){e.forEach((e=>e.to=a))}function t(e,a){if("choice"==e.type)return e.exprs.reduce(((e,r)=>e.concat(t(r,a))),[]);if("seq"!=e.type){if("star"==e.type){let o=r();return n(a,o),i(t(e.expr,o),o),[n(o)]}if("plus"==e.type){let o=r();return i(t(e.expr,a),o),i(t(e.expr,o),o),[n(o)]}if("opt"==e.type)return[n(a)].concat(t(e.expr,a));if("range"==e.type){let o=a;for(let a=0;a<e.min;a++){let a=r();i(t(e.expr,o),a),o=a}if(-1==e.max)i(t(e.expr,o),o);else for(let a=e.min;a<e.max;a++){let a=r();n(o,a),i(t(e.expr,o),a),o=a}return[n(o)]}if("name"==e.type)return[n(a,void 0,e.value)];throw new Error("Unknown expr type")}for(let n=0;;n++){let o=t(e.exprs[n],a);if(n==e.exprs.length-1)return o;i(o,a=r())}}}(n));return function(e,a){for(let r=0,n=[e];r<n.length;r++){let e=n[r],i=!e.validEnd,t=[];for(let a=0;a<e.next.length;a++){let{type:r,next:o}=e.next[a];t.push(r.name),!i||r.isText||r.hasRequiredAttrs()||(i=!1),-1==n.indexOf(o)&&n.push(o)}i&&a.err("Only non-generatable nodes ("+t.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(i,r),i}matchType(e){for(let a=0;a<this.next.length;a++)if(this.next[a].type==e)return this.next[a].next;return null}matchFragment(e,a=0,r=e.childCount){let n=this;for(let i=a;n&&i<r;i++)n=n.matchType(e.child(i).type);return n}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:a}=this.next[e];if(!a.isText&&!a.hasRequiredAttrs())return a}return null}compatible(e){for(let a=0;a<this.next.length;a++)for(let r=0;r<e.next.length;r++)if(this.next[a].type==e.next[r].type)return!0;return!1}fillBefore(e,a=!1,r=0){let n=[this];return function i(t,o){let s=t.matchFragment(e,r);if(s&&(!a||s.validEnd))return al.from(o.map((e=>e.createAndFill())));for(let e=0;e<t.next.length;e++){let{type:a,next:r}=t.next[e];if(!a.isText&&!a.hasRequiredAttrs()&&-1==n.indexOf(r)){n.push(r);let e=i(r,o.concat(a));if(e)return e}}return null}(this,[])}findWrapping(e){for(let a=0;a<this.wrapCache.length;a+=2)if(this.wrapCache[a]==e)return this.wrapCache[a+1];let a=this.computeWrapping(e);return this.wrapCache.push(e,a),a}computeWrapping(e){let a=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let n=r.shift(),i=n.match;if(i.matchType(e)){let e=[];for(let a=n;a.type;a=a.via)e.push(a.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:t,next:o}=i.next[e];t.isLeaf||t.hasRequiredAttrs()||t.name in a||n.type&&!o.validEnd||(r.push({match:t.contentMatch,type:t,via:n}),a[t.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function a(r){e.push(r);for(let n=0;n<r.next.length;n++)-1==e.indexOf(r.next[n].next)&&a(r.next[n].next)}(this),e.map(((a,r)=>{let n=r+(a.validEnd?"*":" ")+" ";for(let r=0;r<a.next.length;r++)n+=(r?", ":"")+a.next[r].type.name+"->"+e.indexOf(a.next[r].next);return n})).join("\n")}}_l.empty=new _l(!0);class Sl{constructor(e,a){this.string=e,this.nodeTypes=a,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function El(e){let a=[];do{a.push(Al(e))}while(e.eat("|"));return 1==a.length?a[0]:{type:"choice",exprs:a}}function Al(e){let a=[];do{a.push(Ol(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==a.length?a[0]:{type:"seq",exprs:a}}function Ol(e){let a=function(e){if(e.eat("(")){let a=El(e);return e.eat(")")||e.err("Missing closing paren"),a}if(!/\W/.test(e.next)){let a=function(e,a){let r=e.nodeTypes,n=r[a];if(n)return[n];let i=[];for(let e in r){let n=r[e];n.isInGroup(a)&&i.push(n)}0==i.length&&e.err("No node type or group '"+a+"' found");return i}(e,e.next).map((a=>(null==e.inline?e.inline=a.isInline:e.inline!=a.isInline&&e.err("Mixing inline and block content"),{type:"name",value:a})));return e.pos++,1==a.length?a[0]:{type:"choice",exprs:a}}e.err("Unexpected token '"+e.next+"'")}(e);for(;;)if(e.eat("+"))a={type:"plus",expr:a};else if(e.eat("*"))a={type:"star",expr:a};else if(e.eat("?"))a={type:"opt",expr:a};else{if(!e.eat("{"))break;a=Ml(e,a)}return a}function Dl(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let a=Number(e.next);return e.pos++,a}function Ml(e,a){let r=Dl(e),n=r;return e.eat(",")&&(n="}"!=e.next?Dl(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:a}}function Fl(e,a){return a-e}function Tl(e,a){let r=[];return function a(n){let i=e[n];if(1==i.length&&!i[0].term)return a(i[0].to);r.push(n);for(let e=0;e<i.length;e++){let{term:n,to:t}=i[e];n||-1!=r.indexOf(t)||a(t)}}(a),r.sort(Fl)}function Nl(e){let a=Object.create(null);for(let r in e){let n=e[r];if(!n.hasDefault)return null;a[r]=n.default}return a}function Il(e,a){let r=Object.create(null);for(let n in e){let i=a&&a[n];if(void 0===i){let a=e[n];if(!a.hasDefault)throw new RangeError("No value supplied for attribute "+n);i=a.default}r[n]=i}return r}function Pl(e,a,r,n){for(let n in a)if(!(n in e))throw new RangeError(`Unsupported attribute ${n} for ${r} of type ${n}`);for(let r in e){let n=e[r];n.validate&&n.validate(a[r])}}function Rl(e,a){let r=Object.create(null);if(a)for(let n in a)r[n]=new Bl(e,n,a[n]);return r}let Ll=class e{constructor(e,a,r){this.name=e,this.schema=a,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Rl(e,r.attrs),this.defaultAttrs=Nl(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==_l.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Il(this.attrs,e)}create(e=null,a,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ql(this,this.computeAttrs(e),al.from(a),tl.setFrom(r))}createChecked(e=null,a,r){return a=al.from(a),this.checkContent(a),new ql(this,this.computeAttrs(e),a,tl.setFrom(r))}createAndFill(e=null,a,r){if(e=this.computeAttrs(e),(a=al.from(a)).size){let e=this.contentMatch.fillBefore(a);if(!e)return null;a=e.append(a)}let n=this.contentMatch.matchFragment(a),i=n&&n.fillBefore(al.empty,!0);return i?new ql(this,e,a.append(i),tl.setFrom(r)):null}validContent(e){let a=this.contentMatch.matchFragment(e);if(!a||!a.validEnd)return!1;for(let a=0;a<e.childCount;a++)if(!this.allowsMarks(e.child(a).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Pl(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let a=0;a<e.length;a++)if(!this.allowsMarkType(e[a].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let a;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?a&&a.push(e[r]):a||(a=e.slice(0,r));return a?a.length?a:tl.none:e}static compile(a,r){let n=Object.create(null);a.forEach(((a,i)=>n[a]=new e(a,r,i)));let i=r.spec.topNode||"doc";if(!n[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};class Bl{constructor(e,a,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate="string"==typeof r.validate?function(e,a,r){let n=r.split("|");return r=>{let i=null===r?"null":typeof r;if(n.indexOf(i)<0)throw new RangeError(`Expected value of type ${n} for attribute ${a} on type ${e}, got ${i}`)}}(e,a,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Vl{constructor(e,a,r,n){this.name=e,this.rank=a,this.schema=r,this.spec=n,this.attrs=Rl(e,n.attrs),this.excluded=null;let i=Nl(this.attrs);this.instance=i?new tl(this,i):null}create(e=null){return!e&&this.instance?this.instance:new tl(this,Il(this.attrs,e))}static compile(e,a){let r=Object.create(null),n=0;return e.forEach(((e,i)=>r[e]=new Vl(e,n++,a,i))),r}removeFromSet(e){for(var a=0;a<e.length;a++)e[a].type==this&&(e=e.slice(0,a).concat(e.slice(a+1)),a--);return e}isInSet(e){for(let a=0;a<e.length;a++)if(e[a].type==this)return e[a]}checkAttrs(e){Pl(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Ul{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let a=this.spec={};for(let r in e)a[r]=e[r];a.nodes=Xs.from(e.nodes),a.marks=Xs.from(e.marks||{}),this.nodes=Ll.compile(this.spec.nodes,this),this.marks=Vl.compile(this.spec.marks,this);let r=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw new RangeError(e+" can not be both a node and a mark");let a=this.nodes[e],n=a.spec.content||"",i=a.spec.marks;if(a.contentMatch=r[n]||(r[n]=_l.parse(n,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet="_"==i?null:i?Hl(this,i.split(" ")):""!=i&&a.inlineContent?null:[]}for(let e in this.marks){let a=this.marks[e],r=a.spec.excludes;a.excluded=null==r?[a]:""==r?[]:Hl(this,r.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,a=null,r,n){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof Ll))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(a,r,n)}text(e,a){let r=this.nodes.text;return new $l(r,r.defaultAttrs,e,tl.setFrom(a))}mark(e,a){return"string"==typeof e&&(e=this.marks[e]),e.create(a)}nodeFromJSON(e){return ql.fromJSON(this,e)}markFromJSON(e){return tl.fromJSON(this,e)}nodeType(e){let a=this.nodes[e];if(!a)throw new RangeError("Unknown node type: "+e);return a}}function Hl(e,a){let r=[];for(let n=0;n<a.length;n++){let i=a[n],t=e.marks[i],o=t;if(t)r.push(t);else for(let a in e.marks){let n=e.marks[a];("_"==i||n.spec.group&&n.spec.group.split(" ").indexOf(i)>-1)&&r.push(o=n)}if(!o)throw new SyntaxError("Unknown mark type: '"+a[n]+"'")}return r}class Gl{constructor(e,a){this.schema=e,this.rules=a,this.tags=[],this.styles=[];let r=this.matchedStyles=[];a.forEach((e=>{if(function(e){return null!=e.tag}(e))this.tags.push(e);else if(function(e){return null!=e.style}(e)){let a=/[^=]*/.exec(e.style)[0];r.indexOf(a)<0&&r.push(a),this.styles.push(e)}})),this.normalizeLists=!this.tags.some((a=>{if(!/^(ul|ol)\b/.test(a.tag)||!a.node)return!1;let r=e.nodes[a.node];return r.contentMatch.matchType(r)}))}parse(e,a={}){let r=new Xl(this,a,!1);return r.addAll(e,tl.none,a.from,a.to),r.finish()}parseSlice(e,a={}){let r=new Xl(this,a,!0);return r.addAll(e,tl.none,a.from,a.to),sl.maxOpen(r.finish())}matchTag(e,a,r){for(let n=r?this.tags.indexOf(r)+1:0;n<this.tags.length;n++){let r=this.tags[n];if(Ql(e,r.tag)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||a.matchesContext(r.context))){if(r.getAttrs){let a=r.getAttrs(e);if(!1===a)continue;r.attrs=a||void 0}return r}}}matchStyle(e,a,r,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let n=this.styles[i],t=n.style;if(!(0!=t.indexOf(e)||n.context&&!r.matchesContext(n.context)||t.length>e.length&&(61!=t.charCodeAt(e.length)||t.slice(e.length+1)!=a))){if(n.getAttrs){let e=n.getAttrs(a);if(!1===e)continue;n.attrs=e||void 0}return n}}}static schemaRules(e){let a=[];function r(e){let r=null==e.priority?50:e.priority,n=0;for(;n<a.length;n++){let e=a[n];if((null==e.priority?50:e.priority)<r)break}a.splice(n,0,e)}for(let a in e.marks){let n=e.marks[a].spec.parseDOM;n&&n.forEach((e=>{r(e=ec(e)),e.mark||e.ignore||e.clearMark||(e.mark=a)}))}for(let a in e.nodes){let n=e.nodes[a].spec.parseDOM;n&&n.forEach((e=>{r(e=ec(e)),e.node||e.ignore||e.mark||(e.node=a)}))}return a}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Gl(e,Gl.schemaRules(e)))}}const Wl={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Zl={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Kl={ol:!0,ul:!0};function Jl(e,a,r){return null!=a?(a?1:0)|("full"===a?2:0):e&&"pre"==e.whitespace?3:-5&r}class Yl{constructor(e,a,r,n,i,t){this.type=e,this.attrs=a,this.marks=r,this.solid=n,this.options=t,this.content=[],this.activeMarks=tl.none,this.match=i||(4&t?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let a=this.type.contentMatch.fillBefore(al.from(e));if(!a){let a,r=this.type.contentMatch;return(a=r.findWrapping(e.type))?(this.match=r,a):null}this.match=this.type.contentMatch.matchFragment(a)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,a=this.content[this.content.length-1];if(a&&a.isText&&(e=/[ \t\r\n\u000c]+$/.exec(a.text))){let r=a;a.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-e[0].length))}}let a=al.from(this.content);return!e&&this.match&&(a=a.append(this.match.fillBefore(al.empty,!0))),this.type?this.type.create(this.attrs,a,this.marks):a}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Wl.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Xl{constructor(e,a,r){this.parser=e,this.options=a,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let n,i=a.topNode,t=Jl(null,a.preserveWhitespace,0)|(r?4:0);n=i?new Yl(i.type,i.attrs,tl.none,!0,a.topMatch||i.type.contentMatch,t):new Yl(r?null:e.schema.topNodeType,null,tl.none,!0,null,t),this.nodes=[n],this.find=a.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,a){3==e.nodeType?this.addTextNode(e,a):1==e.nodeType&&this.addElement(e,a)}addTextNode(e,a){let r=e.nodeValue,n=this.top,i=2&n.options?"full":this.localPreserveWS||(1&n.options)>0;if("full"===i||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)r="full"!==i?r.replace(/\r?\n|\r/g," "):r.replace(/\r\n?/g,"\n");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let a=n.content[n.content.length-1],i=e.previousSibling;(!a||i&&"BR"==i.nodeName||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),a),this.findInText(e)}else this.findInside(e)}addElement(e,a,r){let n=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let t,o=e.nodeName.toLowerCase();Kl.hasOwnProperty(o)&&this.parser.normalizeLists&&function(e){for(let a=e.firstChild,r=null;a;a=a.nextSibling){let e=1==a.nodeType?a.nodeName.toLowerCase():null;e&&Kl.hasOwnProperty(e)&&r?(r.appendChild(a),a=r):"li"==e?r=a:e&&(r=null)}}(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(t=this.parser.matchTag(e,this,r));e:if(s?s.ignore:Zl.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,a);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let r,n=this.needsBlock;if(Wl.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),r=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,a);break e}let t=s&&s.skip?a:this.readStyles(e,a);t&&this.addAll(e,t),r&&this.sync(i),this.needsBlock=n}else{let r=this.readStyles(e,a);r&&this.addElementByRule(e,s,r,!1===s.consuming?t:void 0)}this.localPreserveWS=n}leafFallback(e,a){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),a)}ignoreFallback(e,a){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),a)}readStyles(e,a){let r=e.style;if(r&&r.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let n=this.parser.matchedStyles[e],i=r.getPropertyValue(n);if(i)for(let e;;){let r=this.parser.matchStyle(n,i,this,e);if(!r)break;if(r.ignore)return null;if(a=r.clearMark?a.filter((e=>!r.clearMark(e))):a.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1!==r.consuming)break;e=r}}return a}addElementByRule(e,a,r,n){let i,t;if(a.node)if(t=this.parser.schema.nodes[a.node],t.isLeaf)this.insertNode(t.create(a.attrs),r)||this.leafFallback(e,r);else{let e=this.enter(t,a.attrs||null,r,a.preserveWhitespace);e&&(i=!0,r=e)}else{let e=this.parser.schema.marks[a.mark];r=r.concat(e.create(a.attrs))}let o=this.top;if(t&&t.isLeaf)this.findInside(e);else if(n)this.addElement(e,r,n);else if(a.getContent)this.findInside(e),a.getContent(e,this.parser.schema).forEach((e=>this.insertNode(e,r)));else{let n=e;"string"==typeof a.contentElement?n=e.querySelector(a.contentElement):"function"==typeof a.contentElement?n=a.contentElement(e):a.contentElement&&(n=a.contentElement),this.findAround(e,n,!0),this.addAll(n,r),this.findAround(e,n,!1)}i&&this.sync(o)&&this.open--}addAll(e,a,r,n){let i=r||0;for(let t=r?e.childNodes[r]:e.firstChild,o=null==n?null:e.childNodes[n];t!=o;t=t.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(t,a);this.findAtPoint(e,i)}findPlace(e,a){let r,n;for(let a=this.open;a>=0;a--){let i=this.nodes[a],t=i.findWrapping(e);if(t&&(!r||r.length>t.length)&&(r=t,n=i,!t.length))break;if(i.solid)break}if(!r)return null;this.sync(n);for(let e=0;e<r.length;e++)a=this.enterInner(r[e],null,a,!1);return a}insertNode(e,a){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(a=this.enterInner(e,null,a))}let r=this.findPlace(e,a);if(r){this.closeExtra();let a=this.top;a.match&&(a.match=a.match.matchType(e.type));let n=tl.none;for(let i of r.concat(e.marks))(a.type?a.type.allowsMarkType(i.type):ac(i.type,e.type))&&(n=i.addToSet(n));return a.content.push(e.mark(n)),!0}return!1}enter(e,a,r,n){let i=this.findPlace(e.create(a),r);return i&&(i=this.enterInner(e,a,r,!0,n)),i}enterInner(e,a,r,n=!1,i){this.closeExtra();let t=this.top;t.match=t.match&&t.match.matchType(e);let o=Jl(e,i,t.options);4&t.options&&0==t.content.length&&(o|=4);let s=tl.none;return r=r.filter((a=>!(t.type?t.type.allowsMarkType(a.type):ac(a.type,e))||(s=a.addToSet(s),!1))),this.nodes.push(new Yl(e,a,s,n,null,o)),this.open++,r}closeExtra(e=!1){let a=this.nodes.length-1;if(a>this.open){for(;a>this.open;a--)this.nodes[a-1].content.push(this.nodes[a].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!(!this.isOpen&&!this.options.topOpen))}sync(e){for(let a=this.open;a>=0;a--){if(this.nodes[a]==e)return this.open=a,!0;this.localPreserveWS&&(this.nodes[a].options|=1)}return!1}get currentPos(){this.closeExtra();let e=0;for(let a=this.open;a>=0;a--){let r=this.nodes[a].content;for(let a=r.length-1;a>=0;a--)e+=r[a].nodeSize;a&&e++}return e}findAtPoint(e,a){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==a&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let a=0;a<this.find.length;a++)null==this.find[a].pos&&1==e.nodeType&&e.contains(this.find[a].node)&&(this.find[a].pos=this.currentPos)}findAround(e,a,r){if(e!=a&&this.find)for(let n=0;n<this.find.length;n++)if(null==this.find[n].pos&&1==e.nodeType&&e.contains(this.find[n].node)){a.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos)}}findInText(e){if(this.find)for(let a=0;a<this.find.length;a++)this.find[a].node==e&&(this.find[a].pos=this.currentPos-(e.nodeValue.length-this.find[a].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let a=e.split("/"),r=this.options.context,n=!(this.isOpen||r&&r.parent.type!=this.nodes[0].type),i=-(r?r.depth+1:0)+(n?0:1),t=(e,o)=>{for(;e>=0;e--){let s=a[e];if(""==s){if(e==a.length-1||0==e)continue;for(;o>=i;o--)if(t(e-1,o))return!0;return!1}{let e=o>0||0==o&&n?this.nodes[o].type:r&&o>=i?r.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return t(a.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let a=e.depth;a>=0;a--){let r=e.node(a).contentMatchAt(e.indexAfter(a)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let a=this.parser.schema.nodes[e];if(a.isTextblock&&a.defaultAttrs)return a}}}function Ql(e,a){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,a)}function ec(e){let a={};for(let r in e)a[r]=e[r];return a}function ac(e,a){let r=a.schema.nodes;for(let n in r){let i=r[n];if(!i.allowsMarkType(e))continue;let t=[],o=e=>{t.push(e);for(let r=0;r<e.edgeCount;r++){let{type:n,next:i}=e.edge(r);if(n==a)return!0;if(t.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}class rc{constructor(e,a){this.nodes=e,this.marks=a}serializeFragment(e,a={},r){r||(r=ic(a).createDocumentFragment());let n=r,i=[];return e.forEach((e=>{if(i.length||e.marks.length){let r=0,t=0;for(;r<i.length&&t<e.marks.length;){let a=e.marks[t];if(this.marks[a.type.name]){if(!a.eq(i[r][0])||!1===a.type.spec.spanning)break;r++,t++}else t++}for(;r<i.length;)n=i.pop()[1];for(;t<e.marks.length;){let r=e.marks[t++],o=this.serializeMark(r,e.isInline,a);o&&(i.push([r,n]),n.appendChild(o.dom),n=o.contentDOM||o.dom)}}n.appendChild(this.serializeNodeInner(e,a))})),r}serializeNodeInner(e,a){let{dom:r,contentDOM:n}=sc(ic(a),this.nodes[e.type.name](e),null,e.attrs);if(n){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,a,n)}return r}serializeNode(e,a={}){let r=this.serializeNodeInner(e,a);for(let n=e.marks.length-1;n>=0;n--){let i=this.serializeMark(e.marks[n],e.isInline,a);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,a,r={}){let n=this.marks[e.type.name];return n&&sc(ic(r),n(e,a),null,e.attrs)}static renderSpec(e,a,r=null,n){return sc(e,a,r,n)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new rc(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let a=nc(e.nodes);return a.text||(a.text=e=>e.text),a}static marksFromSchema(e){return nc(e.marks)}}function nc(e){let a={};for(let r in e){let n=e[r].spec.toDOM;n&&(a[r]=n)}return a}function ic(e){return e.document||window.document}const tc=new WeakMap;function oc(e){let a=tc.get(e);return void 0===a&&tc.set(e,a=function(e){let a=null;function r(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])a||(a=[]),a.push(e);else for(let a=0;a<e.length;a++)r(e[a]);else for(let a in e)r(e[a])}return r(e),a}(e)),a}function sc(e,a,r,n){if("string"==typeof a)return{dom:e.createTextNode(a)};if(null!=a.nodeType)return{dom:a};if(a.dom&&null!=a.dom.nodeType)return a;let i,t=a[0];if("string"!=typeof t)throw new RangeError("Invalid array passed to renderSpec");if(n&&(i=oc(n))&&i.indexOf(a)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o,s=t.indexOf(" ");s>0&&(r=t.slice(0,s),t=t.slice(s+1));let l=r?e.createElementNS(r,t):e.createElement(t),c=a[1],d=1;if(c&&"object"==typeof c&&null==c.nodeType&&!Array.isArray(c)){d=2;for(let e in c)if(null!=c[e]){let a=e.indexOf(" ");a>0?l.setAttributeNS(e.slice(0,a),e.slice(a+1),c[e]):l.setAttribute(e,c[e])}}for(let i=d;i<a.length;i++){let t=a[i];if(0===t){if(i<a.length-1||i>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}{let{dom:a,contentDOM:i}=sc(e,t,r,n);if(l.appendChild(a),i){if(o)throw new RangeError("Multiple content holes");o=i}}}return{dom:l,contentDOM:o}}const lc=Math.pow(2,16);function cc(e,a){return e+a*lc}function dc(e){return 65535&e}class uc{constructor(e,a,r){this.pos=e,this.delInfo=a,this.recover=r}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class hc{constructor(e,a=!1){if(this.ranges=e,this.inverted=a,!e.length&&hc.empty)return hc.empty}recover(e){let a=0,r=dc(e);if(!this.inverted)for(let e=0;e<r;e++)a+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+a+function(e){return(e-(65535&e))/lc}(e)}mapResult(e,a=1){return this._map(e,a,!1)}map(e,a=1){return this._map(e,a,!0)}_map(e,a,r){let n=0,i=this.inverted?2:1,t=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?n:0);if(s>e)break;let l=this.ranges[o+i],c=this.ranges[o+t],d=s+l;if(e<=d){let i=s+n+((l?e==s?-1:e==d?1:a:a)<0?0:c);if(r)return i;let t=e==(a<0?s:d)?null:cc(o/3,e-s),u=e==s?2:e==d?1:4;return(a<0?e!=s:e!=d)&&(u|=8),new uc(i,u,t)}n+=c-l}return r?e+n:new uc(e+n,0,null)}touches(e,a){let r=0,n=dc(a),i=this.inverted?2:1,t=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let o=this.ranges[a]-(this.inverted?r:0);if(o>e)break;let s=this.ranges[a+i];if(e<=o+s&&a==3*n)return!0;r+=this.ranges[a+t]-s}return!1}forEach(e){let a=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let t=this.ranges[n],o=t-(this.inverted?i:0),s=t+(this.inverted?0:i),l=this.ranges[n+a],c=this.ranges[n+r];e(o,o+l,s,s+c),i+=c-l}}invert(){return new hc(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?hc.empty:new hc(e<0?[0,-e,0]:[0,0,e])}}hc.empty=new hc([]);const mc=Object.create(null);class gc{getMap(){return hc.empty}merge(e){return null}static fromJSON(e,a){if(!a||!a.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=mc[a.stepType];if(!r)throw new RangeError(`No step type ${a.stepType} defined`);return r.fromJSON(e,a)}static jsonID(e,a){if(e in mc)throw new RangeError("Duplicate use of step JSON ID "+e);return mc[e]=a,a.prototype.jsonID=e,a}}class pc{constructor(e,a){this.doc=e,this.failed=a}static ok(e){return new pc(e,null)}static fail(e){return new pc(null,e)}static fromReplace(e,a,r,n){try{return pc.ok(e.replace(a,r,n))}catch(e){if(e instanceof ol)return pc.fail(e.message);throw e}}}function bc(e,a,r){let n=[];for(let i=0;i<e.childCount;i++){let t=e.child(i);t.content.size&&(t=t.copy(bc(t.content,a,t))),t.isInline&&(t=a(t,r,i)),n.push(t)}return al.fromArray(n)}class kc extends gc{constructor(e,a,r){super(),this.from=e,this.to=a,this.mark=r}apply(e){let a=e.slice(this.from,this.to),r=e.resolve(this.from),n=r.node(r.sharedDepth(this.to)),i=new sl(bc(a.content,((e,a)=>e.isAtom&&a.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e),n),a.openStart,a.openEnd);return pc.fromReplace(e,this.from,this.to,i)}invert(){return new fc(this.from,this.to,this.mark)}map(e){let a=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return a.deleted&&r.deleted||a.pos>=r.pos?null:new kc(a.pos,r.pos,this.mark)}merge(e){return e instanceof kc&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new kc(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,a){if("number"!=typeof a.from||"number"!=typeof a.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new kc(a.from,a.to,e.markFromJSON(a.mark))}}gc.jsonID("addMark",kc);class fc extends gc{constructor(e,a,r){super(),this.from=e,this.to=a,this.mark=r}apply(e){let a=e.slice(this.from,this.to),r=new sl(bc(a.content,(e=>e.mark(this.mark.removeFromSet(e.marks))),e),a.openStart,a.openEnd);return pc.fromReplace(e,this.from,this.to,r)}invert(){return new kc(this.from,this.to,this.mark)}map(e){let a=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return a.deleted&&r.deleted||a.pos>=r.pos?null:new fc(a.pos,r.pos,this.mark)}merge(e){return e instanceof fc&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new fc(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,a){if("number"!=typeof a.from||"number"!=typeof a.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new fc(a.from,a.to,e.markFromJSON(a.mark))}}gc.jsonID("removeMark",fc);class yc extends gc{constructor(e,a){super(),this.pos=e,this.mark=a}apply(e){let a=e.nodeAt(this.pos);if(!a)return pc.fail("No node at mark step's position");let r=a.type.create(a.attrs,null,this.mark.addToSet(a.marks));return pc.fromReplace(e,this.pos,this.pos+1,new sl(al.from(r),0,a.isLeaf?0:1))}invert(e){let a=e.nodeAt(this.pos);if(a){let e=this.mark.addToSet(a.marks);if(e.length==a.marks.length){for(let r=0;r<a.marks.length;r++)if(!a.marks[r].isInSet(e))return new yc(this.pos,a.marks[r]);return new yc(this.pos,this.mark)}}return new vc(this.pos,this.mark)}map(e){let a=e.mapResult(this.pos,1);return a.deletedAfter?null:new yc(a.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,a){if("number"!=typeof a.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new yc(a.pos,e.markFromJSON(a.mark))}}gc.jsonID("addNodeMark",yc);class vc extends gc{constructor(e,a){super(),this.pos=e,this.mark=a}apply(e){let a=e.nodeAt(this.pos);if(!a)return pc.fail("No node at mark step's position");let r=a.type.create(a.attrs,null,this.mark.removeFromSet(a.marks));return pc.fromReplace(e,this.pos,this.pos+1,new sl(al.from(r),0,a.isLeaf?0:1))}invert(e){let a=e.nodeAt(this.pos);return a&&this.mark.isInSet(a.marks)?new yc(this.pos,this.mark):this}map(e){let a=e.mapResult(this.pos,1);return a.deletedAfter?null:new vc(a.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,a){if("number"!=typeof a.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new vc(a.pos,e.markFromJSON(a.mark))}}gc.jsonID("removeNodeMark",vc);class wc extends gc{constructor(e,a,r,n=!1){super(),this.from=e,this.to=a,this.slice=r,this.structure=n}apply(e){return this.structure&&jc(e,this.from,this.to)?pc.fail("Structure replace would overwrite content"):pc.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new hc([this.from,this.to-this.from,this.slice.size])}invert(e){return new wc(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let a=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return a.deletedAcross&&r.deletedAcross?null:new wc(a.pos,Math.max(a.pos,r.pos),this.slice)}merge(e){if(!(e instanceof wc)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let a=this.slice.size+e.slice.size==0?sl.empty:new sl(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new wc(e.from,this.to,a,this.structure)}}{let a=this.slice.size+e.slice.size==0?sl.empty:new sl(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new wc(this.from,this.to+(e.to-e.from),a,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,a){if("number"!=typeof a.from||"number"!=typeof a.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new wc(a.from,a.to,sl.fromJSON(e,a.slice),!!a.structure)}}gc.jsonID("replace",wc);class zc extends gc{constructor(e,a,r,n,i,t,o=!1){super(),this.from=e,this.to=a,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=t,this.structure=o}apply(e){if(this.structure&&(jc(e,this.from,this.gapFrom)||jc(e,this.gapTo,this.to)))return pc.fail("Structure gap-replace would overwrite content");let a=e.slice(this.gapFrom,this.gapTo);if(a.openStart||a.openEnd)return pc.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,a.content);return r?pc.fromReplace(e,this.from,this.to,r):pc.fail("Content does not fit in gap")}getMap(){return new hc([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let a=this.gapTo-this.gapFrom;return new zc(this.from,this.from+this.slice.size+a,this.from+this.insert,this.from+this.insert+a,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let a=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=this.from==this.gapFrom?a.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return a.deletedAcross&&r.deletedAcross||n<a.pos||i>r.pos?null:new zc(a.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,a){if("number"!=typeof a.from||"number"!=typeof a.to||"number"!=typeof a.gapFrom||"number"!=typeof a.gapTo||"number"!=typeof a.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new zc(a.from,a.to,a.gapFrom,a.gapTo,sl.fromJSON(e,a.slice),a.insert,!!a.structure)}}function jc(e,a,r){let n=e.resolve(a),i=r-a,t=n.depth;for(;i>0&&t>0&&n.indexAfter(t)==n.node(t).childCount;)t--,i--;if(i>0){let e=n.node(t).maybeChild(n.indexAfter(t));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function xc(e,a,r){return(0==a||e.canReplace(a,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function qc(e){let a=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let n=e.$from.node(r),i=e.$from.index(r),t=e.$to.indexAfter(r);if(r<e.depth&&n.canReplace(i,t,a))return r;if(0==r||n.type.spec.isolating||!xc(n,i,t))break}return null}function $c(e,a,r=null,n=e){let i=function(e,a){let{parent:r,startIndex:n,endIndex:i}=e,t=r.contentMatchAt(n).findWrapping(a);if(!t)return null;let o=t.length?t[0]:a;return r.canReplaceWith(n,i,o)?t:null}(e,a),t=i&&function(e,a){let{parent:r,startIndex:n,endIndex:i}=e,t=r.child(n),o=a.contentMatch.findWrapping(t.type);if(!o)return null;let s=(o.length?o[o.length-1]:a).contentMatch;for(let e=n;s&&e<i;e++)s=s.matchType(r.child(e).type);return s&&s.validEnd?o:null}(n,a);return t?i.map(Cc).concat({type:a,attrs:r}).concat(t.map(Cc)):null}function Cc(e){return{type:e,attrs:null}}function _c(e,a,r=1,n){let i=e.resolve(a),t=i.depth-r,o=n&&n[n.length-1]||i.parent;if(t<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,a=r-2;e>t;e--,a--){let r=i.node(e),t=i.index(e);if(r.type.spec.isolating)return!1;let o=r.content.cutByIndex(t,r.childCount),s=n&&n[a+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let l=n&&n[a]||r;if(!r.canReplace(t+1,r.childCount)||!l.type.validContent(o))return!1}let s=i.indexAfter(t),l=n&&n[0];return i.node(t).canReplaceWith(s,s,l?l.type:i.node(t+1).type)}function Sc(e,a){let r=e.resolve(a),n=r.index();return Ec(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function Ec(e,a){return!(!e||!a||e.isLeaf||!function(e,a){a.content.size||e.type.compatibleContent(a.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let i=0;i<a.childCount;i++){let t=a.child(i),o=t.type==n?e.type.schema.nodes.text:t.type;if(r=r.matchType(o),!r)return!1;if(!e.type.allowsMarks(t.marks))return!1}return r.validEnd}(e,a))}function Ac(e,a,r=-1){let n=e.resolve(a);for(let e=n.depth;;e--){let i,t,o=n.index(e);if(e==n.depth?(i=n.nodeBefore,t=n.nodeAfter):r>0?(i=n.node(e+1),o++,t=n.node(e).maybeChild(o)):(i=n.node(e).maybeChild(o-1),t=n.node(e+1)),i&&!i.isTextblock&&Ec(i,t)&&n.node(e).canReplace(o,o+1))return a;if(0==e)break;a=r<0?n.before(e):n.after(e)}}function Oc(e,a,r=a,n=sl.empty){if(a==r&&!n.size)return null;let i=e.resolve(a),t=e.resolve(r);return function(e,a,r){return!r.openStart&&!r.openEnd&&e.start()==a.start()&&e.parent.canReplace(e.index(),a.index(),r.content)}(i,t,n)?new wc(a,r,n):new Dc(i,t,n).fit()}gc.jsonID("replaceAround",zc);class Dc{constructor(e,a,r){this.$from=e,this.$to=a,this.unplaced=r,this.frontier=[],this.placed=al.empty;for(let a=0;a<=e.depth;a++){let r=e.node(a);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(a))})}for(let a=e.depth;a>0;a--)this.placed=al.from(e.node(a).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),a=this.placed.size-this.depth-this.$from.depth,r=this.$from,n=this.close(e<0?this.$to:r.doc.resolve(e));if(!n)return null;let i=this.placed,t=r.depth,o=n.depth;for(;t&&o&&1==i.childCount;)i=i.firstChild.content,t--,o--;let s=new sl(i,t,o);return e>-1?new zc(r.pos,e,this.$to.pos,this.$to.end(),s,a):s.size||r.pos!=this.$to.pos?new wc(r.pos,n.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let a=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let i=a.firstChild;if(a.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}a=i.content}for(let a=1;a<=2;a++)for(let r=1==a?e:this.unplaced.openStart;r>=0;r--){let e,n=null;r?(n=Tc(this.unplaced.content,r-1).firstChild,e=n.content):e=this.unplaced.content;let i=e.firstChild;for(let e=this.depth;e>=0;e--){let t,{type:o,match:s}=this.frontier[e],l=null;if(1==a&&(i?s.matchType(i.type)||(l=s.fillBefore(al.from(i),!1)):n&&o.compatibleContent(n.type)))return{sliceDepth:r,frontierDepth:e,parent:n,inject:l};if(2==a&&i&&(t=s.findWrapping(i.type)))return{sliceDepth:r,frontierDepth:e,parent:n,wrap:t};if(n&&s.matchType(n.type))break}}}openMore(){let{content:e,openStart:a,openEnd:r}=this.unplaced,n=Tc(e,a);return!(!n.childCount||n.firstChild.isLeaf)&&(this.unplaced=new sl(e,a+1,Math.max(r,n.size+a>=e.size-r?a+1:0)),!0)}dropNode(){let{content:e,openStart:a,openEnd:r}=this.unplaced,n=Tc(e,a);if(n.childCount<=1&&a>0){let i=e.size-a<=a+n.size;this.unplaced=new sl(Mc(e,a-1,1),a-1,i?a-1:r)}else this.unplaced=new sl(Mc(e,a,1),a,r)}placeNodes({sliceDepth:e,frontierDepth:a,parent:r,inject:n,wrap:i}){for(;this.depth>a;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let t=this.unplaced,o=r?r.content:t.content,s=t.openStart-e,l=0,c=[],{match:d,type:u}=this.frontier[a];if(n){for(let e=0;e<n.childCount;e++)c.push(n.child(e));d=d.matchFragment(n)}let h=o.size+e-(t.content.size-t.openEnd);for(;l<o.childCount;){let e=o.child(l),a=d.matchType(e.type);if(!a)break;l++,(l>1||0==s||e.content.size)&&(d=a,c.push(Nc(e.mark(u.allowedMarks(e.marks)),1==l?s:0,l==o.childCount?h:-1)))}let m=l==o.childCount;m||(h=-1),this.placed=Fc(this.placed,a,al.from(c)),this.frontier[a].match=d,m&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,a=o;e<h;e++){let e=a.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),a=e.content}this.unplaced=m?0==e?sl.empty:new sl(Mc(t.content,e-1,1),e-1,h<0?t.openEnd:e-1):new sl(Mc(t.content,e,l),t.openStart,t.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,a=this.frontier[this.depth];if(!a.type.isTextblock||!Ic(this.$to,this.$to.depth,a.type,a.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){e:for(let a=Math.min(this.depth,e.depth);a>=0;a--){let{match:r,type:n}=this.frontier[a],i=a<e.depth&&e.end(a+1)==e.pos+(e.depth-(a+1)),t=Ic(e,a,n,r,i);if(t){for(let r=a-1;r>=0;r--){let{match:a,type:n}=this.frontier[r],i=Ic(e,r,n,a,!0);if(!i||i.childCount)continue e}return{depth:a,fit:t,move:i?e.doc.resolve(e.after(a+1)):e}}}}close(e){let a=this.findCloseLevel(e);if(!a)return null;for(;this.depth>a.depth;)this.closeFrontierNode();a.fit.childCount&&(this.placed=Fc(this.placed,a.depth,a.fit)),e=a.move;for(let r=a.depth+1;r<=e.depth;r++){let a=e.node(r),n=a.type.contentMatch.fillBefore(a.content,!0,e.index(r));this.openFrontierNode(a.type,a.attrs,n)}return e}openFrontierNode(e,a=null,r){let n=this.frontier[this.depth];n.match=n.match.matchType(e),this.placed=Fc(this.placed,this.depth,al.from(e.create(a,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(al.empty,!0);e.childCount&&(this.placed=Fc(this.placed,this.frontier.length,e))}}function Mc(e,a,r){return 0==a?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(Mc(e.firstChild.content,a-1,r)))}function Fc(e,a,r){return 0==a?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(Fc(e.lastChild.content,a-1,r)))}function Tc(e,a){for(let r=0;r<a;r++)e=e.firstChild.content;return e}function Nc(e,a,r){if(a<=0)return e;let n=e.content;return a>1&&(n=n.replaceChild(0,Nc(n.firstChild,a-1,1==n.childCount?r-1:0))),a>0&&(n=e.type.contentMatch.fillBefore(n).append(n),r<=0&&(n=n.append(e.type.contentMatch.matchFragment(n).fillBefore(al.empty,!0)))),e.copy(n)}function Ic(e,a,r,n,i){let t=e.node(a),o=i?e.indexAfter(a):e.index(a);if(o==t.childCount&&!r.compatibleContent(t.type))return null;let s=n.fillBefore(t.content,!0,o);return s&&!function(e,a,r){for(let n=r;n<a.childCount;n++)if(!e.allowsMarks(a.child(n).marks))return!0;return!1}(r,t.content,o)?s:null}class Pc extends gc{constructor(e,a,r){super(),this.pos=e,this.attr=a,this.value=r}apply(e){let a=e.nodeAt(this.pos);if(!a)return pc.fail("No node at attribute step's position");let r=Object.create(null);for(let e in a.attrs)r[e]=a.attrs[e];r[this.attr]=this.value;let n=a.type.create(r,null,a.marks);return pc.fromReplace(e,this.pos,this.pos+1,new sl(al.from(n),0,a.isLeaf?0:1))}getMap(){return hc.empty}invert(e){return new Pc(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let a=e.mapResult(this.pos,1);return a.deletedAfter?null:new Pc(a.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,a){if("number"!=typeof a.pos||"string"!=typeof a.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new Pc(a.pos,a.attr,a.value)}}gc.jsonID("attr",Pc);class Rc extends gc{constructor(e,a){super(),this.attr=e,this.value=a}apply(e){let a=Object.create(null);for(let r in e.attrs)a[r]=e.attrs[r];a[this.attr]=this.value;let r=e.type.create(a,e.content,e.marks);return pc.ok(r)}getMap(){return hc.empty}invert(e){return new Rc(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,a){if("string"!=typeof a.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Rc(a.attr,a.value)}}gc.jsonID("docAttr",Rc);let Lc=class extends Error{};Lc=function e(a){let r=Error.call(this,a);return r.__proto__=e.prototype,r},(Lc.prototype=Object.create(Error.prototype)).constructor=Lc,Lc.prototype.name="TransformError";const Bc=Object.create(null);class Vc{constructor(e,a,r){this.$anchor=e,this.$head=a,this.ranges=r||[new Uc(e.min(a),e.max(a))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let a=0;a<e.length;a++)if(e[a].$from.pos!=e[a].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,a=sl.empty){let r=a.content.lastChild,n=null;for(let e=0;e<a.openEnd;e++)n=r,r=r.lastChild;let i=e.steps.length,t=this.ranges;for(let o=0;o<t.length;o++){let{$from:s,$to:l}=t[o],c=e.mapping.slice(i);e.replaceRange(c.map(s.pos),c.map(l.pos),o?sl.empty:a),0==o&&ed(e,i,(r?r.isInline:n&&n.isTextblock)?-1:1)}}replaceWith(e,a){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:t,$to:o}=n[i],s=e.mapping.slice(r),l=s.map(t.pos),c=s.map(o.pos);i?e.deleteRange(l,c):(e.replaceRangeWith(l,c,a),ed(e,r,a.isInline?-1:1))}}static findFrom(e,a,r=!1){let n=e.parent.inlineContent?new Wc(e):Qc(e.node(0),e.parent,e.pos,e.index(),a,r);if(n)return n;for(let n=e.depth-1;n>=0;n--){let i=a<0?Qc(e.node(0),e.node(n),e.before(n+1),e.index(n),a,r):Qc(e.node(0),e.node(n),e.after(n+1),e.index(n)+1,a,r);if(i)return i}return null}static near(e,a=1){return this.findFrom(e,a)||this.findFrom(e,-a)||new Yc(e.node(0))}static atStart(e){return Qc(e,e,0,0,1)||new Yc(e)}static atEnd(e){return Qc(e,e,e.content.size,e.childCount,-1)||new Yc(e)}static fromJSON(e,a){if(!a||!a.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Bc[a.type];if(!r)throw new RangeError(`No selection type ${a.type} defined`);return r.fromJSON(e,a)}static jsonID(e,a){if(e in Bc)throw new RangeError("Duplicate use of selection JSON ID "+e);return Bc[e]=a,a.prototype.jsonID=e,a}getBookmark(){return Wc.between(this.$anchor,this.$head).getBookmark()}}Vc.prototype.visible=!0;class Uc{constructor(e,a){this.$from=e,this.$to=a}}let Hc=!1;function Gc(e){Hc||e.parent.inlineContent||(Hc=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Wc extends Vc{constructor(e,a=e){Gc(e),Gc(a),super(e,a)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,a){let r=e.resolve(a.map(this.head));if(!r.parent.inlineContent)return Vc.near(r);let n=e.resolve(a.map(this.anchor));return new Wc(n.parent.inlineContent?n:r,r)}replace(e,a=sl.empty){if(super.replace(e,a),a==sl.empty){let a=this.$from.marksAcross(this.$to);a&&e.ensureMarks(a)}}eq(e){return e instanceof Wc&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Zc(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,a){if("number"!=typeof a.anchor||"number"!=typeof a.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new Wc(e.resolve(a.anchor),e.resolve(a.head))}static create(e,a,r=a){let n=e.resolve(a);return new this(n,r==a?n:e.resolve(r))}static between(e,a,r){let n=e.pos-a.pos;if(r&&!n||(r=n>=0?1:-1),!a.parent.inlineContent){let e=Vc.findFrom(a,r,!0)||Vc.findFrom(a,-r,!0);if(!e)return Vc.near(a,r);a=e.$head}return e.parent.inlineContent||(0==n||(e=(Vc.findFrom(e,-r,!0)||Vc.findFrom(e,r,!0)).$anchor).pos<a.pos!=n<0)&&(e=a),new Wc(e,a)}}Vc.jsonID("text",Wc);class Zc{constructor(e,a){this.anchor=e,this.head=a}map(e){return new Zc(e.map(this.anchor),e.map(this.head))}resolve(e){return Wc.between(e.resolve(this.anchor),e.resolve(this.head))}}class Kc extends Vc{constructor(e){let a=e.nodeAfter,r=e.node(0).resolve(e.pos+a.nodeSize);super(e,r),this.node=a}map(e,a){let{deleted:r,pos:n}=a.mapResult(this.anchor),i=e.resolve(n);return r?Vc.near(i):new Kc(i)}content(){return new sl(al.from(this.node),0,0)}eq(e){return e instanceof Kc&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Jc(this.anchor)}static fromJSON(e,a){if("number"!=typeof a.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Kc(e.resolve(a.anchor))}static create(e,a){return new Kc(e.resolve(a))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}Kc.prototype.visible=!1,Vc.jsonID("node",Kc);class Jc{constructor(e){this.anchor=e}map(e){let{deleted:a,pos:r}=e.mapResult(this.anchor);return a?new Zc(r,r):new Jc(r)}resolve(e){let a=e.resolve(this.anchor),r=a.nodeAfter;return r&&Kc.isSelectable(r)?new Kc(a):Vc.near(a)}}class Yc extends Vc{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,a=sl.empty){if(a==sl.empty){e.delete(0,e.doc.content.size);let a=Vc.atStart(e.doc);a.eq(e.selection)||e.setSelection(a)}else super.replace(e,a)}toJSON(){return{type:"all"}}static fromJSON(e){return new Yc(e)}map(e){return new Yc(e)}eq(e){return e instanceof Yc}getBookmark(){return Xc}}Vc.jsonID("all",Yc);const Xc={map(){return this},resolve:e=>new Yc(e)};function Qc(e,a,r,n,i,t=!1){if(a.inlineContent)return Wc.create(e,r);for(let o=n-(i>0?0:1);i>0?o<a.childCount:o>=0;o+=i){let n=a.child(o);if(n.isAtom){if(!t&&Kc.isSelectable(n))return Kc.create(e,r-(i<0?n.nodeSize:0))}else{let a=Qc(e,n,r+i,i<0?n.childCount:0,i,t);if(a)return a}r+=n.nodeSize*i}return null}function ed(e,a,r){let n=e.steps.length-1;if(n<a)return;let i,t=e.steps[n];(t instanceof wc||t instanceof zc)&&(e.mapping.maps[n].forEach(((e,a,r,n)=>{null==i&&(i=n)})),e.setSelection(Vc.near(e.doc.resolve(i),r)))}function ad(e,a){return a&&e?e.bind(a):e}class rd{constructor(e,a,r){this.name=e,this.init=ad(a.init,r),this.apply=ad(a.apply,r)}}function nd(e,a,r){for(let n in e){let i=e[n];i instanceof Function?i=i.bind(a):"handleDOMEvents"==n&&(i=nd(i,a,{})),r[n]=i}return r}new rd("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new rd("selection",{init:(e,a)=>e.selection||Vc.atStart(a.doc),apply:e=>e.selection}),new rd("storedMarks",{init:e=>e.storedMarks||null,apply:(e,a,r,n)=>n.selection.$cursor?e.storedMarks:null}),new rd("scrollToSelection",{init:()=>0,apply:(e,a)=>e.scrolledIntoView?a+1:a});class id{constructor(e){this.spec=e,this.props={},e.props&&nd(e.props,this,this.props),this.key=e.key?e.key.key:od("plugin")}getState(e){return e[this.key]}}const td=Object.create(null);function od(e){return e in td?e+"$"+ ++td[e]:(td[e]=0,e+"$")}class sd{constructor(e="key"){this.key=od(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const ld=function(e){for(var a=0;;a++)if(!(e=e.previousSibling))return a},cd=function(e,a,r,n){return r&&(ud(e,a,r,n,-1)||ud(e,a,r,n,1))},dd=/^(img|br|input|textarea|hr)$/i;function ud(e,a,r,n,i){for(;;){if(e==r&&a==n)return!0;if(a==(i<0?0:hd(e))){let r=e.parentNode;if(!r||1!=r.nodeType||md(e)||dd.test(e.nodeName)||"false"==e.contentEditable)return!1;a=ld(e)+(i<0?0:1),e=r}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[a+(i<0?-1:0)]).contentEditable)return!1;a=i<0?hd(e):0}}}function hd(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function md(e){let a;for(let r=e;r&&!(a=r.pmViewDesc);r=r.parentNode);return a&&a.node&&a.node.isBlock&&(a.dom==e||a.contentDOM==e)}const gd=function(e){return e.focusNode&&cd(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function pd(e,a){let r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=e,r.key=r.code=a,r}const bd="undefined"!=typeof navigator?navigator:null,kd="undefined"!=typeof document?document:null,fd=bd&&bd.userAgent||"",yd=/Edge\/(\d+)/.exec(fd),vd=/MSIE \d/.exec(fd),wd=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(fd),zd=!!(vd||wd||yd),jd=vd?document.documentMode:wd?+wd[1]:yd?+yd[1]:0,xd=!zd&&/gecko\/(\d+)/i.test(fd);xd&&(/Firefox\/(\d+)/.exec(fd)||[0,0])[1];const qd=!zd&&/Chrome\/(\d+)/.exec(fd),$d=!!qd,Cd=qd?+qd[1]:0,_d=!zd&&!!bd&&/Apple Computer/.test(bd.vendor),Sd=_d&&(/Mobile\/\w+/.test(fd)||!!bd&&bd.maxTouchPoints>2),Ed=Sd||!!bd&&/Mac/.test(bd.platform),Ad=!!bd&&/Win/.test(bd.platform),Od=/Android \d/.test(fd),Dd=!!kd&&"webkitFontSmoothing"in kd.documentElement.style,Md=Dd?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Fd(e,a=null){let r=e.domSelectionRange(),n=e.state.doc;if(!r.focusNode)return null;let i=e.docView.nearestDesc(r.focusNode),t=i&&0==i.size,o=e.docView.posFromDOM(r.focusNode,r.focusOffset,1);if(o<0)return null;let s,l,c=n.resolve(o);if(gd(r)){for(s=o;i&&!i.node;)i=i.parent;let e=i.node;if(i&&e.isAtom&&Kc.isSelectable(e)&&i.parent&&(!e.isInline||!function(e,a,r){for(let n=0==a,i=a==hd(e);n||i;){if(e==r)return!0;let a=ld(e);if(!(e=e.parentNode))return!1;n=n&&0==a,i=i&&a==hd(e)}}(r.focusNode,r.focusOffset,i.dom))){let e=i.posBefore;l=new Kc(o==e?c:n.resolve(e))}}else{if(r instanceof e.dom.ownerDocument.defaultView.Selection&&r.rangeCount>1){let a=o,i=o;for(let n=0;n<r.rangeCount;n++){let t=r.getRangeAt(n);a=Math.min(a,e.docView.posFromDOM(t.startContainer,t.startOffset,1)),i=Math.max(i,e.docView.posFromDOM(t.endContainer,t.endOffset,-1))}if(a<0)return null;[s,o]=i==e.state.selection.anchor?[i,a]:[a,i],c=n.resolve(o)}else s=e.docView.posFromDOM(r.anchorNode,r.anchorOffset,1);if(s<0)return null}let d=n.resolve(s);if(!l){l=Vd(e,d,c,"pointer"==a||e.state.selection.head<c.pos&&!t?1:-1)}return l}function Td(e){return e.editable?e.hasFocus():function(e){let a=e.domSelectionRange();if(!a.anchorNode)return!1;try{return e.dom.contains(3==a.anchorNode.nodeType?a.anchorNode.parentNode:a.anchorNode)&&(e.editable||e.dom.contains(3==a.focusNode.nodeType?a.focusNode.parentNode:a.focusNode))}catch(e){return!1}}(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Nd(e,a=!1){let r=e.state.selection;if(function(e,a){if(a instanceof Kc){let r=e.docView.descAt(a.from);r!=e.lastSelectedViewDesc&&(Bd(e),r&&r.selectNode(),e.lastSelectedViewDesc=r)}else Bd(e)}(e,r),Td(e)){if(!a&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&$d){let a=e.domSelectionRange(),r=e.domObserver.currentSelection;if(a.anchorNode&&r.anchorNode&&cd(a.anchorNode,a.anchorOffset,r.anchorNode,r.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let a=e.domSelection(),r=document.createRange();if(!a)return;let n=e.cursorWrapper.dom,i="IMG"==n.nodeName;i?r.setStart(n.parentNode,ld(n)+1):r.setStart(n,0);r.collapse(!0),a.removeAllRanges(),a.addRange(r),!i&&!e.state.selection.visible&&zd&&jd<=11&&(n.disabled=!0,n.disabled=!1)}(e);else{let n,i,{anchor:t,head:o}=r;!Id||r instanceof Wc||(r.$from.parent.inlineContent||(n=Pd(e,r.from)),r.empty||r.$from.parent.inlineContent||(i=Pd(e,r.to))),e.docView.setSelection(t,o,e,a),Id&&(n&&Ld(n),i&&Ld(i)),r.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){let a=e.dom.ownerDocument;a.removeEventListener("selectionchange",e.input.hideSelectionGuard);let r=e.domSelectionRange(),n=r.anchorNode,i=r.anchorOffset;a.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{r.anchorNode==n&&r.anchorOffset==i||(a.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout((()=>{Td(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const Id=_d||$d&&Cd<63;function Pd(e,a){let{node:r,offset:n}=e.docView.domFromPos(a,0),i=n<r.childNodes.length?r.childNodes[n]:null,t=n?r.childNodes[n-1]:null;if(_d&&i&&"false"==i.contentEditable)return Rd(i);if(!(i&&"false"!=i.contentEditable||t&&"false"!=t.contentEditable)){if(i)return Rd(i);if(t)return Rd(t)}}function Rd(e){return e.contentEditable="true",_d&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Ld(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Bd(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Vd(e,a,r,n){return e.someProp("createSelectionBetween",(n=>n(e,a,r)))||Wc.between(a,r,n)}function Ud(e,a){let{$anchor:r,$head:n}=e.selection,i=a>0?r.max(n):r.min(n),t=i.parent.inlineContent?i.depth?e.doc.resolve(a>0?i.after():i.before()):null:i;return t&&Vc.findFrom(t,a)}function Hd(e,a){return e.dispatch(e.state.tr.setSelection(a).scrollIntoView()),!0}function Gd(e,a,r){let n=e.state.selection;if(!(n instanceof Wc)){if(n instanceof Kc&&n.node.isInline)return Hd(e,new Wc(a>0?n.$to:n.$from));{let r=Ud(e.state,a);return!!r&&Hd(e,r)}}if(r.indexOf("s")>-1){let{$head:r}=n,i=r.textOffset?null:a<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let t=e.state.doc.resolve(r.pos+i.nodeSize*(a<0?-1:1));return Hd(e,new Wc(n.$anchor,t))}if(!n.empty)return!1;if(e.endOfTextblock(a>0?"forward":"backward")){let r=Ud(e.state,a);return!!(r&&r instanceof Kc)&&Hd(e,r)}if(!(Ed&&r.indexOf("m")>-1)){let r,i=n.$head,t=i.textOffset?null:a<0?i.nodeBefore:i.nodeAfter;if(!t||t.isText)return!1;let o=a<0?i.pos-t.nodeSize:i.pos;return!!(t.isAtom||(r=e.docView.descAt(o))&&!r.contentDOM)&&(Kc.isSelectable(t)?Hd(e,new Kc(a<0?e.state.doc.resolve(i.pos-t.nodeSize):i)):!!Dd&&Hd(e,new Wc(e.state.doc.resolve(a<0?o:o+t.nodeSize))))}}function Wd(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Zd(e,a){let r=e.pmViewDesc;return r&&0==r.size&&(a<0||e.nextSibling||"BR"!=e.nodeName)}function Kd(e,a){return a<0?function(e){let a=e.domSelectionRange(),r=a.focusNode,n=a.focusOffset;if(!r)return;let i,t,o=!1;xd&&1==r.nodeType&&n<Wd(r)&&Zd(r.childNodes[n],-1)&&(o=!0);for(;;)if(n>0){if(1!=r.nodeType)break;{let e=r.childNodes[n-1];if(Zd(e,-1))i=r,t=--n;else{if(3!=e.nodeType)break;r=e,n=r.nodeValue.length}}}else{if(Jd(r))break;{let a=r.previousSibling;for(;a&&Zd(a,-1);)i=r.parentNode,t=ld(a),a=a.previousSibling;if(a)r=a,n=Wd(r);else{if(r=r.parentNode,r==e.dom)break;n=0}}}o?Yd(e,r,n):i&&Yd(e,i,t)}(e):function(e){let a=e.domSelectionRange(),r=a.focusNode,n=a.focusOffset;if(!r)return;let i,t,o=Wd(r);for(;;)if(n<o){if(1!=r.nodeType)break;if(!Zd(r.childNodes[n],1))break;i=r,t=++n}else{if(Jd(r))break;{let a=r.nextSibling;for(;a&&Zd(a,1);)i=a.parentNode,t=ld(a)+1,a=a.nextSibling;if(a)r=a,n=0,o=Wd(r);else{if(r=r.parentNode,r==e.dom)break;n=o=0}}}i&&Yd(e,i,t)}(e)}function Jd(e){let a=e.pmViewDesc;return a&&a.node&&a.node.isBlock}function Yd(e,a,r){if(3!=a.nodeType){let e,n;(n=function(e,a){for(;e&&a==e.childNodes.length&&!md(e);)a=ld(e)+1,e=e.parentNode;for(;e&&a<e.childNodes.length;){let r=e.childNodes[a];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;e=r,a=0}}(a,r))?(a=n,r=0):(e=function(e,a){for(;e&&!a&&!md(e);)a=ld(e),e=e.parentNode;for(;e&&a;){let r=e.childNodes[a-1];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;a=(e=r).childNodes.length}}(a,r))&&(a=e,r=e.nodeValue.length)}let n=e.domSelection();if(!n)return;if(gd(n)){let e=document.createRange();e.setEnd(a,r),e.setStart(a,r),n.removeAllRanges(),n.addRange(e)}else n.extend&&n.extend(a,r);e.domObserver.setCurSelection();let{state:i}=e;setTimeout((()=>{e.state==i&&Nd(e)}),50)}function Xd(e,a){let r=e.state.doc.resolve(a);if(!$d&&!Ad&&r.parent.inlineContent){let n=e.coordsAtPos(a);if(a>r.start()){let r=e.coordsAtPos(a-1),i=(r.top+r.bottom)/2;if(i>n.top&&i<n.bottom&&Math.abs(r.left-n.left)>1)return r.left<n.left?"ltr":"rtl"}if(a<r.end()){let r=e.coordsAtPos(a+1),i=(r.top+r.bottom)/2;if(i>n.top&&i<n.bottom&&Math.abs(r.left-n.left)>1)return r.left>n.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function Qd(e,a,r){let n=e.state.selection;if(n instanceof Wc&&!n.empty||r.indexOf("s")>-1)return!1;if(Ed&&r.indexOf("m")>-1)return!1;let{$from:i,$to:t}=n;if(!i.parent.inlineContent||e.endOfTextblock(a<0?"up":"down")){let r=Ud(e.state,a);if(r&&r instanceof Kc)return Hd(e,r)}if(!i.parent.inlineContent){let r=a<0?i:t,o=n instanceof Yc?Vc.near(r,a):Vc.findFrom(r,a);return!!o&&Hd(e,o)}return!1}function eu(e,a){if(!(e.state.selection instanceof Wc))return!0;let{$head:r,$anchor:n,empty:i}=e.state.selection;if(!r.sameParent(n))return!0;if(!i)return!1;if(e.endOfTextblock(a>0?"forward":"backward"))return!0;let t=!r.textOffset&&(a<0?r.nodeBefore:r.nodeAfter);if(t&&!t.isText){let n=e.state.tr;return a<0?n.delete(r.pos-t.nodeSize,r.pos):n.delete(r.pos,r.pos+t.nodeSize),e.dispatch(n),!0}return!1}function au(e,a,r){e.domObserver.stop(),a.contentEditable=r,e.domObserver.start()}function ru(e,a){let r=a.keyCode,n=function(e){let a="";return e.ctrlKey&&(a+="c"),e.metaKey&&(a+="m"),e.altKey&&(a+="a"),e.shiftKey&&(a+="s"),a}(a);if(8==r||Ed&&72==r&&"c"==n)return eu(e,-1)||Kd(e,-1);if(46==r&&!a.shiftKey||Ed&&68==r&&"c"==n)return eu(e,1)||Kd(e,1);if(13==r||27==r)return!0;if(37==r||Ed&&66==r&&"c"==n){let a=37==r?"ltr"==Xd(e,e.state.selection.from)?-1:1:-1;return Gd(e,a,n)||Kd(e,a)}if(39==r||Ed&&70==r&&"c"==n){let a=39==r?"ltr"==Xd(e,e.state.selection.from)?1:-1:1;return Gd(e,a,n)||Kd(e,a)}return 38==r||Ed&&80==r&&"c"==n?Qd(e,-1,n)||Kd(e,-1):40==r||Ed&&78==r&&"c"==n?function(e){if(!_d||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:a,focusOffset:r}=e.domSelectionRange();if(a&&1==a.nodeType&&0==r&&a.firstChild&&"false"==a.firstChild.contentEditable){let r=a.firstChild;au(e,r,"true"),setTimeout((()=>au(e,r,"false")),20)}return!1}(e)||Qd(e,1,n)||Kd(e,1):n==(Ed?"m":"c")&&(66==r||73==r||89==r||90==r)}function nu(e,a){e.someProp("transformCopied",(r=>{a=r(a,e)}));let r=[],{content:n,openStart:i,openEnd:t}=a;for(;i>1&&t>1&&1==n.childCount&&1==n.firstChild.childCount;){i--,t--;let e=n.firstChild;r.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),n=e.content}let o=e.someProp("clipboardSerializer")||rc.fromSchema(e.state.schema),s=mu(),l=s.createElement("div");l.appendChild(o.serializeFragment(n,{document:s}));let c,d=l.firstChild,u=0;for(;d&&1==d.nodeType&&(c=uu[d.nodeName.toLowerCase()]);){for(let e=c.length-1;e>=0;e--){let a=s.createElement(c[e]);for(;l.firstChild;)a.appendChild(l.firstChild);l.appendChild(a),u++}d=l.firstChild}return d&&1==d.nodeType&&d.setAttribute("data-pm-slice",`${i} ${t}${u?` -${u}`:""} ${JSON.stringify(r)}`),{dom:l,text:e.someProp("clipboardTextSerializer",(r=>r(a,e)))||a.content.textBetween(0,a.content.size,"\n\n"),slice:a}}function iu(e,a,r,n,i){let t,o,s=i.parent.type.spec.code;if(!r&&!a)return null;let l=a&&(n||s||!r);if(l){if(e.someProp("transformPastedText",(r=>{a=r(a,s||n,e)})),s)return a?new sl(al.from(e.state.schema.text(a.replace(/\r\n?/g,"\n"))),0,0):sl.empty;let r=e.someProp("clipboardTextParser",(r=>r(a,i,n,e)));if(r)o=r;else{let r=i.marks(),{schema:n}=e.state,o=rc.fromSchema(n);t=document.createElement("div"),a.split(/(?:\r\n?|\n)+/).forEach((e=>{let a=t.appendChild(document.createElement("p"));e&&a.appendChild(o.serializeNode(n.text(e,r)))}))}}else e.someProp("transformPastedHTML",(a=>{r=a(r,e)})),t=function(e){let a=/^(\s*<meta [^>]*>)*/.exec(e);a&&(e=e.slice(a[0].length));let r,n=mu().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e);(r=i&&uu[i[1].toLowerCase()])&&(e=r.map((e=>"<"+e+">")).join("")+e+r.map((e=>"</"+e+">")).reverse().join(""));if(n.innerHTML=function(e){let a=window.trustedTypes;if(!a)return e;gu||(gu=a.createPolicy("ProseMirrorClipboard",{createHTML:e=>e}));return gu.createHTML(e)}(e),r)for(let e=0;e<r.length;e++)n=n.querySelector(r[e])||n;return n}(r),Dd&&function(e){let a=e.querySelectorAll($d?"span:not([class]):not([style])":"span.Apple-converted-space");for(let r=0;r<a.length;r++){let n=a[r];1==n.childNodes.length&&" "==n.textContent&&n.parentNode&&n.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),n)}}(t);let c=t&&t.querySelector("[data-pm-slice]"),d=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let e=+d[3];e>0;e--){let e=t.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;t=e}if(!o){let a=e.someProp("clipboardParser")||e.someProp("domParser")||Gl.fromSchema(e.state.schema);o=a.parseSlice(t,{preserveWhitespace:!(!l&&!d),context:i,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||tu.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(d)o=function(e,a){if(!e.size)return e;let r,n=e.content.firstChild.type.schema;try{r=JSON.parse(a)}catch(a){return e}let{content:i,openStart:t,openEnd:o}=e;for(let e=r.length-2;e>=0;e-=2){let a=n.nodes[r[e]];if(!a||a.hasRequiredAttrs())break;i=al.from(a.create(r[e+1],i)),t++,o++}return new sl(i,t,o)}(du(o,+d[1],+d[2]),d[4]);else if(o=sl.maxOpen(function(e,a){if(e.childCount<2)return e;for(let r=a.depth;r>=0;r--){let n,i=a.node(r).contentMatchAt(a.index(r)),t=[];if(e.forEach((e=>{if(!t)return;let a,r=i.findWrapping(e.type);if(!r)return t=null;if(a=t.length&&n.length&&su(r,n,e,t[t.length-1],0))t[t.length-1]=a;else{t.length&&(t[t.length-1]=lu(t[t.length-1],n.length));let a=ou(e,r);t.push(a),i=i.matchType(a.type),n=r}})),t)return al.from(t)}return e}(o.content,i),!0),o.openStart||o.openEnd){let e=0,a=0;for(let a=o.content.firstChild;e<o.openStart&&!a.type.spec.isolating;e++,a=a.firstChild);for(let e=o.content.lastChild;a<o.openEnd&&!e.type.spec.isolating;a++,e=e.lastChild);o=du(o,e,a)}return e.someProp("transformPasted",(a=>{o=a(o,e)})),o}const tu=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function ou(e,a,r=0){for(let n=a.length-1;n>=r;n--)e=a[n].create(null,al.from(e));return e}function su(e,a,r,n,i){if(i<e.length&&i<a.length&&e[i]==a[i]){let t=su(e,a,r,n.lastChild,i+1);if(t)return n.copy(n.content.replaceChild(n.childCount-1,t));if(n.contentMatchAt(n.childCount).matchType(i==e.length-1?r.type:e[i+1]))return n.copy(n.content.append(al.from(ou(r,e,i+1))))}}function lu(e,a){if(0==a)return e;let r=e.content.replaceChild(e.childCount-1,lu(e.lastChild,a-1)),n=e.contentMatchAt(e.childCount).fillBefore(al.empty,!0);return e.copy(r.append(n))}function cu(e,a,r,n,i,t){let o=a<0?e.firstChild:e.lastChild,s=o.content;return e.childCount>1&&(t=0),i<n-1&&(s=cu(s,a,r,n,i+1,t)),i>=r&&(s=a<0?o.contentMatchAt(0).fillBefore(s,t<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(al.empty,!0))),e.replaceChild(a<0?0:e.childCount-1,o.copy(s))}function du(e,a,r){return a<e.openStart&&(e=new sl(cu(e.content,-1,a,e.openStart,0,e.openEnd),a,e.openEnd)),r<e.openEnd&&(e=new sl(cu(e.content,1,r,e.openEnd,0,0),e.openStart,r)),e}const uu={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let hu=null;function mu(){return hu||(hu=document.implementation.createHTMLDocument("title"))}let gu=null;const pu={},bu={};function ku(e,a){e.input.lastSelectionOrigin=a,e.input.lastSelectionTime=Date.now()}function fu(e){return{left:e.clientX,top:e.clientY}}function yu(e,a,r,n,i){if(-1==n)return!1;let t=e.state.doc.resolve(n);for(let n=t.depth+1;n>0;n--)if(e.someProp(a,(a=>n>t.depth?a(e,r,t.nodeAfter,t.before(n),i,!0):a(e,r,t.node(n),t.before(n),i,!1))))return!0;return!1}function vu(e,a,r){if(e.focused||e.focus(),e.state.selection.eq(a))return;let n=e.state.tr.setSelection(a);n.setMeta("pointer",!0),e.dispatch(n)}function wu(e,a,r,n,i){return yu(e,"handleClickOn",a,r,n)||e.someProp("handleClick",(r=>r(e,a,n)))||(i?function(e,a){if(-1==a)return!1;let r,n,i=e.state.selection;i instanceof Kc&&(r=i.node);let t=e.state.doc.resolve(a);for(let e=t.depth+1;e>0;e--){let a=e>t.depth?t.nodeAfter:t.node(e);if(Kc.isSelectable(a)){n=r&&i.$from.depth>0&&e>=i.$from.depth&&t.before(i.$from.depth+1)==i.$from.pos?t.before(i.$from.depth):t.before(e);break}}return null!=n&&(vu(e,Kc.create(e.state.doc,n)),!0)}(e,r):function(e,a){if(-1==a)return!1;let r=e.state.doc.resolve(a),n=r.nodeAfter;return!!(n&&n.isAtom&&Kc.isSelectable(n))&&(vu(e,new Kc(r)),!0)}(e,r))}function zu(e,a,r,n){return yu(e,"handleDoubleClickOn",a,r,n)||e.someProp("handleDoubleClick",(r=>r(e,a,n)))}function ju(e,a,r,n){return yu(e,"handleTripleClickOn",a,r,n)||e.someProp("handleTripleClick",(r=>r(e,a,n)))||function(e,a,r){if(0!=r.button)return!1;let n=e.state.doc;if(-1==a)return!!n.inlineContent&&(vu(e,Wc.create(n,0,n.content.size)),!0);let i=n.resolve(a);for(let a=i.depth+1;a>0;a--){let r=a>i.depth?i.nodeAfter:i.node(a),t=i.before(a);if(r.inlineContent)vu(e,Wc.create(n,t+1,t+1+r.content.size));else{if(!Kc.isSelectable(r))continue;vu(e,Kc.create(n,t))}return!0}}(e,r,n)}function xu(e){return Au(e)}bu.keydown=(e,a)=>{let r=a;if(e.input.shiftKey=16==r.keyCode||r.shiftKey,!Cu(e,r)&&(e.input.lastKeyCode=r.keyCode,e.input.lastKeyCodeTime=Date.now(),!Od||!$d||13!=r.keyCode))if(229!=r.keyCode&&e.domObserver.forceFlush(),!Sd||13!=r.keyCode||r.ctrlKey||r.altKey||r.metaKey)e.someProp("handleKeyDown",(a=>a(e,r)))||ru(e,r)?r.preventDefault():ku(e,"key");else{let a=Date.now();e.input.lastIOSEnter=a,e.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{e.input.lastIOSEnter==a&&(e.someProp("handleKeyDown",(a=>a(e,pd(13,"Enter")))),e.input.lastIOSEnter=0)}),200)}},bu.keyup=(e,a)=>{16==a.keyCode&&(e.input.shiftKey=!1)},bu.keypress=(e,a)=>{let r=a;if(Cu(e,r)||!r.charCode||r.ctrlKey&&!r.altKey||Ed&&r.metaKey)return;if(e.someProp("handleKeyPress",(a=>a(e,r))))return void r.preventDefault();let n=e.state.selection;if(!(n instanceof Wc&&n.$from.sameParent(n.$to))){let a=String.fromCharCode(r.charCode);/[\r\n]/.test(a)||e.someProp("handleTextInput",(r=>r(e,n.$from.pos,n.$to.pos,a)))||e.dispatch(e.state.tr.insertText(a).scrollIntoView()),r.preventDefault()}};const qu=Ed?"metaKey":"ctrlKey";pu.mousedown=(e,a)=>{let r=a;e.input.shiftKey=r.shiftKey;let n=xu(e),i=Date.now(),t="singleClick";i-e.input.lastClick.time<500&&function(e,a){let r=a.x-e.clientX,n=a.y-e.clientY;return r*r+n*n<100}(r,e.input.lastClick)&&!r[qu]&&("singleClick"==e.input.lastClick.type?t="doubleClick":"doubleClick"==e.input.lastClick.type&&(t="tripleClick")),e.input.lastClick={time:i,x:r.clientX,y:r.clientY,type:t};let o=e.posAtCoords(fu(r));o&&("singleClick"==t?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new $u(e,o,r,!!n)):("doubleClick"==t?zu:ju)(e,o.pos,o.inside,r)?r.preventDefault():ku(e,"pointer"))};class $u{constructor(e,a,r,n){let i,t;if(this.view=e,this.pos=a,this.event=r,this.flushed=n,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[qu],this.allowDefault=r.shiftKey,a.inside>-1)i=e.state.doc.nodeAt(a.inside),t=a.inside;else{let r=e.state.doc.resolve(a.pos);i=r.parent,t=r.depth?r.before():0}const o=n?null:r.target,s=o?e.docView.nearestDesc(o,!0):null;this.target=s&&1==s.dom.nodeType?s.dom:null;let{selection:l}=e.state;(0==r.button&&i.type.spec.draggable&&!1!==i.type.spec.selectable||l instanceof Kc&&l.from<=t&&l.to>t)&&(this.mightDrag={node:i,pos:t,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!xd||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),ku(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((()=>Nd(this.view))),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let a=this.pos;this.view.state.doc!=this.startDoc&&(a=this.view.posAtCoords(fu(e))),this.updateAllowDefault(e),this.allowDefault||!a?ku(this.view,"pointer"):wu(this.view,a.pos,a.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||_d&&this.mightDrag&&!this.mightDrag.node.isAtom||$d&&!this.view.state.selection.visible&&Math.min(Math.abs(a.pos-this.view.state.selection.from),Math.abs(a.pos-this.view.state.selection.to))<=2)?(vu(this.view,Vc.near(this.view.state.doc.resolve(a.pos))),e.preventDefault()):ku(this.view,"pointer")}move(e){this.updateAllowDefault(e),ku(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function Cu(e,a){return!!e.composing||!!(_d&&Math.abs(a.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}pu.touchstart=e=>{e.input.lastTouch=Date.now(),xu(e),ku(e,"pointer")},pu.touchmove=e=>{e.input.lastTouch=Date.now(),ku(e,"pointer")},pu.contextmenu=e=>xu(e);const _u=Od?5e3:-1;function Su(e,a){clearTimeout(e.input.composingTimeout),a>-1&&(e.input.composingTimeout=setTimeout((()=>Au(e)),a))}function Eu(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=function(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Au(e,a=!1){if(!(Od&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Eu(e),a||e.docView&&e.docView.dirty){let r=Fd(e);return r&&!r.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(r)):!e.markCursor&&!a||e.state.selection.empty?e.updateState(e.state):e.dispatch(e.state.tr.deleteSelection()),!0}return!1}}bu.compositionstart=bu.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:a}=e,r=a.selection.$to;if(a.selection instanceof Wc&&(a.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some((e=>!1===e.type.spec.inclusive))))e.markCursor=e.state.storedMarks||r.marks(),Au(e,!0),e.markCursor=null;else if(Au(e,!a.selection.empty),xd&&a.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let a=e.domSelectionRange();for(let r=a.focusNode,n=a.focusOffset;r&&1==r.nodeType&&0!=n;){let a=n<0?r.lastChild:r.childNodes[n-1];if(!a)break;if(3==a.nodeType){let r=e.domSelection();r&&r.collapse(a,a.nodeValue.length);break}r=a,n=-1}}e.input.composing=!0}Su(e,_u)},bu.compositionend=(e,a)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=a.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then((()=>e.domObserver.flush())),e.input.compositionID++,Su(e,20))};const Ou=zd&&jd<15||Sd&&Md<604;function Du(e,a,r,n,i){let t=iu(e,a,r,n,e.state.selection.$from);if(e.someProp("handlePaste",(a=>a(e,i,t||sl.empty))))return!0;if(!t)return!1;let o=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(t),s=o?e.state.tr.replaceSelectionWith(o,n):e.state.tr.replaceSelection(t);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Mu(e){let a=e.getData("text/plain")||e.getData("Text");if(a)return a;let r=e.getData("text/uri-list");return r?r.replace(/\r?\n/g," "):""}pu.copy=bu.cut=(e,a)=>{let r=a,n=e.state.selection,i="cut"==r.type;if(n.empty)return;let t=Ou?null:r.clipboardData,o=n.content(),{dom:s,text:l}=nu(e,o);t?(r.preventDefault(),t.clearData(),t.setData("text/html",s.innerHTML),t.setData("text/plain",l)):function(e,a){if(!e.dom.parentNode)return;let r=e.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(a),r.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),i=document.createRange();i.selectNodeContents(a),e.dom.blur(),n.removeAllRanges(),n.addRange(i),setTimeout((()=>{r.parentNode&&r.parentNode.removeChild(r),e.focus()}),50)}(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},bu.paste=(e,a)=>{let r=a;if(e.composing&&!Od)return;let n=Ou?null:r.clipboardData,i=e.input.shiftKey&&45!=e.input.lastKeyCode;n&&Du(e,Mu(n),n.getData("text/html"),i,r)?r.preventDefault():function(e,a){if(!e.dom.parentNode)return;let r=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,n=e.dom.parentNode.appendChild(document.createElement(r?"textarea":"div"));r||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let i=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout((()=>{e.focus(),n.parentNode&&n.parentNode.removeChild(n),r?Du(e,n.value,null,i,a):Du(e,n.textContent,n.innerHTML,i,a)}),50)}(e,r)};class Fu{constructor(e,a,r){this.slice=e,this.move=a,this.node=r}}const Tu=Ed?"altKey":"ctrlKey";pu.dragstart=(e,a)=>{let r=a,n=e.input.mouseDown;if(n&&n.done(),!r.dataTransfer)return;let i,t=e.state.selection,o=t.empty?null:e.posAtCoords(fu(r));if(o&&o.pos>=t.from&&o.pos<=(t instanceof Kc?t.to-1:t.to));else if(n&&n.mightDrag)i=Kc.create(e.state.doc,n.mightDrag.pos);else if(r.target&&1==r.target.nodeType){let a=e.docView.nearestDesc(r.target,!0);a&&a.node.type.spec.draggable&&a!=e.docView&&(i=Kc.create(e.state.doc,a.posBefore))}let s=(i||e.state.selection).content(),{dom:l,text:c,slice:d}=nu(e,s);(!r.dataTransfer.files.length||!$d||Cd>120)&&r.dataTransfer.clearData(),r.dataTransfer.setData(Ou?"Text":"text/html",l.innerHTML),r.dataTransfer.effectAllowed="copyMove",Ou||r.dataTransfer.setData("text/plain",c),e.dragging=new Fu(d,!r[Tu],i)},pu.dragend=e=>{let a=e.dragging;window.setTimeout((()=>{e.dragging==a&&(e.dragging=null)}),50)},bu.dragover=bu.dragenter=(e,a)=>a.preventDefault(),bu.drop=(e,a)=>{let r=a,n=e.dragging;if(e.dragging=null,!r.dataTransfer)return;let i=e.posAtCoords(fu(r));if(!i)return;let t=e.state.doc.resolve(i.pos),o=n&&n.slice;o?e.someProp("transformPasted",(a=>{o=a(o,e)})):o=iu(e,Mu(r.dataTransfer),Ou?null:r.dataTransfer.getData("text/html"),!1,t);let s=!(!n||r[Tu]);if(e.someProp("handleDrop",(a=>a(e,r,o||sl.empty,s))))return void r.preventDefault();if(!o)return;r.preventDefault();let l=o?function(e,a,r){let n=e.resolve(a);if(!r.content.size)return a;let i=r.content;for(let e=0;e<r.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let a=n.depth;a>=0;a--){let r=a==n.depth?0:n.pos<=(n.start(a+1)+n.end(a+1))/2?-1:1,t=n.index(a)+(r>0?1:0),o=n.node(a),s=!1;if(1==e)s=o.canReplace(t,t,i);else{let e=o.contentMatchAt(t).findWrapping(i.firstChild.type);s=e&&o.canReplaceWith(t,t,e[0])}if(s)return 0==r?n.pos:r<0?n.before(a+1):n.after(a+1)}return null}(e.state.doc,t.pos,o):t.pos;null==l&&(l=t.pos);let c=e.state.tr;if(s){let{node:e}=n;e?e.replace(c):c.deleteSelection()}let d=c.mapping.map(l),u=0==o.openStart&&0==o.openEnd&&1==o.content.childCount,h=c.doc;if(u?c.replaceRangeWith(d,d,o.content.firstChild):c.replaceRange(d,d,o),c.doc.eq(h))return;let m=c.doc.resolve(d);if(u&&Kc.isSelectable(o.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(o.content.firstChild))c.setSelection(new Kc(m));else{let a=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach(((e,r,n,i)=>a=i)),c.setSelection(Vd(e,m,c.doc.resolve(a)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))},pu.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Nd(e)}),20))},pu.blur=(e,a)=>{let r=a;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),r.relatedTarget&&e.dom.contains(r.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},pu.beforeinput=(e,a)=>{if($d&&Od&&"deleteContentBackward"==a.inputType){e.domObserver.flushSoon();let{domChangeCount:a}=e.input;setTimeout((()=>{if(e.input.domChangeCount!=a)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",(a=>a(e,pd(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())}),50)}};for(let e in bu)pu[e]=bu[e];function Nu(e,a){if(e==a)return!0;for(let r in e)if(e[r]!==a[r])return!1;for(let r in a)if(!(r in e))return!1;return!0}class Iu{constructor(e,a){this.toDOM=e,this.spec=a||Vu,this.side=this.spec.side||0}map(e,a,r,n){let{pos:i,deleted:t}=e.mapResult(a.from+n,this.side<0?-1:1);return t?null:new Lu(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Iu&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Nu(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Pu{constructor(e,a){this.attrs=e,this.spec=a||Vu}map(e,a,r,n){let i=e.map(a.from+n,this.spec.inclusiveStart?-1:1)-r,t=e.map(a.to+n,this.spec.inclusiveEnd?1:-1)-r;return i>=t?null:new Lu(i,t,this)}valid(e,a){return a.from<a.to}eq(e){return this==e||e instanceof Pu&&Nu(this.attrs,e.attrs)&&Nu(this.spec,e.spec)}static is(e){return e.type instanceof Pu}destroy(){}}class Ru{constructor(e,a){this.attrs=e,this.spec=a||Vu}map(e,a,r,n){let i=e.mapResult(a.from+n,1);if(i.deleted)return null;let t=e.mapResult(a.to+n,-1);return t.deleted||t.pos<=i.pos?null:new Lu(i.pos-r,t.pos-r,this)}valid(e,a){let r,{index:n,offset:i}=e.content.findIndex(a.from);return i==a.from&&!(r=e.child(n)).isText&&i+r.nodeSize==a.to}eq(e){return this==e||e instanceof Ru&&Nu(this.attrs,e.attrs)&&Nu(this.spec,e.spec)}destroy(){}}class Lu{constructor(e,a,r){this.from=e,this.to=a,this.type=r}copy(e,a){return new Lu(e,a,this.type)}eq(e,a=0){return this.type.eq(e.type)&&this.from+a==e.from&&this.to+a==e.to}map(e,a,r){return this.type.map(e,this,a,r)}static widget(e,a,r){return new Lu(e,e,new Iu(a,r))}static inline(e,a,r,n){return new Lu(e,a,new Pu(r,n))}static node(e,a,r,n){return new Lu(e,a,new Ru(r,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof Pu}get widget(){return this.type instanceof Iu}}const Bu=[],Vu={};class Uu{constructor(e,a){this.local=e.length?e:Bu,this.children=a.length?a:Bu}static create(e,a){return a.length?Ju(a,e,0,Vu):Hu}find(e,a,r){let n=[];return this.findInner(null==e?0:e,null==a?1e9:a,n,0,r),n}findInner(e,a,r,n,i){for(let t=0;t<this.local.length;t++){let o=this.local[t];o.from<=a&&o.to>=e&&(!i||i(o.spec))&&r.push(o.copy(o.from+n,o.to+n))}for(let t=0;t<this.children.length;t+=3)if(this.children[t]<a&&this.children[t+1]>e){let o=this.children[t]+1;this.children[t+2].findInner(e-o,a-o,r,n+o,i)}}map(e,a,r){return this==Hu||0==e.maps.length?this:this.mapInner(e,a,0,0,r||Vu)}mapInner(e,a,r,n,i){let t;for(let o=0;o<this.local.length;o++){let s=this.local[o].map(e,r,n);s&&s.type.valid(a,s)?(t||(t=[])).push(s):i.onRemove&&i.onRemove(this.local[o].spec)}return this.children.length?function(e,a,r,n,i,t,o){let s=e.slice();for(let e=0,a=t;e<r.maps.length;e++){let n=0;r.maps[e].forEach(((e,r,i,t)=>{let o=t-i-(r-e);for(let i=0;i<s.length;i+=3){let t=s[i+1];if(t<0||e>t+a-n)continue;let l=s[i]+a-n;r>=l?s[i+1]=e<=l?-2:-1:e>=a&&o&&(s[i]+=o,s[i+1]+=o)}n+=o})),a=r.maps[e].map(a,-1)}let l=!1;for(let a=0;a<s.length;a+=3)if(s[a+1]<0){if(-2==s[a+1]){l=!0,s[a+1]=-1;continue}let c=r.map(e[a]+t),d=c-i;if(d<0||d>=n.content.size){l=!0;continue}let u=r.map(e[a+1]+t,-1)-i,{index:h,offset:m}=n.content.findIndex(d),g=n.maybeChild(h);if(g&&m==d&&m+g.nodeSize==u){let n=s[a+2].mapInner(r,g,c+1,e[a]+t+1,o);n!=Hu?(s[a]=d,s[a+1]=u,s[a+2]=n):(s[a+1]=-2,l=!0)}else l=!0}if(l){let l=function(e,a,r,n,i,t,o){function s(e,a){for(let t=0;t<e.local.length;t++){let s=e.local[t].map(n,i,a);s?r.push(s):o.onRemove&&o.onRemove(e.local[t].spec)}for(let r=0;r<e.children.length;r+=3)s(e.children[r+2],e.children[r]+a+1)}for(let r=0;r<e.length;r+=3)-1==e[r+1]&&s(e[r+2],a[r]+t+1);return r}(s,e,a,r,i,t,o),c=Ju(l,n,0,o);a=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,a=0;e<c.children.length;e+=3){let r=c.children[e];for(;a<s.length&&s[a]<r;)a+=3;s.splice(a,0,c.children[e],c.children[e+1],c.children[e+2])}}return new Uu(a.sort(Yu),s)}(this.children,t||[],e,a,r,n,i):t?new Uu(t.sort(Yu),Bu):Hu}add(e,a){return a.length?this==Hu?Uu.create(e,a):this.addInner(e,a,0):this}addInner(e,a,r){let n,i=0;e.forEach(((e,t)=>{let o,s=t+r;if(o=Zu(a,e,s)){for(n||(n=this.children.slice());i<n.length&&n[i]<t;)i+=3;n[i]==t?n[i+2]=n[i+2].addInner(e,o,s+1):n.splice(i,0,t,t+e.nodeSize,Ju(o,e,s+1,Vu)),i+=3}}));let t=Wu(i?Ku(a):a,-r);for(let a=0;a<t.length;a++)t[a].type.valid(e,t[a])||t.splice(a--,1);return new Uu(t.length?this.local.concat(t).sort(Yu):this.local,n||this.children)}remove(e){return 0==e.length||this==Hu?this:this.removeInner(e,0)}removeInner(e,a){let r=this.children,n=this.local;for(let n=0;n<r.length;n+=3){let i,t=r[n]+a,o=r[n+1]+a;for(let a,r=0;r<e.length;r++)(a=e[r])&&a.from>t&&a.to<o&&(e[r]=null,(i||(i=[])).push(a));if(!i)continue;r==this.children&&(r=this.children.slice());let s=r[n+2].removeInner(i,t+1);s!=Hu?r[n+2]=s:(r.splice(n,3),n-=3)}if(n.length)for(let r,i=0;i<e.length;i++)if(r=e[i])for(let e=0;e<n.length;e++)n[e].eq(r,a)&&(n==this.local&&(n=this.local.slice()),n.splice(e--,1));return r==this.children&&n==this.local?this:n.length||r.length?new Uu(n,r):Hu}forChild(e,a){if(this==Hu)return this;if(a.isLeaf)return Uu.empty;let r,n;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(r=this.children[a+2]);break}let i=e+1,t=i+a.content.size;for(let e=0;e<this.local.length;e++){let a=this.local[e];if(a.from<t&&a.to>i&&a.type instanceof Pu){let e=Math.max(i,a.from)-i,r=Math.min(t,a.to)-i;e<r&&(n||(n=[])).push(a.copy(e,r))}}if(n){let e=new Uu(n.sort(Yu),Bu);return r?new Gu([e,r]):e}return r||Hu}eq(e){if(this==e)return!0;if(!(e instanceof Uu)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let a=0;a<this.local.length;a++)if(!this.local[a].eq(e.local[a]))return!1;for(let a=0;a<this.children.length;a+=3)if(this.children[a]!=e.children[a]||this.children[a+1]!=e.children[a+1]||!this.children[a+2].eq(e.children[a+2]))return!1;return!0}locals(e){return Xu(this.localsInner(e))}localsInner(e){if(this==Hu)return Bu;if(e.inlineContent||!this.local.some(Pu.is))return this.local;let a=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof Pu||a.push(this.local[e]);return a}forEachSet(e){e(this)}}Uu.empty=new Uu([],[]),Uu.removeOverlap=Xu;const Hu=Uu.empty;class Gu{constructor(e){this.members=e}map(e,a){const r=this.members.map((r=>r.map(e,a,Vu)));return Gu.from(r)}forChild(e,a){if(a.isLeaf)return Uu.empty;let r=[];for(let n=0;n<this.members.length;n++){let i=this.members[n].forChild(e,a);i!=Hu&&(i instanceof Gu?r=r.concat(i.members):r.push(i))}return Gu.from(r)}eq(e){if(!(e instanceof Gu)||e.members.length!=this.members.length)return!1;for(let a=0;a<this.members.length;a++)if(!this.members[a].eq(e.members[a]))return!1;return!0}locals(e){let a,r=!0;for(let n=0;n<this.members.length;n++){let i=this.members[n].localsInner(e);if(i.length)if(a){r&&(a=a.slice(),r=!1);for(let e=0;e<i.length;e++)a.push(i[e])}else a=i}return a?Xu(r?a:a.sort(Yu)):Bu}static from(e){switch(e.length){case 0:return Hu;case 1:return e[0];default:return new Gu(e.every((e=>e instanceof Uu))?e:e.reduce(((e,a)=>e.concat(a instanceof Uu?a:a.members)),[]))}}forEachSet(e){for(let a=0;a<this.members.length;a++)this.members[a].forEachSet(e)}}function Wu(e,a){if(!a||!e.length)return e;let r=[];for(let n=0;n<e.length;n++){let i=e[n];r.push(new Lu(i.from+a,i.to+a,i.type))}return r}function Zu(e,a,r){if(a.isLeaf)return null;let n=r+a.nodeSize,i=null;for(let a,t=0;t<e.length;t++)(a=e[t])&&a.from>r&&a.to<n&&((i||(i=[])).push(a),e[t]=null);return i}function Ku(e){let a=[];for(let r=0;r<e.length;r++)null!=e[r]&&a.push(e[r]);return a}function Ju(e,a,r,n){let i=[],t=!1;a.forEach(((a,o)=>{let s=Zu(e,a,o+r);if(s){t=!0;let e=Ju(s,a,r+o+1,n);e!=Hu&&i.push(o,o+a.nodeSize,e)}}));let o=Wu(t?Ku(e):e,-r).sort(Yu);for(let e=0;e<o.length;e++)o[e].type.valid(a,o[e])||(n.onRemove&&n.onRemove(o[e].spec),o.splice(e--,1));return o.length||i.length?new Uu(o,i):Hu}function Yu(e,a){return e.from-a.from||e.to-a.to}function Xu(e){let a=e;for(let r=0;r<a.length-1;r++){let n=a[r];if(n.from!=n.to)for(let i=r+1;i<a.length;i++){let t=a[i];if(t.from!=n.from){t.from<n.to&&(a==e&&(a=e.slice()),a[r]=n.copy(n.from,t.from),Qu(a,i,n.copy(t.from,n.to)));break}t.to!=n.to&&(a==e&&(a=e.slice()),a[i]=t.copy(t.from,n.to),Qu(a,i+1,t.copy(n.to,t.to)))}}return a}function Qu(e,a,r){for(;a<e.length&&Yu(r,e[a])>0;)a++;e.splice(a,0,r)}function eh(e,a){let{$cursor:r}=e.selection;return!r||(a?!a.endOfTextblock("backward",e):r.parentOffset>0)?null:r}function ah(e,a,r){let n=a.nodeBefore,i=a.pos-1;for(;!n.isTextblock;i--){if(n.type.spec.isolating)return!1;let e=n.lastChild;if(!e)return!1;n=e}let t=a.nodeAfter,o=a.pos+1;for(;!t.isTextblock;o++){if(t.type.spec.isolating)return!1;let e=t.firstChild;if(!e)return!1;t=e}let s=Oc(e.doc,i,o,sl.empty);if(!s||s.from!=i||s instanceof wc&&s.slice.size>=o-i)return!1;if(r){let a=e.tr.step(s);a.setSelection(Wc.create(a.doc,i)),r(a.scrollIntoView())}return!0}function rh(e,a,r=!1){for(let n=e;n;n="start"==a?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)return!1}return!1}function nh(e){if(!e.parent.type.spec.isolating)for(let a=e.depth-1;a>=0;a--){if(e.index(a)>0)return e.doc.resolve(e.before(a+1));if(e.node(a).type.spec.isolating)break}return null}function ih(e,a){let{$cursor:r}=e.selection;return!r||(a?!a.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)?null:r}function th(e){if(!e.parent.type.spec.isolating)for(let a=e.depth-1;a>=0;a--){let r=e.node(a);if(e.index(a)+1<r.childCount)return e.doc.resolve(e.after(a+1));if(r.type.spec.isolating)break}return null}function oh(e){for(let a=0;a<e.edgeCount;a++){let{type:r}=e.edge(a);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}function sh(e,a,r,n){let i,t,o=a.nodeBefore,s=a.nodeAfter,l=o.type.spec.isolating||s.type.spec.isolating;if(!l&&function(e,a,r){let n=a.nodeBefore,i=a.nodeAfter,t=a.index();return!(!(n&&i&&n.type.compatibleContent(i.type))||(!n.content.size&&a.parent.canReplace(t-1,t)?(r&&r(e.tr.delete(a.pos-n.nodeSize,a.pos).scrollIntoView()),0):!a.parent.canReplace(t,t+1)||!i.isTextblock&&!Sc(e.doc,a.pos)||(r&&r(e.tr.join(a.pos).scrollIntoView()),0)))}(e,a,r))return!0;let c=!l&&a.parent.canReplace(a.index(),a.index()+1);if(c&&(i=(t=o.contentMatchAt(o.childCount)).findWrapping(s.type))&&t.matchType(i[0]||s.type).validEnd){if(r){let n=a.pos+s.nodeSize,t=al.empty;for(let e=i.length-1;e>=0;e--)t=al.from(i[e].create(null,t));t=al.from(o.copy(t));let l=e.tr.step(new zc(a.pos-1,n,a.pos,n,new sl(t,1,0),i.length,!0)),c=l.doc.resolve(n+2*i.length);c.nodeAfter&&c.nodeAfter.type==o.type&&Sc(l.doc,c.pos)&&l.join(c.pos),r(l.scrollIntoView())}return!0}let d=s.type.spec.isolating||n>0&&l?null:Vc.findFrom(a,1),u=d&&d.$from.blockRange(d.$to),h=u&&qc(u);if(null!=h&&h>=a.depth)return r&&r(e.tr.lift(u,h).scrollIntoView()),!0;if(c&&rh(s,"start",!0)&&rh(o,"end")){let n=o,i=[];for(;i.push(n),!n.isTextblock;)n=n.lastChild;let t=s,l=1;for(;!t.isTextblock;t=t.firstChild)l++;if(n.canReplace(n.childCount,n.childCount,t.content)){if(r){let n=al.empty;for(let e=i.length-1;e>=0;e--)n=al.from(i[e].copy(n));r(e.tr.step(new zc(a.pos-i.length,a.pos+s.nodeSize,a.pos+l,a.pos+s.nodeSize-l,new sl(n,i.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function lh(e){return function(a,r){let n=a.selection,i=e<0?n.$from:n.$to,t=i.depth;for(;i.node(t).isInline;){if(!t)return!1;t--}return!!i.node(t).isTextblock&&(r&&r(a.tr.setSelection(Wc.create(a.doc,e<0?i.start(t):i.end(t)))),!0)}}const ch=lh(-1),dh=lh(1);function uh(e,a=null){return function(r,n){let i=!1;for(let n=0;n<r.selection.ranges.length&&!i;n++){let{$from:{pos:t},$to:{pos:o}}=r.selection.ranges[n];r.doc.nodesBetween(t,o,((n,t)=>{if(i)return!1;if(n.isTextblock&&!n.hasMarkup(e,a))if(n.type==e)i=!0;else{let a=r.doc.resolve(t),n=a.index();i=a.parent.canReplaceWith(n,n+1,e)}}))}if(!i)return!1;if(n){let i=r.tr;for(let n=0;n<r.selection.ranges.length;n++){let{$from:{pos:t},$to:{pos:o}}=r.selection.ranges[n];i.setBlockType(t,o,e,a)}n(i.scrollIntoView())}return!0}}function hh(e,a=null){return function(r,n){let{$from:i,$to:t}=r.selection,o=i.blockRange(t);if(!o)return!1;let s=n?r.tr:null;return!!function(e,a,r,n=null){let i=!1,t=a,o=a.$from.doc;if(a.depth>=2&&a.$from.node(a.depth-1).type.compatibleContent(r)&&0==a.startIndex){if(0==a.$from.index(a.depth-1))return!1;let e=o.resolve(a.start-2);t=new jl(e,e,a.depth),a.endIndex<a.parent.childCount&&(a=new jl(a.$from,o.resolve(a.$to.end(a.depth)),a.depth)),i=!0}let s=$c(t,r,n,a);if(!s)return!1;e&&function(e,a,r,n,i){let t=al.empty;for(let e=r.length-1;e>=0;e--)t=al.from(r[e].type.create(r[e].attrs,t));e.step(new zc(a.start-(n?2:0),a.end,a.start,a.end,new sl(t,0,0),r.length,!0));let o=0;for(let e=0;e<r.length;e++)r[e].type==i&&(o=e+1);let s=r.length-o,l=a.start+r.length-(n?2:0),c=a.parent;for(let r=a.startIndex,n=a.endIndex,i=!0;r<n;r++,i=!1)!i&&_c(e.doc,l,s)&&(e.split(l,s),l+=2*s),l+=c.child(r).nodeSize}(e,a,s,i,r);return!0}(s,o,e,a)&&(n&&n(s.scrollIntoView()),!0)}}function mh(e){return function(a,r){let{$from:n,$to:i}=a.selection,t=n.blockRange(i,(a=>a.childCount>0&&a.firstChild.type==e));return!!t&&(!r||(n.node(t.depth-1).type==e?function(e,a,r,n){let i=e.tr,t=n.end,o=n.$to.end(n.depth);t<o&&(i.step(new zc(t-1,o,t,o,new sl(al.from(r.create(null,n.parent.copy())),1,0),1,!0)),n=new jl(i.doc.resolve(n.$from.pos),i.doc.resolve(o),n.depth));const s=qc(n);if(null==s)return!1;i.lift(n,s);let l=i.mapping.map(t,-1)-1;Sc(i.doc,l)&&i.join(l);return a(i.scrollIntoView()),!0}(a,r,e,t):function(e,a,r){let n=e.tr,i=r.parent;for(let e=r.end,a=r.endIndex-1,t=r.startIndex;a>t;a--)e-=i.child(a).nodeSize,n.delete(e-1,e+1);let t=n.doc.resolve(r.start),o=t.nodeAfter;if(n.mapping.map(r.end)!=r.start+t.nodeAfter.nodeSize)return!1;let s=0==r.startIndex,l=r.endIndex==i.childCount,c=t.node(-1),d=t.index(-1);if(!c.canReplace(d+(s?0:1),d+1,o.content.append(l?al.empty:al.from(i))))return!1;let u=t.pos,h=u+o.nodeSize;return n.step(new zc(u-(s?1:0),h+(l?1:0),u+1,h-1,new sl((s?al.empty:al.from(i.copy(al.empty))).append(l?al.empty:al.from(i.copy(al.empty))),s?0:1,l?0:1),s?0:1)),a(n.scrollIntoView()),!0}(a,r,t)))}}function gh(e){const{state:a,transaction:r}=e;let{selection:n}=r,{doc:i}=r,{storedMarks:t}=r;return{...a,apply:a.apply.bind(a),applyTransaction:a.applyTransaction.bind(a),plugins:a.plugins,schema:a.schema,reconfigure:a.reconfigure.bind(a),toJSON:a.toJSON.bind(a),get storedMarks(){return t},get selection(){return n},get doc(){return i},get tr(){return n=r.selection,i=r.doc,t=r.storedMarks,r}}}"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform();class ph{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:a,state:r}=this,{view:n}=a,{tr:i}=r,t=this.buildProps(i);return Object.fromEntries(Object.entries(e).map((([e,a])=>[e,(...e)=>{const r=a(...e)(t);return i.getMeta("preventDispatch")||this.hasCustomState||n.dispatch(i),r}])))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,a=!0){const{rawCommands:r,editor:n,state:i}=this,{view:t}=n,o=[],s=!!e,l=e||i.tr,c={...Object.fromEntries(Object.entries(r).map((([e,r])=>[e,(...e)=>{const n=this.buildProps(l,a),i=r(...e)(n);return o.push(i),c}]))),run:()=>(s||!a||l.getMeta("preventDispatch")||this.hasCustomState||t.dispatch(l),o.every((e=>!0===e)))};return c}createCan(e){const{rawCommands:a,state:r}=this,n=!1,i=e||r.tr,t=this.buildProps(i,n),o=Object.fromEntries(Object.entries(a).map((([e,a])=>[e,(...e)=>a(...e)({...t,dispatch:void 0})])));return{...o,chain:()=>this.createChain(i,n)}}buildProps(e,a=!0){const{rawCommands:r,editor:n,state:i}=this,{view:t}=n,o={tr:e,editor:n,view:t,state:gh({state:i,transaction:e}),dispatch:a?()=>{}:void 0,chain:()=>this.createChain(e,a),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map((([e,a])=>[e,(...e)=>a(...e)(o)])))}};return o}}function bh(e,a,r){if(void 0===e.config[a]&&e.parent)return bh(e.parent,a,r);if("function"==typeof e.config[a]){return e.config[a].bind({...r,parent:e.parent?bh(e.parent,a,r):null})}return e.config[a]}function kh(e,a){if("string"==typeof e){if(!a.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return a.nodes[e]}return e}function fh(e,a=void 0,...r){return function(e){return"function"==typeof e}(e)?a?e.bind(a)(...r):e(...r):e}function yh(e,a){const r=rc.fromSchema(a).serializeFragment(e),n=document.implementation.createHTMLDocument().createElement("div");return n.appendChild(r),n.innerHTML}function vh(e){return"Object"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function wh(e,a){const r={...e};return vh(e)&&vh(a)&&Object.keys(a).forEach((n=>{vh(a[n])&&vh(e[n])?r[n]=wh(e[n],a[n]):r[n]=a[n]})),r}class zh{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=fh(bh(this,"addOptions",{name:this.name}))),this.storage=fh(bh(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new zh(e)}configure(e={}){const a=this.extend({...this.config,addOptions:()=>wh(this.options,e)});return a.name=this.name,a.parent=this.parent,a}extend(e={}){const a=new zh(e);return a.parent=this,this.child=a,a.name=e.name?e.name:a.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${a.name}".`),a.options=fh(bh(a,"addOptions",{name:a.name})),a.storage=fh(bh(a,"addStorage",{name:a.name,options:a.options})),a}static handleExit({editor:e,mark:a}){const{tr:r}=e.state,n=e.state.selection.$from;if(n.pos===n.end()){const i=n.marks();if(!!!i.find((e=>(null==e?void 0:e.type.name)===a.name)))return!1;const t=i.find((e=>(null==e?void 0:e.type.name)===a.name));return t&&r.removeStoredMark(t),r.insertText(" ",n.pos),e.view.dispatch(r),!0}return!1}}class jh{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=fh(bh(this,"addOptions",{name:this.name}))),this.storage=fh(bh(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new jh(e)}configure(e={}){const a=this.extend({...this.config,addOptions:()=>wh(this.options,e)});return a.name=this.name,a.parent=this.parent,a}extend(e={}){const a=new jh({...this.config,...e});return a.parent=this,this.child=a,a.name=e.name?e.name:a.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${a.name}".`),a.options=fh(bh(a,"addOptions",{name:a.name})),a.storage=fh(bh(a,"addStorage",{name:a.name,options:a.options})),a}}const xh=jh.create({name:"clipboardTextSerializer",addOptions:()=>({blockSeparator:void 0}),addProseMirrorPlugins(){return[new id({key:new sd("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:a,schema:r}=e,{doc:n,selection:i}=a,{ranges:t}=i,o=Math.min(...t.map((e=>e.$from.pos))),s=Math.max(...t.map((e=>e.$to.pos))),l=function(e){return Object.fromEntries(Object.entries(e.nodes).filter((([,e])=>e.spec.toText)).map((([e,a])=>[e,a.spec.toText])))}(r);return function(e,a,r){const{from:n,to:i}=a,{blockSeparator:t="\n\n",textSerializers:o={}}=r;let s="";return e.nodesBetween(n,i,((e,r,l,c)=>{var d;e.isBlock&&r>n&&(s+=t);const u=null==o?void 0:o[e.type.name];if(u)return l&&(s+=u({node:e,pos:r,parent:l,index:c,range:a})),!1;e.isText&&(s+=null===(d=null==e?void 0:e.text)||void 0===d?void 0:d.slice(Math.max(n,r)-r,i-r))})),s}(n,{from:o,to:s},{...void 0!==this.options.blockSeparator?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}});function qh(e,a,r={strict:!0}){const n=Object.keys(a);return!n.length||n.every((n=>{return r.strict?a[n]===e[n]:(i=a[n],"[object RegExp]"===Object.prototype.toString.call(i)?a[n].test(e[n]):a[n]===e[n]);var i}))}function $h(e,a,r={}){return e.find((e=>e.type===a&&qh(Object.fromEntries(Object.keys(r).map((a=>[a,e.attrs[a]]))),r)))}function Ch(e,a,r={}){return!!$h(e,a,r)}function _h(e,a,r){var n;if(!e||!a)return;let i=e.parent.childAfter(e.parentOffset);if(i.node&&i.node.marks.some((e=>e.type===a))||(i=e.parent.childBefore(e.parentOffset)),!i.node||!i.node.marks.some((e=>e.type===a)))return;r=r||(null===(n=i.node.marks[0])||void 0===n?void 0:n.attrs);if(!$h([...i.node.marks],a,r))return;let t=i.index,o=e.start()+i.offset,s=t+1,l=o+i.node.nodeSize;for(;t>0&&Ch([...e.parent.child(t-1).marks],a,r);)t-=1,o-=e.parent.child(t).nodeSize;for(;s<e.parent.childCount&&Ch([...e.parent.child(s).marks],a,r);)l+=e.parent.child(s).nodeSize,s+=1;return{from:o,to:l}}function Sh(e,a){if("string"==typeof e){if(!a.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return a.marks[e]}return e}function Eh(e){return e instanceof Wc}function Ah(e=0,a=0,r=0){return Math.min(Math.max(e,a),r)}const Oh=e=>{const a=e.childNodes;for(let r=a.length-1;r>=0;r-=1){const n=a[r];3===n.nodeType&&n.nodeValue&&/^(\n\s\s|\n)$/.test(n.nodeValue)?e.removeChild(n):1===n.nodeType&&Oh(n)}return e};function Dh(e){const a=`<body>${e}</body>`,r=(new window.DOMParser).parseFromString(a,"text/html").body;return Oh(r)}function Mh(e,a,r){if(e instanceof ql||e instanceof al)return e;r={slice:!0,parseOptions:{},...r};const n="string"==typeof e;if("object"==typeof e&&null!==e)try{if(Array.isArray(e)&&e.length>0)return al.fromArray(e.map((e=>a.nodeFromJSON(e))));const n=a.nodeFromJSON(e);return r.errorOnInvalidContent&&n.check(),n}catch(n){if(r.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:n});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",n),Mh("",a,r)}if(n){if(r.errorOnInvalidContent){let n=!1,i="";const t=new Ul({topNode:a.spec.topNode,marks:a.spec.marks,nodes:a.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:e=>(n=!0,i="string"==typeof e?e:e.outerHTML,null)}]}})});if(r.slice?Gl.fromSchema(t).parseSlice(Dh(e),r.parseOptions):Gl.fromSchema(t).parse(Dh(e),r.parseOptions),r.errorOnInvalidContent&&n)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${i}`)})}const n=Gl.fromSchema(a);return r.slice?n.parseSlice(Dh(e),r.parseOptions).content:n.parse(Dh(e),r.parseOptions)}return Mh("",a,r)}function Fh(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function Th(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function Nh(e,a,r={}){const{from:n,to:i,empty:t}=e.selection,o=a?kh(a,e.schema):null,s=[];e.doc.nodesBetween(n,i,((e,a)=>{if(e.isText)return;const r=Math.max(n,a),t=Math.min(i,a+e.nodeSize);s.push({node:e,from:r,to:t})}));const l=i-n,c=s.filter((e=>!o||o.name===e.node.type.name)).filter((e=>qh(e.node.attrs,r,{strict:!1})));if(t)return!!c.length;const d=c.reduce(((e,a)=>e+a.to-a.from),0);return d>=l}function Ih(e,a){return a.nodes[e]?"node":a.marks[e]?"mark":null}function Ph(e,a){const r="string"==typeof a?[a]:a;return Object.keys(e).reduce(((a,n)=>(r.includes(n)||(a[n]=e[n]),a)),{})}function Rh(e){return a=>function(e,a){for(let r=e.depth;r>0;r-=1){const n=e.node(r);if(a(n))return{pos:r>0?e.before(r):0,start:e.start(r),depth:r,node:n}}}(a.$from,e)}function Lh(e,a,r){return Object.fromEntries(Object.entries(r).filter((([r])=>{const n=e.find((e=>e.type===a&&e.name===r));return!!n&&n.attribute.keepOnSplit})))}function Bh(e,a){const{nodeExtensions:r}=function(e){return{baseExtensions:e.filter((e=>"extension"===e.type)),nodeExtensions:e.filter((e=>"node"===e.type)),markExtensions:e.filter((e=>"mark"===e.type))}}(a),n=r.find((a=>a.name===e));if(!n)return!1;const i=fh(bh(n,"group",{name:n.name,options:n.options,storage:n.storage}));return"string"==typeof i&&i.split(" ").includes("list")}function Vh(e,{checkChildren:a=!0,ignoreWhitespace:r=!1}={}){var n;if(r){if("hardBreak"===e.type.name)return!0;if(e.isText)return/^\s*$/m.test(null!==(n=e.text)&&void 0!==n?n:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(0===e.content.childCount)return!0;if(a){let n=!0;return e.content.forEach((e=>{!1!==n&&(Vh(e,{ignoreWhitespace:r,checkChildren:a})||(n=!1))})),n}return!1}function Uh(e,a){const r=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(r){const n=r.filter((e=>null==a?void 0:a.includes(e.type.name)));e.tr.ensureMarks(n)}}const Hh=(e,a)=>{const r=Rh((e=>e.type===a))(e.selection);if(!r)return!0;const n=e.doc.resolve(Math.max(0,r.pos-1)).before(r.depth);if(void 0===n)return!0;const i=e.doc.nodeAt(n);return r.node.type!==(null==i?void 0:i.type)||!Sc(e.doc,r.pos)||(e.join(r.pos),!0)},Gh=(e,a)=>{const r=Rh((e=>e.type===a))(e.selection);if(!r)return!0;const n=e.doc.resolve(r.start).after(r.depth);if(void 0===n)return!0;const i=e.doc.nodeAt(n);return r.node.type!==(null==i?void 0:i.type)||!Sc(e.doc,n)||(e.join(n),!0)};var Wh=Object.freeze({__proto__:null,blur:()=>({editor:e,view:a})=>(requestAnimationFrame((()=>{var r;e.isDestroyed||(a.dom.blur(),null===(r=null===window||void 0===window?void 0:window.getSelection())||void 0===r||r.removeAllRanges())})),!0),clearContent:(e=!1)=>({commands:a})=>a.setContent("",e),clearNodes:()=>({state:e,tr:a,dispatch:r})=>{const{selection:n}=a,{ranges:i}=n;return!r||(i.forEach((({$from:r,$to:n})=>{e.doc.nodesBetween(r.pos,n.pos,((e,r)=>{if(e.type.isText)return;const{doc:n,mapping:i}=a,t=n.resolve(i.map(r)),o=n.resolve(i.map(r+e.nodeSize)),s=t.blockRange(o);if(!s)return;const l=qc(s);if(e.type.isTextblock){const{defaultType:e}=t.parent.contentMatchAt(t.index());a.setNodeMarkup(s.start,e)}(l||0===l)&&a.lift(s,l)}))})),!0)},command:e=>a=>e(a),createParagraphNear:()=>({state:e,dispatch:a})=>((e,a)=>{let r=e.selection,{$from:n,$to:i}=r;if(r instanceof Yc||n.parent.inlineContent||i.parent.inlineContent)return!1;let t=oh(i.parent.contentMatchAt(i.indexAfter()));if(!t||!t.isTextblock)return!1;if(a){let r=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,o=e.tr.insert(r,t.createAndFill());o.setSelection(Wc.create(o.doc,r+1)),a(o.scrollIntoView())}return!0})(e,a),cut:(e,a)=>({editor:r,tr:n})=>{const{state:i}=r,t=i.doc.slice(e.from,e.to);n.deleteRange(e.from,e.to);const o=n.mapping.map(a);return n.insert(o,t.content),n.setSelection(new Wc(n.doc.resolve(o-1))),!0},deleteCurrentNode:()=>({tr:e,dispatch:a})=>{const{selection:r}=e,n=r.$anchor.node();if(n.content.size>0)return!1;const i=e.selection.$anchor;for(let r=i.depth;r>0;r-=1){if(i.node(r).type===n.type){if(a){const a=i.before(r),n=i.after(r);e.delete(a,n).scrollIntoView()}return!0}}return!1},deleteNode:e=>({tr:a,state:r,dispatch:n})=>{const i=kh(e,r.schema),t=a.selection.$anchor;for(let e=t.depth;e>0;e-=1){if(t.node(e).type===i){if(n){const r=t.before(e),n=t.after(e);a.delete(r,n).scrollIntoView()}return!0}}return!1},deleteRange:e=>({tr:a,dispatch:r})=>{const{from:n,to:i}=e;return r&&a.delete(n,i),!0},deleteSelection:()=>({state:e,dispatch:a})=>((e,a)=>!e.selection.empty&&(a&&a(e.tr.deleteSelection().scrollIntoView()),!0))(e,a),enter:()=>({commands:e})=>e.keyboardShortcut("Enter"),exitCode:()=>({state:e,dispatch:a})=>((e,a)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let i=r.node(-1),t=r.indexAfter(-1),o=oh(i.contentMatchAt(t));if(!o||!i.canReplaceWith(t,t,o))return!1;if(a){let n=r.after(),i=e.tr.replaceWith(n,n,o.createAndFill());i.setSelection(Vc.near(i.doc.resolve(n),1)),a(i.scrollIntoView())}return!0})(e,a),extendMarkRange:(e,a={})=>({tr:r,state:n,dispatch:i})=>{const t=Sh(e,n.schema),{doc:o,selection:s}=r,{$from:l,from:c,to:d}=s;if(i){const e=_h(l,t,a);if(e&&e.from<=c&&e.to>=d){const a=Wc.create(o,e.from,e.to);r.setSelection(a)}}return!0},first:e=>a=>{const r="function"==typeof e?e(a):e;for(let e=0;e<r.length;e+=1)if(r[e](a))return!0;return!1},focus:(e=null,a={})=>({editor:r,view:n,tr:i,dispatch:t})=>{a={scrollIntoView:!0,...a};const o=()=>{n.dom.focus(),requestAnimationFrame((()=>{r.isDestroyed||(n.focus(),(null==a?void 0:a.scrollIntoView)&&r.commands.scrollIntoView())}))};if(n.hasFocus()&&null===e||!1===e)return!0;if(t&&null===e&&!Eh(r.state.selection))return o(),!0;const s=function(e,a=null){if(!a)return null;const r=Vc.atStart(e),n=Vc.atEnd(e);if("start"===a||!0===a)return r;if("end"===a)return n;const i=r.from,t=n.to;return"all"===a?Wc.create(e,Ah(0,i,t),Ah(e.content.size,i,t)):Wc.create(e,Ah(a,i,t),Ah(a,i,t))}(i.doc,e)||r.state.selection,l=r.state.selection.eq(s);return t&&(l||i.setSelection(s),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},forEach:(e,a)=>r=>e.every(((e,n)=>a(e,{...r,index:n}))),insertContent:(e,a)=>({tr:r,commands:n})=>n.insertContentAt({from:r.selection.from,to:r.selection.to},e,a),insertContentAt:(e,a,r)=>({tr:n,dispatch:i,editor:t})=>{var o;if(i){let i;r={parseOptions:t.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...r};try{i=Mh(a,t.schema,{parseOptions:{preserveWhitespace:"full",...r.parseOptions},errorOnInvalidContent:null!==(o=r.errorOnInvalidContent)&&void 0!==o?o:t.options.enableContentCheck})}catch(e){return t.emit("contentError",{editor:t,error:e,disableCollaboration:()=>{t.storage.collaboration&&(t.storage.collaboration.isDisabled=!0)}}),!1}let{from:s,to:l}="number"==typeof e?{from:e,to:e}:{from:e.from,to:e.to},c=!0,d=!0;if(("type"in i?[i]:i).forEach((e=>{e.check(),c=!!c&&(e.isText&&0===e.marks.length),d=!!d&&e.isBlock})),s===l&&d){const{parent:e}=n.doc.resolve(s);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(s-=1,l+=1)}let u;if(c){if(Array.isArray(a))u=a.map((e=>e.text||"")).join("");else if(a instanceof al){let e="";a.forEach((a=>{a.text&&(e+=a.text)})),u=e}else u="object"==typeof a&&a&&a.text?a.text:a;n.insertText(u,s,l)}else u=i,n.replaceWith(s,l,u);r.updateSelection&&function(e,a,r){const n=e.steps.length-1;if(n<a)return;const i=e.steps[n];if(!(i instanceof wc||i instanceof zc))return;const t=e.mapping.maps[n];let o=0;t.forEach(((e,a,r,n)=>{0===o&&(o=n)})),e.setSelection(Vc.near(e.doc.resolve(o),r))}(n,n.steps.length-1,-1),r.applyInputRules&&n.setMeta("applyInputRules",{from:s,text:u}),r.applyPasteRules&&n.setMeta("applyPasteRules",{from:s,text:u})}return!0},joinBackward:()=>({state:e,dispatch:a})=>((e,a,r)=>{let n=eh(e,r);if(!n)return!1;let i=nh(n);if(!i){let r=n.blockRange(),i=r&&qc(r);return null!=i&&(a&&a(e.tr.lift(r,i).scrollIntoView()),!0)}let t=i.nodeBefore;if(sh(e,i,a,-1))return!0;if(0==n.parent.content.size&&(rh(t,"end")||Kc.isSelectable(t)))for(let r=n.depth;;r--){let o=Oc(e.doc,n.before(r),n.after(r),sl.empty);if(o&&o.slice.size<o.to-o.from){if(a){let r=e.tr.step(o);r.setSelection(rh(t,"end")?Vc.findFrom(r.doc.resolve(r.mapping.map(i.pos,-1)),-1):Kc.create(r.doc,i.pos-t.nodeSize)),a(r.scrollIntoView())}return!0}if(1==r||n.node(r-1).childCount>1)break}return!(!t.isAtom||i.depth!=n.depth-1||(a&&a(e.tr.delete(i.pos-t.nodeSize,i.pos).scrollIntoView()),0))})(e,a),joinDown:()=>({state:e,dispatch:a})=>((e,a)=>{let r,n=e.selection;if(n instanceof Kc){if(n.node.isTextblock||!Sc(e.doc,n.to))return!1;r=n.to}else if(r=Ac(e.doc,n.to,1),null==r)return!1;return a&&a(e.tr.join(r).scrollIntoView()),!0})(e,a),joinForward:()=>({state:e,dispatch:a})=>((e,a,r)=>{let n=ih(e,r);if(!n)return!1;let i=th(n);if(!i)return!1;let t=i.nodeAfter;if(sh(e,i,a,1))return!0;if(0==n.parent.content.size&&(rh(t,"start")||Kc.isSelectable(t))){let r=Oc(e.doc,n.before(),n.after(),sl.empty);if(r&&r.slice.size<r.to-r.from){if(a){let n=e.tr.step(r);n.setSelection(rh(t,"start")?Vc.findFrom(n.doc.resolve(n.mapping.map(i.pos)),1):Kc.create(n.doc,n.mapping.map(i.pos))),a(n.scrollIntoView())}return!0}}return!(!t.isAtom||i.depth!=n.depth-1||(a&&a(e.tr.delete(i.pos,i.pos+t.nodeSize).scrollIntoView()),0))})(e,a),joinItemBackward:()=>({state:e,dispatch:a,tr:r})=>{try{const n=Ac(e.doc,e.selection.$from.pos,-1);return null!=n&&(r.join(n,2),a&&a(r),!0)}catch{return!1}},joinItemForward:()=>({state:e,dispatch:a,tr:r})=>{try{const n=Ac(e.doc,e.selection.$from.pos,1);return null!=n&&(r.join(n,2),a&&a(r),!0)}catch{return!1}},joinTextblockBackward:()=>({state:e,dispatch:a})=>((e,a,r)=>{let n=eh(e,r);if(!n)return!1;let i=nh(n);return!!i&&ah(e,i,a)})(e,a),joinTextblockForward:()=>({state:e,dispatch:a})=>((e,a,r)=>{let n=ih(e,r);if(!n)return!1;let i=th(n);return!!i&&ah(e,i,a)})(e,a),joinUp:()=>({state:e,dispatch:a})=>((e,a)=>{let r,n=e.selection,i=n instanceof Kc;if(i){if(n.node.isTextblock||!Sc(e.doc,n.from))return!1;r=n.from}else if(r=Ac(e.doc,n.from,-1),null==r)return!1;if(a){let n=e.tr.join(r);i&&n.setSelection(Kc.create(n.doc,r-e.doc.resolve(r).nodeBefore.nodeSize)),a(n.scrollIntoView())}return!0})(e,a),keyboardShortcut:e=>({editor:a,view:r,tr:n,dispatch:i})=>{const t=function(e){const a=e.split(/-(?!$)/);let r,n,i,t,o=a[a.length-1];"Space"===o&&(o=" ");for(let e=0;e<a.length-1;e+=1){const o=a[e];if(/^(cmd|meta|m)$/i.test(o))t=!0;else if(/^a(lt)?$/i.test(o))r=!0;else if(/^(c|ctrl|control)$/i.test(o))n=!0;else if(/^s(hift)?$/i.test(o))i=!0;else{if(!/^mod$/i.test(o))throw new Error(`Unrecognized modifier name: ${o}`);Fh()||Th()?t=!0:n=!0}}return r&&(o=`Alt-${o}`),n&&(o=`Ctrl-${o}`),t&&(o=`Meta-${o}`),i&&(o=`Shift-${o}`),o}(e).split(/-(?!$)/),o=t.find((e=>!["Alt","Ctrl","Meta","Shift"].includes(e))),s=new KeyboardEvent("keydown",{key:"Space"===o?" ":o,altKey:t.includes("Alt"),ctrlKey:t.includes("Ctrl"),metaKey:t.includes("Meta"),shiftKey:t.includes("Shift"),bubbles:!0,cancelable:!0}),l=a.captureTransaction((()=>{r.someProp("handleKeyDown",(e=>e(r,s)))}));return null==l||l.steps.forEach((e=>{const a=e.map(n.mapping);a&&i&&n.maybeStep(a)})),!0},lift:(e,a={})=>({state:r,dispatch:n})=>!!Nh(r,kh(e,r.schema),a)&&((e,a)=>{let{$from:r,$to:n}=e.selection,i=r.blockRange(n),t=i&&qc(i);return null!=t&&(a&&a(e.tr.lift(i,t).scrollIntoView()),!0)})(r,n),liftEmptyBlock:()=>({state:e,dispatch:a})=>((e,a)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let n=r.before();if(_c(e.doc,n))return a&&a(e.tr.split(n).scrollIntoView()),!0}let n=r.blockRange(),i=n&&qc(n);return null!=i&&(a&&a(e.tr.lift(n,i).scrollIntoView()),!0)})(e,a),liftListItem:e=>({state:a,dispatch:r})=>mh(kh(e,a.schema))(a,r),newlineInCode:()=>({state:e,dispatch:a})=>((e,a)=>{let{$head:r,$anchor:n}=e.selection;return!(!r.parent.type.spec.code||!r.sameParent(n)||(a&&a(e.tr.insertText("\n").scrollIntoView()),0))})(e,a),resetAttributes:(e,a)=>({tr:r,state:n,dispatch:i})=>{let t=null,o=null;const s=Ih("string"==typeof e?e:e.name,n.schema);return!!s&&("node"===s&&(t=kh(e,n.schema)),"mark"===s&&(o=Sh(e,n.schema)),i&&r.selection.ranges.forEach((e=>{n.doc.nodesBetween(e.$from.pos,e.$to.pos,((e,n)=>{t&&t===e.type&&r.setNodeMarkup(n,void 0,Ph(e.attrs,a)),o&&e.marks.length&&e.marks.forEach((i=>{o===i.type&&r.addMark(n,n+e.nodeSize,o.create(Ph(i.attrs,a)))}))}))})),!0)},scrollIntoView:()=>({tr:e,dispatch:a})=>(a&&e.scrollIntoView(),!0),selectAll:()=>({tr:e,dispatch:a})=>{if(a){const a=new Yc(e.doc);e.setSelection(a)}return!0},selectNodeBackward:()=>({state:e,dispatch:a})=>((e,a,r)=>{let{$head:n,empty:i}=e.selection,t=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;t=nh(n)}let o=t&&t.nodeBefore;return!(!o||!Kc.isSelectable(o)||(a&&a(e.tr.setSelection(Kc.create(e.doc,t.pos-o.nodeSize)).scrollIntoView()),0))})(e,a),selectNodeForward:()=>({state:e,dispatch:a})=>((e,a,r)=>{let{$head:n,empty:i}=e.selection,t=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;t=th(n)}let o=t&&t.nodeAfter;return!(!o||!Kc.isSelectable(o)||(a&&a(e.tr.setSelection(Kc.create(e.doc,t.pos)).scrollIntoView()),0))})(e,a),selectParentNode:()=>({state:e,dispatch:a})=>((e,a)=>{let r,{$from:n,to:i}=e.selection,t=n.sharedDepth(i);return 0!=t&&(r=n.before(t),a&&a(e.tr.setSelection(Kc.create(e.doc,r))),!0)})(e,a),selectTextblockEnd:()=>({state:e,dispatch:a})=>dh(e,a),selectTextblockStart:()=>({state:e,dispatch:a})=>ch(e,a),setContent:(e,a=!1,r={},n={})=>({editor:i,tr:t,dispatch:o,commands:s})=>{var l,c;const{doc:d}=t;if("full"!==r.preserveWhitespace){const s=function(e,a,r={},n={}){return Mh(e,a,{slice:!1,parseOptions:r,errorOnInvalidContent:n.errorOnInvalidContent})}(e,i.schema,r,{errorOnInvalidContent:null!==(l=n.errorOnInvalidContent)&&void 0!==l?l:i.options.enableContentCheck});return o&&t.replaceWith(0,d.content.size,s).setMeta("preventUpdate",!a),!0}return o&&t.setMeta("preventUpdate",!a),s.insertContentAt({from:0,to:d.content.size},e,{parseOptions:r,errorOnInvalidContent:null!==(c=n.errorOnInvalidContent)&&void 0!==c?c:i.options.enableContentCheck})},setMark:(e,a={})=>({tr:r,state:n,dispatch:i})=>{const{selection:t}=r,{empty:o,ranges:s}=t,l=Sh(e,n.schema);if(i)if(o){const e=function(e,a){const r=Sh(a,e.schema),{from:n,to:i,empty:t}=e.selection,o=[];t?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(n,i,(e=>{o.push(...e.marks)}));const s=o.find((e=>e.type.name===r.name));return s?{...s.attrs}:{}}(n,l);r.addStoredMark(l.create({...e,...a}))}else s.forEach((e=>{const i=e.$from.pos,t=e.$to.pos;n.doc.nodesBetween(i,t,((e,n)=>{const o=Math.max(n,i),s=Math.min(n+e.nodeSize,t);e.marks.find((e=>e.type===l))?e.marks.forEach((e=>{l===e.type&&r.addMark(o,s,l.create({...e.attrs,...a}))})):r.addMark(o,s,l.create(a))}))}));return function(e,a,r){var n;const{selection:i}=a;let t=null;if(Eh(i)&&(t=i.$cursor),t){const a=null!==(n=e.storedMarks)&&void 0!==n?n:t.marks();return!!r.isInSet(a)||!a.some((e=>e.type.excludes(r)))}const{ranges:o}=i;return o.some((({$from:a,$to:n})=>{let i=0===a.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(r);return e.doc.nodesBetween(a.pos,n.pos,((e,a,n)=>{if(i)return!1;if(e.isInline){const a=!n||n.type.allowsMarkType(r),t=!!r.isInSet(e.marks)||!e.marks.some((e=>e.type.excludes(r)));i=a&&t}return!i})),i}))}(n,r,l)},setMeta:(e,a)=>({tr:r})=>(r.setMeta(e,a),!0),setNode:(e,a={})=>({state:r,dispatch:n,chain:i})=>{const t=kh(e,r.schema);let o;return r.selection.$anchor.sameParent(r.selection.$head)&&(o=r.selection.$anchor.parent.attrs),t.isTextblock?i().command((({commands:e})=>!!uh(t,{...o,...a})(r)||e.clearNodes())).command((({state:e})=>uh(t,{...o,...a})(e,n))).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:e=>({tr:a,dispatch:r})=>{if(r){const{doc:r}=a,n=Ah(e,0,r.content.size),i=Kc.create(r,n);a.setSelection(i)}return!0},setTextSelection:e=>({tr:a,dispatch:r})=>{if(r){const{doc:r}=a,{from:n,to:i}="number"==typeof e?{from:e,to:e}:e,t=Wc.atStart(r).from,o=Wc.atEnd(r).to,s=Ah(n,t,o),l=Ah(i,t,o),c=Wc.create(r,s,l);a.setSelection(c)}return!0},sinkListItem:e=>({state:a,dispatch:r})=>{const n=kh(e,a.schema);return(i=n,function(e,a){let{$from:r,$to:n}=e.selection,t=r.blockRange(n,(e=>e.childCount>0&&e.firstChild.type==i));if(!t)return!1;let o=t.startIndex;if(0==o)return!1;let s=t.parent,l=s.child(o-1);if(l.type!=i)return!1;if(a){let r=l.lastChild&&l.lastChild.type==s.type,n=al.from(r?i.create():null),o=new sl(al.from(i.create(null,al.from(s.type.create(null,n)))),r?3:1,0),c=t.start,d=t.end;a(e.tr.step(new zc(c-(r?3:1),d,c,d,o,1,!0)).scrollIntoView())}return!0})(a,r);var i},splitBlock:({keepMarks:e=!0}={})=>({tr:a,state:r,dispatch:n,editor:i})=>{const{selection:t,doc:o}=a,{$from:s,$to:l}=t,c=Lh(i.extensionManager.attributes,s.node().type.name,s.node().attrs);if(t instanceof Kc&&t.node.isBlock)return!(!s.parentOffset||!_c(o,s.pos))&&(n&&(e&&Uh(r,i.extensionManager.splittableMarks),a.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,u=0===s.depth?void 0:function(e){for(let a=0;a<e.edgeCount;a+=1){const{type:r}=e.edge(a);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}(s.node(-1).contentMatchAt(s.indexAfter(-1)));let h=d&&u?[{type:u,attrs:c}]:void 0,m=_c(a.doc,a.mapping.map(s.pos),1,h);if(h||m||!_c(a.doc,a.mapping.map(s.pos),1,u?[{type:u}]:void 0)||(m=!0,h=u?[{type:u,attrs:c}]:void 0),n){if(m&&(t instanceof Wc&&a.deleteSelection(),a.split(a.mapping.map(s.pos),1,h),u&&!d&&!s.parentOffset&&s.parent.type!==u)){const e=a.mapping.map(s.before()),r=a.doc.resolve(e);s.node(-1).canReplaceWith(r.index(),r.index()+1,u)&&a.setNodeMarkup(a.mapping.map(s.before()),u)}e&&Uh(r,i.extensionManager.splittableMarks),a.scrollIntoView()}return m},splitListItem:(e,a={})=>({tr:r,state:n,dispatch:i,editor:t})=>{var o;const s=kh(e,n.schema),{$from:l,$to:c}=n.selection,d=n.selection.node;if(d&&d.isBlock||l.depth<2||!l.sameParent(c))return!1;const u=l.node(-1);if(u.type!==s)return!1;const h=t.extensionManager.attributes;if(0===l.parent.content.size&&l.node(-1).childCount===l.indexAfter(-1)){if(2===l.depth||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(i){let e=al.empty;const n=l.index(-1)?1:l.index(-2)?2:3;for(let a=l.depth-n;a>=l.depth-3;a-=1)e=al.from(l.node(a).copy(e));const i=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,t={...Lh(h,l.node().type.name,l.node().attrs),...a},c=(null===(o=s.contentMatch.defaultType)||void 0===o?void 0:o.createAndFill(t))||void 0;e=e.append(al.from(s.createAndFill(null,c)||void 0));const d=l.before(l.depth-(n-1));r.replace(d,l.after(-i),new sl(e,4-n,0));let u=-1;r.doc.nodesBetween(d,r.doc.content.size,((e,a)=>{if(u>-1)return!1;e.isTextblock&&0===e.content.size&&(u=a+1)})),u>-1&&r.setSelection(Wc.near(r.doc.resolve(u))),r.scrollIntoView()}return!0}const m=c.pos===l.end()?u.contentMatchAt(0).defaultType:null,g={...Lh(h,u.type.name,u.attrs),...a},p={...Lh(h,l.node().type.name,l.node().attrs),...a};r.delete(l.pos,c.pos);const b=m?[{type:s,attrs:g},{type:m,attrs:p}]:[{type:s,attrs:g}];if(!_c(r.doc,l.pos,2))return!1;if(i){const{selection:e,storedMarks:a}=n,{splittableMarks:o}=t.extensionManager,s=a||e.$to.parentOffset&&e.$from.marks();if(r.split(l.pos,2,b).scrollIntoView(),!s||!i)return!0;const c=s.filter((e=>o.includes(e.type.name)));r.ensureMarks(c)}return!0},toggleList:(e,a,r,n={})=>({editor:i,tr:t,state:o,dispatch:s,chain:l,commands:c,can:d})=>{const{extensions:u,splittableMarks:h}=i.extensionManager,m=kh(e,o.schema),g=kh(a,o.schema),{selection:p,storedMarks:b}=o,{$from:k,$to:f}=p,y=k.blockRange(f),v=b||p.$to.parentOffset&&p.$from.marks();if(!y)return!1;const w=Rh((e=>Bh(e.type.name,u)))(p);if(y.depth>=1&&w&&y.depth-w.depth<=1){if(w.node.type===m)return c.liftListItem(g);if(Bh(w.node.type.name,u)&&m.validContent(w.node.content)&&s)return l().command((()=>(t.setNodeMarkup(w.pos,m),!0))).command((()=>Hh(t,m))).command((()=>Gh(t,m))).run()}return r&&v&&s?l().command((()=>{const e=d().wrapInList(m,n),a=v.filter((e=>h.includes(e.type.name)));return t.ensureMarks(a),!!e||c.clearNodes()})).wrapInList(m,n).command((()=>Hh(t,m))).command((()=>Gh(t,m))).run():l().command((()=>!!d().wrapInList(m,n)||c.clearNodes())).wrapInList(m,n).command((()=>Hh(t,m))).command((()=>Gh(t,m))).run()},toggleMark:(e,a={},r={})=>({state:n,commands:i})=>{const{extendEmptyMarkRange:t=!1}=r,o=Sh(e,n.schema),s=function(e,a,r={}){const{empty:n,ranges:i}=e.selection,t=a?Sh(a,e.schema):null;if(n)return!!(e.storedMarks||e.selection.$from.marks()).filter((e=>!t||t.name===e.type.name)).find((e=>qh(e.attrs,r,{strict:!1})));let o=0;const s=[];if(i.forEach((({$from:a,$to:r})=>{const n=a.pos,i=r.pos;e.doc.nodesBetween(n,i,((e,a)=>{if(!e.isText&&!e.marks.length)return;const r=Math.max(n,a),t=Math.min(i,a+e.nodeSize);o+=t-r,s.push(...e.marks.map((e=>({mark:e,from:r,to:t}))))}))})),0===o)return!1;const l=s.filter((e=>!t||t.name===e.mark.type.name)).filter((e=>qh(e.mark.attrs,r,{strict:!1}))).reduce(((e,a)=>e+a.to-a.from),0),c=s.filter((e=>!t||e.mark.type!==t&&e.mark.type.excludes(t))).reduce(((e,a)=>e+a.to-a.from),0);return(l>0?l+c:l)>=o}(n,o,a);return s?i.unsetMark(o,{extendEmptyMarkRange:t}):i.setMark(o,a)},toggleNode:(e,a,r={})=>({state:n,commands:i})=>{const t=kh(e,n.schema),o=kh(a,n.schema),s=Nh(n,t,r);let l;return n.selection.$anchor.sameParent(n.selection.$head)&&(l=n.selection.$anchor.parent.attrs),s?i.setNode(o,l):i.setNode(t,{...l,...r})},toggleWrap:(e,a={})=>({state:r,commands:n})=>{const i=kh(e,r.schema);return Nh(r,i,a)?n.lift(i):n.wrapIn(i,a)},undoInputRule:()=>({state:e,dispatch:a})=>{const r=e.plugins;for(let n=0;n<r.length;n+=1){const i=r[n];let t;if(i.spec.isInputRules&&(t=i.getState(e))){if(a){const a=e.tr,r=t.transform;for(let e=r.steps.length-1;e>=0;e-=1)a.step(r.steps[e].invert(r.docs[e]));if(t.text){const r=a.doc.resolve(t.from).marks();a.replaceWith(t.from,t.to,e.schema.text(t.text,r))}else a.delete(t.from,t.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:a})=>{const{selection:r}=e,{empty:n,ranges:i}=r;return n||a&&i.forEach((a=>{e.removeMark(a.$from.pos,a.$to.pos)})),!0},unsetMark:(e,a={})=>({tr:r,state:n,dispatch:i})=>{var t;const{extendEmptyMarkRange:o=!1}=a,{selection:s}=r,l=Sh(e,n.schema),{$from:c,empty:d,ranges:u}=s;if(!i)return!0;if(d&&o){let{from:e,to:a}=s;const n=null===(t=c.marks().find((e=>e.type===l)))||void 0===t?void 0:t.attrs,i=_h(c,l,n);i&&(e=i.from,a=i.to),r.removeMark(e,a,l)}else u.forEach((e=>{r.removeMark(e.$from.pos,e.$to.pos,l)}));return r.removeStoredMark(l),!0},updateAttributes:(e,a={})=>({tr:r,state:n,dispatch:i})=>{let t=null,o=null;const s=Ih("string"==typeof e?e:e.name,n.schema);return!!s&&("node"===s&&(t=kh(e,n.schema)),"mark"===s&&(o=Sh(e,n.schema)),i&&r.selection.ranges.forEach((e=>{const i=e.$from.pos,s=e.$to.pos;let l,c,d,u;r.selection.empty?n.doc.nodesBetween(i,s,((e,a)=>{t&&t===e.type&&(d=Math.max(a,i),u=Math.min(a+e.nodeSize,s),l=a,c=e)})):n.doc.nodesBetween(i,s,((e,n)=>{n<i&&t&&t===e.type&&(d=Math.max(n,i),u=Math.min(n+e.nodeSize,s),l=n,c=e),n>=i&&n<=s&&(t&&t===e.type&&r.setNodeMarkup(n,void 0,{...e.attrs,...a}),o&&e.marks.length&&e.marks.forEach((t=>{if(o===t.type){const l=Math.max(n,i),c=Math.min(n+e.nodeSize,s);r.addMark(l,c,o.create({...t.attrs,...a}))}})))})),c&&(void 0!==l&&r.setNodeMarkup(l,void 0,{...c.attrs,...a}),o&&c.marks.length&&c.marks.forEach((e=>{o===e.type&&r.addMark(d,u,o.create({...e.attrs,...a}))})))})),!0)},wrapIn:(e,a={})=>({state:r,dispatch:n})=>function(e,a=null){return function(r,n){let{$from:i,$to:t}=r.selection,o=i.blockRange(t),s=o&&$c(o,e,a);return!!s&&(n&&n(r.tr.wrap(o,s).scrollIntoView()),!0)}}(kh(e,r.schema),a)(r,n),wrapInList:(e,a={})=>({state:r,dispatch:n})=>hh(kh(e,r.schema),a)(r,n)});const Zh=jh.create({name:"commands",addCommands:()=>({...Wh})}),Kh=jh.create({name:"drop",addProseMirrorPlugins(){return[new id({key:new sd("tiptapDrop"),props:{handleDrop:(e,a,r,n)=>{this.editor.emit("drop",{editor:this.editor,event:a,slice:r,moved:n})}}})]}}),Jh=jh.create({name:"editable",addProseMirrorPlugins(){return[new id({key:new sd("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Yh=jh.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new id({key:new sd("focusEvents"),props:{handleDOMEvents:{focus:(a,r)=>{e.isFocused=!0;const n=e.state.tr.setMeta("focus",{event:r}).setMeta("addToHistory",!1);return a.dispatch(n),!1},blur:(a,r)=>{e.isFocused=!1;const n=e.state.tr.setMeta("blur",{event:r}).setMeta("addToHistory",!1);return a.dispatch(n),!1}}}})]}}),Xh=jh.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first((({commands:e})=>[()=>e.undoInputRule(),()=>e.command((({tr:a})=>{const{selection:r,doc:n}=a,{empty:i,$anchor:t}=r,{pos:o,parent:s}=t,l=t.parent.isTextblock&&o>0?a.doc.resolve(o-1):t,c=l.parent.type.spec.isolating,d=t.pos-t.parentOffset,u=c&&1===l.parent.childCount?d===t.pos:Vc.atStart(n).from===o;return!(!i||!s.type.isTextblock||s.textContent.length||!u||u&&"paragraph"===t.parent.type.name)&&e.clearNodes()})),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()])),a=()=>this.editor.commands.first((({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()])),r={Enter:()=>this.editor.commands.first((({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()])),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:a,"Mod-Delete":a,"Mod-a":()=>this.editor.commands.selectAll()},n={...r},i={...r,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":a,"Ctrl-Alt-Backspace":a,"Alt-Delete":a,"Alt-d":a,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Fh()||Th()?i:n},addProseMirrorPlugins(){return[new id({key:new sd("clearDocument"),appendTransaction:(e,a,r)=>{const n=e.some((e=>e.docChanged))&&!a.doc.eq(r.doc),i=e.some((e=>e.getMeta("preventClearDocument")));if(!n||i)return;const{empty:t,from:o,to:s}=a.selection,l=Vc.atStart(a.doc).from,c=Vc.atEnd(a.doc).to;if(t||!(o===l&&s===c))return;if(!Vh(r.doc))return;const d=r.tr,u=gh({state:r,transaction:d}),{commands:h}=new ph({editor:this.editor,state:u});return h.clearNodes(),d.steps.length?d:void 0}})]}}),Qh=jh.create({name:"paste",addProseMirrorPlugins(){return[new id({key:new sd("tiptapPaste"),props:{handlePaste:(e,a,r)=>{this.editor.emit("paste",{editor:this.editor,event:a,slice:r})}}})]}}),em=jh.create({name:"tabindex",addProseMirrorPlugins(){return[new id({key:new sd("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});var am=Object.freeze({__proto__:null,ClipboardTextSerializer:xh,Commands:Zh,Drop:Kh,Editable:Jh,FocusEvents:Yh,Keymap:Xh,Paste:Qh,Tabindex:em});let rm=class e{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=fh(bh(this,"addOptions",{name:this.name}))),this.storage=fh(bh(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(a={}){return new e(a)}configure(e={}){const a=this.extend({...this.config,addOptions:()=>wh(this.options,e)});return a.name=this.name,a.parent=this.parent,a}extend(a={}){const r=new e(a);return r.parent=this,this.child=r,r.name=a.name?a.name:r.parent.name,a.defaultOptions&&Object.keys(a.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${r.name}".`),r.options=fh(bh(r,"addOptions",{name:r.name})),r.storage=fh(bh(r,"addStorage",{name:r.name,options:r.options})),r}};const nm=jh.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new id({key:new sd("placeholder"),props:{decorations:({doc:e,selection:a})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:n}=a,i=[];if(!r)return null;const t=this.editor.isEmpty;return e.descendants(((e,a)=>{const r=n>=a&&n<=a+e.nodeSize,o=!e.isLeaf&&Vh(e);if((r||!this.options.showOnlyCurrent)&&o){const n=[this.options.emptyNodeClass];t&&n.push(this.options.emptyEditorClass);const o=Lu.node(a,a+e.nodeSize,{class:n.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:e,pos:a,hasAnchor:r}):this.options.placeholder});i.push(o)}return this.options.includeChildren})),Uu.create(e,i)}}})]}}),im={};function tm(e,a){"string"!=typeof a&&(a=tm.defaultChars);const r=function(e){let a=im[e];if(a)return a;a=im[e]=[];for(let e=0;e<128;e++){const r=String.fromCharCode(e);a.push(r)}for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);a[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return a}(a);return e.replace(/(%[a-f0-9]{2})+/gi,(function(e){let a="";for(let n=0,i=e.length;n<i;n+=3){const t=parseInt(e.slice(n+1,n+3),16);if(t<128)a+=r[t];else{if(192==(224&t)&&n+3<i){const r=parseInt(e.slice(n+4,n+6),16);if(128==(192&r)){const e=t<<6&1984|63&r;a+=e<128?"��":String.fromCharCode(e),n+=3;continue}}if(224==(240&t)&&n+6<i){const r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16);if(128==(192&r)&&128==(192&i)){const e=t<<12&61440|r<<6&4032|63&i;a+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),n+=6;continue}}if(240==(248&t)&&n+9<i){const r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16),o=parseInt(e.slice(n+10,n+12),16);if(128==(192&r)&&128==(192&i)&&128==(192&o)){let e=t<<18&1835008|r<<12&258048|i<<6&4032|63&o;e<65536||e>1114111?a+="����":(e-=65536,a+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),n+=9;continue}}a+="�"}}return a}))}tm.defaultChars=";/?:@&=+$,#",tm.componentChars="";const om={};function sm(e,a,r){"string"!=typeof a&&(r=a,a=sm.defaultChars),void 0===r&&(r=!0);const n=function(e){let a=om[e];if(a)return a;a=om[e]=[];for(let e=0;e<128;e++){const r=String.fromCharCode(e);/^[0-9a-z]$/i.test(r)?a.push(r):a.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)a[e.charCodeAt(r)]=e[r];return a}(a);let i="";for(let a=0,t=e.length;a<t;a++){const o=e.charCodeAt(a);if(r&&37===o&&a+2<t&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3)))i+=e.slice(a,a+3),a+=2;else if(o<128)i+=n[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&a+1<t){const r=e.charCodeAt(a+1);if(r>=56320&&r<=57343){i+=encodeURIComponent(e[a]+e[a+1]),a++;continue}}i+="%EF%BF%BD"}else i+=encodeURIComponent(e[a])}return i}function lm(e){let a="";return a+=e.protocol||"",a+=e.slashes?"//":"",a+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?a+="["+e.hostname+"]":a+=e.hostname||"",a+=e.port?":"+e.port:"",a+=e.pathname||"",a+=e.search||"",a+=e.hash||"",a}function cm(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}sm.defaultChars=";/?:@&=+$,-_.!~*'()#",sm.componentChars="-_.!~*'()";const dm=/^([a-z0-9.+-]+:)/i,um=/:[0-9]*$/,hm=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,mm=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),gm=["'"].concat(mm),pm=["%","/","?",";","#"].concat(gm),bm=["/","?","#"],km=/^[+a-z0-9A-Z_-]{0,63}$/,fm=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ym={javascript:!0,"javascript:":!0},vm={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function wm(e,a){if(e&&e instanceof cm)return e;const r=new cm;return r.parse(e,a),r}cm.prototype.parse=function(e,a){let r,n,i,t=e;if(t=t.trim(),!a&&1===e.split("#").length){const e=hm.exec(t);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=dm.exec(t);if(o&&(o=o[0],r=o.toLowerCase(),this.protocol=o,t=t.substr(o.length)),(a||o||t.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===t.substr(0,2),!i||o&&ym[o]||(t=t.substr(2),this.slashes=!0)),!ym[o]&&(i||o&&!vm[o])){let e,a,r=-1;for(let e=0;e<bm.length;e++)n=t.indexOf(bm[e]),-1!==n&&(-1===r||n<r)&&(r=n);a=-1===r?t.lastIndexOf("@"):t.lastIndexOf("@",r),-1!==a&&(e=t.slice(0,a),t=t.slice(a+1),this.auth=e),r=-1;for(let e=0;e<pm.length;e++)n=t.indexOf(pm[e]),-1!==n&&(-1===r||n<r)&&(r=n);-1===r&&(r=t.length),":"===t[r-1]&&r--;const i=t.slice(0,r);t=t.slice(r),this.parseHost(i),this.hostname=this.hostname||"";const o="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!o){const e=this.hostname.split(/\./);for(let a=0,r=e.length;a<r;a++){const r=e[a];if(r&&!r.match(km)){let n="";for(let e=0,a=r.length;e<a;e++)r.charCodeAt(e)>127?n+="x":n+=r[e];if(!n.match(km)){const n=e.slice(0,a),i=e.slice(a+1),o=r.match(fm);o&&(n.push(o[1]),i.unshift(o[2])),i.length&&(t=i.join(".")+t),this.hostname=n.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=t.indexOf("#");-1!==s&&(this.hash=t.substr(s),t=t.slice(0,s));const l=t.indexOf("?");return-1!==l&&(this.search=t.substr(l),t=t.slice(0,l)),t&&(this.pathname=t),vm[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},cm.prototype.parseHost=function(e){let a=um.exec(e);a&&(a=a[0],":"!==a&&(this.port=a.substr(1)),e=e.substr(0,e.length-a.length)),e&&(this.hostname=e)};var zm,jm=Object.freeze({__proto__:null,decode:tm,encode:sm,format:lm,parse:wm}),xm=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qm=/[\0-\x1F\x7F-\x9F]/,$m=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Cm=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,_m=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Sm=Object.freeze({__proto__:null,Any:xm,Cc:qm,Cf:/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P:$m,S:Cm,Z:_m}),Em=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),Am=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));const Om=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Dm=null!==(zm=String.fromCodePoint)&&void 0!==zm?zm:function(e){let a="";return e>65535&&(e-=65536,a+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),a+=String.fromCharCode(e),a};var Mm;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(Mm||(Mm={}));var Fm,Tm,Nm;function Im(e){return e>=Mm.ZERO&&e<=Mm.NINE}function Pm(e){return e>=Mm.UPPER_A&&e<=Mm.UPPER_F||e>=Mm.LOWER_A&&e<=Mm.LOWER_F}function Rm(e){return e===Mm.EQUALS||function(e){return e>=Mm.UPPER_A&&e<=Mm.UPPER_Z||e>=Mm.LOWER_A&&e<=Mm.LOWER_Z||Im(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(Fm||(Fm={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(Tm||(Tm={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(Nm||(Nm={}));class Lm{constructor(e,a,r){this.decodeTree=e,this.emitCodePoint=a,this.errors=r,this.state=Tm.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Nm.Strict}startEntity(e){this.decodeMode=e,this.state=Tm.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,a){switch(this.state){case Tm.EntityStart:return e.charCodeAt(a)===Mm.NUM?(this.state=Tm.NumericStart,this.consumed+=1,this.stateNumericStart(e,a+1)):(this.state=Tm.NamedEntity,this.stateNamedEntity(e,a));case Tm.NumericStart:return this.stateNumericStart(e,a);case Tm.NumericDecimal:return this.stateNumericDecimal(e,a);case Tm.NumericHex:return this.stateNumericHex(e,a);case Tm.NamedEntity:return this.stateNamedEntity(e,a)}}stateNumericStart(e,a){return a>=e.length?-1:(32|e.charCodeAt(a))===Mm.LOWER_X?(this.state=Tm.NumericHex,this.consumed+=1,this.stateNumericHex(e,a+1)):(this.state=Tm.NumericDecimal,this.stateNumericDecimal(e,a))}addToNumericResult(e,a,r,n){if(a!==r){const i=r-a;this.result=this.result*Math.pow(n,i)+parseInt(e.substr(a,i),n),this.consumed+=i}}stateNumericHex(e,a){const r=a;for(;a<e.length;){const n=e.charCodeAt(a);if(!Im(n)&&!Pm(n))return this.addToNumericResult(e,r,a,16),this.emitNumericEntity(n,3);a+=1}return this.addToNumericResult(e,r,a,16),-1}stateNumericDecimal(e,a){const r=a;for(;a<e.length;){const n=e.charCodeAt(a);if(!Im(n))return this.addToNumericResult(e,r,a,10),this.emitNumericEntity(n,2);a+=1}return this.addToNumericResult(e,r,a,10),-1}emitNumericEntity(e,a){var r;if(this.consumed<=a)return null===(r=this.errors)||void 0===r||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Mm.SEMI)this.consumed+=1;else if(this.decodeMode===Nm.Strict)return 0;return this.emitCodePoint(function(e){var a;return e>=55296&&e<=57343||e>1114111?65533:null!==(a=Om.get(e))&&void 0!==a?a:e}(this.result),this.consumed),this.errors&&(e!==Mm.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,a){const{decodeTree:r}=this;let n=r[this.treeIndex],i=(n&Fm.VALUE_LENGTH)>>14;for(;a<e.length;a++,this.excess++){const t=e.charCodeAt(a);if(this.treeIndex=Vm(r,n,this.treeIndex+Math.max(1,i),t),this.treeIndex<0)return 0===this.result||this.decodeMode===Nm.Attribute&&(0===i||Rm(t))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],i=(n&Fm.VALUE_LENGTH)>>14,0!==i){if(t===Mm.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Nm.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:a,decodeTree:r}=this,n=(r[a]&Fm.VALUE_LENGTH)>>14;return this.emitNamedEntityData(a,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,a,r){const{decodeTree:n}=this;return this.emitCodePoint(1===a?n[e]&~Fm.VALUE_LENGTH:n[e+1],r),3===a&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case Tm.NamedEntity:return 0===this.result||this.decodeMode===Nm.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Tm.NumericDecimal:return this.emitNumericEntity(0,2);case Tm.NumericHex:return this.emitNumericEntity(0,3);case Tm.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Tm.EntityStart:return 0}}}function Bm(e){let a="";const r=new Lm(e,(e=>a+=Dm(e)));return function(e,n){let i=0,t=0;for(;(t=e.indexOf("&",t))>=0;){a+=e.slice(i,t),r.startEntity(n);const o=r.write(e,t+1);if(o<0){i=t+r.end();break}i=t+o,t=0===o?i+1:i}const o=a+e.slice(i);return a="",o}}function Vm(e,a,r,n){const i=(a&Fm.BRANCH_LENGTH)>>7,t=a&Fm.JUMP_TABLE;if(0===i)return 0!==t&&n===t?r:-1;if(t){const a=n-t;return a<0||a>=i?-1:e[r+a]-1}let o=r,s=o+i-1;for(;o<=s;){const a=o+s>>>1,r=e[a];if(r<n)o=a+1;else{if(!(r>n))return e[a+i];s=a-1}}return-1}const Um=Bm(Em);function Hm(e,a=Nm.Legacy){return Um(e,a)}function Gm(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}Bm(Am);const Wm=Object.prototype.hasOwnProperty;function Zm(e){return Array.prototype.slice.call(arguments,1).forEach((function(a){if(a){if("object"!=typeof a)throw new TypeError(a+"must be object");Object.keys(a).forEach((function(r){e[r]=a[r]}))}})),e}function Km(e,a,r){return[].concat(e.slice(0,a),r,e.slice(a+1))}function Jm(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function Ym(e){if(e>65535){const a=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(a,r)}return String.fromCharCode(e)}const Xm=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Qm=new RegExp(Xm.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),eg=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ag(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Qm,(function(e,a,r){return a||function(e,a){if(35===a.charCodeAt(0)&&eg.test(a)){const r="x"===a[1].toLowerCase()?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return Jm(r)?Ym(r):e}const r=Hm(e);return r!==e?r:e}(e,r)}))}const rg=/[&<>"]/,ng=/[&<>"]/g,ig={"&":"&","<":"<",">":">",'"':"""};function tg(e){return ig[e]}function og(e){return rg.test(e)?e.replace(ng,tg):e}const sg=/[.?*+^$[\]\\(){}|-]/g;function lg(e){switch(e){case 9:case 32:return!0}return!1}function cg(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function dg(e){return $m.test(e)||Cm.test(e)}function ug(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function hg(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const mg={mdurl:jm,ucmicro:Sm};var gg=Object.freeze({__proto__:null,arrayReplaceAt:Km,assign:Zm,escapeHtml:og,escapeRE:function(e){return e.replace(sg,"\\$&")},fromCodePoint:Ym,has:function(e,a){return Wm.call(e,a)},isMdAsciiPunct:ug,isPunctChar:dg,isSpace:lg,isString:Gm,isValidEntityCode:Jm,isWhiteSpace:cg,lib:mg,normalizeReference:hg,unescapeAll:ag,unescapeMd:function(e){return e.indexOf("\\")<0?e:e.replace(Xm,"$1")}});var pg=Object.freeze({__proto__:null,parseLinkDestination:function(e,a,r){let n,i=a;const t={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<r;){if(n=e.charCodeAt(i),10===n)return t;if(60===n)return t;if(62===n)return t.pos=i+1,t.str=ag(e.slice(a+1,i)),t.ok=!0,t;92===n&&i+1<r?i+=2:i++}return t}let o=0;for(;i<r&&(n=e.charCodeAt(i),32!==n)&&!(n<32||127===n);)if(92===n&&i+1<r){if(32===e.charCodeAt(i+1))break;i+=2}else{if(40===n&&(o++,o>32))return t;if(41===n){if(0===o)break;o--}i++}return a===i||0!==o||(t.str=ag(e.slice(a,i)),t.pos=i,t.ok=!0),t},parseLinkLabel:function(e,a,r){let n,i,t,o;const s=e.posMax,l=e.pos;for(e.pos=a+1,n=1;e.pos<s;){if(t=e.src.charCodeAt(e.pos),93===t&&(n--,0===n)){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===t)if(o===e.pos-1)n++;else if(r)return e.pos=l,-1}let c=-1;return i&&(c=e.pos),e.pos=l,c},parseLinkTitle:function(e,a,r,n){let i,t=a;const o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(t>=r)return o;let n=e.charCodeAt(t);if(34!==n&&39!==n&&40!==n)return o;a++,t++,40===n&&(n=41),o.marker=n}for(;t<r;){if(i=e.charCodeAt(t),i===o.marker)return o.pos=t+1,o.str+=ag(e.slice(a,t)),o.ok=!0,o;if(40===i&&41===o.marker)return o;92===i&&t+1<r&&t++,t++}return o.can_continue=!0,o.str+=ag(e.slice(a,t)),o}});const bg={};function kg(){this.rules=Zm({},bg)}function fg(){this.__rules__=[],this.__cache__=null}function yg(e,a,r){this.type=e,this.tag=a,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}function vg(e,a,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=a}bg.code_inline=function(e,a,r,n,i){const t=e[a];return"<code"+i.renderAttrs(t)+">"+og(t.content)+"</code>"},bg.code_block=function(e,a,r,n,i){const t=e[a];return"<pre"+i.renderAttrs(t)+"><code>"+og(e[a].content)+"</code></pre>\n"},bg.fence=function(e,a,r,n,i){const t=e[a],o=t.info?ag(t.info).trim():"";let s,l="",c="";if(o){const e=o.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(s=r.highlight&&r.highlight(t.content,l,c)||og(t.content),0===s.indexOf("<pre"))return s+"\n";if(o){const e=t.attrIndex("class"),a=t.attrs?t.attrs.slice():[];e<0?a.push(["class",r.langPrefix+l]):(a[e]=a[e].slice(),a[e][1]+=" "+r.langPrefix+l);const n={attrs:a};return`<pre><code${i.renderAttrs(n)}>${s}</code></pre>\n`}return`<pre><code${i.renderAttrs(t)}>${s}</code></pre>\n`},bg.image=function(e,a,r,n,i){const t=e[a];return t.attrs[t.attrIndex("alt")][1]=i.renderInlineAsText(t.children,r,n),i.renderToken(e,a,r)},bg.hardbreak=function(e,a,r){return r.xhtmlOut?"<br />\n":"<br>\n"},bg.softbreak=function(e,a,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},bg.text=function(e,a){return og(e[a].content)},bg.html_block=function(e,a){return e[a].content},bg.html_inline=function(e,a){return e[a].content},kg.prototype.renderAttrs=function(e){let a,r,n;if(!e.attrs)return"";for(n="",a=0,r=e.attrs.length;a<r;a++)n+=" "+og(e.attrs[a][0])+'="'+og(e.attrs[a][1])+'"';return n},kg.prototype.renderToken=function(e,a,r){const n=e[a];let i="";if(n.hidden)return"";n.block&&-1!==n.nesting&&a&&e[a-1].hidden&&(i+="\n"),i+=(-1===n.nesting?"</":"<")+n.tag,i+=this.renderAttrs(n),0===n.nesting&&r.xhtmlOut&&(i+=" /");let t=!1;if(n.block&&(t=!0,1===n.nesting&&a+1<e.length)){const r=e[a+1];("inline"===r.type||r.hidden||-1===r.nesting&&r.tag===n.tag)&&(t=!1)}return i+=t?">\n":">",i},kg.prototype.renderInline=function(e,a,r){let n="";const i=this.rules;for(let t=0,o=e.length;t<o;t++){const o=e[t].type;void 0!==i[o]?n+=i[o](e,t,a,r,this):n+=this.renderToken(e,t,a)}return n},kg.prototype.renderInlineAsText=function(e,a,r){let n="";for(let i=0,t=e.length;i<t;i++)switch(e[i].type){case"text":case"html_inline":case"html_block":n+=e[i].content;break;case"image":n+=this.renderInlineAsText(e[i].children,a,r);break;case"softbreak":case"hardbreak":n+="\n"}return n},kg.prototype.render=function(e,a,r){let n="";const i=this.rules;for(let t=0,o=e.length;t<o;t++){const o=e[t].type;"inline"===o?n+=this.renderInline(e[t].children,a,r):void 0!==i[o]?n+=i[o](e,t,a,r,this):n+=this.renderToken(e,t,a,r)}return n},fg.prototype.__find__=function(e){for(let a=0;a<this.__rules__.length;a++)if(this.__rules__[a].name===e)return a;return-1},fg.prototype.__compile__=function(){const e=this,a=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){a.indexOf(e)<0&&a.push(e)}))})),e.__cache__={},a.forEach((function(a){e.__cache__[a]=[],e.__rules__.forEach((function(r){r.enabled&&(a&&r.alt.indexOf(a)<0||e.__cache__[a].push(r.fn))}))}))},fg.prototype.at=function(e,a,r){const n=this.__find__(e),i=r||{};if(-1===n)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=a,this.__rules__[n].alt=i.alt||[],this.__cache__=null},fg.prototype.before=function(e,a,r,n){const i=this.__find__(e),t=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:a,enabled:!0,fn:r,alt:t.alt||[]}),this.__cache__=null},fg.prototype.after=function(e,a,r,n){const i=this.__find__(e),t=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:a,enabled:!0,fn:r,alt:t.alt||[]}),this.__cache__=null},fg.prototype.push=function(e,a,r){const n=r||{};this.__rules__.push({name:e,enabled:!0,fn:a,alt:n.alt||[]}),this.__cache__=null},fg.prototype.enable=function(e,a){Array.isArray(e)||(e=[e]);const r=[];return e.forEach((function(e){const n=this.__find__(e);if(n<0){if(a)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!0,r.push(e)}),this),this.__cache__=null,r},fg.prototype.enableOnly=function(e,a){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,a)},fg.prototype.disable=function(e,a){Array.isArray(e)||(e=[e]);const r=[];return e.forEach((function(e){const n=this.__find__(e);if(n<0){if(a)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!1,r.push(e)}),this),this.__cache__=null,r},fg.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},yg.prototype.attrIndex=function(e){if(!this.attrs)return-1;const a=this.attrs;for(let r=0,n=a.length;r<n;r++)if(a[r][0]===e)return r;return-1},yg.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},yg.prototype.attrSet=function(e,a){const r=this.attrIndex(e),n=[e,a];r<0?this.attrPush(n):this.attrs[r]=n},yg.prototype.attrGet=function(e){const a=this.attrIndex(e);let r=null;return a>=0&&(r=this.attrs[a][1]),r},yg.prototype.attrJoin=function(e,a){const r=this.attrIndex(e);r<0?this.attrPush([e,a]):this.attrs[r][1]=this.attrs[r][1]+" "+a},vg.prototype.Token=yg;const wg=/\r\n?|\n/g,zg=/\0/g;function jg(e){return/^<\/a\s*>/i.test(e)}const xg=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,qg=/\((c|tm|r)\)/i,$g=/\((c|tm|r)\)/gi,Cg={c:"©",r:"®",tm:"™"};function _g(e,a){return Cg[a.toLowerCase()]}function Sg(e){let a=0;for(let r=e.length-1;r>=0;r--){const n=e[r];"text"!==n.type||a||(n.content=n.content.replace($g,_g)),"link_open"===n.type&&"auto"===n.info&&a--,"link_close"===n.type&&"auto"===n.info&&a++}}function Eg(e){let a=0;for(let r=e.length-1;r>=0;r--){const n=e[r];"text"!==n.type||a||xg.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&a--,"link_close"===n.type&&"auto"===n.info&&a++}}const Ag=/['"]/,Og=/['"]/g;function Dg(e,a,r){return e.slice(0,a)+r+e.slice(a+1)}function Mg(e,a){let r;const n=[];for(let i=0;i<e.length;i++){const t=e[i],o=e[i].level;for(r=n.length-1;r>=0&&!(n[r].level<=o);r--);if(n.length=r+1,"text"!==t.type)continue;let s=t.content,l=0,c=s.length;e:for(;l<c;){Og.lastIndex=l;const d=Og.exec(s);if(!d)break;let u=!0,h=!0;l=d.index+1;const m="'"===d[0];let g=32;if(d.index-1>=0)g=s.charCodeAt(d.index-1);else for(r=i-1;r>=0&&("softbreak"!==e[r].type&&"hardbreak"!==e[r].type);r--)if(e[r].content){g=e[r].content.charCodeAt(e[r].content.length-1);break}let p=32;if(l<c)p=s.charCodeAt(l);else for(r=i+1;r<e.length&&("softbreak"!==e[r].type&&"hardbreak"!==e[r].type);r++)if(e[r].content){p=e[r].content.charCodeAt(0);break}const b=ug(g)||dg(String.fromCharCode(g)),k=ug(p)||dg(String.fromCharCode(p)),f=cg(g),y=cg(p);if(y?u=!1:k&&(f||b||(u=!1)),f?h=!1:b&&(y||k||(h=!1)),34===p&&'"'===d[0]&&g>=48&&g<=57&&(h=u=!1),u&&h&&(u=b,h=k),u||h){if(h)for(r=n.length-1;r>=0;r--){let u=n[r];if(n[r].level<o)break;if(u.single===m&&n[r].level===o){let o,h;u=n[r],m?(o=a.md.options.quotes[2],h=a.md.options.quotes[3]):(o=a.md.options.quotes[0],h=a.md.options.quotes[1]),t.content=Dg(t.content,d.index,h),e[u.token].content=Dg(e[u.token].content,u.pos,o),l+=h.length-1,u.token===i&&(l+=o.length-1),s=t.content,c=s.length,n.length=r;continue e}}u?n.push({token:i,pos:d.index,single:m,level:o}):h&&m&&(t.content=Dg(t.content,d.index,"’"))}else m&&(t.content=Dg(t.content,d.index,"’"))}}}const Fg=[["normalize",function(e){let a;a=e.src.replace(wg,"\n"),a=a.replace(zg,"�"),e.src=a}],["block",function(e){let a;e.inlineMode?(a=new e.Token("inline","",0),a.content=e.src,a.map=[0,1],a.children=[],e.tokens.push(a)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){const a=e.tokens;for(let r=0,n=a.length;r<n;r++){const n=a[r];"inline"===n.type&&e.md.inline.parse(n.content,e.md,e.env,n.children)}}],["linkify",function(e){const a=e.tokens;var r;if(e.md.options.linkify)for(let n=0,i=a.length;n<i;n++){if("inline"!==a[n].type||!e.md.linkify.pretest(a[n].content))continue;let i=a[n].children,t=0;for(let o=i.length-1;o>=0;o--){const s=i[o];if("link_close"!==s.type){if("html_inline"===s.type&&(r=s.content,/^<a[>\s]/i.test(r)&&t>0&&t--,jg(s.content)&&t++),!(t>0)&&"text"===s.type&&e.md.linkify.test(s.content)){const r=s.content;let t=e.md.linkify.match(r);const l=[];let c=s.level,d=0;t.length>0&&0===t[0].index&&o>0&&"text_special"===i[o-1].type&&(t=t.slice(1));for(let a=0;a<t.length;a++){const n=t[a].url,i=e.md.normalizeLink(n);if(!e.md.validateLink(i))continue;let o=t[a].text;o=t[a].schema?"mailto:"!==t[a].schema||/^mailto:/i.test(o)?e.md.normalizeLinkText(o):e.md.normalizeLinkText("mailto:"+o).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+o).replace(/^http:\/\//,"");const s=t[a].index;if(s>d){const a=new e.Token("text","",0);a.content=r.slice(d,s),a.level=c,l.push(a)}const u=new e.Token("link_open","a",1);u.attrs=[["href",i]],u.level=c++,u.markup="linkify",u.info="auto",l.push(u);const h=new e.Token("text","",0);h.content=o,h.level=c,l.push(h);const m=new e.Token("link_close","a",-1);m.level=--c,m.markup="linkify",m.info="auto",l.push(m),d=t[a].lastIndex}if(d<r.length){const a=new e.Token("text","",0);a.content=r.slice(d),a.level=c,l.push(a)}a[n].children=i=Km(i,o,l)}}else for(o--;i[o].level!==s.level&&"link_open"!==i[o].type;)o--}}}],["replacements",function(e){let a;if(e.md.options.typographer)for(a=e.tokens.length-1;a>=0;a--)"inline"===e.tokens[a].type&&(qg.test(e.tokens[a].content)&&Sg(e.tokens[a].children),xg.test(e.tokens[a].content)&&Eg(e.tokens[a].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let a=e.tokens.length-1;a>=0;a--)"inline"===e.tokens[a].type&&Ag.test(e.tokens[a].content)&&Mg(e.tokens[a].children,e)}],["text_join",function(e){let a,r;const n=e.tokens,i=n.length;for(let e=0;e<i;e++){if("inline"!==n[e].type)continue;const i=n[e].children,t=i.length;for(a=0;a<t;a++)"text_special"===i[a].type&&(i[a].type="text");for(a=r=0;a<t;a++)"text"===i[a].type&&a+1<t&&"text"===i[a+1].type?i[a+1].content=i[a].content+i[a+1].content:(a!==r&&(i[r]=i[a]),r++);a!==r&&(i.length=r)}}]];function Tg(){this.ruler=new fg;for(let e=0;e<Fg.length;e++)this.ruler.push(Fg[e][0],Fg[e][1])}function Ng(e,a,r,n){this.src=e,this.md=a,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const i=this.src;for(let e=0,a=0,r=0,n=0,t=i.length,o=!1;a<t;a++){const s=i.charCodeAt(a);if(!o){if(lg(s)){r++,9===s?n+=4-n%4:n++;continue}o=!0}10!==s&&a!==t-1||(10!==s&&a++,this.bMarks.push(e),this.eMarks.push(a),this.tShift.push(r),this.sCount.push(n),this.bsCount.push(0),o=!1,r=0,n=0,e=a+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Tg.prototype.process=function(e){const a=this.ruler.getRules("");for(let r=0,n=a.length;r<n;r++)a[r](e)},Tg.prototype.State=vg,Ng.prototype.push=function(e,a,r){const n=new yg(e,a,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},Ng.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Ng.prototype.skipEmptyLines=function(e){for(let a=this.lineMax;e<a&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Ng.prototype.skipSpaces=function(e){for(let a=this.src.length;e<a;e++){if(!lg(this.src.charCodeAt(e)))break}return e},Ng.prototype.skipSpacesBack=function(e,a){if(e<=a)return e;for(;e>a;)if(!lg(this.src.charCodeAt(--e)))return e+1;return e},Ng.prototype.skipChars=function(e,a){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===a;e++);return e},Ng.prototype.skipCharsBack=function(e,a,r){if(e<=r)return e;for(;e>r;)if(a!==this.src.charCodeAt(--e))return e+1;return e},Ng.prototype.getLines=function(e,a,r,n){if(e>=a)return"";const i=new Array(a-e);for(let t=0,o=e;o<a;o++,t++){let e=0;const s=this.bMarks[o];let l,c=s;for(l=o+1<a||n?this.eMarks[o]+1:this.eMarks[o];c<l&&e<r;){const a=this.src.charCodeAt(c);if(lg(a))9===a?e+=4-(e+this.bsCount[o])%4:e++;else{if(!(c-s<this.tShift[o]))break;e++}c++}i[t]=e>r?new Array(e-r+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return i.join("")},Ng.prototype.Token=yg;function Ig(e,a){const r=e.bMarks[a]+e.tShift[a],n=e.eMarks[a];return e.src.slice(r,n)}function Pg(e){const a=[],r=e.length;let n=0,i=e.charCodeAt(n),t=!1,o=0,s="";for(;n<r;)124===i&&(t?(s+=e.substring(o,n-1),o=n):(a.push(s+e.substring(o,n)),s="",o=n+1)),t=92===i,n++,i=e.charCodeAt(n);return a.push(s+e.substring(o)),a}function Rg(e,a){const r=e.eMarks[a];let n=e.bMarks[a]+e.tShift[a];const i=e.src.charCodeAt(n++);if(42!==i&&45!==i&&43!==i)return-1;if(n<r){if(!lg(e.src.charCodeAt(n)))return-1}return n}function Lg(e,a){const r=e.bMarks[a]+e.tShift[a],n=e.eMarks[a];let i=r;if(i+1>=n)return-1;let t=e.src.charCodeAt(i++);if(t<48||t>57)return-1;for(;;){if(i>=n)return-1;if(t=e.src.charCodeAt(i++),!(t>=48&&t<=57)){if(41===t||46===t)break;return-1}if(i-r>=10)return-1}return i<n&&(t=e.src.charCodeAt(i),!lg(t))?-1:i}const Bg="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Vg="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Ug=new RegExp("^(?:"+Bg+"|"+Vg+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),Hg=new RegExp("^(?:"+Bg+"|"+Vg+")"),Gg=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Hg.source+"\\s*$"),/^$/,!1]];const Wg=[["table",function(e,a,r,n){if(a+2>r)return!1;let i=a+1;if(e.sCount[i]<e.blkIndent)return!1;if(e.sCount[i]-e.blkIndent>=4)return!1;let t=e.bMarks[i]+e.tShift[i];if(t>=e.eMarks[i])return!1;const o=e.src.charCodeAt(t++);if(124!==o&&45!==o&&58!==o)return!1;if(t>=e.eMarks[i])return!1;const s=e.src.charCodeAt(t++);if(124!==s&&45!==s&&58!==s&&!lg(s))return!1;if(45===o&&lg(s))return!1;for(;t<e.eMarks[i];){const a=e.src.charCodeAt(t);if(124!==a&&45!==a&&58!==a&&!lg(a))return!1;t++}let l=Ig(e,a+1),c=l.split("|");const d=[];for(let e=0;e<c.length;e++){const a=c[e].trim();if(!a){if(0===e||e===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(a))return!1;58===a.charCodeAt(a.length-1)?d.push(58===a.charCodeAt(0)?"center":"right"):58===a.charCodeAt(0)?d.push("left"):d.push("")}if(l=Ig(e,a).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[a]-e.blkIndent>=4)return!1;c=Pg(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();const u=c.length;if(0===u||u!==d.length)return!1;if(n)return!0;const h=e.parentType;e.parentType="table";const m=e.md.block.ruler.getRules("blockquote"),g=[a,0];e.push("table_open","table",1).map=g,e.push("thead_open","thead",1).map=[a,a+1],e.push("tr_open","tr",1).map=[a,a+1];for(let a=0;a<c.length;a++){const r=e.push("th_open","th",1);d[a]&&(r.attrs=[["style","text-align:"+d[a]]]);const n=e.push("inline","",0);n.content=c[a].trim(),n.children=[],e.push("th_close","th",-1)}let p;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let b=0;for(i=a+2;i<r&&!(e.sCount[i]<e.blkIndent);i++){let n=!1;for(let a=0,t=m.length;a<t;a++)if(m[a](e,i,r,!0)){n=!0;break}if(n)break;if(l=Ig(e,i).trim(),!l)break;if(e.sCount[i]-e.blkIndent>=4)break;if(c=Pg(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),b+=u-c.length,b>65536)break;if(i===a+2){e.push("tbody_open","tbody",1).map=p=[a+2,0]}e.push("tr_open","tr",1).map=[i,i+1];for(let a=0;a<u;a++){const r=e.push("td_open","td",1);d[a]&&(r.attrs=[["style","text-align:"+d[a]]]);const n=e.push("inline","",0);n.content=c[a]?c[a].trim():"",n.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return p&&(e.push("tbody_close","tbody",-1),p[1]=i),e.push("table_close","table",-1),g[1]=i,e.parentType=h,e.line=i,!0},["paragraph","reference"]],["code",function(e,a,r){if(e.sCount[a]-e.blkIndent<4)return!1;let n=a+1,i=n;for(;n<r;)if(e.isEmpty(n))n++;else{if(!(e.sCount[n]-e.blkIndent>=4))break;n++,i=n}e.line=i;const t=e.push("code_block","code",0);return t.content=e.getLines(a,i,4+e.blkIndent,!1)+"\n",t.map=[a,e.line],!0}],["fence",function(e,a,r,n){let i=e.bMarks[a]+e.tShift[a],t=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(i+3>t)return!1;const o=e.src.charCodeAt(i);if(126!==o&&96!==o)return!1;let s=i;i=e.skipChars(i,o);let l=i-s;if(l<3)return!1;const c=e.src.slice(s,i),d=e.src.slice(i,t);if(96===o&&d.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let u=a,h=!1;for(;(u++,!(u>=r))&&(i=s=e.bMarks[u]+e.tShift[u],t=e.eMarks[u],!(i<t&&e.sCount[u]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[u]-e.blkIndent>=4||(i=e.skipChars(i,o),i-s<l||(i=e.skipSpaces(i),i<t)))){h=!0;break}l=e.sCount[a],e.line=u+(h?1:0);const m=e.push("fence","code",0);return m.info=d,m.content=e.getLines(a+1,u,l,!0),m.markup=c,m.map=[a,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,a,r,n){let i=e.bMarks[a]+e.tShift[a],t=e.eMarks[a];const o=e.lineMax;if(e.sCount[a]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(i))return!1;if(n)return!0;const s=[],l=[],c=[],d=[],u=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let m,g=!1;for(m=a;m<r;m++){const a=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],t=e.eMarks[m],i>=t)break;if(62===e.src.charCodeAt(i++)&&!a){let a,r,n=e.sCount[m]+1;32===e.src.charCodeAt(i)?(i++,n++,r=!1,a=!0):9===e.src.charCodeAt(i)?(a=!0,(e.bsCount[m]+n)%4==3?(i++,n++,r=!1):r=!0):a=!1;let o=n;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<t;){const a=e.src.charCodeAt(i);if(!lg(a))break;9===a?o+=4-(o+e.bsCount[m]+(r?1:0))%4:o++,i++}g=i>=t,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(a?1:0),c.push(e.sCount[m]),e.sCount[m]=o-n,d.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(g)break;let n=!1;for(let a=0,i=u.length;a<i;a++)if(u[a](e,m,r,!0)){n=!0;break}if(n){e.lineMax=m,0!==e.blkIndent&&(s.push(e.bMarks[m]),l.push(e.bsCount[m]),d.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),l.push(e.bsCount[m]),d.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]=-1}const p=e.blkIndent;e.blkIndent=0;const b=e.push("blockquote_open","blockquote",1);b.markup=">";const k=[a,0];b.map=k,e.md.block.tokenize(e,a,m),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=o,e.parentType=h,k[1]=e.line;for(let r=0;r<d.length;r++)e.bMarks[r+a]=s[r],e.tShift[r+a]=d[r],e.sCount[r+a]=c[r],e.bsCount[r+a]=l[r];return e.blkIndent=p,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,a,r,n){const i=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;let t=e.bMarks[a]+e.tShift[a];const o=e.src.charCodeAt(t++);if(42!==o&&45!==o&&95!==o)return!1;let s=1;for(;t<i;){const a=e.src.charCodeAt(t++);if(a!==o&&!lg(a))return!1;a===o&&s++}if(s<3)return!1;if(n)return!0;e.line=a+1;const l=e.push("hr","hr",0);return l.map=[a,e.line],l.markup=Array(s+1).join(String.fromCharCode(o)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,a,r,n){let i,t,o,s,l=a,c=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let d,u,h,m=!1;if(n&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(m=!0),(h=Lg(e,l))>=0){if(d=!0,o=e.bMarks[l]+e.tShift[l],u=Number(e.src.slice(o,h-1)),m&&1!==u)return!1}else{if(!((h=Rg(e,l))>=0))return!1;d=!1}if(m&&e.skipSpaces(h)>=e.eMarks[l])return!1;if(n)return!0;const g=e.src.charCodeAt(h-1),p=e.tokens.length;d?(s=e.push("ordered_list_open","ol",1),1!==u&&(s.attrs=[["start",u]])):s=e.push("bullet_list_open","ul",1);const b=[l,0];s.map=b,s.markup=String.fromCharCode(g);let k=!1;const f=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";l<r;){t=h,i=e.eMarks[l];const a=e.sCount[l]+h-(e.bMarks[l]+e.tShift[l]);let n=a;for(;t<i;){const a=e.src.charCodeAt(t);if(9===a)n+=4-(n+e.bsCount[l])%4;else{if(32!==a)break;n++}t++}const u=t;let m;m=u>=i?1:n-a,m>4&&(m=1);const p=a+m;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(g);const b=[l,0];s.map=b,d&&(s.info=e.src.slice(o,h-1));const y=e.tight,v=e.tShift[l],w=e.sCount[l],z=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=p,e.tight=!0,e.tShift[l]=u-e.bMarks[l],e.sCount[l]=n,u>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,l,r,!0),e.tight&&!k||(c=!1),k=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=z,e.tShift[l]=v,e.sCount[l]=w,e.tight=y,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(g),l=e.line,b[1]=l,l>=r)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;let j=!1;for(let a=0,n=f.length;a<n;a++)if(f[a](e,l,r,!0)){j=!0;break}if(j)break;if(d){if(h=Lg(e,l),h<0)break;o=e.bMarks[l]+e.tShift[l]}else if(h=Rg(e,l),h<0)break;if(g!==e.src.charCodeAt(h-1))break}return s=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(g),b[1]=l,e.line=l,e.parentType=y,c&&function(e,a){const r=e.level+2;for(let n=a+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,p),!0},["paragraph","reference","blockquote"]],["reference",function(e,a,r,n){let i=e.bMarks[a]+e.tShift[a],t=e.eMarks[a],o=a+1;if(e.sCount[a]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(i))return!1;function s(a){const r=e.lineMax;if(a>=r||e.isEmpty(a))return null;let n=!1;if(e.sCount[a]-e.blkIndent>3&&(n=!0),e.sCount[a]<0&&(n=!0),!n){const n=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let t=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](e,a,r,!0)){t=!0;break}if(e.parentType=i,t)return null}const i=e.bMarks[a]+e.tShift[a],t=e.eMarks[a];return e.src.slice(i,t+1)}let l=e.src.slice(i,t+1);t=l.length;let c=-1;for(i=1;i<t;i++){const e=l.charCodeAt(i);if(91===e)return!1;if(93===e){c=i;break}if(10===e){const e=s(o);null!==e&&(l+=e,t=l.length,o++)}else if(92===e&&(i++,i<t&&10===l.charCodeAt(i))){const e=s(o);null!==e&&(l+=e,t=l.length,o++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(i=c+2;i<t;i++){const e=l.charCodeAt(i);if(10===e){const e=s(o);null!==e&&(l+=e,t=l.length,o++)}else if(!lg(e))break}const d=e.md.helpers.parseLinkDestination(l,i,t);if(!d.ok)return!1;const u=e.md.normalizeLink(d.str);if(!e.md.validateLink(u))return!1;i=d.pos;const h=i,m=o,g=i;for(;i<t;i++){const e=l.charCodeAt(i);if(10===e){const e=s(o);null!==e&&(l+=e,t=l.length,o++)}else if(!lg(e))break}let p,b=e.md.helpers.parseLinkTitle(l,i,t);for(;b.can_continue;){const a=s(o);if(null===a)break;l+=a,i=t,t=l.length,o++,b=e.md.helpers.parseLinkTitle(l,i,t,b)}for(i<t&&g!==i&&b.ok?(p=b.str,i=b.pos):(p="",i=h,o=m);i<t;){if(!lg(l.charCodeAt(i)))break;i++}if(i<t&&10!==l.charCodeAt(i)&&p)for(p="",i=h,o=m;i<t;){if(!lg(l.charCodeAt(i)))break;i++}if(i<t&&10!==l.charCodeAt(i))return!1;const k=hg(l.slice(1,c));return!!k&&(n||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[k]&&(e.env.references[k]={title:p,href:u}),e.line=o),!0)}],["html_block",function(e,a,r,n){let i=e.bMarks[a]+e.tShift[a],t=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(i))return!1;let o=e.src.slice(i,t),s=0;for(;s<Gg.length&&!Gg[s][0].test(o);s++);if(s===Gg.length)return!1;if(n)return Gg[s][2];let l=a+1;if(!Gg[s][1].test(o))for(;l<r&&!(e.sCount[l]<e.blkIndent);l++)if(i=e.bMarks[l]+e.tShift[l],t=e.eMarks[l],o=e.src.slice(i,t),Gg[s][1].test(o)){0!==o.length&&l++;break}e.line=l;const c=e.push("html_block","",0);return c.map=[a,l],c.content=e.getLines(a,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,a,r,n){let i=e.bMarks[a]+e.tShift[a],t=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(35!==o||i>=t)return!1;let s=1;for(o=e.src.charCodeAt(++i);35===o&&i<t&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<t&&!lg(o))return!1;if(n)return!0;t=e.skipSpacesBack(t,i);const l=e.skipCharsBack(t,35,i);l>i&&lg(e.src.charCodeAt(l-1))&&(t=l),e.line=a+1;const c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[a,e.line];const d=e.push("inline","",0);return d.content=e.src.slice(i,t).trim(),d.map=[a,e.line],d.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,a,r){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[a]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let t,o=0,s=a+1;for(;s<r&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let a=e.bMarks[s]+e.tShift[s];const r=e.eMarks[s];if(a<r&&(t=e.src.charCodeAt(a),(45===t||61===t)&&(a=e.skipChars(a,t),a=e.skipSpaces(a),a>=r))){o=61===t?1:2;break}}if(e.sCount[s]<0)continue;let a=!1;for(let i=0,t=n.length;i<t;i++)if(n[i](e,s,r,!0)){a=!0;break}if(a)break}if(!o)return!1;const l=e.getLines(a,s,e.blkIndent,!1).trim();e.line=s+1;const c=e.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(t),c.map=[a,e.line];const d=e.push("inline","",0);return d.content=l,d.map=[a,e.line-1],d.children=[],e.push("heading_close","h"+String(o),-1).markup=String.fromCharCode(t),e.parentType=i,!0}],["paragraph",function(e,a,r){const n=e.md.block.ruler.getRules("paragraph"),i=e.parentType;let t=a+1;for(e.parentType="paragraph";t<r&&!e.isEmpty(t);t++){if(e.sCount[t]-e.blkIndent>3)continue;if(e.sCount[t]<0)continue;let a=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](e,t,r,!0)){a=!0;break}if(a)break}const o=e.getLines(a,t,e.blkIndent,!1).trim();e.line=t,e.push("paragraph_open","p",1).map=[a,e.line];const s=e.push("inline","",0);return s.content=o,s.map=[a,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function Zg(){this.ruler=new fg;for(let e=0;e<Wg.length;e++)this.ruler.push(Wg[e][0],Wg[e][1],{alt:(Wg[e][2]||[]).slice()})}function Kg(e,a,r,n){this.src=e,this.env=r,this.md=a,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}function Jg(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}Zg.prototype.tokenize=function(e,a,r){const n=this.ruler.getRules(""),i=n.length,t=e.md.options.maxNesting;let o=a,s=!1;for(;o<r&&(e.line=o=e.skipEmptyLines(o),!(o>=r))&&!(e.sCount[o]<e.blkIndent);){if(e.level>=t){e.line=r;break}const a=e.line;let l=!1;for(let t=0;t<i;t++)if(l=n[t](e,o,r,!1),l){if(a>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<r&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},Zg.prototype.parse=function(e,a,r,n){if(!e)return;const i=new this.State(e,a,r,n);this.tokenize(i,i.line,i.lineMax)},Zg.prototype.State=Ng,Kg.prototype.pushPending=function(){const e=new yg("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Kg.prototype.push=function(e,a,r){this.pending&&this.pushPending();const n=new yg(e,a,r);let i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n},Kg.prototype.scanDelims=function(e,a){const r=this.posMax,n=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let t=e;for(;t<r&&this.src.charCodeAt(t)===n;)t++;const o=t-e,s=t<r?this.src.charCodeAt(t):32,l=ug(i)||dg(String.fromCharCode(i)),c=ug(s)||dg(String.fromCharCode(s)),d=cg(i),u=cg(s),h=!u&&(!c||d||l),m=!d&&(!l||u||c);return{can_open:h&&(a||!m||l),can_close:m&&(a||!h||c),length:o}},Kg.prototype.Token=yg;const Yg=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;const Xg=[];for(let e=0;e<256;e++)Xg.push(0);function Qg(e,a){let r;const n=[],i=a.length;for(let t=0;t<i;t++){const i=a[t];if(126!==i.marker)continue;if(-1===i.end)continue;const o=a[i.end];r=e.tokens[i.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=e.tokens[o.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&n.push(o.token-1)}for(;n.length;){const a=n.pop();let i=a+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;i--,a!==i&&(r=e.tokens[i],e.tokens[i]=e.tokens[a],e.tokens[a]=r)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){Xg[e.charCodeAt(0)]=1}));var ep={tokenize:function(e,a){const r=e.pos,n=e.src.charCodeAt(r);if(a)return!1;if(126!==n)return!1;const i=e.scanDelims(e.pos,!0);let t=i.length;const o=String.fromCharCode(n);if(t<2)return!1;let s;t%2&&(s=e.push("text","",0),s.content=o,t--);for(let a=0;a<t;a+=2)s=e.push("text","",0),s.content=o+o,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},postProcess:function(e){const a=e.tokens_meta,r=e.tokens_meta.length;Qg(e,e.delimiters);for(let n=0;n<r;n++)a[n]&&a[n].delimiters&&Qg(e,a[n].delimiters)}};function ap(e,a){for(let r=a.length-1;r>=0;r--){const n=a[r];if(95!==n.marker&&42!==n.marker)continue;if(-1===n.end)continue;const i=a[n.end],t=r>0&&a[r-1].end===n.end+1&&a[r-1].marker===n.marker&&a[r-1].token===n.token-1&&a[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=t?"strong_open":"em_open",s.tag=t?"strong":"em",s.nesting=1,s.markup=t?o+o:o,s.content="";const l=e.tokens[i.token];l.type=t?"strong_close":"em_close",l.tag=t?"strong":"em",l.nesting=-1,l.markup=t?o+o:o,l.content="",t&&(e.tokens[a[r-1].token].content="",e.tokens[a[n.end+1].token].content="",r--)}}var rp={tokenize:function(e,a){const r=e.pos,n=e.src.charCodeAt(r);if(a)return!1;if(95!==n&&42!==n)return!1;const i=e.scanDelims(e.pos,42===n);for(let a=0;a<i.length;a++){e.push("text","",0).content=String.fromCharCode(n),e.delimiters.push({marker:n,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0},postProcess:function(e){const a=e.tokens_meta,r=e.tokens_meta.length;ap(e,e.delimiters);for(let n=0;n<r;n++)a[n]&&a[n].delimiters&&ap(e,a[n].delimiters)}};const np=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,ip=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;const tp=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,op=/^&([a-z][a-z0-9]{1,31});/i;function sp(e){const a={},r=e.length;if(!r)return;let n=0,i=-2;const t=[];for(let o=0;o<r;o++){const r=e[o];if(t.push(0),e[n].marker===r.marker&&i===r.token-1||(n=o),i=r.token,r.length=r.length||0,!r.close)continue;a.hasOwnProperty(r.marker)||(a[r.marker]=[-1,-1,-1,-1,-1,-1]);const s=a[r.marker][(r.open?3:0)+r.length%3];let l=n-t[n]-1,c=l;for(;l>s;l-=t[l]+1){const a=e[l];if(a.marker===r.marker&&(a.open&&a.end<0)){let n=!1;if((a.close||r.open)&&(a.length+r.length)%3==0&&(a.length%3==0&&r.length%3==0||(n=!0)),!n){const n=l>0&&!e[l-1].open?t[l-1]+1:0;t[o]=o-l+n,t[l]=n,r.open=!1,a.end=o,a.close=!1,c=-1,i=-2;break}}}-1!==c&&(a[r.marker][(r.open?3:0)+(r.length||0)%3]=c)}}const lp=[["text",function(e,a){let r=e.pos;for(;r<e.posMax&&!Jg(e.src.charCodeAt(r));)r++;return r!==e.pos&&(a||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}],["linkify",function(e,a){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const r=e.pos;if(r+3>e.posMax)return!1;if(58!==e.src.charCodeAt(r))return!1;if(47!==e.src.charCodeAt(r+1))return!1;if(47!==e.src.charCodeAt(r+2))return!1;const n=e.pending.match(Yg);if(!n)return!1;const i=n[1],t=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!t)return!1;let o=t.url;if(o.length<=i.length)return!1;o=o.replace(/\*+$/,"");const s=e.md.normalizeLink(o);if(!e.md.validateLink(s))return!1;if(!a){e.pending=e.pending.slice(0,-i.length);const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="linkify",a.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(o);const r=e.push("link_close","a",-1);r.markup="linkify",r.info="auto"}return e.pos+=o.length-i.length,!0}],["newline",function(e,a){let r=e.pos;if(10!==e.src.charCodeAt(r))return!1;const n=e.pending.length-1,i=e.posMax;if(!a)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){let a=n-1;for(;a>=1&&32===e.pending.charCodeAt(a-1);)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<i&&lg(e.src.charCodeAt(r));)r++;return e.pos=r,!0}],["escape",function(e,a){let r=e.pos;const n=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(r++,r>=n)return!1;let i=e.src.charCodeAt(r);if(10===i){for(a||e.push("hardbreak","br",0),r++;r<n&&(i=e.src.charCodeAt(r),lg(i));)r++;return e.pos=r,!0}let t=e.src[r];if(i>=55296&&i<=56319&&r+1<n){const a=e.src.charCodeAt(r+1);a>=56320&&a<=57343&&(t+=e.src[r+1],r++)}const o="\\"+t;if(!a){const a=e.push("text_special","",0);i<256&&0!==Xg[i]?a.content=t:a.content=o,a.markup=o,a.info="escape"}return e.pos=r+1,!0}],["backticks",function(e,a){let r=e.pos;if(96!==e.src.charCodeAt(r))return!1;const n=r;r++;const i=e.posMax;for(;r<i&&96===e.src.charCodeAt(r);)r++;const t=e.src.slice(n,r),o=t.length;if(e.backticksScanned&&(e.backticks[o]||0)<=n)return a||(e.pending+=t),e.pos+=o,!0;let s,l=r;for(;-1!==(s=e.src.indexOf("`",l));){for(l=s+1;l<i&&96===e.src.charCodeAt(l);)l++;const n=l-s;if(n===o){if(!a){const a=e.push("code_inline","code",0);a.markup=t,a.content=e.src.slice(r,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[n]=s}return e.backticksScanned=!0,a||(e.pending+=t),e.pos+=o,!0}],["strikethrough",ep.tokenize],["emphasis",rp.tokenize],["link",function(e,a){let r,n,i,t,o="",s="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const d=e.pos,u=e.posMax,h=e.pos+1,m=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(m<0)return!1;let g=m+1;if(g<u&&40===e.src.charCodeAt(g)){for(c=!1,g++;g<u&&(r=e.src.charCodeAt(g),lg(r)||10===r);g++);if(g>=u)return!1;if(l=g,i=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?g=i.pos:o="",l=g;g<u&&(r=e.src.charCodeAt(g),lg(r)||10===r);g++);if(i=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<u&&l!==g&&i.ok)for(s=i.str,g=i.pos;g<u&&(r=e.src.charCodeAt(g),lg(r)||10===r);g++);}(g>=u||41!==e.src.charCodeAt(g))&&(c=!0),g++}if(c){if(void 0===e.env.references)return!1;if(g<u&&91===e.src.charCodeAt(g)?(l=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?n=e.src.slice(l,g++):g=m+1):g=m+1,n||(n=e.src.slice(h,m)),t=e.env.references[hg(n)],!t)return e.pos=d,!1;o=t.href,s=t.title}if(!a){e.pos=h,e.posMax=m;const a=[["href",o]];e.push("link_open","a",1).attrs=a,s&&a.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=g,e.posMax=u,!0}],["image",function(e,a){let r,n,i,t,o,s,l,c,d="";const u=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const m=e.pos+2,g=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(g<0)return!1;if(t=g+1,t<h&&40===e.src.charCodeAt(t)){for(t++;t<h&&(r=e.src.charCodeAt(t),lg(r)||10===r);t++);if(t>=h)return!1;for(c=t,s=e.md.helpers.parseLinkDestination(e.src,t,e.posMax),s.ok&&(d=e.md.normalizeLink(s.str),e.md.validateLink(d)?t=s.pos:d=""),c=t;t<h&&(r=e.src.charCodeAt(t),lg(r)||10===r);t++);if(s=e.md.helpers.parseLinkTitle(e.src,t,e.posMax),t<h&&c!==t&&s.ok)for(l=s.str,t=s.pos;t<h&&(r=e.src.charCodeAt(t),lg(r)||10===r);t++);else l="";if(t>=h||41!==e.src.charCodeAt(t))return e.pos=u,!1;t++}else{if(void 0===e.env.references)return!1;if(t<h&&91===e.src.charCodeAt(t)?(c=t+1,t=e.md.helpers.parseLinkLabel(e,t),t>=0?i=e.src.slice(c,t++):t=g+1):t=g+1,i||(i=e.src.slice(m,g)),o=e.env.references[hg(i)],!o)return e.pos=u,!1;d=o.href,l=o.title}if(!a){n=e.src.slice(m,g);const a=[];e.md.inline.parse(n,e.md,e.env,a);const r=e.push("image","img",0),i=[["src",d],["alt",""]];r.attrs=i,r.children=a,r.content=n,l&&i.push(["title",l])}return e.pos=t,e.posMax=h,!0}],["autolink",function(e,a){let r=e.pos;if(60!==e.src.charCodeAt(r))return!1;const n=e.pos,i=e.posMax;for(;;){if(++r>=i)return!1;const a=e.src.charCodeAt(r);if(60===a)return!1;if(62===a)break}const t=e.src.slice(n+1,r);if(ip.test(t)){const r=e.md.normalizeLink(t);if(!e.md.validateLink(r))return!1;if(!a){const a=e.push("link_open","a",1);a.attrs=[["href",r]],a.markup="autolink",a.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(t);const n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=t.length+2,!0}if(np.test(t)){const r=e.md.normalizeLink("mailto:"+t);if(!e.md.validateLink(r))return!1;if(!a){const a=e.push("link_open","a",1);a.attrs=[["href",r]],a.markup="autolink",a.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(t);const n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=t.length+2,!0}return!1}],["html_inline",function(e,a){if(!e.md.options.html)return!1;const r=e.posMax,n=e.pos;if(60!==e.src.charCodeAt(n)||n+2>=r)return!1;const i=e.src.charCodeAt(n+1);if(33!==i&&63!==i&&47!==i&&!function(e){const a=32|e;return a>=97&&a<=122}(i))return!1;const t=e.src.slice(n).match(Ug);if(!t)return!1;if(!a){const a=e.push("html_inline","",0);a.content=t[0],o=a.content,/^<a[>\s]/i.test(o)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(a.content)&&e.linkLevel--}var o;return e.pos+=t[0].length,!0}],["entity",function(e,a){const r=e.pos,n=e.posMax;if(38!==e.src.charCodeAt(r))return!1;if(r+1>=n)return!1;if(35===e.src.charCodeAt(r+1)){const n=e.src.slice(r).match(tp);if(n){if(!a){const a="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),r=e.push("text_special","",0);r.content=Jm(a)?Ym(a):Ym(65533),r.markup=n[0],r.info="entity"}return e.pos+=n[0].length,!0}}else{const n=e.src.slice(r).match(op);if(n){const r=Hm(n[0]);if(r!==n[0]){if(!a){const a=e.push("text_special","",0);a.content=r,a.markup=n[0],a.info="entity"}return e.pos+=n[0].length,!0}}}return!1}]],cp=[["balance_pairs",function(e){const a=e.tokens_meta,r=e.tokens_meta.length;sp(e.delimiters);for(let e=0;e<r;e++)a[e]&&a[e].delimiters&&sp(a[e].delimiters)}],["strikethrough",ep.postProcess],["emphasis",rp.postProcess],["fragments_join",function(e){let a,r,n=0;const i=e.tokens,t=e.tokens.length;for(a=r=0;a<t;a++)i[a].nesting<0&&n--,i[a].level=n,i[a].nesting>0&&n++,"text"===i[a].type&&a+1<t&&"text"===i[a+1].type?i[a+1].content=i[a].content+i[a+1].content:(a!==r&&(i[r]=i[a]),r++);a!==r&&(i.length=r)}]];function dp(){this.ruler=new fg;for(let e=0;e<lp.length;e++)this.ruler.push(lp[e][0],lp[e][1]);this.ruler2=new fg;for(let e=0;e<cp.length;e++)this.ruler2.push(cp[e][0],cp[e][1])}function up(e){return Array.prototype.slice.call(arguments,1).forEach((function(a){a&&Object.keys(a).forEach((function(r){e[r]=a[r]}))})),e}function hp(e){return Object.prototype.toString.call(e)}function mp(e){return"[object Function]"===hp(e)}function gp(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}dp.prototype.skipToken=function(e){const a=e.pos,r=this.ruler.getRules(""),n=r.length,i=e.md.options.maxNesting,t=e.cache;if(void 0!==t[a])return void(e.pos=t[a]);let o=!1;if(e.level<i){for(let i=0;i<n;i++)if(e.level++,o=r[i](e,!0),e.level--,o){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;o||e.pos++,t[a]=e.pos},dp.prototype.tokenize=function(e){const a=this.ruler.getRules(""),r=a.length,n=e.posMax,i=e.md.options.maxNesting;for(;e.pos<n;){const t=e.pos;let o=!1;if(e.level<i)for(let n=0;n<r;n++)if(o=a[n](e,!1),o){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(o){if(e.pos>=n)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},dp.prototype.parse=function(e,a,r,n){const i=new this.State(e,a,r,n);this.tokenize(i);const t=this.ruler2.getRules(""),o=t.length;for(let e=0;e<o;e++)t[e](i)},dp.prototype.State=Kg;const pp={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const bp={"http:":{validate:function(e,a,r){const n=e.slice(a);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,a,r){const n=e.slice(a);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?a>=3&&":"===e[a-3]||a>=3&&"/"===e[a-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,a,r){const n=e.slice(a);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},kp="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function fp(e){const a=e.re=function(e){const a={};e=e||{},a.src_Any=xm.source,a.src_Cc=qm.source,a.src_Z=_m.source,a.src_P=$m.source,a.src_ZPCc=[a.src_Z,a.src_P,a.src_Cc].join("|"),a.src_ZCc=[a.src_Z,a.src_Cc].join("|");const r="[><|]";return a.src_pseudo_letter="(?:(?![><|]|"+a.src_ZPCc+")"+a.src_Any+")",a.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",a.src_auth="(?:(?:(?!"+a.src_ZCc+"|[@/\\[\\]()]).)+@)?",a.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",a.src_host_terminator="(?=$|[><|]|"+a.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+a.src_ZPCc+"))",a.src_path="(?:[/?#](?:(?!"+a.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+a.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+a.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+a.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+a.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+a.src_ZCc+"|[']).)+\\'|\\'(?="+a.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+a.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+a.src_ZCc+"|$)|;(?!"+a.src_ZCc+"|$)|\\!+(?!"+a.src_ZCc+"|[!]|$)|\\?(?!"+a.src_ZCc+"|[?]|$))+|\\/)?",a.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',a.src_xn="xn--[a-z0-9\\-]{1,59}",a.src_domain_root="(?:"+a.src_xn+"|"+a.src_pseudo_letter+"{1,63})",a.src_domain="(?:"+a.src_xn+"|(?:"+a.src_pseudo_letter+")|(?:"+a.src_pseudo_letter+"(?:-|"+a.src_pseudo_letter+"){0,61}"+a.src_pseudo_letter+"))",a.src_host="(?:(?:(?:(?:"+a.src_domain+")\\.)*"+a.src_domain+"))",a.tpl_host_fuzzy="(?:"+a.src_ip4+"|(?:(?:(?:"+a.src_domain+")\\.)+(?:%TLDS%)))",a.tpl_host_no_ip_fuzzy="(?:(?:(?:"+a.src_domain+")\\.)+(?:%TLDS%))",a.src_host_strict=a.src_host+a.src_host_terminator,a.tpl_host_fuzzy_strict=a.tpl_host_fuzzy+a.src_host_terminator,a.src_host_port_strict=a.src_host+a.src_port+a.src_host_terminator,a.tpl_host_port_fuzzy_strict=a.tpl_host_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_port_no_ip_fuzzy_strict=a.tpl_host_no_ip_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+a.src_ZPCc+"|>|$))",a.tpl_email_fuzzy='(^|[><|]|"|\\(|'+a.src_ZCc+")("+a.src_email_name+"@"+a.tpl_host_fuzzy_strict+")",a.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+a.src_ZPCc+"))((?![$+<=>^`||])"+a.tpl_host_port_fuzzy_strict+a.src_path+")",a.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+a.src_ZPCc+"))((?![$+<=>^`||])"+a.tpl_host_port_no_ip_fuzzy_strict+a.src_path+")",a}(e.__opts__),r=e.__tlds__.slice();function n(e){return e.replace("%TLDS%",a.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(a.src_xn),a.src_tlds=r.join("|"),a.email_fuzzy=RegExp(n(a.tpl_email_fuzzy),"i"),a.link_fuzzy=RegExp(n(a.tpl_link_fuzzy),"i"),a.link_no_ip_fuzzy=RegExp(n(a.tpl_link_no_ip_fuzzy),"i"),a.host_fuzzy_test=RegExp(n(a.tpl_host_fuzzy_test),"i");const i=[];function t(e,a){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+a)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(a){const r=e.__schemas__[a];if(null===r)return;const n={validate:null,link:null};if(e.__compiled__[a]=n,"[object Object]"===hp(r))return!function(e){return"[object RegExp]"===hp(e)}(r.validate)?mp(r.validate)?n.validate=r.validate:t(a,r):n.validate=function(e){return function(a,r){const n=a.slice(r);return e.test(n)?n.match(e)[0].length:0}}(r.validate),void(mp(r.normalize)?n.normalize=r.normalize:r.normalize?t(a,r):n.normalize=function(e,a){a.normalize(e)});!function(e){return"[object String]"===hp(e)}(r)?t(a,r):i.push(a)})),i.forEach((function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,a){a.normalize(e)}};const o=Object.keys(e.__compiled__).filter((function(a){return a.length>0&&e.__compiled__[a]})).map(gp).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+a.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+a.src_ZPCc+"))("+o+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function yp(e,a){const r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+a,this.lastIndex=n+a,this.raw=i,this.text=i,this.url=i}function vp(e,a){const r=new yp(e,a);return e.__compiled__[r.schema].normalize(r,e),r}function wp(e,a){if(!(this instanceof wp))return new wp(e,a);var r;a||(r=e,Object.keys(r||{}).reduce((function(e,a){return e||pp.hasOwnProperty(a)}),!1)&&(a=e,e={})),this.__opts__=up({},pp,a),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=up({},bp,e),this.__compiled__={},this.__tlds__=kp,this.__tlds_replaced__=!1,this.re={},fp(this)}wp.prototype.add=function(e,a){return this.__schemas__[e]=a,fp(this),this},wp.prototype.set=function(e){return this.__opts__=up(this.__opts__,e),this},wp.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let a,r,n,i,t,o,s,l,c;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(a=s.exec(e));)if(i=this.testSchemaAt(e,a[2],s.lastIndex),i){this.__schema__=a[2],this.__index__=a.index+a[1].length,this.__last_index__=a.index+a[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&null!==(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(t=r.index+r[1].length,(this.__index__<0||t<this.__index__)&&(this.__schema__="",this.__index__=t,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&null!==(n=e.match(this.re.email_fuzzy))&&(t=n.index+n[1].length,o=n.index+n[0].length,(this.__index__<0||t<this.__index__||t===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=t,this.__last_index__=o))),this.__index__>=0},wp.prototype.pretest=function(e){return this.re.pretest.test(e)},wp.prototype.testSchemaAt=function(e,a,r){return this.__compiled__[a.toLowerCase()]?this.__compiled__[a.toLowerCase()].validate(e,r,this):0},wp.prototype.match=function(e){const a=[];let r=0;this.__index__>=0&&this.__text_cache__===e&&(a.push(vp(this,r)),r=this.__last_index__);let n=r?e.slice(r):e;for(;this.test(n);)a.push(vp(this,r)),n=n.slice(this.__last_index__),r+=this.__last_index__;return a.length?a:null},wp.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const a=this.re.schema_at_start.exec(e);if(!a)return null;const r=this.testSchemaAt(e,a[2],a[0].length);return r?(this.__schema__=a[2],this.__index__=a.index+a[1].length,this.__last_index__=a.index+a[0].length+r,vp(this,0)):null},wp.prototype.tlds=function(e,a){return e=Array.isArray(e)?e:[e],a?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,a,r){return e!==r[a-1]})).reverse(),fp(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,fp(this),this)},wp.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},wp.prototype.onCompile=function(){};const zp=2147483647,jp=36,xp=/^xn--/,qp=/[^\0-\x7F]/,$p=/[\x2E\u3002\uFF0E\uFF61]/g,Cp={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_p=Math.floor,Sp=String.fromCharCode;function Ep(e){throw new RangeError(Cp[e])}function Ap(e,a){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const i=function(e,a){const r=[];let n=e.length;for(;n--;)r[n]=a(e[n]);return r}((e=e.replace($p,".")).split("."),a).join(".");return n+i}function Op(e){const a=[];let r=0;const n=e.length;for(;r<n;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?a.push(((1023&i)<<10)+(1023&n)+65536):(a.push(i),r--)}else a.push(i)}return a}const Dp=function(e,a){return e+22+75*(e<26)-((0!=a)<<5)},Mp=function(e,a,r){let n=0;for(e=r?_p(e/700):e>>1,e+=_p(e/a);e>455;n+=jp)e=_p(e/35);return _p(n+36*e/(e+38))},Fp=function(e){const a=[],r=e.length;let n=0,i=128,t=72,o=e.lastIndexOf("-");o<0&&(o=0);for(let r=0;r<o;++r)e.charCodeAt(r)>=128&&Ep("not-basic"),a.push(e.charCodeAt(r));for(let l=o>0?o+1:0;l<r;){const o=n;for(let a=1,i=jp;;i+=jp){l>=r&&Ep("invalid-input");const o=(s=e.charCodeAt(l++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:jp;o>=jp&&Ep("invalid-input"),o>_p((zp-n)/a)&&Ep("overflow"),n+=o*a;const c=i<=t?1:i>=t+26?26:i-t;if(o<c)break;const d=jp-c;a>_p(zp/d)&&Ep("overflow"),a*=d}const c=a.length+1;t=Mp(n-o,c,0==o),_p(n/c)>zp-i&&Ep("overflow"),i+=_p(n/c),n%=c,a.splice(n++,0,i)}var s;return String.fromCodePoint(...a)},Tp=function(e){const a=[],r=(e=Op(e)).length;let n=128,i=0,t=72;for(const r of e)r<128&&a.push(Sp(r));const o=a.length;let s=o;for(o&&a.push("-");s<r;){let r=zp;for(const a of e)a>=n&&a<r&&(r=a);const l=s+1;r-n>_p((zp-i)/l)&&Ep("overflow"),i+=(r-n)*l,n=r;for(const r of e)if(r<n&&++i>zp&&Ep("overflow"),r===n){let e=i;for(let r=jp;;r+=jp){const n=r<=t?1:r>=t+26?26:r-t;if(e<n)break;const i=e-n,o=jp-n;a.push(Sp(Dp(n+i%o,0))),e=_p(i/o)}a.push(Sp(Dp(e,0))),t=Mp(i,l,s===o),i=0,++s}++i,++n}return a.join("")},Np=function(e){return Ap(e,(function(e){return qp.test(e)?"xn--"+Tp(e):e}))},Ip=function(e){return Ap(e,(function(e){return xp.test(e)?Fp(e.slice(4).toLowerCase()):e}))};const Pp={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},Rp=/^(vbscript|javascript|file|data):/,Lp=/^data:image\/(gif|png|jpeg|webp);/;function Bp(e){const a=e.trim().toLowerCase();return!Rp.test(a)||Lp.test(a)}const Vp=["http:","https:","mailto:"];function Up(e){const a=wm(e,!0);if(a.hostname&&(!a.protocol||Vp.indexOf(a.protocol)>=0))try{a.hostname=Np(a.hostname)}catch(e){}return sm(lm(a))}function Hp(e){const a=wm(e,!0);if(a.hostname&&(!a.protocol||Vp.indexOf(a.protocol)>=0))try{a.hostname=Ip(a.hostname)}catch(e){}return tm(lm(a),tm.defaultChars+"%")}function Gp(e,a){if(!(this instanceof Gp))return new Gp(e,a);a||Gm(e)||(a=e||{},e="default"),this.inline=new dp,this.block=new Zg,this.core=new Tg,this.renderer=new kg,this.linkify=new wp,this.validateLink=Bp,this.normalizeLink=Up,this.normalizeLinkText=Hp,this.utils=gg,this.helpers=Zm({},pg),this.options={},this.configure(e),a&&this.set(a)}Gp.prototype.set=function(e){return Zm(this.options,e),this},Gp.prototype.configure=function(e){const a=this;if(Gm(e)){const a=e;if(!(e=Pp[a]))throw new Error('Wrong `markdown-it` preset "'+a+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&a.set(e.options),e.components&&Object.keys(e.components).forEach((function(r){e.components[r].rules&&a[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&a[r].ruler2.enableOnly(e.components[r].rules2)})),this},Gp.prototype.enable=function(e,a){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(a){r=r.concat(this[a].ruler.enable(e,!0))}),this),r=r.concat(this.inline.ruler2.enable(e,!0));const n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!a)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},Gp.prototype.disable=function(e,a){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(a){r=r.concat(this[a].ruler.disable(e,!0))}),this),r=r.concat(this.inline.ruler2.disable(e,!0));const n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!a)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},Gp.prototype.use=function(e){const a=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,a),this},Gp.prototype.parse=function(e,a){if("string"!=typeof e)throw new Error("Input data should be a String");const r=new this.core.State(e,this,a);return this.core.process(r),r.tokens},Gp.prototype.render=function(e,a){return a=a||{},this.renderer.render(this.parse(e,a),this.options,a)},Gp.prototype.parseInline=function(e,a){const r=new this.core.State(e,this,a);return r.inlineMode=!0,this.core.process(r),r.tokens},Gp.prototype.renderInline=function(e,a){return a=a||{},this.renderer.render(this.parseInline(e,a),this.options,a)};const Wp=new Ul({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:()=>["p",0]},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["div",["hr"]]},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:e=>["h"+e.attrs.level,0]},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>({params:e.getAttribute("data-params")||""})}],toDOM:e=>["pre",e.attrs.params?{"data-params":e.attrs.params}:{},["code",0]]},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs:e=>({order:e.hasAttribute("start")?+e.getAttribute("start"):1,tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ol",{start:1==e.attrs.order?null:e.attrs.order,"data-tight":e.attrs.tight?"true":null},0]},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>({tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ul",{"data-tight":e.attrs.tight?"true":null},0]},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:e=>({src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")})}],toDOM:e=>["img",e.attrs]},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>"em"==e.type.name}],toDOM:()=>["em"]},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!=e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>"strong"==e.type.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>["strong"]},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),title:e.getAttribute("title")})}],toDOM:e=>["a",e.attrs]},code:{parseDOM:[{tag:"code"}],toDOM:()=>["code"]}}});class Zp{constructor(e,a){this.schema=e,this.tokenHandlers=a,this.stack=[{type:e.topNodeType,attrs:null,content:[],marks:tl.none}]}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return;let a,r=this.top(),n=r.content,i=n[n.length-1],t=this.schema.text(e,r.marks);i&&(a=function(e,a){if(e.isText&&a.isText&&tl.sameSet(e.marks,a.marks))return e.withText(e.text+a.text)}(i,t))?n[n.length-1]=a:n.push(t)}openMark(e){let a=this.top();a.marks=e.addToSet(a.marks)}closeMark(e){let a=this.top();a.marks=e.removeFromSet(a.marks)}parseTokens(e){for(let a=0;a<e.length;a++){let r=e[a],n=this.tokenHandlers[r.type];if(!n)throw new Error("Token type `"+r.type+"` not supported by Markdown parser");n(this,r,e,a)}}addNode(e,a,r){let n=this.top(),i=e.createAndFill(a,r,n?n.marks:[]);return i?(this.push(i),i):null}openNode(e,a){this.stack.push({type:e,attrs:a,content:[],marks:tl.none})}closeNode(){let e=this.stack.pop();return this.addNode(e.type,e.attrs,e.content)}}function Kp(e,a,r,n){return e.getAttrs?e.getAttrs(a,r,n):e.attrs instanceof Function?e.attrs(a):e.attrs}function Jp(e,a){return e.noCloseToken||"code_inline"==a||"code_block"==a||"fence"==a}function Yp(e){return"\n"==e[e.length-1]?e.slice(0,e.length-1):e}function Xp(){}function Qp(e,a){for(;++a<e.length;)if("list_item_open"!=e[a].type)return e[a].hidden;return!1}new class{constructor(e,a,r){this.schema=e,this.tokenizer=a,this.tokens=r,this.tokenHandlers=function(e,a){let r=Object.create(null);for(let n in a){let i=a[n];if(i.block){let a=e.nodeType(i.block);Jp(i,n)?r[n]=(e,r,n,t)=>{e.openNode(a,Kp(i,r,n,t)),e.addText(Yp(r.content)),e.closeNode()}:(r[n+"_open"]=(e,r,n,t)=>e.openNode(a,Kp(i,r,n,t)),r[n+"_close"]=e=>e.closeNode())}else if(i.node){let a=e.nodeType(i.node);r[n]=(e,r,n,t)=>e.addNode(a,Kp(i,r,n,t))}else if(i.mark){let a=e.marks[i.mark];Jp(i,n)?r[n]=(e,r,n,t)=>{e.openMark(a.create(Kp(i,r,n,t))),e.addText(Yp(r.content)),e.closeMark(a)}:(r[n+"_open"]=(e,r,n,t)=>e.openMark(a.create(Kp(i,r,n,t))),r[n+"_close"]=e=>e.closeMark(a))}else{if(!i.ignore)throw new RangeError("Unrecognized parsing spec "+JSON.stringify(i));Jp(i,n)?r[n]=Xp:(r[n+"_open"]=Xp,r[n+"_close"]=Xp)}}return r.text=(e,a)=>e.addText(a.content),r.inline=(e,a)=>e.parseTokens(a.children),r.softbreak=r.softbreak||(e=>e.addText(" ")),r}(e,r)}parse(e,a={}){let r,n=new Zp(this.schema,this.tokenHandlers);n.parseTokens(this.tokenizer.parse(e,a));do{r=n.closeNode()}while(n.stack.length);return r||this.schema.topNodeType.createAndFill()}}(Wp,Gp("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(e,a,r)=>({tight:Qp(a,r)})},ordered_list:{block:"ordered_list",getAttrs:(e,a,r)=>({order:+e.attrGet("start")||1,tight:Qp(a,r)})},heading:{block:"heading",getAttrs:e=>({level:+e.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:e=>({params:e.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:e=>({src:e.attrGet("src"),title:e.attrGet("title")||null,alt:e.children[0]&&e.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:e=>({href:e.attrGet("href"),title:e.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}});const eb={open:"",close:"",mixable:!0};const ab=new class{constructor(e,a,r={}){this.nodes=e,this.marks=a,this.options=r}serialize(e,a={}){a=Object.assign({},this.options,a);let r=new nb(this.nodes,this.marks,a);return r.renderContent(e),r.out}}({blockquote(e,a){e.wrapBlock("> ",null,a,(()=>e.renderContent(a)))},code_block(e,a){const r=a.textContent.match(/`{3,}/gm),n=r?r.sort().slice(-1)[0]+"`":"```";e.write(n+(a.attrs.params||"")+"\n"),e.text(a.textContent,!1),e.write("\n"),e.write(n),e.closeBlock(a)},heading(e,a){e.write(e.repeat("#",a.attrs.level)+" "),e.renderInline(a,!1),e.closeBlock(a)},horizontal_rule(e,a){e.write(a.attrs.markup||"---"),e.closeBlock(a)},bullet_list(e,a){e.renderList(a," ",(()=>(a.attrs.bullet||"*")+" "))},ordered_list(e,a){let r=a.attrs.order||1,n=String(r+a.childCount-1).length,i=e.repeat(" ",n+2);e.renderList(a,i,(a=>{let i=String(r+a);return e.repeat(" ",n-i.length)+i+". "}))},list_item(e,a){e.renderContent(a)},paragraph(e,a){e.renderInline(a),e.closeBlock(a)},image(e,a){e.write("]/g,"\\$&")+(a.attrs.title?' "'+a.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break(e,a,r,n){for(let i=n+1;i<r.childCount;i++)if(r.child(i).type!=a.type)return void e.write("\\\n")},text(e,a){e.text(a.text,!e.inAutolink)}},{em:{open:"*",close:"*",mixable:!0,expelEnclosingWhitespace:!0},strong:{open:"**",close:"**",mixable:!0,expelEnclosingWhitespace:!0},link:{open:(e,a,r,n)=>(e.inAutolink=function(e,a,r){if(e.attrs.title||!/^\w+:/.test(e.attrs.href))return!1;let n=a.child(r);return!(!n.isText||n.text!=e.attrs.href||n.marks[n.marks.length-1]!=e)&&(r==a.childCount-1||!e.isInSet(a.child(r+1).marks))}(a,r,n),e.inAutolink?"<":"["),close(e,a,r,n){let{inAutolink:i}=e;return e.inAutolink=void 0,i?">":"]("+a.attrs.href.replace(/[\(\)"]/g,"\\$&")+(a.attrs.title?` "${a.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open:(e,a,r,n)=>rb(r.child(n),-1),close:(e,a,r,n)=>rb(r.child(n-1),1),escape:!1}});function rb(e,a){let r,n=/`+/g,i=0;if(e.isText)for(;r=n.exec(e.text);)i=Math.max(i,r[0].length);let t=i>0&&a>0?" `":"`";for(let e=0;e<i;e++)t+="`";return i>0&&a<0&&(t+=" "),t}let nb=class{constructor(e,a,r){this.nodes=e,this.marks=a,this.options=r,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,void 0===this.options.tightLists&&(this.options.tightLists=!1),void 0===this.options.hardBreakNodeName&&(this.options.hardBreakNodeName="hard_break")}flushClose(e=2){if(this.closed){if(this.atBlank()||(this.out+="\n"),e>1){let a=this.delim,r=/\s+$/.exec(a);r&&(a=a.slice(0,a.length-r[0].length));for(let r=1;r<e;r++)this.out+=a+"\n"}this.closed=null}}getMark(e){let a=this.marks[e];if(!a){if(!1!==this.options.strict)throw new Error(`Mark type \`${e}\` not supported by Markdown renderer`);a=eb}return a}wrapBlock(e,a,r,n){let i=this.delim;this.write(null!=a?a:e),this.delim+=e,n(),this.delim=i,this.closeBlock(r)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+="\n")}write(e){this.flushClose(),this.delim&&this.atBlank()&&(this.out+=this.delim),e&&(this.out+=e)}closeBlock(e){this.closed=e}text(e,a=!0){let r=e.split("\n");for(let e=0;e<r.length;e++)this.write(),!a&&"["==r[e][0]&&/(^|[^\\])\!$/.test(this.out)&&(this.out=this.out.slice(0,this.out.length-1)+"\\!"),this.out+=a?this.esc(r[e],this.atBlockStart):r[e],e!=r.length-1&&(this.out+="\n")}render(e,a,r){if(this.nodes[e.type.name])this.nodes[e.type.name](this,e,a,r);else{if(!1!==this.options.strict)throw new Error("Token type `"+e.type.name+"` not supported by Markdown renderer");e.type.isLeaf||(e.type.inlineContent?this.renderInline(e):this.renderContent(e),e.isBlock&&this.closeBlock(e))}}renderContent(e){e.forEach(((a,r,n)=>this.render(a,e,n)))}renderInline(e,a=!0){this.atBlockStart=a;let r=[],n="",i=(a,i,t)=>{let o=a?a.marks:[];a&&a.type.name===this.options.hardBreakNodeName&&(o=o.filter((a=>{if(t+1==e.childCount)return!1;let r=e.child(t+1);return a.isInSet(r.marks)&&(!r.isText||/\S/.test(r.text))})));let s=n;if(n="",a&&a.isText&&o.some((e=>{let a=this.getMark(e.type.name);return a&&a.expelEnclosingWhitespace&&!e.isInSet(r)}))){let[e,n,i]=/^(\s*)(.*)$/m.exec(a.text);n&&(s+=n,(a=i?a.withText(i):null)||(o=r))}if(a&&a.isText&&o.some((a=>{let r=this.getMark(a.type.name);return r&&r.expelEnclosingWhitespace&&(t==e.childCount-1||!a.isInSet(e.child(t+1).marks))}))){let[e,i,t]=/^(.*?)(\s*)$/m.exec(a.text);t&&(n=t,(a=i?a.withText(i):null)||(o=r))}let l=o.length?o[o.length-1]:null,c=l&&!1===this.getMark(l.type.name).escape,d=o.length-(c?1:0);e:for(let e=0;e<d;e++){let a=o[e];if(!this.getMark(a.type.name).mixable)break;for(let n=0;n<r.length;n++){let i=r[n];if(!this.getMark(i.type.name).mixable)break;if(a.eq(i)){e>n?o=o.slice(0,n).concat(a).concat(o.slice(n,e)).concat(o.slice(e+1,d)):n>e&&(o=o.slice(0,e).concat(o.slice(e+1,n)).concat(a).concat(o.slice(n,d)));continue e}}}let u=0;for(;u<Math.min(r.length,d)&&o[u].eq(r[u]);)++u;for(;u<r.length;)this.text(this.markString(r.pop(),!1,e,t),!1);if(s&&this.text(s),a){for(;r.length<d;){let a=o[r.length];r.push(a),this.text(this.markString(a,!0,e,t),!1),this.atBlockStart=!1}c&&a.isText?this.text(this.markString(l,!0,e,t)+a.text+this.markString(l,!1,e,t+1),!1):this.render(a,e,t),this.atBlockStart=!1}(null==a?void 0:a.isText)&&a.nodeSize>0&&(this.atBlockStart=!1)};e.forEach(i),i(null,0,e.childCount),this.atBlockStart=!1}renderList(e,a,r){this.closed&&this.closed.type==e.type?this.flushClose(3):this.inTightList&&this.flushClose(1);let n=void 0!==e.attrs.tight?e.attrs.tight:this.options.tightLists,i=this.inTightList;this.inTightList=n,e.forEach(((i,t,o)=>{o&&n&&this.flushClose(1),this.wrapBlock(a,r(o),e,(()=>this.render(i,e,o)))})),this.inTightList=i}esc(e,a=!1){return e=e.replace(/[`*\\~\[\]_]/g,((a,r)=>"_"==a&&r>0&&r+1<e.length&&e[r-1].match(/\w/)&&e[r+1].match(/\w/)?a:"\\"+a)),a&&(e=e.replace(/^(\+[ ]|[\-*>])/,"\\$&").replace(/^(\s*)(#{1,6})(\s|$)/,"$1\\$2$3").replace(/^(\s*\d+)\.\s/,"$1\\. ")),this.options.escapeExtraCharacters&&(e=e.replace(this.options.escapeExtraCharacters,"\\$&")),e}quote(e){let a=-1==e.indexOf('"')?'""':-1==e.indexOf("'")?"''":"()";return a[0]+e+a[1]}repeat(e,a){let r="";for(let n=0;n<a;n++)r+=e;return r}markString(e,a,r,n){let i=this.getMark(e.type.name),t=a?i.open:i.close;return"string"==typeof t?t:t(this,e,r,n)}getEnclosingWhitespace(e){return{leading:(e.match(/^(\s+)/)||[void 0])[0],trailing:(e.match(/(\s+)$/)||[void 0])[0]}}};var ib={},tb={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},ob=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,sb={},lb={};function cb(e,a,r){var n,i,t,o,s,l="";for("string"!=typeof a&&(r=a,a=cb.defaultChars),void 0===r&&(r=!0),s=function(e){var a,r,n=lb[e];if(n)return n;for(n=lb[e]=[],a=0;a<128;a++)r=String.fromCharCode(a),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+a.toString(16).toUpperCase()).slice(-2));for(a=0;a<e.length;a++)n[e.charCodeAt(a)]=e[a];return n}(a),n=0,i=e.length;n<i;n++)if(t=e.charCodeAt(n),r&&37===t&&n+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(n+1,n+3)))l+=e.slice(n,n+3),n+=2;else if(t<128)l+=s[t];else if(t>=55296&&t<=57343){if(t>=55296&&t<=56319&&n+1<i&&(o=e.charCodeAt(n+1))>=56320&&o<=57343){l+=encodeURIComponent(e[n]+e[n+1]),n++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[n]);return l}cb.defaultChars=";/?:@&=+$,-_.!~*'()#",cb.componentChars="-_.!~*'()";var db=cb,ub={};function hb(e,a){var r;return"string"!=typeof a&&(a=hb.defaultChars),r=function(e){var a,r,n=ub[e];if(n)return n;for(n=ub[e]=[],a=0;a<128;a++)r=String.fromCharCode(a),n.push(r);for(a=0;a<e.length;a++)n[r=e.charCodeAt(a)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return n}(a),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var a,n,i,t,o,s,l,c="";for(a=0,n=e.length;a<n;a+=3)(i=parseInt(e.slice(a+1,a+3),16))<128?c+=r[i]:192==(224&i)&&a+3<n&&128==(192&(t=parseInt(e.slice(a+4,a+6),16)))?(c+=(l=i<<6&1984|63&t)<128?"��":String.fromCharCode(l),a+=3):224==(240&i)&&a+6<n&&(t=parseInt(e.slice(a+4,a+6),16),o=parseInt(e.slice(a+7,a+9),16),128==(192&t)&&128==(192&o))?(c+=(l=i<<12&61440|t<<6&4032|63&o)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),a+=6):240==(248&i)&&a+9<n&&(t=parseInt(e.slice(a+4,a+6),16),o=parseInt(e.slice(a+7,a+9),16),s=parseInt(e.slice(a+10,a+12),16),128==(192&t)&&128==(192&o)&&128==(192&s))?((l=i<<18&1835008|t<<12&258048|o<<6&4032|63&s)<65536||l>1114111?c+="����":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),a+=9):c+="�";return c}))}hb.defaultChars=";/?:@&=+$,#",hb.componentChars="";var mb=hb;function gb(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var pb=/^([a-z0-9.+-]+:)/i,bb=/:[0-9]*$/,kb=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,fb=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),yb=["'"].concat(fb),vb=["%","/","?",";","#"].concat(yb),wb=["/","?","#"],zb=/^[+a-z0-9A-Z_-]{0,63}$/,jb=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xb={javascript:!0,"javascript:":!0},qb={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};gb.prototype.parse=function(e,a){var r,n,i,t,o,s=e;if(s=s.trim(),!a&&1===e.split("#").length){var l=kb.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=pb.exec(s);if(c&&(i=(c=c[0]).toLowerCase(),this.protocol=c,s=s.substr(c.length)),(a||c||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(o="//"===s.substr(0,2))||c&&xb[c]||(s=s.substr(2),this.slashes=!0)),!xb[c]&&(o||c&&!qb[c])){var d,u,h=-1;for(r=0;r<wb.length;r++)-1!==(t=s.indexOf(wb[r]))&&(-1===h||t<h)&&(h=t);for(-1!==(u=-1===h?s.lastIndexOf("@"):s.lastIndexOf("@",h))&&(d=s.slice(0,u),s=s.slice(u+1),this.auth=d),h=-1,r=0;r<vb.length;r++)-1!==(t=s.indexOf(vb[r]))&&(-1===h||t<h)&&(h=t);-1===h&&(h=s.length),":"===s[h-1]&&h--;var m=s.slice(0,h);s=s.slice(h),this.parseHost(m),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g){var p=this.hostname.split(/\./);for(r=0,n=p.length;r<n;r++){var b=p[r];if(b&&!b.match(zb)){for(var k="",f=0,y=b.length;f<y;f++)b.charCodeAt(f)>127?k+="x":k+=b[f];if(!k.match(zb)){var v=p.slice(0,r),w=p.slice(r+1),z=b.match(jb);z&&(v.push(z[1]),w.unshift(z[2])),w.length&&(s=w.join(".")+s),this.hostname=v.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var j=s.indexOf("#");-1!==j&&(this.hash=s.substr(j),s=s.slice(0,j));var x=s.indexOf("?");return-1!==x&&(this.search=s.substr(x),s=s.slice(0,x)),s&&(this.pathname=s),qb[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},gb.prototype.parseHost=function(e){var a=bb.exec(e);a&&(":"!==(a=a[0])&&(this.port=a.substr(1)),e=e.substr(0,e.length-a.length)),e&&(this.hostname=e)};var $b=function(e,a){if(e&&e instanceof gb)return e;var r=new gb;return r.parse(e,a),r};sb.encode=db,sb.decode=mb,sb.format=function(e){var a="";return a+=e.protocol||"",a+=e.slashes?"//":"",a+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?a+="["+e.hostname+"]":a+=e.hostname||"",a+=e.port?":"+e.port:"",a+=e.pathname||"",a+=e.search||"",a+=e.hash||""},sb.parse=$b;var Cb,_b,Sb,Eb,Ab,Ob,Db,Mb,Fb,Tb={};function Nb(){return _b?Cb:(_b=1,Cb=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)}function Ib(){return Eb?Sb:(Eb=1,Sb=/[\0-\x1F\x7F-\x9F]/)}function Pb(){return Mb?Db:(Mb=1,Db=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/)}function Rb(){return Fb||(Fb=1,Tb.Any=Nb(),Tb.Cc=Ib(),Tb.Cf=Ob?Ab:(Ob=1,Ab=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Tb.P=ob,Tb.Z=Pb()),Tb}!function(e){var a=Object.prototype.hasOwnProperty;function r(e,r){return a.call(e,r)}function n(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function i(e){if(e>65535){var a=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(a,r)}return String.fromCharCode(e)}var t=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,o=new RegExp(t.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),s=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,l=tb;var c=/[&<>"]/,d=/[&<>"]/g,u={"&":"&","<":"<",">":">",'"':"""};function h(e){return u[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var g=ob;e.lib={},e.lib.mdurl=sb,e.lib.ucmicro=Rb(),e.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(a){if(a){if("object"!=typeof a)throw new TypeError(a+"must be object");Object.keys(a).forEach((function(r){e[r]=a[r]}))}})),e},e.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},e.has=r,e.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(t,"$1")},e.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(o,(function(e,a,t){return a||function(e,a){var t;return r(l,a)?l[a]:35===a.charCodeAt(0)&&s.test(a)&&n(t="x"===a[1].toLowerCase()?parseInt(a.slice(2),16):parseInt(a.slice(1),10))?i(t):e}(e,t)}))},e.isValidEntityCode=n,e.fromCodePoint=i,e.escapeHtml=function(e){return c.test(e)?e.replace(d,h):e},e.arrayReplaceAt=function(e,a,r){return[].concat(e.slice(0,a),r,e.slice(a+1))},e.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},e.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},e.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},e.isPunctChar=function(e){return g.test(e)},e.escapeRE=function(e){return e.replace(m,"\\$&")},e.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}}(ib);var Lb={},Bb=ib.unescapeAll,Vb=ib.unescapeAll;Lb.parseLinkLabel=function(e,a,r){var n,i,t,o,s=-1,l=e.posMax,c=e.pos;for(e.pos=a+1,n=1;e.pos<l;){if(93===(t=e.src.charCodeAt(e.pos))&&0===--n){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===t)if(o===e.pos-1)n++;else if(r)return e.pos=c,-1}return i&&(s=e.pos),e.pos=c,s},Lb.parseLinkDestination=function(e,a,r){var n,i,t=a,o={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<r;){if(10===(n=e.charCodeAt(t)))return o;if(60===n)return o;if(62===n)return o.pos=t+1,o.str=Bb(e.slice(a+1,t)),o.ok=!0,o;92===n&&t+1<r?t+=2:t++}return o}for(i=0;t<r&&32!==(n=e.charCodeAt(t))&&!(n<32||127===n);)if(92===n&&t+1<r){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===n&&++i>32)return o;if(41===n){if(0===i)break;i--}t++}return a===t||0!==i||(o.str=Bb(e.slice(a,t)),o.pos=t,o.ok=!0),o},Lb.parseLinkTitle=function(e,a,r){var n,i,t=0,o=a,s={ok:!1,pos:0,lines:0,str:""};if(o>=r)return s;if(34!==(i=e.charCodeAt(o))&&39!==i&&40!==i)return s;for(o++,40===i&&(i=41);o<r;){if((n=e.charCodeAt(o))===i)return s.pos=o+1,s.lines=t,s.str=Vb(e.slice(a+1,o)),s.ok=!0,s;if(40===n&&41===i)return s;10===n?t++:92===n&&o+1<r&&(o++,10===e.charCodeAt(o)&&t++),o++}return s};var Ub=ib.assign,Hb=ib.unescapeAll,Gb=ib.escapeHtml,Wb={};function Zb(){this.rules=Ub({},Wb)}Wb.code_inline=function(e,a,r,n,i){var t=e[a];return"<code"+i.renderAttrs(t)+">"+Gb(t.content)+"</code>"},Wb.code_block=function(e,a,r,n,i){var t=e[a];return"<pre"+i.renderAttrs(t)+"><code>"+Gb(e[a].content)+"</code></pre>\n"},Wb.fence=function(e,a,r,n,i){var t,o,s,l,c,d=e[a],u=d.info?Hb(d.info).trim():"",h="",m="";return u&&(h=(s=u.split(/(\s+)/g))[0],m=s.slice(2).join("")),0===(t=r.highlight&&r.highlight(d.content,h,m)||Gb(d.content)).indexOf("<pre")?t+"\n":u?(o=d.attrIndex("class"),l=d.attrs?d.attrs.slice():[],o<0?l.push(["class",r.langPrefix+h]):(l[o]=l[o].slice(),l[o][1]+=" "+r.langPrefix+h),c={attrs:l},"<pre><code"+i.renderAttrs(c)+">"+t+"</code></pre>\n"):"<pre><code"+i.renderAttrs(d)+">"+t+"</code></pre>\n"},Wb.image=function(e,a,r,n,i){var t=e[a];return t.attrs[t.attrIndex("alt")][1]=i.renderInlineAsText(t.children,r,n),i.renderToken(e,a,r)},Wb.hardbreak=function(e,a,r){return r.xhtmlOut?"<br />\n":"<br>\n"},Wb.softbreak=function(e,a,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},Wb.text=function(e,a){return Gb(e[a].content)},Wb.html_block=function(e,a){return e[a].content},Wb.html_inline=function(e,a){return e[a].content},Zb.prototype.renderAttrs=function(e){var a,r,n;if(!e.attrs)return"";for(n="",a=0,r=e.attrs.length;a<r;a++)n+=" "+Gb(e.attrs[a][0])+'="'+Gb(e.attrs[a][1])+'"';return n},Zb.prototype.renderToken=function(e,a,r){var n,i="",t=!1,o=e[a];return o.hidden?"":(o.block&&-1!==o.nesting&&a&&e[a-1].hidden&&(i+="\n"),i+=(-1===o.nesting?"</":"<")+o.tag,i+=this.renderAttrs(o),0===o.nesting&&r.xhtmlOut&&(i+=" /"),o.block&&(t=!0,1===o.nesting&&a+1<e.length&&("inline"===(n=e[a+1]).type||n.hidden||-1===n.nesting&&n.tag===o.tag)&&(t=!1)),i+=t?">\n":">")},Zb.prototype.renderInline=function(e,a,r){for(var n,i="",t=this.rules,o=0,s=e.length;o<s;o++)void 0!==t[n=e[o].type]?i+=t[n](e,o,a,r,this):i+=this.renderToken(e,o,a);return i},Zb.prototype.renderInlineAsText=function(e,a,r){for(var n="",i=0,t=e.length;i<t;i++)"text"===e[i].type?n+=e[i].content:"image"===e[i].type?n+=this.renderInlineAsText(e[i].children,a,r):"softbreak"===e[i].type&&(n+="\n");return n},Zb.prototype.render=function(e,a,r){var n,i,t,o="",s=this.rules;for(n=0,i=e.length;n<i;n++)"inline"===(t=e[n].type)?o+=this.renderInline(e[n].children,a,r):void 0!==s[t]?o+=s[t](e,n,a,r,this):o+=this.renderToken(e,n,a,r);return o};var Kb=Zb;function Jb(){this.__rules__=[],this.__cache__=null}Jb.prototype.__find__=function(e){for(var a=0;a<this.__rules__.length;a++)if(this.__rules__[a].name===e)return a;return-1},Jb.prototype.__compile__=function(){var e=this,a=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){a.indexOf(e)<0&&a.push(e)}))})),e.__cache__={},a.forEach((function(a){e.__cache__[a]=[],e.__rules__.forEach((function(r){r.enabled&&(a&&r.alt.indexOf(a)<0||e.__cache__[a].push(r.fn))}))}))},Jb.prototype.at=function(e,a,r){var n=this.__find__(e),i=r||{};if(-1===n)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=a,this.__rules__[n].alt=i.alt||[],this.__cache__=null},Jb.prototype.before=function(e,a,r,n){var i=this.__find__(e),t=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:a,enabled:!0,fn:r,alt:t.alt||[]}),this.__cache__=null},Jb.prototype.after=function(e,a,r,n){var i=this.__find__(e),t=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:a,enabled:!0,fn:r,alt:t.alt||[]}),this.__cache__=null},Jb.prototype.push=function(e,a,r){var n=r||{};this.__rules__.push({name:e,enabled:!0,fn:a,alt:n.alt||[]}),this.__cache__=null},Jb.prototype.enable=function(e,a){Array.isArray(e)||(e=[e]);var r=[];return e.forEach((function(e){var n=this.__find__(e);if(n<0){if(a)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!0,r.push(e)}),this),this.__cache__=null,r},Jb.prototype.enableOnly=function(e,a){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,a)},Jb.prototype.disable=function(e,a){Array.isArray(e)||(e=[e]);var r=[];return e.forEach((function(e){var n=this.__find__(e);if(n<0){if(a)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!1,r.push(e)}),this),this.__cache__=null,r},Jb.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var Yb=Jb,Xb=/\r\n?|\n/g,Qb=/\0/g,ek=ib.arrayReplaceAt;function ak(e){return/^<\/a\s*>/i.test(e)}var rk=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,nk=/\((c|tm|r)\)/i,ik=/\((c|tm|r)\)/gi,tk={c:"©",r:"®",tm:"™"};function ok(e,a){return tk[a.toLowerCase()]}function sk(e){var a,r,n=0;for(a=e.length-1;a>=0;a--)"text"!==(r=e[a]).type||n||(r.content=r.content.replace(ik,ok)),"link_open"===r.type&&"auto"===r.info&&n--,"link_close"===r.type&&"auto"===r.info&&n++}function lk(e){var a,r,n=0;for(a=e.length-1;a>=0;a--)"text"!==(r=e[a]).type||n||rk.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&n--,"link_close"===r.type&&"auto"===r.info&&n++}var ck=ib.isWhiteSpace,dk=ib.isPunctChar,uk=ib.isMdAsciiPunct,hk=/['"]/,mk=/['"]/g;function gk(e,a,r){return e.slice(0,a)+r+e.slice(a+1)}function pk(e,a){var r,n,i,t,o,s,l,c,d,u,h,m,g,p,b,k,f,y,v,w,z;for(v=[],r=0;r<e.length;r++){for(n=e[r],l=e[r].level,f=v.length-1;f>=0&&!(v[f].level<=l);f--);if(v.length=f+1,"text"===n.type){o=0,s=(i=n.content).length;e:for(;o<s&&(mk.lastIndex=o,t=mk.exec(i));){if(b=k=!0,o=t.index+1,y="'"===t[0],d=32,t.index-1>=0)d=i.charCodeAt(t.index-1);else for(f=r-1;f>=0&&("softbreak"!==e[f].type&&"hardbreak"!==e[f].type);f--)if(e[f].content){d=e[f].content.charCodeAt(e[f].content.length-1);break}if(u=32,o<s)u=i.charCodeAt(o);else for(f=r+1;f<e.length&&("softbreak"!==e[f].type&&"hardbreak"!==e[f].type);f++)if(e[f].content){u=e[f].content.charCodeAt(0);break}if(h=uk(d)||dk(String.fromCharCode(d)),m=uk(u)||dk(String.fromCharCode(u)),g=ck(d),(p=ck(u))?b=!1:m&&(g||h||(b=!1)),g?k=!1:h&&(p||m||(k=!1)),34===u&&'"'===t[0]&&d>=48&&d<=57&&(k=b=!1),b&&k&&(b=h,k=m),b||k){if(k)for(f=v.length-1;f>=0&&(c=v[f],!(v[f].level<l));f--)if(c.single===y&&v[f].level===l){c=v[f],y?(w=a.md.options.quotes[2],z=a.md.options.quotes[3]):(w=a.md.options.quotes[0],z=a.md.options.quotes[1]),n.content=gk(n.content,t.index,z),e[c.token].content=gk(e[c.token].content,c.pos,w),o+=z.length-1,c.token===r&&(o+=w.length-1),s=(i=n.content).length,v.length=f;continue e}b?v.push({token:r,pos:t.index,single:y,level:l}):k&&y&&(n.content=gk(n.content,t.index,"’"))}else y&&(n.content=gk(n.content,t.index,"’"))}}}}function bk(e,a,r){this.type=e,this.tag=a,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}bk.prototype.attrIndex=function(e){var a,r,n;if(!this.attrs)return-1;for(r=0,n=(a=this.attrs).length;r<n;r++)if(a[r][0]===e)return r;return-1},bk.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},bk.prototype.attrSet=function(e,a){var r=this.attrIndex(e),n=[e,a];r<0?this.attrPush(n):this.attrs[r]=n},bk.prototype.attrGet=function(e){var a=this.attrIndex(e),r=null;return a>=0&&(r=this.attrs[a][1]),r},bk.prototype.attrJoin=function(e,a){var r=this.attrIndex(e);r<0?this.attrPush([e,a]):this.attrs[r][1]=this.attrs[r][1]+" "+a};var kk=bk,fk=kk;function yk(e,a,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=a}yk.prototype.Token=fk;var vk=yk,wk=Yb,zk=[["normalize",function(e){var a;a=(a=e.src.replace(Xb,"\n")).replace(Qb,"�"),e.src=a}],["block",function(e){var a;e.inlineMode?((a=new e.Token("inline","",0)).content=e.src,a.map=[0,1],a.children=[],e.tokens.push(a)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){var a,r,n,i=e.tokens;for(r=0,n=i.length;r<n;r++)"inline"===(a=i[r]).type&&e.md.inline.parse(a.content,e.md,e.env,a.children)}],["linkify",function(e){var a,r,n,i,t,o,s,l,c,d,u,h,m,g,p,b,k,f,y=e.tokens;if(e.md.options.linkify)for(r=0,n=y.length;r<n;r++)if("inline"===y[r].type&&e.md.linkify.pretest(y[r].content))for(m=0,a=(i=y[r].children).length-1;a>=0;a--)if("link_close"!==(o=i[a]).type){if("html_inline"===o.type&&(f=o.content,/^<a[>\s]/i.test(f)&&m>0&&m--,ak(o.content)&&m++),!(m>0)&&"text"===o.type&&e.md.linkify.test(o.content)){for(c=o.content,k=e.md.linkify.match(c),s=[],h=o.level,u=0,k.length>0&&0===k[0].index&&a>0&&"text_special"===i[a-1].type&&(k=k.slice(1)),l=0;l<k.length;l++)g=k[l].url,p=e.md.normalizeLink(g),e.md.validateLink(p)&&(b=k[l].text,b=k[l].schema?"mailto:"!==k[l].schema||/^mailto:/i.test(b)?e.md.normalizeLinkText(b):e.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,""),(d=k[l].index)>u&&((t=new e.Token("text","",0)).content=c.slice(u,d),t.level=h,s.push(t)),(t=new e.Token("link_open","a",1)).attrs=[["href",p]],t.level=h++,t.markup="linkify",t.info="auto",s.push(t),(t=new e.Token("text","",0)).content=b,t.level=h,s.push(t),(t=new e.Token("link_close","a",-1)).level=--h,t.markup="linkify",t.info="auto",s.push(t),u=k[l].lastIndex);u<c.length&&((t=new e.Token("text","",0)).content=c.slice(u),t.level=h,s.push(t)),y[r].children=i=ek(i,a,s)}}else for(a--;i[a].level!==o.level&&"link_open"!==i[a].type;)a--}],["replacements",function(e){var a;if(e.md.options.typographer)for(a=e.tokens.length-1;a>=0;a--)"inline"===e.tokens[a].type&&(nk.test(e.tokens[a].content)&&sk(e.tokens[a].children),rk.test(e.tokens[a].content)&&lk(e.tokens[a].children))}],["smartquotes",function(e){var a;if(e.md.options.typographer)for(a=e.tokens.length-1;a>=0;a--)"inline"===e.tokens[a].type&&hk.test(e.tokens[a].content)&&pk(e.tokens[a].children,e)}],["text_join",function(e){var a,r,n,i,t,o,s=e.tokens;for(a=0,r=s.length;a<r;a++)if("inline"===s[a].type){for(t=(n=s[a].children).length,i=0;i<t;i++)"text_special"===n[i].type&&(n[i].type="text");for(i=o=0;i<t;i++)"text"===n[i].type&&i+1<t&&"text"===n[i+1].type?n[i+1].content=n[i].content+n[i+1].content:(i!==o&&(n[o]=n[i]),o++);i!==o&&(n.length=o)}}]];function jk(){this.ruler=new wk;for(var e=0;e<zk.length;e++)this.ruler.push(zk[e][0],zk[e][1])}jk.prototype.process=function(e){var a,r,n;for(a=0,r=(n=this.ruler.getRules("")).length;a<r;a++)n[a](e)},jk.prototype.State=vk;var xk=jk,qk=ib.isSpace;function $k(e,a){var r=e.bMarks[a]+e.tShift[a],n=e.eMarks[a];return e.src.slice(r,n)}function Ck(e){var a,r=[],n=0,i=e.length,t=!1,o=0,s="";for(a=e.charCodeAt(n);n<i;)124===a&&(t?(s+=e.substring(o,n-1),o=n):(r.push(s+e.substring(o,n)),s="",o=n+1)),t=92===a,n++,a=e.charCodeAt(n);return r.push(s+e.substring(o)),r}var _k=ib.isSpace,Sk=ib.isSpace,Ek=ib.isSpace;function Ak(e,a){var r,n,i,t;return n=e.bMarks[a]+e.tShift[a],i=e.eMarks[a],42!==(r=e.src.charCodeAt(n++))&&45!==r&&43!==r||n<i&&(t=e.src.charCodeAt(n),!Ek(t))?-1:n}function Ok(e,a){var r,n=e.bMarks[a]+e.tShift[a],i=n,t=e.eMarks[a];if(i+1>=t)return-1;if((r=e.src.charCodeAt(i++))<48||r>57)return-1;for(;;){if(i>=t)return-1;if(!((r=e.src.charCodeAt(i++))>=48&&r<=57)){if(41===r||46===r)break;return-1}if(i-n>=10)return-1}return i<t&&(r=e.src.charCodeAt(i),!Ek(r))?-1:i}var Dk=ib.normalizeReference,Mk=ib.isSpace,Fk={},Tk="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Nk="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Ik=new RegExp("^(?:"+Tk+"|"+Nk+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),Pk=new RegExp("^(?:"+Tk+"|"+Nk+")");Fk.HTML_TAG_RE=Ik,Fk.HTML_OPEN_CLOSE_TAG_RE=Pk;var Rk=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Lk=Fk.HTML_OPEN_CLOSE_TAG_RE,Bk=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Rk.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Lk.source+"\\s*$"),/^$/,!1]],Vk=ib.isSpace,Uk=kk,Hk=ib.isSpace;function Gk(e,a,r,n){var i,t,o,s,l,c,d,u;for(this.src=e,this.md=a,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",u=!1,o=s=c=d=0,l=(t=this.src).length;s<l;s++){if(i=t.charCodeAt(s),!u){if(Hk(i)){c++,9===i?d+=4-d%4:d++;continue}u=!0}10!==i&&s!==l-1||(10!==i&&s++,this.bMarks.push(o),this.eMarks.push(s),this.tShift.push(c),this.sCount.push(d),this.bsCount.push(0),u=!1,c=0,d=0,o=s+1)}this.bMarks.push(t.length),this.eMarks.push(t.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Gk.prototype.push=function(e,a,r){var n=new Uk(e,a,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},Gk.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Gk.prototype.skipEmptyLines=function(e){for(var a=this.lineMax;e<a&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Gk.prototype.skipSpaces=function(e){for(var a,r=this.src.length;e<r&&(a=this.src.charCodeAt(e),Hk(a));e++);return e},Gk.prototype.skipSpacesBack=function(e,a){if(e<=a)return e;for(;e>a;)if(!Hk(this.src.charCodeAt(--e)))return e+1;return e},Gk.prototype.skipChars=function(e,a){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===a;e++);return e},Gk.prototype.skipCharsBack=function(e,a,r){if(e<=r)return e;for(;e>r;)if(a!==this.src.charCodeAt(--e))return e+1;return e},Gk.prototype.getLines=function(e,a,r,n){var i,t,o,s,l,c,d,u=e;if(e>=a)return"";for(c=new Array(a-e),i=0;u<a;u++,i++){for(t=0,d=s=this.bMarks[u],l=u+1<a||n?this.eMarks[u]+1:this.eMarks[u];s<l&&t<r;){if(o=this.src.charCodeAt(s),Hk(o))9===o?t+=4-(t+this.bsCount[u])%4:t++;else{if(!(s-d<this.tShift[u]))break;t++}s++}c[i]=t>r?new Array(t-r+1).join(" ")+this.src.slice(s,l):this.src.slice(s,l)}return c.join("")},Gk.prototype.Token=Uk;var Wk=Gk,Zk=Yb,Kk=[["table",function(e,a,r,n){var i,t,o,s,l,c,d,u,h,m,g,p,b,k,f,y,v,w;if(a+2>r)return!1;if(c=a+1,e.sCount[c]<e.blkIndent)return!1;if(e.sCount[c]-e.blkIndent>=4)return!1;if((o=e.bMarks[c]+e.tShift[c])>=e.eMarks[c])return!1;if(124!==(v=e.src.charCodeAt(o++))&&45!==v&&58!==v)return!1;if(o>=e.eMarks[c])return!1;if(124!==(w=e.src.charCodeAt(o++))&&45!==w&&58!==w&&!qk(w))return!1;if(45===v&&qk(w))return!1;for(;o<e.eMarks[c];){if(124!==(i=e.src.charCodeAt(o))&&45!==i&&58!==i&&!qk(i))return!1;o++}for(d=(t=$k(e,a+1)).split("|"),m=[],s=0;s<d.length;s++){if(!(g=d[s].trim())){if(0===s||s===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;58===g.charCodeAt(g.length-1)?m.push(58===g.charCodeAt(0)?"center":"right"):58===g.charCodeAt(0)?m.push("left"):m.push("")}if(-1===(t=$k(e,a).trim()).indexOf("|"))return!1;if(e.sCount[a]-e.blkIndent>=4)return!1;if((d=Ck(t)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),0===(u=d.length)||u!==m.length)return!1;if(n)return!0;for(k=e.parentType,e.parentType="table",y=e.md.block.ruler.getRules("blockquote"),(h=e.push("table_open","table",1)).map=p=[a,0],(h=e.push("thead_open","thead",1)).map=[a,a+1],(h=e.push("tr_open","tr",1)).map=[a,a+1],s=0;s<d.length;s++)h=e.push("th_open","th",1),m[s]&&(h.attrs=[["style","text-align:"+m[s]]]),(h=e.push("inline","",0)).content=d[s].trim(),h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),c=a+2;c<r&&!(e.sCount[c]<e.blkIndent);c++){for(f=!1,s=0,l=y.length;s<l;s++)if(y[s](e,c,r,!0)){f=!0;break}if(f)break;if(!(t=$k(e,c).trim()))break;if(e.sCount[c]-e.blkIndent>=4)break;for((d=Ck(t)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),c===a+2&&((h=e.push("tbody_open","tbody",1)).map=b=[a+2,0]),(h=e.push("tr_open","tr",1)).map=[c,c+1],s=0;s<u;s++)h=e.push("td_open","td",1),m[s]&&(h.attrs=[["style","text-align:"+m[s]]]),(h=e.push("inline","",0)).content=d[s]?d[s].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return b&&(h=e.push("tbody_close","tbody",-1),b[1]=c),h=e.push("table_close","table",-1),p[1]=c,e.parentType=k,e.line=c,!0},["paragraph","reference"]],["code",function(e,a,r){var n,i,t;if(e.sCount[a]-e.blkIndent<4)return!1;for(i=n=a+1;n<r;)if(e.isEmpty(n))n++;else{if(!(e.sCount[n]-e.blkIndent>=4))break;i=++n}return e.line=i,(t=e.push("code_block","code",0)).content=e.getLines(a,i,4+e.blkIndent,!1)+"\n",t.map=[a,e.line],!0}],["fence",function(e,a,r,n){var i,t,o,s,l,c,d,u=!1,h=e.bMarks[a]+e.tShift[a],m=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(h+3>m)return!1;if(126!==(i=e.src.charCodeAt(h))&&96!==i)return!1;if(l=h,(t=(h=e.skipChars(h,i))-l)<3)return!1;if(d=e.src.slice(l,h),o=e.src.slice(h,m),96===i&&o.indexOf(String.fromCharCode(i))>=0)return!1;if(n)return!0;for(s=a;!(++s>=r)&&!((h=l=e.bMarks[s]+e.tShift[s])<(m=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(h)===i&&!(e.sCount[s]-e.blkIndent>=4||(h=e.skipChars(h,i))-l<t||(h=e.skipSpaces(h))<m)){u=!0;break}return t=e.sCount[a],e.line=s+(u?1:0),(c=e.push("fence","code",0)).info=o,c.content=e.getLines(a+1,s,t,!0),c.markup=d,c.map=[a,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,a,r,n){var i,t,o,s,l,c,d,u,h,m,g,p,b,k,f,y,v,w,z,j,x=e.lineMax,q=e.bMarks[a]+e.tShift[a],$=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(q))return!1;if(n)return!0;for(m=[],g=[],k=[],f=[],w=e.md.block.ruler.getRules("blockquote"),b=e.parentType,e.parentType="blockquote",u=a;u<r&&(j=e.sCount[u]<e.blkIndent,!((q=e.bMarks[u]+e.tShift[u])>=($=e.eMarks[u])));u++)if(62!==e.src.charCodeAt(q++)||j){if(c)break;for(v=!1,o=0,l=w.length;o<l;o++)if(w[o](e,u,r,!0)){v=!0;break}if(v){e.lineMax=u,0!==e.blkIndent&&(m.push(e.bMarks[u]),g.push(e.bsCount[u]),f.push(e.tShift[u]),k.push(e.sCount[u]),e.sCount[u]-=e.blkIndent);break}m.push(e.bMarks[u]),g.push(e.bsCount[u]),f.push(e.tShift[u]),k.push(e.sCount[u]),e.sCount[u]=-1}else{for(s=e.sCount[u]+1,32===e.src.charCodeAt(q)?(q++,s++,i=!1,y=!0):9===e.src.charCodeAt(q)?(y=!0,(e.bsCount[u]+s)%4==3?(q++,s++,i=!1):i=!0):y=!1,h=s,m.push(e.bMarks[u]),e.bMarks[u]=q;q<$&&(t=e.src.charCodeAt(q),_k(t));)9===t?h+=4-(h+e.bsCount[u]+(i?1:0))%4:h++,q++;c=q>=$,g.push(e.bsCount[u]),e.bsCount[u]=e.sCount[u]+1+(y?1:0),k.push(e.sCount[u]),e.sCount[u]=h-s,f.push(e.tShift[u]),e.tShift[u]=q-e.bMarks[u]}for(p=e.blkIndent,e.blkIndent=0,(z=e.push("blockquote_open","blockquote",1)).markup=">",z.map=d=[a,0],e.md.block.tokenize(e,a,u),(z=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=x,e.parentType=b,d[1]=e.line,o=0;o<f.length;o++)e.bMarks[o+a]=m[o],e.tShift[o+a]=f[o],e.sCount[o+a]=k[o],e.bsCount[o+a]=g[o];return e.blkIndent=p,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,a,r,n){var i,t,o,s,l=e.bMarks[a]+e.tShift[a],c=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(t=1;l<c;){if((o=e.src.charCodeAt(l++))!==i&&!Sk(o))return!1;o===i&&t++}return!(t<3)&&(n||(e.line=a+1,(s=e.push("hr","hr",0)).map=[a,e.line],s.markup=Array(t+1).join(String.fromCharCode(i))),!0)},["paragraph","reference","blockquote","list"]],["list",function(e,a,r,n){var i,t,o,s,l,c,d,u,h,m,g,p,b,k,f,y,v,w,z,j,x,q,$,C,_,S,E,A=a,O=!1,D=!0;if(e.sCount[A]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[A]-e.listIndent>=4&&e.sCount[A]<e.blkIndent)return!1;if(n&&"paragraph"===e.parentType&&e.sCount[A]>=e.blkIndent&&(O=!0),(q=Ok(e,A))>=0){if(d=!0,C=e.bMarks[A]+e.tShift[A],b=Number(e.src.slice(C,q-1)),O&&1!==b)return!1}else{if(!((q=Ak(e,A))>=0))return!1;d=!1}if(O&&e.skipSpaces(q)>=e.eMarks[A])return!1;if(n)return!0;for(p=e.src.charCodeAt(q-1),g=e.tokens.length,d?(E=e.push("ordered_list_open","ol",1),1!==b&&(E.attrs=[["start",b]])):E=e.push("bullet_list_open","ul",1),E.map=m=[A,0],E.markup=String.fromCharCode(p),$=!1,S=e.md.block.ruler.getRules("list"),v=e.parentType,e.parentType="list";A<r;){for(x=q,k=e.eMarks[A],c=f=e.sCount[A]+q-(e.bMarks[A]+e.tShift[A]);x<k;){if(9===(i=e.src.charCodeAt(x)))f+=4-(f+e.bsCount[A])%4;else{if(32!==i)break;f++}x++}if((l=(t=x)>=k?1:f-c)>4&&(l=1),s=c+l,(E=e.push("list_item_open","li",1)).markup=String.fromCharCode(p),E.map=u=[A,0],d&&(E.info=e.src.slice(C,q-1)),j=e.tight,z=e.tShift[A],w=e.sCount[A],y=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=s,e.tight=!0,e.tShift[A]=t-e.bMarks[A],e.sCount[A]=f,t>=k&&e.isEmpty(A+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,A,r,!0),e.tight&&!$||(D=!1),$=e.line-A>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=y,e.tShift[A]=z,e.sCount[A]=w,e.tight=j,(E=e.push("list_item_close","li",-1)).markup=String.fromCharCode(p),A=e.line,u[1]=A,A>=r)break;if(e.sCount[A]<e.blkIndent)break;if(e.sCount[A]-e.blkIndent>=4)break;for(_=!1,o=0,h=S.length;o<h;o++)if(S[o](e,A,r,!0)){_=!0;break}if(_)break;if(d){if((q=Ok(e,A))<0)break;C=e.bMarks[A]+e.tShift[A]}else if((q=Ak(e,A))<0)break;if(p!==e.src.charCodeAt(q-1))break}return(E=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(p),m[1]=A,e.line=A,e.parentType=v,D&&function(e,a){var r,n,i=e.level+2;for(r=a+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===i&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,g),!0},["paragraph","reference","blockquote"]],["reference",function(e,a,r,n){var i,t,o,s,l,c,d,u,h,m,g,p,b,k,f,y,v=0,w=e.bMarks[a]+e.tShift[a],z=e.eMarks[a],j=a+1;if(e.sCount[a]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w<z;)if(93===e.src.charCodeAt(w)&&92!==e.src.charCodeAt(w-1)){if(w+1===z)return!1;if(58!==e.src.charCodeAt(w+1))return!1;break}for(s=e.lineMax,f=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";j<s&&!e.isEmpty(j);j++)if(!(e.sCount[j]-e.blkIndent>3||e.sCount[j]<0)){for(k=!1,c=0,d=f.length;c<d;c++)if(f[c](e,j,s,!0)){k=!0;break}if(k)break}for(z=(b=e.getLines(a,j,e.blkIndent,!1).trim()).length,w=1;w<z;w++){if(91===(i=b.charCodeAt(w)))return!1;if(93===i){h=w;break}(10===i||92===i&&++w<z&&10===b.charCodeAt(w))&&v++}if(h<0||58!==b.charCodeAt(h+1))return!1;for(w=h+2;w<z;w++)if(10===(i=b.charCodeAt(w)))v++;else if(!Mk(i))break;if(!(g=e.md.helpers.parseLinkDestination(b,w,z)).ok)return!1;if(l=e.md.normalizeLink(g.str),!e.md.validateLink(l))return!1;for(t=w=g.pos,o=v+=g.lines,p=w;w<z;w++)if(10===(i=b.charCodeAt(w)))v++;else if(!Mk(i))break;for(g=e.md.helpers.parseLinkTitle(b,w,z),w<z&&p!==w&&g.ok?(y=g.str,w=g.pos,v+=g.lines):(y="",w=t,v=o);w<z&&(i=b.charCodeAt(w),Mk(i));)w++;if(w<z&&10!==b.charCodeAt(w)&&y)for(y="",w=t,v=o;w<z&&(i=b.charCodeAt(w),Mk(i));)w++;return!(w<z&&10!==b.charCodeAt(w))&&(!!(u=Dk(b.slice(1,h)))&&(n||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[u]&&(e.env.references[u]={title:y,href:l}),e.parentType=m,e.line=a+v+1),!0))}],["html_block",function(e,a,r,n){var i,t,o,s,l=e.bMarks[a]+e.tShift[a],c=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(s=e.src.slice(l,c),i=0;i<Bk.length&&!Bk[i][0].test(s);i++);if(i===Bk.length)return!1;if(n)return Bk[i][2];if(t=a+1,!Bk[i][1].test(s))for(;t<r&&!(e.sCount[t]<e.blkIndent);t++)if(l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t],s=e.src.slice(l,c),Bk[i][1].test(s)){0!==s.length&&t++;break}return e.line=t,(o=e.push("html_block","",0)).map=[a,t],o.content=e.getLines(a,t,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,a,r,n){var i,t,o,s,l=e.bMarks[a]+e.tShift[a],c=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=c)return!1;for(t=1,i=e.src.charCodeAt(++l);35===i&&l<c&&t<=6;)t++,i=e.src.charCodeAt(++l);return!(t>6||l<c&&!Vk(i))&&(n||(c=e.skipSpacesBack(c,l),(o=e.skipCharsBack(c,35,l))>l&&Vk(e.src.charCodeAt(o-1))&&(c=o),e.line=a+1,(s=e.push("heading_open","h"+String(t),1)).markup="########".slice(0,t),s.map=[a,e.line],(s=e.push("inline","",0)).content=e.src.slice(l,c).trim(),s.map=[a,e.line],s.children=[],(s=e.push("heading_close","h"+String(t),-1)).markup="########".slice(0,t)),!0)},["paragraph","reference","blockquote"]],["lheading",function(e,a,r){var n,i,t,o,s,l,c,d,u,h,m=a+1,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[a]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";m<r&&!e.isEmpty(m);m++)if(!(e.sCount[m]-e.blkIndent>3)){if(e.sCount[m]>=e.blkIndent&&(l=e.bMarks[m]+e.tShift[m])<(c=e.eMarks[m])&&(45===(u=e.src.charCodeAt(l))||61===u)&&(l=e.skipChars(l,u),(l=e.skipSpaces(l))>=c)){d=61===u?1:2;break}if(!(e.sCount[m]<0)){for(i=!1,t=0,o=g.length;t<o;t++)if(g[t](e,m,r,!0)){i=!0;break}if(i)break}}return!!d&&(n=e.getLines(a,m,e.blkIndent,!1).trim(),e.line=m+1,(s=e.push("heading_open","h"+String(d),1)).markup=String.fromCharCode(u),s.map=[a,e.line],(s=e.push("inline","",0)).content=n,s.map=[a,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(d),-1)).markup=String.fromCharCode(u),e.parentType=h,!0)}],["paragraph",function(e,a,r){var n,i,t,o,s,l,c=a+1,d=e.md.block.ruler.getRules("paragraph");for(l=e.parentType,e.parentType="paragraph";c<r&&!e.isEmpty(c);c++)if(!(e.sCount[c]-e.blkIndent>3||e.sCount[c]<0)){for(i=!1,t=0,o=d.length;t<o;t++)if(d[t](e,c,r,!0)){i=!0;break}if(i)break}return n=e.getLines(a,c,e.blkIndent,!1).trim(),e.line=c,(s=e.push("paragraph_open","p",1)).map=[a,e.line],(s=e.push("inline","",0)).content=n,s.map=[a,e.line],s.children=[],s=e.push("paragraph_close","p",-1),e.parentType=l,!0}]];function Jk(){this.ruler=new Zk;for(var e=0;e<Kk.length;e++)this.ruler.push(Kk[e][0],Kk[e][1],{alt:(Kk[e][2]||[]).slice()})}Jk.prototype.tokenize=function(e,a,r){for(var n,i,t,o=this.ruler.getRules(""),s=o.length,l=a,c=!1,d=e.md.options.maxNesting;l<r&&(e.line=l=e.skipEmptyLines(l),!(l>=r))&&!(e.sCount[l]<e.blkIndent);){if(e.level>=d){e.line=r;break}for(t=e.line,i=0;i<s;i++)if(n=o[i](e,l,r,!1)){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!n)throw new Error("none of the block rules matched");e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),(l=e.line)<r&&e.isEmpty(l)&&(c=!0,l++,e.line=l)}},Jk.prototype.parse=function(e,a,r,n){var i;e&&(i=new this.State(e,a,r,n),this.tokenize(i,i.line,i.lineMax))},Jk.prototype.State=Wk;var Yk=Jk;function Xk(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var Qk=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,ef=ib.isSpace,af=ib.isSpace,rf=[],nf=0;nf<256;nf++)rf.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){rf[e.charCodeAt(0)]=1}));var tf={};function of(e,a){var r,n,i,t,o,s=[],l=a.length;for(r=0;r<l;r++)126===(i=a[r]).marker&&-1!==i.end&&(t=a[i.end],(o=e.tokens[i.token]).type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",(o=e.tokens[t.token]).type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="","text"===e.tokens[t.token-1].type&&"~"===e.tokens[t.token-1].content&&s.push(t.token-1));for(;s.length;){for(n=(r=s.pop())+1;n<e.tokens.length&&"s_close"===e.tokens[n].type;)n++;r!==--n&&(o=e.tokens[n],e.tokens[n]=e.tokens[r],e.tokens[r]=o)}}tf.tokenize=function(e,a){var r,n,i,t,o=e.pos,s=e.src.charCodeAt(o);if(a)return!1;if(126!==s)return!1;if(i=(n=e.scanDelims(e.pos,!0)).length,t=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=t,i--),r=0;r<i;r+=2)e.push("text","",0).content=t+t,e.delimiters.push({marker:s,length:0,token:e.tokens.length-1,end:-1,open:n.can_open,close:n.can_close});return e.pos+=n.length,!0},tf.postProcess=function(e){var a,r=e.tokens_meta,n=e.tokens_meta.length;for(of(e,e.delimiters),a=0;a<n;a++)r[a]&&r[a].delimiters&&of(e,r[a].delimiters)};var sf={};function lf(e,a){var r,n,i,t,o,s;for(r=a.length-1;r>=0;r--)95!==(n=a[r]).marker&&42!==n.marker||-1!==n.end&&(i=a[n.end],s=r>0&&a[r-1].end===n.end+1&&a[r-1].marker===n.marker&&a[r-1].token===n.token-1&&a[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),(t=e.tokens[n.token]).type=s?"strong_open":"em_open",t.tag=s?"strong":"em",t.nesting=1,t.markup=s?o+o:o,t.content="",(t=e.tokens[i.token]).type=s?"strong_close":"em_close",t.tag=s?"strong":"em",t.nesting=-1,t.markup=s?o+o:o,t.content="",s&&(e.tokens[a[r-1].token].content="",e.tokens[a[n.end+1].token].content="",r--))}sf.tokenize=function(e,a){var r,n,i=e.pos,t=e.src.charCodeAt(i);if(a)return!1;if(95!==t&&42!==t)return!1;for(n=e.scanDelims(e.pos,42===t),r=0;r<n.length;r++)e.push("text","",0).content=String.fromCharCode(t),e.delimiters.push({marker:t,length:n.length,token:e.tokens.length-1,end:-1,open:n.can_open,close:n.can_close});return e.pos+=n.length,!0},sf.postProcess=function(e){var a,r=e.tokens_meta,n=e.tokens_meta.length;for(lf(e,e.delimiters),a=0;a<n;a++)r[a]&&r[a].delimiters&&lf(e,r[a].delimiters)};var cf=ib.normalizeReference,df=ib.isSpace,uf=ib.normalizeReference,hf=ib.isSpace,mf=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,gf=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,pf=Fk.HTML_TAG_RE;var bf=tb,kf=ib.has,ff=ib.isValidEntityCode,yf=ib.fromCodePoint,vf=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,wf=/^&([a-z][a-z0-9]{1,31});/i;function zf(e){var a,r,n,i,t,o,s,l,c={},d=e.length;if(d){var u=0,h=-2,m=[];for(a=0;a<d;a++)if(n=e[a],m.push(0),e[u].marker===n.marker&&h===n.token-1||(u=a),h=n.token,n.length=n.length||0,n.close){for(c.hasOwnProperty(n.marker)||(c[n.marker]=[-1,-1,-1,-1,-1,-1]),t=c[n.marker][(n.open?3:0)+n.length%3],o=r=u-m[u]-1;r>t;r-=m[r]+1)if((i=e[r]).marker===n.marker&&i.open&&i.end<0&&(s=!1,(i.close||n.open)&&(i.length+n.length)%3==0&&(i.length%3==0&&n.length%3==0||(s=!0)),!s)){l=r>0&&!e[r-1].open?m[r-1]+1:0,m[a]=a-r+l,m[r]=l,n.open=!1,i.end=a,i.close=!1,o=-1,h=-2;break}-1!==o&&(c[n.marker][(n.open?3:0)+(n.length||0)%3]=o)}}}var jf=kk,xf=ib.isWhiteSpace,qf=ib.isPunctChar,$f=ib.isMdAsciiPunct;function Cf(e,a,r,n){this.src=e,this.env=r,this.md=a,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Cf.prototype.pushPending=function(){var e=new jf("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Cf.prototype.push=function(e,a,r){this.pending&&this.pushPending();var n=new jf(e,a,r),i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n},Cf.prototype.scanDelims=function(e,a){var r,n,i,t,o,s,l,c,d,u=e,h=!0,m=!0,g=this.posMax,p=this.src.charCodeAt(e);for(r=e>0?this.src.charCodeAt(e-1):32;u<g&&this.src.charCodeAt(u)===p;)u++;return i=u-e,n=u<g?this.src.charCodeAt(u):32,l=$f(r)||qf(String.fromCharCode(r)),d=$f(n)||qf(String.fromCharCode(n)),s=xf(r),(c=xf(n))?h=!1:d&&(s||l||(h=!1)),s?m=!1:l&&(c||d||(m=!1)),a?(t=h,o=m):(t=h&&(!m||l),o=m&&(!h||d)),{can_open:t,can_close:o,length:i}},Cf.prototype.Token=jf;var _f=Cf,Sf=Yb,Ef=[["text",function(e,a){for(var r=e.pos;r<e.posMax&&!Xk(e.src.charCodeAt(r));)r++;return r!==e.pos&&(a||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}],["linkify",function(e,a){var r,n,i,t,o,s,l;return!!e.md.options.linkify&&(!(e.linkLevel>0)&&(!((r=e.pos)+3>e.posMax)&&(58===e.src.charCodeAt(r)&&(47===e.src.charCodeAt(r+1)&&(47===e.src.charCodeAt(r+2)&&(!!(n=e.pending.match(Qk))&&(i=n[1],!!(t=e.md.linkify.matchAtStart(e.src.slice(r-i.length)))&&(!((o=t.url).length<=i.length)&&(o=o.replace(/\*+$/,""),s=e.md.normalizeLink(o),!!e.md.validateLink(s)&&(a||(e.pending=e.pending.slice(0,-i.length),(l=e.push("link_open","a",1)).attrs=[["href",s]],l.markup="linkify",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(o),(l=e.push("link_close","a",-1)).markup="linkify",l.info="auto"),e.pos+=o.length-i.length,!0))))))))))}],["newline",function(e,a){var r,n,i,t=e.pos;if(10!==e.src.charCodeAt(t))return!1;if(r=e.pending.length-1,n=e.posMax,!a)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){for(i=r-1;i>=1&&32===e.pending.charCodeAt(i-1);)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(t++;t<n&&ef(e.src.charCodeAt(t));)t++;return e.pos=t,!0}],["escape",function(e,a){var r,n,i,t,o,s=e.pos,l=e.posMax;if(92!==e.src.charCodeAt(s))return!1;if(++s>=l)return!1;if(10===(r=e.src.charCodeAt(s))){for(a||e.push("hardbreak","br",0),s++;s<l&&(r=e.src.charCodeAt(s),af(r));)s++;return e.pos=s,!0}return t=e.src[s],r>=55296&&r<=56319&&s+1<l&&(n=e.src.charCodeAt(s+1))>=56320&&n<=57343&&(t+=e.src[s+1],s++),i="\\"+t,a||(o=e.push("text_special","",0),r<256&&0!==rf[r]?o.content=t:o.content=i,o.markup=i,o.info="escape"),e.pos=s+1,!0}],["backticks",function(e,a){var r,n,i,t,o,s,l,c,d=e.pos;if(96!==e.src.charCodeAt(d))return!1;for(r=d,d++,n=e.posMax;d<n&&96===e.src.charCodeAt(d);)d++;if(l=(i=e.src.slice(r,d)).length,e.backticksScanned&&(e.backticks[l]||0)<=r)return a||(e.pending+=i),e.pos+=l,!0;for(s=d;-1!==(o=e.src.indexOf("`",s));){for(s=o+1;s<n&&96===e.src.charCodeAt(s);)s++;if((c=s-o)===l)return a||((t=e.push("code_inline","code",0)).markup=i,t.content=e.src.slice(d,o).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[c]=o}return e.backticksScanned=!0,a||(e.pending+=i),e.pos+=l,!0}],["strikethrough",tf.tokenize],["emphasis",sf.tokenize],["link",function(e,a){var r,n,i,t,o,s,l,c,d="",u="",h=e.pos,m=e.posMax,g=e.pos,p=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(o=e.pos+1,(t=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((s=t+1)<m&&40===e.src.charCodeAt(s)){for(p=!1,s++;s<m&&(n=e.src.charCodeAt(s),df(n)||10===n);s++);if(s>=m)return!1;if(g=s,(l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok){for(d=e.md.normalizeLink(l.str),e.md.validateLink(d)?s=l.pos:d="",g=s;s<m&&(n=e.src.charCodeAt(s),df(n)||10===n);s++);if(l=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<m&&g!==s&&l.ok)for(u=l.str,s=l.pos;s<m&&(n=e.src.charCodeAt(s),df(n)||10===n);s++);}(s>=m||41!==e.src.charCodeAt(s))&&(p=!0),s++}if(p){if(void 0===e.env.references)return!1;if(s<m&&91===e.src.charCodeAt(s)?(g=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?i=e.src.slice(g,s++):s=t+1):s=t+1,i||(i=e.src.slice(o,t)),!(c=e.env.references[cf(i)]))return e.pos=h,!1;d=c.href,u=c.title}return a||(e.pos=o,e.posMax=t,e.push("link_open","a",1).attrs=r=[["href",d]],u&&r.push(["title",u]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)),e.pos=s,e.posMax=m,!0}],["image",function(e,a){var r,n,i,t,o,s,l,c,d,u,h,m,g,p="",b=e.pos,k=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(s=e.pos+2,(o=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((l=o+1)<k&&40===e.src.charCodeAt(l)){for(l++;l<k&&(n=e.src.charCodeAt(l),hf(n)||10===n);l++);if(l>=k)return!1;for(g=l,(d=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(p=e.md.normalizeLink(d.str),e.md.validateLink(p)?l=d.pos:p=""),g=l;l<k&&(n=e.src.charCodeAt(l),hf(n)||10===n);l++);if(d=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<k&&g!==l&&d.ok)for(u=d.str,l=d.pos;l<k&&(n=e.src.charCodeAt(l),hf(n)||10===n);l++);else u="";if(l>=k||41!==e.src.charCodeAt(l))return e.pos=b,!1;l++}else{if(void 0===e.env.references)return!1;if(l<k&&91===e.src.charCodeAt(l)?(g=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?t=e.src.slice(g,l++):l=o+1):l=o+1,t||(t=e.src.slice(s,o)),!(c=e.env.references[uf(t)]))return e.pos=b,!1;p=c.href,u=c.title}return a||(i=e.src.slice(s,o),e.md.inline.parse(i,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=r=[["src",p],["alt",""]],h.children=m,h.content=i,u&&r.push(["title",u])),e.pos=l,e.posMax=k,!0}],["autolink",function(e,a){var r,n,i,t,o,s,l=e.pos;if(60!==e.src.charCodeAt(l))return!1;for(o=e.pos,s=e.posMax;;){if(++l>=s)return!1;if(60===(t=e.src.charCodeAt(l)))return!1;if(62===t)break}return r=e.src.slice(o+1,l),gf.test(r)?(n=e.md.normalizeLink(r),!!e.md.validateLink(n)&&(a||((i=e.push("link_open","a",1)).attrs=[["href",n]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(r),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=r.length+2,!0)):!!mf.test(r)&&(n=e.md.normalizeLink("mailto:"+r),!!e.md.validateLink(n)&&(a||((i=e.push("link_open","a",1)).attrs=[["href",n]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(r),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=r.length+2,!0))}],["html_inline",function(e,a){var r,n,i,t,o,s=e.pos;return!!e.md.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(s)||s+2>=i)&&(!(33!==(r=e.src.charCodeAt(s+1))&&63!==r&&47!==r&&!function(e){var a=32|e;return a>=97&&a<=122}(r))&&(!!(n=e.src.slice(s).match(pf))&&(a||((t=e.push("html_inline","",0)).content=n[0],o=t.content,/^<a[>\s]/i.test(o)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--),e.pos+=n[0].length,!0))))}],["entity",function(e,a){var r,n,i,t=e.pos,o=e.posMax;if(38!==e.src.charCodeAt(t))return!1;if(t+1>=o)return!1;if(35===e.src.charCodeAt(t+1)){if(n=e.src.slice(t).match(vf))return a||(r="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),(i=e.push("text_special","",0)).content=ff(r)?yf(r):yf(65533),i.markup=n[0],i.info="entity"),e.pos+=n[0].length,!0}else if((n=e.src.slice(t).match(wf))&&kf(bf,n[1]))return a||((i=e.push("text_special","",0)).content=bf[n[1]],i.markup=n[0],i.info="entity"),e.pos+=n[0].length,!0;return!1}]],Af=[["balance_pairs",function(e){var a,r=e.tokens_meta,n=e.tokens_meta.length;for(zf(e.delimiters),a=0;a<n;a++)r[a]&&r[a].delimiters&&zf(r[a].delimiters)}],["strikethrough",tf.postProcess],["emphasis",sf.postProcess],["fragments_join",function(e){var a,r,n=0,i=e.tokens,t=e.tokens.length;for(a=r=0;a<t;a++)i[a].nesting<0&&n--,i[a].level=n,i[a].nesting>0&&n++,"text"===i[a].type&&a+1<t&&"text"===i[a+1].type?i[a+1].content=i[a].content+i[a+1].content:(a!==r&&(i[r]=i[a]),r++);a!==r&&(i.length=r)}]];function Of(){var e;for(this.ruler=new Sf,e=0;e<Ef.length;e++)this.ruler.push(Ef[e][0],Ef[e][1]);for(this.ruler2=new Sf,e=0;e<Af.length;e++)this.ruler2.push(Af[e][0],Af[e][1])}Of.prototype.skipToken=function(e){var a,r,n=e.pos,i=this.ruler.getRules(""),t=i.length,o=e.md.options.maxNesting,s=e.cache;if(void 0===s[n]){if(e.level<o){for(r=0;r<t;r++)if(e.level++,a=i[r](e,!0),e.level--,a){if(n>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,s[n]=e.pos}else e.pos=s[n]},Of.prototype.tokenize=function(e){for(var a,r,n,i=this.ruler.getRules(""),t=i.length,o=e.posMax,s=e.md.options.maxNesting;e.pos<o;){if(n=e.pos,e.level<s)for(r=0;r<t;r++)if(a=i[r](e,!1)){if(n>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(a){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Of.prototype.parse=function(e,a,r,n){var i,t,o,s=new this.State(e,a,r,n);for(this.tokenize(s),o=(t=this.ruler2.getRules("")).length,i=0;i<o;i++)t[i](s)},Of.prototype.State=_f;var Df,Mf,Ff=Of;function Tf(){return Mf?Df:(Mf=1,Df=function(e){var a={};e=e||{},a.src_Any=Nb().source,a.src_Cc=Ib().source,a.src_Z=Pb().source,a.src_P=ob.source,a.src_ZPCc=[a.src_Z,a.src_P,a.src_Cc].join("|"),a.src_ZCc=[a.src_Z,a.src_Cc].join("|");var r="[><|]";return a.src_pseudo_letter="(?:(?![><|]|"+a.src_ZPCc+")"+a.src_Any+")",a.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",a.src_auth="(?:(?:(?!"+a.src_ZCc+"|[@/\\[\\]()]).)+@)?",a.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",a.src_host_terminator="(?=$|[><|]|"+a.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+a.src_ZPCc+"))",a.src_path="(?:[/?#](?:(?!"+a.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+a.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+a.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+a.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+a.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+a.src_ZCc+"|[']).)+\\'|\\'(?="+a.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+a.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+a.src_ZCc+"|$)|;(?!"+a.src_ZCc+"|$)|\\!+(?!"+a.src_ZCc+"|[!]|$)|\\?(?!"+a.src_ZCc+"|[?]|$))+|\\/)?",a.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',a.src_xn="xn--[a-z0-9\\-]{1,59}",a.src_domain_root="(?:"+a.src_xn+"|"+a.src_pseudo_letter+"{1,63})",a.src_domain="(?:"+a.src_xn+"|(?:"+a.src_pseudo_letter+")|(?:"+a.src_pseudo_letter+"(?:-|"+a.src_pseudo_letter+"){0,61}"+a.src_pseudo_letter+"))",a.src_host="(?:(?:(?:(?:"+a.src_domain+")\\.)*"+a.src_domain+"))",a.tpl_host_fuzzy="(?:"+a.src_ip4+"|(?:(?:(?:"+a.src_domain+")\\.)+(?:%TLDS%)))",a.tpl_host_no_ip_fuzzy="(?:(?:(?:"+a.src_domain+")\\.)+(?:%TLDS%))",a.src_host_strict=a.src_host+a.src_host_terminator,a.tpl_host_fuzzy_strict=a.tpl_host_fuzzy+a.src_host_terminator,a.src_host_port_strict=a.src_host+a.src_port+a.src_host_terminator,a.tpl_host_port_fuzzy_strict=a.tpl_host_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_port_no_ip_fuzzy_strict=a.tpl_host_no_ip_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+a.src_ZPCc+"|>|$))",a.tpl_email_fuzzy='(^|[><|]|"|\\(|'+a.src_ZCc+")("+a.src_email_name+"@"+a.tpl_host_fuzzy_strict+")",a.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+a.src_ZPCc+"))((?![$+<=>^`||])"+a.tpl_host_port_fuzzy_strict+a.src_path+")",a.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+a.src_ZPCc+"))((?![$+<=>^`||])"+a.tpl_host_port_no_ip_fuzzy_strict+a.src_path+")",a})}function Nf(e){return Array.prototype.slice.call(arguments,1).forEach((function(a){a&&Object.keys(a).forEach((function(r){e[r]=a[r]}))})),e}function If(e){return Object.prototype.toString.call(e)}function Pf(e){return"[object Function]"===If(e)}function Rf(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Lf={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var Bf={"http:":{validate:function(e,a,r){var n=e.slice(a);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,a,r){var n=e.slice(a);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?a>=3&&":"===e[a-3]||a>=3&&"/"===e[a-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,a,r){var n=e.slice(a);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},Vf="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Uf(e){var a=e.re=Tf()(e.__opts__),r=e.__tlds__.slice();function n(e){return e.replace("%TLDS%",a.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(a.src_xn),a.src_tlds=r.join("|"),a.email_fuzzy=RegExp(n(a.tpl_email_fuzzy),"i"),a.link_fuzzy=RegExp(n(a.tpl_link_fuzzy),"i"),a.link_no_ip_fuzzy=RegExp(n(a.tpl_link_no_ip_fuzzy),"i"),a.host_fuzzy_test=RegExp(n(a.tpl_host_fuzzy_test),"i");var i=[];function t(e,a){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+a)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(a){var r=e.__schemas__[a];if(null!==r){var n={validate:null,link:null};if(e.__compiled__[a]=n,"[object Object]"===If(r))return!function(e){return"[object RegExp]"===If(e)}(r.validate)?Pf(r.validate)?n.validate=r.validate:t(a,r):n.validate=function(e){return function(a,r){var n=a.slice(r);return e.test(n)?n.match(e)[0].length:0}}(r.validate),void(Pf(r.normalize)?n.normalize=r.normalize:r.normalize?t(a,r):n.normalize=function(e,a){a.normalize(e)});!function(e){return"[object String]"===If(e)}(r)?t(a,r):i.push(a)}})),i.forEach((function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,a){a.normalize(e)}};var o=Object.keys(e.__compiled__).filter((function(a){return a.length>0&&e.__compiled__[a]})).map(Rf).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+a.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+a.src_ZPCc+"))("+o+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function Hf(e,a){var r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+a,this.lastIndex=n+a,this.raw=i,this.text=i,this.url=i}function Gf(e,a){var r=new Hf(e,a);return e.__compiled__[r.schema].normalize(r,e),r}function Wf(e,a){if(!(this instanceof Wf))return new Wf(e,a);var r;a||(r=e,Object.keys(r||{}).reduce((function(e,a){return e||Lf.hasOwnProperty(a)}),!1)&&(a=e,e={})),this.__opts__=Nf({},Lf,a),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Nf({},Bf,e),this.__compiled__={},this.__tlds__=Vf,this.__tlds_replaced__=!1,this.re={},Uf(this)}Wf.prototype.add=function(e,a){return this.__schemas__[e]=a,Uf(this),this},Wf.prototype.set=function(e){return this.__opts__=Nf(this.__opts__,e),this},Wf.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var a,r,n,i,t,o,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(a=s.exec(e));)if(i=this.testSchemaAt(e,a[2],s.lastIndex)){this.__schema__=a[2],this.__index__=a.index+a[1].length,this.__last_index__=a.index+a[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(t=r.index+r[1].length,(this.__index__<0||t<this.__index__)&&(this.__schema__="",this.__index__=t,this.__last_index__=r.index+r[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(n=e.match(this.re.email_fuzzy))&&(t=n.index+n[1].length,o=n.index+n[0].length,(this.__index__<0||t<this.__index__||t===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=t,this.__last_index__=o)),this.__index__>=0},Wf.prototype.pretest=function(e){return this.re.pretest.test(e)},Wf.prototype.testSchemaAt=function(e,a,r){return this.__compiled__[a.toLowerCase()]?this.__compiled__[a.toLowerCase()].validate(e,r,this):0},Wf.prototype.match=function(e){var a=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(Gf(this,a)),a=this.__last_index__);for(var n=a?e.slice(a):e;this.test(n);)r.push(Gf(this,a)),n=n.slice(this.__last_index__),a+=this.__last_index__;return r.length?r:null},Wf.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var a=this.re.schema_at_start.exec(e);if(!a)return null;var r=this.testSchemaAt(e,a[2],a[0].length);return r?(this.__schema__=a[2],this.__index__=a.index+a[1].length,this.__last_index__=a.index+a[0].length+r,Gf(this,0)):null},Wf.prototype.tlds=function(e,a){return e=Array.isArray(e)?e:[e],a?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,a,r){return e!==r[a-1]})).reverse(),Uf(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Uf(this),this)},Wf.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},Wf.prototype.onCompile=function(){};var Zf=ib,Kf=Lb,Jf=Kb,Yf=xk,Xf=Yk,Qf=Ff,ey=Wf,ay=sb,ry=u,ny={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},iy=/^(vbscript|javascript|file|data):/,ty=/^data:image\/(gif|png|jpeg|webp);/;function oy(e){var a=e.trim().toLowerCase();return!iy.test(a)||!!ty.test(a)}var sy=["http:","https:","mailto:"];function ly(e){var a=ay.parse(e,!0);if(a.hostname&&(!a.protocol||sy.indexOf(a.protocol)>=0))try{a.hostname=ry.toASCII(a.hostname)}catch(e){}return ay.encode(ay.format(a))}function cy(e){var a=ay.parse(e,!0);if(a.hostname&&(!a.protocol||sy.indexOf(a.protocol)>=0))try{a.hostname=ry.toUnicode(a.hostname)}catch(e){}return ay.decode(ay.format(a),ay.decode.defaultChars+"%")}function dy(e,a){if(!(this instanceof dy))return new dy(e,a);a||Zf.isString(e)||(a=e||{},e="default"),this.inline=new Qf,this.block=new Xf,this.core=new Yf,this.renderer=new Jf,this.linkify=new ey,this.validateLink=oy,this.normalizeLink=ly,this.normalizeLinkText=cy,this.utils=Zf,this.helpers=Zf.assign({},Kf),this.options={},this.configure(e),a&&this.set(a)}dy.prototype.set=function(e){return Zf.assign(this.options,e),this},dy.prototype.configure=function(e){var a,r=this;if(Zf.isString(e)&&!(e=ny[a=e]))throw new Error('Wrong `markdown-it` preset "'+a+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&r.set(e.options),e.components&&Object.keys(e.components).forEach((function(a){e.components[a].rules&&r[a].ruler.enableOnly(e.components[a].rules),e.components[a].rules2&&r[a].ruler2.enableOnly(e.components[a].rules2)})),this},dy.prototype.enable=function(e,a){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(a){r=r.concat(this[a].ruler.enable(e,!0))}),this),r=r.concat(this.inline.ruler2.enable(e,!0));var n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!a)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},dy.prototype.disable=function(e,a){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(a){r=r.concat(this[a].ruler.disable(e,!0))}),this),r=r.concat(this.inline.ruler2.disable(e,!0));var n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!a)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},dy.prototype.use=function(e){var a=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,a),this},dy.prototype.parse=function(e,a){if("string"!=typeof e)throw new Error("Input data should be a String");var r=new this.core.State(e,this,a);return this.core.process(r),r.tokens},dy.prototype.render=function(e,a){return a=a||{},this.renderer.render(this.parse(e,a),this.options,a)},dy.prototype.parseInline=function(e,a){var r=new this.core.State(e,this,a);return r.inlineMode=!0,this.core.process(r),r.tokens},dy.prototype.renderInline=function(e,a){return a=a||{},this.renderer.render(this.parseInline(e,a),this.options,a)};var uy=g(dy),hy=!0,my=!1,gy=!1,py=function(e,a){a&&(hy=!a.enabled,my=!!a.label,gy=!!a.labelAfter),e.core.ruler.after("inline","github-task-lists",(function(e){for(var a=e.tokens,r=2;r<a.length;r++)fy(a,r)&&(yy(a[r],e.Token),by(a[r-2],"class","task-list-item"+(hy?"":" enabled")),by(a[ky(a,r-2)],"class","contains-task-list"))}))};function by(e,a,r){var n=e.attrIndex(a),i=[a,r];n<0?e.attrPush(i):e.attrs[n]=i}function ky(e,a){for(var r=e[a].level-1,n=a-1;n>=0;n--)if(e[n].level===r)return n;return-1}function fy(e,a){return function(e){return"inline"===e.type}(e[a])&&function(e){return"paragraph_open"===e.type}(e[a-1])&&function(e){return"list_item_open"===e.type}(e[a-2])&&function(e){return 0===e.content.indexOf("[ ] ")||0===e.content.indexOf("[x] ")||0===e.content.indexOf("[X] ")}(e[a])}function yy(e,a){if(e.children.unshift(function(e,a){var r=new a("html_inline","",0),n=hy?' disabled="" ':"";0===e.content.indexOf("[ ] ")?r.content='<input class="task-list-item-checkbox"'+n+'type="checkbox">':0!==e.content.indexOf("[x] ")&&0!==e.content.indexOf("[X] ")||(r.content='<input class="task-list-item-checkbox" checked=""'+n+'type="checkbox">');return r}(e,a)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),my)if(gy){e.children.pop();var r="task-item-"+Math.ceil(1e7*Math.random()-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+r+'">',e.children.push(function(e,a,r){var n=new r("html_inline","",0);return n.content='<label class="task-list-item-label" for="'+a+'">'+e+"</label>",n.attrs=[{for:a}],n}(e.content,r,a))}else e.children.unshift(function(e){var a=new e("html_inline","",0);return a.content="<label>",a}(a)),e.children.push(function(e){var a=new e("html_inline","",0);return a.content="</label>",a}(a))}var vy=g(py);function wy(e,a){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.push.apply(r,n)}return r}function zy(e){for(var a=1;a<arguments.length;a++){var r=null!=arguments[a]?arguments[a]:{};a%2?wy(Object(r),!0).forEach((function(a){qy(e,a,r[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wy(Object(r)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))}))}return e}function jy(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function xy(e,a,r){return a&&function(e,a){for(var r=0;r<a.length;r++){var n=a[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dy(n.key),n)}}(e.prototype,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function qy(e,a,r){return(a=Dy(a))in e?Object.defineProperty(e,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[a]=r,e}function $y(e){return($y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Cy(e,a){return(Cy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,a){return e.__proto__=a,e})(e,a)}function _y(e,a){if(a&&("object"==typeof a||"function"==typeof a))return a;if(void 0!==a)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Sy(e){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=$y(e);if(a){var i=$y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _y(this,r)}}function Ey(){return Ey="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,a,r){var n=function(e,a){for(;!Object.prototype.hasOwnProperty.call(e,a)&&null!==(e=$y(e)););return e}(e,a);if(n){var i=Object.getOwnPropertyDescriptor(n,a);return i.get?i.get.call(arguments.length<3?e:r):i.value}},Ey.apply(this,arguments)}function Ay(e){return function(e){if(Array.isArray(e))return Oy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,a){if(!e)return;if("string"==typeof e)return Oy(e,a);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oy(e,a)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oy(e,a){(null==a||a>e.length)&&(a=e.length);for(var r=0,n=new Array(a);r<a;r++)n[r]=e[r];return n}function Dy(e){var a=function(e,a){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,a||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)}(e,"string");return"symbol"==typeof a?a:String(a)}var My=jh.create({name:"markdownTightLists",addOptions:function(){return{tight:!0,tightClass:"tight",listTypes:["bulletList","orderedList"]}},addGlobalAttributes:function(){var e=this;return[{types:this.options.listTypes,attributes:{tight:{default:this.options.tight,parseHTML:function(e){return"true"===e.getAttribute("data-tight")||!e.querySelector("p")},renderHTML:function(a){return{class:a.tight?e.options.tightClass:null,"data-tight":a.tight?"true":null}}}}}]},addCommands:function(){var e=this;return{toggleTight:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(r){var n=r.editor,i=r.commands;return e.options.listTypes.some((function(e){return function(e){if(!n.isActive(e))return!1;var r=n.getAttributes(e);return i.updateAttributes(e,{tight:null!=a?a:!(null!=r&&r.tight)})}(e)}))}}}}}),Fy=uy();function Ty(e,a){return Fy.inline.State.prototype.scanDelims.call({src:e,posMax:e.length}),new Fy.inline.State(e,null,null,[]).scanDelims(a,!0)}function Ny(e,a,r,n){var i=e.substring(0,r)+e.substring(r+a.length);return i=i.substring(0,r+n)+a+i.substring(r+n)}function Iy(e,a,r,n){var i={text:e,from:r,to:n};return i=function(e,a,r,n){for(var i=r,t=e;i<n&&!Ty(t,i).can_open;)t=Ny(t,a,i,1),i++;return{text:t,from:i,to:n}}(i.text,a,i.from,i.to),i=function(e,a,r,n){for(var i=n,t=e;i>r&&!Ty(t,i).can_close;)t=Ny(t,a,i,-1),i--;return{text:t,from:r,to:i}}(i.text,a,i.from,i.to),i.to-i.from<a.length+1&&(i.text=i.text.substring(0,i.from)+i.text.substring(i.to+a.length)),i.text}var Py=function(){!function(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),Cy(e,a)}(a,nb);var e=Sy(a);function a(r,n,i){var t;return jy(this,a),(t=e.call(this,r,n,null!=i?i:{})).inlines=[],t}return xy(a,[{key:"render",value:function(e,r,n){Ey($y(a.prototype),"render",this).call(this,e,r,n);var i=this.inlines[this.inlines.length-1];if(null!=i&&i.start&&null!=i&&i.end){var t=this.normalizeInline(i),o=t.delimiter,s=t.start,l=t.end;this.out=Iy(this.out,o,s,l),this.inlines.pop()}}},{key:"markString",value:function(e,r,n,i){var t=this.marks[e.type.name];if(t.expelEnclosingWhitespace)if(r)this.inlines.push({start:this.out.length,delimiter:t.open});else{var o=this.inlines.pop();this.inlines.push(zy(zy({},o),{},{end:this.out.length}))}return Ey($y(a.prototype),"markString",this).call(this,e,r,n,i)}},{key:"normalizeInline",value:function(e){var a=e.start;for(e.end;this.out.charAt(a).match(/\s/);)a++;return zy(zy({},e),{},{start:a})}}]),a}();const Ry=zh.create({name:"markdownHTMLMark",addStorage:function(){return{markdown:{serialize:{open:function(e,a){var r,n;return this.editor.storage.markdown.options.html?null!==(r=null===(n=Ly(a))||void 0===n?void 0:n[0])&&void 0!==r?r:"":(console.warn('Tiptap Markdown: "'.concat(a.type.name,'" mark is only available in html mode')),"")},close:function(e,a){var r,n;return this.editor.storage.markdown.options.html&&null!==(r=null===(n=Ly(a))||void 0===n?void 0:n[1])&&void 0!==r?r:""}},parse:{}}}}});function Ly(e){var a=e.type.schema,r=a.text(" ",[e]),n=yh(al.from(r),a).match(/^(<.*?>) (<\/.*?>)$/);return n?[n[1],n[2]]:null}function By(e){var a="<body>".concat(e,"</body>");return(new window.DOMParser).parseFromString(a,"text/html").body}const Vy=rm.create({name:"markdownHTMLNode",addStorage:function(){return{markdown:{serialize:function(e,a,r){this.editor.storage.markdown.options.html?e.write(function(e,a){var r=e.type.schema,n=yh(al.from(e),r);if(e.isBlock&&(a instanceof al||a.type.name===r.topNodeType.name))return function(e){var a=By(e),r=a.firstElementChild;return r.innerHTML=r.innerHTML.trim()?"\n".concat(r.innerHTML,"\n"):"\n",r.outerHTML}(n);return n}(a,r)):(console.warn('Tiptap Markdown: "'.concat(a.type.name,'" node is only available in html mode')),e.write("[".concat(a.type.name,"]"))),a.isBlock&&e.closeBlock(a)},parse:{}}}}});const Uy=rm.create({name:"blockquote"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.blockquote,parse:{}}}}});const Hy=rm.create({name:"bulletList"}).extend({addStorage:function(){return{markdown:{serialize:function(e,a){var r=this;return e.renderList(a," ",(function(){return(r.editor.storage.markdown.options.bulletListMarker||"-")+" "}))},parse:{}}}}});const Gy=rm.create({name:"codeBlock"}).extend({addStorage:function(){return{markdown:{serialize:function(e,a){e.write("```"+(a.attrs.language||"")+"\n"),e.text(a.textContent,!1),e.ensureNewLine(),e.write("```"),e.closeBlock(a)},parse:{setup:function(e){var a;e.set({langPrefix:null!==(a=this.options.languageClassPrefix)&&void 0!==a?a:"language-"})},updateDOM:function(e){e.innerHTML=e.innerHTML.replace(/\n<\/code><\/pre>/g,"</code></pre>")}}}}}});const Wy=rm.create({name:"hardBreak"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.hard_break,parse:{}}}}});const Zy=rm.create({name:"heading"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.heading,parse:{}}}}});const Ky=rm.create({name:"horizontalRule"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.horizontal_rule,parse:{}}}}});const Jy=rm.create({name:"image"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.image,parse:{}}}}});const Yy=rm.create({name:"listItem"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.list_item,parse:{}}}}});const Xy=rm.create({name:"orderedList"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.ordered_list,parse:{}}}}});const Qy=rm.create({name:"paragraph"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.paragraph,parse:{}}}}});function ev(e){var a,r;return null!==(a=null==e||null===(r=e.content)||void 0===r?void 0:r.content)&&void 0!==a?a:[]}const av=rm.create({name:"table"}).extend({addStorage:function(){return{markdown:{serialize:function(e,a,r){!function(e){var a=ev(e),r=a[0],n=a.slice(1);if(ev(r).some((function(e){return"tableHeader"!==e.type.name||rv(e)||e.childCount>1})))return!1;if(n.some((function(e){return ev(e).some((function(e){return"tableHeader"===e.type.name||rv(e)||e.childCount>1}))})))return!1;return!0}(a)?Vy.storage.markdown.serialize.call(this,e,a,r):(a.forEach((function(a,r,n){if(e.write("| "),a.forEach((function(a,r,n){n&&e.write(" | ");var i=a.firstChild;i.textContent.trim()&&e.renderInline(i)})),e.write(" |"),e.ensureNewLine(),!n){var i=Array.from({length:a.childCount}).map((function(){return"---"})).join(" | ");e.write("| ".concat(i," |")),e.ensureNewLine()}})),e.closeBlock(a))},parse:{}}}}});function rv(e){return e.attrs.colspan>1||e.attrs.rowspan>1}const nv=rm.create({name:"taskItem"}).extend({addStorage:function(){return{markdown:{serialize:function(e,a){var r=a.attrs.checked?"[x]":"[ ]";e.write("".concat(r," ")),e.renderContent(a)},parse:{updateDOM:function(e){Ay(e.querySelectorAll(".task-list-item")).forEach((function(e){var a=e.querySelector("input");e.setAttribute("data-type","taskItem"),a&&(e.setAttribute("data-checked",a.checked),a.remove())}))}}}}}});const iv=rm.create({name:"taskList"}).extend({addStorage:function(){return{markdown:{serialize:Hy.storage.markdown.serialize,parse:{setup:function(e){e.use(vy)},updateDOM:function(e){Ay(e.querySelectorAll(".contains-task-list")).forEach((function(e){e.setAttribute("data-type","taskList")}))}}}}}});const tv=rm.create({name:"text"}).extend({addStorage:function(){return{markdown:{serialize:function(e,a){var r;e.text(null==(r=a.text)?void 0:r.replace(/</g,"<").replace(/>/g,">"))},parse:{}}}}});const ov=zh.create({name:"bold"}).extend({addStorage:function(){return{markdown:{serialize:ab.marks.strong,parse:{}}}}});const sv=zh.create({name:"code"}).extend({addStorage:function(){return{markdown:{serialize:ab.marks.code,parse:{}}}}});const lv=zh.create({name:"italic"}).extend({addStorage:function(){return{markdown:{serialize:ab.marks.em,parse:{}}}}});const cv=zh.create({name:"link"}).extend({addStorage:function(){return{markdown:{serialize:ab.marks.link,parse:{}}}}});const dv=zh.create({name:"strike"}).extend({addStorage:function(){return{markdown:{serialize:{open:"~~",close:"~~",expelEnclosingWhitespace:!0},parse:{}}}}}),uv=[Uy,Hy,Gy,Wy,Zy,Ky,Vy,Jy,Yy,Xy,Qy,av,nv,iv,tv,ov,sv,Ry,lv,cv,dv];function hv(e){var a,r,n=null===(a=e.storage)||void 0===a?void 0:a.markdown,i=null===(r=uv.find((function(a){return a.name===e.name})))||void 0===r?void 0:r.storage.markdown;return n||i?zy(zy({},i),n):null}var mv=function(){function e(a){jy(this,e),qy(this,"editor",null),this.editor=a}return xy(e,[{key:"serialize",value:function(e){var a=new Py(this.nodes,this.marks,{hardBreakNodeName:Wy.name});return a.renderContent(e),a.out}},{key:"nodes",get:function(){var e,a=this;return zy(zy({},Object.fromEntries(Object.keys(this.editor.schema.nodes).map((function(e){return[e,a.serializeNode(Vy)]})))),Object.fromEntries(null!==(e=this.editor.extensionManager.extensions.filter((function(e){return"node"===e.type&&a.serializeNode(e)})).map((function(e){return[e.name,a.serializeNode(e)]})))&&void 0!==e?e:[]))}},{key:"marks",get:function(){var e,a=this;return zy(zy({},Object.fromEntries(Object.keys(this.editor.schema.marks).map((function(e){return[e,a.serializeMark(Ry)]})))),Object.fromEntries(null!==(e=this.editor.extensionManager.extensions.filter((function(e){return"mark"===e.type&&a.serializeMark(e)})).map((function(e){return[e.name,a.serializeMark(e)]})))&&void 0!==e?e:[]))}},{key:"serializeNode",value:function(e){var a,r;return null===(a=hv(e))||void 0===a||null===(r=a.serialize)||void 0===r?void 0:r.bind({editor:this.editor,options:e.options})}},{key:"serializeMark",value:function(e){var a,r=null===(a=hv(e))||void 0===a?void 0:a.serialize;return r?zy(zy({},r),{},{open:"function"==typeof r.open?r.open.bind({editor:this.editor,options:e.options}):r.open,close:"function"==typeof r.close?r.close.bind({editor:this.editor,options:e.options}):r.close}):null}}]),e}(),gv=function(){function e(a,r){var n=r.html,i=r.linkify,t=r.breaks;jy(this,e),qy(this,"editor",null),qy(this,"md",null),this.editor=a,this.md=uy({html:n,linkify:i,breaks:t})}return xy(e,[{key:"parse",value:function(e){var a=this,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).inline;if("string"==typeof e){var n=this.md;this.editor.extensionManager.extensions.forEach((function(e){var r,i,t;return null===(r=hv(e))||void 0===r||null===(i=r.parse)||void 0===i||null===(t=i.setup)||void 0===t?void 0:t.call({editor:a.editor,options:e.options},n)}));var i=By(n.render(e));return this.editor.extensionManager.extensions.forEach((function(e){var r,n,t;return null===(r=hv(e))||void 0===r||null===(n=r.parse)||void 0===n||null===(t=n.updateDOM)||void 0===t?void 0:t.call({editor:a.editor,options:e.options},i)})),this.normalizeDOM(i,{inline:r,content:e}),i.innerHTML}return e}},{key:"normalizeDOM",value:function(e,a){var r=a.inline,n=a.content;return this.normalizeBlocks(e),e.querySelectorAll("*").forEach((function(e){var a;(null===(a=e.nextSibling)||void 0===a?void 0:a.nodeType)!==Node.TEXT_NODE||e.closest("pre")||(e.nextSibling.textContent=e.nextSibling.textContent.replace(/^\n/,""))})),r&&this.normalizeInline(e,n),e}},{key:"normalizeBlocks",value:function(e){var a=Object.values(this.editor.schema.nodes).filter((function(e){return e.isBlock})).map((function(e){var a;return null===(a=e.spec.parseDOM)||void 0===a?void 0:a.map((function(e){return e.tag}))})).flat().filter(Boolean).join(",");a&&Ay(e.querySelectorAll(a)).forEach((function(e){e.parentElement.matches("p")&&function(e){for(var a=e.parentElement,r=a.cloneNode();a.firstChild&&a.firstChild!==e;)r.appendChild(a.firstChild);r.childNodes.length>0&&a.parentElement.insertBefore(r,a),a.parentElement.insertBefore(e,a),0===a.childNodes.length&&a.remove()}(e)}))}},{key:"normalizeInline",value:function(e,a){var r;if(null!==(r=e.firstElementChild)&&void 0!==r&&r.matches("p")){var n,i,t,o,s=e.firstElementChild;s.nextSibling;var l=s.nextElementSibling,c=null!==(n=null===(i=a.match(/^\s+/))||void 0===i?void 0:i[0])&&void 0!==n?n:"",d=l?"":null!==(t=null===(o=a.match(/\s+$/))||void 0===o?void 0:o[0])&&void 0!==t?t:"";if(a.match(/^\n\n/))return void(s.innerHTML="".concat(s.innerHTML).concat(d));!function(e){for(var a=e.parentNode;e.firstChild;)a.insertBefore(e.firstChild,e);a.removeChild(e)}(s),e.innerHTML="".concat(c).concat(e.innerHTML).concat(d)}}}]),e}(),pv=jh.create({name:"markdownClipboard",addOptions:function(){return{transformPastedText:!1,transformCopiedText:!1}},addProseMirrorPlugins:function(){var e=this;return[new id({key:new sd("markdownClipboard"),props:{clipboardTextParser:function(a,r,n){if(n||!e.options.transformPastedText)return null;var i=e.editor.storage.markdown.parser.parse(a,{inline:!0});return Gl.fromSchema(e.editor.schema).parseSlice(By(i),{preserveWhitespace:!0,context:r})},clipboardTextSerializer:function(a){return e.options.transformCopiedText?e.editor.storage.markdown.serializer.serialize(a.content):null}}})]}}),bv=jh.create({name:"markdown",priority:50,addOptions:function(){return{html:!0,tightLists:!0,tightListClass:"tight",bulletListMarker:"-",linkify:!1,breaks:!1,transformPastedText:!1,transformCopiedText:!1}},addCommands:function(){var e=am.Commands.config.addCommands();return{setContent:function(a,r,n){return function(i){return e.setContent(i.editor.storage.markdown.parser.parse(a),r,n)(i)}},insertContentAt:function(a,r,n){return function(i){return e.insertContentAt(a,i.editor.storage.markdown.parser.parse(r,{inline:!0}),n)(i)}}}},onBeforeCreate:function(){var e=this;this.editor.storage.markdown={options:zy({},this.options),parser:new gv(this.editor,this.options),serializer:new mv(this.editor),getMarkdown:function(){return e.editor.storage.markdown.serializer.serialize(e.editor.state.doc)}},this.editor.options.initialContent=this.editor.options.content,this.editor.options.content=this.editor.storage.markdown.parser.parse(this.editor.options.content)},onCreate:function(){this.editor.options.content=this.editor.options.initialContent,delete this.editor.options.initialContent},addStorage:function(){return{}},addExtensions:function(){return[My.configure({tight:this.options.tightLists,tightClass:this.options.tightListClass}),pv.configure({transformPastedText:this.options.transformPastedText,transformCopiedText:this.options.transformCopiedText})]}});const kv=a.styled(d.RichTextEditor)((({theme:e})=>({"&.MuiTiptap-FieldContainer-root":{backgroundColor:e.custom.palette.input.default,"&:hover":{".MuiTiptap-FieldContainer-notchedOutline":{borderSize:1,backgroundColor:e.custom.palette.interaction.hover,borderColor:e.custom.palette.stroke.default}}},"&.MuiTiptap-FieldContainer-focused":{".MuiTiptap-FieldContainer-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.focus}!important`,boxShadow:e.custom.boxShadow.input.focus}},".MuiTiptap-RichTextField-menuBar":{padding:0,borderRadius:e.spacing(e.custom.radius.md),background:e.custom.palette.surface.default,margin:e.spacing(e.custom.margin.sm),border:`1px solid ${e.custom.palette.stroke.default}`,marginBottom:0,".MuiTiptap-RichTextField-content":{padding:e.spacing(e.custom.padding.xs)}}}))),fv=({onChange:n,value:i,internalChange:t,minWidth:o=100,minHeight:s=100,maxHeight:l,placeholder:u})=>{const h=e.useRef(null),m=a.useTheme();return w.jsx(kv,{sx:{"& .ProseMirror":{overflowY:"auto",minHeight:s,minWidth:o,maxHeight:l}},ref:h,onUpdate:({editor:e})=>{n&&n(e.storage.markdown.getMarkdown()),t&&t()},extensions:[c.StarterKit.configure({strike:!1,code:!1,heading:!1,listItem:!1,bulletList:!1,orderedList:!1,blockquote:!1,horizontalRule:!1,codeBlock:!1}),nm.configure({placeholder:u}),bv],content:i,renderControls:()=>w.jsxs(a.Stack,{gap:m.custom.margin.xs,direction:"row",children:[w.jsx(d.MenuButtonBold,{component:mt,icon:w.jsx(r.FormatBold,{}),sizing:"md"}),w.jsx(d.MenuButtonItalic,{component:mt,icon:w.jsx(r.FormatItalic,{}),sizing:"md"})]})})},yv=e=>({"& .MuiSlider-thumb":{width:_,height:_,backgroundColor:e.custom.palette.text.primary,boxShadow:e.custom.boxShadow.input.handle,"&:after":{content:'""',position:"absolute",top:"50%",left:"50%",width:q,height:q,backgroundColor:e.custom.palette.icon.primaryInverted}}}),vv=e=>Array.isArray(e),wv=(e,a)=>({height:$,padding:`${$}px 0`,"& .MuiSlider-rail":{width:`calc(100% + ${S}px)`,left:`-${C}px`,backgroundColor:e.custom.palette.icon.disabled,opacity:1},"& .MuiSlider-track":{position:"relative",border:"none",backgroundColor:e.custom.palette.purple[500],"&:before":{content:'""',position:"absolute",top:0,left:a&&vv(a)?`-${$+1}px`:`-${C+1}px`,width:`calc(100% + ${C}px)`,height:"100%",borderRadius:"inherit",backgroundColor:"inherit"}},"& .MuiSlider-mark":{height:q,width:q,borderRadius:e.custom.radius.round,backgroundColor:e.custom.palette.text.primaryInverted,"&.MuiSlider-markActive":{backgroundColor:e.custom.palette.text.primaryInverted}}}),zv=e=>({"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.purple[500],borderRadius:e.spacing(e.custom.radius.sm),padding:q,minWidth:S,"&.MuiSlider-valueLabelOpen":{top:"-9px"},"& .MuiSlider-valueLabelLabel":{padding:`0 ${e.spacing(e.custom.padding.xs)}`,fontSize:`${Se.lg.body.sm}`,color:e.custom.palette.text.lockedWhite,fontWeight:500,lineHeight:"140%"}}}),jv=a.styled(a.Slider)((({theme:e,value:a})=>({"&.MuiSlider-root":{width:`calc(100% - ${S}px)`,marginLeft:S/2,...{...wv(e,a)},...{...yv(e)},...{...zv(e)},"&.Mui-disabled":{"& .MuiSlider-rail, & .MuiSlider-track":{backgroundColor:e.custom.palette.icon.secondary},"& .MuiSlider-rail":{backgroundColor:e.custom.palette.icon.disabled},"& .MuiSlider-thumb":{backgroundColor:e.custom.palette.icon.disabled,"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.icon.disabled}}},"& .MuiSlider-markLabel":{color:e.custom.palette.text.secondary,"&.MuiSlider-markLabelActive":{color:e.custom.palette.text.secondary}}}}))),xv=[1,2,5,10],qv=(e,a)=>{if(e>=a)return console.warn("Min value must be less than max value"),1;const r=(a-e)/9;if(r<=1)return 1;const n=Math.floor(Math.log10(r)),i=r/Math.pow(10,n);return t=i,(xv.find((e=>t<=e))??xv[xv.length-1])*Math.pow(10,n);var t},$v=({labelLeft:e,labelMiddle:r,labelRight:n,labelRightProps:i,labelLeftProps:t,disabled:o,onChange:s,internalChange:l,defaultValue:c,max:d,min:u,step:h,...m})=>{const g=h??qv(u,d),p=((e,a,r)=>{const n=[];for(let i=e;i<=a;i+=r)n.push({value:i,label:i===e||i===a||i+r<=a?i.toString():void 0});return n[n.length-1].value!==a&&n.push({value:a,label:a.toString()}),n})(u,d,g);return w.jsxs(a.Box,{sx:{minWidth:300},children:[w.jsx(a.Box,{height:24,children:w.jsx(jv,{valueLabelDisplay:o?"on":"auto",disabled:o,marks:p,step:g,max:d,min:u,onChangeCommitted:()=>{l&&l()},onChange:(e,a,r)=>{s&&s(e,a,r)},...m})}),w.jsxs(a.Box,{sx:{display:"flex",justifyContent:"space-between",pt:M.lg,gap:1},children:[e&&w.jsx(a.Box,{sx:{flex:1},children:w.jsx(ia,{disabled:o,showicon:!1,...t,children:e})}),r&&w.jsx(a.Box,{sx:{flex:1,textAlign:"center"},children:w.jsx(ia,{showicon:!1,disabled:o,children:r})}),n&&w.jsx(a.Box,{sx:{flex:1,textAlign:"right"},children:w.jsx(ia,{...i,showicon:!1,disabled:o,children:n})})]})]})},Cv=a.styled(a.Rating)((({theme:e})=>({"&.MuiRating-root":{"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.secondary},"& .MuiRating-iconFilled":{color:e.custom.palette.yellow[600]},".MuiRating-iconHover":{fontSize:"inherit",transform:"none"},"&.Mui-disabled":{opacity:1,color:e.custom.palette.icon.disabled,"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.disabled},"& .MuiRating-iconFilled":{color:e.custom.palette.icon.disabled}}}}))),_v=({internalChange:e,onChange:r,...n})=>w.jsx(Cv,{...n,onChange:(a,n)=>{r&&r(a,n),e&&e()},icon:w.jsx(a.SvgIcon,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M24.114 35.395L32.414 40.415C33.934 41.335 35.794 39.975 35.394 38.255L33.194 28.815L40.534 22.455C41.874 21.295 41.154 19.095 39.394 18.955L29.734 18.135L25.954 9.21499C25.274 7.59499 22.954 7.59499 22.274 9.21499L18.494 18.115L8.83396 18.935C7.07396 19.075 6.35396 21.275 7.69396 22.435L15.034 28.795L12.834 38.235C12.434 39.955 14.294 41.315 15.814 40.395L24.114 35.395Z"})}),emptyIcon:w.jsx(a.SvgIcon,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.1047 20.58L30.8559 27.7274L33.3274 38.3549L23.9992 32.713L14.6668 38.335L17.1388 27.7279L8.89132 20.5816L19.748 19.66L23.9966 9.63416L28.2463 19.6377L39.1047 20.58ZM12.7171 37.8892L14.9171 28.4492L7.57709 22.0892C6.23709 20.9292 6.95709 18.7292 8.71709 18.5892L18.3771 17.7692L22.1571 8.84916C22.8371 7.22916 25.1571 7.22916 25.8371 8.84916L29.6171 17.7492L39.2971 18.5892C41.0571 18.7292 41.7571 20.9292 40.4171 22.0892L33.0771 28.4492L35.2771 37.9092C35.6771 39.6292 33.8171 40.9892 32.2971 40.0692L23.9971 35.0492L15.6971 40.0492C14.1771 40.9692 12.3171 39.6092 12.7171 37.8892Z"})})}),Sv=e=>({boxShadow:e.custom.elevation.raised}),Ev=e=>({boxShadow:e.custom.elevation.overlay}),Av=(e,a)=>{switch(e){case"sunken":return a.custom.palette.surface.sunken;case"raised":return a.custom.palette.surface.raised;case"overlay":return a.custom.palette.surface.overlay;default:return a.custom.palette.surface.default}},Ov=(e,a)=>{switch(a){case"xs":return e.spacing(e.custom.radius.xs);case"sm":return e.spacing(e.custom.radius.sm);case"md":return e.spacing(e.custom.radius.md);case"lg":return e.spacing(e.custom.radius.lg);default:return e.spacing(e.custom.radius.xl)}},Dv=a.styled(a.Paper)((({theme:e,variation:a="default",borderradius:r})=>({boxShadow:"unset",borderRadius:Ov(e,r),background:Av(a,e),..."overlay"===a&&{...Ev(e)},..."raised"===a&&{...Sv(e)}}))),Mv=a.styled((e=>w.jsx(a.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e})))((({theme:e})=>({width:36,height:20,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:e.custom.palette.green[500],opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:e.custom.palette.neutral[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===e.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,boxShadow:"none",filter:"drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.1))"},"& .MuiSwitch-track":{borderRadius:10,backgroundColor:e.custom.palette.neutral[100],opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}))),Fv=a.styled(Je)((({theme:e})=>({"& .MuiInputBase-root":{paddingTop:0,paddingBottom:0,minHeight:E,alignItems:"baseline","& .MuiInputBase-input":{},"& .MuiInputAdornment-root.MuiInputAdornment-positionStart":{alignSelf:"self-end",height:R.xl,marginTop:e.spacing(1),marginBottom:e.spacing(1),"&:first-of-type":{alignSelf:"self-start"}}}}))),Tv=({startAdornment:e,endAdornment:r,onChange:n,internalChange:i,inputRef:t,...o})=>w.jsx(Fv,{multiline:!0,inputRef:t,InputProps:{startAdornment:e?w.jsx(a.InputAdornment,{position:"start",children:e}):null,endAdornment:r?w.jsx(a.InputAdornment,{position:"start",children:r}):null},onChange:e=>{n&&n(e),i&&i()},...o}),Nv=({status:e})=>{const r=a.useTheme();switch(e){case"neutral":return null;case"success":return w.jsx(Iv,{backgroundColor:r.custom.palette.green[500],name:"check-circle"});case"warning":return w.jsx(Iv,{backgroundColor:r.custom.palette.yellow[500],name:"error-outline"});case"danger":return w.jsx(Iv,{backgroundColor:r.custom.palette.red[500],name:"warning-amber"});case"discover":return w.jsx(Iv,{backgroundColor:r.custom.palette.purple[500],name:"lightbulb"})}},Iv=({backgroundColor:e,name:r})=>{const n=a.useTheme();return w.jsx(a.Box,{sx:{display:"flex",alignItems:"flex-start",pt:.25},children:w.jsx(a.Box,{sx:{backgroundColor:e,borderRadius:n.custom.radius.round,color:n.custom.palette.white,display:"flex",p:.5},children:w.jsx(L,{name:r,size:20})})})},Pv=({children:e,message:r,variation:n="primary"})=>{const i=a.useTheme();if("primary"===n)return w.jsx(a.Tooltip,{componentsProps:{popper:{sx:{"& .MuiTooltip-tooltip":{borderRadius:i.spacing(i.custom.radius.sm)}}}},title:r,arrow:!0,sx:{maxWidth:300},role:"tooltip",children:w.jsx(a.Box,{sx:{cursor:"pointer",display:"flex",alignItems:"center"},children:e})})};var Rv=e=>"checkbox"===e.type,Lv=e=>e instanceof Date,Bv=e=>null==e;const Vv=e=>"object"==typeof e;var Uv=e=>!Bv(e)&&!Array.isArray(e)&&Vv(e)&&!Lv(e),Hv=e=>Uv(e)&&e.target?Rv(e.target)?e.target.checked:e.target.value:e,Gv=(e,a)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(a)),Wv="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Zv(e){let a;const r=Array.isArray(e),n="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)a=new Date(e);else if(e instanceof Set)a=new Set(e);else{if(Wv&&(e instanceof Blob||n)||!r&&!Uv(e))return e;if(a=r?[]:{},r||(e=>{const a=e.constructor&&e.constructor.prototype;return Uv(a)&&a.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)e.hasOwnProperty(r)&&(a[r]=Zv(e[r]));else a=e}return a}var Kv=e=>Array.isArray(e)?e.filter(Boolean):[],Jv=e=>void 0===e,Yv=(e,a,r)=>{if(!a||!Uv(e))return r;const n=Kv(a.split(/[,[\].]+?/)).reduce(((e,a)=>Bv(e)?e:e[a]),e);return Jv(n)||n===e?Jv(e[a])?r:e[a]:n},Xv=e=>"boolean"==typeof e,Qv=e=>/^\w*$/.test(e),ew=e=>Kv(e.replace(/["|']|\]/g,"").split(/\.|\[/)),aw=(e,a,r)=>{let n=-1;const i=Qv(a)?[a]:ew(a),t=i.length,o=t-1;for(;++n<t;){const a=i[n];let t=r;if(n!==o){const r=e[a];t=Uv(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===a||"constructor"===a||"prototype"===a)return;e[a]=t,e=e[a]}return e};const rw="blur",nw="focusout",iw="change",tw="onBlur",ow="onChange",sw="onSubmit",lw="onTouched",cw="all",dw="max",uw="min",hw="maxLength",mw="minLength",gw="pattern",pw="required",bw="validate",kw=e.createContext(null),fw=()=>e.useContext(kw);var yw=(e,a,r,n=!0)=>{const i={defaultValues:a._defaultValues};for(const t in e)Object.defineProperty(i,t,{get:()=>{const i=t;return a._proxyFormState[i]!==cw&&(a._proxyFormState[i]=!n||cw),r&&(r[i]=!0),e[i]}});return i},vw=e=>Uv(e)&&!Object.keys(e).length,ww=(e,a,r,n)=>{r(e);const{name:i,...t}=e;return vw(t)||Object.keys(t).length>=Object.keys(a).length||Object.keys(t).find((e=>a[e]===(!n||cw)))},zw=e=>Array.isArray(e)?e:[e],jw=(e,a,r)=>!e||!a||e===a||zw(e).some((e=>e&&(r?e===a:e.startsWith(a)||a.startsWith(e))));function xw(a){const r=e.useRef(a);r.current=a,e.useEffect((()=>{const e=!a.disabled&&r.current.subject&&r.current.subject.subscribe({next:r.current.next});return()=>{e&&e.unsubscribe()}}),[a.disabled])}var qw=e=>"string"==typeof e,$w=(e,a,r,n,i)=>qw(e)?(n&&a.watch.add(e),Yv(r,e,i)):Array.isArray(e)?e.map((e=>(n&&a.watch.add(e),Yv(r,e)))):(n&&(a.watchAll=!0),r);function Cw(a){const r=fw(),{name:n,disabled:i,control:t=r.control,shouldUnregister:o}=a,s=Gv(t._names.array,n),l=function(a){const r=fw(),{control:n=r.control,name:i,defaultValue:t,disabled:o,exact:s}=a,l=e.useRef(i);l.current=i,xw({disabled:o,subject:n._subjects.values,next:e=>{jw(l.current,e.name,s)&&d(Zv($w(l.current,n._names,e.values||n._formValues,!1,t)))}});const[c,d]=e.useState(n._getWatch(i,t));return e.useEffect((()=>n._removeUnmounted())),c}({control:t,name:n,defaultValue:Yv(t._formValues,n,Yv(t._defaultValues,n,a.defaultValue)),exact:!0}),c=function(a){const r=fw(),{control:n=r.control,disabled:i,name:t,exact:o}=a,[s,l]=e.useState(n._formState),c=e.useRef(!0),d=e.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=e.useRef(t);return u.current=t,xw({disabled:i,next:e=>c.current&&jw(u.current,e.name,o)&&ww(e,d.current,n._updateFormState)&&l({...n._formState,...e}),subject:n._subjects.state}),e.useEffect((()=>(c.current=!0,d.current.isValid&&n._updateValid(!0),()=>{c.current=!1})),[n]),e.useMemo((()=>yw(s,n,d.current,!1)),[s,n])}({control:t,name:n,exact:!0}),d=e.useRef(t.register(n,{...a.rules,value:l,...Xv(a.disabled)?{disabled:a.disabled}:{}})),u=e.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Yv(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Yv(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Yv(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Yv(c.validatingFields,n)},error:{enumerable:!0,get:()=>Yv(c.errors,n)}})),[c,n]),h=e.useMemo((()=>({name:n,value:l,...Xv(i)||c.disabled?{disabled:c.disabled||i}:{},onChange:e=>d.current.onChange({target:{value:Hv(e),name:n},type:iw}),onBlur:()=>d.current.onBlur({target:{value:Yv(t._formValues,n),name:n},type:rw}),ref:e=>{const a=Yv(t._fields,n);a&&e&&(a._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:a=>e.setCustomValidity(a),reportValidity:()=>e.reportValidity()})}})),[n,t._formValues,i,c.disabled,l,t._fields]);return e.useEffect((()=>{const e=t._options.shouldUnregister||o,a=(e,a)=>{const r=Yv(t._fields,e);r&&r._f&&(r._f.mount=a)};if(a(n,!0),e){const e=Zv(Yv(t._options.defaultValues,n));aw(t._defaultValues,n,e),Jv(Yv(t._formValues,n))&&aw(t._formValues,n,e)}return!s&&t.register(n),()=>{(s?e&&!t._state.action:e)?t.unregister(n):a(n,!1)}}),[n,t,s,o]),e.useEffect((()=>{t._updateDisabledField({disabled:i,fields:t._fields,name:n})}),[i,n,t]),e.useMemo((()=>({field:h,formState:c,fieldState:u})),[h,c,u])}const _w=e=>e.render(Cw(e));var Sw=(e,a,r,n,i)=>a?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},Ew=e=>({isOnSubmit:!e||e===sw,isOnBlur:e===tw,isOnChange:e===ow,isOnAll:e===cw,isOnTouch:e===lw}),Aw=(e,a,r)=>!r&&(a.watchAll||a.watch.has(e)||[...a.watch].some((a=>e.startsWith(a)&&/^\.\w+/.test(e.slice(a.length)))));const Ow=(e,a,r,n)=>{for(const i of r||Object.keys(e)){const r=Yv(e,i);if(r){const{_f:e,...t}=r;if(e){if(e.refs&&e.refs[0]&&a(e.refs[0],i)&&!n)return!0;if(e.ref&&a(e.ref,e.name)&&!n)return!0;if(Ow(t,a))break}else if(Uv(t)&&Ow(t,a))break}}};var Dw=(e,a,r)=>{const n=zw(Yv(e,r));return aw(n,"root",a[r]),aw(e,r,n),e},Mw=e=>"file"===e.type,Fw=e=>"function"==typeof e,Tw=e=>{if(!Wv)return!1;const a=e?e.ownerDocument:0;return e instanceof(a&&a.defaultView?a.defaultView.HTMLElement:HTMLElement)},Nw=e=>qw(e),Iw=e=>"radio"===e.type,Pw=e=>e instanceof RegExp;const Rw={value:!1,isValid:!1},Lw={value:!0,isValid:!0};var Bw=e=>{if(Array.isArray(e)){if(e.length>1){const a=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:a,isValid:!!a.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Jv(e[0].attributes.value)?Jv(e[0].value)||""===e[0].value?Lw:{value:e[0].value,isValid:!0}:Lw:Rw}return Rw};const Vw={isValid:!1,value:null};var Uw=e=>Array.isArray(e)?e.reduce(((e,a)=>a&&a.checked&&!a.disabled?{isValid:!0,value:a.value}:e),Vw):Vw;function Hw(e,a,r="validate"){if(Nw(e)||Array.isArray(e)&&e.every(Nw)||Xv(e)&&!e)return{type:r,message:Nw(e)?e:"",ref:a}}var Gw=e=>Uv(e)&&!Pw(e)?e:{value:e,message:""},Ww=async(e,a,r,n,i,t)=>{const{ref:o,refs:s,required:l,maxLength:c,minLength:d,min:u,max:h,pattern:m,validate:g,name:p,valueAsNumber:b,mount:k}=e._f,f=Yv(r,p);if(!k||a.has(p))return{};const y=s?s[0]:o,v=e=>{i&&y.reportValidity&&(y.setCustomValidity(Xv(e)?"":e||""),y.reportValidity())},w={},z=Iw(o),j=Rv(o),x=z||j,q=(b||Mw(o))&&Jv(o.value)&&Jv(f)||Tw(o)&&""===o.value||""===f||Array.isArray(f)&&!f.length,$=Sw.bind(null,p,n,w),C=(e,a,r,n=hw,i=mw)=>{const t=e?a:r;w[p]={type:e?n:i,message:t,ref:o,...$(e?n:i,t)}};if(t?!Array.isArray(f)||!f.length:l&&(!x&&(q||Bv(f))||Xv(f)&&!f||j&&!Bw(s).isValid||z&&!Uw(s).isValid)){const{value:e,message:a}=Nw(l)?{value:!!l,message:l}:Gw(l);if(e&&(w[p]={type:pw,message:a,ref:y,...$(pw,a)},!n))return v(a),w}if(!(q||Bv(u)&&Bv(h))){let e,a;const r=Gw(h),i=Gw(u);if(Bv(f)||isNaN(f)){const n=o.valueAsDate||new Date(f),t=e=>new Date((new Date).toDateString()+" "+e),s="time"==o.type,l="week"==o.type;qw(r.value)&&f&&(e=s?t(f)>t(r.value):l?f>r.value:n>new Date(r.value)),qw(i.value)&&f&&(a=s?t(f)<t(i.value):l?f<i.value:n<new Date(i.value))}else{const n=o.valueAsNumber||(f?+f:f);Bv(r.value)||(e=n>r.value),Bv(i.value)||(a=n<i.value)}if((e||a)&&(C(!!e,r.message,i.message,dw,uw),!n))return v(w[p].message),w}if((c||d)&&!q&&(qw(f)||t&&Array.isArray(f))){const e=Gw(c),a=Gw(d),r=!Bv(e.value)&&f.length>+e.value,i=!Bv(a.value)&&f.length<+a.value;if((r||i)&&(C(r,e.message,a.message),!n))return v(w[p].message),w}if(m&&!q&&qw(f)){const{value:e,message:a}=Gw(m);if(Pw(e)&&!f.match(e)&&(w[p]={type:gw,message:a,ref:o,...$(gw,a)},!n))return v(a),w}if(g)if(Fw(g)){const e=Hw(await g(f,r),y);if(e&&(w[p]={...e,...$(bw,e.message)},!n))return v(e.message),w}else if(Uv(g)){let e={};for(const a in g){if(!vw(e)&&!n)break;const i=Hw(await g[a](f,r),y,a);i&&(e={...i,...$(a,i.message)},v(i.message),n&&(w[p]=e))}if(!vw(e)&&(w[p]={ref:y,...e},!n))return w}return v(!0),w};function Zw(e,a){const r=Array.isArray(a)?a:Qv(a)?[a]:ew(a),n=1===r.length?e:function(e,a){const r=a.slice(0,-1).length;let n=0;for(;n<r;)e=Jv(e)?n++:e[a[n++]];return e}(e,r),i=r.length-1,t=r[i];return n&&delete n[t],0!==i&&(Uv(n)&&vw(n)||Array.isArray(n)&&function(e){for(const a in e)if(e.hasOwnProperty(a)&&!Jv(e[a]))return!1;return!0}(n))&&Zw(e,r.slice(0,-1)),e}var Kw=()=>{let e=[];return{get observers(){return e},next:a=>{for(const r of e)r.next&&r.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter((e=>e!==a))}}),unsubscribe:()=>{e=[]}}},Jw=e=>Bv(e)||!Vv(e);function Yw(e,a){if(Jw(e)||Jw(a))return e===a;if(Lv(e)&&Lv(a))return e.getTime()===a.getTime();const r=Object.keys(e),n=Object.keys(a);if(r.length!==n.length)return!1;for(const i of r){const r=e[i];if(!n.includes(i))return!1;if("ref"!==i){const e=a[i];if(Lv(r)&&Lv(e)||Uv(r)&&Uv(e)||Array.isArray(r)&&Array.isArray(e)?!Yw(r,e):r!==e)return!1}}return!0}var Xw=e=>"select-multiple"===e.type,Qw=e=>Tw(e)&&e.isConnected,ez=e=>{for(const a in e)if(Fw(e[a]))return!0;return!1};function az(e,a={}){const r=Array.isArray(e);if(Uv(e)||r)for(const r in e)Array.isArray(e[r])||Uv(e[r])&&!ez(e[r])?(a[r]=Array.isArray(e[r])?[]:{},az(e[r],a[r])):Bv(e[r])||(a[r]=!0);return a}function rz(e,a,r){const n=Array.isArray(e);if(Uv(e)||n)for(const n in e)Array.isArray(e[n])||Uv(e[n])&&!ez(e[n])?Jv(a)||Jw(r[n])?r[n]=Array.isArray(e[n])?az(e[n],[]):{...az(e[n])}:rz(e[n],Bv(a)?{}:a[n],r[n]):r[n]=!Yw(e[n],a[n]);return r}var nz=(e,a)=>rz(e,a,az(a)),iz=(e,{valueAsNumber:a,valueAsDate:r,setValueAs:n})=>Jv(e)?e:a?""===e?NaN:e?+e:e:r&&qw(e)?new Date(e):n?n(e):e;function tz(e){const a=e.ref;return Mw(a)?a.files:Iw(a)?Uw(e.refs).value:Xw(a)?[...a.selectedOptions].map((({value:e})=>e)):Rv(a)?Bw(e.refs).value:iz(Jv(a.value)?e.ref.value:a.value,e)}var oz=e=>Jv(e)?e:Pw(e)?e.source:Uv(e)?Pw(e.value)?e.value.source:e.value:e;const sz="AsyncFunction";function lz(e,a,r){const n=Yv(e,r);if(n||Qv(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const n=i.join("."),t=Yv(a,n),o=Yv(e,n);if(t&&!Array.isArray(t)&&r!==n)return{name:r};if(o&&o.type)return{name:n,error:o};i.pop()}return{name:r}}const cz={mode:sw,reValidateMode:ow,shouldFocusError:!0};function dz(e={}){let a,r={...cz,...e},n={submitCount:0,isDirty:!1,isLoading:Fw(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},i={},t=(Uv(r.defaultValues)||Uv(r.values))&&Zv(r.defaultValues||r.values)||{},o=r.shouldUnregister?{}:Zv(t),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},u={values:Kw(),array:Kw(),state:Kw()},h=Ew(r.mode),m=Ew(r.reValidateMode),g=r.criteriaMode===cw,p=async e=>{if(!r.disabled&&(d.isValid||e)){const e=r.resolver?vw((await v()).errors):await w(i,!0);e!==n.isValid&&u.state.next({isValid:e})}},b=(e,a)=>{r.disabled||!d.isValidating&&!d.validatingFields||((e||Array.from(l.mount)).forEach((e=>{e&&(a?aw(n.validatingFields,e,a):Zw(n.validatingFields,e))})),u.state.next({validatingFields:n.validatingFields,isValidating:!vw(n.validatingFields)}))},k=(e,a,r,n)=>{const l=Yv(i,e);if(l){const i=Yv(o,e,Jv(r)?Yv(t,e):r);Jv(i)||n&&n.defaultChecked||a?aw(o,e,a?i:tz(l._f)):x(e,i),s.mount&&p()}},f=(e,a,o,s,l)=>{let c=!1,h=!1;const m={name:e};if(!r.disabled){const r=!!(Yv(i,e)&&Yv(i,e)._f&&Yv(i,e)._f.disabled);if(!o||s){d.isDirty&&(h=n.isDirty,n.isDirty=m.isDirty=z(),c=h!==m.isDirty);const i=r||Yw(Yv(t,e),a);h=!(r||!Yv(n.dirtyFields,e)),i||r?Zw(n.dirtyFields,e):aw(n.dirtyFields,e,!0),m.dirtyFields=n.dirtyFields,c=c||d.dirtyFields&&h!==!i}if(o){const a=Yv(n.touchedFields,e);a||(aw(n.touchedFields,e,o),m.touchedFields=n.touchedFields,c=c||d.touchedFields&&a!==o)}c&&l&&u.state.next(m)}return c?m:{}},y=(e,i,t,o)=>{const s=Yv(n.errors,e),l=d.isValid&&Xv(i)&&n.isValid!==i;var h;if(r.delayError&&t?(h=()=>((e,a)=>{aw(n.errors,e,a),u.state.next({errors:n.errors})})(e,t),a=e=>{clearTimeout(c),c=setTimeout(h,e)},a(r.delayError)):(clearTimeout(c),a=null,t?aw(n.errors,e,t):Zw(n.errors,e)),(t?!Yw(s,t):s)||!vw(o)||l){const a={...o,...l&&Xv(i)?{isValid:i}:{},errors:n.errors,name:e};n={...n,...a},u.state.next(a)}},v=async e=>{b(e,!0);const a=await r.resolver(o,r.context,((e,a,r,n)=>{const i={};for(const r of e){const e=Yv(a,r);e&&aw(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}})(e||l.mount,i,r.criteriaMode,r.shouldUseNativeValidation));return b(e),a},w=async(e,a,i={valid:!0})=>{for(const s in e){const c=e[s];if(c){const{_f:e,...u}=c;if(e){const u=l.array.has(e.name),h=c._f&&(!!(t=c._f)&&!!t.validate&&!!(Fw(t.validate)&&t.validate.constructor.name===sz||Uv(t.validate)&&Object.values(t.validate).find((e=>e.constructor.name===sz))));h&&d.validatingFields&&b([s],!0);const m=await Ww(c,l.disabled,o,g,r.shouldUseNativeValidation&&!a,u);if(h&&d.validatingFields&&b([s]),m[e.name]&&(i.valid=!1,a))break;!a&&(Yv(m,e.name)?u?Dw(n.errors,m,e.name):aw(n.errors,e.name,m[e.name]):Zw(n.errors,e.name))}!vw(u)&&await w(u,a,i)}}var t;return i.valid},z=(e,a)=>!r.disabled&&(e&&a&&aw(o,e,a),!Yw(E(),t)),j=(e,a,r)=>$w(e,l,{...s.mount?o:Jv(a)?t:qw(e)?{[e]:a}:a},r,a),x=(e,a,r={})=>{const n=Yv(i,e);let t=a;if(n){const r=n._f;r&&(!r.disabled&&aw(o,e,iz(a,r)),t=Tw(r.ref)&&Bv(a)?"":a,Xw(r.ref)?[...r.ref.options].forEach((e=>e.selected=t.includes(e.value))):r.refs?Rv(r.ref)?r.refs.length>1?r.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(t)?!!t.find((a=>a===e.value)):t===e.value))):r.refs[0]&&(r.refs[0].checked=!!t):r.refs.forEach((e=>e.checked=e.value===t)):Mw(r.ref)?r.ref.value="":(r.ref.value=t,r.ref.type||u.values.next({name:e,values:{...o}})))}(r.shouldDirty||r.shouldTouch)&&f(e,t,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&S(e)},q=(e,a,r)=>{for(const n in a){const t=a[n],o=`${e}.${n}`,s=Yv(i,o);(l.array.has(e)||Uv(t)||s&&!s._f)&&!Lv(t)?q(o,t,r):x(o,t,r)}},$=(e,a,r={})=>{const c=Yv(i,e),h=l.array.has(e),m=Zv(a);aw(o,e,m),h?(u.array.next({name:e,values:{...o}}),(d.isDirty||d.dirtyFields)&&r.shouldDirty&&u.state.next({name:e,dirtyFields:nz(t,o),isDirty:z(e,m)})):!c||c._f||Bv(m)?x(e,m,r):q(e,m,r),Aw(e,l)&&u.state.next({...n}),u.values.next({name:s.mount?e:void 0,values:{...o}})},C=async e=>{s.mount=!0;const t=e.target;let c=t.name,k=!0;const z=Yv(i,c),j=e=>{k=Number.isNaN(e)||Lv(e)&&isNaN(e.getTime())||Yw(e,Yv(o,c,e))};if(z){let s,x;const q=t.type?tz(z._f):Hv(e),$=e.type===rw||e.type===nw,C=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(z._f)&&!r.resolver&&!Yv(n.errors,c)&&!z._f.deps||((e,a,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(a||e):(r?n.isOnBlur:i.isOnBlur)?!e:!(r?n.isOnChange:i.isOnChange)||e))($,Yv(n.touchedFields,c),n.isSubmitted,m,h),_=Aw(c,l,$);aw(o,c,q),$?(z._f.onBlur&&z._f.onBlur(e),a&&a(0)):z._f.onChange&&z._f.onChange(e);const E=f(c,q,$,!1),A=!vw(E)||_;if(!$&&u.values.next({name:c,type:e.type,values:{...o}}),C)return d.isValid&&("onBlur"===r.mode&&$?p():$||p()),A&&u.state.next({name:c,..._?{}:E});if(!$&&_&&u.state.next({...n}),r.resolver){const{errors:e}=await v([c]);if(j(q),k){const a=lz(n.errors,i,c),r=lz(e,i,a.name||c);s=r.error,c=r.name,x=vw(e)}}else b([c],!0),s=(await Ww(z,l.disabled,o,g,r.shouldUseNativeValidation))[c],b([c]),j(q),k&&(s?x=!1:d.isValid&&(x=await w(i,!0)));k&&(z._f.deps&&S(z._f.deps),y(c,x,s,E))}},_=(e,a)=>{if(Yv(n.errors,a)&&e.focus)return e.focus(),1},S=async(e,a={})=>{let t,o;const s=zw(e);if(r.resolver){const a=await(async e=>{const{errors:a}=await v(e);if(e)for(const r of e){const e=Yv(a,r);e?aw(n.errors,r,e):Zw(n.errors,r)}else n.errors=a;return a})(Jv(e)?e:s);t=vw(a),o=e?!s.some((e=>Yv(a,e))):t}else e?(o=(await Promise.all(s.map((async e=>{const a=Yv(i,e);return await w(a&&a._f?{[e]:a}:a)})))).every(Boolean),(o||n.isValid)&&p()):o=t=await w(i);return u.state.next({...!qw(e)||d.isValid&&t!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:t}:{},errors:n.errors}),a.shouldFocus&&!o&&Ow(i,_,e?s:l.mount),o},E=e=>{const a={...s.mount?o:t};return Jv(e)?a:qw(e)?Yv(a,e):e.map((e=>Yv(a,e)))},A=(e,a)=>({invalid:!!Yv((a||n).errors,e),isDirty:!!Yv((a||n).dirtyFields,e),error:Yv((a||n).errors,e),isValidating:!!Yv(n.validatingFields,e),isTouched:!!Yv((a||n).touchedFields,e)}),O=(e,a,r)=>{const t=(Yv(i,e,{_f:{}})._f||{}).ref,o=Yv(n.errors,e)||{},{ref:s,message:l,type:c,...d}=o;aw(n.errors,e,{...d,...a,ref:t}),u.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&t&&t.focus&&t.focus()},D=(e,a={})=>{for(const s of e?zw(e):l.mount)l.mount.delete(s),l.array.delete(s),a.keepValue||(Zw(i,s),Zw(o,s)),!a.keepError&&Zw(n.errors,s),!a.keepDirty&&Zw(n.dirtyFields,s),!a.keepTouched&&Zw(n.touchedFields,s),!a.keepIsValidating&&Zw(n.validatingFields,s),!r.shouldUnregister&&!a.keepDefaultValue&&Zw(t,s);u.values.next({values:{...o}}),u.state.next({...n,...a.keepDirty?{isDirty:z()}:{}}),!a.keepIsValid&&p()},M=({disabled:e,name:a,field:r,fields:n})=>{(Xv(e)&&s.mount||e||l.disabled.has(a))&&(e?l.disabled.add(a):l.disabled.delete(a),f(a,tz(r?r._f:Yv(n,a)._f),!1,!1,!0))},F=(e,a={})=>{let n=Yv(i,e);const o=Xv(a.disabled)||Xv(r.disabled);return aw(i,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...a}}),l.mount.add(e),n?M({field:n,disabled:Xv(a.disabled)?a.disabled:r.disabled,name:e}):k(e,!0,a.value),{...o?{disabled:a.disabled||r.disabled}:{},...r.progressive?{required:!!a.required,min:oz(a.min),max:oz(a.max),minLength:oz(a.minLength),maxLength:oz(a.maxLength),pattern:oz(a.pattern)}:{},name:e,onChange:C,onBlur:C,ref:o=>{if(o){F(e,a),n=Yv(i,e);const r=Jv(o.value)&&o.querySelectorAll&&o.querySelectorAll("input,select,textarea")[0]||o,s=(e=>Iw(e)||Rv(e))(r),l=n._f.refs||[];if(s?l.find((e=>e===r)):r===n._f.ref)return;aw(i,e,{_f:{...n._f,...s?{refs:[...l.filter(Qw),r,...Array.isArray(Yv(t,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),k(e,!1,void 0,r)}else n=Yv(i,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||a.shouldUnregister)&&(!Gv(l.array,e)||!s.action)&&l.unMount.add(e)}}},T=()=>r.shouldFocusError&&Ow(i,_,l.mount),N=(e,a)=>async t=>{let s;t&&(t.preventDefault&&t.preventDefault(),t.persist&&t.persist());let c=Zv(o);if(l.disabled.size)for(const e of l.disabled)aw(c,e,void 0);if(u.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:a}=await v();n.errors=e,c=a}else await w(i);if(Zw(n.errors,"root"),vw(n.errors)){u.state.next({errors:{}});try{await e(c,t)}catch(e){s=e}}else a&&await a({...n.errors},t),T(),setTimeout(T);if(u.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:vw(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},I=(e,a={})=>{const c=e?Zv(e):t,h=Zv(c),m=vw(e),g=m?t:h;if(a.keepDefaultValues||(t=c),!a.keepValues){if(a.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(nz(t,o))]);for(const a of Array.from(e))Yv(n.dirtyFields,a)?aw(g,a,Yv(o,a)):$(a,Yv(g,a))}else{if(Wv&&Jv(e))for(const e of l.mount){const a=Yv(i,e);if(a&&a._f){const e=Array.isArray(a._f.refs)?a._f.refs[0]:a._f.ref;if(Tw(e)){const a=e.closest("form");if(a){a.reset();break}}}}i={}}o=r.shouldUnregister?a.keepDefaultValues?Zv(t):{}:Zv(g),u.array.next({values:{...g}}),u.values.next({values:{...g}})}l={mount:a.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!a.keepIsValid||!!a.keepDirtyValues,s.watch=!!r.shouldUnregister,u.state.next({submitCount:a.keepSubmitCount?n.submitCount:0,isDirty:!m&&(a.keepDirty?n.isDirty:!(!a.keepDefaultValues||Yw(e,t))),isSubmitted:!!a.keepIsSubmitted&&n.isSubmitted,dirtyFields:m?{}:a.keepDirtyValues?a.keepDefaultValues&&o?nz(t,o):n.dirtyFields:a.keepDefaultValues&&e?nz(t,e):a.keepDirty?n.dirtyFields:{},touchedFields:a.keepTouched?n.touchedFields:{},errors:a.keepErrors?n.errors:{},isSubmitSuccessful:!!a.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},P=(e,a)=>I(Fw(e)?e(o):e,a);return{control:{register:F,unregister:D,getFieldState:A,handleSubmit:N,setError:O,_executeSchema:v,_getWatch:j,_getDirty:z,_updateValid:p,_removeUnmounted:()=>{for(const e of l.unMount){const a=Yv(i,e);a&&(a._f.refs?a._f.refs.every((e=>!Qw(e))):!Qw(a._f.ref))&&D(e)}l.unMount=new Set},_updateFieldArray:(e,a=[],l,c,h=!0,m=!0)=>{if(c&&l&&!r.disabled){if(s.action=!0,m&&Array.isArray(Yv(i,e))){const a=l(Yv(i,e),c.argA,c.argB);h&&aw(i,e,a)}if(m&&Array.isArray(Yv(n.errors,e))){const a=l(Yv(n.errors,e),c.argA,c.argB);h&&aw(n.errors,e,a),((e,a)=>{!Kv(Yv(e,a)).length&&Zw(e,a)})(n.errors,e)}if(d.touchedFields&&m&&Array.isArray(Yv(n.touchedFields,e))){const a=l(Yv(n.touchedFields,e),c.argA,c.argB);h&&aw(n.touchedFields,e,a)}d.dirtyFields&&(n.dirtyFields=nz(t,o)),u.state.next({name:e,isDirty:z(e,a),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else aw(o,e,a)},_updateDisabledField:M,_getFieldArray:e=>Kv(Yv(s.mount?o:t,e,r.shouldUnregister?Yv(t,e,[]):[])),_reset:I,_resetDefaultValues:()=>Fw(r.defaultValues)&&r.defaultValues().then((e=>{P(e,r.resetOptions),u.state.next({isLoading:!1})})),_updateFormState:e=>{n={...n,...e}},_disableForm:e=>{Xv(e)&&(u.state.next({disabled:e}),Ow(i,((a,r)=>{const n=Yv(i,r);n&&(a.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach((a=>{a.disabled=n._f.disabled||e})))}),0,!1))},_subjects:u,_proxyFormState:d,_setErrors:e=>{n.errors=e,u.state.next({errors:n.errors,isValid:!1})},get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(e){s=e},get _defaultValues(){return t},get _names(){return l},set _names(e){l=e},get _formState(){return n},set _formState(e){n=e},get _options(){return r},set _options(e){r={...r,...e}}},trigger:S,register:F,handleSubmit:N,watch:(e,a)=>Fw(e)?u.values.subscribe({next:r=>e(j(void 0,a),r)}):j(e,a,!0),setValue:$,getValues:E,reset:P,resetField:(e,a={})=>{Yv(i,e)&&(Jv(a.defaultValue)?$(e,Zv(Yv(t,e))):($(e,a.defaultValue),aw(t,e,Zv(a.defaultValue))),a.keepTouched||Zw(n.touchedFields,e),a.keepDirty||(Zw(n.dirtyFields,e),n.isDirty=a.defaultValue?z(e,Zv(Yv(t,e))):z()),a.keepError||(Zw(n.errors,e),d.isValid&&p()),u.state.next({...n}))},clearErrors:e=>{e&&zw(e).forEach((e=>Zw(n.errors,e))),u.state.next({errors:e?n.errors:{}})},unregister:D,setError:O,setFocus:(e,a={})=>{const r=Yv(i,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),a.shouldSelect&&Fw(e.select)&&e.select())}},getFieldState:A}}var uz={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468]))\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}},hz={exports:{}};
|
|
23
|
+
*/function Ra(){if(Ca)return $a;Ca=1;var e=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return $a=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var a={},r=0;r<10;r++)a["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(a).map((function(e){return a[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(n,i){for(var t,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),l=1;l<arguments.length;l++){for(var c in t=Object(arguments[l]))a.call(t,c)&&(s[c]=t[c]);if(e){o=e(t);for(var d=0;d<o.length;d++)r.call(t,o[d])&&(s[o[d]]=t[o[d]])}}return s},$a}function La(){if(Sa)return _a;Sa=1;return _a="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ba(){return Aa?Ea:(Aa=1,Ea=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Va=Pa();wa.exports=function(){if(Fa)return Ma;Fa=1;var e=Pa(),a=Ra(),r=La(),n=Ba(),i=function(){if(Da)return Oa;Da=1;var e=function(){};if("production"!==process.env.NODE_ENV){var a=La(),r={},n=Ba();e=function(e){var a="Warning: "+e;"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}}function i(i,t,o,s,l){if("production"!==process.env.NODE_ENV)for(var c in i)if(n(i,c)){var d;try{if("function"!=typeof i[c]){var u=Error((s||"React class")+": "+o+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[c](t,c,s,o,null,a)}catch(e){d=e}if(!d||d instanceof Error||e((s||"React class")+": type specification of "+o+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var h=l?l():"";e("Failed "+o+" type: "+d.message+(null!=h?h:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},Oa=i}(),t=function(){};function o(){return null}return"production"!==process.env.NODE_ENV&&(t=function(e){var a="Warning: "+e;"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}),Ma=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,d="<<anonymous>>",u={array:p("array"),bigint:p("bigint"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:g(o),arrayOf:function(e){return g((function(a,n,i,t,o){if("function"!=typeof e)return new m("Property `"+o+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var s=a[n];if(!Array.isArray(s))return new m("Invalid "+t+" `"+o+"` of type `"+f(s)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,i,t,o+"["+l+"]",r);if(c instanceof Error)return c}return null}))},element:g((function(e,a,r,n,i){var t=e[a];return s(t)?null:new m("Invalid "+n+" `"+i+"` of type `"+f(t)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:g((function(a,r,n,i,t){var o=a[r];return e.isValidElementType(o)?null:new m("Invalid "+i+" `"+t+"` of type `"+f(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(a,r,n,i,t){if(!(a[r]instanceof e)){var o=e.name||d;return new m("Invalid "+i+" `"+t+"` of type `"+((s=a[r]).constructor&&s.constructor.name?s.constructor.name:d)+"` supplied to `"+n+"`, expected instance of `"+o+"`.")}var s;return null}))},node:g((function(e,a,r,n,i){return k(e[a])?null:new m("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(a,i,t,o,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+t+"` has invalid PropType notation inside objectOf.");var l=a[i],c=f(l);if("object"!==c)return new m("Invalid "+o+" `"+s+"` of type `"+c+"` supplied to `"+t+"`, expected an object.");for(var d in l)if(n(l,d)){var u=e(l,d,t,o,s+"."+d,r);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(a,r,n,i,t){for(var o=a[r],s=0;s<e.length;s++)if(h(o,e[s]))return null;var l=JSON.stringify(e,(function(e,a){return"symbol"===y(a)?String(a):a}));return new m("Invalid "+i+" `"+t+"` of value `"+String(o)+"` supplied to `"+n+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&t(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),o)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&t("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var a=0;a<e.length;a++){var i=e[a];if("function"!=typeof i)return t("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v(i)+" at index "+a+"."),o}return g((function(a,i,t,o,s){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(a,i,t,o,s,r);if(null==d)return null;d.data&&n(d.data,"expectedType")&&l.push(d.data.expectedType)}return new m("Invalid "+o+" `"+s+"` supplied to `"+t+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(a,n,i,t,o){var s=a[n],l=f(s);if("object"!==l)return new m("Invalid "+t+" `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return b(i,t,o,c,y(d));var u=d(s,c,i,t,o+"."+c,r);if(u)return u}return null}))},exact:function(e){return g((function(i,t,o,s,l){var c=i[t],d=f(c);if("object"!==d)return new m("Invalid "+s+" `"+l+"` of type `"+d+"` supplied to `"+o+"`, expected `object`.");var u=a({},i[t],e);for(var h in u){var g=e[h];if(n(e,h)&&"function"!=typeof g)return b(o,s,l,h,y(g));if(!g)return new m("Invalid "+s+" `"+l+"` key `"+h+"` supplied to `"+o+"`.\nBad object: "+JSON.stringify(i[t],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=g(c,h,o,s,l+"."+h,r);if(p)return p}return null}))}};function h(e,a){return e===a?0!==e||1/e==1/a:e!=e&&a!=a}function m(e,a){this.message=e,this.data=a&&"object"==typeof a?a:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var a={},n=0;function i(i,o,s,c,u,h,g){if(c=c||d,h=h||s,g!==r){if(l){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var b=c+":"+s;!a[b]&&n<3&&(t("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),a[b]=!0,n++)}}return null==o[s]?i?null===o[s]?new m("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(o,s,c,u,h)}var o=i.bind(null,!1);return o.isRequired=i.bind(null,!0),o}function p(e){return g((function(a,r,n,i,t,o){var s=a[r];return f(s)!==e?new m("Invalid "+i+" `"+t+"` of type `"+y(s)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,a,r,n,i){return new m((e||"React class")+": "+a+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function k(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(k);if(null===e||s(e))return!0;var a=function(e){var a=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof a)return a}(e);if(!a)return!1;var r,n=a.call(e);if(a!==e.entries){for(;!(r=n.next()).done;)if(!k(r.value))return!1}else for(;!(r=n.next()).done;){var i=r.value;if(i&&!k(i[1]))return!1}return!0;default:return!1}}function f(e){var a=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,a){return"symbol"===e||!!a&&("Symbol"===a["@@toStringTag"]||"function"==typeof Symbol&&a instanceof Symbol)}(a,e)?"symbol":a}function y(e){if(null==e)return""+e;var a=f(e);if("object"===a){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return a}function v(e){var a=y(e);switch(a){case"array":case"object":return"an "+a;case"boolean":case"date":case"regexp":return"a "+a;default:return a}}return m.prototype=Error.prototype,u.checkPropTypes=i,u.resetWarningCache=i.resetWarningCache,u.PropTypes=u,u},Ma}()(Va.isElement,!0)}else wa.exports=function(){if(Na)return Ta;Na=1;var e=La();function a(){}function r(){}return r.resetWarningCache=a,Ta=function(){function n(a,r,n,i,t,o){if(o!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return n}n.isRequired=n;var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:a};return t.PropTypes=t,t}}()();var Ua=g(wa.exports);function Ha(e){if("object"!=typeof e||null===e)return!1;const a=Object.getPrototypeOf(e);return!(null!==a&&a!==Object.prototype&&null!==Object.getPrototypeOf(a)||Symbol.toStringTag in e||Symbol.iterator in e)}function Ga(e){if(m.isValidElement(e)||!Ha(e))return e;const a={};return Object.keys(e).forEach((r=>{a[r]=Ga(e[r])})),a}function Wa(e,a,r={clone:!0}){const n=r.clone?ba({},e):e;return Ha(e)&&Ha(a)&&Object.keys(a).forEach((i=>{m.isValidElement(a[i])?n[i]=a[i]:Ha(a[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Ha(e[i])?n[i]=Wa(e[i],a[i],r):r.clone?n[i]=Ha(a[i])?Ga(a[i]):a[i]:n[i]=a[i]})),n}const Za=["values","unit","step"];function Ka(e){const{values:a={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=ka(e,Za),t=(e=>{const a=Object.keys(e).map((a=>({key:a,val:e[a]})))||[];return a.sort(((e,a)=>e.val-a.val)),a.reduce(((e,a)=>ba({},e,{[a.key]:a.val})),{})})(a),o=Object.keys(t);function s(e){return`@media (min-width:${"number"==typeof a[e]?a[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof a[e]?a[e]:e)-n/100}${r})`}function c(e,i){const t=o.indexOf(i);return`@media (min-width:${"number"==typeof a[e]?a[e]:e}${r}) and (max-width:${(-1!==t&&"number"==typeof a[o[t]]?a[o[t]]:i)-n/100}${r})`}return ba({keys:o,values:t,up:s,down:l,between:c,only:function(e){return o.indexOf(e)+1<o.length?c(e,o[o.indexOf(e)+1]):s(e)},not:function(e){const a=o.indexOf(e);return 0===a?s(o[1]):a===o.length-1?l(o[a]):c(e,o[o.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},i)}const Ja={borderRadius:4},Ya="production"!==process.env.NODE_ENV?Ua.oneOfType([Ua.number,Ua.string,Ua.object,Ua.array]):{};function Xa(e,a){return a?Wa(e,a,{clone:!1}):e}const Qa={xs:0,sm:600,md:900,lg:1200,xl:1536},er={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qa[e]}px)`};function ar(e,a,r){const n=e.theme||{};if(Array.isArray(a)){const e=n.breakpoints||er;return a.reduce(((n,i,t)=>(n[e.up(e.keys[t])]=r(a[t]),n)),{})}if("object"==typeof a){const e=n.breakpoints||er;return Object.keys(a).reduce(((n,i)=>{if(-1!==Object.keys(e.values||Qa).indexOf(i)){n[e.up(i)]=r(a[i],i)}else{const e=i;n[e]=a[e]}return n}),{})}return r(a)}function rr(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":fa(7));return e.charAt(0).toUpperCase()+e.slice(1)}function nr(e,a,r=!0){if(!a||"string"!=typeof a)return null;if(e&&e.vars&&r){const r=`vars.${a}`.split(".").reduce(((e,a)=>e&&e[a]?e[a]:null),e);if(null!=r)return r}return a.split(".").reduce(((e,a)=>e&&null!=e[a]?e[a]:null),e)}function ir(e,a,r,n=r){let i;return i="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:nr(e,r)||n,a&&(i=a(i,n,e)),i}function tr(e){const{prop:a,cssProperty:r=e.prop,themeKey:n,transform:i}=e,t=e=>{if(null==e[a])return null;const t=e[a],o=nr(e.theme,n)||{};return ar(e,t,(e=>{let n=ir(o,i,e);return e===n&&"string"==typeof e&&(n=ir(o,i,`${a}${"default"===e?"":rr(e)}`,e)),!1===r?n:{[r]:n}}))};return t.propTypes="production"!==process.env.NODE_ENV?{[a]:Ya}:{},t.filterProps=[a],t}const or={m:"margin",p:"padding"},sr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cr=function(e){const a={};return r=>(void 0===a[r]&&(a[r]=e(r)),a[r])}((e=>{if(e.length>2){if(!lr[e])return[e];e=lr[e]}const[a,r]=e.split(""),n=or[a],i=sr[r]||"";return Array.isArray(i)?i.map((e=>n+e)):[n+i]})),dr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ur=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],hr=[...dr,...ur];function mr(e,a,r,n){var i;const t=null!=(i=nr(e,a,!1))?i:r;return"number"==typeof t?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${e}.`),t*e):Array.isArray(t)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>t.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(t)}.`,`${e} > ${t.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${a}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${a}\` as a number.`].join("\n"))),t[e]):"function"==typeof t?t:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${a}\` value (${t}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function gr(e){return mr(e,"spacing",8,"spacing")}function pr(e,a){if("string"==typeof a||null==a)return a;const r=e(Math.abs(a));return a>=0?r:"number"==typeof r?-r:`-${r}`}function br(e,a,r,n){if(-1===a.indexOf(r))return null;const i=function(e,a){return r=>e.reduce(((e,n)=>(e[n]=pr(a,r),e)),{})}(cr(r),n);return ar(e,e[r],i)}function kr(e,a){const r=gr(e.theme);return Object.keys(e).map((n=>br(e,a,n,r))).reduce(Xa,{})}function fr(e){return kr(e,dr)}function yr(e){return kr(e,ur)}function vr(...e){const a=e.reduce(((e,a)=>(a.filterProps.forEach((r=>{e[r]=a})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>a[n]?Xa(r,a[n](e)):r),{});return r.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,a)=>Object.assign(e,a.propTypes)),{}):{},r.filterProps=e.reduce(((e,a)=>e.concat(a.filterProps)),[]),r}function wr(e){return"number"!=typeof e?e:`${e}px solid`}function zr(e,a){return tr({prop:e,themeKey:"borders",transform:a})}fr.propTypes="production"!==process.env.NODE_ENV?dr.reduce(((e,a)=>(e[a]=Ya,e)),{}):{},fr.filterProps=dr,yr.propTypes="production"!==process.env.NODE_ENV?ur.reduce(((e,a)=>(e[a]=Ya,e)),{}):{},yr.filterProps=ur,"production"===process.env.NODE_ENV||hr.reduce(((e,a)=>(e[a]=Ya,e)),{});const jr=zr("border",wr),xr=zr("borderTop",wr),qr=zr("borderRight",wr),$r=zr("borderBottom",wr),Cr=zr("borderLeft",wr),_r=zr("borderColor"),Sr=zr("borderTopColor"),Er=zr("borderRightColor"),Ar=zr("borderBottomColor"),Or=zr("borderLeftColor"),Dr=zr("outline",wr),Mr=zr("outlineColor"),Fr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const a=mr(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:pr(a,e)});return ar(e,e.borderRadius,r)}return null};Fr.propTypes="production"!==process.env.NODE_ENV?{borderRadius:Ya}:{},Fr.filterProps=["borderRadius"],vr(jr,xr,qr,$r,Cr,_r,Sr,Er,Ar,Or,Fr,Dr,Mr);const Tr=e=>{if(void 0!==e.gap&&null!==e.gap){const a=mr(e.theme,"spacing",8,"gap"),r=e=>({gap:pr(a,e)});return ar(e,e.gap,r)}return null};Tr.propTypes="production"!==process.env.NODE_ENV?{gap:Ya}:{},Tr.filterProps=["gap"];const Nr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const a=mr(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:pr(a,e)});return ar(e,e.columnGap,r)}return null};Nr.propTypes="production"!==process.env.NODE_ENV?{columnGap:Ya}:{},Nr.filterProps=["columnGap"];const Ir=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const a=mr(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:pr(a,e)});return ar(e,e.rowGap,r)}return null};Ir.propTypes="production"!==process.env.NODE_ENV?{rowGap:Ya}:{},Ir.filterProps=["rowGap"];function Pr(e,a){return"grey"===a?a:e}vr(Tr,Nr,Ir,tr({prop:"gridColumn"}),tr({prop:"gridRow"}),tr({prop:"gridAutoFlow"}),tr({prop:"gridAutoColumns"}),tr({prop:"gridAutoRows"}),tr({prop:"gridTemplateColumns"}),tr({prop:"gridTemplateRows"}),tr({prop:"gridTemplateAreas"}),tr({prop:"gridArea"}));function Rr(e){return e<=1&&0!==e?100*e+"%":e}vr(tr({prop:"color",themeKey:"palette",transform:Pr}),tr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pr}),tr({prop:"backgroundColor",themeKey:"palette",transform:Pr}));const Lr=tr({prop:"width",transform:Rr}),Br=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const a=a=>{var r,n;const i=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[a])||Qa[a];return i?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Rr(a)}};return ar(e,e.maxWidth,a)}return null};Br.filterProps=["maxWidth"];const Vr=tr({prop:"minWidth",transform:Rr}),Ur=tr({prop:"height",transform:Rr}),Hr=tr({prop:"maxHeight",transform:Rr}),Gr=tr({prop:"minHeight",transform:Rr});tr({prop:"size",cssProperty:"width",transform:Rr}),tr({prop:"size",cssProperty:"height",transform:Rr});vr(Lr,Br,Vr,Ur,Hr,Gr,tr({prop:"boxSizing"}));const Wr={border:{themeKey:"borders",transform:wr},borderTop:{themeKey:"borders",transform:wr},borderRight:{themeKey:"borders",transform:wr},borderBottom:{themeKey:"borders",transform:wr},borderLeft:{themeKey:"borders",transform:wr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fr},color:{themeKey:"palette",transform:Pr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pr},backgroundColor:{themeKey:"palette",transform:Pr},p:{style:yr},pt:{style:yr},pr:{style:yr},pb:{style:yr},pl:{style:yr},px:{style:yr},py:{style:yr},padding:{style:yr},paddingTop:{style:yr},paddingRight:{style:yr},paddingBottom:{style:yr},paddingLeft:{style:yr},paddingX:{style:yr},paddingY:{style:yr},paddingInline:{style:yr},paddingInlineStart:{style:yr},paddingInlineEnd:{style:yr},paddingBlock:{style:yr},paddingBlockStart:{style:yr},paddingBlockEnd:{style:yr},m:{style:fr},mt:{style:fr},mr:{style:fr},mb:{style:fr},ml:{style:fr},mx:{style:fr},my:{style:fr},margin:{style:fr},marginTop:{style:fr},marginRight:{style:fr},marginBottom:{style:fr},marginLeft:{style:fr},marginX:{style:fr},marginY:{style:fr},marginInline:{style:fr},marginInlineStart:{style:fr},marginInlineEnd:{style:fr},marginBlock:{style:fr},marginBlockStart:{style:fr},marginBlockEnd:{style:fr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Tr},rowGap:{style:Ir},columnGap:{style:Nr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rr},maxWidth:{style:Br},minWidth:{transform:Rr},height:{transform:Rr},maxHeight:{transform:Rr},minHeight:{transform:Rr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Zr=function(){function e(e,a,r,n){const i={[e]:a,theme:r},t=n[e];if(!t)return{[e]:a};const{cssProperty:o=e,themeKey:s,transform:l,style:c}=t;if(null==a)return null;if("typography"===s&&"inherit"===a)return{[e]:a};const d=nr(r,s)||{};if(c)return c(i);return ar(i,a,(a=>{let r=ir(d,l,a);return a===r&&"string"==typeof a&&(r=ir(d,l,`${e}${"default"===a?"":rr(a)}`,a)),!1===o?r:{[o]:r}}))}return function a(r){var n;const{sx:i,theme:t={}}=r||{};if(!i)return null;const o=null!=(n=t.unstable_sxConfig)?n:Wr;function s(r){let n=r;if("function"==typeof r)n=r(t);else if("object"!=typeof r)return r;if(!n)return null;const i=function(e={}){var a;return(null==(a=e.keys)?void 0:a.reduce(((a,r)=>(a[e.up(r)]={},a)),{}))||{}}(t.breakpoints),s=Object.keys(i);let l=i;return Object.keys(n).forEach((r=>{const i=(s=n[r],c=t,"function"==typeof s?s(c):s);var s,c;if(null!=i)if("object"==typeof i)if(o[r])l=Xa(l,e(r,i,t,o));else{const e=ar({theme:t},i,(e=>({[r]:e})));!function(...e){const a=e.reduce(((e,a)=>e.concat(Object.keys(a))),[]),r=new Set(a);return e.every((e=>r.size===Object.keys(e).length))}(e,i)?l=Xa(l,e):l[r]=a({sx:i,theme:t})}else l=Xa(l,e(r,i,t,o))})),function(e,a){return e.reduce(((e,a)=>{const r=e[a];return(!r||0===Object.keys(r).length)&&delete e[a],e}),a)}(s,l)}return Array.isArray(i)?i.map(s):s(i)}}();function Kr(e,a){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:a}}return r.palette.mode===e?a:{}}Zr.filterProps=["sx"];const Jr=["breakpoints","palette","spacing","shape"];function Yr(e={},...a){const{breakpoints:r={},palette:n={},spacing:i,shape:t={}}=e,o=ka(e,Jr),s=Ka(r),l=function(e=8){if(e.mui)return e;const a=gr({spacing:e}),r=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const r=a(e);return"number"==typeof r?`${r}px`:r})).join(" "));return r.mui=!0,r}(i);let c=Wa({breakpoints:s,direction:"ltr",components:{},palette:ba({mode:"light"},n),spacing:l,shape:ba({},Ja,t)},o);return c.applyStyles=Kr,c=a.reduce(((e,a)=>Wa(e,a)),c),c.unstable_sxConfig=ba({},Wr,null==o?void 0:o.unstable_sxConfig),c.unstable_sx=function(e){return Zr({sx:e,theme:this})},c}function Xr(e=null){const a=m.useContext(n.ThemeContext);return a&&(r=a,0!==Object.keys(r).length)?a:e;var r}const Qr=Yr();function en(e,a){const r=ba({},a);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=ba({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},t=a[n];r[n]={},t&&Object.keys(t)?i&&Object.keys(i)?(r[n]=ba({},t),Object.keys(i).forEach((e=>{r[n][e]=en(i[e],t[e])}))):r[n]=t:r[n]=i}else void 0===r[n]&&(r[n]=e[n])})),r}function an(e){const{theme:a,name:r,props:n}=e;return a&&a.components&&a.components[r]&&a.components[r].defaultProps?en(a.components[r].defaultProps,n):n}const rn="undefined"!=typeof window?m.useLayoutEffect:m.useEffect;function nn(e,a,r,n,i){const[t,o]=m.useState((()=>i&&r?r(e).matches:n?n(e).matches:a));return rn((()=>{let a=!0;if(!r)return;const n=r(e),i=()=>{a&&o(n.matches)};return i(),n.addListener(i),()=>{a=!1,n.removeListener(i)}}),[e,r]),t}const tn=m.useSyncExternalStore;function on(e,a,r,n,i){const t=m.useCallback((()=>a),[a]),o=m.useMemo((()=>{if(i&&r)return()=>r(e).matches;if(null!==n){const{matches:a}=n(e);return()=>a}return t}),[t,e,n,i,r]),[s,l]=m.useMemo((()=>{if(null===r)return[t,()=>()=>{}];const a=r(e);return[()=>a.matches,e=>(a.addListener(e),()=>{a.removeListener(e)})]}),[t,r,e]);return tn(l,s,o)}var sn=Object.freeze({__proto__:null,default:function(e,a=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(a,Math.min(e,r))}});const ln="exact-prop: ";const cn=m.createContext(null);function dn(){const e=m.useContext(cn);return"production"!==process.env.NODE_ENV&&m.useDebugValue(e),e}"production"!==process.env.NODE_ENV&&(cn.displayName="ThemeContext");var un="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function hn(e){const{children:a,theme:r}=e,n=dn();"production"!==process.env.NODE_ENV&&null===n&&"function"==typeof r&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const i=m.useMemo((()=>{const e=null===n?r:function(e,a){if("function"==typeof a){const r=a(e);return"production"!==process.env.NODE_ENV&&(r||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join("\n"))),r}return ba({},e,a)}(n,r);return null!=e&&(e[un]=null!==n),e}),[r,n]);return w.jsx(cn.Provider,{value:i,children:a})}"production"!==process.env.NODE_ENV&&(hn.propTypes={children:Ua.node,theme:Ua.oneOfType([Ua.object,Ua.func]).isRequired}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(hn.propTypes=function(e){return"production"===process.env.NODE_ENV?e:ba({},e,{[ln]:a=>{const r=Object.keys(a).filter((a=>!e.hasOwnProperty(a)));return r.length>0?new Error(`The following props are not supported: ${r.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}(hn.propTypes));const mn="exact-prop: ";const gn=["value"],pn=m.createContext();function bn(e){let{value:a}=e,r=ka(e,gn);return w.jsx(pn.Provider,ba({value:null==a||a},r))}"production"!==process.env.NODE_ENV&&(bn.propTypes={children:Ua.node,value:Ua.bool});const kn=m.createContext(void 0);function fn({value:e,children:a}){return w.jsx(kn.Provider,{value:e,children:a})}"production"!==process.env.NODE_ENV&&(fn.propTypes={children:Ua.node,value:Ua.object});const yn={};function vn(e,a,r,n=!1){return m.useMemo((()=>{const i=e&&a[e]||a;if("function"==typeof r){const t=r(i),o=e?ba({},a,{[e]:t}):t;return n?()=>o:o}return ba({},a,e?{[e]:r}:r)}),[e,a,r,n])}function wn(e){const{children:a,theme:r,themeId:i}=e,t=Xr(yn),o=dn()||yn;"production"!==process.env.NODE_ENV&&(null===t&&"function"==typeof r||i&&t&&!t[i]&&"function"==typeof r)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const s=vn(i,t,r),l=vn(i,o,r,!0),c="rtl"===s.direction;return w.jsx(hn,{theme:l,children:w.jsx(n.ThemeContext.Provider,{value:s,children:w.jsx(bn,{value:c,children:w.jsx(fn,{value:null==s?void 0:s.components,children:a})})})})}function zn(e){if("object"!=typeof e||null===e)return!1;const a=Object.getPrototypeOf(e);return!(null!==a&&a!==Object.prototype&&null!==Object.getPrototypeOf(a)||Symbol.toStringTag in e||Symbol.iterator in e)}function jn(e){if(m.isValidElement(e)||!zn(e))return e;const a={};return Object.keys(e).forEach((r=>{a[r]=jn(e[r])})),a}function xn(e,a,r={clone:!0}){const n=r.clone?ba({},e):e;return zn(e)&&zn(a)&&Object.keys(a).forEach((i=>{m.isValidElement(a[i])?n[i]=a[i]:zn(a[i])&&Object.prototype.hasOwnProperty.call(e,i)&&zn(e[i])?n[i]=xn(e[i],a[i],r):r.clone?n[i]=zn(a[i])?jn(a[i]):a[i]:n[i]=a[i]})),n}"production"!==process.env.NODE_ENV&&(wn.propTypes={children:Ua.node,theme:Ua.oneOfType([Ua.func,Ua.object]).isRequired,themeId:Ua.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(wn.propTypes=function(e){return"production"===process.env.NODE_ENV?e:ba({},e,{[mn]:a=>{const r=Object.keys(a).filter((a=>!e.hasOwnProperty(a)));return r.length>0?new Error(`The following props are not supported: ${r.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}(wn.propTypes));const qn=e=>e,$n=(()=>{let e=qn;return{configure(a){e=a},generate:a=>e(a),reset(){e=qn}}})(),Cn={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _n(e,a,r="Mui"){const n=Cn[a];return n?`${r}-${n}`:`${$n.generate(e)}-${a}`}function Sn(e,a){return ba({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},a)}var En,An={},On={exports:{}};(En=On).exports=function(e){return e&&e.__esModule?e:{default:e}},En.exports.__esModule=!0,En.exports.default=En.exports;var Dn=On.exports,Mn=p(va),Fn=p(sn),Tn=Dn;Object.defineProperty(An,"__esModule",{value:!0}),An.alpha=Kn,An.blend=function(e,a,r,n=1){const i=(e,a)=>Math.round((e**(1/n)*(1-r)+a**(1/n)*r)**n),t=Un(e),o=Un(a),s=[i(t.values[0],o.values[0]),i(t.values[1],o.values[1]),i(t.values[2],o.values[2])];return Gn({type:"rgb",values:s})},An.colorChannel=void 0;var Nn=An.darken=Jn;An.decomposeColor=Un,An.emphasize=Xn;var In=An.getContrastRatio=function(e,a){const r=Zn(e),n=Zn(a);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};An.getLuminance=Zn,An.hexToRgb=Vn,An.hslToRgb=Wn;var Pn=An.lighten=Yn;An.private_safeAlpha=function(e,a,r){try{return Kn(e,a)}catch(a){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},An.private_safeColorChannel=void 0,An.private_safeDarken=function(e,a,r){try{return Jn(e,a)}catch(a){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},An.private_safeEmphasize=function(e,a,r){try{return Xn(e,a)}catch(a){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},An.private_safeLighten=function(e,a,r){try{return Yn(e,a)}catch(a){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},An.recomposeColor=Gn,An.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:a}=Un(e);return`#${a.map(((e,a)=>function(e){const a=e.toString(16);return 1===a.length?`0${a}`:a}(3===a?Math.round(255*e):e))).join("")}`};var Rn=Tn(Mn),Ln=Tn(Fn);function Bn(e,a=0,r=1){return"production"!==process.env.NODE_ENV&&(e<a||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${a}, ${r}].`),(0,Ln.default)(e,a,r)}function Vn(e){e=e.slice(1);const a=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(a);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,a)=>a<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Un(e){if(e.type)return e;if("#"===e.charAt(0))return Un(Vn(e));const a=e.indexOf("("),r=e.substring(0,a);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Rn.default)(9,e));let n,i=e.substring(a+1,e.length-1);if("color"===r){if(i=i.split(" "),n=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${n}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Rn.default)(10,n))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:r,values:i,colorSpace:n}}const Hn=e=>{const a=Un(e);return a.values.slice(0,3).map(((e,r)=>-1!==a.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};An.colorChannel=Hn;function Gn(e){const{type:a,colorSpace:r}=e;let{values:n}=e;return-1!==a.indexOf("rgb")?n=n.map(((e,a)=>a<3?parseInt(e,10):e)):-1!==a.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==a.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${a}(${n})`}function Wn(e){e=Un(e);const{values:a}=e,r=a[0],n=a[1]/100,i=a[2]/100,t=n*Math.min(i,1-i),o=(e,a=(e+r/30)%12)=>i-t*Math.max(Math.min(a-3,9-a,1),-1);let s="rgb";const l=[Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4))];return"hsla"===e.type&&(s+="a",l.push(a[3])),Gn({type:s,values:l})}function Zn(e){let a="hsl"===(e=Un(e)).type||"hsla"===e.type?Un(Wn(e)).values:e.values;return a=a.map((a=>("color"!==e.type&&(a/=255),a<=.03928?a/12.92:((a+.055)/1.055)**2.4))),Number((.2126*a[0]+.7152*a[1]+.0722*a[2]).toFixed(3))}function Kn(e,a){return e=Un(e),a=Bn(a),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${a}`:e.values[3]=a,Gn(e)}function Jn(e,a){if(e=Un(e),a=Bn(a),-1!==e.type.indexOf("hsl"))e.values[2]*=1-a;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-a;return Gn(e)}function Yn(e,a){if(e=Un(e),a=Bn(a),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*a;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*a;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*a;return Gn(e)}function Xn(e,a=.15){return Zn(e)>.5?Jn(e,a):Yn(e,a)}An.private_safeColorChannel=(e,a)=>{try{return Hn(e)}catch(r){return a&&"production"!==process.env.NODE_ENV&&console.warn(a),e}};const Qn={black:"#000",white:"#fff"},ei={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ai="#f3e5f5",ri="#ce93d8",ni="#ba68c8",ii="#ab47bc",ti="#9c27b0",oi="#7b1fa2",si="#e57373",li="#ef5350",ci="#f44336",di="#d32f2f",ui="#c62828",hi="#ffb74d",mi="#ffa726",gi="#ff9800",pi="#f57c00",bi="#e65100",ki="#e3f2fd",fi="#90caf9",yi="#42a5f5",vi="#1976d2",wi="#1565c0",zi="#4fc3f7",ji="#29b6f6",xi="#03a9f4",qi="#0288d1",$i="#01579b",Ci="#81c784",_i="#66bb6a",Si="#4caf50",Ei="#388e3c",Ai="#2e7d32",Oi="#1b5e20",Di=["mode","contrastThreshold","tonalOffset"],Mi={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Qn.white,default:Qn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Fi={text:{primary:Qn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Qn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ti(e,a,r,n){const i=n.light||n,t=n.dark||1.5*n;e[a]||(e.hasOwnProperty(r)?e[a]=e[r]:"light"===a?e.light=Pn(e.main,i):"dark"===a&&(e.dark=Nn(e.main,t)))}function Ni(e){const{mode:a="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=ka(e,Di),t=e.primary||function(e="light"){return"dark"===e?{main:fi,light:ki,dark:yi}:{main:vi,light:yi,dark:wi}}(a),o=e.secondary||function(e="light"){return"dark"===e?{main:ri,light:ai,dark:ii}:{main:ti,light:ni,dark:oi}}(a),s=e.error||function(e="light"){return"dark"===e?{main:ci,light:si,dark:di}:{main:di,light:li,dark:ui}}(a),l=e.info||function(e="light"){return"dark"===e?{main:ji,light:zi,dark:qi}:{main:qi,light:xi,dark:$i}}(a),c=e.success||function(e="light"){return"dark"===e?{main:_i,light:Ci,dark:Ei}:{main:Ai,light:Si,dark:Oi}}(a),d=e.warning||function(e="light"){return"dark"===e?{main:mi,light:hi,dark:pi}:{main:"#ed6c02",light:gi,dark:bi}}(a);function u(e){const a=In(e,Fi.text.primary)>=r?Fi.text.primary:Mi.text.primary;if("production"!==process.env.NODE_ENV){const r=In(e,a);r<3&&console.error([`MUI: The contrast ratio of ${r}:1 for ${a} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return a}const h=({color:e,name:a,mainShade:r=500,lightShade:i=300,darkShade:t=700})=>{if(!(e=ba({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${a?` (${a})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${r}\` property.`:ga(11,a?` (${a})`:"",r));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${a?` (${a})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:ga(12,a?` (${a})`:"",JSON.stringify(e.main)));return Ti(e,"light",i,n),Ti(e,"dark",t,n),e.contrastText||(e.contrastText=u(e.main)),e},m={dark:Fi,light:Mi};"production"!==process.env.NODE_ENV&&(m[a]||console.error(`MUI: The palette mode \`${a}\` is not supported.`));return xn(ba({common:ba({},Qn),mode:a,primary:h({color:t,name:"primary"}),secondary:h({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:ei,contrastThreshold:r,getContrastText:u,augmentColor:h,tonalOffset:n},m[a]),i)}const Ii=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Pi={textTransform:"uppercase"},Ri='"Roboto", "Helvetica", "Arial", sans-serif';function Li(e,a){const r="function"==typeof a?a(e):a,{fontFamily:n=Ri,fontSize:i=14,fontWeightLight:t=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=r,h=ka(r,Ii);"production"!==process.env.NODE_ENV&&("number"!=typeof i&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof c&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=i/14,g=u||(e=>e/c*m+"rem"),p=(e,a,r,i,t)=>{return ba({fontFamily:n,fontWeight:e,fontSize:g(a),lineHeight:r},n===Ri?{letterSpacing:(o=i/a,Math.round(1e5*o)/1e5)+"em"}:{},t,d);var o},b={h1:p(t,96,1.167,-1.5),h2:p(t,60,1.2,-.5),h3:p(o,48,1.167,0),h4:p(o,34,1.235,.25),h5:p(o,24,1.334,0),h6:p(s,20,1.6,.15),subtitle1:p(o,16,1.75,.15),subtitle2:p(s,14,1.57,.1),body1:p(o,16,1.5,.15),body2:p(o,14,1.43,.15),button:p(s,14,1.75,.4,Pi),caption:p(o,12,1.66,.4),overline:p(o,12,2.66,1,Pi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return xn(ba({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:i,fontWeightLight:t,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},b),h,{clone:!1})}function Bi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Vi=["none",Bi(0,2,1,-1,0,1,1,0,0,1,3,0),Bi(0,3,1,-2,0,2,2,0,0,1,5,0),Bi(0,3,3,-2,0,3,4,0,0,1,8,0),Bi(0,2,4,-1,0,4,5,0,0,1,10,0),Bi(0,3,5,-1,0,5,8,0,0,1,14,0),Bi(0,3,5,-1,0,6,10,0,0,1,18,0),Bi(0,4,5,-2,0,7,10,1,0,2,16,1),Bi(0,5,5,-3,0,8,10,1,0,3,14,2),Bi(0,5,6,-3,0,9,12,1,0,3,16,2),Bi(0,6,6,-3,0,10,14,1,0,4,18,3),Bi(0,6,7,-4,0,11,15,1,0,4,20,3),Bi(0,7,8,-4,0,12,17,2,0,5,22,4),Bi(0,7,8,-4,0,13,19,2,0,5,24,4),Bi(0,7,9,-4,0,14,21,2,0,5,26,4),Bi(0,8,9,-5,0,15,22,2,0,6,28,5),Bi(0,8,10,-5,0,16,24,2,0,6,30,5),Bi(0,8,11,-5,0,17,26,2,0,6,32,5),Bi(0,9,11,-5,0,18,28,2,0,7,34,6),Bi(0,9,12,-6,0,19,29,2,0,7,36,6),Bi(0,10,13,-6,0,20,31,3,0,8,38,7),Bi(0,10,13,-6,0,21,33,3,0,8,40,7),Bi(0,10,14,-6,0,22,35,3,0,8,42,7),Bi(0,11,14,-7,0,23,36,3,0,9,44,8),Bi(0,11,15,-7,0,24,38,3,0,9,46,8)],Ui=["duration","easing","delay"],Hi={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Gi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wi(e){return`${Math.round(e)}ms`}function Zi(e){if(!e)return 0;const a=e/36;return Math.round(10*(4+15*a**.25+a/5))}function Ki(e){const a=ba({},Hi,e.easing),r=ba({},Gi,e.duration);return ba({getAutoHeightDuration:Zi,create:(e=["all"],n={})=>{const{duration:i=r.standard,easing:t=a.easeInOut,delay:o=0}=n,s=ka(n,Ui);if("production"!==process.env.NODE_ENV){const a=e=>"string"==typeof e,r=e=>!isNaN(parseFloat(e));a(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),r(i)||a(i)||console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),a(t)||console.error('MUI: Argument "easing" must be a string.'),r(o)||a(o)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof n&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:Wi(i)} ${t} ${"string"==typeof o?o:Wi(o)}`)).join(",")}},e,{easing:a,duration:r})}const Ji={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Yi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Xi=function(e={},...a){const{mixins:r={},palette:n={},transitions:i={},typography:t={}}=e,o=ka(e,Yi);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":ga(18));const s=Ni(n),l=Yr(e);let c=xn(l,{mixins:Sn(l.breakpoints,r),palette:s,shadows:Vi.slice(),typography:Li(s,t),transitions:Ki(i),zIndex:ba({},Ji)});if(c=xn(c,o),c=a.reduce(((e,a)=>xn(e,a)),c),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],a=(a,r)=>{let n;for(n in a){const i=a[n];if(-1!==e.indexOf(n)&&Object.keys(i).length>0){if("production"!==process.env.NODE_ENV){const e=_n("",n);console.error([`MUI: The \`${r}\` component increases the CSS specificity of the \`${n}\` internal state.`,"You can not override it like this: ",JSON.stringify(a,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:i}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}a[n]={}}}};Object.keys(c.components).forEach((e=>{const r=c.components[e].styleOverrides;r&&0===e.indexOf("Mui")&&a(r,e)}))}return c.unstable_sxConfig=ba({},Wr,null==o?void 0:o.unstable_sxConfig),c.unstable_sx=function(e){return Zr({sx:e,theme:this})},c}();function Qi(){const e=function(e=Qr){return Xr(e)}(Xi);return"production"!==process.env.NODE_ENV&&m.useDebugValue(e),e[pa]||e}const et=["theme"];function at(e){let{theme:a}=e,r=ka(e,et);const n=a[pa];return w.jsx(wn,ba({},r,{themeId:n?pa:void 0,theme:n||a}))}"production"!==process.env.NODE_ENV&&(at.propTypes={children:Ua.node,theme:Ua.oneOfType([Ua.object,Ua.func]).isRequired});const rt=()=>{const e=Qi();return[...e.breakpoints.keys].reduce(((a,r)=>{const n=function(e,a={}){const r=Xr(),n="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:t=(n?window.matchMedia:null),ssrMatchMedia:o=null,noSsr:s=!1}=an({name:"MuiUseMediaQuery",props:a,theme:r});"production"!==process.env.NODE_ENV&&"function"==typeof e&&null===r&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join("\n"));let l="function"==typeof e?e(r):e;l=l.replace(/^@media( ?)/m,"");const c=(void 0!==tn?on:nn)(l,i,t,o,s);return"production"!==process.env.NODE_ENV&&m.useDebugValue({query:l,match:c}),c}(e.breakpoints.up(r));return n?r:a}),null)??"sm"},nt=e=>({backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.icon.primary}),it=e=>({backgroundColor:e.custom.palette.purple[100],color:e.custom.palette.icon.primary,"&:hover":{"&:before":{background:e.custom.palette.interaction.hoverOnDark}},"&:active":{"&:before":{background:e.custom.palette.interaction.pressOnDark}}}),tt=e=>({backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,color:e.custom.palette.icon.primary,"&.MuiIconButton-root:disabled":{border:"none"}}),ot=e=>({backgroundColor:e.custom.palette.surface.raised,boxShadow:e.custom.elevation.raised,color:e.custom.palette.icon.primary,"&:focus-visible:after":{boxShadow:e.custom.boxShadow.input.focus},"&.MuiIconButton-root:disabled":{boxShadow:"none"}}),st=(e,a)=>({borderRadius:"default"===e?a.spacing(a.custom.radius.md):a.custom.radius.round}),lt={xs:3*O,sm:3.5*O,md:4*O,lg:5*O,xl:6*O},ct=e=>({height:lt[e],width:lt[e]}),dt={xs:2*O,sm:2*O,md:2*O,lg:2.5*O,xl:3*O},ut=e=>({height:dt[e],width:dt[e]}),ht=a.styled(a.IconButton)((({theme:e,variation:a,shape:r="default",sizing:n})=>({boxSizing:"border-box",transition:"all 200ms ease","&:before, &:after":{...r&&{...st(r,e)},transition:"all 250ms ease",content:'""',position:"absolute",inset:0},"&:hover:before":{backgroundColor:e.custom.palette.interaction.hover},"&:focus:before":{backgroundColor:e.custom.palette.interaction.hover},"&:active:before":{backgroundColor:e.custom.palette.interaction.press},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},...r&&{...st(r,e)},...n&&{...ct(n)},"&.MuiIconButton-root":{..."default"===a&&{...nt(e)},..."toggle"===a&&{...it(e)},..."outlined"===a&&{...tt(e)},..."raised"===a&&{...ot(e)},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,color:e.custom.palette.icon.disabled}},"& .MuiSvgIcon-root":{...n&&{...ut(n)},position:"relative",zIndex:1}}))),mt=({icon:e,loading:a,sizing:r,...n})=>w.jsx(ht,{...n,sizing:r,children:a?w.jsx(Be,{sizing:r}):e}),gt=(e,a)=>({"&:after":{content:'""',position:"absolute",bottom:0,width:0,height:1,borderBottom:`1px solid ${e.custom.palette.stroke.default}`,background:"grey"},borderRadius:0,"&:first-of-type":{borderRadius:e.spacing(e.custom.radius.md),borderBottomLeftRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:e.spacing(e.custom.radius.md),borderTopRightRadius:0,borderTopLeftRadius:0,"&:after":{content:"none"}}}),pt=(e,a)=>({"&:after":{content:'""',position:"absolute",right:0,width:1,height:0,borderRight:`1px solid ${e.custom.palette.stroke.default}`,background:"grey"},borderRadius:0,"&:first-of-type":{borderRadius:e.spacing(e.custom.radius.md),borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:e.spacing(e.custom.radius.md),borderTopLeftRadius:0,borderBottomLeftRadius:0,"&:after":{content:"none"}}}),bt=a.styled(a.ButtonGroup)((({theme:e,variation:a,orientation:r="horizontal",iconColor:n,sizing:i="lg",groupRaised:t=!1})=>({"&.MuiButtonGroup-root":{border:`1px solid ${e.custom.palette.stroke.default}`,...t&&{boxShadow:e.custom.elevation.raised,border:"none"},"& > button":{..."default"===a&&{...nt(e)},..."toggle"===a&&{...it(e)},..."vertical"===r&&{...gt(e)},..."horizontal"===r&&{...pt(e)},...i&&{...ct(i)}},"& .MuiSvgIcon-root":{...i&&{...ut(i)},fill:n||"inherit"}}}))),kt=({sx:e,...a})=>w.jsx(na,{...a,sx:z({fontSize:{xs:Se.sm.body.md,sm:Se.sm.body.md,md:Se.sm.body.md,lg:Se.lg.body.md,xl:Se.lg.body.md}},!!e&&{...e})}),ft=a.styled(a.Box)((({theme:e})=>({"& .MuiGrid-item":{"&:first-of-type":{"& .MuiBox-root":{"&:before":{width:C,borderRadius:e.custom.radius.round,right:"50%",transform:`translateX(-${C}px)`,left:"auto"}}},"&:last-child":{"& .MuiBox-root":{"&:after":{width:C,borderRadius:e.custom.radius.round,right:"auto",left:"50%",transform:`translateX(${C}px)`}}}}}))),yt=({children:e,width:a})=>w.jsx(ft,{sx:{width:a},children:e}),vt=a.styled(ia)((()=>({lineHeight:"110%",textAlign:"center",width:"100%"}))),wt=({disabled:e,children:a})=>w.jsx(vt,{showicon:!1,disabled:e,sx:{cursor:"inherit"},children:a}),zt=a.styled(la)((()=>({marginRight:0}))),jt=a.styled(a.Box)((({theme:e})=>({posiion:"relative","&:before":{content:'""',position:"absolute",top:"50%",left:0,height:q,width:`calc(50% - ${S/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default},"&:after":{content:'""',position:"absolute",top:"50%",right:0,height:q,width:`calc(50% - ${S/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default}}))),xt=e=>w.jsx(jt,{sx:{textAlign:"center",position:"relative"},children:w.jsx(zt,{...e})}),qt=({options:e=[],disabled:r=!1,sizing:n="lg",onChange:i,internalChange:t,value:o})=>{const s=a.useTheme();function l(e){console.warn(e),i(e.value),t&&t()}return w.jsx(a.Box,{children:w.jsx(yt,{children:w.jsx(a.Grid,{container:!0,justifyContent:"space-between",children:e.map((e=>w.jsxs(a.Grid,{item:!0,sm:!0,onClick:()=>l(e),sx:{cursor:"pointer",textAlign:"center","&:hover":{"& .MuiButtonBase-root.MuiRadio-root":{"&:before":{backgroundColor:s.custom.palette.interaction.hover}}},"&:active":{"& .MuiButtonBase-root.MuiRadio-root":{backgroundColor:s.custom.palette.input.default,borderColor:s.custom.palette.stroke.focus,boxShadow:s.custom.boxShadow.input.focus,"&:before":{backgroundColor:s.custom.palette.interaction.press},"&.Mui-checked":{backgroundColor:s.custom.palette.purple[500]}}}},children:[w.jsx(xt,{sizing:n,disabled:r,onChange:a=>l(e),checked:o===e.value},e.value),w.jsx(a.Box,{sx:{mt:D.xs,width:"100%"},children:w.jsx(wt,{disabled:r,children:e.label})})]},e.value)))})})})},$t=a.styled(a.Link)((({theme:e,disabled:a})=>({"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus,borderRadius:e.spacing(e.custom.radius.sm),outline:"none"},"&.MuiLink-root":{transition:"all 200ms ease",display:"inline",cursor:"pointer",color:a?e.custom.palette.text.lockedWhite:e.custom.palette.text.textLink,textDecorationColor:e.custom.palette.text.textLink,pointerEvents:a?"none":"auto","&:hover":{color:a?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover,textDecorationColor:a?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover},"&:active":{color:e.custom.palette.text.textLinkHover,textDecorationColor:e.custom.palette.text.textLinkHover},"&:visited":{color:a?e.custom.palette.text.disabled:e.custom.palette.text.textLink,textDecorationColor:a?e.custom.palette.text.disabled:e.custom.palette.text.textLink}}}))),Ct=e=>e.target&&"_blank"===e.target?w.jsx($t,{rel:"noopener",...e}):w.jsx($t,{...e});function _t(e,a){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.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++)a.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}var St;function Et(){}function At(e){return!!(e||"").match(/\d/)}function Ot(e){return null==e}function Dt(e){return Ot(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function Mt(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Ft(e,a){void 0===a&&(a=!0);var r="-"===e[0],n=r&&a,i=(e=e.replace("-","")).split(".");return{beforeDecimal:i[0],afterDecimal:i[1]||"",hasNegation:r,addNegation:n}}function Tt(e,a,r){for(var n="",i=r?"0":"",t=0;t<=a-1;t++)n+=e[t]||i;return n}function Nt(e,a){return Array(a+1).join(e)}function It(e){var a=e+"",r="-"===a[0]?"-":"";r&&(a=a.substring(1));var n=a.split(/[eE]/g),i=n[0],t=n[1];if(!(t=Number(t)))return r+i;var o=1+t,s=(i=i.replace(".","")).length;return o<0?i="0."+Nt("0",Math.abs(o))+i:o>=s?i+=Nt("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),r+i}function Pt(e,a,r){if(-1!==["","-"].indexOf(e))return e;var n=(-1!==e.indexOf(".")||r)&&a,i=Ft(e),t=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),c=(o.length<=a?"0."+o:l.toFixed(a)).split("."),d=t;return t&&Number(c[0])&&(d=t.split("").reverse().reduce((function(e,a,r){return e.length>r?(Number(e[0])+Number(a)).toString()+e.substring(1,e.length):a+e}),c[0])),""+(s?"-":"")+d+(n?".":"")+Tt(c[1]||"",a,r)}function Rt(e,a){if(e.value=e.value,null!==e){if(e.createTextRange){var r=e.createTextRange();return r.move("character",a),r.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(a,a),!0):(e.focus(),!1)}}!function(e){e.event="event",e.props="prop"}(St||(St={}));var Lt,Bt,Vt,Ut=(Lt=function(e,a){for(var r=0,n=0,i=e.length,t=a.length;e[r]===a[r]&&r<i;)r++;for(;e[i-1-n]===a[t-1-n]&&t-n>r&&i-n>r;)n++;return{from:{start:r,end:i-n},to:{start:r,end:t-n}}},Vt=void 0,function(){for(var e=[],a=arguments.length;a--;)e[a]=arguments[a];return Bt&&e.length===Bt.length&&e.every((function(e,a){return e===Bt[a]}))?Vt:(Bt=e,Vt=Lt.apply(void 0,e))});function Ht(e){return Math.max(e.selectionStart,e.selectionEnd)}function Gt(e){var a=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,i=e.formattedValueIndex;return a[n]===r[i]}function Wt(e,a,r,n){var i=e.length;if(a=function(e,a,r){return Math.min(Math.max(e,a),r)}(a,0,i),"left"===n){for(;a>=0&&!r[a];)a--;-1===a&&(a=r.indexOf(!0))}else{for(;a<=i&&!r[a];)a++;a>i&&(a=r.lastIndexOf(!0))}return-1===a&&(a=i),a}function Zt(e){for(var a=Array.from({length:e.length+1}).map((function(){return!0})),r=0,n=a.length;r<n;r++)a[r]=Boolean(At(e[r])||At(e[r-1]));return a}function Kt(a,r,n,i,t,o){void 0===o&&(o=Et);var s=function(a){var r=e.useRef(a);r.current=a;var n=e.useRef((function(){for(var e=[],a=arguments.length;a--;)e[a]=arguments[a];return r.current.apply(r,e)}));return n.current}((function(e,a){var r,n;return Dt(e)?(n="",r=""):"number"==typeof e||a?(n="number"==typeof e?It(e):e,r=i(n)):(n=t(e,void 0),r=i(n)),{formattedValue:r,numAsString:n}})),l=e.useState((function(){return s(Ot(a)?r:a,n)})),c=l[0],d=l[1],u=a,h=n;Ot(a)&&(u=c.numAsString,h=!0);var m=s(u,h);return e.useMemo((function(){d(m)}),[m.formattedValue]),[c,function(e,a){e.formattedValue!==c.formattedValue&&d({formattedValue:e.formattedValue,numAsString:e.value}),o(e,a)}]}function Jt(e){return e.replace(/[^0-9]/g,"")}function Yt(e){return e}function Xt(a){var r=a.type;void 0===r&&(r="text");var n=a.displayType;void 0===n&&(n="input");var i=a.customInput,t=a.renderText,o=a.getInputRef,s=a.format;void 0===s&&(s=Yt);var l=a.removeFormatting;void 0===l&&(l=Jt);var c=a.defaultValue,d=a.valueIsNumericString,u=a.onValueChange,h=a.isAllowed,m=a.onChange;void 0===m&&(m=Et);var g=a.onKeyDown;void 0===g&&(g=Et);var p=a.onMouseUp;void 0===p&&(p=Et);var b=a.onFocus;void 0===b&&(b=Et);var k=a.onBlur;void 0===k&&(k=Et);var f=a.value,y=a.getCaretBoundary;void 0===y&&(y=Zt);var v=a.isValidInputCharacter;void 0===v&&(v=At);var w=a.isCharacterSame,z=_t(a,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),j=Kt(f,c,Boolean(d),s,l,u),x=j[0],q=x.formattedValue,$=x.numAsString,C=j[1],_=e.useRef(),S=e.useRef({formattedValue:q,numAsString:$}),E=function(e,a){S.current={formattedValue:e.formattedValue,numAsString:e.value},C(e,a)},A=e.useState(!1),O=A[0],D=A[1],M=e.useRef(null),F=e.useRef({setCaretTimeout:null,focusTimeout:null});e.useEffect((function(){return D(!0),function(){clearTimeout(F.current.setCaretTimeout),clearTimeout(F.current.focusTimeout)}}),[]);var T=s,N=function(e,a){var r=parseFloat(a);return{formattedValue:e,value:a,floatValue:isNaN(r)?void 0:r}},I=function(e,a,r){0===e.selectionStart&&e.selectionEnd===e.value.length||(Rt(e,a),F.current.setCaretTimeout=setTimeout((function(){e.value===r&&e.selectionStart!==a&&Rt(e,a)}),0))},P=function(e,a,r){return Wt(e,a,y(e),r)},R=function(e,a,r){var n=y(a),i=function(e,a,r,n,i,t,o){void 0===o&&(o=Gt);var s=i.findIndex((function(e){return e})),l=e.slice(0,s);a||r.startsWith(l)||(a=l,r=l+r,n+=l.length);for(var c=r.length,d=e.length,u={},h=new Array(c),m=0;m<c;m++){h[m]=-1;for(var g=0,p=d;g<p;g++)if(o({currentValue:r,lastValue:a,formattedValue:e,currentValueIndex:m,formattedValueIndex:g})&&!0!==u[g]){h[m]=g,u[g]=!0;break}}for(var b=n;b<c&&(-1===h[b]||!t(r[b]));)b++;var k=b===c||-1===h[b]?d:h[b];for(b=n-1;b>0&&-1===h[b];)b--;var f=-1===b||-1===h[b]?0:h[b]+1;return f>k?k:n-f<k-n?f:k}(a,q,e,r,n,v,w);return i=Wt(a,i,n)};e.useEffect((function(){var e=S.current,a=e.formattedValue,r=e.numAsString;q===a&&$===r||E(N(q,$),{event:void 0,source:St.props})}),[q,$]);var L=M.current?Ht(M.current):void 0;("undefined"!=typeof window?e.useLayoutEffect:e.useEffect)((function(){var e=M.current;if(q!==S.current.formattedValue&&e){var a=R(S.current.formattedValue,q,L);e.value=q,I(e,a,q)}}),[q]);var B=function(e,a,r){var n=a.target,i=_.current?function(e,a){var r=Math.min(e.selectionStart,a);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:a}}}(_.current,n.selectionEnd):Ut(q,e),t=Object.assign(Object.assign({},i),{lastValue:q}),o=l(e,t),s=T(o);if(o=l(s,void 0),h&&!h(N(s,o))){var c=a.target,d=Ht(c),u=R(e,q,d);return c.value=q,I(c,u,q),!1}return function(e){var a=e.formattedValue;void 0===a&&(a="");var r,n=e.input,i=e.source,t=e.event,o=e.numAsString;if(n){var s=e.inputValue||n.value,l=Ht(n);n.value=a,void 0!==(r=R(s,a,l))&&I(n,r,a)}a!==q&&E(N(a,o),{event:t,source:i})}({formattedValue:s,numAsString:o,inputValue:e,event:a,source:r,input:a.target}),!0},V=function(e,a){void 0===a&&(a=0);var r=e.selectionStart,n=e.selectionEnd;_.current={selectionStart:r,selectionEnd:n+a}},U=!O||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",H=Object.assign({inputMode:U},z,{type:r,value:q,onChange:function(e){var a=e.target.value;B(a,e,St.event)&&m(e),_.current=void 0},onKeyDown:function(e){var a,r=e.target,n=e.key,i=r.selectionStart,t=r.selectionEnd,o=r.value;void 0===o&&(o=""),"ArrowLeft"===n||"Backspace"===n?a=Math.max(i-1,0):"ArrowRight"===n?a=Math.min(i+1,o.length):"Delete"===n&&(a=i);var s=0;"Delete"===n&&i===t&&(s=1);var l="ArrowLeft"===n||"ArrowRight"===n;if(void 0===a||i!==t&&!l)return g(e),void V(r,s);var c=a;l?(c=P(o,a,"ArrowLeft"===n?"left":"right"))!==a&&e.preventDefault():"Delete"!==n||v(o[a])?"Backspace"!==n||v(o[a])||(c=P(o,a,"left")):c=P(o,a,"right");c!==a&&I(r,c,o),g(e),V(r,s)},onMouseUp:function(e){var a=e.target,r=function(){var e=a.selectionStart,r=a.selectionEnd,n=a.value;if(void 0===n&&(n=""),e===r){var i=P(n,e);i!==e&&I(a,i,n)}};r(),requestAnimationFrame((function(){r()})),p(e),V(a)},onFocus:function(e){e.persist&&e.persist();var a=e.target,r=e.currentTarget;M.current=a,F.current.focusTimeout=setTimeout((function(){var n=a.selectionStart,i=a.selectionEnd,t=a.value;void 0===t&&(t="");var o=P(t,n);o===n||0===n&&i===t.length||I(a,o,t),b(Object.assign(Object.assign({},e),{currentTarget:r}))}),0)},onBlur:function(e){M.current=null,clearTimeout(F.current.focusTimeout),clearTimeout(F.current.setCaretTimeout),k(e)}});if("text"===n)return t?e.createElement(e.Fragment,null,t(q,z)||null):e.createElement("span",Object.assign({},z,{ref:o}),q);if(i){var G=i;return e.createElement(G,Object.assign({},H,{ref:o}))}return e.createElement("input",Object.assign({},H,{ref:o}))}function Qt(e,a){var r=a.decimalScale,n=a.fixedDecimalScale,i=a.prefix;void 0===i&&(i="");var t=a.suffix;void 0===t&&(t="");var o=a.allowNegative,s=a.thousandsGroupStyle;if(void 0===s&&(s="thousand"),""===e||"-"===e)return e;var l=eo(a),c=l.thousandSeparator,d=l.decimalSeparator,u=0!==r&&-1!==e.indexOf(".")||r&&n,h=Ft(e,o),m=h.beforeDecimal,g=h.afterDecimal,p=h.addNegation;return void 0!==r&&(g=Tt(g,r,!!n)),c&&(m=function(e,a,r){var n=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(r),i=e.search(/[1-9]/);return i=-1===i?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(n,"$1"+a)}(m,c,s)),i&&(m=i+m),t&&(g+=t),p&&(m="-"+m),e=m+(u&&d||"")+g}function eo(e){var a=e.decimalSeparator;void 0===a&&(a=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return!0===r&&(r=","),n||(n=[a,"."]),{decimalSeparator:a,thousandSeparator:r,allowedDecimalSeparators:n}}function ao(e,a,r){var n;void 0===a&&(a=function(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}(e));var i=r.allowNegative,t=r.prefix;void 0===t&&(t="");var o=r.suffix;void 0===o&&(o="");var s=r.decimalScale,l=a.from,c=a.to,d=c.start,u=c.end,h=eo(r),m=h.allowedDecimalSeparators,g=h.decimalSeparator,p=e[u]===g;if(At(e)&&(e===t||e===o)&&""===a.lastValue)return e;if(u-d==1&&-1!==m.indexOf(e[d])){var b=0===s?"":g;e=e.substring(0,d)+b+e.substring(d+1,e.length)}var k=function(e,a,r){var n=!1,i=!1;t.startsWith("-")?n=!1:e.startsWith("--")?(n=!1,i=!0):o.startsWith("-")&&e.length===o.length?n=!1:"-"===e[0]&&(n=!0);var s=n?1:0;return i&&(s=2),s&&(e=e.substring(s),a-=s,r-=s),{value:e,start:a,end:r,hasNegation:n}},f=k(e,d,u),y=f.hasNegation;e=(n=f).value,d=n.start,u=n.end;var v=k(a.lastValue,l.start,l.end),w=v.start,z=v.end,j=v.value,x=e.substring(d,u);!(e.length&&j.length&&(w>j.length-o.length||z<t.length))||x&&o.startsWith(x)||(e=j);var q=0;e.startsWith(t)?q+=t.length:d<t.length&&(q=d),u-=q;var $=(e=e.substring(q)).length,C=e.length-o.length;e.endsWith(o)?$=C:(u>C||u>e.length-o.length)&&($=u),e=e.substring(0,$),e=function(e,a){void 0===e&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),i=r.test(e),t=n.test(e);return e=e.replace(/-/g,""),i&&!t&&a&&(e="-"+e),e}(y?"-"+e:e,i),e=(e.match(function(e){return new RegExp("(^-)|[0-9]|"+Mt(e),"g")}(g))||[]).join("");var _=e.indexOf(g);e=e.replace(new RegExp(Mt(g),"g"),(function(e,a){return a===_?".":""}));var S=Ft(e,i),E=S.beforeDecimal,A=S.afterDecimal,O=S.addNegation;return c.end-c.start<l.end-l.start&&""===E&&p&&!parseFloat(A)&&(e=O?"-":""),e}function ro(e){e=function(e){var a=eo(e),r=a.thousandSeparator,n=a.decimalSeparator,i=e.prefix;void 0===i&&(i="");var t=e.allowNegative;if(void 0===t&&(t=!0),r===n)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+r+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+n+" (default value for decimalSeparator is .)\n ");return i.startsWith("-")&&t&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+i+"\n allowNegative: "+t+"\n "),t=!1),Object.assign(Object.assign({},e),{allowNegative:t})}(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var a=e.suffix,r=e.allowNegative,n=e.allowLeadingZeros,i=e.onKeyDown;void 0===i&&(i=Et);var t=e.onBlur;void 0===t&&(t=Et);var o=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,c=e.prefix;void 0===c&&(c="");var d=e.defaultValue,u=e.value,h=e.valueIsNumericString,m=e.onValueChange,g=_t(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),p=eo(e),b=p.decimalSeparator,k=p.allowedDecimalSeparators,f=function(a){return Qt(a,e)},y=function(a,r){return ao(a,r,e)},v=Ot(u)?d:u,w=null!=h?h:function(e,a,r){return""===e||!(null==a?void 0:a.match(/\d/))&&!(null==r?void 0:r.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(v,c,a);Ot(u)?Ot(d)||(w=w||"number"==typeof d):w=w||"number"==typeof u;var z=function(e){return Dt(e)?e:("number"==typeof e&&(e=It(e)),w&&"number"==typeof s?Pt(e,s,Boolean(l)):e)},j=Kt(z(u),z(d),Boolean(w),f,y,m),x=j[0],q=x.numAsString,$=x.formattedValue,C=j[1];return Object.assign(Object.assign({},g),{value:$,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===b||At(e)},isCharacterSame:function(e){var a=e.currentValue,r=e.lastValue,n=e.formattedValue,i=e.currentValueIndex,t=e.formattedValueIndex,o=a[i],d=n[t],h=Ut(r,a).to,m=function(e){return y(e).indexOf(".")+c.length};return!(0===u&&l&&s&&a[h.start]===b&&m(a)<i&&m(n)>t)&&(!!(i>=h.start&&i<h.end&&k&&k.includes(o)&&d===b)||o===d)},onValueChange:C,format:f,removeFormatting:y,getCaretBoundary:function(a){return function(e,a){var r=a.prefix;void 0===r&&(r="");var n=a.suffix;void 0===n&&(n="");var i=Array.from({length:e.length+1}).map((function(){return!0})),t="-"===e[0];i.fill(!1,0,r.length+(t?1:0));var o=e.length;return i.fill(!1,o-n.length+1,o+1),i}(a,e)},onKeyDown:function(e){var a=e.target,n=e.key,t=a.selectionStart,d=a.selectionEnd,u=a.value;if(void 0===u&&(u=""),("Backspace"===n||"Delete"===n)&&d<c.length)e.preventDefault();else if(t===d){"Backspace"===n&&"-"===u[0]&&t===c.length+1&&r&&Rt(a,1),s&&l&&("Backspace"===n&&u[t-1]===b?(Rt(a,t-1),e.preventDefault()):"Delete"===n&&u[t]===b&&e.preventDefault()),(null==k?void 0:k.includes(n))&&u[t]===b&&Rt(a,t+1);var h=!0===o?",":o;"Backspace"===n&&u[t-1]===h&&Rt(a,t-1),"Delete"===n&&u[t]===h&&Rt(a,t+1),i(e)}else i(e)},onBlur:function(a){var r=q;if(r.match(/\d/g)||(r=""),n||(r=function(e){if(!e)return e;var a="-"===e[0];a&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",i=r[1]||"";return(a?"-":"")+n+(i?"."+i:"")}(r)),l&&s&&(r=Pt(r,s,l)),r!==q){var i=Qt(r,e);C({formattedValue:i,value:r,floatValue:parseFloat(r)},{event:a,source:St.event})}t(a)}})}function no(a){var r=ro(a);return e.createElement(Xt,Object.assign({},r))}const io=(e,a,r)=>0===e||e?a&&e<a?a:r&&e>r?r:e:a||0,to=e.forwardRef((({inputRef:n,onChange:i,name:t,min:o,max:s,value:l,...c},d)=>{const u=a.useTheme(),[h,m]=e.useState(io(l,o,s)||0),g=e=>{const a=io(e?h+1:h-1,o,s);m(a),i&&i({target:{value:a}})},p=e.useCallback((()=>{const e=io(h,o,s);i&&i({target:{value:e}}),m(e)}),[h]);return w.jsxs(w.Fragment,{children:[w.jsx(no,{...c,style:{width:"100%"},getInputRef:n,allowNegative:o&&Math.sign(o),autoFocus:!1,value:h,onValueChange:({floatValue:e})=>{m(e)},onBlurCapture:p}),w.jsxs(a.Stack,{sx:{position:"absolute",top:0,right:0,height:"100%",ml:"auto",width:32,borderLeft:`1px solid ${u.custom.palette.stroke.default}`},children:[w.jsx(a.ButtonBase,{onClick:()=>g(!0),sx:{flex:1,borderTopRightRadius:u.spacing(u.custom.radius.md),fontSize:16,"&:hover":{background:u.custom.palette.interaction.hover}},children:w.jsx(r.ArrowDropUp,{fontSize:"inherit"})}),w.jsx(a.Divider,{}),w.jsx(a.ButtonBase,{onClick:()=>g(!1),sx:{flex:1,borderBottomRightRadius:u.spacing(u.custom.radius.md),fontSize:16,"&:hover":{background:u.custom.palette.interaction.hover}},children:w.jsx(r.ArrowDropDown,{fontSize:"inherit"})})]})]})})),oo=({startAdornment:e,endAdornment:r,placeholder:n,onChange:i,internalChange:t,inputRef:o,min:s,max:l,...c})=>w.jsx(Je,{placeholder:n,sx:{height:E,"& .MuiOutlinedInput-input":{pl:e?1:2,pr:e?1:2}},inputRef:o,inputProps:{min:s,max:l},InputProps:{inputComponent:to,endAdornment:r?w.jsx(a.InputAdornment,{position:"start",sx:{pr:1},children:r}):null},...c,onChange:e=>{i&&i(e),t&&t()}}),so=(e,a)=>"light"===a?{fontWeight:400}:{fontWeight:500,textTransform:"uppercase"},lo=(e,a,r)=>{switch(a){case"peach":return{background:e.custom.palette.peach[100],color:"heavy"===r?e.custom.palette.peach[1e3]:e.custom.palette.peach[800]};case"peachDark":return{background:e.custom.palette.peach[800],color:e.custom.palette.peach[0]};case"purple":return{background:e.custom.palette.purple[100],color:"heavy"===r?e.custom.palette.purple[1e3]:e.custom.palette.purple[800]};default:return{background:e.custom.palette.neutral[100],color:"heavy"===r?e.custom.palette.neutral[1e3]:e.custom.palette.neutral[800]}}},co=a.styled(a.Chip)((({theme:e,variation:a,weight:r})=>({borderRadius:e.spacing(e.custom.radius.md),height:28,...lo(e,a,r),"& .MuiChip-label":{fontSize:`${Se.sm.body.sm}`,padding:`0 ${e.spacing(e.custom.padding.sm)}`,...so(0,r)},"& .MuiChip-icon":{width:"0.8em",height:"0.8em",marginRight:-4,...lo(e,a,r),...so(0,r)}})));var uo=function(){function e(e){var a=this;this._insertTag=function(e){var r;r=0===a.tags.length?a.insertionPoint?a.insertionPoint.nextSibling:a.prepend?a.container.firstChild:a.before:a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(e,r),a.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var a=e.prototype;return a.hydrate=function(e){e.forEach(this._insertTag)},a.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var a=document.createElement("style");return a.setAttribute("data-emotion",e.key),void 0!==e.nonce&&a.setAttribute("nonce",e.nonce),a.appendChild(document.createTextNode("")),a.setAttribute("data-s",""),a}(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a].ownerNode===e)return document.styleSheets[a]}(a);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else a.appendChild(document.createTextNode(e));this.ctr++},a.flush=function(){this.tags.forEach((function(e){var a;return null==(a=e.parentNode)?void 0:a.removeChild(e)})),this.tags=[],this.ctr=0},e}(),ho="-ms-",mo="-moz-",go="-webkit-",po="comm",bo="rule",ko="decl",fo="@keyframes",yo=Math.abs,vo=String.fromCharCode,wo=Object.assign;function zo(e){return e.trim()}function jo(e,a,r){return e.replace(a,r)}function xo(e,a){return e.indexOf(a)}function qo(e,a){return 0|e.charCodeAt(a)}function $o(e,a,r){return e.slice(a,r)}function Co(e){return e.length}function _o(e){return e.length}function So(e,a){return a.push(e),e}var Eo=1,Ao=1,Oo=0,Do=0,Mo=0,Fo="";function To(e,a,r,n,i,t,o){return{value:e,root:a,parent:r,type:n,props:i,children:t,line:Eo,column:Ao,length:o,return:""}}function No(e,a){return wo(To("",null,null,"",null,null,0),e,{length:-e.length},a)}function Io(){return Mo=Do<Oo?qo(Fo,Do++):0,Ao++,10===Mo&&(Ao=1,Eo++),Mo}function Po(){return qo(Fo,Do)}function Ro(){return Do}function Lo(e,a){return $o(Fo,e,a)}function Bo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Vo(e){return Eo=Ao=1,Oo=Co(Fo=e),Do=0,[]}function Uo(e){return Fo="",e}function Ho(e){return zo(Lo(Do-1,Zo(91===e?e+2:40===e?e+1:e)))}function Go(e){for(;(Mo=Po())&&Mo<33;)Io();return Bo(e)>2||Bo(Mo)>3?"":" "}function Wo(e,a){for(;--a&&Io()&&!(Mo<48||Mo>102||Mo>57&&Mo<65||Mo>70&&Mo<97););return Lo(e,Ro()+(a<6&&32==Po()&&32==Io()))}function Zo(e){for(;Io();)switch(Mo){case e:return Do;case 34:case 39:34!==e&&39!==e&&Zo(Mo);break;case 40:41===e&&Zo(e);break;case 92:Io()}return Do}function Ko(e,a){for(;Io()&&e+Mo!==57&&(e+Mo!==84||47!==Po()););return"/*"+Lo(a,Do-1)+"*"+vo(47===e?e:Io())}function Jo(e){for(;!Bo(Po());)Io();return Lo(e,Do)}function Yo(e){return Uo(Xo("",null,null,null,[""],e=Vo(e),0,[0],e))}function Xo(e,a,r,n,i,t,o,s,l){for(var c=0,d=0,u=o,h=0,m=0,g=0,p=1,b=1,k=1,f=0,y="",v=i,w=t,z=n,j=y;b;)switch(g=f,f=Io()){case 40:if(108!=g&&58==qo(j,u-1)){-1!=xo(j+=jo(Ho(f),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:j+=Ho(f);break;case 9:case 10:case 13:case 32:j+=Go(g);break;case 92:j+=Wo(Ro()-1,7);continue;case 47:switch(Po()){case 42:case 47:So(es(Ko(Io(),Ro()),a,r),l);break;default:j+="/"}break;case 123*p:s[c++]=Co(j)*k;case 125*p:case 59:case 0:switch(f){case 0:case 125:b=0;case 59+d:-1==k&&(j=jo(j,/\f/g,"")),m>0&&Co(j)-u&&So(m>32?as(j+";",n,r,u-1):as(jo(j," ","")+";",n,r,u-2),l);break;case 59:j+=";";default:if(So(z=Qo(j,a,r,c,d,i,s,y,v=[],w=[],u),t),123===f)if(0===d)Xo(j,a,z,z,v,t,u,s,w);else switch(99===h&&110===qo(j,3)?100:h){case 100:case 108:case 109:case 115:Xo(e,z,z,n&&So(Qo(e,z,z,0,0,i,s,y,i,v=[],u),w),i,w,u,s,n?v:w);break;default:Xo(j,z,z,z,[""],w,0,s,w)}}c=d=m=0,p=k=1,y=j="",u=o;break;case 58:u=1+Co(j),m=g;default:if(p<1)if(123==f)--p;else if(125==f&&0==p++&&125==(Mo=Do>0?qo(Fo,--Do):0,Ao--,10===Mo&&(Ao=1,Eo--),Mo))continue;switch(j+=vo(f),f*p){case 38:k=d>0?1:(j+="\f",-1);break;case 44:s[c++]=(Co(j)-1)*k,k=1;break;case 64:45===Po()&&(j+=Ho(Io())),h=Po(),d=u=Co(y=j+=Jo(Ro())),f++;break;case 45:45===g&&2==Co(j)&&(p=0)}}return t}function Qo(e,a,r,n,i,t,o,s,l,c,d){for(var u=i-1,h=0===i?t:[""],m=_o(h),g=0,p=0,b=0;g<n;++g)for(var k=0,f=$o(e,u+1,u=yo(p=o[g])),y=e;k<m;++k)(y=zo(p>0?h[k]+" "+f:jo(f,/&\f/g,h[k])))&&(l[b++]=y);return To(e,a,r,0===i?bo:s,l,c,d)}function es(e,a,r){return To(e,a,r,po,vo(Mo),$o(e,2,-2),0)}function as(e,a,r,n){return To(e,a,r,ko,$o(e,0,n),$o(e,n+1,-1),n)}function rs(e,a){for(var r="",n=_o(e),i=0;i<n;i++)r+=a(e[i],i,e,a)||"";return r}function ns(e,a,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ko:return e.return=e.return||e.value;case po:return"";case fo:return e.return=e.value+"{"+rs(e.children,n)+"}";case bo:e.value=e.props.join(",")}return Co(r=rs(e.children,n))?e.return=e.value+"{"+r+"}":""}function is(e){var a=_o(e);return function(r,n,i,t){for(var o="",s=0;s<a;s++)o+=e[s](r,n,i,t)||"";return o}}var ts="undefined"!=typeof document,ss=function(e,a,r){for(var n=0,i=0;n=i,i=Po(),38===n&&12===i&&(a[r]=1),!Bo(i);)Io();return Lo(e,Do)},ls=function(e,a){return Uo(function(e,a){var r=-1,n=44;do{switch(Bo(n)){case 0:38===n&&12===Po()&&(a[r]=1),e[r]+=ss(Do-1,a,r);break;case 2:e[r]+=Ho(n);break;case 4:if(44===n){e[++r]=58===Po()?"&\f":"",a[r]=e[r].length;break}default:e[r]+=vo(n)}}while(n=Io());return e}(Vo(e),a))},cs=new WeakMap,ds=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var a=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===a.charCodeAt(0)||cs.get(r))&&!n){cs.set(e,!0);for(var i=[],t=ls(a,i),o=r.props,s=0,l=0;s<t.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=i[s]?t[s].replace(/&\f/g,o[c]):o[c]+" "+t[s]}}},us=function(e){if("decl"===e.type){var a=e.value;108===a.charCodeAt(0)&&98===a.charCodeAt(2)&&(e.return="",e.value="")}};function hs(e,a){switch(function(e,a){return 45^qo(e,0)?(((a<<2^qo(e,0))<<2^qo(e,1))<<2^qo(e,2))<<2^qo(e,3):0}(e,a)){case 5103:return go+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return go+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return go+e+mo+e+ho+e+e;case 6828:case 4268:return go+e+ho+e+e;case 6165:return go+e+ho+"flex-"+e+e;case 5187:return go+e+jo(e,/(\w+).+(:[^]+)/,go+"box-$1$2"+ho+"flex-$1$2")+e;case 5443:return go+e+ho+"flex-item-"+jo(e,/flex-|-self/,"")+e;case 4675:return go+e+ho+"flex-line-pack"+jo(e,/align-content|flex-|-self/,"")+e;case 5548:return go+e+ho+jo(e,"shrink","negative")+e;case 5292:return go+e+ho+jo(e,"basis","preferred-size")+e;case 6060:return go+"box-"+jo(e,"-grow","")+go+e+ho+jo(e,"grow","positive")+e;case 4554:return go+jo(e,/([^-])(transform)/g,"$1"+go+"$2")+e;case 6187:return jo(jo(jo(e,/(zoom-|grab)/,go+"$1"),/(image-set)/,go+"$1"),e,"")+e;case 5495:case 3959:return jo(e,/(image-set\([^]*)/,go+"$1$`$1");case 4968:return jo(jo(e,/(.+:)(flex-)?(.*)/,go+"box-pack:$3"+ho+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+go+e+e;case 4095:case 3583:case 4068:case 2532:return jo(e,/(.+)-inline(.+)/,go+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Co(e)-1-a>6)switch(qo(e,a+1)){case 109:if(45!==qo(e,a+4))break;case 102:return jo(e,/(.+:)(.+)-([^]+)/,"$1"+go+"$2-$3$1"+mo+(108==qo(e,a+3)?"$3":"$2-$3"))+e;case 115:return~xo(e,"stretch")?hs(jo(e,"stretch","fill-available"),a)+e:e}break;case 4949:if(115!==qo(e,a+1))break;case 6444:switch(qo(e,Co(e)-3-(~xo(e,"!important")&&10))){case 107:return jo(e,":",":"+go)+e;case 101:return jo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+go+(45===qo(e,14)?"inline-":"")+"box$3$1"+go+"$2$3$1"+ho+"$2box$3")+e}break;case 5936:switch(qo(e,a+11)){case 114:return go+e+ho+jo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return go+e+ho+jo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return go+e+ho+jo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return go+e+ho+e+e}return e}var ms,gs,ps=ts?void 0:(ms=function(){return e=function(){return{}},a=Object.create(null),function(r){return void 0===a[r]&&(a[r]=e(r)),a[r]};var e,a},gs=new WeakMap,function(e){if(gs.has(e))return gs.get(e);var a=ms(e);return gs.set(e,a),a}),bs=[function(e,a,r,n){if(e.length>-1&&!e.return)switch(e.type){case ko:e.return=hs(e.value,e.length);break;case fo:return rs([No(e,{value:jo(e.value,"@","@"+go)})],n);case bo:if(e.length)return function(e,a){return e.map(a).join("")}(e.props,(function(a){switch(function(e,a){return(e=a.exec(e))?e[0]:e}(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rs([No(e,{props:[jo(a,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return rs([No(e,{props:[jo(a,/:(plac\w+)/,":"+go+"input-$1")]}),No(e,{props:[jo(a,/:(plac\w+)/,":-moz-$1")]}),No(e,{props:[jo(a,/:(plac\w+)/,ho+"input-$1")]})],n)}return""}))}}],ks=function(e){var a=e.key;if(ts&&"css"===a){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,i,t=e.stylisPlugins||bs,o={},s=[];ts&&(n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),(function(e){for(var a=e.getAttribute("data-emotion").split(" "),r=1;r<a.length;r++)o[a[r]]=!0;s.push(e)})));var l,c=[ds,us];if(ps){var d=[ns],u=is(c.concat(t,d)),h=ps(t)(a),m=function(e,a){var r=a.name;return void 0===h[r]&&(h[r]=rs(Yo(e?e+"{"+a.styles+"}":a.styles),u)),h[r]};i=function(e,a,r,n){var i=a.name,t=m(e,a);return void 0===k.compat?(n&&(k.inserted[i]=!0),t):n?void(k.inserted[i]=t):t}}else{var g,p=[ns,(l=function(e){g.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],b=is(c.concat(t,p));i=function(e,a,r,n){g=r,rs(Yo(e?e+"{"+a.styles+"}":a.styles),b),n&&(k.inserted[a.name]=!0)}}var k={key:a,sheet:new uo({key:a,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:i};return k.sheet.hydrate(s),k};const fs=a.styled("iframe")((()=>({border:"none",height:"100%",width:"100%"}))),ys=({options:r,onChange:n,other:i,value:t,internalChange:o,...s})=>{const l=i?.enabled,c="other-option",d=`${c}-value-`,[u,h]=e.useState(t),[m,g]=e.useState(!1);e.useEffect((()=>{!m&&u?.includes(d)?g(!0):m&&g(!1)}),[u]);return w.jsxs(w.Fragment,{children:[w.jsxs(a.RadioGroup,{...s,value:u,sx:{display:"flex",gap:e=>e.custom.margin.sm,label:{"&:last-child":{mb:0},"&:hover":{"& .MuiRadio-root":{backgroundColor:e=>e.custom.palette.interaction.hover,"&.Mui-checked":{backgroundColor:e=>e.custom.palette.purple[500]}}}}},onChange:(e,a)=>{n&&n(a),h(a),o&&o()},children:[r?r.map(((e,a)=>w.jsx(Ge,{sx:{"& .MuiButtonBase-root.MuiRadio-root":{alignSelf:"baseline"}},...e,control:w.jsx(la,{})},a))):null,l&&w.jsx(Ge,{label:i?.label||"Other",value:d,control:w.jsx(la,{checked:u?.includes(d)})},c)]}),m&&w.jsx(a.Box,{sx:{mt:1},children:w.jsx(Ye,{fullWidth:!0,autoFocus:!0,placeholder:i?.placeholder,defaultValue:u?.replace(d,""),onChange:e=>{var a;n&&n((a=e.target.value,`${d}${a}`)),o&&o()},required:!0})})]})},vs=e.createContext({attributes:{},listeners:void 0,ref(){}}),ws=e=>s.defaultAnimateLayoutChanges({...e,wasDragging:!0});function zs({children:r,top:n,bottom:i,id:t}){const{attributes:o,isDragging:c,listeners:d,setNodeRef:u,setActivatorNodeRef:h,transform:m,transition:g}=s.useSortable({id:t,animateLayoutChanges:ws}),p=e.useMemo((()=>({attributes:o,listeners:d,ref:h})),[o,d,h]),b={opacity:c?.4:void 0,transform:l.CSS.Translate.toString(m),transition:g};return w.jsx(vs.Provider,{value:p,children:w.jsxs(a.Stack,{className:"SortableItem",...o,sx:{position:"relative",...b,width:"100%"},ref:u,children:[n&&n,w.jsx(a.Box,{...d,sx:{display:"flex",cursor:"grab"},children:r}),i&&i]})})}const js={sideEffects:o.defaultDropAnimationSideEffects({styles:{active:{opacity:"0.4"}}})};function xs({children:e}){return t.createPortal(w.jsx(o.DragOverlay,{zIndex:999999,dropAnimation:js,children:e}),document.body)}const qs=({nativeEvent:e})=>{let a=e.target;for(;a;){if(a.dataset.noDnd)return!1;a=a.parentElement}return!0};class $s extends o.MouseSensor{static activators=[{eventName:"onMouseDown",handler:qs}]}class Cs extends o.TouchSensor{static activators=[{eventName:"onTouchStart",handler:qs}]}function _s({items:r,onChange:n,renderItem:i,disabled:t,direction:l}){if(!r)return;const[c,d]=e.useState(null),u=e.useMemo((()=>r.find((e=>e?.id===c?.id))),[c,r]),h=a.useTheme(),m=a.useMediaQuery(h.breakpoints.down("md")),g=o.useSensors(o.useSensor($s,{activationConstraint:{distance:5}}),o.useSensor(Cs,{activationConstraint:{delay:m?300:0,tolerance:8}}),o.useSensor(o.KeyboardSensor,{coordinateGetter:s.sortableKeyboardCoordinates}));return w.jsxs(o.DndContext,{measuring:{droppable:{strategy:o.MeasuringStrategy.Always}},sensors:g,onDragStart:({active:e})=>{d(e)},onDragEnd:({active:e,over:a})=>{if(a&&e.id!==a?.id){const i=r.findIndex((({id:a})=>a===e.id)),t=r.findIndex((({id:e})=>e===a.id));n(s.arrayMove(r,i,t))}d(null)},onDragCancel:()=>{d(null)},children:[w.jsx(s.SortableContext,{items:r,disabled:t,strategy:"horizontal"===l?s.horizontalListSortingStrategy:s.verticalListSortingStrategy,children:w.jsx(a.Stack,{sx:{..."horizontal"===l&&{flexDirection:"row"},display:"flex",m:0,gap:1,padding:0,alignContent:"flex-start"},children:r.map((a=>w.jsx(e.Fragment,{children:i(a)},a.id)))})}),w.jsx(xs,{children:u?i(u,!0,!!c):null})]})}_s.Item=zs,_s.DragHandle=function(){const{attributes:r,listeners:n,ref:i}=e.useContext(vs);return w.jsx(a.Box,{...r,...n,ref:i,children:w.jsx("svg",{viewBox:"0 0 20 20",width:"12",children:w.jsx("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})};const Ss=({handleSelectAll:r,isIndeterminate:n,isAllSelected:i,sizing:t})=>{const[o,s]=e.useState(!1),l=a.useTheme();return e.useEffect((()=>{i&&s(i)}),[i]),w.jsxs(a.Stack,{direction:"row",gap:l.spacing(l.custom.padding.sm),onClick:e=>{const a=!o;s(a),r(e,a)},sx:{marginLeft:"auto",display:"flex",alignItems:"center",justifyContent:"flex-end",p:e=>e.custom.padding.sm},children:[w.jsx(a.FormLabel,{sx:{cursor:"pointer",fontSize:()=>t&&Ae[t]},children:"Select all"}),w.jsx(Ze,{sizing:"default",indeterminate:n,checked:o})]})},Es=e.forwardRef((({children:e,handleSelectAll:a,value:r=[],selections:n,sizing:i,...t},o)=>{const s=r.length===n.length,l=r.length>0&&r.length<n.length;return w.jsxs("ul",{ref:o,...t,children:[w.jsx(Ss,{handleSelectAll:a,isIndeterminate:l,isAllSelected:s,sizing:i}),e]})})),As="0px 4px 8px 0px #06040D14, 0px 16px 24px 0px #06040D14, 0px 0px 4px 2px #06040D0A, 0px 0px 0px 1px #FFFFFF29",Os=e=>{switch(e){case"xs":return 24;case"md":return 32;default:return 40}},Ds=(e,a)=>({"& .MuiTypography-root":{height:Os(a),fontSize:Ae[a],display:"flex",alignItems:"center",paddingLeft:e.spacing("xs"===a?e.custom.padding.xs:e.custom.padding.sm),paddingRight:e.spacing("xs"===a?e.custom.padding.xs:e.custom.padding.sm)}}),Ms=e=>({fontSize:`${Se.sm.body.md}`,borderRadius:e.spacing(e.custom.radius.md),position:"relative",padding:e.spacing(e.custom.padding.sm),"& .MuiSelect-outlined":{padding:0},"& .MuiSelect-select.MuiInputBase-input":{paddingRight:e.spacing(M.md)},"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",background:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.md),inset:0,zIndex:0},"&:hover:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-focused:before":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-disabled:before":{backgroundColor:e.custom.palette.interaction.none},"& .MuiSelect-select":{position:"relative"}}),Fs=(e,a)=>{switch(a){case"lg":return{height:Os(a),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:R.lg,height:R.lg,top:`calc(50% - ${R.lg/2}px)`}};case"md":return{height:Os(a),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:R.md,height:R.md,top:`calc(50% - ${R.md/2}px)`}};case"xs":return{height:Os(a),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:R.xs,height:R.xs,top:`calc(50% - ${R.xs/2}px)`}};default:return{height:Os("lg"),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:R.lg,height:R.lg,top:`calc(50% - ${R.lg/2}px)`}}}},Ts=e=>({position:"relative",fontSize:`${Se.sm.body.md}`,backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.text.primary,"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",inset:0,zIndex:1},"& > .MuiBox-root":{position:"relative",zIndex:2,width:"100%","& .MuiSvgIcon-root":{marginRight:e.spacing(e.custom.margin.sm),width:R.xl,height:R.xl},"& .MuiBox-root":{padding:e.spacing(e.custom.padding.sm),lineHeight:"22px"}}}),Ns=e=>({"&.MuiModal-root.MuiPopover-root":{"&.MuiMenu-root":{borderRadius:e.spacing(e.custom.radius.sm),"& .MuiPaper-root":{border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:As}}}}),Is=a.styled(a.Autocomplete)((({theme:e,sizing:a,value:r})=>({maxWidth:"100%",backgroundColor:e.custom.palette.surface.raised,borderRadius:e.spacing(e.custom.radius.md),border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiSvgIcon-root":{...a&&{width:R[a],height:R[a]}},"&.MuiAutocomplete-root .MuiOutlinedInput-root .MuiAutocomplete-input":{...a&&{height:"xs"===a?2*O+"px":3*O+"px"},paddingTop:0,paddingBottom:0,paddingLeft:r&&r?.length>0?0:e.spacing(e.custom.padding.sm),justifyContent:"center",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .MuiAutocomplete-inputRoot":{...a&&{fontSize:Ae[a],gap:"lg"===a?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)},display:"flex",alignItems:"flex-start",paddingRight:3*O+"px",flexWrap:"wrap",height:"auto"},"& .MuiOutlinedInput-root":{display:"flex",alignItems:"center",padding:"0"},"& .MuiAutocomplete-tag":{...a&&{height:"xs"===a?2*O+"px":3*O+"px"},margin:0,"& .MuiSvgIcon-root":{height:"12px",width:"12px"}},"&.Mui-disabled":{backgroundColor:`${e.custom.palette.input.disabled}`,borderColor:`${e.custom.palette.stroke.disabled}`},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"& .MuiChip-root .MuiChip-label":{height:20,lineHeight:"20px",maxWidth:140,...a&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`}}}))),Ps=a.styled(a.Chip)((({theme:e,sizing:a})=>({borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.default,...a&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`},"& .MuiChip-deleteIcon":{fill:e.custom.palette.icon.primary,borderRadius:e.custom.radius.round,margin:0,"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,fill:e.custom.palette.icon.disabled}}}))),Rs=a.styled(a.TextField)((({theme:e,sizing:a})=>({"& .MuiOutlinedInput-root":{padding:0,...a&&{margin:"lg"===a?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)}},"& .MuiInputBase-input":{padding:"0 14px"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}}))),Ls=a.styled(a.Popper)((({theme:e,sizing:r})=>({"& .MuiPaper-root":{...r&&{margin:"lg"===r?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs),marginLeft:"lg"===r?`-${e.spacing(e.custom.padding.sm)}`:`-${e.spacing(e.custom.padding.xs)}`,marginTop:`calc(${"lg"===r?e.spacing(e.custom.margin.sm):e.spacing(e.custom.margin.xs)} + ${e.spacing(e.custom.margin.xs)})`},border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:As,borderRadius:e.spacing(e.custom.radius.sm)},[`& .${a.autocompleteClasses.listbox}`]:{overflowX:"hidden",[`& .${a.autocompleteClasses.option}`]:{fontSize:Ae[r],...r&&{height:"lg"===r?5*O+"px":4*O+"px"},"> span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},'&[aria-selected="true"]':{backgroundColor:e.custom.palette.interaction.hover,display:"flex",alignItems:"center",justifyContent:"space-between"}}}}))),Bs=e=>w.jsx(Ls,{...e}),Vs=({selections:a,disableClearable:n=!1,disabled:i,internalChange:t,onChange:o,placeholder:s="",renderListItem:l,sizing:c="lg",value:d=[]})=>{const[u,h]=e.useState(a.filter((e=>d.includes(e?.value)))),m=(e,r)=>{if(o){const n=r?a.map((({value:e})=>e)):[];h(r?a:[]),o(e,n,"selectOption"),t&&t()}};return w.jsx(Is,{disabledItemsFocusable:!0,autoFocus:!1,disableCloseOnSelect:!0,blurOnSelect:!1,popupIcon:w.jsx(r.KeyboardArrowDown,{}),sizing:c,disabled:i,disableClearable:n,autoComplete:!0,multiple:!0,renderInput:e=>w.jsx(Rs,{...e,placeholder:u.length>0?void 0:s,sizing:c}),options:a,renderTags:(e,a)=>e.map(((e,n)=>{const{key:i,...t}=a({index:n});return w.jsx(Ps,{sizing:c,deleteIcon:w.jsx(r.CloseRounded,{fontSize:"small"}),label:e.label,...t},i)})),onChange:(e,a,r)=>{const n=a.map((({value:e})=>e));o&&(h(a),o(e,n,r)),t&&t()},PopperComponent:e=>w.jsx(Bs,{...e,sizing:c}),isOptionEqualToValue:(e,a)=>e.value===a.value,renderOption:(e,a,{selected:n})=>{const{key:i,...t}=e;return w.jsxs("li",{...t,children:[w.jsx("span",{children:l?l(a.label):a.label}),w.jsx(r.Check,{sx:{visibility:n?"visible":"hidden",fontSize:"16px"}})]},i)},ListboxComponent:e.forwardRef(((e,r)=>w.jsx(Es,{ref:r,...e,handleSelectAll:m,value:u,selections:a,sizing:c}))),value:u})},Us=a.styled(a.MenuItem)((({theme:e})=>({...{...Ts(e)},"&.Mui-focusVisible":{backgroundColor:e.custom.palette.interaction.none},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{backgroundColor:e.custom.palette.input.default}},"&.MuiButtonBase-root.MuiMenuItem-root.Mui-disabled":{backgroundColor:e.custom.palette.input.default,color:e.custom.palette.text.disabled,"&:before":{backgroundColor:e.custom.palette.interaction.disabled}},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:before":{backgroundColor:e.custom.palette.interaction.hover}}},"&:active":{"&:before":{backgroundColor:e.custom.palette.interaction.press}}}))),Hs=({children:e,selected:n,...i})=>w.jsx(Us,{...i,children:w.jsxs(a.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[w.jsx(a.Box,{children:e}),n&&w.jsx(r.Check,{})]})}),Gs=a.styled(a.Select)((({theme:e,sizing:a})=>({...{...Ms(e)},...a&&{...Fs(e,a)},...a&&{...Ds(e,a)},backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiOutlinedInput-notchedOutline":{border:e.custom.palette.stroke.default},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.custom.palette.stroke.default}},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& .MuiSvgIcon-root":{color:e.custom.palette.icon.disabled,transition:e.custom.easing.input}}}))),Ws=({selections:e,autoComplete:n=!1,disabled:i=!1,disablePortal:t=!1,inputRef:o,internalChange:s,onChange:l,placeholder:c="",selectOptionProps:d,sizing:u="lg",sx:h,value:m=[],renderListItem:g,...p})=>{const b=a.useTheme(),k=rt();return n?w.jsx(Vs,{selections:e,placeholder:c,disabled:i,sizing:u,onChange:(e,a)=>{l&&l(a),s&&s()},value:Array.isArray(m)?m:[],internalChange:s,renderListItem:g}):w.jsxs(Gs,{sizing:u,inputRef:o,MenuProps:{disablePortal:t,sx:Ns,anchorOrigin:{vertical:45,horizontal:"center"}},displayEmpty:!0,IconComponent:r.KeyboardArrowDown,renderValue:a=>c&&!a?w.jsx(qe,{component:"p",variation:"sm"===k||"md"===k?"sm":"lg",sx:{color:b.custom.palette.text.placeholder},children:c}):w.jsx(qe,{component:"p",variation:"sm"===k||"md"===k?"sm":"lg",children:e?.find((({value:e})=>e===a))?.label}),onChange:(e,a)=>{l&&l(e,a),s&&s()},sx:h,value:m,...p,children:[""!==c.trim()&&w.jsx(Hs,{disabled:!0,value:"","aria-label":"placeholder",children:c},"placeholder"),e?.map((({value:e,label:a})=>w.jsx(Hs,{value:e,...d,children:g?g(a):a},e)))]})},Zs=a.styled(a.Box)((({theme:e,disabled:a,fullWidth:r})=>({width:r?"100%":"auto",minWidth:240,backgroundColor:a?e.custom.palette.input.disabled:e.custom.palette.surface.raised,border:`1px solid ${a?e.custom.palette.stroke.disabled:e.custom.palette.stroke.default}`,borderRadius:e.spacing(e.custom.radius.lg),padding:e.spacing(e.custom.padding.md),position:"relative",zIndex:0,"&:after":{content:'""',backgroundColor:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.lg),position:"absolute",inset:0},"&:hover":{"&:after":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{"&:after":{backgroundColor:e.custom.palette.interaction.press}},"& svg":{fill:e.custom.palette.icon.primary},...a&&{background:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"&:after":{backgroundColor:e.custom.palette.interaction.none},"& .MuiBox-root > .MuiSvgIcon-root":{fill:"none"}}}))),Ks=a.styled(kt)((({theme:e})=>({fontSize:Se.button.md,color:e.custom.palette.text.primary,lineHeight:"120%",letterSpacing:"0.16px"}))),Js=({label:e="Placeholder",disabled:n,onChange:i,options:t,fullWidth:o})=>{const s=a.useTheme(),l=t.map((e=>e.label)).indexOf(e);return w.jsx(Zs,{disabled:n,fullWidth:o,children:w.jsxs(a.Stack,{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center",sx:{position:"relative",zIndex:1},children:[w.jsxs(a.Box,{display:"flex",alignItems:"center",sx:{"& svg":{fill:s.custom.palette.icon.secondary}},children:[w.jsx(r.DragHandle,{sx:{width:R.lg,height:R.lg,mr:s.custom.padding.sm}}),w.jsx(Ks,{align:"left",disabled:n,children:e})]}),w.jsx(Ws,{sizing:"xs",selections:t.map(((e,a)=>({label:`${a+1}`,value:`${a}`}))),disabled:n,value:`${l}`,onChange:function(e){const a=l,r=Number(e.target.value),n=t;let o=1;const s=n.splice(a,o)[0];o=0,n.splice(r,o,s),i(n)},MenuProps:{anchorOrigin:{vertical:S,horizontal:"center"}}})]})})},Ys=({labelTop:r,labelBottom:n,disabled:i,fullWidth:t=!1,options:o,onChange:s,value:l,internalChange:c})=>{const d=a.useTheme(),[u,h]=e.useState(l||o);function m(e){h(e),s(e.map((({id:e})=>e))),c&&c()}return w.jsxs(a.Stack,{gap:d.custom.margin.sm,textAlign:"center",sx:{width:t?"100%":"auto"},children:[r&&w.jsx(kt,{disabled:i,sx:{color:d.custom.palette.text.secondary},children:r}),w.jsx(_s,{onChange:function(e){h(e),s(e.map((({id:e})=>e))),c&&c()},items:u,direction:"vertical",renderItem:({...e})=>w.jsx(zs,{id:e.id,children:w.jsx(Js,{onChange:m,...e,options:u,disabled:i,selections:e.selections,fullWidth:t})})}),n&&w.jsx(kt,{disabled:i,sx:{color:d.custom.palette.text.secondary},children:n})]})};function Xs(e){this.content=e}function Qs(e,a,r){for(let n=0;;n++){if(n==e.childCount||n==a.childCount)return e.childCount==a.childCount?null:r;let i=e.child(n),t=a.child(n);if(i!=t){if(!i.sameMarkup(t))return r;if(i.isText&&i.text!=t.text){for(let e=0;i.text[e]==t.text[e];e++)r++;return r}if(i.content.size||t.content.size){let e=Qs(i.content,t.content,r+1);if(null!=e)return e}r+=i.nodeSize}else r+=i.nodeSize}}function el(e,a,r,n){for(let i=e.childCount,t=a.childCount;;){if(0==i||0==t)return i==t?null:{a:r,b:n};let o=e.child(--i),s=a.child(--t),l=o.nodeSize;if(o!=s){if(!o.sameMarkup(s))return{a:r,b:n};if(o.isText&&o.text!=s.text){let e=0,a=Math.min(o.text.length,s.text.length);for(;e<a&&o.text[o.text.length-e-1]==s.text[s.text.length-e-1];)e++,r--,n--;return{a:r,b:n}}if(o.content.size||s.content.size){let e=el(o.content,s.content,r-1,n-1);if(e)return e}r-=l,n-=l}else r-=l,n-=l}}Xs.prototype={constructor:Xs,find:function(e){for(var a=0;a<this.content.length;a+=2)if(this.content[a]===e)return a;return-1},get:function(e){var a=this.find(e);return-1==a?void 0:this.content[a+1]},update:function(e,a,r){var n=r&&r!=e?this.remove(r):this,i=n.find(e),t=n.content.slice();return-1==i?t.push(r||e,a):(t[i+1]=a,r&&(t[i]=r)),new Xs(t)},remove:function(e){var a=this.find(e);if(-1==a)return this;var r=this.content.slice();return r.splice(a,2),new Xs(r)},addToStart:function(e,a){return new Xs([e,a].concat(this.remove(e).content))},addToEnd:function(e,a){var r=this.remove(e).content.slice();return r.push(e,a),new Xs(r)},addBefore:function(e,a,r){var n=this.remove(a),i=n.content.slice(),t=n.find(e);return i.splice(-1==t?i.length:t,0,a,r),new Xs(i)},forEach:function(e){for(var a=0;a<this.content.length;a+=2)e(this.content[a],this.content[a+1])},prepend:function(e){return(e=Xs.from(e)).size?new Xs(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=Xs.from(e)).size?new Xs(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var a=this;e=Xs.from(e);for(var r=0;r<e.content.length;r+=2)a=a.remove(e.content[r]);return a},toObject:function(){var e={};return this.forEach((function(a,r){e[a]=r})),e},get size(){return this.content.length>>1}},Xs.from=function(e){if(e instanceof Xs)return e;var a=[];if(e)for(var r in e)a.push(r,e[r]);return new Xs(a)};class al{constructor(e,a){if(this.content=e,this.size=a||0,null==a)for(let a=0;a<e.length;a++)this.size+=e[a].nodeSize}nodesBetween(e,a,r,n=0,i){for(let t=0,o=0;o<a;t++){let s=this.content[t],l=o+s.nodeSize;if(l>e&&!1!==r(s,n+o,i||null,t)&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,a-i),r,n+i)}o=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,a,r,n){let i="",t=!0;return this.nodesBetween(e,a,((o,s)=>{let l=o.isText?o.text.slice(Math.max(e,s)-s,a-s):o.isLeaf?n?"function"==typeof n?n(o):n:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&l||o.isTextblock)&&r&&(t?t=!1:i+=r),i+=l}),0),i}append(e){if(!e.size)return this;if(!this.size)return e;let a=this.lastChild,r=e.firstChild,n=this.content.slice(),i=0;for(a.isText&&a.sameMarkup(r)&&(n[n.length-1]=a.withText(a.text+r.text),i=1);i<e.content.length;i++)n.push(e.content[i]);return new al(n,this.size+e.size)}cut(e,a=this.size){if(0==e&&a==this.size)return this;let r=[],n=0;if(a>e)for(let i=0,t=0;t<a;i++){let o=this.content[i],s=t+o.nodeSize;s>e&&((t<e||s>a)&&(o=o.isText?o.cut(Math.max(0,e-t),Math.min(o.text.length,a-t)):o.cut(Math.max(0,e-t-1),Math.min(o.content.size,a-t-1))),r.push(o),n+=o.nodeSize),t=s}return new al(r,n)}cutByIndex(e,a){return e==a?al.empty:0==e&&a==this.content.length?this:new al(this.content.slice(e,a))}replaceChild(e,a){let r=this.content[e];if(r==a)return this;let n=this.content.slice(),i=this.size+a.nodeSize-r.nodeSize;return n[e]=a,new al(n,i)}addToStart(e){return new al([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new al(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let a=0;a<this.content.length;a++)if(!this.content[a].eq(e.content[a]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let a=this.content[e];if(!a)throw new RangeError("Index "+e+" out of range for "+this);return a}maybeChild(e){return this.content[e]||null}forEach(e){for(let a=0,r=0;a<this.content.length;a++){let n=this.content[a];e(n,r,a),r+=n.nodeSize}}findDiffStart(e,a=0){return Qs(this,e,a)}findDiffEnd(e,a=this.size,r=e.size){return el(this,e,a,r)}findIndex(e,a=-1){if(0==e)return nl(0,e);if(e==this.size)return nl(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,n=0;;r++){let i=n+this.child(r).nodeSize;if(i>=e)return i==e||a>0?nl(r+1,i):nl(r,n);n=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((e=>e.toJSON())):null}static fromJSON(e,a){if(!a)return al.empty;if(!Array.isArray(a))throw new RangeError("Invalid input for Fragment.fromJSON");return new al(a.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return al.empty;let a,r=0;for(let n=0;n<e.length;n++){let i=e[n];r+=i.nodeSize,n&&i.isText&&e[n-1].sameMarkup(i)?(a||(a=e.slice(0,n)),a[a.length-1]=i.withText(a[a.length-1].text+i.text)):a&&a.push(i)}return new al(a||e,r)}static from(e){if(!e)return al.empty;if(e instanceof al)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new al([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}al.empty=new al([],0);const rl={index:0,offset:0};function nl(e,a){return rl.index=e,rl.offset=a,rl}function il(e,a){if(e===a)return!0;if(!e||"object"!=typeof e||!a||"object"!=typeof a)return!1;let r=Array.isArray(e);if(Array.isArray(a)!=r)return!1;if(r){if(e.length!=a.length)return!1;for(let r=0;r<e.length;r++)if(!il(e[r],a[r]))return!1}else{for(let r in e)if(!(r in a)||!il(e[r],a[r]))return!1;for(let r in a)if(!(r in e))return!1}return!0}let tl=class e{constructor(e,a){this.type=e,this.attrs=a}addToSet(e){let a,r=!1;for(let n=0;n<e.length;n++){let i=e[n];if(this.eq(i))return e;if(this.type.excludes(i.type))a||(a=e.slice(0,n));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(a||(a=e.slice(0,n)),a.push(this),r=!0),a&&a.push(i)}}return a||(a=e.slice()),r||a.push(this),a}removeFromSet(e){for(let a=0;a<e.length;a++)if(this.eq(e[a]))return e.slice(0,a).concat(e.slice(a+1));return e}isInSet(e){for(let a=0;a<e.length;a++)if(this.eq(e[a]))return!0;return!1}eq(e){return this==e||this.type==e.type&&il(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let a in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,a){if(!a)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[a.type];if(!r)throw new RangeError(`There is no mark type ${a.type} in this schema`);let n=r.create(a.attrs);return r.checkAttrs(n.attrs),n}static sameSet(e,a){if(e==a)return!0;if(e.length!=a.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(a[r]))return!1;return!0}static setFrom(a){if(!a||Array.isArray(a)&&0==a.length)return e.none;if(a instanceof e)return[a];let r=a.slice();return r.sort(((e,a)=>e.type.rank-a.type.rank)),r}};tl.none=[];class ol extends Error{}class sl{constructor(e,a,r){this.content=e,this.openStart=a,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,a){let r=cl(this.content,e+this.openStart,a);return r&&new sl(r,this.openStart,this.openEnd)}removeBetween(e,a){return new sl(ll(this.content,e+this.openStart,a+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,a){if(!a)return sl.empty;let r=a.openStart||0,n=a.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw new RangeError("Invalid input for Slice.fromJSON");return new sl(al.fromJSON(e,a.content),r,n)}static maxOpen(e,a=!0){let r=0,n=0;for(let n=e.firstChild;n&&!n.isLeaf&&(a||!n.type.spec.isolating);n=n.firstChild)r++;for(let r=e.lastChild;r&&!r.isLeaf&&(a||!r.type.spec.isolating);r=r.lastChild)n++;return new sl(e,r,n)}}function ll(e,a,r){let{index:n,offset:i}=e.findIndex(a),t=e.maybeChild(n),{index:o,offset:s}=e.findIndex(r);if(i==a||t.isText){if(s!=r&&!e.child(o).isText)throw new RangeError("Removing non-flat range");return e.cut(0,a).append(e.cut(r))}if(n!=o)throw new RangeError("Removing non-flat range");return e.replaceChild(n,t.copy(ll(t.content,a-i-1,r-i-1)))}function cl(e,a,r,n){let{index:i,offset:t}=e.findIndex(a),o=e.maybeChild(i);if(t==a||o.isText)return e.cut(0,a).append(r).append(e.cut(a));let s=cl(o.content,a-t-1,r);return s&&e.replaceChild(i,o.copy(s))}function dl(e,a,r){if(r.openStart>e.depth)throw new ol("Inserted content deeper than insertion position");if(e.depth-r.openStart!=a.depth-r.openEnd)throw new ol("Inconsistent open depths");return ul(e,a,r,0)}function ul(e,a,r,n){let i=e.index(n),t=e.node(n);if(i==a.index(n)&&n<e.depth-r.openStart){let o=ul(e,a,r,n+1);return t.copy(t.content.replaceChild(i,o))}if(r.content.size){if(r.openStart||r.openEnd||e.depth!=n||a.depth!=n){let{start:i,end:o}=function(e,a){let r=a.depth-e.openStart,n=a.node(r).copy(e.content);for(let e=r-1;e>=0;e--)n=a.node(e).copy(al.from(n));return{start:n.resolveNoCache(e.openStart+r),end:n.resolveNoCache(n.content.size-e.openEnd-r)}}(r,e);return bl(t,kl(e,i,o,a,n))}{let n=e.parent,i=n.content;return bl(n,i.cut(0,e.parentOffset).append(r.content).append(i.cut(a.parentOffset)))}}return bl(t,fl(e,a,n))}function hl(e,a){if(!a.type.compatibleContent(e.type))throw new ol("Cannot join "+a.type.name+" onto "+e.type.name)}function ml(e,a,r){let n=e.node(r);return hl(n,a.node(r)),n}function gl(e,a){let r=a.length-1;r>=0&&e.isText&&e.sameMarkup(a[r])?a[r]=e.withText(a[r].text+e.text):a.push(e)}function pl(e,a,r,n){let i=(a||e).node(r),t=0,o=a?a.index(r):i.childCount;e&&(t=e.index(r),e.depth>r?t++:e.textOffset&&(gl(e.nodeAfter,n),t++));for(let e=t;e<o;e++)gl(i.child(e),n);a&&a.depth==r&&a.textOffset&&gl(a.nodeBefore,n)}function bl(e,a){return e.type.checkContent(a),e.copy(a)}function kl(e,a,r,n,i){let t=e.depth>i&&ml(e,a,i+1),o=n.depth>i&&ml(r,n,i+1),s=[];return pl(null,e,i,s),t&&o&&a.index(i)==r.index(i)?(hl(t,o),gl(bl(t,kl(e,a,r,n,i+1)),s)):(t&&gl(bl(t,fl(e,a,i+1)),s),pl(a,r,i,s),o&&gl(bl(o,fl(r,n,i+1)),s)),pl(n,null,i,s),new al(s)}function fl(e,a,r){let n=[];if(pl(null,e,r,n),e.depth>r){gl(bl(ml(e,a,r+1),fl(e,a,r+1)),n)}return pl(a,null,r,n),new al(n)}sl.empty=new sl(al.empty,0,0);class yl{constructor(e,a,r){this.pos=e,this.path=a,this.parentOffset=r,this.depth=a.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,a=this.index(this.depth);if(a==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=e.child(a);return r?e.child(a).cut(r):n}get nodeBefore(){let e=this.index(this.depth),a=this.pos-this.path[this.path.length-1];return a?this.parent.child(e).cut(0,a):0==e?null:this.parent.child(e-1)}posAtIndex(e,a){a=this.resolveDepth(a);let r=this.path[3*a],n=0==a?0:this.path[3*a-1]+1;for(let a=0;a<e;a++)n+=r.child(a).nodeSize;return n}marks(){let e=this.parent,a=this.index();if(0==e.content.size)return tl.none;if(this.textOffset)return e.child(a).marks;let r=e.maybeChild(a-1),n=e.maybeChild(a);if(!r){let e=r;r=n,n=e}let i=r.marks;for(var t=0;t<i.length;t++)!1!==i[t].type.spec.inclusive||n&&i[t].isInSet(n.marks)||(i=i[t--].removeFromSet(i));return i}marksAcross(e){let a=this.parent.maybeChild(this.index());if(!a||!a.isInline)return null;let r=a.marks,n=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)!1!==r[i].type.spec.inclusive||n&&r[i].isInSet(n.marks)||(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let a=this.depth;a>0;a--)if(this.start(a)<=e&&this.end(a)>=e)return a;return 0}blockRange(e=this,a){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!a||a(this.node(r))))return new jl(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let a=1;a<=this.depth;a++)e+=(e?"/":"")+this.node(a).type.name+"_"+this.index(a-1);return e+":"+this.parentOffset}static resolve(e,a){if(!(a>=0&&a<=e.content.size))throw new RangeError("Position "+a+" out of range");let r=[],n=0,i=a;for(let a=e;;){let{index:e,offset:t}=a.content.findIndex(i),o=i-t;if(r.push(a,e,n+t),!o)break;if(a=a.child(e),a.isText)break;i=o-1,n+=t+1}return new yl(a,r,i)}static resolveCached(e,a){let r=zl.get(e);if(r)for(let e=0;e<r.elts.length;e++){let n=r.elts[e];if(n.pos==a)return n}else zl.set(e,r=new vl);let n=r.elts[r.i]=yl.resolve(e,a);return r.i=(r.i+1)%wl,n}}class vl{constructor(){this.elts=[],this.i=0}}const wl=12,zl=new WeakMap;class jl{constructor(e,a,r){this.$from=e,this.$to=a,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const xl=Object.create(null);let ql=class e{constructor(e,a,r,n=tl.none){this.type=e,this.attrs=a,this.marks=n,this.content=r||al.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,a,r,n=0){this.content.nodesBetween(e,a,r,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,a,r,n){return this.content.textBetween(e,a,r,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,a,r){return this.type==e&&il(this.attrs,a||e.defaultAttrs||xl)&&tl.sameSet(this.marks,r||tl.none)}copy(a=null){return a==this.content?this:new e(this.type,this.attrs,a,this.marks)}mark(a){return a==this.marks?this:new e(this.type,this.attrs,this.content,a)}cut(e,a=this.content.size){return 0==e&&a==this.content.size?this:this.copy(this.content.cut(e,a))}slice(e,a=this.content.size,r=!1){if(e==a)return sl.empty;let n=this.resolve(e),i=this.resolve(a),t=r?0:n.sharedDepth(a),o=n.start(t),s=n.node(t).content.cut(n.pos-o,i.pos-o);return new sl(s,n.depth-t,i.depth-t)}replace(e,a,r){return dl(this.resolve(e),this.resolve(a),r)}nodeAt(e){for(let a=this;;){let{index:r,offset:n}=a.content.findIndex(e);if(a=a.maybeChild(r),!a)return null;if(n==e||a.isText)return a;e-=n+1}}childAfter(e){let{index:a,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(a),index:a,offset:r}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:a,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(a),index:a,offset:r};let n=this.content.child(a-1);return{node:n,index:a-1,offset:r-n.nodeSize}}resolve(e){return yl.resolveCached(this,e)}resolveNoCache(e){return yl.resolve(this,e)}rangeHasMark(e,a,r){let n=!1;return a>e&&this.nodesBetween(e,a,(e=>(r.isInSet(e.marks)&&(n=!0),!n))),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Cl(this.marks,e)}contentMatchAt(e){let a=this.type.contentMatch.matchFragment(this.content,0,e);if(!a)throw new Error("Called contentMatchAt on a node with invalid content");return a}canReplace(e,a,r=al.empty,n=0,i=r.childCount){let t=this.contentMatchAt(e).matchFragment(r,n,i),o=t&&t.matchFragment(this.content,a);if(!o||!o.validEnd)return!1;for(let e=n;e<i;e++)if(!this.type.allowsMarks(r.child(e).marks))return!1;return!0}canReplaceWith(e,a,r,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(e).matchType(r),t=i&&i.matchFragment(this.content,a);return!!t&&t.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=tl.none;for(let a=0;a<this.marks.length;a++){let r=this.marks[a];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!tl.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((e=>e.type.name))}`);this.content.forEach((e=>e.check()))}toJSON(){let e={type:this.type.name};for(let a in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((e=>e.toJSON()))),e}static fromJSON(e,a){if(!a)throw new RangeError("Invalid input for Node.fromJSON");let r;if(a.marks){if(!Array.isArray(a.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=a.marks.map(e.markFromJSON)}if("text"==a.type){if("string"!=typeof a.text)throw new RangeError("Invalid text node in JSON");return e.text(a.text,r)}let n=al.fromJSON(e,a.content),i=e.nodeType(a.type).create(a.attrs,n,r);return i.type.checkAttrs(i.attrs),i}};ql.prototype.text=void 0;class $l extends ql{constructor(e,a,r,n){if(super(e,a,null,n),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Cl(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,a){return this.text.slice(e,a)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new $l(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new $l(this.type,this.attrs,e,this.marks)}cut(e=0,a=this.text.length){return 0==e&&a==this.text.length?this:this.withText(this.text.slice(e,a))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Cl(e,a){for(let r=e.length-1;r>=0;r--)a=e[r].type.name+"("+a+")";return a}class _l{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,a){let r=new Sl(e,a);if(null==r.next)return _l.empty;let n=El(r);r.next&&r.err("Unexpected trailing text");let i=function(e){let a=Object.create(null);return r(Tl(e,0));function r(n){let i=[];n.forEach((a=>{e[a].forEach((({term:a,to:r})=>{if(!a)return;let n;for(let e=0;e<i.length;e++)i[e][0]==a&&(n=i[e][1]);Tl(e,r).forEach((e=>{n||i.push([a,n=[]]),-1==n.indexOf(e)&&n.push(e)}))}))}));let t=a[n.join(",")]=new _l(n.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let n=i[e][1].sort(Fl);t.next.push({type:i[e][0],next:a[n.join(",")]||r(n)})}return t}}(function(e){let a=[[]];return i(t(e,0),r()),a;function r(){return a.push([])-1}function n(e,r,n){let i={term:n,to:r};return a[e].push(i),i}function i(e,a){e.forEach((e=>e.to=a))}function t(e,a){if("choice"==e.type)return e.exprs.reduce(((e,r)=>e.concat(t(r,a))),[]);if("seq"!=e.type){if("star"==e.type){let o=r();return n(a,o),i(t(e.expr,o),o),[n(o)]}if("plus"==e.type){let o=r();return i(t(e.expr,a),o),i(t(e.expr,o),o),[n(o)]}if("opt"==e.type)return[n(a)].concat(t(e.expr,a));if("range"==e.type){let o=a;for(let a=0;a<e.min;a++){let a=r();i(t(e.expr,o),a),o=a}if(-1==e.max)i(t(e.expr,o),o);else for(let a=e.min;a<e.max;a++){let a=r();n(o,a),i(t(e.expr,o),a),o=a}return[n(o)]}if("name"==e.type)return[n(a,void 0,e.value)];throw new Error("Unknown expr type")}for(let n=0;;n++){let o=t(e.exprs[n],a);if(n==e.exprs.length-1)return o;i(o,a=r())}}}(n));return function(e,a){for(let r=0,n=[e];r<n.length;r++){let e=n[r],i=!e.validEnd,t=[];for(let a=0;a<e.next.length;a++){let{type:r,next:o}=e.next[a];t.push(r.name),!i||r.isText||r.hasRequiredAttrs()||(i=!1),-1==n.indexOf(o)&&n.push(o)}i&&a.err("Only non-generatable nodes ("+t.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(i,r),i}matchType(e){for(let a=0;a<this.next.length;a++)if(this.next[a].type==e)return this.next[a].next;return null}matchFragment(e,a=0,r=e.childCount){let n=this;for(let i=a;n&&i<r;i++)n=n.matchType(e.child(i).type);return n}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:a}=this.next[e];if(!a.isText&&!a.hasRequiredAttrs())return a}return null}compatible(e){for(let a=0;a<this.next.length;a++)for(let r=0;r<e.next.length;r++)if(this.next[a].type==e.next[r].type)return!0;return!1}fillBefore(e,a=!1,r=0){let n=[this];return function i(t,o){let s=t.matchFragment(e,r);if(s&&(!a||s.validEnd))return al.from(o.map((e=>e.createAndFill())));for(let e=0;e<t.next.length;e++){let{type:a,next:r}=t.next[e];if(!a.isText&&!a.hasRequiredAttrs()&&-1==n.indexOf(r)){n.push(r);let e=i(r,o.concat(a));if(e)return e}}return null}(this,[])}findWrapping(e){for(let a=0;a<this.wrapCache.length;a+=2)if(this.wrapCache[a]==e)return this.wrapCache[a+1];let a=this.computeWrapping(e);return this.wrapCache.push(e,a),a}computeWrapping(e){let a=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let n=r.shift(),i=n.match;if(i.matchType(e)){let e=[];for(let a=n;a.type;a=a.via)e.push(a.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:t,next:o}=i.next[e];t.isLeaf||t.hasRequiredAttrs()||t.name in a||n.type&&!o.validEnd||(r.push({match:t.contentMatch,type:t,via:n}),a[t.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function a(r){e.push(r);for(let n=0;n<r.next.length;n++)-1==e.indexOf(r.next[n].next)&&a(r.next[n].next)}(this),e.map(((a,r)=>{let n=r+(a.validEnd?"*":" ")+" ";for(let r=0;r<a.next.length;r++)n+=(r?", ":"")+a.next[r].type.name+"->"+e.indexOf(a.next[r].next);return n})).join("\n")}}_l.empty=new _l(!0);class Sl{constructor(e,a){this.string=e,this.nodeTypes=a,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function El(e){let a=[];do{a.push(Al(e))}while(e.eat("|"));return 1==a.length?a[0]:{type:"choice",exprs:a}}function Al(e){let a=[];do{a.push(Ol(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==a.length?a[0]:{type:"seq",exprs:a}}function Ol(e){let a=function(e){if(e.eat("(")){let a=El(e);return e.eat(")")||e.err("Missing closing paren"),a}if(!/\W/.test(e.next)){let a=function(e,a){let r=e.nodeTypes,n=r[a];if(n)return[n];let i=[];for(let e in r){let n=r[e];n.isInGroup(a)&&i.push(n)}0==i.length&&e.err("No node type or group '"+a+"' found");return i}(e,e.next).map((a=>(null==e.inline?e.inline=a.isInline:e.inline!=a.isInline&&e.err("Mixing inline and block content"),{type:"name",value:a})));return e.pos++,1==a.length?a[0]:{type:"choice",exprs:a}}e.err("Unexpected token '"+e.next+"'")}(e);for(;;)if(e.eat("+"))a={type:"plus",expr:a};else if(e.eat("*"))a={type:"star",expr:a};else if(e.eat("?"))a={type:"opt",expr:a};else{if(!e.eat("{"))break;a=Ml(e,a)}return a}function Dl(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let a=Number(e.next);return e.pos++,a}function Ml(e,a){let r=Dl(e),n=r;return e.eat(",")&&(n="}"!=e.next?Dl(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:a}}function Fl(e,a){return a-e}function Tl(e,a){let r=[];return function a(n){let i=e[n];if(1==i.length&&!i[0].term)return a(i[0].to);r.push(n);for(let e=0;e<i.length;e++){let{term:n,to:t}=i[e];n||-1!=r.indexOf(t)||a(t)}}(a),r.sort(Fl)}function Nl(e){let a=Object.create(null);for(let r in e){let n=e[r];if(!n.hasDefault)return null;a[r]=n.default}return a}function Il(e,a){let r=Object.create(null);for(let n in e){let i=a&&a[n];if(void 0===i){let a=e[n];if(!a.hasDefault)throw new RangeError("No value supplied for attribute "+n);i=a.default}r[n]=i}return r}function Pl(e,a,r,n){for(let n in a)if(!(n in e))throw new RangeError(`Unsupported attribute ${n} for ${r} of type ${n}`);for(let r in e){let n=e[r];n.validate&&n.validate(a[r])}}function Rl(e,a){let r=Object.create(null);if(a)for(let n in a)r[n]=new Bl(e,n,a[n]);return r}let Ll=class e{constructor(e,a,r){this.name=e,this.schema=a,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Rl(e,r.attrs),this.defaultAttrs=Nl(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==_l.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Il(this.attrs,e)}create(e=null,a,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ql(this,this.computeAttrs(e),al.from(a),tl.setFrom(r))}createChecked(e=null,a,r){return a=al.from(a),this.checkContent(a),new ql(this,this.computeAttrs(e),a,tl.setFrom(r))}createAndFill(e=null,a,r){if(e=this.computeAttrs(e),(a=al.from(a)).size){let e=this.contentMatch.fillBefore(a);if(!e)return null;a=e.append(a)}let n=this.contentMatch.matchFragment(a),i=n&&n.fillBefore(al.empty,!0);return i?new ql(this,e,a.append(i),tl.setFrom(r)):null}validContent(e){let a=this.contentMatch.matchFragment(e);if(!a||!a.validEnd)return!1;for(let a=0;a<e.childCount;a++)if(!this.allowsMarks(e.child(a).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Pl(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let a=0;a<e.length;a++)if(!this.allowsMarkType(e[a].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let a;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?a&&a.push(e[r]):a||(a=e.slice(0,r));return a?a.length?a:tl.none:e}static compile(a,r){let n=Object.create(null);a.forEach(((a,i)=>n[a]=new e(a,r,i)));let i=r.spec.topNode||"doc";if(!n[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};class Bl{constructor(e,a,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate="string"==typeof r.validate?function(e,a,r){let n=r.split("|");return r=>{let i=null===r?"null":typeof r;if(n.indexOf(i)<0)throw new RangeError(`Expected value of type ${n} for attribute ${a} on type ${e}, got ${i}`)}}(e,a,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Vl{constructor(e,a,r,n){this.name=e,this.rank=a,this.schema=r,this.spec=n,this.attrs=Rl(e,n.attrs),this.excluded=null;let i=Nl(this.attrs);this.instance=i?new tl(this,i):null}create(e=null){return!e&&this.instance?this.instance:new tl(this,Il(this.attrs,e))}static compile(e,a){let r=Object.create(null),n=0;return e.forEach(((e,i)=>r[e]=new Vl(e,n++,a,i))),r}removeFromSet(e){for(var a=0;a<e.length;a++)e[a].type==this&&(e=e.slice(0,a).concat(e.slice(a+1)),a--);return e}isInSet(e){for(let a=0;a<e.length;a++)if(e[a].type==this)return e[a]}checkAttrs(e){Pl(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Ul{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let a=this.spec={};for(let r in e)a[r]=e[r];a.nodes=Xs.from(e.nodes),a.marks=Xs.from(e.marks||{}),this.nodes=Ll.compile(this.spec.nodes,this),this.marks=Vl.compile(this.spec.marks,this);let r=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw new RangeError(e+" can not be both a node and a mark");let a=this.nodes[e],n=a.spec.content||"",i=a.spec.marks;if(a.contentMatch=r[n]||(r[n]=_l.parse(n,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet="_"==i?null:i?Hl(this,i.split(" ")):""!=i&&a.inlineContent?null:[]}for(let e in this.marks){let a=this.marks[e],r=a.spec.excludes;a.excluded=null==r?[a]:""==r?[]:Hl(this,r.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,a=null,r,n){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof Ll))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(a,r,n)}text(e,a){let r=this.nodes.text;return new $l(r,r.defaultAttrs,e,tl.setFrom(a))}mark(e,a){return"string"==typeof e&&(e=this.marks[e]),e.create(a)}nodeFromJSON(e){return ql.fromJSON(this,e)}markFromJSON(e){return tl.fromJSON(this,e)}nodeType(e){let a=this.nodes[e];if(!a)throw new RangeError("Unknown node type: "+e);return a}}function Hl(e,a){let r=[];for(let n=0;n<a.length;n++){let i=a[n],t=e.marks[i],o=t;if(t)r.push(t);else for(let a in e.marks){let n=e.marks[a];("_"==i||n.spec.group&&n.spec.group.split(" ").indexOf(i)>-1)&&r.push(o=n)}if(!o)throw new SyntaxError("Unknown mark type: '"+a[n]+"'")}return r}class Gl{constructor(e,a){this.schema=e,this.rules=a,this.tags=[],this.styles=[];let r=this.matchedStyles=[];a.forEach((e=>{if(function(e){return null!=e.tag}(e))this.tags.push(e);else if(function(e){return null!=e.style}(e)){let a=/[^=]*/.exec(e.style)[0];r.indexOf(a)<0&&r.push(a),this.styles.push(e)}})),this.normalizeLists=!this.tags.some((a=>{if(!/^(ul|ol)\b/.test(a.tag)||!a.node)return!1;let r=e.nodes[a.node];return r.contentMatch.matchType(r)}))}parse(e,a={}){let r=new Xl(this,a,!1);return r.addAll(e,tl.none,a.from,a.to),r.finish()}parseSlice(e,a={}){let r=new Xl(this,a,!0);return r.addAll(e,tl.none,a.from,a.to),sl.maxOpen(r.finish())}matchTag(e,a,r){for(let n=r?this.tags.indexOf(r)+1:0;n<this.tags.length;n++){let r=this.tags[n];if(Ql(e,r.tag)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||a.matchesContext(r.context))){if(r.getAttrs){let a=r.getAttrs(e);if(!1===a)continue;r.attrs=a||void 0}return r}}}matchStyle(e,a,r,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let n=this.styles[i],t=n.style;if(!(0!=t.indexOf(e)||n.context&&!r.matchesContext(n.context)||t.length>e.length&&(61!=t.charCodeAt(e.length)||t.slice(e.length+1)!=a))){if(n.getAttrs){let e=n.getAttrs(a);if(!1===e)continue;n.attrs=e||void 0}return n}}}static schemaRules(e){let a=[];function r(e){let r=null==e.priority?50:e.priority,n=0;for(;n<a.length;n++){let e=a[n];if((null==e.priority?50:e.priority)<r)break}a.splice(n,0,e)}for(let a in e.marks){let n=e.marks[a].spec.parseDOM;n&&n.forEach((e=>{r(e=ec(e)),e.mark||e.ignore||e.clearMark||(e.mark=a)}))}for(let a in e.nodes){let n=e.nodes[a].spec.parseDOM;n&&n.forEach((e=>{r(e=ec(e)),e.node||e.ignore||e.mark||(e.node=a)}))}return a}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Gl(e,Gl.schemaRules(e)))}}const Wl={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Zl={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Kl={ol:!0,ul:!0};function Jl(e,a,r){return null!=a?(a?1:0)|("full"===a?2:0):e&&"pre"==e.whitespace?3:-5&r}class Yl{constructor(e,a,r,n,i,t){this.type=e,this.attrs=a,this.marks=r,this.solid=n,this.options=t,this.content=[],this.activeMarks=tl.none,this.match=i||(4&t?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let a=this.type.contentMatch.fillBefore(al.from(e));if(!a){let a,r=this.type.contentMatch;return(a=r.findWrapping(e.type))?(this.match=r,a):null}this.match=this.type.contentMatch.matchFragment(a)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,a=this.content[this.content.length-1];if(a&&a.isText&&(e=/[ \t\r\n\u000c]+$/.exec(a.text))){let r=a;a.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-e[0].length))}}let a=al.from(this.content);return!e&&this.match&&(a=a.append(this.match.fillBefore(al.empty,!0))),this.type?this.type.create(this.attrs,a,this.marks):a}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Wl.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Xl{constructor(e,a,r){this.parser=e,this.options=a,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let n,i=a.topNode,t=Jl(null,a.preserveWhitespace,0)|(r?4:0);n=i?new Yl(i.type,i.attrs,tl.none,!0,a.topMatch||i.type.contentMatch,t):new Yl(r?null:e.schema.topNodeType,null,tl.none,!0,null,t),this.nodes=[n],this.find=a.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,a){3==e.nodeType?this.addTextNode(e,a):1==e.nodeType&&this.addElement(e,a)}addTextNode(e,a){let r=e.nodeValue,n=this.top,i=2&n.options?"full":this.localPreserveWS||(1&n.options)>0;if("full"===i||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)r="full"!==i?r.replace(/\r?\n|\r/g," "):r.replace(/\r\n?/g,"\n");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let a=n.content[n.content.length-1],i=e.previousSibling;(!a||i&&"BR"==i.nodeName||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),a),this.findInText(e)}else this.findInside(e)}addElement(e,a,r){let n=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let t,o=e.nodeName.toLowerCase();Kl.hasOwnProperty(o)&&this.parser.normalizeLists&&function(e){for(let a=e.firstChild,r=null;a;a=a.nextSibling){let e=1==a.nodeType?a.nodeName.toLowerCase():null;e&&Kl.hasOwnProperty(e)&&r?(r.appendChild(a),a=r):"li"==e?r=a:e&&(r=null)}}(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(t=this.parser.matchTag(e,this,r));e:if(s?s.ignore:Zl.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,a);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let r,n=this.needsBlock;if(Wl.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),r=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,a);break e}let t=s&&s.skip?a:this.readStyles(e,a);t&&this.addAll(e,t),r&&this.sync(i),this.needsBlock=n}else{let r=this.readStyles(e,a);r&&this.addElementByRule(e,s,r,!1===s.consuming?t:void 0)}this.localPreserveWS=n}leafFallback(e,a){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),a)}ignoreFallback(e,a){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),a)}readStyles(e,a){let r=e.style;if(r&&r.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let n=this.parser.matchedStyles[e],i=r.getPropertyValue(n);if(i)for(let e;;){let r=this.parser.matchStyle(n,i,this,e);if(!r)break;if(r.ignore)return null;if(a=r.clearMark?a.filter((e=>!r.clearMark(e))):a.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1!==r.consuming)break;e=r}}return a}addElementByRule(e,a,r,n){let i,t;if(a.node)if(t=this.parser.schema.nodes[a.node],t.isLeaf)this.insertNode(t.create(a.attrs),r)||this.leafFallback(e,r);else{let e=this.enter(t,a.attrs||null,r,a.preserveWhitespace);e&&(i=!0,r=e)}else{let e=this.parser.schema.marks[a.mark];r=r.concat(e.create(a.attrs))}let o=this.top;if(t&&t.isLeaf)this.findInside(e);else if(n)this.addElement(e,r,n);else if(a.getContent)this.findInside(e),a.getContent(e,this.parser.schema).forEach((e=>this.insertNode(e,r)));else{let n=e;"string"==typeof a.contentElement?n=e.querySelector(a.contentElement):"function"==typeof a.contentElement?n=a.contentElement(e):a.contentElement&&(n=a.contentElement),this.findAround(e,n,!0),this.addAll(n,r),this.findAround(e,n,!1)}i&&this.sync(o)&&this.open--}addAll(e,a,r,n){let i=r||0;for(let t=r?e.childNodes[r]:e.firstChild,o=null==n?null:e.childNodes[n];t!=o;t=t.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(t,a);this.findAtPoint(e,i)}findPlace(e,a){let r,n;for(let a=this.open;a>=0;a--){let i=this.nodes[a],t=i.findWrapping(e);if(t&&(!r||r.length>t.length)&&(r=t,n=i,!t.length))break;if(i.solid)break}if(!r)return null;this.sync(n);for(let e=0;e<r.length;e++)a=this.enterInner(r[e],null,a,!1);return a}insertNode(e,a){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(a=this.enterInner(e,null,a))}let r=this.findPlace(e,a);if(r){this.closeExtra();let a=this.top;a.match&&(a.match=a.match.matchType(e.type));let n=tl.none;for(let i of r.concat(e.marks))(a.type?a.type.allowsMarkType(i.type):ac(i.type,e.type))&&(n=i.addToSet(n));return a.content.push(e.mark(n)),!0}return!1}enter(e,a,r,n){let i=this.findPlace(e.create(a),r);return i&&(i=this.enterInner(e,a,r,!0,n)),i}enterInner(e,a,r,n=!1,i){this.closeExtra();let t=this.top;t.match=t.match&&t.match.matchType(e);let o=Jl(e,i,t.options);4&t.options&&0==t.content.length&&(o|=4);let s=tl.none;return r=r.filter((a=>!(t.type?t.type.allowsMarkType(a.type):ac(a.type,e))||(s=a.addToSet(s),!1))),this.nodes.push(new Yl(e,a,s,n,null,o)),this.open++,r}closeExtra(e=!1){let a=this.nodes.length-1;if(a>this.open){for(;a>this.open;a--)this.nodes[a-1].content.push(this.nodes[a].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!(!this.isOpen&&!this.options.topOpen))}sync(e){for(let a=this.open;a>=0;a--){if(this.nodes[a]==e)return this.open=a,!0;this.localPreserveWS&&(this.nodes[a].options|=1)}return!1}get currentPos(){this.closeExtra();let e=0;for(let a=this.open;a>=0;a--){let r=this.nodes[a].content;for(let a=r.length-1;a>=0;a--)e+=r[a].nodeSize;a&&e++}return e}findAtPoint(e,a){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==a&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let a=0;a<this.find.length;a++)null==this.find[a].pos&&1==e.nodeType&&e.contains(this.find[a].node)&&(this.find[a].pos=this.currentPos)}findAround(e,a,r){if(e!=a&&this.find)for(let n=0;n<this.find.length;n++)if(null==this.find[n].pos&&1==e.nodeType&&e.contains(this.find[n].node)){a.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos)}}findInText(e){if(this.find)for(let a=0;a<this.find.length;a++)this.find[a].node==e&&(this.find[a].pos=this.currentPos-(e.nodeValue.length-this.find[a].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let a=e.split("/"),r=this.options.context,n=!(this.isOpen||r&&r.parent.type!=this.nodes[0].type),i=-(r?r.depth+1:0)+(n?0:1),t=(e,o)=>{for(;e>=0;e--){let s=a[e];if(""==s){if(e==a.length-1||0==e)continue;for(;o>=i;o--)if(t(e-1,o))return!0;return!1}{let e=o>0||0==o&&n?this.nodes[o].type:r&&o>=i?r.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return t(a.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let a=e.depth;a>=0;a--){let r=e.node(a).contentMatchAt(e.indexAfter(a)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let a=this.parser.schema.nodes[e];if(a.isTextblock&&a.defaultAttrs)return a}}}function Ql(e,a){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,a)}function ec(e){let a={};for(let r in e)a[r]=e[r];return a}function ac(e,a){let r=a.schema.nodes;for(let n in r){let i=r[n];if(!i.allowsMarkType(e))continue;let t=[],o=e=>{t.push(e);for(let r=0;r<e.edgeCount;r++){let{type:n,next:i}=e.edge(r);if(n==a)return!0;if(t.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}class rc{constructor(e,a){this.nodes=e,this.marks=a}serializeFragment(e,a={},r){r||(r=ic(a).createDocumentFragment());let n=r,i=[];return e.forEach((e=>{if(i.length||e.marks.length){let r=0,t=0;for(;r<i.length&&t<e.marks.length;){let a=e.marks[t];if(this.marks[a.type.name]){if(!a.eq(i[r][0])||!1===a.type.spec.spanning)break;r++,t++}else t++}for(;r<i.length;)n=i.pop()[1];for(;t<e.marks.length;){let r=e.marks[t++],o=this.serializeMark(r,e.isInline,a);o&&(i.push([r,n]),n.appendChild(o.dom),n=o.contentDOM||o.dom)}}n.appendChild(this.serializeNodeInner(e,a))})),r}serializeNodeInner(e,a){let{dom:r,contentDOM:n}=sc(ic(a),this.nodes[e.type.name](e),null,e.attrs);if(n){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,a,n)}return r}serializeNode(e,a={}){let r=this.serializeNodeInner(e,a);for(let n=e.marks.length-1;n>=0;n--){let i=this.serializeMark(e.marks[n],e.isInline,a);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,a,r={}){let n=this.marks[e.type.name];return n&&sc(ic(r),n(e,a),null,e.attrs)}static renderSpec(e,a,r=null,n){return sc(e,a,r,n)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new rc(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let a=nc(e.nodes);return a.text||(a.text=e=>e.text),a}static marksFromSchema(e){return nc(e.marks)}}function nc(e){let a={};for(let r in e){let n=e[r].spec.toDOM;n&&(a[r]=n)}return a}function ic(e){return e.document||window.document}const tc=new WeakMap;function oc(e){let a=tc.get(e);return void 0===a&&tc.set(e,a=function(e){let a=null;function r(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])a||(a=[]),a.push(e);else for(let a=0;a<e.length;a++)r(e[a]);else for(let a in e)r(e[a])}return r(e),a}(e)),a}function sc(e,a,r,n){if("string"==typeof a)return{dom:e.createTextNode(a)};if(null!=a.nodeType)return{dom:a};if(a.dom&&null!=a.dom.nodeType)return a;let i,t=a[0];if("string"!=typeof t)throw new RangeError("Invalid array passed to renderSpec");if(n&&(i=oc(n))&&i.indexOf(a)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o,s=t.indexOf(" ");s>0&&(r=t.slice(0,s),t=t.slice(s+1));let l=r?e.createElementNS(r,t):e.createElement(t),c=a[1],d=1;if(c&&"object"==typeof c&&null==c.nodeType&&!Array.isArray(c)){d=2;for(let e in c)if(null!=c[e]){let a=e.indexOf(" ");a>0?l.setAttributeNS(e.slice(0,a),e.slice(a+1),c[e]):l.setAttribute(e,c[e])}}for(let i=d;i<a.length;i++){let t=a[i];if(0===t){if(i<a.length-1||i>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}{let{dom:a,contentDOM:i}=sc(e,t,r,n);if(l.appendChild(a),i){if(o)throw new RangeError("Multiple content holes");o=i}}}return{dom:l,contentDOM:o}}const lc=Math.pow(2,16);function cc(e,a){return e+a*lc}function dc(e){return 65535&e}class uc{constructor(e,a,r){this.pos=e,this.delInfo=a,this.recover=r}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class hc{constructor(e,a=!1){if(this.ranges=e,this.inverted=a,!e.length&&hc.empty)return hc.empty}recover(e){let a=0,r=dc(e);if(!this.inverted)for(let e=0;e<r;e++)a+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+a+function(e){return(e-(65535&e))/lc}(e)}mapResult(e,a=1){return this._map(e,a,!1)}map(e,a=1){return this._map(e,a,!0)}_map(e,a,r){let n=0,i=this.inverted?2:1,t=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?n:0);if(s>e)break;let l=this.ranges[o+i],c=this.ranges[o+t],d=s+l;if(e<=d){let i=s+n+((l?e==s?-1:e==d?1:a:a)<0?0:c);if(r)return i;let t=e==(a<0?s:d)?null:cc(o/3,e-s),u=e==s?2:e==d?1:4;return(a<0?e!=s:e!=d)&&(u|=8),new uc(i,u,t)}n+=c-l}return r?e+n:new uc(e+n,0,null)}touches(e,a){let r=0,n=dc(a),i=this.inverted?2:1,t=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let o=this.ranges[a]-(this.inverted?r:0);if(o>e)break;let s=this.ranges[a+i];if(e<=o+s&&a==3*n)return!0;r+=this.ranges[a+t]-s}return!1}forEach(e){let a=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let t=this.ranges[n],o=t-(this.inverted?i:0),s=t+(this.inverted?0:i),l=this.ranges[n+a],c=this.ranges[n+r];e(o,o+l,s,s+c),i+=c-l}}invert(){return new hc(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?hc.empty:new hc(e<0?[0,-e,0]:[0,0,e])}}hc.empty=new hc([]);const mc=Object.create(null);class gc{getMap(){return hc.empty}merge(e){return null}static fromJSON(e,a){if(!a||!a.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=mc[a.stepType];if(!r)throw new RangeError(`No step type ${a.stepType} defined`);return r.fromJSON(e,a)}static jsonID(e,a){if(e in mc)throw new RangeError("Duplicate use of step JSON ID "+e);return mc[e]=a,a.prototype.jsonID=e,a}}class pc{constructor(e,a){this.doc=e,this.failed=a}static ok(e){return new pc(e,null)}static fail(e){return new pc(null,e)}static fromReplace(e,a,r,n){try{return pc.ok(e.replace(a,r,n))}catch(e){if(e instanceof ol)return pc.fail(e.message);throw e}}}function bc(e,a,r){let n=[];for(let i=0;i<e.childCount;i++){let t=e.child(i);t.content.size&&(t=t.copy(bc(t.content,a,t))),t.isInline&&(t=a(t,r,i)),n.push(t)}return al.fromArray(n)}class kc extends gc{constructor(e,a,r){super(),this.from=e,this.to=a,this.mark=r}apply(e){let a=e.slice(this.from,this.to),r=e.resolve(this.from),n=r.node(r.sharedDepth(this.to)),i=new sl(bc(a.content,((e,a)=>e.isAtom&&a.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e),n),a.openStart,a.openEnd);return pc.fromReplace(e,this.from,this.to,i)}invert(){return new fc(this.from,this.to,this.mark)}map(e){let a=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return a.deleted&&r.deleted||a.pos>=r.pos?null:new kc(a.pos,r.pos,this.mark)}merge(e){return e instanceof kc&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new kc(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,a){if("number"!=typeof a.from||"number"!=typeof a.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new kc(a.from,a.to,e.markFromJSON(a.mark))}}gc.jsonID("addMark",kc);class fc extends gc{constructor(e,a,r){super(),this.from=e,this.to=a,this.mark=r}apply(e){let a=e.slice(this.from,this.to),r=new sl(bc(a.content,(e=>e.mark(this.mark.removeFromSet(e.marks))),e),a.openStart,a.openEnd);return pc.fromReplace(e,this.from,this.to,r)}invert(){return new kc(this.from,this.to,this.mark)}map(e){let a=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return a.deleted&&r.deleted||a.pos>=r.pos?null:new fc(a.pos,r.pos,this.mark)}merge(e){return e instanceof fc&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new fc(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,a){if("number"!=typeof a.from||"number"!=typeof a.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new fc(a.from,a.to,e.markFromJSON(a.mark))}}gc.jsonID("removeMark",fc);class yc extends gc{constructor(e,a){super(),this.pos=e,this.mark=a}apply(e){let a=e.nodeAt(this.pos);if(!a)return pc.fail("No node at mark step's position");let r=a.type.create(a.attrs,null,this.mark.addToSet(a.marks));return pc.fromReplace(e,this.pos,this.pos+1,new sl(al.from(r),0,a.isLeaf?0:1))}invert(e){let a=e.nodeAt(this.pos);if(a){let e=this.mark.addToSet(a.marks);if(e.length==a.marks.length){for(let r=0;r<a.marks.length;r++)if(!a.marks[r].isInSet(e))return new yc(this.pos,a.marks[r]);return new yc(this.pos,this.mark)}}return new vc(this.pos,this.mark)}map(e){let a=e.mapResult(this.pos,1);return a.deletedAfter?null:new yc(a.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,a){if("number"!=typeof a.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new yc(a.pos,e.markFromJSON(a.mark))}}gc.jsonID("addNodeMark",yc);class vc extends gc{constructor(e,a){super(),this.pos=e,this.mark=a}apply(e){let a=e.nodeAt(this.pos);if(!a)return pc.fail("No node at mark step's position");let r=a.type.create(a.attrs,null,this.mark.removeFromSet(a.marks));return pc.fromReplace(e,this.pos,this.pos+1,new sl(al.from(r),0,a.isLeaf?0:1))}invert(e){let a=e.nodeAt(this.pos);return a&&this.mark.isInSet(a.marks)?new yc(this.pos,this.mark):this}map(e){let a=e.mapResult(this.pos,1);return a.deletedAfter?null:new vc(a.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,a){if("number"!=typeof a.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new vc(a.pos,e.markFromJSON(a.mark))}}gc.jsonID("removeNodeMark",vc);class wc extends gc{constructor(e,a,r,n=!1){super(),this.from=e,this.to=a,this.slice=r,this.structure=n}apply(e){return this.structure&&jc(e,this.from,this.to)?pc.fail("Structure replace would overwrite content"):pc.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new hc([this.from,this.to-this.from,this.slice.size])}invert(e){return new wc(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let a=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return a.deletedAcross&&r.deletedAcross?null:new wc(a.pos,Math.max(a.pos,r.pos),this.slice)}merge(e){if(!(e instanceof wc)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let a=this.slice.size+e.slice.size==0?sl.empty:new sl(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new wc(e.from,this.to,a,this.structure)}}{let a=this.slice.size+e.slice.size==0?sl.empty:new sl(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new wc(this.from,this.to+(e.to-e.from),a,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,a){if("number"!=typeof a.from||"number"!=typeof a.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new wc(a.from,a.to,sl.fromJSON(e,a.slice),!!a.structure)}}gc.jsonID("replace",wc);class zc extends gc{constructor(e,a,r,n,i,t,o=!1){super(),this.from=e,this.to=a,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=t,this.structure=o}apply(e){if(this.structure&&(jc(e,this.from,this.gapFrom)||jc(e,this.gapTo,this.to)))return pc.fail("Structure gap-replace would overwrite content");let a=e.slice(this.gapFrom,this.gapTo);if(a.openStart||a.openEnd)return pc.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,a.content);return r?pc.fromReplace(e,this.from,this.to,r):pc.fail("Content does not fit in gap")}getMap(){return new hc([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let a=this.gapTo-this.gapFrom;return new zc(this.from,this.from+this.slice.size+a,this.from+this.insert,this.from+this.insert+a,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let a=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=this.from==this.gapFrom?a.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return a.deletedAcross&&r.deletedAcross||n<a.pos||i>r.pos?null:new zc(a.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,a){if("number"!=typeof a.from||"number"!=typeof a.to||"number"!=typeof a.gapFrom||"number"!=typeof a.gapTo||"number"!=typeof a.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new zc(a.from,a.to,a.gapFrom,a.gapTo,sl.fromJSON(e,a.slice),a.insert,!!a.structure)}}function jc(e,a,r){let n=e.resolve(a),i=r-a,t=n.depth;for(;i>0&&t>0&&n.indexAfter(t)==n.node(t).childCount;)t--,i--;if(i>0){let e=n.node(t).maybeChild(n.indexAfter(t));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function xc(e,a,r){return(0==a||e.canReplace(a,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function qc(e){let a=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let n=e.$from.node(r),i=e.$from.index(r),t=e.$to.indexAfter(r);if(r<e.depth&&n.canReplace(i,t,a))return r;if(0==r||n.type.spec.isolating||!xc(n,i,t))break}return null}function $c(e,a,r=null,n=e){let i=function(e,a){let{parent:r,startIndex:n,endIndex:i}=e,t=r.contentMatchAt(n).findWrapping(a);if(!t)return null;let o=t.length?t[0]:a;return r.canReplaceWith(n,i,o)?t:null}(e,a),t=i&&function(e,a){let{parent:r,startIndex:n,endIndex:i}=e,t=r.child(n),o=a.contentMatch.findWrapping(t.type);if(!o)return null;let s=(o.length?o[o.length-1]:a).contentMatch;for(let e=n;s&&e<i;e++)s=s.matchType(r.child(e).type);return s&&s.validEnd?o:null}(n,a);return t?i.map(Cc).concat({type:a,attrs:r}).concat(t.map(Cc)):null}function Cc(e){return{type:e,attrs:null}}function _c(e,a,r=1,n){let i=e.resolve(a),t=i.depth-r,o=n&&n[n.length-1]||i.parent;if(t<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,a=r-2;e>t;e--,a--){let r=i.node(e),t=i.index(e);if(r.type.spec.isolating)return!1;let o=r.content.cutByIndex(t,r.childCount),s=n&&n[a+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let l=n&&n[a]||r;if(!r.canReplace(t+1,r.childCount)||!l.type.validContent(o))return!1}let s=i.indexAfter(t),l=n&&n[0];return i.node(t).canReplaceWith(s,s,l?l.type:i.node(t+1).type)}function Sc(e,a){let r=e.resolve(a),n=r.index();return Ec(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function Ec(e,a){return!(!e||!a||e.isLeaf||!function(e,a){a.content.size||e.type.compatibleContent(a.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let i=0;i<a.childCount;i++){let t=a.child(i),o=t.type==n?e.type.schema.nodes.text:t.type;if(r=r.matchType(o),!r)return!1;if(!e.type.allowsMarks(t.marks))return!1}return r.validEnd}(e,a))}function Ac(e,a,r=-1){let n=e.resolve(a);for(let e=n.depth;;e--){let i,t,o=n.index(e);if(e==n.depth?(i=n.nodeBefore,t=n.nodeAfter):r>0?(i=n.node(e+1),o++,t=n.node(e).maybeChild(o)):(i=n.node(e).maybeChild(o-1),t=n.node(e+1)),i&&!i.isTextblock&&Ec(i,t)&&n.node(e).canReplace(o,o+1))return a;if(0==e)break;a=r<0?n.before(e):n.after(e)}}function Oc(e,a,r=a,n=sl.empty){if(a==r&&!n.size)return null;let i=e.resolve(a),t=e.resolve(r);return function(e,a,r){return!r.openStart&&!r.openEnd&&e.start()==a.start()&&e.parent.canReplace(e.index(),a.index(),r.content)}(i,t,n)?new wc(a,r,n):new Dc(i,t,n).fit()}gc.jsonID("replaceAround",zc);class Dc{constructor(e,a,r){this.$from=e,this.$to=a,this.unplaced=r,this.frontier=[],this.placed=al.empty;for(let a=0;a<=e.depth;a++){let r=e.node(a);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(a))})}for(let a=e.depth;a>0;a--)this.placed=al.from(e.node(a).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),a=this.placed.size-this.depth-this.$from.depth,r=this.$from,n=this.close(e<0?this.$to:r.doc.resolve(e));if(!n)return null;let i=this.placed,t=r.depth,o=n.depth;for(;t&&o&&1==i.childCount;)i=i.firstChild.content,t--,o--;let s=new sl(i,t,o);return e>-1?new zc(r.pos,e,this.$to.pos,this.$to.end(),s,a):s.size||r.pos!=this.$to.pos?new wc(r.pos,n.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let a=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let i=a.firstChild;if(a.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}a=i.content}for(let a=1;a<=2;a++)for(let r=1==a?e:this.unplaced.openStart;r>=0;r--){let e,n=null;r?(n=Tc(this.unplaced.content,r-1).firstChild,e=n.content):e=this.unplaced.content;let i=e.firstChild;for(let e=this.depth;e>=0;e--){let t,{type:o,match:s}=this.frontier[e],l=null;if(1==a&&(i?s.matchType(i.type)||(l=s.fillBefore(al.from(i),!1)):n&&o.compatibleContent(n.type)))return{sliceDepth:r,frontierDepth:e,parent:n,inject:l};if(2==a&&i&&(t=s.findWrapping(i.type)))return{sliceDepth:r,frontierDepth:e,parent:n,wrap:t};if(n&&s.matchType(n.type))break}}}openMore(){let{content:e,openStart:a,openEnd:r}=this.unplaced,n=Tc(e,a);return!(!n.childCount||n.firstChild.isLeaf)&&(this.unplaced=new sl(e,a+1,Math.max(r,n.size+a>=e.size-r?a+1:0)),!0)}dropNode(){let{content:e,openStart:a,openEnd:r}=this.unplaced,n=Tc(e,a);if(n.childCount<=1&&a>0){let i=e.size-a<=a+n.size;this.unplaced=new sl(Mc(e,a-1,1),a-1,i?a-1:r)}else this.unplaced=new sl(Mc(e,a,1),a,r)}placeNodes({sliceDepth:e,frontierDepth:a,parent:r,inject:n,wrap:i}){for(;this.depth>a;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let t=this.unplaced,o=r?r.content:t.content,s=t.openStart-e,l=0,c=[],{match:d,type:u}=this.frontier[a];if(n){for(let e=0;e<n.childCount;e++)c.push(n.child(e));d=d.matchFragment(n)}let h=o.size+e-(t.content.size-t.openEnd);for(;l<o.childCount;){let e=o.child(l),a=d.matchType(e.type);if(!a)break;l++,(l>1||0==s||e.content.size)&&(d=a,c.push(Nc(e.mark(u.allowedMarks(e.marks)),1==l?s:0,l==o.childCount?h:-1)))}let m=l==o.childCount;m||(h=-1),this.placed=Fc(this.placed,a,al.from(c)),this.frontier[a].match=d,m&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,a=o;e<h;e++){let e=a.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),a=e.content}this.unplaced=m?0==e?sl.empty:new sl(Mc(t.content,e-1,1),e-1,h<0?t.openEnd:e-1):new sl(Mc(t.content,e,l),t.openStart,t.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,a=this.frontier[this.depth];if(!a.type.isTextblock||!Ic(this.$to,this.$to.depth,a.type,a.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){e:for(let a=Math.min(this.depth,e.depth);a>=0;a--){let{match:r,type:n}=this.frontier[a],i=a<e.depth&&e.end(a+1)==e.pos+(e.depth-(a+1)),t=Ic(e,a,n,r,i);if(t){for(let r=a-1;r>=0;r--){let{match:a,type:n}=this.frontier[r],i=Ic(e,r,n,a,!0);if(!i||i.childCount)continue e}return{depth:a,fit:t,move:i?e.doc.resolve(e.after(a+1)):e}}}}close(e){let a=this.findCloseLevel(e);if(!a)return null;for(;this.depth>a.depth;)this.closeFrontierNode();a.fit.childCount&&(this.placed=Fc(this.placed,a.depth,a.fit)),e=a.move;for(let r=a.depth+1;r<=e.depth;r++){let a=e.node(r),n=a.type.contentMatch.fillBefore(a.content,!0,e.index(r));this.openFrontierNode(a.type,a.attrs,n)}return e}openFrontierNode(e,a=null,r){let n=this.frontier[this.depth];n.match=n.match.matchType(e),this.placed=Fc(this.placed,this.depth,al.from(e.create(a,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(al.empty,!0);e.childCount&&(this.placed=Fc(this.placed,this.frontier.length,e))}}function Mc(e,a,r){return 0==a?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(Mc(e.firstChild.content,a-1,r)))}function Fc(e,a,r){return 0==a?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(Fc(e.lastChild.content,a-1,r)))}function Tc(e,a){for(let r=0;r<a;r++)e=e.firstChild.content;return e}function Nc(e,a,r){if(a<=0)return e;let n=e.content;return a>1&&(n=n.replaceChild(0,Nc(n.firstChild,a-1,1==n.childCount?r-1:0))),a>0&&(n=e.type.contentMatch.fillBefore(n).append(n),r<=0&&(n=n.append(e.type.contentMatch.matchFragment(n).fillBefore(al.empty,!0)))),e.copy(n)}function Ic(e,a,r,n,i){let t=e.node(a),o=i?e.indexAfter(a):e.index(a);if(o==t.childCount&&!r.compatibleContent(t.type))return null;let s=n.fillBefore(t.content,!0,o);return s&&!function(e,a,r){for(let n=r;n<a.childCount;n++)if(!e.allowsMarks(a.child(n).marks))return!0;return!1}(r,t.content,o)?s:null}class Pc extends gc{constructor(e,a,r){super(),this.pos=e,this.attr=a,this.value=r}apply(e){let a=e.nodeAt(this.pos);if(!a)return pc.fail("No node at attribute step's position");let r=Object.create(null);for(let e in a.attrs)r[e]=a.attrs[e];r[this.attr]=this.value;let n=a.type.create(r,null,a.marks);return pc.fromReplace(e,this.pos,this.pos+1,new sl(al.from(n),0,a.isLeaf?0:1))}getMap(){return hc.empty}invert(e){return new Pc(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let a=e.mapResult(this.pos,1);return a.deletedAfter?null:new Pc(a.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,a){if("number"!=typeof a.pos||"string"!=typeof a.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new Pc(a.pos,a.attr,a.value)}}gc.jsonID("attr",Pc);class Rc extends gc{constructor(e,a){super(),this.attr=e,this.value=a}apply(e){let a=Object.create(null);for(let r in e.attrs)a[r]=e.attrs[r];a[this.attr]=this.value;let r=e.type.create(a,e.content,e.marks);return pc.ok(r)}getMap(){return hc.empty}invert(e){return new Rc(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,a){if("string"!=typeof a.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Rc(a.attr,a.value)}}gc.jsonID("docAttr",Rc);let Lc=class extends Error{};Lc=function e(a){let r=Error.call(this,a);return r.__proto__=e.prototype,r},(Lc.prototype=Object.create(Error.prototype)).constructor=Lc,Lc.prototype.name="TransformError";const Bc=Object.create(null);class Vc{constructor(e,a,r){this.$anchor=e,this.$head=a,this.ranges=r||[new Uc(e.min(a),e.max(a))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let a=0;a<e.length;a++)if(e[a].$from.pos!=e[a].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,a=sl.empty){let r=a.content.lastChild,n=null;for(let e=0;e<a.openEnd;e++)n=r,r=r.lastChild;let i=e.steps.length,t=this.ranges;for(let o=0;o<t.length;o++){let{$from:s,$to:l}=t[o],c=e.mapping.slice(i);e.replaceRange(c.map(s.pos),c.map(l.pos),o?sl.empty:a),0==o&&ed(e,i,(r?r.isInline:n&&n.isTextblock)?-1:1)}}replaceWith(e,a){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:t,$to:o}=n[i],s=e.mapping.slice(r),l=s.map(t.pos),c=s.map(o.pos);i?e.deleteRange(l,c):(e.replaceRangeWith(l,c,a),ed(e,r,a.isInline?-1:1))}}static findFrom(e,a,r=!1){let n=e.parent.inlineContent?new Wc(e):Qc(e.node(0),e.parent,e.pos,e.index(),a,r);if(n)return n;for(let n=e.depth-1;n>=0;n--){let i=a<0?Qc(e.node(0),e.node(n),e.before(n+1),e.index(n),a,r):Qc(e.node(0),e.node(n),e.after(n+1),e.index(n)+1,a,r);if(i)return i}return null}static near(e,a=1){return this.findFrom(e,a)||this.findFrom(e,-a)||new Yc(e.node(0))}static atStart(e){return Qc(e,e,0,0,1)||new Yc(e)}static atEnd(e){return Qc(e,e,e.content.size,e.childCount,-1)||new Yc(e)}static fromJSON(e,a){if(!a||!a.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Bc[a.type];if(!r)throw new RangeError(`No selection type ${a.type} defined`);return r.fromJSON(e,a)}static jsonID(e,a){if(e in Bc)throw new RangeError("Duplicate use of selection JSON ID "+e);return Bc[e]=a,a.prototype.jsonID=e,a}getBookmark(){return Wc.between(this.$anchor,this.$head).getBookmark()}}Vc.prototype.visible=!0;class Uc{constructor(e,a){this.$from=e,this.$to=a}}let Hc=!1;function Gc(e){Hc||e.parent.inlineContent||(Hc=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Wc extends Vc{constructor(e,a=e){Gc(e),Gc(a),super(e,a)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,a){let r=e.resolve(a.map(this.head));if(!r.parent.inlineContent)return Vc.near(r);let n=e.resolve(a.map(this.anchor));return new Wc(n.parent.inlineContent?n:r,r)}replace(e,a=sl.empty){if(super.replace(e,a),a==sl.empty){let a=this.$from.marksAcross(this.$to);a&&e.ensureMarks(a)}}eq(e){return e instanceof Wc&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Zc(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,a){if("number"!=typeof a.anchor||"number"!=typeof a.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new Wc(e.resolve(a.anchor),e.resolve(a.head))}static create(e,a,r=a){let n=e.resolve(a);return new this(n,r==a?n:e.resolve(r))}static between(e,a,r){let n=e.pos-a.pos;if(r&&!n||(r=n>=0?1:-1),!a.parent.inlineContent){let e=Vc.findFrom(a,r,!0)||Vc.findFrom(a,-r,!0);if(!e)return Vc.near(a,r);a=e.$head}return e.parent.inlineContent||(0==n||(e=(Vc.findFrom(e,-r,!0)||Vc.findFrom(e,r,!0)).$anchor).pos<a.pos!=n<0)&&(e=a),new Wc(e,a)}}Vc.jsonID("text",Wc);class Zc{constructor(e,a){this.anchor=e,this.head=a}map(e){return new Zc(e.map(this.anchor),e.map(this.head))}resolve(e){return Wc.between(e.resolve(this.anchor),e.resolve(this.head))}}class Kc extends Vc{constructor(e){let a=e.nodeAfter,r=e.node(0).resolve(e.pos+a.nodeSize);super(e,r),this.node=a}map(e,a){let{deleted:r,pos:n}=a.mapResult(this.anchor),i=e.resolve(n);return r?Vc.near(i):new Kc(i)}content(){return new sl(al.from(this.node),0,0)}eq(e){return e instanceof Kc&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Jc(this.anchor)}static fromJSON(e,a){if("number"!=typeof a.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Kc(e.resolve(a.anchor))}static create(e,a){return new Kc(e.resolve(a))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}Kc.prototype.visible=!1,Vc.jsonID("node",Kc);class Jc{constructor(e){this.anchor=e}map(e){let{deleted:a,pos:r}=e.mapResult(this.anchor);return a?new Zc(r,r):new Jc(r)}resolve(e){let a=e.resolve(this.anchor),r=a.nodeAfter;return r&&Kc.isSelectable(r)?new Kc(a):Vc.near(a)}}class Yc extends Vc{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,a=sl.empty){if(a==sl.empty){e.delete(0,e.doc.content.size);let a=Vc.atStart(e.doc);a.eq(e.selection)||e.setSelection(a)}else super.replace(e,a)}toJSON(){return{type:"all"}}static fromJSON(e){return new Yc(e)}map(e){return new Yc(e)}eq(e){return e instanceof Yc}getBookmark(){return Xc}}Vc.jsonID("all",Yc);const Xc={map(){return this},resolve:e=>new Yc(e)};function Qc(e,a,r,n,i,t=!1){if(a.inlineContent)return Wc.create(e,r);for(let o=n-(i>0?0:1);i>0?o<a.childCount:o>=0;o+=i){let n=a.child(o);if(n.isAtom){if(!t&&Kc.isSelectable(n))return Kc.create(e,r-(i<0?n.nodeSize:0))}else{let a=Qc(e,n,r+i,i<0?n.childCount:0,i,t);if(a)return a}r+=n.nodeSize*i}return null}function ed(e,a,r){let n=e.steps.length-1;if(n<a)return;let i,t=e.steps[n];(t instanceof wc||t instanceof zc)&&(e.mapping.maps[n].forEach(((e,a,r,n)=>{null==i&&(i=n)})),e.setSelection(Vc.near(e.doc.resolve(i),r)))}function ad(e,a){return a&&e?e.bind(a):e}class rd{constructor(e,a,r){this.name=e,this.init=ad(a.init,r),this.apply=ad(a.apply,r)}}function nd(e,a,r){for(let n in e){let i=e[n];i instanceof Function?i=i.bind(a):"handleDOMEvents"==n&&(i=nd(i,a,{})),r[n]=i}return r}new rd("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new rd("selection",{init:(e,a)=>e.selection||Vc.atStart(a.doc),apply:e=>e.selection}),new rd("storedMarks",{init:e=>e.storedMarks||null,apply:(e,a,r,n)=>n.selection.$cursor?e.storedMarks:null}),new rd("scrollToSelection",{init:()=>0,apply:(e,a)=>e.scrolledIntoView?a+1:a});class id{constructor(e){this.spec=e,this.props={},e.props&&nd(e.props,this,this.props),this.key=e.key?e.key.key:od("plugin")}getState(e){return e[this.key]}}const td=Object.create(null);function od(e){return e in td?e+"$"+ ++td[e]:(td[e]=0,e+"$")}class sd{constructor(e="key"){this.key=od(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const ld=function(e){for(var a=0;;a++)if(!(e=e.previousSibling))return a},cd=function(e,a,r,n){return r&&(ud(e,a,r,n,-1)||ud(e,a,r,n,1))},dd=/^(img|br|input|textarea|hr)$/i;function ud(e,a,r,n,i){for(;;){if(e==r&&a==n)return!0;if(a==(i<0?0:hd(e))){let r=e.parentNode;if(!r||1!=r.nodeType||md(e)||dd.test(e.nodeName)||"false"==e.contentEditable)return!1;a=ld(e)+(i<0?0:1),e=r}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[a+(i<0?-1:0)]).contentEditable)return!1;a=i<0?hd(e):0}}}function hd(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function md(e){let a;for(let r=e;r&&!(a=r.pmViewDesc);r=r.parentNode);return a&&a.node&&a.node.isBlock&&(a.dom==e||a.contentDOM==e)}const gd=function(e){return e.focusNode&&cd(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function pd(e,a){let r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=e,r.key=r.code=a,r}const bd="undefined"!=typeof navigator?navigator:null,kd="undefined"!=typeof document?document:null,fd=bd&&bd.userAgent||"",yd=/Edge\/(\d+)/.exec(fd),vd=/MSIE \d/.exec(fd),wd=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(fd),zd=!!(vd||wd||yd),jd=vd?document.documentMode:wd?+wd[1]:yd?+yd[1]:0,xd=!zd&&/gecko\/(\d+)/i.test(fd);xd&&(/Firefox\/(\d+)/.exec(fd)||[0,0])[1];const qd=!zd&&/Chrome\/(\d+)/.exec(fd),$d=!!qd,Cd=qd?+qd[1]:0,_d=!zd&&!!bd&&/Apple Computer/.test(bd.vendor),Sd=_d&&(/Mobile\/\w+/.test(fd)||!!bd&&bd.maxTouchPoints>2),Ed=Sd||!!bd&&/Mac/.test(bd.platform),Ad=!!bd&&/Win/.test(bd.platform),Od=/Android \d/.test(fd),Dd=!!kd&&"webkitFontSmoothing"in kd.documentElement.style,Md=Dd?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Fd(e,a=null){let r=e.domSelectionRange(),n=e.state.doc;if(!r.focusNode)return null;let i=e.docView.nearestDesc(r.focusNode),t=i&&0==i.size,o=e.docView.posFromDOM(r.focusNode,r.focusOffset,1);if(o<0)return null;let s,l,c=n.resolve(o);if(gd(r)){for(s=o;i&&!i.node;)i=i.parent;let e=i.node;if(i&&e.isAtom&&Kc.isSelectable(e)&&i.parent&&(!e.isInline||!function(e,a,r){for(let n=0==a,i=a==hd(e);n||i;){if(e==r)return!0;let a=ld(e);if(!(e=e.parentNode))return!1;n=n&&0==a,i=i&&a==hd(e)}}(r.focusNode,r.focusOffset,i.dom))){let e=i.posBefore;l=new Kc(o==e?c:n.resolve(e))}}else{if(r instanceof e.dom.ownerDocument.defaultView.Selection&&r.rangeCount>1){let a=o,i=o;for(let n=0;n<r.rangeCount;n++){let t=r.getRangeAt(n);a=Math.min(a,e.docView.posFromDOM(t.startContainer,t.startOffset,1)),i=Math.max(i,e.docView.posFromDOM(t.endContainer,t.endOffset,-1))}if(a<0)return null;[s,o]=i==e.state.selection.anchor?[i,a]:[a,i],c=n.resolve(o)}else s=e.docView.posFromDOM(r.anchorNode,r.anchorOffset,1);if(s<0)return null}let d=n.resolve(s);if(!l){l=Vd(e,d,c,"pointer"==a||e.state.selection.head<c.pos&&!t?1:-1)}return l}function Td(e){return e.editable?e.hasFocus():function(e){let a=e.domSelectionRange();if(!a.anchorNode)return!1;try{return e.dom.contains(3==a.anchorNode.nodeType?a.anchorNode.parentNode:a.anchorNode)&&(e.editable||e.dom.contains(3==a.focusNode.nodeType?a.focusNode.parentNode:a.focusNode))}catch(e){return!1}}(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Nd(e,a=!1){let r=e.state.selection;if(function(e,a){if(a instanceof Kc){let r=e.docView.descAt(a.from);r!=e.lastSelectedViewDesc&&(Bd(e),r&&r.selectNode(),e.lastSelectedViewDesc=r)}else Bd(e)}(e,r),Td(e)){if(!a&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&$d){let a=e.domSelectionRange(),r=e.domObserver.currentSelection;if(a.anchorNode&&r.anchorNode&&cd(a.anchorNode,a.anchorOffset,r.anchorNode,r.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let a=e.domSelection(),r=document.createRange();if(!a)return;let n=e.cursorWrapper.dom,i="IMG"==n.nodeName;i?r.setStart(n.parentNode,ld(n)+1):r.setStart(n,0);r.collapse(!0),a.removeAllRanges(),a.addRange(r),!i&&!e.state.selection.visible&&zd&&jd<=11&&(n.disabled=!0,n.disabled=!1)}(e);else{let n,i,{anchor:t,head:o}=r;!Id||r instanceof Wc||(r.$from.parent.inlineContent||(n=Pd(e,r.from)),r.empty||r.$from.parent.inlineContent||(i=Pd(e,r.to))),e.docView.setSelection(t,o,e,a),Id&&(n&&Ld(n),i&&Ld(i)),r.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){let a=e.dom.ownerDocument;a.removeEventListener("selectionchange",e.input.hideSelectionGuard);let r=e.domSelectionRange(),n=r.anchorNode,i=r.anchorOffset;a.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{r.anchorNode==n&&r.anchorOffset==i||(a.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout((()=>{Td(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const Id=_d||$d&&Cd<63;function Pd(e,a){let{node:r,offset:n}=e.docView.domFromPos(a,0),i=n<r.childNodes.length?r.childNodes[n]:null,t=n?r.childNodes[n-1]:null;if(_d&&i&&"false"==i.contentEditable)return Rd(i);if(!(i&&"false"!=i.contentEditable||t&&"false"!=t.contentEditable)){if(i)return Rd(i);if(t)return Rd(t)}}function Rd(e){return e.contentEditable="true",_d&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Ld(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Bd(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Vd(e,a,r,n){return e.someProp("createSelectionBetween",(n=>n(e,a,r)))||Wc.between(a,r,n)}function Ud(e,a){let{$anchor:r,$head:n}=e.selection,i=a>0?r.max(n):r.min(n),t=i.parent.inlineContent?i.depth?e.doc.resolve(a>0?i.after():i.before()):null:i;return t&&Vc.findFrom(t,a)}function Hd(e,a){return e.dispatch(e.state.tr.setSelection(a).scrollIntoView()),!0}function Gd(e,a,r){let n=e.state.selection;if(!(n instanceof Wc)){if(n instanceof Kc&&n.node.isInline)return Hd(e,new Wc(a>0?n.$to:n.$from));{let r=Ud(e.state,a);return!!r&&Hd(e,r)}}if(r.indexOf("s")>-1){let{$head:r}=n,i=r.textOffset?null:a<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let t=e.state.doc.resolve(r.pos+i.nodeSize*(a<0?-1:1));return Hd(e,new Wc(n.$anchor,t))}if(!n.empty)return!1;if(e.endOfTextblock(a>0?"forward":"backward")){let r=Ud(e.state,a);return!!(r&&r instanceof Kc)&&Hd(e,r)}if(!(Ed&&r.indexOf("m")>-1)){let r,i=n.$head,t=i.textOffset?null:a<0?i.nodeBefore:i.nodeAfter;if(!t||t.isText)return!1;let o=a<0?i.pos-t.nodeSize:i.pos;return!!(t.isAtom||(r=e.docView.descAt(o))&&!r.contentDOM)&&(Kc.isSelectable(t)?Hd(e,new Kc(a<0?e.state.doc.resolve(i.pos-t.nodeSize):i)):!!Dd&&Hd(e,new Wc(e.state.doc.resolve(a<0?o:o+t.nodeSize))))}}function Wd(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Zd(e,a){let r=e.pmViewDesc;return r&&0==r.size&&(a<0||e.nextSibling||"BR"!=e.nodeName)}function Kd(e,a){return a<0?function(e){let a=e.domSelectionRange(),r=a.focusNode,n=a.focusOffset;if(!r)return;let i,t,o=!1;xd&&1==r.nodeType&&n<Wd(r)&&Zd(r.childNodes[n],-1)&&(o=!0);for(;;)if(n>0){if(1!=r.nodeType)break;{let e=r.childNodes[n-1];if(Zd(e,-1))i=r,t=--n;else{if(3!=e.nodeType)break;r=e,n=r.nodeValue.length}}}else{if(Jd(r))break;{let a=r.previousSibling;for(;a&&Zd(a,-1);)i=r.parentNode,t=ld(a),a=a.previousSibling;if(a)r=a,n=Wd(r);else{if(r=r.parentNode,r==e.dom)break;n=0}}}o?Yd(e,r,n):i&&Yd(e,i,t)}(e):function(e){let a=e.domSelectionRange(),r=a.focusNode,n=a.focusOffset;if(!r)return;let i,t,o=Wd(r);for(;;)if(n<o){if(1!=r.nodeType)break;if(!Zd(r.childNodes[n],1))break;i=r,t=++n}else{if(Jd(r))break;{let a=r.nextSibling;for(;a&&Zd(a,1);)i=a.parentNode,t=ld(a)+1,a=a.nextSibling;if(a)r=a,n=0,o=Wd(r);else{if(r=r.parentNode,r==e.dom)break;n=o=0}}}i&&Yd(e,i,t)}(e)}function Jd(e){let a=e.pmViewDesc;return a&&a.node&&a.node.isBlock}function Yd(e,a,r){if(3!=a.nodeType){let e,n;(n=function(e,a){for(;e&&a==e.childNodes.length&&!md(e);)a=ld(e)+1,e=e.parentNode;for(;e&&a<e.childNodes.length;){let r=e.childNodes[a];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;e=r,a=0}}(a,r))?(a=n,r=0):(e=function(e,a){for(;e&&!a&&!md(e);)a=ld(e),e=e.parentNode;for(;e&&a;){let r=e.childNodes[a-1];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;a=(e=r).childNodes.length}}(a,r))&&(a=e,r=e.nodeValue.length)}let n=e.domSelection();if(!n)return;if(gd(n)){let e=document.createRange();e.setEnd(a,r),e.setStart(a,r),n.removeAllRanges(),n.addRange(e)}else n.extend&&n.extend(a,r);e.domObserver.setCurSelection();let{state:i}=e;setTimeout((()=>{e.state==i&&Nd(e)}),50)}function Xd(e,a){let r=e.state.doc.resolve(a);if(!$d&&!Ad&&r.parent.inlineContent){let n=e.coordsAtPos(a);if(a>r.start()){let r=e.coordsAtPos(a-1),i=(r.top+r.bottom)/2;if(i>n.top&&i<n.bottom&&Math.abs(r.left-n.left)>1)return r.left<n.left?"ltr":"rtl"}if(a<r.end()){let r=e.coordsAtPos(a+1),i=(r.top+r.bottom)/2;if(i>n.top&&i<n.bottom&&Math.abs(r.left-n.left)>1)return r.left>n.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function Qd(e,a,r){let n=e.state.selection;if(n instanceof Wc&&!n.empty||r.indexOf("s")>-1)return!1;if(Ed&&r.indexOf("m")>-1)return!1;let{$from:i,$to:t}=n;if(!i.parent.inlineContent||e.endOfTextblock(a<0?"up":"down")){let r=Ud(e.state,a);if(r&&r instanceof Kc)return Hd(e,r)}if(!i.parent.inlineContent){let r=a<0?i:t,o=n instanceof Yc?Vc.near(r,a):Vc.findFrom(r,a);return!!o&&Hd(e,o)}return!1}function eu(e,a){if(!(e.state.selection instanceof Wc))return!0;let{$head:r,$anchor:n,empty:i}=e.state.selection;if(!r.sameParent(n))return!0;if(!i)return!1;if(e.endOfTextblock(a>0?"forward":"backward"))return!0;let t=!r.textOffset&&(a<0?r.nodeBefore:r.nodeAfter);if(t&&!t.isText){let n=e.state.tr;return a<0?n.delete(r.pos-t.nodeSize,r.pos):n.delete(r.pos,r.pos+t.nodeSize),e.dispatch(n),!0}return!1}function au(e,a,r){e.domObserver.stop(),a.contentEditable=r,e.domObserver.start()}function ru(e,a){let r=a.keyCode,n=function(e){let a="";return e.ctrlKey&&(a+="c"),e.metaKey&&(a+="m"),e.altKey&&(a+="a"),e.shiftKey&&(a+="s"),a}(a);if(8==r||Ed&&72==r&&"c"==n)return eu(e,-1)||Kd(e,-1);if(46==r&&!a.shiftKey||Ed&&68==r&&"c"==n)return eu(e,1)||Kd(e,1);if(13==r||27==r)return!0;if(37==r||Ed&&66==r&&"c"==n){let a=37==r?"ltr"==Xd(e,e.state.selection.from)?-1:1:-1;return Gd(e,a,n)||Kd(e,a)}if(39==r||Ed&&70==r&&"c"==n){let a=39==r?"ltr"==Xd(e,e.state.selection.from)?1:-1:1;return Gd(e,a,n)||Kd(e,a)}return 38==r||Ed&&80==r&&"c"==n?Qd(e,-1,n)||Kd(e,-1):40==r||Ed&&78==r&&"c"==n?function(e){if(!_d||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:a,focusOffset:r}=e.domSelectionRange();if(a&&1==a.nodeType&&0==r&&a.firstChild&&"false"==a.firstChild.contentEditable){let r=a.firstChild;au(e,r,"true"),setTimeout((()=>au(e,r,"false")),20)}return!1}(e)||Qd(e,1,n)||Kd(e,1):n==(Ed?"m":"c")&&(66==r||73==r||89==r||90==r)}function nu(e,a){e.someProp("transformCopied",(r=>{a=r(a,e)}));let r=[],{content:n,openStart:i,openEnd:t}=a;for(;i>1&&t>1&&1==n.childCount&&1==n.firstChild.childCount;){i--,t--;let e=n.firstChild;r.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),n=e.content}let o=e.someProp("clipboardSerializer")||rc.fromSchema(e.state.schema),s=mu(),l=s.createElement("div");l.appendChild(o.serializeFragment(n,{document:s}));let c,d=l.firstChild,u=0;for(;d&&1==d.nodeType&&(c=uu[d.nodeName.toLowerCase()]);){for(let e=c.length-1;e>=0;e--){let a=s.createElement(c[e]);for(;l.firstChild;)a.appendChild(l.firstChild);l.appendChild(a),u++}d=l.firstChild}return d&&1==d.nodeType&&d.setAttribute("data-pm-slice",`${i} ${t}${u?` -${u}`:""} ${JSON.stringify(r)}`),{dom:l,text:e.someProp("clipboardTextSerializer",(r=>r(a,e)))||a.content.textBetween(0,a.content.size,"\n\n"),slice:a}}function iu(e,a,r,n,i){let t,o,s=i.parent.type.spec.code;if(!r&&!a)return null;let l=a&&(n||s||!r);if(l){if(e.someProp("transformPastedText",(r=>{a=r(a,s||n,e)})),s)return a?new sl(al.from(e.state.schema.text(a.replace(/\r\n?/g,"\n"))),0,0):sl.empty;let r=e.someProp("clipboardTextParser",(r=>r(a,i,n,e)));if(r)o=r;else{let r=i.marks(),{schema:n}=e.state,o=rc.fromSchema(n);t=document.createElement("div"),a.split(/(?:\r\n?|\n)+/).forEach((e=>{let a=t.appendChild(document.createElement("p"));e&&a.appendChild(o.serializeNode(n.text(e,r)))}))}}else e.someProp("transformPastedHTML",(a=>{r=a(r,e)})),t=function(e){let a=/^(\s*<meta [^>]*>)*/.exec(e);a&&(e=e.slice(a[0].length));let r,n=mu().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e);(r=i&&uu[i[1].toLowerCase()])&&(e=r.map((e=>"<"+e+">")).join("")+e+r.map((e=>"</"+e+">")).reverse().join(""));if(n.innerHTML=function(e){let a=window.trustedTypes;if(!a)return e;gu||(gu=a.createPolicy("ProseMirrorClipboard",{createHTML:e=>e}));return gu.createHTML(e)}(e),r)for(let e=0;e<r.length;e++)n=n.querySelector(r[e])||n;return n}(r),Dd&&function(e){let a=e.querySelectorAll($d?"span:not([class]):not([style])":"span.Apple-converted-space");for(let r=0;r<a.length;r++){let n=a[r];1==n.childNodes.length&&" "==n.textContent&&n.parentNode&&n.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),n)}}(t);let c=t&&t.querySelector("[data-pm-slice]"),d=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let e=+d[3];e>0;e--){let e=t.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;t=e}if(!o){let a=e.someProp("clipboardParser")||e.someProp("domParser")||Gl.fromSchema(e.state.schema);o=a.parseSlice(t,{preserveWhitespace:!(!l&&!d),context:i,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||tu.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(d)o=function(e,a){if(!e.size)return e;let r,n=e.content.firstChild.type.schema;try{r=JSON.parse(a)}catch(a){return e}let{content:i,openStart:t,openEnd:o}=e;for(let e=r.length-2;e>=0;e-=2){let a=n.nodes[r[e]];if(!a||a.hasRequiredAttrs())break;i=al.from(a.create(r[e+1],i)),t++,o++}return new sl(i,t,o)}(du(o,+d[1],+d[2]),d[4]);else if(o=sl.maxOpen(function(e,a){if(e.childCount<2)return e;for(let r=a.depth;r>=0;r--){let n,i=a.node(r).contentMatchAt(a.index(r)),t=[];if(e.forEach((e=>{if(!t)return;let a,r=i.findWrapping(e.type);if(!r)return t=null;if(a=t.length&&n.length&&su(r,n,e,t[t.length-1],0))t[t.length-1]=a;else{t.length&&(t[t.length-1]=lu(t[t.length-1],n.length));let a=ou(e,r);t.push(a),i=i.matchType(a.type),n=r}})),t)return al.from(t)}return e}(o.content,i),!0),o.openStart||o.openEnd){let e=0,a=0;for(let a=o.content.firstChild;e<o.openStart&&!a.type.spec.isolating;e++,a=a.firstChild);for(let e=o.content.lastChild;a<o.openEnd&&!e.type.spec.isolating;a++,e=e.lastChild);o=du(o,e,a)}return e.someProp("transformPasted",(a=>{o=a(o,e)})),o}const tu=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function ou(e,a,r=0){for(let n=a.length-1;n>=r;n--)e=a[n].create(null,al.from(e));return e}function su(e,a,r,n,i){if(i<e.length&&i<a.length&&e[i]==a[i]){let t=su(e,a,r,n.lastChild,i+1);if(t)return n.copy(n.content.replaceChild(n.childCount-1,t));if(n.contentMatchAt(n.childCount).matchType(i==e.length-1?r.type:e[i+1]))return n.copy(n.content.append(al.from(ou(r,e,i+1))))}}function lu(e,a){if(0==a)return e;let r=e.content.replaceChild(e.childCount-1,lu(e.lastChild,a-1)),n=e.contentMatchAt(e.childCount).fillBefore(al.empty,!0);return e.copy(r.append(n))}function cu(e,a,r,n,i,t){let o=a<0?e.firstChild:e.lastChild,s=o.content;return e.childCount>1&&(t=0),i<n-1&&(s=cu(s,a,r,n,i+1,t)),i>=r&&(s=a<0?o.contentMatchAt(0).fillBefore(s,t<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(al.empty,!0))),e.replaceChild(a<0?0:e.childCount-1,o.copy(s))}function du(e,a,r){return a<e.openStart&&(e=new sl(cu(e.content,-1,a,e.openStart,0,e.openEnd),a,e.openEnd)),r<e.openEnd&&(e=new sl(cu(e.content,1,r,e.openEnd,0,0),e.openStart,r)),e}const uu={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let hu=null;function mu(){return hu||(hu=document.implementation.createHTMLDocument("title"))}let gu=null;const pu={},bu={};function ku(e,a){e.input.lastSelectionOrigin=a,e.input.lastSelectionTime=Date.now()}function fu(e){return{left:e.clientX,top:e.clientY}}function yu(e,a,r,n,i){if(-1==n)return!1;let t=e.state.doc.resolve(n);for(let n=t.depth+1;n>0;n--)if(e.someProp(a,(a=>n>t.depth?a(e,r,t.nodeAfter,t.before(n),i,!0):a(e,r,t.node(n),t.before(n),i,!1))))return!0;return!1}function vu(e,a,r){if(e.focused||e.focus(),e.state.selection.eq(a))return;let n=e.state.tr.setSelection(a);n.setMeta("pointer",!0),e.dispatch(n)}function wu(e,a,r,n,i){return yu(e,"handleClickOn",a,r,n)||e.someProp("handleClick",(r=>r(e,a,n)))||(i?function(e,a){if(-1==a)return!1;let r,n,i=e.state.selection;i instanceof Kc&&(r=i.node);let t=e.state.doc.resolve(a);for(let e=t.depth+1;e>0;e--){let a=e>t.depth?t.nodeAfter:t.node(e);if(Kc.isSelectable(a)){n=r&&i.$from.depth>0&&e>=i.$from.depth&&t.before(i.$from.depth+1)==i.$from.pos?t.before(i.$from.depth):t.before(e);break}}return null!=n&&(vu(e,Kc.create(e.state.doc,n)),!0)}(e,r):function(e,a){if(-1==a)return!1;let r=e.state.doc.resolve(a),n=r.nodeAfter;return!!(n&&n.isAtom&&Kc.isSelectable(n))&&(vu(e,new Kc(r)),!0)}(e,r))}function zu(e,a,r,n){return yu(e,"handleDoubleClickOn",a,r,n)||e.someProp("handleDoubleClick",(r=>r(e,a,n)))}function ju(e,a,r,n){return yu(e,"handleTripleClickOn",a,r,n)||e.someProp("handleTripleClick",(r=>r(e,a,n)))||function(e,a,r){if(0!=r.button)return!1;let n=e.state.doc;if(-1==a)return!!n.inlineContent&&(vu(e,Wc.create(n,0,n.content.size)),!0);let i=n.resolve(a);for(let a=i.depth+1;a>0;a--){let r=a>i.depth?i.nodeAfter:i.node(a),t=i.before(a);if(r.inlineContent)vu(e,Wc.create(n,t+1,t+1+r.content.size));else{if(!Kc.isSelectable(r))continue;vu(e,Kc.create(n,t))}return!0}}(e,r,n)}function xu(e){return Au(e)}bu.keydown=(e,a)=>{let r=a;if(e.input.shiftKey=16==r.keyCode||r.shiftKey,!Cu(e,r)&&(e.input.lastKeyCode=r.keyCode,e.input.lastKeyCodeTime=Date.now(),!Od||!$d||13!=r.keyCode))if(229!=r.keyCode&&e.domObserver.forceFlush(),!Sd||13!=r.keyCode||r.ctrlKey||r.altKey||r.metaKey)e.someProp("handleKeyDown",(a=>a(e,r)))||ru(e,r)?r.preventDefault():ku(e,"key");else{let a=Date.now();e.input.lastIOSEnter=a,e.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{e.input.lastIOSEnter==a&&(e.someProp("handleKeyDown",(a=>a(e,pd(13,"Enter")))),e.input.lastIOSEnter=0)}),200)}},bu.keyup=(e,a)=>{16==a.keyCode&&(e.input.shiftKey=!1)},bu.keypress=(e,a)=>{let r=a;if(Cu(e,r)||!r.charCode||r.ctrlKey&&!r.altKey||Ed&&r.metaKey)return;if(e.someProp("handleKeyPress",(a=>a(e,r))))return void r.preventDefault();let n=e.state.selection;if(!(n instanceof Wc&&n.$from.sameParent(n.$to))){let a=String.fromCharCode(r.charCode);/[\r\n]/.test(a)||e.someProp("handleTextInput",(r=>r(e,n.$from.pos,n.$to.pos,a)))||e.dispatch(e.state.tr.insertText(a).scrollIntoView()),r.preventDefault()}};const qu=Ed?"metaKey":"ctrlKey";pu.mousedown=(e,a)=>{let r=a;e.input.shiftKey=r.shiftKey;let n=xu(e),i=Date.now(),t="singleClick";i-e.input.lastClick.time<500&&function(e,a){let r=a.x-e.clientX,n=a.y-e.clientY;return r*r+n*n<100}(r,e.input.lastClick)&&!r[qu]&&("singleClick"==e.input.lastClick.type?t="doubleClick":"doubleClick"==e.input.lastClick.type&&(t="tripleClick")),e.input.lastClick={time:i,x:r.clientX,y:r.clientY,type:t};let o=e.posAtCoords(fu(r));o&&("singleClick"==t?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new $u(e,o,r,!!n)):("doubleClick"==t?zu:ju)(e,o.pos,o.inside,r)?r.preventDefault():ku(e,"pointer"))};class $u{constructor(e,a,r,n){let i,t;if(this.view=e,this.pos=a,this.event=r,this.flushed=n,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[qu],this.allowDefault=r.shiftKey,a.inside>-1)i=e.state.doc.nodeAt(a.inside),t=a.inside;else{let r=e.state.doc.resolve(a.pos);i=r.parent,t=r.depth?r.before():0}const o=n?null:r.target,s=o?e.docView.nearestDesc(o,!0):null;this.target=s&&1==s.dom.nodeType?s.dom:null;let{selection:l}=e.state;(0==r.button&&i.type.spec.draggable&&!1!==i.type.spec.selectable||l instanceof Kc&&l.from<=t&&l.to>t)&&(this.mightDrag={node:i,pos:t,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!xd||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),ku(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((()=>Nd(this.view))),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let a=this.pos;this.view.state.doc!=this.startDoc&&(a=this.view.posAtCoords(fu(e))),this.updateAllowDefault(e),this.allowDefault||!a?ku(this.view,"pointer"):wu(this.view,a.pos,a.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||_d&&this.mightDrag&&!this.mightDrag.node.isAtom||$d&&!this.view.state.selection.visible&&Math.min(Math.abs(a.pos-this.view.state.selection.from),Math.abs(a.pos-this.view.state.selection.to))<=2)?(vu(this.view,Vc.near(this.view.state.doc.resolve(a.pos))),e.preventDefault()):ku(this.view,"pointer")}move(e){this.updateAllowDefault(e),ku(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function Cu(e,a){return!!e.composing||!!(_d&&Math.abs(a.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}pu.touchstart=e=>{e.input.lastTouch=Date.now(),xu(e),ku(e,"pointer")},pu.touchmove=e=>{e.input.lastTouch=Date.now(),ku(e,"pointer")},pu.contextmenu=e=>xu(e);const _u=Od?5e3:-1;function Su(e,a){clearTimeout(e.input.composingTimeout),a>-1&&(e.input.composingTimeout=setTimeout((()=>Au(e)),a))}function Eu(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=function(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Au(e,a=!1){if(!(Od&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Eu(e),a||e.docView&&e.docView.dirty){let r=Fd(e);return r&&!r.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(r)):!e.markCursor&&!a||e.state.selection.empty?e.updateState(e.state):e.dispatch(e.state.tr.deleteSelection()),!0}return!1}}bu.compositionstart=bu.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:a}=e,r=a.selection.$to;if(a.selection instanceof Wc&&(a.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some((e=>!1===e.type.spec.inclusive))))e.markCursor=e.state.storedMarks||r.marks(),Au(e,!0),e.markCursor=null;else if(Au(e,!a.selection.empty),xd&&a.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let a=e.domSelectionRange();for(let r=a.focusNode,n=a.focusOffset;r&&1==r.nodeType&&0!=n;){let a=n<0?r.lastChild:r.childNodes[n-1];if(!a)break;if(3==a.nodeType){let r=e.domSelection();r&&r.collapse(a,a.nodeValue.length);break}r=a,n=-1}}e.input.composing=!0}Su(e,_u)},bu.compositionend=(e,a)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=a.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then((()=>e.domObserver.flush())),e.input.compositionID++,Su(e,20))};const Ou=zd&&jd<15||Sd&&Md<604;function Du(e,a,r,n,i){let t=iu(e,a,r,n,e.state.selection.$from);if(e.someProp("handlePaste",(a=>a(e,i,t||sl.empty))))return!0;if(!t)return!1;let o=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(t),s=o?e.state.tr.replaceSelectionWith(o,n):e.state.tr.replaceSelection(t);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Mu(e){let a=e.getData("text/plain")||e.getData("Text");if(a)return a;let r=e.getData("text/uri-list");return r?r.replace(/\r?\n/g," "):""}pu.copy=bu.cut=(e,a)=>{let r=a,n=e.state.selection,i="cut"==r.type;if(n.empty)return;let t=Ou?null:r.clipboardData,o=n.content(),{dom:s,text:l}=nu(e,o);t?(r.preventDefault(),t.clearData(),t.setData("text/html",s.innerHTML),t.setData("text/plain",l)):function(e,a){if(!e.dom.parentNode)return;let r=e.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(a),r.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),i=document.createRange();i.selectNodeContents(a),e.dom.blur(),n.removeAllRanges(),n.addRange(i),setTimeout((()=>{r.parentNode&&r.parentNode.removeChild(r),e.focus()}),50)}(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},bu.paste=(e,a)=>{let r=a;if(e.composing&&!Od)return;let n=Ou?null:r.clipboardData,i=e.input.shiftKey&&45!=e.input.lastKeyCode;n&&Du(e,Mu(n),n.getData("text/html"),i,r)?r.preventDefault():function(e,a){if(!e.dom.parentNode)return;let r=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,n=e.dom.parentNode.appendChild(document.createElement(r?"textarea":"div"));r||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let i=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout((()=>{e.focus(),n.parentNode&&n.parentNode.removeChild(n),r?Du(e,n.value,null,i,a):Du(e,n.textContent,n.innerHTML,i,a)}),50)}(e,r)};class Fu{constructor(e,a,r){this.slice=e,this.move=a,this.node=r}}const Tu=Ed?"altKey":"ctrlKey";pu.dragstart=(e,a)=>{let r=a,n=e.input.mouseDown;if(n&&n.done(),!r.dataTransfer)return;let i,t=e.state.selection,o=t.empty?null:e.posAtCoords(fu(r));if(o&&o.pos>=t.from&&o.pos<=(t instanceof Kc?t.to-1:t.to));else if(n&&n.mightDrag)i=Kc.create(e.state.doc,n.mightDrag.pos);else if(r.target&&1==r.target.nodeType){let a=e.docView.nearestDesc(r.target,!0);a&&a.node.type.spec.draggable&&a!=e.docView&&(i=Kc.create(e.state.doc,a.posBefore))}let s=(i||e.state.selection).content(),{dom:l,text:c,slice:d}=nu(e,s);(!r.dataTransfer.files.length||!$d||Cd>120)&&r.dataTransfer.clearData(),r.dataTransfer.setData(Ou?"Text":"text/html",l.innerHTML),r.dataTransfer.effectAllowed="copyMove",Ou||r.dataTransfer.setData("text/plain",c),e.dragging=new Fu(d,!r[Tu],i)},pu.dragend=e=>{let a=e.dragging;window.setTimeout((()=>{e.dragging==a&&(e.dragging=null)}),50)},bu.dragover=bu.dragenter=(e,a)=>a.preventDefault(),bu.drop=(e,a)=>{let r=a,n=e.dragging;if(e.dragging=null,!r.dataTransfer)return;let i=e.posAtCoords(fu(r));if(!i)return;let t=e.state.doc.resolve(i.pos),o=n&&n.slice;o?e.someProp("transformPasted",(a=>{o=a(o,e)})):o=iu(e,Mu(r.dataTransfer),Ou?null:r.dataTransfer.getData("text/html"),!1,t);let s=!(!n||r[Tu]);if(e.someProp("handleDrop",(a=>a(e,r,o||sl.empty,s))))return void r.preventDefault();if(!o)return;r.preventDefault();let l=o?function(e,a,r){let n=e.resolve(a);if(!r.content.size)return a;let i=r.content;for(let e=0;e<r.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let a=n.depth;a>=0;a--){let r=a==n.depth?0:n.pos<=(n.start(a+1)+n.end(a+1))/2?-1:1,t=n.index(a)+(r>0?1:0),o=n.node(a),s=!1;if(1==e)s=o.canReplace(t,t,i);else{let e=o.contentMatchAt(t).findWrapping(i.firstChild.type);s=e&&o.canReplaceWith(t,t,e[0])}if(s)return 0==r?n.pos:r<0?n.before(a+1):n.after(a+1)}return null}(e.state.doc,t.pos,o):t.pos;null==l&&(l=t.pos);let c=e.state.tr;if(s){let{node:e}=n;e?e.replace(c):c.deleteSelection()}let d=c.mapping.map(l),u=0==o.openStart&&0==o.openEnd&&1==o.content.childCount,h=c.doc;if(u?c.replaceRangeWith(d,d,o.content.firstChild):c.replaceRange(d,d,o),c.doc.eq(h))return;let m=c.doc.resolve(d);if(u&&Kc.isSelectable(o.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(o.content.firstChild))c.setSelection(new Kc(m));else{let a=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach(((e,r,n,i)=>a=i)),c.setSelection(Vd(e,m,c.doc.resolve(a)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))},pu.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Nd(e)}),20))},pu.blur=(e,a)=>{let r=a;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),r.relatedTarget&&e.dom.contains(r.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},pu.beforeinput=(e,a)=>{if($d&&Od&&"deleteContentBackward"==a.inputType){e.domObserver.flushSoon();let{domChangeCount:a}=e.input;setTimeout((()=>{if(e.input.domChangeCount!=a)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",(a=>a(e,pd(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())}),50)}};for(let e in bu)pu[e]=bu[e];function Nu(e,a){if(e==a)return!0;for(let r in e)if(e[r]!==a[r])return!1;for(let r in a)if(!(r in e))return!1;return!0}class Iu{constructor(e,a){this.toDOM=e,this.spec=a||Vu,this.side=this.spec.side||0}map(e,a,r,n){let{pos:i,deleted:t}=e.mapResult(a.from+n,this.side<0?-1:1);return t?null:new Lu(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Iu&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Nu(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Pu{constructor(e,a){this.attrs=e,this.spec=a||Vu}map(e,a,r,n){let i=e.map(a.from+n,this.spec.inclusiveStart?-1:1)-r,t=e.map(a.to+n,this.spec.inclusiveEnd?1:-1)-r;return i>=t?null:new Lu(i,t,this)}valid(e,a){return a.from<a.to}eq(e){return this==e||e instanceof Pu&&Nu(this.attrs,e.attrs)&&Nu(this.spec,e.spec)}static is(e){return e.type instanceof Pu}destroy(){}}class Ru{constructor(e,a){this.attrs=e,this.spec=a||Vu}map(e,a,r,n){let i=e.mapResult(a.from+n,1);if(i.deleted)return null;let t=e.mapResult(a.to+n,-1);return t.deleted||t.pos<=i.pos?null:new Lu(i.pos-r,t.pos-r,this)}valid(e,a){let r,{index:n,offset:i}=e.content.findIndex(a.from);return i==a.from&&!(r=e.child(n)).isText&&i+r.nodeSize==a.to}eq(e){return this==e||e instanceof Ru&&Nu(this.attrs,e.attrs)&&Nu(this.spec,e.spec)}destroy(){}}class Lu{constructor(e,a,r){this.from=e,this.to=a,this.type=r}copy(e,a){return new Lu(e,a,this.type)}eq(e,a=0){return this.type.eq(e.type)&&this.from+a==e.from&&this.to+a==e.to}map(e,a,r){return this.type.map(e,this,a,r)}static widget(e,a,r){return new Lu(e,e,new Iu(a,r))}static inline(e,a,r,n){return new Lu(e,a,new Pu(r,n))}static node(e,a,r,n){return new Lu(e,a,new Ru(r,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof Pu}get widget(){return this.type instanceof Iu}}const Bu=[],Vu={};class Uu{constructor(e,a){this.local=e.length?e:Bu,this.children=a.length?a:Bu}static create(e,a){return a.length?Ju(a,e,0,Vu):Hu}find(e,a,r){let n=[];return this.findInner(null==e?0:e,null==a?1e9:a,n,0,r),n}findInner(e,a,r,n,i){for(let t=0;t<this.local.length;t++){let o=this.local[t];o.from<=a&&o.to>=e&&(!i||i(o.spec))&&r.push(o.copy(o.from+n,o.to+n))}for(let t=0;t<this.children.length;t+=3)if(this.children[t]<a&&this.children[t+1]>e){let o=this.children[t]+1;this.children[t+2].findInner(e-o,a-o,r,n+o,i)}}map(e,a,r){return this==Hu||0==e.maps.length?this:this.mapInner(e,a,0,0,r||Vu)}mapInner(e,a,r,n,i){let t;for(let o=0;o<this.local.length;o++){let s=this.local[o].map(e,r,n);s&&s.type.valid(a,s)?(t||(t=[])).push(s):i.onRemove&&i.onRemove(this.local[o].spec)}return this.children.length?function(e,a,r,n,i,t,o){let s=e.slice();for(let e=0,a=t;e<r.maps.length;e++){let n=0;r.maps[e].forEach(((e,r,i,t)=>{let o=t-i-(r-e);for(let i=0;i<s.length;i+=3){let t=s[i+1];if(t<0||e>t+a-n)continue;let l=s[i]+a-n;r>=l?s[i+1]=e<=l?-2:-1:e>=a&&o&&(s[i]+=o,s[i+1]+=o)}n+=o})),a=r.maps[e].map(a,-1)}let l=!1;for(let a=0;a<s.length;a+=3)if(s[a+1]<0){if(-2==s[a+1]){l=!0,s[a+1]=-1;continue}let c=r.map(e[a]+t),d=c-i;if(d<0||d>=n.content.size){l=!0;continue}let u=r.map(e[a+1]+t,-1)-i,{index:h,offset:m}=n.content.findIndex(d),g=n.maybeChild(h);if(g&&m==d&&m+g.nodeSize==u){let n=s[a+2].mapInner(r,g,c+1,e[a]+t+1,o);n!=Hu?(s[a]=d,s[a+1]=u,s[a+2]=n):(s[a+1]=-2,l=!0)}else l=!0}if(l){let l=function(e,a,r,n,i,t,o){function s(e,a){for(let t=0;t<e.local.length;t++){let s=e.local[t].map(n,i,a);s?r.push(s):o.onRemove&&o.onRemove(e.local[t].spec)}for(let r=0;r<e.children.length;r+=3)s(e.children[r+2],e.children[r]+a+1)}for(let r=0;r<e.length;r+=3)-1==e[r+1]&&s(e[r+2],a[r]+t+1);return r}(s,e,a,r,i,t,o),c=Ju(l,n,0,o);a=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,a=0;e<c.children.length;e+=3){let r=c.children[e];for(;a<s.length&&s[a]<r;)a+=3;s.splice(a,0,c.children[e],c.children[e+1],c.children[e+2])}}return new Uu(a.sort(Yu),s)}(this.children,t||[],e,a,r,n,i):t?new Uu(t.sort(Yu),Bu):Hu}add(e,a){return a.length?this==Hu?Uu.create(e,a):this.addInner(e,a,0):this}addInner(e,a,r){let n,i=0;e.forEach(((e,t)=>{let o,s=t+r;if(o=Zu(a,e,s)){for(n||(n=this.children.slice());i<n.length&&n[i]<t;)i+=3;n[i]==t?n[i+2]=n[i+2].addInner(e,o,s+1):n.splice(i,0,t,t+e.nodeSize,Ju(o,e,s+1,Vu)),i+=3}}));let t=Wu(i?Ku(a):a,-r);for(let a=0;a<t.length;a++)t[a].type.valid(e,t[a])||t.splice(a--,1);return new Uu(t.length?this.local.concat(t).sort(Yu):this.local,n||this.children)}remove(e){return 0==e.length||this==Hu?this:this.removeInner(e,0)}removeInner(e,a){let r=this.children,n=this.local;for(let n=0;n<r.length;n+=3){let i,t=r[n]+a,o=r[n+1]+a;for(let a,r=0;r<e.length;r++)(a=e[r])&&a.from>t&&a.to<o&&(e[r]=null,(i||(i=[])).push(a));if(!i)continue;r==this.children&&(r=this.children.slice());let s=r[n+2].removeInner(i,t+1);s!=Hu?r[n+2]=s:(r.splice(n,3),n-=3)}if(n.length)for(let r,i=0;i<e.length;i++)if(r=e[i])for(let e=0;e<n.length;e++)n[e].eq(r,a)&&(n==this.local&&(n=this.local.slice()),n.splice(e--,1));return r==this.children&&n==this.local?this:n.length||r.length?new Uu(n,r):Hu}forChild(e,a){if(this==Hu)return this;if(a.isLeaf)return Uu.empty;let r,n;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(r=this.children[a+2]);break}let i=e+1,t=i+a.content.size;for(let e=0;e<this.local.length;e++){let a=this.local[e];if(a.from<t&&a.to>i&&a.type instanceof Pu){let e=Math.max(i,a.from)-i,r=Math.min(t,a.to)-i;e<r&&(n||(n=[])).push(a.copy(e,r))}}if(n){let e=new Uu(n.sort(Yu),Bu);return r?new Gu([e,r]):e}return r||Hu}eq(e){if(this==e)return!0;if(!(e instanceof Uu)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let a=0;a<this.local.length;a++)if(!this.local[a].eq(e.local[a]))return!1;for(let a=0;a<this.children.length;a+=3)if(this.children[a]!=e.children[a]||this.children[a+1]!=e.children[a+1]||!this.children[a+2].eq(e.children[a+2]))return!1;return!0}locals(e){return Xu(this.localsInner(e))}localsInner(e){if(this==Hu)return Bu;if(e.inlineContent||!this.local.some(Pu.is))return this.local;let a=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof Pu||a.push(this.local[e]);return a}forEachSet(e){e(this)}}Uu.empty=new Uu([],[]),Uu.removeOverlap=Xu;const Hu=Uu.empty;class Gu{constructor(e){this.members=e}map(e,a){const r=this.members.map((r=>r.map(e,a,Vu)));return Gu.from(r)}forChild(e,a){if(a.isLeaf)return Uu.empty;let r=[];for(let n=0;n<this.members.length;n++){let i=this.members[n].forChild(e,a);i!=Hu&&(i instanceof Gu?r=r.concat(i.members):r.push(i))}return Gu.from(r)}eq(e){if(!(e instanceof Gu)||e.members.length!=this.members.length)return!1;for(let a=0;a<this.members.length;a++)if(!this.members[a].eq(e.members[a]))return!1;return!0}locals(e){let a,r=!0;for(let n=0;n<this.members.length;n++){let i=this.members[n].localsInner(e);if(i.length)if(a){r&&(a=a.slice(),r=!1);for(let e=0;e<i.length;e++)a.push(i[e])}else a=i}return a?Xu(r?a:a.sort(Yu)):Bu}static from(e){switch(e.length){case 0:return Hu;case 1:return e[0];default:return new Gu(e.every((e=>e instanceof Uu))?e:e.reduce(((e,a)=>e.concat(a instanceof Uu?a:a.members)),[]))}}forEachSet(e){for(let a=0;a<this.members.length;a++)this.members[a].forEachSet(e)}}function Wu(e,a){if(!a||!e.length)return e;let r=[];for(let n=0;n<e.length;n++){let i=e[n];r.push(new Lu(i.from+a,i.to+a,i.type))}return r}function Zu(e,a,r){if(a.isLeaf)return null;let n=r+a.nodeSize,i=null;for(let a,t=0;t<e.length;t++)(a=e[t])&&a.from>r&&a.to<n&&((i||(i=[])).push(a),e[t]=null);return i}function Ku(e){let a=[];for(let r=0;r<e.length;r++)null!=e[r]&&a.push(e[r]);return a}function Ju(e,a,r,n){let i=[],t=!1;a.forEach(((a,o)=>{let s=Zu(e,a,o+r);if(s){t=!0;let e=Ju(s,a,r+o+1,n);e!=Hu&&i.push(o,o+a.nodeSize,e)}}));let o=Wu(t?Ku(e):e,-r).sort(Yu);for(let e=0;e<o.length;e++)o[e].type.valid(a,o[e])||(n.onRemove&&n.onRemove(o[e].spec),o.splice(e--,1));return o.length||i.length?new Uu(o,i):Hu}function Yu(e,a){return e.from-a.from||e.to-a.to}function Xu(e){let a=e;for(let r=0;r<a.length-1;r++){let n=a[r];if(n.from!=n.to)for(let i=r+1;i<a.length;i++){let t=a[i];if(t.from!=n.from){t.from<n.to&&(a==e&&(a=e.slice()),a[r]=n.copy(n.from,t.from),Qu(a,i,n.copy(t.from,n.to)));break}t.to!=n.to&&(a==e&&(a=e.slice()),a[i]=t.copy(t.from,n.to),Qu(a,i+1,t.copy(n.to,t.to)))}}return a}function Qu(e,a,r){for(;a<e.length&&Yu(r,e[a])>0;)a++;e.splice(a,0,r)}function eh(e,a){let{$cursor:r}=e.selection;return!r||(a?!a.endOfTextblock("backward",e):r.parentOffset>0)?null:r}function ah(e,a,r){let n=a.nodeBefore,i=a.pos-1;for(;!n.isTextblock;i--){if(n.type.spec.isolating)return!1;let e=n.lastChild;if(!e)return!1;n=e}let t=a.nodeAfter,o=a.pos+1;for(;!t.isTextblock;o++){if(t.type.spec.isolating)return!1;let e=t.firstChild;if(!e)return!1;t=e}let s=Oc(e.doc,i,o,sl.empty);if(!s||s.from!=i||s instanceof wc&&s.slice.size>=o-i)return!1;if(r){let a=e.tr.step(s);a.setSelection(Wc.create(a.doc,i)),r(a.scrollIntoView())}return!0}function rh(e,a,r=!1){for(let n=e;n;n="start"==a?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)return!1}return!1}function nh(e){if(!e.parent.type.spec.isolating)for(let a=e.depth-1;a>=0;a--){if(e.index(a)>0)return e.doc.resolve(e.before(a+1));if(e.node(a).type.spec.isolating)break}return null}function ih(e,a){let{$cursor:r}=e.selection;return!r||(a?!a.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)?null:r}function th(e){if(!e.parent.type.spec.isolating)for(let a=e.depth-1;a>=0;a--){let r=e.node(a);if(e.index(a)+1<r.childCount)return e.doc.resolve(e.after(a+1));if(r.type.spec.isolating)break}return null}function oh(e){for(let a=0;a<e.edgeCount;a++){let{type:r}=e.edge(a);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}function sh(e,a,r,n){let i,t,o=a.nodeBefore,s=a.nodeAfter,l=o.type.spec.isolating||s.type.spec.isolating;if(!l&&function(e,a,r){let n=a.nodeBefore,i=a.nodeAfter,t=a.index();return!(!(n&&i&&n.type.compatibleContent(i.type))||(!n.content.size&&a.parent.canReplace(t-1,t)?(r&&r(e.tr.delete(a.pos-n.nodeSize,a.pos).scrollIntoView()),0):!a.parent.canReplace(t,t+1)||!i.isTextblock&&!Sc(e.doc,a.pos)||(r&&r(e.tr.join(a.pos).scrollIntoView()),0)))}(e,a,r))return!0;let c=!l&&a.parent.canReplace(a.index(),a.index()+1);if(c&&(i=(t=o.contentMatchAt(o.childCount)).findWrapping(s.type))&&t.matchType(i[0]||s.type).validEnd){if(r){let n=a.pos+s.nodeSize,t=al.empty;for(let e=i.length-1;e>=0;e--)t=al.from(i[e].create(null,t));t=al.from(o.copy(t));let l=e.tr.step(new zc(a.pos-1,n,a.pos,n,new sl(t,1,0),i.length,!0)),c=l.doc.resolve(n+2*i.length);c.nodeAfter&&c.nodeAfter.type==o.type&&Sc(l.doc,c.pos)&&l.join(c.pos),r(l.scrollIntoView())}return!0}let d=s.type.spec.isolating||n>0&&l?null:Vc.findFrom(a,1),u=d&&d.$from.blockRange(d.$to),h=u&&qc(u);if(null!=h&&h>=a.depth)return r&&r(e.tr.lift(u,h).scrollIntoView()),!0;if(c&&rh(s,"start",!0)&&rh(o,"end")){let n=o,i=[];for(;i.push(n),!n.isTextblock;)n=n.lastChild;let t=s,l=1;for(;!t.isTextblock;t=t.firstChild)l++;if(n.canReplace(n.childCount,n.childCount,t.content)){if(r){let n=al.empty;for(let e=i.length-1;e>=0;e--)n=al.from(i[e].copy(n));r(e.tr.step(new zc(a.pos-i.length,a.pos+s.nodeSize,a.pos+l,a.pos+s.nodeSize-l,new sl(n,i.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function lh(e){return function(a,r){let n=a.selection,i=e<0?n.$from:n.$to,t=i.depth;for(;i.node(t).isInline;){if(!t)return!1;t--}return!!i.node(t).isTextblock&&(r&&r(a.tr.setSelection(Wc.create(a.doc,e<0?i.start(t):i.end(t)))),!0)}}const ch=lh(-1),dh=lh(1);function uh(e,a=null){return function(r,n){let i=!1;for(let n=0;n<r.selection.ranges.length&&!i;n++){let{$from:{pos:t},$to:{pos:o}}=r.selection.ranges[n];r.doc.nodesBetween(t,o,((n,t)=>{if(i)return!1;if(n.isTextblock&&!n.hasMarkup(e,a))if(n.type==e)i=!0;else{let a=r.doc.resolve(t),n=a.index();i=a.parent.canReplaceWith(n,n+1,e)}}))}if(!i)return!1;if(n){let i=r.tr;for(let n=0;n<r.selection.ranges.length;n++){let{$from:{pos:t},$to:{pos:o}}=r.selection.ranges[n];i.setBlockType(t,o,e,a)}n(i.scrollIntoView())}return!0}}function hh(e,a=null){return function(r,n){let{$from:i,$to:t}=r.selection,o=i.blockRange(t);if(!o)return!1;let s=n?r.tr:null;return!!function(e,a,r,n=null){let i=!1,t=a,o=a.$from.doc;if(a.depth>=2&&a.$from.node(a.depth-1).type.compatibleContent(r)&&0==a.startIndex){if(0==a.$from.index(a.depth-1))return!1;let e=o.resolve(a.start-2);t=new jl(e,e,a.depth),a.endIndex<a.parent.childCount&&(a=new jl(a.$from,o.resolve(a.$to.end(a.depth)),a.depth)),i=!0}let s=$c(t,r,n,a);if(!s)return!1;e&&function(e,a,r,n,i){let t=al.empty;for(let e=r.length-1;e>=0;e--)t=al.from(r[e].type.create(r[e].attrs,t));e.step(new zc(a.start-(n?2:0),a.end,a.start,a.end,new sl(t,0,0),r.length,!0));let o=0;for(let e=0;e<r.length;e++)r[e].type==i&&(o=e+1);let s=r.length-o,l=a.start+r.length-(n?2:0),c=a.parent;for(let r=a.startIndex,n=a.endIndex,i=!0;r<n;r++,i=!1)!i&&_c(e.doc,l,s)&&(e.split(l,s),l+=2*s),l+=c.child(r).nodeSize}(e,a,s,i,r);return!0}(s,o,e,a)&&(n&&n(s.scrollIntoView()),!0)}}function mh(e){return function(a,r){let{$from:n,$to:i}=a.selection,t=n.blockRange(i,(a=>a.childCount>0&&a.firstChild.type==e));return!!t&&(!r||(n.node(t.depth-1).type==e?function(e,a,r,n){let i=e.tr,t=n.end,o=n.$to.end(n.depth);t<o&&(i.step(new zc(t-1,o,t,o,new sl(al.from(r.create(null,n.parent.copy())),1,0),1,!0)),n=new jl(i.doc.resolve(n.$from.pos),i.doc.resolve(o),n.depth));const s=qc(n);if(null==s)return!1;i.lift(n,s);let l=i.mapping.map(t,-1)-1;Sc(i.doc,l)&&i.join(l);return a(i.scrollIntoView()),!0}(a,r,e,t):function(e,a,r){let n=e.tr,i=r.parent;for(let e=r.end,a=r.endIndex-1,t=r.startIndex;a>t;a--)e-=i.child(a).nodeSize,n.delete(e-1,e+1);let t=n.doc.resolve(r.start),o=t.nodeAfter;if(n.mapping.map(r.end)!=r.start+t.nodeAfter.nodeSize)return!1;let s=0==r.startIndex,l=r.endIndex==i.childCount,c=t.node(-1),d=t.index(-1);if(!c.canReplace(d+(s?0:1),d+1,o.content.append(l?al.empty:al.from(i))))return!1;let u=t.pos,h=u+o.nodeSize;return n.step(new zc(u-(s?1:0),h+(l?1:0),u+1,h-1,new sl((s?al.empty:al.from(i.copy(al.empty))).append(l?al.empty:al.from(i.copy(al.empty))),s?0:1,l?0:1),s?0:1)),a(n.scrollIntoView()),!0}(a,r,t)))}}function gh(e){const{state:a,transaction:r}=e;let{selection:n}=r,{doc:i}=r,{storedMarks:t}=r;return{...a,apply:a.apply.bind(a),applyTransaction:a.applyTransaction.bind(a),plugins:a.plugins,schema:a.schema,reconfigure:a.reconfigure.bind(a),toJSON:a.toJSON.bind(a),get storedMarks(){return t},get selection(){return n},get doc(){return i},get tr(){return n=r.selection,i=r.doc,t=r.storedMarks,r}}}"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform();class ph{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:a,state:r}=this,{view:n}=a,{tr:i}=r,t=this.buildProps(i);return Object.fromEntries(Object.entries(e).map((([e,a])=>[e,(...e)=>{const r=a(...e)(t);return i.getMeta("preventDispatch")||this.hasCustomState||n.dispatch(i),r}])))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,a=!0){const{rawCommands:r,editor:n,state:i}=this,{view:t}=n,o=[],s=!!e,l=e||i.tr,c={...Object.fromEntries(Object.entries(r).map((([e,r])=>[e,(...e)=>{const n=this.buildProps(l,a),i=r(...e)(n);return o.push(i),c}]))),run:()=>(s||!a||l.getMeta("preventDispatch")||this.hasCustomState||t.dispatch(l),o.every((e=>!0===e)))};return c}createCan(e){const{rawCommands:a,state:r}=this,n=!1,i=e||r.tr,t=this.buildProps(i,n),o=Object.fromEntries(Object.entries(a).map((([e,a])=>[e,(...e)=>a(...e)({...t,dispatch:void 0})])));return{...o,chain:()=>this.createChain(i,n)}}buildProps(e,a=!0){const{rawCommands:r,editor:n,state:i}=this,{view:t}=n,o={tr:e,editor:n,view:t,state:gh({state:i,transaction:e}),dispatch:a?()=>{}:void 0,chain:()=>this.createChain(e,a),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map((([e,a])=>[e,(...e)=>a(...e)(o)])))}};return o}}function bh(e,a,r){if(void 0===e.config[a]&&e.parent)return bh(e.parent,a,r);if("function"==typeof e.config[a]){return e.config[a].bind({...r,parent:e.parent?bh(e.parent,a,r):null})}return e.config[a]}function kh(e,a){if("string"==typeof e){if(!a.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return a.nodes[e]}return e}function fh(e,a=void 0,...r){return function(e){return"function"==typeof e}(e)?a?e.bind(a)(...r):e(...r):e}function yh(e,a){const r=rc.fromSchema(a).serializeFragment(e),n=document.implementation.createHTMLDocument().createElement("div");return n.appendChild(r),n.innerHTML}function vh(e){return"Object"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function wh(e,a){const r={...e};return vh(e)&&vh(a)&&Object.keys(a).forEach((n=>{vh(a[n])&&vh(e[n])?r[n]=wh(e[n],a[n]):r[n]=a[n]})),r}class zh{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=fh(bh(this,"addOptions",{name:this.name}))),this.storage=fh(bh(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new zh(e)}configure(e={}){const a=this.extend({...this.config,addOptions:()=>wh(this.options,e)});return a.name=this.name,a.parent=this.parent,a}extend(e={}){const a=new zh(e);return a.parent=this,this.child=a,a.name=e.name?e.name:a.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${a.name}".`),a.options=fh(bh(a,"addOptions",{name:a.name})),a.storage=fh(bh(a,"addStorage",{name:a.name,options:a.options})),a}static handleExit({editor:e,mark:a}){const{tr:r}=e.state,n=e.state.selection.$from;if(n.pos===n.end()){const i=n.marks();if(!!!i.find((e=>(null==e?void 0:e.type.name)===a.name)))return!1;const t=i.find((e=>(null==e?void 0:e.type.name)===a.name));return t&&r.removeStoredMark(t),r.insertText(" ",n.pos),e.view.dispatch(r),!0}return!1}}class jh{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=fh(bh(this,"addOptions",{name:this.name}))),this.storage=fh(bh(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new jh(e)}configure(e={}){const a=this.extend({...this.config,addOptions:()=>wh(this.options,e)});return a.name=this.name,a.parent=this.parent,a}extend(e={}){const a=new jh({...this.config,...e});return a.parent=this,this.child=a,a.name=e.name?e.name:a.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${a.name}".`),a.options=fh(bh(a,"addOptions",{name:a.name})),a.storage=fh(bh(a,"addStorage",{name:a.name,options:a.options})),a}}const xh=jh.create({name:"clipboardTextSerializer",addOptions:()=>({blockSeparator:void 0}),addProseMirrorPlugins(){return[new id({key:new sd("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:a,schema:r}=e,{doc:n,selection:i}=a,{ranges:t}=i,o=Math.min(...t.map((e=>e.$from.pos))),s=Math.max(...t.map((e=>e.$to.pos))),l=function(e){return Object.fromEntries(Object.entries(e.nodes).filter((([,e])=>e.spec.toText)).map((([e,a])=>[e,a.spec.toText])))}(r);return function(e,a,r){const{from:n,to:i}=a,{blockSeparator:t="\n\n",textSerializers:o={}}=r;let s="";return e.nodesBetween(n,i,((e,r,l,c)=>{var d;e.isBlock&&r>n&&(s+=t);const u=null==o?void 0:o[e.type.name];if(u)return l&&(s+=u({node:e,pos:r,parent:l,index:c,range:a})),!1;e.isText&&(s+=null===(d=null==e?void 0:e.text)||void 0===d?void 0:d.slice(Math.max(n,r)-r,i-r))})),s}(n,{from:o,to:s},{...void 0!==this.options.blockSeparator?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}});function qh(e,a,r={strict:!0}){const n=Object.keys(a);return!n.length||n.every((n=>{return r.strict?a[n]===e[n]:(i=a[n],"[object RegExp]"===Object.prototype.toString.call(i)?a[n].test(e[n]):a[n]===e[n]);var i}))}function $h(e,a,r={}){return e.find((e=>e.type===a&&qh(Object.fromEntries(Object.keys(r).map((a=>[a,e.attrs[a]]))),r)))}function Ch(e,a,r={}){return!!$h(e,a,r)}function _h(e,a,r){var n;if(!e||!a)return;let i=e.parent.childAfter(e.parentOffset);if(i.node&&i.node.marks.some((e=>e.type===a))||(i=e.parent.childBefore(e.parentOffset)),!i.node||!i.node.marks.some((e=>e.type===a)))return;r=r||(null===(n=i.node.marks[0])||void 0===n?void 0:n.attrs);if(!$h([...i.node.marks],a,r))return;let t=i.index,o=e.start()+i.offset,s=t+1,l=o+i.node.nodeSize;for(;t>0&&Ch([...e.parent.child(t-1).marks],a,r);)t-=1,o-=e.parent.child(t).nodeSize;for(;s<e.parent.childCount&&Ch([...e.parent.child(s).marks],a,r);)l+=e.parent.child(s).nodeSize,s+=1;return{from:o,to:l}}function Sh(e,a){if("string"==typeof e){if(!a.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return a.marks[e]}return e}function Eh(e){return e instanceof Wc}function Ah(e=0,a=0,r=0){return Math.min(Math.max(e,a),r)}const Oh=e=>{const a=e.childNodes;for(let r=a.length-1;r>=0;r-=1){const n=a[r];3===n.nodeType&&n.nodeValue&&/^(\n\s\s|\n)$/.test(n.nodeValue)?e.removeChild(n):1===n.nodeType&&Oh(n)}return e};function Dh(e){const a=`<body>${e}</body>`,r=(new window.DOMParser).parseFromString(a,"text/html").body;return Oh(r)}function Mh(e,a,r){if(e instanceof ql||e instanceof al)return e;r={slice:!0,parseOptions:{},...r};const n="string"==typeof e;if("object"==typeof e&&null!==e)try{if(Array.isArray(e)&&e.length>0)return al.fromArray(e.map((e=>a.nodeFromJSON(e))));const n=a.nodeFromJSON(e);return r.errorOnInvalidContent&&n.check(),n}catch(n){if(r.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:n});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",n),Mh("",a,r)}if(n){if(r.errorOnInvalidContent){let n=!1,i="";const t=new Ul({topNode:a.spec.topNode,marks:a.spec.marks,nodes:a.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:e=>(n=!0,i="string"==typeof e?e:e.outerHTML,null)}]}})});if(r.slice?Gl.fromSchema(t).parseSlice(Dh(e),r.parseOptions):Gl.fromSchema(t).parse(Dh(e),r.parseOptions),r.errorOnInvalidContent&&n)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${i}`)})}const n=Gl.fromSchema(a);return r.slice?n.parseSlice(Dh(e),r.parseOptions).content:n.parse(Dh(e),r.parseOptions)}return Mh("",a,r)}function Fh(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function Th(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function Nh(e,a,r={}){const{from:n,to:i,empty:t}=e.selection,o=a?kh(a,e.schema):null,s=[];e.doc.nodesBetween(n,i,((e,a)=>{if(e.isText)return;const r=Math.max(n,a),t=Math.min(i,a+e.nodeSize);s.push({node:e,from:r,to:t})}));const l=i-n,c=s.filter((e=>!o||o.name===e.node.type.name)).filter((e=>qh(e.node.attrs,r,{strict:!1})));if(t)return!!c.length;const d=c.reduce(((e,a)=>e+a.to-a.from),0);return d>=l}function Ih(e,a){return a.nodes[e]?"node":a.marks[e]?"mark":null}function Ph(e,a){const r="string"==typeof a?[a]:a;return Object.keys(e).reduce(((a,n)=>(r.includes(n)||(a[n]=e[n]),a)),{})}function Rh(e){return a=>function(e,a){for(let r=e.depth;r>0;r-=1){const n=e.node(r);if(a(n))return{pos:r>0?e.before(r):0,start:e.start(r),depth:r,node:n}}}(a.$from,e)}function Lh(e,a,r){return Object.fromEntries(Object.entries(r).filter((([r])=>{const n=e.find((e=>e.type===a&&e.name===r));return!!n&&n.attribute.keepOnSplit})))}function Bh(e,a){const{nodeExtensions:r}=function(e){return{baseExtensions:e.filter((e=>"extension"===e.type)),nodeExtensions:e.filter((e=>"node"===e.type)),markExtensions:e.filter((e=>"mark"===e.type))}}(a),n=r.find((a=>a.name===e));if(!n)return!1;const i=fh(bh(n,"group",{name:n.name,options:n.options,storage:n.storage}));return"string"==typeof i&&i.split(" ").includes("list")}function Vh(e,{checkChildren:a=!0,ignoreWhitespace:r=!1}={}){var n;if(r){if("hardBreak"===e.type.name)return!0;if(e.isText)return/^\s*$/m.test(null!==(n=e.text)&&void 0!==n?n:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(0===e.content.childCount)return!0;if(a){let n=!0;return e.content.forEach((e=>{!1!==n&&(Vh(e,{ignoreWhitespace:r,checkChildren:a})||(n=!1))})),n}return!1}function Uh(e,a){const r=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(r){const n=r.filter((e=>null==a?void 0:a.includes(e.type.name)));e.tr.ensureMarks(n)}}const Hh=(e,a)=>{const r=Rh((e=>e.type===a))(e.selection);if(!r)return!0;const n=e.doc.resolve(Math.max(0,r.pos-1)).before(r.depth);if(void 0===n)return!0;const i=e.doc.nodeAt(n);return r.node.type!==(null==i?void 0:i.type)||!Sc(e.doc,r.pos)||(e.join(r.pos),!0)},Gh=(e,a)=>{const r=Rh((e=>e.type===a))(e.selection);if(!r)return!0;const n=e.doc.resolve(r.start).after(r.depth);if(void 0===n)return!0;const i=e.doc.nodeAt(n);return r.node.type!==(null==i?void 0:i.type)||!Sc(e.doc,n)||(e.join(n),!0)};var Wh=Object.freeze({__proto__:null,blur:()=>({editor:e,view:a})=>(requestAnimationFrame((()=>{var r;e.isDestroyed||(a.dom.blur(),null===(r=null===window||void 0===window?void 0:window.getSelection())||void 0===r||r.removeAllRanges())})),!0),clearContent:(e=!1)=>({commands:a})=>a.setContent("",e),clearNodes:()=>({state:e,tr:a,dispatch:r})=>{const{selection:n}=a,{ranges:i}=n;return!r||(i.forEach((({$from:r,$to:n})=>{e.doc.nodesBetween(r.pos,n.pos,((e,r)=>{if(e.type.isText)return;const{doc:n,mapping:i}=a,t=n.resolve(i.map(r)),o=n.resolve(i.map(r+e.nodeSize)),s=t.blockRange(o);if(!s)return;const l=qc(s);if(e.type.isTextblock){const{defaultType:e}=t.parent.contentMatchAt(t.index());a.setNodeMarkup(s.start,e)}(l||0===l)&&a.lift(s,l)}))})),!0)},command:e=>a=>e(a),createParagraphNear:()=>({state:e,dispatch:a})=>((e,a)=>{let r=e.selection,{$from:n,$to:i}=r;if(r instanceof Yc||n.parent.inlineContent||i.parent.inlineContent)return!1;let t=oh(i.parent.contentMatchAt(i.indexAfter()));if(!t||!t.isTextblock)return!1;if(a){let r=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,o=e.tr.insert(r,t.createAndFill());o.setSelection(Wc.create(o.doc,r+1)),a(o.scrollIntoView())}return!0})(e,a),cut:(e,a)=>({editor:r,tr:n})=>{const{state:i}=r,t=i.doc.slice(e.from,e.to);n.deleteRange(e.from,e.to);const o=n.mapping.map(a);return n.insert(o,t.content),n.setSelection(new Wc(n.doc.resolve(o-1))),!0},deleteCurrentNode:()=>({tr:e,dispatch:a})=>{const{selection:r}=e,n=r.$anchor.node();if(n.content.size>0)return!1;const i=e.selection.$anchor;for(let r=i.depth;r>0;r-=1){if(i.node(r).type===n.type){if(a){const a=i.before(r),n=i.after(r);e.delete(a,n).scrollIntoView()}return!0}}return!1},deleteNode:e=>({tr:a,state:r,dispatch:n})=>{const i=kh(e,r.schema),t=a.selection.$anchor;for(let e=t.depth;e>0;e-=1){if(t.node(e).type===i){if(n){const r=t.before(e),n=t.after(e);a.delete(r,n).scrollIntoView()}return!0}}return!1},deleteRange:e=>({tr:a,dispatch:r})=>{const{from:n,to:i}=e;return r&&a.delete(n,i),!0},deleteSelection:()=>({state:e,dispatch:a})=>((e,a)=>!e.selection.empty&&(a&&a(e.tr.deleteSelection().scrollIntoView()),!0))(e,a),enter:()=>({commands:e})=>e.keyboardShortcut("Enter"),exitCode:()=>({state:e,dispatch:a})=>((e,a)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let i=r.node(-1),t=r.indexAfter(-1),o=oh(i.contentMatchAt(t));if(!o||!i.canReplaceWith(t,t,o))return!1;if(a){let n=r.after(),i=e.tr.replaceWith(n,n,o.createAndFill());i.setSelection(Vc.near(i.doc.resolve(n),1)),a(i.scrollIntoView())}return!0})(e,a),extendMarkRange:(e,a={})=>({tr:r,state:n,dispatch:i})=>{const t=Sh(e,n.schema),{doc:o,selection:s}=r,{$from:l,from:c,to:d}=s;if(i){const e=_h(l,t,a);if(e&&e.from<=c&&e.to>=d){const a=Wc.create(o,e.from,e.to);r.setSelection(a)}}return!0},first:e=>a=>{const r="function"==typeof e?e(a):e;for(let e=0;e<r.length;e+=1)if(r[e](a))return!0;return!1},focus:(e=null,a={})=>({editor:r,view:n,tr:i,dispatch:t})=>{a={scrollIntoView:!0,...a};const o=()=>{n.dom.focus(),requestAnimationFrame((()=>{r.isDestroyed||(n.focus(),(null==a?void 0:a.scrollIntoView)&&r.commands.scrollIntoView())}))};if(n.hasFocus()&&null===e||!1===e)return!0;if(t&&null===e&&!Eh(r.state.selection))return o(),!0;const s=function(e,a=null){if(!a)return null;const r=Vc.atStart(e),n=Vc.atEnd(e);if("start"===a||!0===a)return r;if("end"===a)return n;const i=r.from,t=n.to;return"all"===a?Wc.create(e,Ah(0,i,t),Ah(e.content.size,i,t)):Wc.create(e,Ah(a,i,t),Ah(a,i,t))}(i.doc,e)||r.state.selection,l=r.state.selection.eq(s);return t&&(l||i.setSelection(s),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},forEach:(e,a)=>r=>e.every(((e,n)=>a(e,{...r,index:n}))),insertContent:(e,a)=>({tr:r,commands:n})=>n.insertContentAt({from:r.selection.from,to:r.selection.to},e,a),insertContentAt:(e,a,r)=>({tr:n,dispatch:i,editor:t})=>{var o;if(i){let i;r={parseOptions:t.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...r};try{i=Mh(a,t.schema,{parseOptions:{preserveWhitespace:"full",...r.parseOptions},errorOnInvalidContent:null!==(o=r.errorOnInvalidContent)&&void 0!==o?o:t.options.enableContentCheck})}catch(e){return t.emit("contentError",{editor:t,error:e,disableCollaboration:()=>{t.storage.collaboration&&(t.storage.collaboration.isDisabled=!0)}}),!1}let{from:s,to:l}="number"==typeof e?{from:e,to:e}:{from:e.from,to:e.to},c=!0,d=!0;if(("type"in i?[i]:i).forEach((e=>{e.check(),c=!!c&&(e.isText&&0===e.marks.length),d=!!d&&e.isBlock})),s===l&&d){const{parent:e}=n.doc.resolve(s);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(s-=1,l+=1)}let u;if(c){if(Array.isArray(a))u=a.map((e=>e.text||"")).join("");else if(a instanceof al){let e="";a.forEach((a=>{a.text&&(e+=a.text)})),u=e}else u="object"==typeof a&&a&&a.text?a.text:a;n.insertText(u,s,l)}else u=i,n.replaceWith(s,l,u);r.updateSelection&&function(e,a,r){const n=e.steps.length-1;if(n<a)return;const i=e.steps[n];if(!(i instanceof wc||i instanceof zc))return;const t=e.mapping.maps[n];let o=0;t.forEach(((e,a,r,n)=>{0===o&&(o=n)})),e.setSelection(Vc.near(e.doc.resolve(o),r))}(n,n.steps.length-1,-1),r.applyInputRules&&n.setMeta("applyInputRules",{from:s,text:u}),r.applyPasteRules&&n.setMeta("applyPasteRules",{from:s,text:u})}return!0},joinBackward:()=>({state:e,dispatch:a})=>((e,a,r)=>{let n=eh(e,r);if(!n)return!1;let i=nh(n);if(!i){let r=n.blockRange(),i=r&&qc(r);return null!=i&&(a&&a(e.tr.lift(r,i).scrollIntoView()),!0)}let t=i.nodeBefore;if(sh(e,i,a,-1))return!0;if(0==n.parent.content.size&&(rh(t,"end")||Kc.isSelectable(t)))for(let r=n.depth;;r--){let o=Oc(e.doc,n.before(r),n.after(r),sl.empty);if(o&&o.slice.size<o.to-o.from){if(a){let r=e.tr.step(o);r.setSelection(rh(t,"end")?Vc.findFrom(r.doc.resolve(r.mapping.map(i.pos,-1)),-1):Kc.create(r.doc,i.pos-t.nodeSize)),a(r.scrollIntoView())}return!0}if(1==r||n.node(r-1).childCount>1)break}return!(!t.isAtom||i.depth!=n.depth-1||(a&&a(e.tr.delete(i.pos-t.nodeSize,i.pos).scrollIntoView()),0))})(e,a),joinDown:()=>({state:e,dispatch:a})=>((e,a)=>{let r,n=e.selection;if(n instanceof Kc){if(n.node.isTextblock||!Sc(e.doc,n.to))return!1;r=n.to}else if(r=Ac(e.doc,n.to,1),null==r)return!1;return a&&a(e.tr.join(r).scrollIntoView()),!0})(e,a),joinForward:()=>({state:e,dispatch:a})=>((e,a,r)=>{let n=ih(e,r);if(!n)return!1;let i=th(n);if(!i)return!1;let t=i.nodeAfter;if(sh(e,i,a,1))return!0;if(0==n.parent.content.size&&(rh(t,"start")||Kc.isSelectable(t))){let r=Oc(e.doc,n.before(),n.after(),sl.empty);if(r&&r.slice.size<r.to-r.from){if(a){let n=e.tr.step(r);n.setSelection(rh(t,"start")?Vc.findFrom(n.doc.resolve(n.mapping.map(i.pos)),1):Kc.create(n.doc,n.mapping.map(i.pos))),a(n.scrollIntoView())}return!0}}return!(!t.isAtom||i.depth!=n.depth-1||(a&&a(e.tr.delete(i.pos,i.pos+t.nodeSize).scrollIntoView()),0))})(e,a),joinItemBackward:()=>({state:e,dispatch:a,tr:r})=>{try{const n=Ac(e.doc,e.selection.$from.pos,-1);return null!=n&&(r.join(n,2),a&&a(r),!0)}catch{return!1}},joinItemForward:()=>({state:e,dispatch:a,tr:r})=>{try{const n=Ac(e.doc,e.selection.$from.pos,1);return null!=n&&(r.join(n,2),a&&a(r),!0)}catch{return!1}},joinTextblockBackward:()=>({state:e,dispatch:a})=>((e,a,r)=>{let n=eh(e,r);if(!n)return!1;let i=nh(n);return!!i&&ah(e,i,a)})(e,a),joinTextblockForward:()=>({state:e,dispatch:a})=>((e,a,r)=>{let n=ih(e,r);if(!n)return!1;let i=th(n);return!!i&&ah(e,i,a)})(e,a),joinUp:()=>({state:e,dispatch:a})=>((e,a)=>{let r,n=e.selection,i=n instanceof Kc;if(i){if(n.node.isTextblock||!Sc(e.doc,n.from))return!1;r=n.from}else if(r=Ac(e.doc,n.from,-1),null==r)return!1;if(a){let n=e.tr.join(r);i&&n.setSelection(Kc.create(n.doc,r-e.doc.resolve(r).nodeBefore.nodeSize)),a(n.scrollIntoView())}return!0})(e,a),keyboardShortcut:e=>({editor:a,view:r,tr:n,dispatch:i})=>{const t=function(e){const a=e.split(/-(?!$)/);let r,n,i,t,o=a[a.length-1];"Space"===o&&(o=" ");for(let e=0;e<a.length-1;e+=1){const o=a[e];if(/^(cmd|meta|m)$/i.test(o))t=!0;else if(/^a(lt)?$/i.test(o))r=!0;else if(/^(c|ctrl|control)$/i.test(o))n=!0;else if(/^s(hift)?$/i.test(o))i=!0;else{if(!/^mod$/i.test(o))throw new Error(`Unrecognized modifier name: ${o}`);Fh()||Th()?t=!0:n=!0}}return r&&(o=`Alt-${o}`),n&&(o=`Ctrl-${o}`),t&&(o=`Meta-${o}`),i&&(o=`Shift-${o}`),o}(e).split(/-(?!$)/),o=t.find((e=>!["Alt","Ctrl","Meta","Shift"].includes(e))),s=new KeyboardEvent("keydown",{key:"Space"===o?" ":o,altKey:t.includes("Alt"),ctrlKey:t.includes("Ctrl"),metaKey:t.includes("Meta"),shiftKey:t.includes("Shift"),bubbles:!0,cancelable:!0}),l=a.captureTransaction((()=>{r.someProp("handleKeyDown",(e=>e(r,s)))}));return null==l||l.steps.forEach((e=>{const a=e.map(n.mapping);a&&i&&n.maybeStep(a)})),!0},lift:(e,a={})=>({state:r,dispatch:n})=>!!Nh(r,kh(e,r.schema),a)&&((e,a)=>{let{$from:r,$to:n}=e.selection,i=r.blockRange(n),t=i&&qc(i);return null!=t&&(a&&a(e.tr.lift(i,t).scrollIntoView()),!0)})(r,n),liftEmptyBlock:()=>({state:e,dispatch:a})=>((e,a)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let n=r.before();if(_c(e.doc,n))return a&&a(e.tr.split(n).scrollIntoView()),!0}let n=r.blockRange(),i=n&&qc(n);return null!=i&&(a&&a(e.tr.lift(n,i).scrollIntoView()),!0)})(e,a),liftListItem:e=>({state:a,dispatch:r})=>mh(kh(e,a.schema))(a,r),newlineInCode:()=>({state:e,dispatch:a})=>((e,a)=>{let{$head:r,$anchor:n}=e.selection;return!(!r.parent.type.spec.code||!r.sameParent(n)||(a&&a(e.tr.insertText("\n").scrollIntoView()),0))})(e,a),resetAttributes:(e,a)=>({tr:r,state:n,dispatch:i})=>{let t=null,o=null;const s=Ih("string"==typeof e?e:e.name,n.schema);return!!s&&("node"===s&&(t=kh(e,n.schema)),"mark"===s&&(o=Sh(e,n.schema)),i&&r.selection.ranges.forEach((e=>{n.doc.nodesBetween(e.$from.pos,e.$to.pos,((e,n)=>{t&&t===e.type&&r.setNodeMarkup(n,void 0,Ph(e.attrs,a)),o&&e.marks.length&&e.marks.forEach((i=>{o===i.type&&r.addMark(n,n+e.nodeSize,o.create(Ph(i.attrs,a)))}))}))})),!0)},scrollIntoView:()=>({tr:e,dispatch:a})=>(a&&e.scrollIntoView(),!0),selectAll:()=>({tr:e,dispatch:a})=>{if(a){const a=new Yc(e.doc);e.setSelection(a)}return!0},selectNodeBackward:()=>({state:e,dispatch:a})=>((e,a,r)=>{let{$head:n,empty:i}=e.selection,t=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;t=nh(n)}let o=t&&t.nodeBefore;return!(!o||!Kc.isSelectable(o)||(a&&a(e.tr.setSelection(Kc.create(e.doc,t.pos-o.nodeSize)).scrollIntoView()),0))})(e,a),selectNodeForward:()=>({state:e,dispatch:a})=>((e,a,r)=>{let{$head:n,empty:i}=e.selection,t=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;t=th(n)}let o=t&&t.nodeAfter;return!(!o||!Kc.isSelectable(o)||(a&&a(e.tr.setSelection(Kc.create(e.doc,t.pos)).scrollIntoView()),0))})(e,a),selectParentNode:()=>({state:e,dispatch:a})=>((e,a)=>{let r,{$from:n,to:i}=e.selection,t=n.sharedDepth(i);return 0!=t&&(r=n.before(t),a&&a(e.tr.setSelection(Kc.create(e.doc,r))),!0)})(e,a),selectTextblockEnd:()=>({state:e,dispatch:a})=>dh(e,a),selectTextblockStart:()=>({state:e,dispatch:a})=>ch(e,a),setContent:(e,a=!1,r={},n={})=>({editor:i,tr:t,dispatch:o,commands:s})=>{var l,c;const{doc:d}=t;if("full"!==r.preserveWhitespace){const s=function(e,a,r={},n={}){return Mh(e,a,{slice:!1,parseOptions:r,errorOnInvalidContent:n.errorOnInvalidContent})}(e,i.schema,r,{errorOnInvalidContent:null!==(l=n.errorOnInvalidContent)&&void 0!==l?l:i.options.enableContentCheck});return o&&t.replaceWith(0,d.content.size,s).setMeta("preventUpdate",!a),!0}return o&&t.setMeta("preventUpdate",!a),s.insertContentAt({from:0,to:d.content.size},e,{parseOptions:r,errorOnInvalidContent:null!==(c=n.errorOnInvalidContent)&&void 0!==c?c:i.options.enableContentCheck})},setMark:(e,a={})=>({tr:r,state:n,dispatch:i})=>{const{selection:t}=r,{empty:o,ranges:s}=t,l=Sh(e,n.schema);if(i)if(o){const e=function(e,a){const r=Sh(a,e.schema),{from:n,to:i,empty:t}=e.selection,o=[];t?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(n,i,(e=>{o.push(...e.marks)}));const s=o.find((e=>e.type.name===r.name));return s?{...s.attrs}:{}}(n,l);r.addStoredMark(l.create({...e,...a}))}else s.forEach((e=>{const i=e.$from.pos,t=e.$to.pos;n.doc.nodesBetween(i,t,((e,n)=>{const o=Math.max(n,i),s=Math.min(n+e.nodeSize,t);e.marks.find((e=>e.type===l))?e.marks.forEach((e=>{l===e.type&&r.addMark(o,s,l.create({...e.attrs,...a}))})):r.addMark(o,s,l.create(a))}))}));return function(e,a,r){var n;const{selection:i}=a;let t=null;if(Eh(i)&&(t=i.$cursor),t){const a=null!==(n=e.storedMarks)&&void 0!==n?n:t.marks();return!!r.isInSet(a)||!a.some((e=>e.type.excludes(r)))}const{ranges:o}=i;return o.some((({$from:a,$to:n})=>{let i=0===a.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(r);return e.doc.nodesBetween(a.pos,n.pos,((e,a,n)=>{if(i)return!1;if(e.isInline){const a=!n||n.type.allowsMarkType(r),t=!!r.isInSet(e.marks)||!e.marks.some((e=>e.type.excludes(r)));i=a&&t}return!i})),i}))}(n,r,l)},setMeta:(e,a)=>({tr:r})=>(r.setMeta(e,a),!0),setNode:(e,a={})=>({state:r,dispatch:n,chain:i})=>{const t=kh(e,r.schema);let o;return r.selection.$anchor.sameParent(r.selection.$head)&&(o=r.selection.$anchor.parent.attrs),t.isTextblock?i().command((({commands:e})=>!!uh(t,{...o,...a})(r)||e.clearNodes())).command((({state:e})=>uh(t,{...o,...a})(e,n))).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:e=>({tr:a,dispatch:r})=>{if(r){const{doc:r}=a,n=Ah(e,0,r.content.size),i=Kc.create(r,n);a.setSelection(i)}return!0},setTextSelection:e=>({tr:a,dispatch:r})=>{if(r){const{doc:r}=a,{from:n,to:i}="number"==typeof e?{from:e,to:e}:e,t=Wc.atStart(r).from,o=Wc.atEnd(r).to,s=Ah(n,t,o),l=Ah(i,t,o),c=Wc.create(r,s,l);a.setSelection(c)}return!0},sinkListItem:e=>({state:a,dispatch:r})=>{const n=kh(e,a.schema);return(i=n,function(e,a){let{$from:r,$to:n}=e.selection,t=r.blockRange(n,(e=>e.childCount>0&&e.firstChild.type==i));if(!t)return!1;let o=t.startIndex;if(0==o)return!1;let s=t.parent,l=s.child(o-1);if(l.type!=i)return!1;if(a){let r=l.lastChild&&l.lastChild.type==s.type,n=al.from(r?i.create():null),o=new sl(al.from(i.create(null,al.from(s.type.create(null,n)))),r?3:1,0),c=t.start,d=t.end;a(e.tr.step(new zc(c-(r?3:1),d,c,d,o,1,!0)).scrollIntoView())}return!0})(a,r);var i},splitBlock:({keepMarks:e=!0}={})=>({tr:a,state:r,dispatch:n,editor:i})=>{const{selection:t,doc:o}=a,{$from:s,$to:l}=t,c=Lh(i.extensionManager.attributes,s.node().type.name,s.node().attrs);if(t instanceof Kc&&t.node.isBlock)return!(!s.parentOffset||!_c(o,s.pos))&&(n&&(e&&Uh(r,i.extensionManager.splittableMarks),a.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,u=0===s.depth?void 0:function(e){for(let a=0;a<e.edgeCount;a+=1){const{type:r}=e.edge(a);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}(s.node(-1).contentMatchAt(s.indexAfter(-1)));let h=d&&u?[{type:u,attrs:c}]:void 0,m=_c(a.doc,a.mapping.map(s.pos),1,h);if(h||m||!_c(a.doc,a.mapping.map(s.pos),1,u?[{type:u}]:void 0)||(m=!0,h=u?[{type:u,attrs:c}]:void 0),n){if(m&&(t instanceof Wc&&a.deleteSelection(),a.split(a.mapping.map(s.pos),1,h),u&&!d&&!s.parentOffset&&s.parent.type!==u)){const e=a.mapping.map(s.before()),r=a.doc.resolve(e);s.node(-1).canReplaceWith(r.index(),r.index()+1,u)&&a.setNodeMarkup(a.mapping.map(s.before()),u)}e&&Uh(r,i.extensionManager.splittableMarks),a.scrollIntoView()}return m},splitListItem:(e,a={})=>({tr:r,state:n,dispatch:i,editor:t})=>{var o;const s=kh(e,n.schema),{$from:l,$to:c}=n.selection,d=n.selection.node;if(d&&d.isBlock||l.depth<2||!l.sameParent(c))return!1;const u=l.node(-1);if(u.type!==s)return!1;const h=t.extensionManager.attributes;if(0===l.parent.content.size&&l.node(-1).childCount===l.indexAfter(-1)){if(2===l.depth||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(i){let e=al.empty;const n=l.index(-1)?1:l.index(-2)?2:3;for(let a=l.depth-n;a>=l.depth-3;a-=1)e=al.from(l.node(a).copy(e));const i=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,t={...Lh(h,l.node().type.name,l.node().attrs),...a},c=(null===(o=s.contentMatch.defaultType)||void 0===o?void 0:o.createAndFill(t))||void 0;e=e.append(al.from(s.createAndFill(null,c)||void 0));const d=l.before(l.depth-(n-1));r.replace(d,l.after(-i),new sl(e,4-n,0));let u=-1;r.doc.nodesBetween(d,r.doc.content.size,((e,a)=>{if(u>-1)return!1;e.isTextblock&&0===e.content.size&&(u=a+1)})),u>-1&&r.setSelection(Wc.near(r.doc.resolve(u))),r.scrollIntoView()}return!0}const m=c.pos===l.end()?u.contentMatchAt(0).defaultType:null,g={...Lh(h,u.type.name,u.attrs),...a},p={...Lh(h,l.node().type.name,l.node().attrs),...a};r.delete(l.pos,c.pos);const b=m?[{type:s,attrs:g},{type:m,attrs:p}]:[{type:s,attrs:g}];if(!_c(r.doc,l.pos,2))return!1;if(i){const{selection:e,storedMarks:a}=n,{splittableMarks:o}=t.extensionManager,s=a||e.$to.parentOffset&&e.$from.marks();if(r.split(l.pos,2,b).scrollIntoView(),!s||!i)return!0;const c=s.filter((e=>o.includes(e.type.name)));r.ensureMarks(c)}return!0},toggleList:(e,a,r,n={})=>({editor:i,tr:t,state:o,dispatch:s,chain:l,commands:c,can:d})=>{const{extensions:u,splittableMarks:h}=i.extensionManager,m=kh(e,o.schema),g=kh(a,o.schema),{selection:p,storedMarks:b}=o,{$from:k,$to:f}=p,y=k.blockRange(f),v=b||p.$to.parentOffset&&p.$from.marks();if(!y)return!1;const w=Rh((e=>Bh(e.type.name,u)))(p);if(y.depth>=1&&w&&y.depth-w.depth<=1){if(w.node.type===m)return c.liftListItem(g);if(Bh(w.node.type.name,u)&&m.validContent(w.node.content)&&s)return l().command((()=>(t.setNodeMarkup(w.pos,m),!0))).command((()=>Hh(t,m))).command((()=>Gh(t,m))).run()}return r&&v&&s?l().command((()=>{const e=d().wrapInList(m,n),a=v.filter((e=>h.includes(e.type.name)));return t.ensureMarks(a),!!e||c.clearNodes()})).wrapInList(m,n).command((()=>Hh(t,m))).command((()=>Gh(t,m))).run():l().command((()=>!!d().wrapInList(m,n)||c.clearNodes())).wrapInList(m,n).command((()=>Hh(t,m))).command((()=>Gh(t,m))).run()},toggleMark:(e,a={},r={})=>({state:n,commands:i})=>{const{extendEmptyMarkRange:t=!1}=r,o=Sh(e,n.schema),s=function(e,a,r={}){const{empty:n,ranges:i}=e.selection,t=a?Sh(a,e.schema):null;if(n)return!!(e.storedMarks||e.selection.$from.marks()).filter((e=>!t||t.name===e.type.name)).find((e=>qh(e.attrs,r,{strict:!1})));let o=0;const s=[];if(i.forEach((({$from:a,$to:r})=>{const n=a.pos,i=r.pos;e.doc.nodesBetween(n,i,((e,a)=>{if(!e.isText&&!e.marks.length)return;const r=Math.max(n,a),t=Math.min(i,a+e.nodeSize);o+=t-r,s.push(...e.marks.map((e=>({mark:e,from:r,to:t}))))}))})),0===o)return!1;const l=s.filter((e=>!t||t.name===e.mark.type.name)).filter((e=>qh(e.mark.attrs,r,{strict:!1}))).reduce(((e,a)=>e+a.to-a.from),0),c=s.filter((e=>!t||e.mark.type!==t&&e.mark.type.excludes(t))).reduce(((e,a)=>e+a.to-a.from),0);return(l>0?l+c:l)>=o}(n,o,a);return s?i.unsetMark(o,{extendEmptyMarkRange:t}):i.setMark(o,a)},toggleNode:(e,a,r={})=>({state:n,commands:i})=>{const t=kh(e,n.schema),o=kh(a,n.schema),s=Nh(n,t,r);let l;return n.selection.$anchor.sameParent(n.selection.$head)&&(l=n.selection.$anchor.parent.attrs),s?i.setNode(o,l):i.setNode(t,{...l,...r})},toggleWrap:(e,a={})=>({state:r,commands:n})=>{const i=kh(e,r.schema);return Nh(r,i,a)?n.lift(i):n.wrapIn(i,a)},undoInputRule:()=>({state:e,dispatch:a})=>{const r=e.plugins;for(let n=0;n<r.length;n+=1){const i=r[n];let t;if(i.spec.isInputRules&&(t=i.getState(e))){if(a){const a=e.tr,r=t.transform;for(let e=r.steps.length-1;e>=0;e-=1)a.step(r.steps[e].invert(r.docs[e]));if(t.text){const r=a.doc.resolve(t.from).marks();a.replaceWith(t.from,t.to,e.schema.text(t.text,r))}else a.delete(t.from,t.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:a})=>{const{selection:r}=e,{empty:n,ranges:i}=r;return n||a&&i.forEach((a=>{e.removeMark(a.$from.pos,a.$to.pos)})),!0},unsetMark:(e,a={})=>({tr:r,state:n,dispatch:i})=>{var t;const{extendEmptyMarkRange:o=!1}=a,{selection:s}=r,l=Sh(e,n.schema),{$from:c,empty:d,ranges:u}=s;if(!i)return!0;if(d&&o){let{from:e,to:a}=s;const n=null===(t=c.marks().find((e=>e.type===l)))||void 0===t?void 0:t.attrs,i=_h(c,l,n);i&&(e=i.from,a=i.to),r.removeMark(e,a,l)}else u.forEach((e=>{r.removeMark(e.$from.pos,e.$to.pos,l)}));return r.removeStoredMark(l),!0},updateAttributes:(e,a={})=>({tr:r,state:n,dispatch:i})=>{let t=null,o=null;const s=Ih("string"==typeof e?e:e.name,n.schema);return!!s&&("node"===s&&(t=kh(e,n.schema)),"mark"===s&&(o=Sh(e,n.schema)),i&&r.selection.ranges.forEach((e=>{const i=e.$from.pos,s=e.$to.pos;let l,c,d,u;r.selection.empty?n.doc.nodesBetween(i,s,((e,a)=>{t&&t===e.type&&(d=Math.max(a,i),u=Math.min(a+e.nodeSize,s),l=a,c=e)})):n.doc.nodesBetween(i,s,((e,n)=>{n<i&&t&&t===e.type&&(d=Math.max(n,i),u=Math.min(n+e.nodeSize,s),l=n,c=e),n>=i&&n<=s&&(t&&t===e.type&&r.setNodeMarkup(n,void 0,{...e.attrs,...a}),o&&e.marks.length&&e.marks.forEach((t=>{if(o===t.type){const l=Math.max(n,i),c=Math.min(n+e.nodeSize,s);r.addMark(l,c,o.create({...t.attrs,...a}))}})))})),c&&(void 0!==l&&r.setNodeMarkup(l,void 0,{...c.attrs,...a}),o&&c.marks.length&&c.marks.forEach((e=>{o===e.type&&r.addMark(d,u,o.create({...e.attrs,...a}))})))})),!0)},wrapIn:(e,a={})=>({state:r,dispatch:n})=>function(e,a=null){return function(r,n){let{$from:i,$to:t}=r.selection,o=i.blockRange(t),s=o&&$c(o,e,a);return!!s&&(n&&n(r.tr.wrap(o,s).scrollIntoView()),!0)}}(kh(e,r.schema),a)(r,n),wrapInList:(e,a={})=>({state:r,dispatch:n})=>hh(kh(e,r.schema),a)(r,n)});const Zh=jh.create({name:"commands",addCommands:()=>({...Wh})}),Kh=jh.create({name:"drop",addProseMirrorPlugins(){return[new id({key:new sd("tiptapDrop"),props:{handleDrop:(e,a,r,n)=>{this.editor.emit("drop",{editor:this.editor,event:a,slice:r,moved:n})}}})]}}),Jh=jh.create({name:"editable",addProseMirrorPlugins(){return[new id({key:new sd("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Yh=jh.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new id({key:new sd("focusEvents"),props:{handleDOMEvents:{focus:(a,r)=>{e.isFocused=!0;const n=e.state.tr.setMeta("focus",{event:r}).setMeta("addToHistory",!1);return a.dispatch(n),!1},blur:(a,r)=>{e.isFocused=!1;const n=e.state.tr.setMeta("blur",{event:r}).setMeta("addToHistory",!1);return a.dispatch(n),!1}}}})]}}),Xh=jh.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first((({commands:e})=>[()=>e.undoInputRule(),()=>e.command((({tr:a})=>{const{selection:r,doc:n}=a,{empty:i,$anchor:t}=r,{pos:o,parent:s}=t,l=t.parent.isTextblock&&o>0?a.doc.resolve(o-1):t,c=l.parent.type.spec.isolating,d=t.pos-t.parentOffset,u=c&&1===l.parent.childCount?d===t.pos:Vc.atStart(n).from===o;return!(!i||!s.type.isTextblock||s.textContent.length||!u||u&&"paragraph"===t.parent.type.name)&&e.clearNodes()})),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()])),a=()=>this.editor.commands.first((({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()])),r={Enter:()=>this.editor.commands.first((({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()])),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:a,"Mod-Delete":a,"Mod-a":()=>this.editor.commands.selectAll()},n={...r},i={...r,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":a,"Ctrl-Alt-Backspace":a,"Alt-Delete":a,"Alt-d":a,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Fh()||Th()?i:n},addProseMirrorPlugins(){return[new id({key:new sd("clearDocument"),appendTransaction:(e,a,r)=>{const n=e.some((e=>e.docChanged))&&!a.doc.eq(r.doc),i=e.some((e=>e.getMeta("preventClearDocument")));if(!n||i)return;const{empty:t,from:o,to:s}=a.selection,l=Vc.atStart(a.doc).from,c=Vc.atEnd(a.doc).to;if(t||!(o===l&&s===c))return;if(!Vh(r.doc))return;const d=r.tr,u=gh({state:r,transaction:d}),{commands:h}=new ph({editor:this.editor,state:u});return h.clearNodes(),d.steps.length?d:void 0}})]}}),Qh=jh.create({name:"paste",addProseMirrorPlugins(){return[new id({key:new sd("tiptapPaste"),props:{handlePaste:(e,a,r)=>{this.editor.emit("paste",{editor:this.editor,event:a,slice:r})}}})]}}),em=jh.create({name:"tabindex",addProseMirrorPlugins(){return[new id({key:new sd("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});var am=Object.freeze({__proto__:null,ClipboardTextSerializer:xh,Commands:Zh,Drop:Kh,Editable:Jh,FocusEvents:Yh,Keymap:Xh,Paste:Qh,Tabindex:em});let rm=class e{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=fh(bh(this,"addOptions",{name:this.name}))),this.storage=fh(bh(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(a={}){return new e(a)}configure(e={}){const a=this.extend({...this.config,addOptions:()=>wh(this.options,e)});return a.name=this.name,a.parent=this.parent,a}extend(a={}){const r=new e(a);return r.parent=this,this.child=r,r.name=a.name?a.name:r.parent.name,a.defaultOptions&&Object.keys(a.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${r.name}".`),r.options=fh(bh(r,"addOptions",{name:r.name})),r.storage=fh(bh(r,"addStorage",{name:r.name,options:r.options})),r}};const nm=jh.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new id({key:new sd("placeholder"),props:{decorations:({doc:e,selection:a})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:n}=a,i=[];if(!r)return null;const t=this.editor.isEmpty;return e.descendants(((e,a)=>{const r=n>=a&&n<=a+e.nodeSize,o=!e.isLeaf&&Vh(e);if((r||!this.options.showOnlyCurrent)&&o){const n=[this.options.emptyNodeClass];t&&n.push(this.options.emptyEditorClass);const o=Lu.node(a,a+e.nodeSize,{class:n.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:e,pos:a,hasAnchor:r}):this.options.placeholder});i.push(o)}return this.options.includeChildren})),Uu.create(e,i)}}})]}}),im={};function tm(e,a){"string"!=typeof a&&(a=tm.defaultChars);const r=function(e){let a=im[e];if(a)return a;a=im[e]=[];for(let e=0;e<128;e++){const r=String.fromCharCode(e);a.push(r)}for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);a[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return a}(a);return e.replace(/(%[a-f0-9]{2})+/gi,(function(e){let a="";for(let n=0,i=e.length;n<i;n+=3){const t=parseInt(e.slice(n+1,n+3),16);if(t<128)a+=r[t];else{if(192==(224&t)&&n+3<i){const r=parseInt(e.slice(n+4,n+6),16);if(128==(192&r)){const e=t<<6&1984|63&r;a+=e<128?"��":String.fromCharCode(e),n+=3;continue}}if(224==(240&t)&&n+6<i){const r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16);if(128==(192&r)&&128==(192&i)){const e=t<<12&61440|r<<6&4032|63&i;a+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),n+=6;continue}}if(240==(248&t)&&n+9<i){const r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16),o=parseInt(e.slice(n+10,n+12),16);if(128==(192&r)&&128==(192&i)&&128==(192&o)){let e=t<<18&1835008|r<<12&258048|i<<6&4032|63&o;e<65536||e>1114111?a+="����":(e-=65536,a+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),n+=9;continue}}a+="�"}}return a}))}tm.defaultChars=";/?:@&=+$,#",tm.componentChars="";const om={};function sm(e,a,r){"string"!=typeof a&&(r=a,a=sm.defaultChars),void 0===r&&(r=!0);const n=function(e){let a=om[e];if(a)return a;a=om[e]=[];for(let e=0;e<128;e++){const r=String.fromCharCode(e);/^[0-9a-z]$/i.test(r)?a.push(r):a.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)a[e.charCodeAt(r)]=e[r];return a}(a);let i="";for(let a=0,t=e.length;a<t;a++){const o=e.charCodeAt(a);if(r&&37===o&&a+2<t&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3)))i+=e.slice(a,a+3),a+=2;else if(o<128)i+=n[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&a+1<t){const r=e.charCodeAt(a+1);if(r>=56320&&r<=57343){i+=encodeURIComponent(e[a]+e[a+1]),a++;continue}}i+="%EF%BF%BD"}else i+=encodeURIComponent(e[a])}return i}function lm(e){let a="";return a+=e.protocol||"",a+=e.slashes?"//":"",a+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?a+="["+e.hostname+"]":a+=e.hostname||"",a+=e.port?":"+e.port:"",a+=e.pathname||"",a+=e.search||"",a+=e.hash||"",a}function cm(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}sm.defaultChars=";/?:@&=+$,-_.!~*'()#",sm.componentChars="-_.!~*'()";const dm=/^([a-z0-9.+-]+:)/i,um=/:[0-9]*$/,hm=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,mm=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),gm=["'"].concat(mm),pm=["%","/","?",";","#"].concat(gm),bm=["/","?","#"],km=/^[+a-z0-9A-Z_-]{0,63}$/,fm=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ym={javascript:!0,"javascript:":!0},vm={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function wm(e,a){if(e&&e instanceof cm)return e;const r=new cm;return r.parse(e,a),r}cm.prototype.parse=function(e,a){let r,n,i,t=e;if(t=t.trim(),!a&&1===e.split("#").length){const e=hm.exec(t);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=dm.exec(t);if(o&&(o=o[0],r=o.toLowerCase(),this.protocol=o,t=t.substr(o.length)),(a||o||t.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===t.substr(0,2),!i||o&&ym[o]||(t=t.substr(2),this.slashes=!0)),!ym[o]&&(i||o&&!vm[o])){let e,a,r=-1;for(let e=0;e<bm.length;e++)n=t.indexOf(bm[e]),-1!==n&&(-1===r||n<r)&&(r=n);a=-1===r?t.lastIndexOf("@"):t.lastIndexOf("@",r),-1!==a&&(e=t.slice(0,a),t=t.slice(a+1),this.auth=e),r=-1;for(let e=0;e<pm.length;e++)n=t.indexOf(pm[e]),-1!==n&&(-1===r||n<r)&&(r=n);-1===r&&(r=t.length),":"===t[r-1]&&r--;const i=t.slice(0,r);t=t.slice(r),this.parseHost(i),this.hostname=this.hostname||"";const o="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!o){const e=this.hostname.split(/\./);for(let a=0,r=e.length;a<r;a++){const r=e[a];if(r&&!r.match(km)){let n="";for(let e=0,a=r.length;e<a;e++)r.charCodeAt(e)>127?n+="x":n+=r[e];if(!n.match(km)){const n=e.slice(0,a),i=e.slice(a+1),o=r.match(fm);o&&(n.push(o[1]),i.unshift(o[2])),i.length&&(t=i.join(".")+t),this.hostname=n.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=t.indexOf("#");-1!==s&&(this.hash=t.substr(s),t=t.slice(0,s));const l=t.indexOf("?");return-1!==l&&(this.search=t.substr(l),t=t.slice(0,l)),t&&(this.pathname=t),vm[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},cm.prototype.parseHost=function(e){let a=um.exec(e);a&&(a=a[0],":"!==a&&(this.port=a.substr(1)),e=e.substr(0,e.length-a.length)),e&&(this.hostname=e)};var zm,jm=Object.freeze({__proto__:null,decode:tm,encode:sm,format:lm,parse:wm}),xm=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qm=/[\0-\x1F\x7F-\x9F]/,$m=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Cm=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,_m=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Sm=Object.freeze({__proto__:null,Any:xm,Cc:qm,Cf:/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P:$m,S:Cm,Z:_m}),Em=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),Am=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));const Om=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Dm=null!==(zm=String.fromCodePoint)&&void 0!==zm?zm:function(e){let a="";return e>65535&&(e-=65536,a+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),a+=String.fromCharCode(e),a};var Mm;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(Mm||(Mm={}));var Fm,Tm,Nm;function Im(e){return e>=Mm.ZERO&&e<=Mm.NINE}function Pm(e){return e>=Mm.UPPER_A&&e<=Mm.UPPER_F||e>=Mm.LOWER_A&&e<=Mm.LOWER_F}function Rm(e){return e===Mm.EQUALS||function(e){return e>=Mm.UPPER_A&&e<=Mm.UPPER_Z||e>=Mm.LOWER_A&&e<=Mm.LOWER_Z||Im(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(Fm||(Fm={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(Tm||(Tm={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(Nm||(Nm={}));class Lm{constructor(e,a,r){this.decodeTree=e,this.emitCodePoint=a,this.errors=r,this.state=Tm.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Nm.Strict}startEntity(e){this.decodeMode=e,this.state=Tm.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,a){switch(this.state){case Tm.EntityStart:return e.charCodeAt(a)===Mm.NUM?(this.state=Tm.NumericStart,this.consumed+=1,this.stateNumericStart(e,a+1)):(this.state=Tm.NamedEntity,this.stateNamedEntity(e,a));case Tm.NumericStart:return this.stateNumericStart(e,a);case Tm.NumericDecimal:return this.stateNumericDecimal(e,a);case Tm.NumericHex:return this.stateNumericHex(e,a);case Tm.NamedEntity:return this.stateNamedEntity(e,a)}}stateNumericStart(e,a){return a>=e.length?-1:(32|e.charCodeAt(a))===Mm.LOWER_X?(this.state=Tm.NumericHex,this.consumed+=1,this.stateNumericHex(e,a+1)):(this.state=Tm.NumericDecimal,this.stateNumericDecimal(e,a))}addToNumericResult(e,a,r,n){if(a!==r){const i=r-a;this.result=this.result*Math.pow(n,i)+parseInt(e.substr(a,i),n),this.consumed+=i}}stateNumericHex(e,a){const r=a;for(;a<e.length;){const n=e.charCodeAt(a);if(!Im(n)&&!Pm(n))return this.addToNumericResult(e,r,a,16),this.emitNumericEntity(n,3);a+=1}return this.addToNumericResult(e,r,a,16),-1}stateNumericDecimal(e,a){const r=a;for(;a<e.length;){const n=e.charCodeAt(a);if(!Im(n))return this.addToNumericResult(e,r,a,10),this.emitNumericEntity(n,2);a+=1}return this.addToNumericResult(e,r,a,10),-1}emitNumericEntity(e,a){var r;if(this.consumed<=a)return null===(r=this.errors)||void 0===r||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Mm.SEMI)this.consumed+=1;else if(this.decodeMode===Nm.Strict)return 0;return this.emitCodePoint(function(e){var a;return e>=55296&&e<=57343||e>1114111?65533:null!==(a=Om.get(e))&&void 0!==a?a:e}(this.result),this.consumed),this.errors&&(e!==Mm.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,a){const{decodeTree:r}=this;let n=r[this.treeIndex],i=(n&Fm.VALUE_LENGTH)>>14;for(;a<e.length;a++,this.excess++){const t=e.charCodeAt(a);if(this.treeIndex=Vm(r,n,this.treeIndex+Math.max(1,i),t),this.treeIndex<0)return 0===this.result||this.decodeMode===Nm.Attribute&&(0===i||Rm(t))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],i=(n&Fm.VALUE_LENGTH)>>14,0!==i){if(t===Mm.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Nm.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:a,decodeTree:r}=this,n=(r[a]&Fm.VALUE_LENGTH)>>14;return this.emitNamedEntityData(a,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,a,r){const{decodeTree:n}=this;return this.emitCodePoint(1===a?n[e]&~Fm.VALUE_LENGTH:n[e+1],r),3===a&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case Tm.NamedEntity:return 0===this.result||this.decodeMode===Nm.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Tm.NumericDecimal:return this.emitNumericEntity(0,2);case Tm.NumericHex:return this.emitNumericEntity(0,3);case Tm.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Tm.EntityStart:return 0}}}function Bm(e){let a="";const r=new Lm(e,(e=>a+=Dm(e)));return function(e,n){let i=0,t=0;for(;(t=e.indexOf("&",t))>=0;){a+=e.slice(i,t),r.startEntity(n);const o=r.write(e,t+1);if(o<0){i=t+r.end();break}i=t+o,t=0===o?i+1:i}const o=a+e.slice(i);return a="",o}}function Vm(e,a,r,n){const i=(a&Fm.BRANCH_LENGTH)>>7,t=a&Fm.JUMP_TABLE;if(0===i)return 0!==t&&n===t?r:-1;if(t){const a=n-t;return a<0||a>=i?-1:e[r+a]-1}let o=r,s=o+i-1;for(;o<=s;){const a=o+s>>>1,r=e[a];if(r<n)o=a+1;else{if(!(r>n))return e[a+i];s=a-1}}return-1}const Um=Bm(Em);function Hm(e,a=Nm.Legacy){return Um(e,a)}function Gm(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}Bm(Am);const Wm=Object.prototype.hasOwnProperty;function Zm(e){return Array.prototype.slice.call(arguments,1).forEach((function(a){if(a){if("object"!=typeof a)throw new TypeError(a+"must be object");Object.keys(a).forEach((function(r){e[r]=a[r]}))}})),e}function Km(e,a,r){return[].concat(e.slice(0,a),r,e.slice(a+1))}function Jm(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function Ym(e){if(e>65535){const a=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(a,r)}return String.fromCharCode(e)}const Xm=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Qm=new RegExp(Xm.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),eg=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ag(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Qm,(function(e,a,r){return a||function(e,a){if(35===a.charCodeAt(0)&&eg.test(a)){const r="x"===a[1].toLowerCase()?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return Jm(r)?Ym(r):e}const r=Hm(e);return r!==e?r:e}(e,r)}))}const rg=/[&<>"]/,ng=/[&<>"]/g,ig={"&":"&","<":"<",">":">",'"':"""};function tg(e){return ig[e]}function og(e){return rg.test(e)?e.replace(ng,tg):e}const sg=/[.?*+^$[\]\\(){}|-]/g;function lg(e){switch(e){case 9:case 32:return!0}return!1}function cg(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function dg(e){return $m.test(e)||Cm.test(e)}function ug(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function hg(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const mg={mdurl:jm,ucmicro:Sm};var gg=Object.freeze({__proto__:null,arrayReplaceAt:Km,assign:Zm,escapeHtml:og,escapeRE:function(e){return e.replace(sg,"\\$&")},fromCodePoint:Ym,has:function(e,a){return Wm.call(e,a)},isMdAsciiPunct:ug,isPunctChar:dg,isSpace:lg,isString:Gm,isValidEntityCode:Jm,isWhiteSpace:cg,lib:mg,normalizeReference:hg,unescapeAll:ag,unescapeMd:function(e){return e.indexOf("\\")<0?e:e.replace(Xm,"$1")}});var pg=Object.freeze({__proto__:null,parseLinkDestination:function(e,a,r){let n,i=a;const t={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<r;){if(n=e.charCodeAt(i),10===n)return t;if(60===n)return t;if(62===n)return t.pos=i+1,t.str=ag(e.slice(a+1,i)),t.ok=!0,t;92===n&&i+1<r?i+=2:i++}return t}let o=0;for(;i<r&&(n=e.charCodeAt(i),32!==n)&&!(n<32||127===n);)if(92===n&&i+1<r){if(32===e.charCodeAt(i+1))break;i+=2}else{if(40===n&&(o++,o>32))return t;if(41===n){if(0===o)break;o--}i++}return a===i||0!==o||(t.str=ag(e.slice(a,i)),t.pos=i,t.ok=!0),t},parseLinkLabel:function(e,a,r){let n,i,t,o;const s=e.posMax,l=e.pos;for(e.pos=a+1,n=1;e.pos<s;){if(t=e.src.charCodeAt(e.pos),93===t&&(n--,0===n)){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===t)if(o===e.pos-1)n++;else if(r)return e.pos=l,-1}let c=-1;return i&&(c=e.pos),e.pos=l,c},parseLinkTitle:function(e,a,r,n){let i,t=a;const o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(t>=r)return o;let n=e.charCodeAt(t);if(34!==n&&39!==n&&40!==n)return o;a++,t++,40===n&&(n=41),o.marker=n}for(;t<r;){if(i=e.charCodeAt(t),i===o.marker)return o.pos=t+1,o.str+=ag(e.slice(a,t)),o.ok=!0,o;if(40===i&&41===o.marker)return o;92===i&&t+1<r&&t++,t++}return o.can_continue=!0,o.str+=ag(e.slice(a,t)),o}});const bg={};function kg(){this.rules=Zm({},bg)}function fg(){this.__rules__=[],this.__cache__=null}function yg(e,a,r){this.type=e,this.tag=a,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}function vg(e,a,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=a}bg.code_inline=function(e,a,r,n,i){const t=e[a];return"<code"+i.renderAttrs(t)+">"+og(t.content)+"</code>"},bg.code_block=function(e,a,r,n,i){const t=e[a];return"<pre"+i.renderAttrs(t)+"><code>"+og(e[a].content)+"</code></pre>\n"},bg.fence=function(e,a,r,n,i){const t=e[a],o=t.info?ag(t.info).trim():"";let s,l="",c="";if(o){const e=o.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(s=r.highlight&&r.highlight(t.content,l,c)||og(t.content),0===s.indexOf("<pre"))return s+"\n";if(o){const e=t.attrIndex("class"),a=t.attrs?t.attrs.slice():[];e<0?a.push(["class",r.langPrefix+l]):(a[e]=a[e].slice(),a[e][1]+=" "+r.langPrefix+l);const n={attrs:a};return`<pre><code${i.renderAttrs(n)}>${s}</code></pre>\n`}return`<pre><code${i.renderAttrs(t)}>${s}</code></pre>\n`},bg.image=function(e,a,r,n,i){const t=e[a];return t.attrs[t.attrIndex("alt")][1]=i.renderInlineAsText(t.children,r,n),i.renderToken(e,a,r)},bg.hardbreak=function(e,a,r){return r.xhtmlOut?"<br />\n":"<br>\n"},bg.softbreak=function(e,a,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},bg.text=function(e,a){return og(e[a].content)},bg.html_block=function(e,a){return e[a].content},bg.html_inline=function(e,a){return e[a].content},kg.prototype.renderAttrs=function(e){let a,r,n;if(!e.attrs)return"";for(n="",a=0,r=e.attrs.length;a<r;a++)n+=" "+og(e.attrs[a][0])+'="'+og(e.attrs[a][1])+'"';return n},kg.prototype.renderToken=function(e,a,r){const n=e[a];let i="";if(n.hidden)return"";n.block&&-1!==n.nesting&&a&&e[a-1].hidden&&(i+="\n"),i+=(-1===n.nesting?"</":"<")+n.tag,i+=this.renderAttrs(n),0===n.nesting&&r.xhtmlOut&&(i+=" /");let t=!1;if(n.block&&(t=!0,1===n.nesting&&a+1<e.length)){const r=e[a+1];("inline"===r.type||r.hidden||-1===r.nesting&&r.tag===n.tag)&&(t=!1)}return i+=t?">\n":">",i},kg.prototype.renderInline=function(e,a,r){let n="";const i=this.rules;for(let t=0,o=e.length;t<o;t++){const o=e[t].type;void 0!==i[o]?n+=i[o](e,t,a,r,this):n+=this.renderToken(e,t,a)}return n},kg.prototype.renderInlineAsText=function(e,a,r){let n="";for(let i=0,t=e.length;i<t;i++)switch(e[i].type){case"text":case"html_inline":case"html_block":n+=e[i].content;break;case"image":n+=this.renderInlineAsText(e[i].children,a,r);break;case"softbreak":case"hardbreak":n+="\n"}return n},kg.prototype.render=function(e,a,r){let n="";const i=this.rules;for(let t=0,o=e.length;t<o;t++){const o=e[t].type;"inline"===o?n+=this.renderInline(e[t].children,a,r):void 0!==i[o]?n+=i[o](e,t,a,r,this):n+=this.renderToken(e,t,a,r)}return n},fg.prototype.__find__=function(e){for(let a=0;a<this.__rules__.length;a++)if(this.__rules__[a].name===e)return a;return-1},fg.prototype.__compile__=function(){const e=this,a=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){a.indexOf(e)<0&&a.push(e)}))})),e.__cache__={},a.forEach((function(a){e.__cache__[a]=[],e.__rules__.forEach((function(r){r.enabled&&(a&&r.alt.indexOf(a)<0||e.__cache__[a].push(r.fn))}))}))},fg.prototype.at=function(e,a,r){const n=this.__find__(e),i=r||{};if(-1===n)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=a,this.__rules__[n].alt=i.alt||[],this.__cache__=null},fg.prototype.before=function(e,a,r,n){const i=this.__find__(e),t=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:a,enabled:!0,fn:r,alt:t.alt||[]}),this.__cache__=null},fg.prototype.after=function(e,a,r,n){const i=this.__find__(e),t=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:a,enabled:!0,fn:r,alt:t.alt||[]}),this.__cache__=null},fg.prototype.push=function(e,a,r){const n=r||{};this.__rules__.push({name:e,enabled:!0,fn:a,alt:n.alt||[]}),this.__cache__=null},fg.prototype.enable=function(e,a){Array.isArray(e)||(e=[e]);const r=[];return e.forEach((function(e){const n=this.__find__(e);if(n<0){if(a)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!0,r.push(e)}),this),this.__cache__=null,r},fg.prototype.enableOnly=function(e,a){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,a)},fg.prototype.disable=function(e,a){Array.isArray(e)||(e=[e]);const r=[];return e.forEach((function(e){const n=this.__find__(e);if(n<0){if(a)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!1,r.push(e)}),this),this.__cache__=null,r},fg.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},yg.prototype.attrIndex=function(e){if(!this.attrs)return-1;const a=this.attrs;for(let r=0,n=a.length;r<n;r++)if(a[r][0]===e)return r;return-1},yg.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},yg.prototype.attrSet=function(e,a){const r=this.attrIndex(e),n=[e,a];r<0?this.attrPush(n):this.attrs[r]=n},yg.prototype.attrGet=function(e){const a=this.attrIndex(e);let r=null;return a>=0&&(r=this.attrs[a][1]),r},yg.prototype.attrJoin=function(e,a){const r=this.attrIndex(e);r<0?this.attrPush([e,a]):this.attrs[r][1]=this.attrs[r][1]+" "+a},vg.prototype.Token=yg;const wg=/\r\n?|\n/g,zg=/\0/g;function jg(e){return/^<\/a\s*>/i.test(e)}const xg=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,qg=/\((c|tm|r)\)/i,$g=/\((c|tm|r)\)/gi,Cg={c:"©",r:"®",tm:"™"};function _g(e,a){return Cg[a.toLowerCase()]}function Sg(e){let a=0;for(let r=e.length-1;r>=0;r--){const n=e[r];"text"!==n.type||a||(n.content=n.content.replace($g,_g)),"link_open"===n.type&&"auto"===n.info&&a--,"link_close"===n.type&&"auto"===n.info&&a++}}function Eg(e){let a=0;for(let r=e.length-1;r>=0;r--){const n=e[r];"text"!==n.type||a||xg.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&a--,"link_close"===n.type&&"auto"===n.info&&a++}}const Ag=/['"]/,Og=/['"]/g;function Dg(e,a,r){return e.slice(0,a)+r+e.slice(a+1)}function Mg(e,a){let r;const n=[];for(let i=0;i<e.length;i++){const t=e[i],o=e[i].level;for(r=n.length-1;r>=0&&!(n[r].level<=o);r--);if(n.length=r+1,"text"!==t.type)continue;let s=t.content,l=0,c=s.length;e:for(;l<c;){Og.lastIndex=l;const d=Og.exec(s);if(!d)break;let u=!0,h=!0;l=d.index+1;const m="'"===d[0];let g=32;if(d.index-1>=0)g=s.charCodeAt(d.index-1);else for(r=i-1;r>=0&&("softbreak"!==e[r].type&&"hardbreak"!==e[r].type);r--)if(e[r].content){g=e[r].content.charCodeAt(e[r].content.length-1);break}let p=32;if(l<c)p=s.charCodeAt(l);else for(r=i+1;r<e.length&&("softbreak"!==e[r].type&&"hardbreak"!==e[r].type);r++)if(e[r].content){p=e[r].content.charCodeAt(0);break}const b=ug(g)||dg(String.fromCharCode(g)),k=ug(p)||dg(String.fromCharCode(p)),f=cg(g),y=cg(p);if(y?u=!1:k&&(f||b||(u=!1)),f?h=!1:b&&(y||k||(h=!1)),34===p&&'"'===d[0]&&g>=48&&g<=57&&(h=u=!1),u&&h&&(u=b,h=k),u||h){if(h)for(r=n.length-1;r>=0;r--){let u=n[r];if(n[r].level<o)break;if(u.single===m&&n[r].level===o){let o,h;u=n[r],m?(o=a.md.options.quotes[2],h=a.md.options.quotes[3]):(o=a.md.options.quotes[0],h=a.md.options.quotes[1]),t.content=Dg(t.content,d.index,h),e[u.token].content=Dg(e[u.token].content,u.pos,o),l+=h.length-1,u.token===i&&(l+=o.length-1),s=t.content,c=s.length,n.length=r;continue e}}u?n.push({token:i,pos:d.index,single:m,level:o}):h&&m&&(t.content=Dg(t.content,d.index,"’"))}else m&&(t.content=Dg(t.content,d.index,"’"))}}}const Fg=[["normalize",function(e){let a;a=e.src.replace(wg,"\n"),a=a.replace(zg,"�"),e.src=a}],["block",function(e){let a;e.inlineMode?(a=new e.Token("inline","",0),a.content=e.src,a.map=[0,1],a.children=[],e.tokens.push(a)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){const a=e.tokens;for(let r=0,n=a.length;r<n;r++){const n=a[r];"inline"===n.type&&e.md.inline.parse(n.content,e.md,e.env,n.children)}}],["linkify",function(e){const a=e.tokens;var r;if(e.md.options.linkify)for(let n=0,i=a.length;n<i;n++){if("inline"!==a[n].type||!e.md.linkify.pretest(a[n].content))continue;let i=a[n].children,t=0;for(let o=i.length-1;o>=0;o--){const s=i[o];if("link_close"!==s.type){if("html_inline"===s.type&&(r=s.content,/^<a[>\s]/i.test(r)&&t>0&&t--,jg(s.content)&&t++),!(t>0)&&"text"===s.type&&e.md.linkify.test(s.content)){const r=s.content;let t=e.md.linkify.match(r);const l=[];let c=s.level,d=0;t.length>0&&0===t[0].index&&o>0&&"text_special"===i[o-1].type&&(t=t.slice(1));for(let a=0;a<t.length;a++){const n=t[a].url,i=e.md.normalizeLink(n);if(!e.md.validateLink(i))continue;let o=t[a].text;o=t[a].schema?"mailto:"!==t[a].schema||/^mailto:/i.test(o)?e.md.normalizeLinkText(o):e.md.normalizeLinkText("mailto:"+o).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+o).replace(/^http:\/\//,"");const s=t[a].index;if(s>d){const a=new e.Token("text","",0);a.content=r.slice(d,s),a.level=c,l.push(a)}const u=new e.Token("link_open","a",1);u.attrs=[["href",i]],u.level=c++,u.markup="linkify",u.info="auto",l.push(u);const h=new e.Token("text","",0);h.content=o,h.level=c,l.push(h);const m=new e.Token("link_close","a",-1);m.level=--c,m.markup="linkify",m.info="auto",l.push(m),d=t[a].lastIndex}if(d<r.length){const a=new e.Token("text","",0);a.content=r.slice(d),a.level=c,l.push(a)}a[n].children=i=Km(i,o,l)}}else for(o--;i[o].level!==s.level&&"link_open"!==i[o].type;)o--}}}],["replacements",function(e){let a;if(e.md.options.typographer)for(a=e.tokens.length-1;a>=0;a--)"inline"===e.tokens[a].type&&(qg.test(e.tokens[a].content)&&Sg(e.tokens[a].children),xg.test(e.tokens[a].content)&&Eg(e.tokens[a].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let a=e.tokens.length-1;a>=0;a--)"inline"===e.tokens[a].type&&Ag.test(e.tokens[a].content)&&Mg(e.tokens[a].children,e)}],["text_join",function(e){let a,r;const n=e.tokens,i=n.length;for(let e=0;e<i;e++){if("inline"!==n[e].type)continue;const i=n[e].children,t=i.length;for(a=0;a<t;a++)"text_special"===i[a].type&&(i[a].type="text");for(a=r=0;a<t;a++)"text"===i[a].type&&a+1<t&&"text"===i[a+1].type?i[a+1].content=i[a].content+i[a+1].content:(a!==r&&(i[r]=i[a]),r++);a!==r&&(i.length=r)}}]];function Tg(){this.ruler=new fg;for(let e=0;e<Fg.length;e++)this.ruler.push(Fg[e][0],Fg[e][1])}function Ng(e,a,r,n){this.src=e,this.md=a,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const i=this.src;for(let e=0,a=0,r=0,n=0,t=i.length,o=!1;a<t;a++){const s=i.charCodeAt(a);if(!o){if(lg(s)){r++,9===s?n+=4-n%4:n++;continue}o=!0}10!==s&&a!==t-1||(10!==s&&a++,this.bMarks.push(e),this.eMarks.push(a),this.tShift.push(r),this.sCount.push(n),this.bsCount.push(0),o=!1,r=0,n=0,e=a+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Tg.prototype.process=function(e){const a=this.ruler.getRules("");for(let r=0,n=a.length;r<n;r++)a[r](e)},Tg.prototype.State=vg,Ng.prototype.push=function(e,a,r){const n=new yg(e,a,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},Ng.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Ng.prototype.skipEmptyLines=function(e){for(let a=this.lineMax;e<a&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Ng.prototype.skipSpaces=function(e){for(let a=this.src.length;e<a;e++){if(!lg(this.src.charCodeAt(e)))break}return e},Ng.prototype.skipSpacesBack=function(e,a){if(e<=a)return e;for(;e>a;)if(!lg(this.src.charCodeAt(--e)))return e+1;return e},Ng.prototype.skipChars=function(e,a){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===a;e++);return e},Ng.prototype.skipCharsBack=function(e,a,r){if(e<=r)return e;for(;e>r;)if(a!==this.src.charCodeAt(--e))return e+1;return e},Ng.prototype.getLines=function(e,a,r,n){if(e>=a)return"";const i=new Array(a-e);for(let t=0,o=e;o<a;o++,t++){let e=0;const s=this.bMarks[o];let l,c=s;for(l=o+1<a||n?this.eMarks[o]+1:this.eMarks[o];c<l&&e<r;){const a=this.src.charCodeAt(c);if(lg(a))9===a?e+=4-(e+this.bsCount[o])%4:e++;else{if(!(c-s<this.tShift[o]))break;e++}c++}i[t]=e>r?new Array(e-r+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return i.join("")},Ng.prototype.Token=yg;function Ig(e,a){const r=e.bMarks[a]+e.tShift[a],n=e.eMarks[a];return e.src.slice(r,n)}function Pg(e){const a=[],r=e.length;let n=0,i=e.charCodeAt(n),t=!1,o=0,s="";for(;n<r;)124===i&&(t?(s+=e.substring(o,n-1),o=n):(a.push(s+e.substring(o,n)),s="",o=n+1)),t=92===i,n++,i=e.charCodeAt(n);return a.push(s+e.substring(o)),a}function Rg(e,a){const r=e.eMarks[a];let n=e.bMarks[a]+e.tShift[a];const i=e.src.charCodeAt(n++);if(42!==i&&45!==i&&43!==i)return-1;if(n<r){if(!lg(e.src.charCodeAt(n)))return-1}return n}function Lg(e,a){const r=e.bMarks[a]+e.tShift[a],n=e.eMarks[a];let i=r;if(i+1>=n)return-1;let t=e.src.charCodeAt(i++);if(t<48||t>57)return-1;for(;;){if(i>=n)return-1;if(t=e.src.charCodeAt(i++),!(t>=48&&t<=57)){if(41===t||46===t)break;return-1}if(i-r>=10)return-1}return i<n&&(t=e.src.charCodeAt(i),!lg(t))?-1:i}const Bg="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Vg="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Ug=new RegExp("^(?:"+Bg+"|"+Vg+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),Hg=new RegExp("^(?:"+Bg+"|"+Vg+")"),Gg=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Hg.source+"\\s*$"),/^$/,!1]];const Wg=[["table",function(e,a,r,n){if(a+2>r)return!1;let i=a+1;if(e.sCount[i]<e.blkIndent)return!1;if(e.sCount[i]-e.blkIndent>=4)return!1;let t=e.bMarks[i]+e.tShift[i];if(t>=e.eMarks[i])return!1;const o=e.src.charCodeAt(t++);if(124!==o&&45!==o&&58!==o)return!1;if(t>=e.eMarks[i])return!1;const s=e.src.charCodeAt(t++);if(124!==s&&45!==s&&58!==s&&!lg(s))return!1;if(45===o&&lg(s))return!1;for(;t<e.eMarks[i];){const a=e.src.charCodeAt(t);if(124!==a&&45!==a&&58!==a&&!lg(a))return!1;t++}let l=Ig(e,a+1),c=l.split("|");const d=[];for(let e=0;e<c.length;e++){const a=c[e].trim();if(!a){if(0===e||e===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(a))return!1;58===a.charCodeAt(a.length-1)?d.push(58===a.charCodeAt(0)?"center":"right"):58===a.charCodeAt(0)?d.push("left"):d.push("")}if(l=Ig(e,a).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[a]-e.blkIndent>=4)return!1;c=Pg(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();const u=c.length;if(0===u||u!==d.length)return!1;if(n)return!0;const h=e.parentType;e.parentType="table";const m=e.md.block.ruler.getRules("blockquote"),g=[a,0];e.push("table_open","table",1).map=g,e.push("thead_open","thead",1).map=[a,a+1],e.push("tr_open","tr",1).map=[a,a+1];for(let a=0;a<c.length;a++){const r=e.push("th_open","th",1);d[a]&&(r.attrs=[["style","text-align:"+d[a]]]);const n=e.push("inline","",0);n.content=c[a].trim(),n.children=[],e.push("th_close","th",-1)}let p;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let b=0;for(i=a+2;i<r&&!(e.sCount[i]<e.blkIndent);i++){let n=!1;for(let a=0,t=m.length;a<t;a++)if(m[a](e,i,r,!0)){n=!0;break}if(n)break;if(l=Ig(e,i).trim(),!l)break;if(e.sCount[i]-e.blkIndent>=4)break;if(c=Pg(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),b+=u-c.length,b>65536)break;if(i===a+2){e.push("tbody_open","tbody",1).map=p=[a+2,0]}e.push("tr_open","tr",1).map=[i,i+1];for(let a=0;a<u;a++){const r=e.push("td_open","td",1);d[a]&&(r.attrs=[["style","text-align:"+d[a]]]);const n=e.push("inline","",0);n.content=c[a]?c[a].trim():"",n.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return p&&(e.push("tbody_close","tbody",-1),p[1]=i),e.push("table_close","table",-1),g[1]=i,e.parentType=h,e.line=i,!0},["paragraph","reference"]],["code",function(e,a,r){if(e.sCount[a]-e.blkIndent<4)return!1;let n=a+1,i=n;for(;n<r;)if(e.isEmpty(n))n++;else{if(!(e.sCount[n]-e.blkIndent>=4))break;n++,i=n}e.line=i;const t=e.push("code_block","code",0);return t.content=e.getLines(a,i,4+e.blkIndent,!1)+"\n",t.map=[a,e.line],!0}],["fence",function(e,a,r,n){let i=e.bMarks[a]+e.tShift[a],t=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(i+3>t)return!1;const o=e.src.charCodeAt(i);if(126!==o&&96!==o)return!1;let s=i;i=e.skipChars(i,o);let l=i-s;if(l<3)return!1;const c=e.src.slice(s,i),d=e.src.slice(i,t);if(96===o&&d.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let u=a,h=!1;for(;(u++,!(u>=r))&&(i=s=e.bMarks[u]+e.tShift[u],t=e.eMarks[u],!(i<t&&e.sCount[u]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[u]-e.blkIndent>=4||(i=e.skipChars(i,o),i-s<l||(i=e.skipSpaces(i),i<t)))){h=!0;break}l=e.sCount[a],e.line=u+(h?1:0);const m=e.push("fence","code",0);return m.info=d,m.content=e.getLines(a+1,u,l,!0),m.markup=c,m.map=[a,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,a,r,n){let i=e.bMarks[a]+e.tShift[a],t=e.eMarks[a];const o=e.lineMax;if(e.sCount[a]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(i))return!1;if(n)return!0;const s=[],l=[],c=[],d=[],u=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let m,g=!1;for(m=a;m<r;m++){const a=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],t=e.eMarks[m],i>=t)break;if(62===e.src.charCodeAt(i++)&&!a){let a,r,n=e.sCount[m]+1;32===e.src.charCodeAt(i)?(i++,n++,r=!1,a=!0):9===e.src.charCodeAt(i)?(a=!0,(e.bsCount[m]+n)%4==3?(i++,n++,r=!1):r=!0):a=!1;let o=n;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<t;){const a=e.src.charCodeAt(i);if(!lg(a))break;9===a?o+=4-(o+e.bsCount[m]+(r?1:0))%4:o++,i++}g=i>=t,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(a?1:0),c.push(e.sCount[m]),e.sCount[m]=o-n,d.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(g)break;let n=!1;for(let a=0,i=u.length;a<i;a++)if(u[a](e,m,r,!0)){n=!0;break}if(n){e.lineMax=m,0!==e.blkIndent&&(s.push(e.bMarks[m]),l.push(e.bsCount[m]),d.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),l.push(e.bsCount[m]),d.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]=-1}const p=e.blkIndent;e.blkIndent=0;const b=e.push("blockquote_open","blockquote",1);b.markup=">";const k=[a,0];b.map=k,e.md.block.tokenize(e,a,m),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=o,e.parentType=h,k[1]=e.line;for(let r=0;r<d.length;r++)e.bMarks[r+a]=s[r],e.tShift[r+a]=d[r],e.sCount[r+a]=c[r],e.bsCount[r+a]=l[r];return e.blkIndent=p,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,a,r,n){const i=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;let t=e.bMarks[a]+e.tShift[a];const o=e.src.charCodeAt(t++);if(42!==o&&45!==o&&95!==o)return!1;let s=1;for(;t<i;){const a=e.src.charCodeAt(t++);if(a!==o&&!lg(a))return!1;a===o&&s++}if(s<3)return!1;if(n)return!0;e.line=a+1;const l=e.push("hr","hr",0);return l.map=[a,e.line],l.markup=Array(s+1).join(String.fromCharCode(o)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,a,r,n){let i,t,o,s,l=a,c=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let d,u,h,m=!1;if(n&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(m=!0),(h=Lg(e,l))>=0){if(d=!0,o=e.bMarks[l]+e.tShift[l],u=Number(e.src.slice(o,h-1)),m&&1!==u)return!1}else{if(!((h=Rg(e,l))>=0))return!1;d=!1}if(m&&e.skipSpaces(h)>=e.eMarks[l])return!1;if(n)return!0;const g=e.src.charCodeAt(h-1),p=e.tokens.length;d?(s=e.push("ordered_list_open","ol",1),1!==u&&(s.attrs=[["start",u]])):s=e.push("bullet_list_open","ul",1);const b=[l,0];s.map=b,s.markup=String.fromCharCode(g);let k=!1;const f=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";l<r;){t=h,i=e.eMarks[l];const a=e.sCount[l]+h-(e.bMarks[l]+e.tShift[l]);let n=a;for(;t<i;){const a=e.src.charCodeAt(t);if(9===a)n+=4-(n+e.bsCount[l])%4;else{if(32!==a)break;n++}t++}const u=t;let m;m=u>=i?1:n-a,m>4&&(m=1);const p=a+m;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(g);const b=[l,0];s.map=b,d&&(s.info=e.src.slice(o,h-1));const y=e.tight,v=e.tShift[l],w=e.sCount[l],z=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=p,e.tight=!0,e.tShift[l]=u-e.bMarks[l],e.sCount[l]=n,u>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,l,r,!0),e.tight&&!k||(c=!1),k=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=z,e.tShift[l]=v,e.sCount[l]=w,e.tight=y,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(g),l=e.line,b[1]=l,l>=r)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;let j=!1;for(let a=0,n=f.length;a<n;a++)if(f[a](e,l,r,!0)){j=!0;break}if(j)break;if(d){if(h=Lg(e,l),h<0)break;o=e.bMarks[l]+e.tShift[l]}else if(h=Rg(e,l),h<0)break;if(g!==e.src.charCodeAt(h-1))break}return s=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(g),b[1]=l,e.line=l,e.parentType=y,c&&function(e,a){const r=e.level+2;for(let n=a+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,p),!0},["paragraph","reference","blockquote"]],["reference",function(e,a,r,n){let i=e.bMarks[a]+e.tShift[a],t=e.eMarks[a],o=a+1;if(e.sCount[a]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(i))return!1;function s(a){const r=e.lineMax;if(a>=r||e.isEmpty(a))return null;let n=!1;if(e.sCount[a]-e.blkIndent>3&&(n=!0),e.sCount[a]<0&&(n=!0),!n){const n=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let t=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](e,a,r,!0)){t=!0;break}if(e.parentType=i,t)return null}const i=e.bMarks[a]+e.tShift[a],t=e.eMarks[a];return e.src.slice(i,t+1)}let l=e.src.slice(i,t+1);t=l.length;let c=-1;for(i=1;i<t;i++){const e=l.charCodeAt(i);if(91===e)return!1;if(93===e){c=i;break}if(10===e){const e=s(o);null!==e&&(l+=e,t=l.length,o++)}else if(92===e&&(i++,i<t&&10===l.charCodeAt(i))){const e=s(o);null!==e&&(l+=e,t=l.length,o++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(i=c+2;i<t;i++){const e=l.charCodeAt(i);if(10===e){const e=s(o);null!==e&&(l+=e,t=l.length,o++)}else if(!lg(e))break}const d=e.md.helpers.parseLinkDestination(l,i,t);if(!d.ok)return!1;const u=e.md.normalizeLink(d.str);if(!e.md.validateLink(u))return!1;i=d.pos;const h=i,m=o,g=i;for(;i<t;i++){const e=l.charCodeAt(i);if(10===e){const e=s(o);null!==e&&(l+=e,t=l.length,o++)}else if(!lg(e))break}let p,b=e.md.helpers.parseLinkTitle(l,i,t);for(;b.can_continue;){const a=s(o);if(null===a)break;l+=a,i=t,t=l.length,o++,b=e.md.helpers.parseLinkTitle(l,i,t,b)}for(i<t&&g!==i&&b.ok?(p=b.str,i=b.pos):(p="",i=h,o=m);i<t;){if(!lg(l.charCodeAt(i)))break;i++}if(i<t&&10!==l.charCodeAt(i)&&p)for(p="",i=h,o=m;i<t;){if(!lg(l.charCodeAt(i)))break;i++}if(i<t&&10!==l.charCodeAt(i))return!1;const k=hg(l.slice(1,c));return!!k&&(n||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[k]&&(e.env.references[k]={title:p,href:u}),e.line=o),!0)}],["html_block",function(e,a,r,n){let i=e.bMarks[a]+e.tShift[a],t=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(i))return!1;let o=e.src.slice(i,t),s=0;for(;s<Gg.length&&!Gg[s][0].test(o);s++);if(s===Gg.length)return!1;if(n)return Gg[s][2];let l=a+1;if(!Gg[s][1].test(o))for(;l<r&&!(e.sCount[l]<e.blkIndent);l++)if(i=e.bMarks[l]+e.tShift[l],t=e.eMarks[l],o=e.src.slice(i,t),Gg[s][1].test(o)){0!==o.length&&l++;break}e.line=l;const c=e.push("html_block","",0);return c.map=[a,l],c.content=e.getLines(a,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,a,r,n){let i=e.bMarks[a]+e.tShift[a],t=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(35!==o||i>=t)return!1;let s=1;for(o=e.src.charCodeAt(++i);35===o&&i<t&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<t&&!lg(o))return!1;if(n)return!0;t=e.skipSpacesBack(t,i);const l=e.skipCharsBack(t,35,i);l>i&&lg(e.src.charCodeAt(l-1))&&(t=l),e.line=a+1;const c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[a,e.line];const d=e.push("inline","",0);return d.content=e.src.slice(i,t).trim(),d.map=[a,e.line],d.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,a,r){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[a]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let t,o=0,s=a+1;for(;s<r&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let a=e.bMarks[s]+e.tShift[s];const r=e.eMarks[s];if(a<r&&(t=e.src.charCodeAt(a),(45===t||61===t)&&(a=e.skipChars(a,t),a=e.skipSpaces(a),a>=r))){o=61===t?1:2;break}}if(e.sCount[s]<0)continue;let a=!1;for(let i=0,t=n.length;i<t;i++)if(n[i](e,s,r,!0)){a=!0;break}if(a)break}if(!o)return!1;const l=e.getLines(a,s,e.blkIndent,!1).trim();e.line=s+1;const c=e.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(t),c.map=[a,e.line];const d=e.push("inline","",0);return d.content=l,d.map=[a,e.line-1],d.children=[],e.push("heading_close","h"+String(o),-1).markup=String.fromCharCode(t),e.parentType=i,!0}],["paragraph",function(e,a,r){const n=e.md.block.ruler.getRules("paragraph"),i=e.parentType;let t=a+1;for(e.parentType="paragraph";t<r&&!e.isEmpty(t);t++){if(e.sCount[t]-e.blkIndent>3)continue;if(e.sCount[t]<0)continue;let a=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](e,t,r,!0)){a=!0;break}if(a)break}const o=e.getLines(a,t,e.blkIndent,!1).trim();e.line=t,e.push("paragraph_open","p",1).map=[a,e.line];const s=e.push("inline","",0);return s.content=o,s.map=[a,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function Zg(){this.ruler=new fg;for(let e=0;e<Wg.length;e++)this.ruler.push(Wg[e][0],Wg[e][1],{alt:(Wg[e][2]||[]).slice()})}function Kg(e,a,r,n){this.src=e,this.env=r,this.md=a,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}function Jg(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}Zg.prototype.tokenize=function(e,a,r){const n=this.ruler.getRules(""),i=n.length,t=e.md.options.maxNesting;let o=a,s=!1;for(;o<r&&(e.line=o=e.skipEmptyLines(o),!(o>=r))&&!(e.sCount[o]<e.blkIndent);){if(e.level>=t){e.line=r;break}const a=e.line;let l=!1;for(let t=0;t<i;t++)if(l=n[t](e,o,r,!1),l){if(a>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<r&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},Zg.prototype.parse=function(e,a,r,n){if(!e)return;const i=new this.State(e,a,r,n);this.tokenize(i,i.line,i.lineMax)},Zg.prototype.State=Ng,Kg.prototype.pushPending=function(){const e=new yg("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Kg.prototype.push=function(e,a,r){this.pending&&this.pushPending();const n=new yg(e,a,r);let i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n},Kg.prototype.scanDelims=function(e,a){const r=this.posMax,n=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let t=e;for(;t<r&&this.src.charCodeAt(t)===n;)t++;const o=t-e,s=t<r?this.src.charCodeAt(t):32,l=ug(i)||dg(String.fromCharCode(i)),c=ug(s)||dg(String.fromCharCode(s)),d=cg(i),u=cg(s),h=!u&&(!c||d||l),m=!d&&(!l||u||c);return{can_open:h&&(a||!m||l),can_close:m&&(a||!h||c),length:o}},Kg.prototype.Token=yg;const Yg=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;const Xg=[];for(let e=0;e<256;e++)Xg.push(0);function Qg(e,a){let r;const n=[],i=a.length;for(let t=0;t<i;t++){const i=a[t];if(126!==i.marker)continue;if(-1===i.end)continue;const o=a[i.end];r=e.tokens[i.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=e.tokens[o.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&n.push(o.token-1)}for(;n.length;){const a=n.pop();let i=a+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;i--,a!==i&&(r=e.tokens[i],e.tokens[i]=e.tokens[a],e.tokens[a]=r)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){Xg[e.charCodeAt(0)]=1}));var ep={tokenize:function(e,a){const r=e.pos,n=e.src.charCodeAt(r);if(a)return!1;if(126!==n)return!1;const i=e.scanDelims(e.pos,!0);let t=i.length;const o=String.fromCharCode(n);if(t<2)return!1;let s;t%2&&(s=e.push("text","",0),s.content=o,t--);for(let a=0;a<t;a+=2)s=e.push("text","",0),s.content=o+o,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},postProcess:function(e){const a=e.tokens_meta,r=e.tokens_meta.length;Qg(e,e.delimiters);for(let n=0;n<r;n++)a[n]&&a[n].delimiters&&Qg(e,a[n].delimiters)}};function ap(e,a){for(let r=a.length-1;r>=0;r--){const n=a[r];if(95!==n.marker&&42!==n.marker)continue;if(-1===n.end)continue;const i=a[n.end],t=r>0&&a[r-1].end===n.end+1&&a[r-1].marker===n.marker&&a[r-1].token===n.token-1&&a[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=t?"strong_open":"em_open",s.tag=t?"strong":"em",s.nesting=1,s.markup=t?o+o:o,s.content="";const l=e.tokens[i.token];l.type=t?"strong_close":"em_close",l.tag=t?"strong":"em",l.nesting=-1,l.markup=t?o+o:o,l.content="",t&&(e.tokens[a[r-1].token].content="",e.tokens[a[n.end+1].token].content="",r--)}}var rp={tokenize:function(e,a){const r=e.pos,n=e.src.charCodeAt(r);if(a)return!1;if(95!==n&&42!==n)return!1;const i=e.scanDelims(e.pos,42===n);for(let a=0;a<i.length;a++){e.push("text","",0).content=String.fromCharCode(n),e.delimiters.push({marker:n,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0},postProcess:function(e){const a=e.tokens_meta,r=e.tokens_meta.length;ap(e,e.delimiters);for(let n=0;n<r;n++)a[n]&&a[n].delimiters&&ap(e,a[n].delimiters)}};const np=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,ip=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;const tp=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,op=/^&([a-z][a-z0-9]{1,31});/i;function sp(e){const a={},r=e.length;if(!r)return;let n=0,i=-2;const t=[];for(let o=0;o<r;o++){const r=e[o];if(t.push(0),e[n].marker===r.marker&&i===r.token-1||(n=o),i=r.token,r.length=r.length||0,!r.close)continue;a.hasOwnProperty(r.marker)||(a[r.marker]=[-1,-1,-1,-1,-1,-1]);const s=a[r.marker][(r.open?3:0)+r.length%3];let l=n-t[n]-1,c=l;for(;l>s;l-=t[l]+1){const a=e[l];if(a.marker===r.marker&&(a.open&&a.end<0)){let n=!1;if((a.close||r.open)&&(a.length+r.length)%3==0&&(a.length%3==0&&r.length%3==0||(n=!0)),!n){const n=l>0&&!e[l-1].open?t[l-1]+1:0;t[o]=o-l+n,t[l]=n,r.open=!1,a.end=o,a.close=!1,c=-1,i=-2;break}}}-1!==c&&(a[r.marker][(r.open?3:0)+(r.length||0)%3]=c)}}const lp=[["text",function(e,a){let r=e.pos;for(;r<e.posMax&&!Jg(e.src.charCodeAt(r));)r++;return r!==e.pos&&(a||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}],["linkify",function(e,a){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const r=e.pos;if(r+3>e.posMax)return!1;if(58!==e.src.charCodeAt(r))return!1;if(47!==e.src.charCodeAt(r+1))return!1;if(47!==e.src.charCodeAt(r+2))return!1;const n=e.pending.match(Yg);if(!n)return!1;const i=n[1],t=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!t)return!1;let o=t.url;if(o.length<=i.length)return!1;o=o.replace(/\*+$/,"");const s=e.md.normalizeLink(o);if(!e.md.validateLink(s))return!1;if(!a){e.pending=e.pending.slice(0,-i.length);const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="linkify",a.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(o);const r=e.push("link_close","a",-1);r.markup="linkify",r.info="auto"}return e.pos+=o.length-i.length,!0}],["newline",function(e,a){let r=e.pos;if(10!==e.src.charCodeAt(r))return!1;const n=e.pending.length-1,i=e.posMax;if(!a)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){let a=n-1;for(;a>=1&&32===e.pending.charCodeAt(a-1);)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<i&&lg(e.src.charCodeAt(r));)r++;return e.pos=r,!0}],["escape",function(e,a){let r=e.pos;const n=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(r++,r>=n)return!1;let i=e.src.charCodeAt(r);if(10===i){for(a||e.push("hardbreak","br",0),r++;r<n&&(i=e.src.charCodeAt(r),lg(i));)r++;return e.pos=r,!0}let t=e.src[r];if(i>=55296&&i<=56319&&r+1<n){const a=e.src.charCodeAt(r+1);a>=56320&&a<=57343&&(t+=e.src[r+1],r++)}const o="\\"+t;if(!a){const a=e.push("text_special","",0);i<256&&0!==Xg[i]?a.content=t:a.content=o,a.markup=o,a.info="escape"}return e.pos=r+1,!0}],["backticks",function(e,a){let r=e.pos;if(96!==e.src.charCodeAt(r))return!1;const n=r;r++;const i=e.posMax;for(;r<i&&96===e.src.charCodeAt(r);)r++;const t=e.src.slice(n,r),o=t.length;if(e.backticksScanned&&(e.backticks[o]||0)<=n)return a||(e.pending+=t),e.pos+=o,!0;let s,l=r;for(;-1!==(s=e.src.indexOf("`",l));){for(l=s+1;l<i&&96===e.src.charCodeAt(l);)l++;const n=l-s;if(n===o){if(!a){const a=e.push("code_inline","code",0);a.markup=t,a.content=e.src.slice(r,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[n]=s}return e.backticksScanned=!0,a||(e.pending+=t),e.pos+=o,!0}],["strikethrough",ep.tokenize],["emphasis",rp.tokenize],["link",function(e,a){let r,n,i,t,o="",s="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const d=e.pos,u=e.posMax,h=e.pos+1,m=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(m<0)return!1;let g=m+1;if(g<u&&40===e.src.charCodeAt(g)){for(c=!1,g++;g<u&&(r=e.src.charCodeAt(g),lg(r)||10===r);g++);if(g>=u)return!1;if(l=g,i=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?g=i.pos:o="",l=g;g<u&&(r=e.src.charCodeAt(g),lg(r)||10===r);g++);if(i=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<u&&l!==g&&i.ok)for(s=i.str,g=i.pos;g<u&&(r=e.src.charCodeAt(g),lg(r)||10===r);g++);}(g>=u||41!==e.src.charCodeAt(g))&&(c=!0),g++}if(c){if(void 0===e.env.references)return!1;if(g<u&&91===e.src.charCodeAt(g)?(l=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?n=e.src.slice(l,g++):g=m+1):g=m+1,n||(n=e.src.slice(h,m)),t=e.env.references[hg(n)],!t)return e.pos=d,!1;o=t.href,s=t.title}if(!a){e.pos=h,e.posMax=m;const a=[["href",o]];e.push("link_open","a",1).attrs=a,s&&a.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=g,e.posMax=u,!0}],["image",function(e,a){let r,n,i,t,o,s,l,c,d="";const u=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const m=e.pos+2,g=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(g<0)return!1;if(t=g+1,t<h&&40===e.src.charCodeAt(t)){for(t++;t<h&&(r=e.src.charCodeAt(t),lg(r)||10===r);t++);if(t>=h)return!1;for(c=t,s=e.md.helpers.parseLinkDestination(e.src,t,e.posMax),s.ok&&(d=e.md.normalizeLink(s.str),e.md.validateLink(d)?t=s.pos:d=""),c=t;t<h&&(r=e.src.charCodeAt(t),lg(r)||10===r);t++);if(s=e.md.helpers.parseLinkTitle(e.src,t,e.posMax),t<h&&c!==t&&s.ok)for(l=s.str,t=s.pos;t<h&&(r=e.src.charCodeAt(t),lg(r)||10===r);t++);else l="";if(t>=h||41!==e.src.charCodeAt(t))return e.pos=u,!1;t++}else{if(void 0===e.env.references)return!1;if(t<h&&91===e.src.charCodeAt(t)?(c=t+1,t=e.md.helpers.parseLinkLabel(e,t),t>=0?i=e.src.slice(c,t++):t=g+1):t=g+1,i||(i=e.src.slice(m,g)),o=e.env.references[hg(i)],!o)return e.pos=u,!1;d=o.href,l=o.title}if(!a){n=e.src.slice(m,g);const a=[];e.md.inline.parse(n,e.md,e.env,a);const r=e.push("image","img",0),i=[["src",d],["alt",""]];r.attrs=i,r.children=a,r.content=n,l&&i.push(["title",l])}return e.pos=t,e.posMax=h,!0}],["autolink",function(e,a){let r=e.pos;if(60!==e.src.charCodeAt(r))return!1;const n=e.pos,i=e.posMax;for(;;){if(++r>=i)return!1;const a=e.src.charCodeAt(r);if(60===a)return!1;if(62===a)break}const t=e.src.slice(n+1,r);if(ip.test(t)){const r=e.md.normalizeLink(t);if(!e.md.validateLink(r))return!1;if(!a){const a=e.push("link_open","a",1);a.attrs=[["href",r]],a.markup="autolink",a.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(t);const n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=t.length+2,!0}if(np.test(t)){const r=e.md.normalizeLink("mailto:"+t);if(!e.md.validateLink(r))return!1;if(!a){const a=e.push("link_open","a",1);a.attrs=[["href",r]],a.markup="autolink",a.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(t);const n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=t.length+2,!0}return!1}],["html_inline",function(e,a){if(!e.md.options.html)return!1;const r=e.posMax,n=e.pos;if(60!==e.src.charCodeAt(n)||n+2>=r)return!1;const i=e.src.charCodeAt(n+1);if(33!==i&&63!==i&&47!==i&&!function(e){const a=32|e;return a>=97&&a<=122}(i))return!1;const t=e.src.slice(n).match(Ug);if(!t)return!1;if(!a){const a=e.push("html_inline","",0);a.content=t[0],o=a.content,/^<a[>\s]/i.test(o)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(a.content)&&e.linkLevel--}var o;return e.pos+=t[0].length,!0}],["entity",function(e,a){const r=e.pos,n=e.posMax;if(38!==e.src.charCodeAt(r))return!1;if(r+1>=n)return!1;if(35===e.src.charCodeAt(r+1)){const n=e.src.slice(r).match(tp);if(n){if(!a){const a="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),r=e.push("text_special","",0);r.content=Jm(a)?Ym(a):Ym(65533),r.markup=n[0],r.info="entity"}return e.pos+=n[0].length,!0}}else{const n=e.src.slice(r).match(op);if(n){const r=Hm(n[0]);if(r!==n[0]){if(!a){const a=e.push("text_special","",0);a.content=r,a.markup=n[0],a.info="entity"}return e.pos+=n[0].length,!0}}}return!1}]],cp=[["balance_pairs",function(e){const a=e.tokens_meta,r=e.tokens_meta.length;sp(e.delimiters);for(let e=0;e<r;e++)a[e]&&a[e].delimiters&&sp(a[e].delimiters)}],["strikethrough",ep.postProcess],["emphasis",rp.postProcess],["fragments_join",function(e){let a,r,n=0;const i=e.tokens,t=e.tokens.length;for(a=r=0;a<t;a++)i[a].nesting<0&&n--,i[a].level=n,i[a].nesting>0&&n++,"text"===i[a].type&&a+1<t&&"text"===i[a+1].type?i[a+1].content=i[a].content+i[a+1].content:(a!==r&&(i[r]=i[a]),r++);a!==r&&(i.length=r)}]];function dp(){this.ruler=new fg;for(let e=0;e<lp.length;e++)this.ruler.push(lp[e][0],lp[e][1]);this.ruler2=new fg;for(let e=0;e<cp.length;e++)this.ruler2.push(cp[e][0],cp[e][1])}function up(e){return Array.prototype.slice.call(arguments,1).forEach((function(a){a&&Object.keys(a).forEach((function(r){e[r]=a[r]}))})),e}function hp(e){return Object.prototype.toString.call(e)}function mp(e){return"[object Function]"===hp(e)}function gp(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}dp.prototype.skipToken=function(e){const a=e.pos,r=this.ruler.getRules(""),n=r.length,i=e.md.options.maxNesting,t=e.cache;if(void 0!==t[a])return void(e.pos=t[a]);let o=!1;if(e.level<i){for(let i=0;i<n;i++)if(e.level++,o=r[i](e,!0),e.level--,o){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;o||e.pos++,t[a]=e.pos},dp.prototype.tokenize=function(e){const a=this.ruler.getRules(""),r=a.length,n=e.posMax,i=e.md.options.maxNesting;for(;e.pos<n;){const t=e.pos;let o=!1;if(e.level<i)for(let n=0;n<r;n++)if(o=a[n](e,!1),o){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(o){if(e.pos>=n)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},dp.prototype.parse=function(e,a,r,n){const i=new this.State(e,a,r,n);this.tokenize(i);const t=this.ruler2.getRules(""),o=t.length;for(let e=0;e<o;e++)t[e](i)},dp.prototype.State=Kg;const pp={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const bp={"http:":{validate:function(e,a,r){const n=e.slice(a);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,a,r){const n=e.slice(a);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?a>=3&&":"===e[a-3]||a>=3&&"/"===e[a-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,a,r){const n=e.slice(a);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},kp="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function fp(e){const a=e.re=function(e){const a={};e=e||{},a.src_Any=xm.source,a.src_Cc=qm.source,a.src_Z=_m.source,a.src_P=$m.source,a.src_ZPCc=[a.src_Z,a.src_P,a.src_Cc].join("|"),a.src_ZCc=[a.src_Z,a.src_Cc].join("|");const r="[><|]";return a.src_pseudo_letter="(?:(?![><|]|"+a.src_ZPCc+")"+a.src_Any+")",a.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",a.src_auth="(?:(?:(?!"+a.src_ZCc+"|[@/\\[\\]()]).)+@)?",a.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",a.src_host_terminator="(?=$|[><|]|"+a.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+a.src_ZPCc+"))",a.src_path="(?:[/?#](?:(?!"+a.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+a.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+a.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+a.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+a.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+a.src_ZCc+"|[']).)+\\'|\\'(?="+a.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+a.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+a.src_ZCc+"|$)|;(?!"+a.src_ZCc+"|$)|\\!+(?!"+a.src_ZCc+"|[!]|$)|\\?(?!"+a.src_ZCc+"|[?]|$))+|\\/)?",a.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',a.src_xn="xn--[a-z0-9\\-]{1,59}",a.src_domain_root="(?:"+a.src_xn+"|"+a.src_pseudo_letter+"{1,63})",a.src_domain="(?:"+a.src_xn+"|(?:"+a.src_pseudo_letter+")|(?:"+a.src_pseudo_letter+"(?:-|"+a.src_pseudo_letter+"){0,61}"+a.src_pseudo_letter+"))",a.src_host="(?:(?:(?:(?:"+a.src_domain+")\\.)*"+a.src_domain+"))",a.tpl_host_fuzzy="(?:"+a.src_ip4+"|(?:(?:(?:"+a.src_domain+")\\.)+(?:%TLDS%)))",a.tpl_host_no_ip_fuzzy="(?:(?:(?:"+a.src_domain+")\\.)+(?:%TLDS%))",a.src_host_strict=a.src_host+a.src_host_terminator,a.tpl_host_fuzzy_strict=a.tpl_host_fuzzy+a.src_host_terminator,a.src_host_port_strict=a.src_host+a.src_port+a.src_host_terminator,a.tpl_host_port_fuzzy_strict=a.tpl_host_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_port_no_ip_fuzzy_strict=a.tpl_host_no_ip_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+a.src_ZPCc+"|>|$))",a.tpl_email_fuzzy='(^|[><|]|"|\\(|'+a.src_ZCc+")("+a.src_email_name+"@"+a.tpl_host_fuzzy_strict+")",a.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+a.src_ZPCc+"))((?![$+<=>^`||])"+a.tpl_host_port_fuzzy_strict+a.src_path+")",a.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+a.src_ZPCc+"))((?![$+<=>^`||])"+a.tpl_host_port_no_ip_fuzzy_strict+a.src_path+")",a}(e.__opts__),r=e.__tlds__.slice();function n(e){return e.replace("%TLDS%",a.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(a.src_xn),a.src_tlds=r.join("|"),a.email_fuzzy=RegExp(n(a.tpl_email_fuzzy),"i"),a.link_fuzzy=RegExp(n(a.tpl_link_fuzzy),"i"),a.link_no_ip_fuzzy=RegExp(n(a.tpl_link_no_ip_fuzzy),"i"),a.host_fuzzy_test=RegExp(n(a.tpl_host_fuzzy_test),"i");const i=[];function t(e,a){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+a)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(a){const r=e.__schemas__[a];if(null===r)return;const n={validate:null,link:null};if(e.__compiled__[a]=n,"[object Object]"===hp(r))return!function(e){return"[object RegExp]"===hp(e)}(r.validate)?mp(r.validate)?n.validate=r.validate:t(a,r):n.validate=function(e){return function(a,r){const n=a.slice(r);return e.test(n)?n.match(e)[0].length:0}}(r.validate),void(mp(r.normalize)?n.normalize=r.normalize:r.normalize?t(a,r):n.normalize=function(e,a){a.normalize(e)});!function(e){return"[object String]"===hp(e)}(r)?t(a,r):i.push(a)})),i.forEach((function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,a){a.normalize(e)}};const o=Object.keys(e.__compiled__).filter((function(a){return a.length>0&&e.__compiled__[a]})).map(gp).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+a.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+a.src_ZPCc+"))("+o+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function yp(e,a){const r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+a,this.lastIndex=n+a,this.raw=i,this.text=i,this.url=i}function vp(e,a){const r=new yp(e,a);return e.__compiled__[r.schema].normalize(r,e),r}function wp(e,a){if(!(this instanceof wp))return new wp(e,a);var r;a||(r=e,Object.keys(r||{}).reduce((function(e,a){return e||pp.hasOwnProperty(a)}),!1)&&(a=e,e={})),this.__opts__=up({},pp,a),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=up({},bp,e),this.__compiled__={},this.__tlds__=kp,this.__tlds_replaced__=!1,this.re={},fp(this)}wp.prototype.add=function(e,a){return this.__schemas__[e]=a,fp(this),this},wp.prototype.set=function(e){return this.__opts__=up(this.__opts__,e),this},wp.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let a,r,n,i,t,o,s,l,c;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(a=s.exec(e));)if(i=this.testSchemaAt(e,a[2],s.lastIndex),i){this.__schema__=a[2],this.__index__=a.index+a[1].length,this.__last_index__=a.index+a[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&null!==(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(t=r.index+r[1].length,(this.__index__<0||t<this.__index__)&&(this.__schema__="",this.__index__=t,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&null!==(n=e.match(this.re.email_fuzzy))&&(t=n.index+n[1].length,o=n.index+n[0].length,(this.__index__<0||t<this.__index__||t===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=t,this.__last_index__=o))),this.__index__>=0},wp.prototype.pretest=function(e){return this.re.pretest.test(e)},wp.prototype.testSchemaAt=function(e,a,r){return this.__compiled__[a.toLowerCase()]?this.__compiled__[a.toLowerCase()].validate(e,r,this):0},wp.prototype.match=function(e){const a=[];let r=0;this.__index__>=0&&this.__text_cache__===e&&(a.push(vp(this,r)),r=this.__last_index__);let n=r?e.slice(r):e;for(;this.test(n);)a.push(vp(this,r)),n=n.slice(this.__last_index__),r+=this.__last_index__;return a.length?a:null},wp.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const a=this.re.schema_at_start.exec(e);if(!a)return null;const r=this.testSchemaAt(e,a[2],a[0].length);return r?(this.__schema__=a[2],this.__index__=a.index+a[1].length,this.__last_index__=a.index+a[0].length+r,vp(this,0)):null},wp.prototype.tlds=function(e,a){return e=Array.isArray(e)?e:[e],a?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,a,r){return e!==r[a-1]})).reverse(),fp(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,fp(this),this)},wp.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},wp.prototype.onCompile=function(){};const zp=2147483647,jp=36,xp=/^xn--/,qp=/[^\0-\x7F]/,$p=/[\x2E\u3002\uFF0E\uFF61]/g,Cp={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_p=Math.floor,Sp=String.fromCharCode;function Ep(e){throw new RangeError(Cp[e])}function Ap(e,a){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const i=function(e,a){const r=[];let n=e.length;for(;n--;)r[n]=a(e[n]);return r}((e=e.replace($p,".")).split("."),a).join(".");return n+i}function Op(e){const a=[];let r=0;const n=e.length;for(;r<n;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?a.push(((1023&i)<<10)+(1023&n)+65536):(a.push(i),r--)}else a.push(i)}return a}const Dp=function(e,a){return e+22+75*(e<26)-((0!=a)<<5)},Mp=function(e,a,r){let n=0;for(e=r?_p(e/700):e>>1,e+=_p(e/a);e>455;n+=jp)e=_p(e/35);return _p(n+36*e/(e+38))},Fp=function(e){const a=[],r=e.length;let n=0,i=128,t=72,o=e.lastIndexOf("-");o<0&&(o=0);for(let r=0;r<o;++r)e.charCodeAt(r)>=128&&Ep("not-basic"),a.push(e.charCodeAt(r));for(let l=o>0?o+1:0;l<r;){const o=n;for(let a=1,i=jp;;i+=jp){l>=r&&Ep("invalid-input");const o=(s=e.charCodeAt(l++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:jp;o>=jp&&Ep("invalid-input"),o>_p((zp-n)/a)&&Ep("overflow"),n+=o*a;const c=i<=t?1:i>=t+26?26:i-t;if(o<c)break;const d=jp-c;a>_p(zp/d)&&Ep("overflow"),a*=d}const c=a.length+1;t=Mp(n-o,c,0==o),_p(n/c)>zp-i&&Ep("overflow"),i+=_p(n/c),n%=c,a.splice(n++,0,i)}var s;return String.fromCodePoint(...a)},Tp=function(e){const a=[],r=(e=Op(e)).length;let n=128,i=0,t=72;for(const r of e)r<128&&a.push(Sp(r));const o=a.length;let s=o;for(o&&a.push("-");s<r;){let r=zp;for(const a of e)a>=n&&a<r&&(r=a);const l=s+1;r-n>_p((zp-i)/l)&&Ep("overflow"),i+=(r-n)*l,n=r;for(const r of e)if(r<n&&++i>zp&&Ep("overflow"),r===n){let e=i;for(let r=jp;;r+=jp){const n=r<=t?1:r>=t+26?26:r-t;if(e<n)break;const i=e-n,o=jp-n;a.push(Sp(Dp(n+i%o,0))),e=_p(i/o)}a.push(Sp(Dp(e,0))),t=Mp(i,l,s===o),i=0,++s}++i,++n}return a.join("")},Np=function(e){return Ap(e,(function(e){return qp.test(e)?"xn--"+Tp(e):e}))},Ip=function(e){return Ap(e,(function(e){return xp.test(e)?Fp(e.slice(4).toLowerCase()):e}))};const Pp={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},Rp=/^(vbscript|javascript|file|data):/,Lp=/^data:image\/(gif|png|jpeg|webp);/;function Bp(e){const a=e.trim().toLowerCase();return!Rp.test(a)||Lp.test(a)}const Vp=["http:","https:","mailto:"];function Up(e){const a=wm(e,!0);if(a.hostname&&(!a.protocol||Vp.indexOf(a.protocol)>=0))try{a.hostname=Np(a.hostname)}catch(e){}return sm(lm(a))}function Hp(e){const a=wm(e,!0);if(a.hostname&&(!a.protocol||Vp.indexOf(a.protocol)>=0))try{a.hostname=Ip(a.hostname)}catch(e){}return tm(lm(a),tm.defaultChars+"%")}function Gp(e,a){if(!(this instanceof Gp))return new Gp(e,a);a||Gm(e)||(a=e||{},e="default"),this.inline=new dp,this.block=new Zg,this.core=new Tg,this.renderer=new kg,this.linkify=new wp,this.validateLink=Bp,this.normalizeLink=Up,this.normalizeLinkText=Hp,this.utils=gg,this.helpers=Zm({},pg),this.options={},this.configure(e),a&&this.set(a)}Gp.prototype.set=function(e){return Zm(this.options,e),this},Gp.prototype.configure=function(e){const a=this;if(Gm(e)){const a=e;if(!(e=Pp[a]))throw new Error('Wrong `markdown-it` preset "'+a+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&a.set(e.options),e.components&&Object.keys(e.components).forEach((function(r){e.components[r].rules&&a[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&a[r].ruler2.enableOnly(e.components[r].rules2)})),this},Gp.prototype.enable=function(e,a){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(a){r=r.concat(this[a].ruler.enable(e,!0))}),this),r=r.concat(this.inline.ruler2.enable(e,!0));const n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!a)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},Gp.prototype.disable=function(e,a){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(a){r=r.concat(this[a].ruler.disable(e,!0))}),this),r=r.concat(this.inline.ruler2.disable(e,!0));const n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!a)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},Gp.prototype.use=function(e){const a=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,a),this},Gp.prototype.parse=function(e,a){if("string"!=typeof e)throw new Error("Input data should be a String");const r=new this.core.State(e,this,a);return this.core.process(r),r.tokens},Gp.prototype.render=function(e,a){return a=a||{},this.renderer.render(this.parse(e,a),this.options,a)},Gp.prototype.parseInline=function(e,a){const r=new this.core.State(e,this,a);return r.inlineMode=!0,this.core.process(r),r.tokens},Gp.prototype.renderInline=function(e,a){return a=a||{},this.renderer.render(this.parseInline(e,a),this.options,a)};const Wp=new Ul({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:()=>["p",0]},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["div",["hr"]]},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:e=>["h"+e.attrs.level,0]},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>({params:e.getAttribute("data-params")||""})}],toDOM:e=>["pre",e.attrs.params?{"data-params":e.attrs.params}:{},["code",0]]},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs:e=>({order:e.hasAttribute("start")?+e.getAttribute("start"):1,tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ol",{start:1==e.attrs.order?null:e.attrs.order,"data-tight":e.attrs.tight?"true":null},0]},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>({tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ul",{"data-tight":e.attrs.tight?"true":null},0]},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:e=>({src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")})}],toDOM:e=>["img",e.attrs]},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>"em"==e.type.name}],toDOM:()=>["em"]},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!=e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>"strong"==e.type.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>["strong"]},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),title:e.getAttribute("title")})}],toDOM:e=>["a",e.attrs]},code:{parseDOM:[{tag:"code"}],toDOM:()=>["code"]}}});class Zp{constructor(e,a){this.schema=e,this.tokenHandlers=a,this.stack=[{type:e.topNodeType,attrs:null,content:[],marks:tl.none}]}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return;let a,r=this.top(),n=r.content,i=n[n.length-1],t=this.schema.text(e,r.marks);i&&(a=function(e,a){if(e.isText&&a.isText&&tl.sameSet(e.marks,a.marks))return e.withText(e.text+a.text)}(i,t))?n[n.length-1]=a:n.push(t)}openMark(e){let a=this.top();a.marks=e.addToSet(a.marks)}closeMark(e){let a=this.top();a.marks=e.removeFromSet(a.marks)}parseTokens(e){for(let a=0;a<e.length;a++){let r=e[a],n=this.tokenHandlers[r.type];if(!n)throw new Error("Token type `"+r.type+"` not supported by Markdown parser");n(this,r,e,a)}}addNode(e,a,r){let n=this.top(),i=e.createAndFill(a,r,n?n.marks:[]);return i?(this.push(i),i):null}openNode(e,a){this.stack.push({type:e,attrs:a,content:[],marks:tl.none})}closeNode(){let e=this.stack.pop();return this.addNode(e.type,e.attrs,e.content)}}function Kp(e,a,r,n){return e.getAttrs?e.getAttrs(a,r,n):e.attrs instanceof Function?e.attrs(a):e.attrs}function Jp(e,a){return e.noCloseToken||"code_inline"==a||"code_block"==a||"fence"==a}function Yp(e){return"\n"==e[e.length-1]?e.slice(0,e.length-1):e}function Xp(){}function Qp(e,a){for(;++a<e.length;)if("list_item_open"!=e[a].type)return e[a].hidden;return!1}new class{constructor(e,a,r){this.schema=e,this.tokenizer=a,this.tokens=r,this.tokenHandlers=function(e,a){let r=Object.create(null);for(let n in a){let i=a[n];if(i.block){let a=e.nodeType(i.block);Jp(i,n)?r[n]=(e,r,n,t)=>{e.openNode(a,Kp(i,r,n,t)),e.addText(Yp(r.content)),e.closeNode()}:(r[n+"_open"]=(e,r,n,t)=>e.openNode(a,Kp(i,r,n,t)),r[n+"_close"]=e=>e.closeNode())}else if(i.node){let a=e.nodeType(i.node);r[n]=(e,r,n,t)=>e.addNode(a,Kp(i,r,n,t))}else if(i.mark){let a=e.marks[i.mark];Jp(i,n)?r[n]=(e,r,n,t)=>{e.openMark(a.create(Kp(i,r,n,t))),e.addText(Yp(r.content)),e.closeMark(a)}:(r[n+"_open"]=(e,r,n,t)=>e.openMark(a.create(Kp(i,r,n,t))),r[n+"_close"]=e=>e.closeMark(a))}else{if(!i.ignore)throw new RangeError("Unrecognized parsing spec "+JSON.stringify(i));Jp(i,n)?r[n]=Xp:(r[n+"_open"]=Xp,r[n+"_close"]=Xp)}}return r.text=(e,a)=>e.addText(a.content),r.inline=(e,a)=>e.parseTokens(a.children),r.softbreak=r.softbreak||(e=>e.addText(" ")),r}(e,r)}parse(e,a={}){let r,n=new Zp(this.schema,this.tokenHandlers);n.parseTokens(this.tokenizer.parse(e,a));do{r=n.closeNode()}while(n.stack.length);return r||this.schema.topNodeType.createAndFill()}}(Wp,Gp("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(e,a,r)=>({tight:Qp(a,r)})},ordered_list:{block:"ordered_list",getAttrs:(e,a,r)=>({order:+e.attrGet("start")||1,tight:Qp(a,r)})},heading:{block:"heading",getAttrs:e=>({level:+e.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:e=>({params:e.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:e=>({src:e.attrGet("src"),title:e.attrGet("title")||null,alt:e.children[0]&&e.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:e=>({href:e.attrGet("href"),title:e.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}});const eb={open:"",close:"",mixable:!0};const ab=new class{constructor(e,a,r={}){this.nodes=e,this.marks=a,this.options=r}serialize(e,a={}){a=Object.assign({},this.options,a);let r=new nb(this.nodes,this.marks,a);return r.renderContent(e),r.out}}({blockquote(e,a){e.wrapBlock("> ",null,a,(()=>e.renderContent(a)))},code_block(e,a){const r=a.textContent.match(/`{3,}/gm),n=r?r.sort().slice(-1)[0]+"`":"```";e.write(n+(a.attrs.params||"")+"\n"),e.text(a.textContent,!1),e.write("\n"),e.write(n),e.closeBlock(a)},heading(e,a){e.write(e.repeat("#",a.attrs.level)+" "),e.renderInline(a,!1),e.closeBlock(a)},horizontal_rule(e,a){e.write(a.attrs.markup||"---"),e.closeBlock(a)},bullet_list(e,a){e.renderList(a," ",(()=>(a.attrs.bullet||"*")+" "))},ordered_list(e,a){let r=a.attrs.order||1,n=String(r+a.childCount-1).length,i=e.repeat(" ",n+2);e.renderList(a,i,(a=>{let i=String(r+a);return e.repeat(" ",n-i.length)+i+". "}))},list_item(e,a){e.renderContent(a)},paragraph(e,a){e.renderInline(a),e.closeBlock(a)},image(e,a){e.write("]/g,"\\$&")+(a.attrs.title?' "'+a.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break(e,a,r,n){for(let i=n+1;i<r.childCount;i++)if(r.child(i).type!=a.type)return void e.write("\\\n")},text(e,a){e.text(a.text,!e.inAutolink)}},{em:{open:"*",close:"*",mixable:!0,expelEnclosingWhitespace:!0},strong:{open:"**",close:"**",mixable:!0,expelEnclosingWhitespace:!0},link:{open:(e,a,r,n)=>(e.inAutolink=function(e,a,r){if(e.attrs.title||!/^\w+:/.test(e.attrs.href))return!1;let n=a.child(r);return!(!n.isText||n.text!=e.attrs.href||n.marks[n.marks.length-1]!=e)&&(r==a.childCount-1||!e.isInSet(a.child(r+1).marks))}(a,r,n),e.inAutolink?"<":"["),close(e,a,r,n){let{inAutolink:i}=e;return e.inAutolink=void 0,i?">":"]("+a.attrs.href.replace(/[\(\)"]/g,"\\$&")+(a.attrs.title?` "${a.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open:(e,a,r,n)=>rb(r.child(n),-1),close:(e,a,r,n)=>rb(r.child(n-1),1),escape:!1}});function rb(e,a){let r,n=/`+/g,i=0;if(e.isText)for(;r=n.exec(e.text);)i=Math.max(i,r[0].length);let t=i>0&&a>0?" `":"`";for(let e=0;e<i;e++)t+="`";return i>0&&a<0&&(t+=" "),t}let nb=class{constructor(e,a,r){this.nodes=e,this.marks=a,this.options=r,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,void 0===this.options.tightLists&&(this.options.tightLists=!1),void 0===this.options.hardBreakNodeName&&(this.options.hardBreakNodeName="hard_break")}flushClose(e=2){if(this.closed){if(this.atBlank()||(this.out+="\n"),e>1){let a=this.delim,r=/\s+$/.exec(a);r&&(a=a.slice(0,a.length-r[0].length));for(let r=1;r<e;r++)this.out+=a+"\n"}this.closed=null}}getMark(e){let a=this.marks[e];if(!a){if(!1!==this.options.strict)throw new Error(`Mark type \`${e}\` not supported by Markdown renderer`);a=eb}return a}wrapBlock(e,a,r,n){let i=this.delim;this.write(null!=a?a:e),this.delim+=e,n(),this.delim=i,this.closeBlock(r)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+="\n")}write(e){this.flushClose(),this.delim&&this.atBlank()&&(this.out+=this.delim),e&&(this.out+=e)}closeBlock(e){this.closed=e}text(e,a=!0){let r=e.split("\n");for(let e=0;e<r.length;e++)this.write(),!a&&"["==r[e][0]&&/(^|[^\\])\!$/.test(this.out)&&(this.out=this.out.slice(0,this.out.length-1)+"\\!"),this.out+=a?this.esc(r[e],this.atBlockStart):r[e],e!=r.length-1&&(this.out+="\n")}render(e,a,r){if(this.nodes[e.type.name])this.nodes[e.type.name](this,e,a,r);else{if(!1!==this.options.strict)throw new Error("Token type `"+e.type.name+"` not supported by Markdown renderer");e.type.isLeaf||(e.type.inlineContent?this.renderInline(e):this.renderContent(e),e.isBlock&&this.closeBlock(e))}}renderContent(e){e.forEach(((a,r,n)=>this.render(a,e,n)))}renderInline(e,a=!0){this.atBlockStart=a;let r=[],n="",i=(a,i,t)=>{let o=a?a.marks:[];a&&a.type.name===this.options.hardBreakNodeName&&(o=o.filter((a=>{if(t+1==e.childCount)return!1;let r=e.child(t+1);return a.isInSet(r.marks)&&(!r.isText||/\S/.test(r.text))})));let s=n;if(n="",a&&a.isText&&o.some((e=>{let a=this.getMark(e.type.name);return a&&a.expelEnclosingWhitespace&&!e.isInSet(r)}))){let[e,n,i]=/^(\s*)(.*)$/m.exec(a.text);n&&(s+=n,(a=i?a.withText(i):null)||(o=r))}if(a&&a.isText&&o.some((a=>{let r=this.getMark(a.type.name);return r&&r.expelEnclosingWhitespace&&(t==e.childCount-1||!a.isInSet(e.child(t+1).marks))}))){let[e,i,t]=/^(.*?)(\s*)$/m.exec(a.text);t&&(n=t,(a=i?a.withText(i):null)||(o=r))}let l=o.length?o[o.length-1]:null,c=l&&!1===this.getMark(l.type.name).escape,d=o.length-(c?1:0);e:for(let e=0;e<d;e++){let a=o[e];if(!this.getMark(a.type.name).mixable)break;for(let n=0;n<r.length;n++){let i=r[n];if(!this.getMark(i.type.name).mixable)break;if(a.eq(i)){e>n?o=o.slice(0,n).concat(a).concat(o.slice(n,e)).concat(o.slice(e+1,d)):n>e&&(o=o.slice(0,e).concat(o.slice(e+1,n)).concat(a).concat(o.slice(n,d)));continue e}}}let u=0;for(;u<Math.min(r.length,d)&&o[u].eq(r[u]);)++u;for(;u<r.length;)this.text(this.markString(r.pop(),!1,e,t),!1);if(s&&this.text(s),a){for(;r.length<d;){let a=o[r.length];r.push(a),this.text(this.markString(a,!0,e,t),!1),this.atBlockStart=!1}c&&a.isText?this.text(this.markString(l,!0,e,t)+a.text+this.markString(l,!1,e,t+1),!1):this.render(a,e,t),this.atBlockStart=!1}(null==a?void 0:a.isText)&&a.nodeSize>0&&(this.atBlockStart=!1)};e.forEach(i),i(null,0,e.childCount),this.atBlockStart=!1}renderList(e,a,r){this.closed&&this.closed.type==e.type?this.flushClose(3):this.inTightList&&this.flushClose(1);let n=void 0!==e.attrs.tight?e.attrs.tight:this.options.tightLists,i=this.inTightList;this.inTightList=n,e.forEach(((i,t,o)=>{o&&n&&this.flushClose(1),this.wrapBlock(a,r(o),e,(()=>this.render(i,e,o)))})),this.inTightList=i}esc(e,a=!1){return e=e.replace(/[`*\\~\[\]_]/g,((a,r)=>"_"==a&&r>0&&r+1<e.length&&e[r-1].match(/\w/)&&e[r+1].match(/\w/)?a:"\\"+a)),a&&(e=e.replace(/^(\+[ ]|[\-*>])/,"\\$&").replace(/^(\s*)(#{1,6})(\s|$)/,"$1\\$2$3").replace(/^(\s*\d+)\.\s/,"$1\\. ")),this.options.escapeExtraCharacters&&(e=e.replace(this.options.escapeExtraCharacters,"\\$&")),e}quote(e){let a=-1==e.indexOf('"')?'""':-1==e.indexOf("'")?"''":"()";return a[0]+e+a[1]}repeat(e,a){let r="";for(let n=0;n<a;n++)r+=e;return r}markString(e,a,r,n){let i=this.getMark(e.type.name),t=a?i.open:i.close;return"string"==typeof t?t:t(this,e,r,n)}getEnclosingWhitespace(e){return{leading:(e.match(/^(\s+)/)||[void 0])[0],trailing:(e.match(/(\s+)$/)||[void 0])[0]}}};var ib={},tb={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},ob=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,sb={},lb={};function cb(e,a,r){var n,i,t,o,s,l="";for("string"!=typeof a&&(r=a,a=cb.defaultChars),void 0===r&&(r=!0),s=function(e){var a,r,n=lb[e];if(n)return n;for(n=lb[e]=[],a=0;a<128;a++)r=String.fromCharCode(a),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+a.toString(16).toUpperCase()).slice(-2));for(a=0;a<e.length;a++)n[e.charCodeAt(a)]=e[a];return n}(a),n=0,i=e.length;n<i;n++)if(t=e.charCodeAt(n),r&&37===t&&n+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(n+1,n+3)))l+=e.slice(n,n+3),n+=2;else if(t<128)l+=s[t];else if(t>=55296&&t<=57343){if(t>=55296&&t<=56319&&n+1<i&&(o=e.charCodeAt(n+1))>=56320&&o<=57343){l+=encodeURIComponent(e[n]+e[n+1]),n++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[n]);return l}cb.defaultChars=";/?:@&=+$,-_.!~*'()#",cb.componentChars="-_.!~*'()";var db=cb,ub={};function hb(e,a){var r;return"string"!=typeof a&&(a=hb.defaultChars),r=function(e){var a,r,n=ub[e];if(n)return n;for(n=ub[e]=[],a=0;a<128;a++)r=String.fromCharCode(a),n.push(r);for(a=0;a<e.length;a++)n[r=e.charCodeAt(a)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return n}(a),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var a,n,i,t,o,s,l,c="";for(a=0,n=e.length;a<n;a+=3)(i=parseInt(e.slice(a+1,a+3),16))<128?c+=r[i]:192==(224&i)&&a+3<n&&128==(192&(t=parseInt(e.slice(a+4,a+6),16)))?(c+=(l=i<<6&1984|63&t)<128?"��":String.fromCharCode(l),a+=3):224==(240&i)&&a+6<n&&(t=parseInt(e.slice(a+4,a+6),16),o=parseInt(e.slice(a+7,a+9),16),128==(192&t)&&128==(192&o))?(c+=(l=i<<12&61440|t<<6&4032|63&o)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),a+=6):240==(248&i)&&a+9<n&&(t=parseInt(e.slice(a+4,a+6),16),o=parseInt(e.slice(a+7,a+9),16),s=parseInt(e.slice(a+10,a+12),16),128==(192&t)&&128==(192&o)&&128==(192&s))?((l=i<<18&1835008|t<<12&258048|o<<6&4032|63&s)<65536||l>1114111?c+="����":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),a+=9):c+="�";return c}))}hb.defaultChars=";/?:@&=+$,#",hb.componentChars="";var mb=hb;function gb(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var pb=/^([a-z0-9.+-]+:)/i,bb=/:[0-9]*$/,kb=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,fb=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),yb=["'"].concat(fb),vb=["%","/","?",";","#"].concat(yb),wb=["/","?","#"],zb=/^[+a-z0-9A-Z_-]{0,63}$/,jb=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xb={javascript:!0,"javascript:":!0},qb={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};gb.prototype.parse=function(e,a){var r,n,i,t,o,s=e;if(s=s.trim(),!a&&1===e.split("#").length){var l=kb.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=pb.exec(s);if(c&&(i=(c=c[0]).toLowerCase(),this.protocol=c,s=s.substr(c.length)),(a||c||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(o="//"===s.substr(0,2))||c&&xb[c]||(s=s.substr(2),this.slashes=!0)),!xb[c]&&(o||c&&!qb[c])){var d,u,h=-1;for(r=0;r<wb.length;r++)-1!==(t=s.indexOf(wb[r]))&&(-1===h||t<h)&&(h=t);for(-1!==(u=-1===h?s.lastIndexOf("@"):s.lastIndexOf("@",h))&&(d=s.slice(0,u),s=s.slice(u+1),this.auth=d),h=-1,r=0;r<vb.length;r++)-1!==(t=s.indexOf(vb[r]))&&(-1===h||t<h)&&(h=t);-1===h&&(h=s.length),":"===s[h-1]&&h--;var m=s.slice(0,h);s=s.slice(h),this.parseHost(m),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g){var p=this.hostname.split(/\./);for(r=0,n=p.length;r<n;r++){var b=p[r];if(b&&!b.match(zb)){for(var k="",f=0,y=b.length;f<y;f++)b.charCodeAt(f)>127?k+="x":k+=b[f];if(!k.match(zb)){var v=p.slice(0,r),w=p.slice(r+1),z=b.match(jb);z&&(v.push(z[1]),w.unshift(z[2])),w.length&&(s=w.join(".")+s),this.hostname=v.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var j=s.indexOf("#");-1!==j&&(this.hash=s.substr(j),s=s.slice(0,j));var x=s.indexOf("?");return-1!==x&&(this.search=s.substr(x),s=s.slice(0,x)),s&&(this.pathname=s),qb[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},gb.prototype.parseHost=function(e){var a=bb.exec(e);a&&(":"!==(a=a[0])&&(this.port=a.substr(1)),e=e.substr(0,e.length-a.length)),e&&(this.hostname=e)};var $b=function(e,a){if(e&&e instanceof gb)return e;var r=new gb;return r.parse(e,a),r};sb.encode=db,sb.decode=mb,sb.format=function(e){var a="";return a+=e.protocol||"",a+=e.slashes?"//":"",a+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?a+="["+e.hostname+"]":a+=e.hostname||"",a+=e.port?":"+e.port:"",a+=e.pathname||"",a+=e.search||"",a+=e.hash||""},sb.parse=$b;var Cb,_b,Sb,Eb,Ab,Ob,Db,Mb,Fb,Tb={};function Nb(){return _b?Cb:(_b=1,Cb=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)}function Ib(){return Eb?Sb:(Eb=1,Sb=/[\0-\x1F\x7F-\x9F]/)}function Pb(){return Mb?Db:(Mb=1,Db=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/)}function Rb(){return Fb||(Fb=1,Tb.Any=Nb(),Tb.Cc=Ib(),Tb.Cf=Ob?Ab:(Ob=1,Ab=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Tb.P=ob,Tb.Z=Pb()),Tb}!function(e){var a=Object.prototype.hasOwnProperty;function r(e,r){return a.call(e,r)}function n(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function i(e){if(e>65535){var a=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(a,r)}return String.fromCharCode(e)}var t=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,o=new RegExp(t.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),s=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,l=tb;var c=/[&<>"]/,d=/[&<>"]/g,u={"&":"&","<":"<",">":">",'"':"""};function h(e){return u[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var g=ob;e.lib={},e.lib.mdurl=sb,e.lib.ucmicro=Rb(),e.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(a){if(a){if("object"!=typeof a)throw new TypeError(a+"must be object");Object.keys(a).forEach((function(r){e[r]=a[r]}))}})),e},e.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},e.has=r,e.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(t,"$1")},e.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(o,(function(e,a,t){return a||function(e,a){var t;return r(l,a)?l[a]:35===a.charCodeAt(0)&&s.test(a)&&n(t="x"===a[1].toLowerCase()?parseInt(a.slice(2),16):parseInt(a.slice(1),10))?i(t):e}(e,t)}))},e.isValidEntityCode=n,e.fromCodePoint=i,e.escapeHtml=function(e){return c.test(e)?e.replace(d,h):e},e.arrayReplaceAt=function(e,a,r){return[].concat(e.slice(0,a),r,e.slice(a+1))},e.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},e.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},e.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},e.isPunctChar=function(e){return g.test(e)},e.escapeRE=function(e){return e.replace(m,"\\$&")},e.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}}(ib);var Lb={},Bb=ib.unescapeAll,Vb=ib.unescapeAll;Lb.parseLinkLabel=function(e,a,r){var n,i,t,o,s=-1,l=e.posMax,c=e.pos;for(e.pos=a+1,n=1;e.pos<l;){if(93===(t=e.src.charCodeAt(e.pos))&&0===--n){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===t)if(o===e.pos-1)n++;else if(r)return e.pos=c,-1}return i&&(s=e.pos),e.pos=c,s},Lb.parseLinkDestination=function(e,a,r){var n,i,t=a,o={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<r;){if(10===(n=e.charCodeAt(t)))return o;if(60===n)return o;if(62===n)return o.pos=t+1,o.str=Bb(e.slice(a+1,t)),o.ok=!0,o;92===n&&t+1<r?t+=2:t++}return o}for(i=0;t<r&&32!==(n=e.charCodeAt(t))&&!(n<32||127===n);)if(92===n&&t+1<r){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===n&&++i>32)return o;if(41===n){if(0===i)break;i--}t++}return a===t||0!==i||(o.str=Bb(e.slice(a,t)),o.pos=t,o.ok=!0),o},Lb.parseLinkTitle=function(e,a,r){var n,i,t=0,o=a,s={ok:!1,pos:0,lines:0,str:""};if(o>=r)return s;if(34!==(i=e.charCodeAt(o))&&39!==i&&40!==i)return s;for(o++,40===i&&(i=41);o<r;){if((n=e.charCodeAt(o))===i)return s.pos=o+1,s.lines=t,s.str=Vb(e.slice(a+1,o)),s.ok=!0,s;if(40===n&&41===i)return s;10===n?t++:92===n&&o+1<r&&(o++,10===e.charCodeAt(o)&&t++),o++}return s};var Ub=ib.assign,Hb=ib.unescapeAll,Gb=ib.escapeHtml,Wb={};function Zb(){this.rules=Ub({},Wb)}Wb.code_inline=function(e,a,r,n,i){var t=e[a];return"<code"+i.renderAttrs(t)+">"+Gb(t.content)+"</code>"},Wb.code_block=function(e,a,r,n,i){var t=e[a];return"<pre"+i.renderAttrs(t)+"><code>"+Gb(e[a].content)+"</code></pre>\n"},Wb.fence=function(e,a,r,n,i){var t,o,s,l,c,d=e[a],u=d.info?Hb(d.info).trim():"",h="",m="";return u&&(h=(s=u.split(/(\s+)/g))[0],m=s.slice(2).join("")),0===(t=r.highlight&&r.highlight(d.content,h,m)||Gb(d.content)).indexOf("<pre")?t+"\n":u?(o=d.attrIndex("class"),l=d.attrs?d.attrs.slice():[],o<0?l.push(["class",r.langPrefix+h]):(l[o]=l[o].slice(),l[o][1]+=" "+r.langPrefix+h),c={attrs:l},"<pre><code"+i.renderAttrs(c)+">"+t+"</code></pre>\n"):"<pre><code"+i.renderAttrs(d)+">"+t+"</code></pre>\n"},Wb.image=function(e,a,r,n,i){var t=e[a];return t.attrs[t.attrIndex("alt")][1]=i.renderInlineAsText(t.children,r,n),i.renderToken(e,a,r)},Wb.hardbreak=function(e,a,r){return r.xhtmlOut?"<br />\n":"<br>\n"},Wb.softbreak=function(e,a,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},Wb.text=function(e,a){return Gb(e[a].content)},Wb.html_block=function(e,a){return e[a].content},Wb.html_inline=function(e,a){return e[a].content},Zb.prototype.renderAttrs=function(e){var a,r,n;if(!e.attrs)return"";for(n="",a=0,r=e.attrs.length;a<r;a++)n+=" "+Gb(e.attrs[a][0])+'="'+Gb(e.attrs[a][1])+'"';return n},Zb.prototype.renderToken=function(e,a,r){var n,i="",t=!1,o=e[a];return o.hidden?"":(o.block&&-1!==o.nesting&&a&&e[a-1].hidden&&(i+="\n"),i+=(-1===o.nesting?"</":"<")+o.tag,i+=this.renderAttrs(o),0===o.nesting&&r.xhtmlOut&&(i+=" /"),o.block&&(t=!0,1===o.nesting&&a+1<e.length&&("inline"===(n=e[a+1]).type||n.hidden||-1===n.nesting&&n.tag===o.tag)&&(t=!1)),i+=t?">\n":">")},Zb.prototype.renderInline=function(e,a,r){for(var n,i="",t=this.rules,o=0,s=e.length;o<s;o++)void 0!==t[n=e[o].type]?i+=t[n](e,o,a,r,this):i+=this.renderToken(e,o,a);return i},Zb.prototype.renderInlineAsText=function(e,a,r){for(var n="",i=0,t=e.length;i<t;i++)"text"===e[i].type?n+=e[i].content:"image"===e[i].type?n+=this.renderInlineAsText(e[i].children,a,r):"softbreak"===e[i].type&&(n+="\n");return n},Zb.prototype.render=function(e,a,r){var n,i,t,o="",s=this.rules;for(n=0,i=e.length;n<i;n++)"inline"===(t=e[n].type)?o+=this.renderInline(e[n].children,a,r):void 0!==s[t]?o+=s[t](e,n,a,r,this):o+=this.renderToken(e,n,a,r);return o};var Kb=Zb;function Jb(){this.__rules__=[],this.__cache__=null}Jb.prototype.__find__=function(e){for(var a=0;a<this.__rules__.length;a++)if(this.__rules__[a].name===e)return a;return-1},Jb.prototype.__compile__=function(){var e=this,a=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){a.indexOf(e)<0&&a.push(e)}))})),e.__cache__={},a.forEach((function(a){e.__cache__[a]=[],e.__rules__.forEach((function(r){r.enabled&&(a&&r.alt.indexOf(a)<0||e.__cache__[a].push(r.fn))}))}))},Jb.prototype.at=function(e,a,r){var n=this.__find__(e),i=r||{};if(-1===n)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=a,this.__rules__[n].alt=i.alt||[],this.__cache__=null},Jb.prototype.before=function(e,a,r,n){var i=this.__find__(e),t=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:a,enabled:!0,fn:r,alt:t.alt||[]}),this.__cache__=null},Jb.prototype.after=function(e,a,r,n){var i=this.__find__(e),t=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:a,enabled:!0,fn:r,alt:t.alt||[]}),this.__cache__=null},Jb.prototype.push=function(e,a,r){var n=r||{};this.__rules__.push({name:e,enabled:!0,fn:a,alt:n.alt||[]}),this.__cache__=null},Jb.prototype.enable=function(e,a){Array.isArray(e)||(e=[e]);var r=[];return e.forEach((function(e){var n=this.__find__(e);if(n<0){if(a)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!0,r.push(e)}),this),this.__cache__=null,r},Jb.prototype.enableOnly=function(e,a){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,a)},Jb.prototype.disable=function(e,a){Array.isArray(e)||(e=[e]);var r=[];return e.forEach((function(e){var n=this.__find__(e);if(n<0){if(a)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!1,r.push(e)}),this),this.__cache__=null,r},Jb.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var Yb=Jb,Xb=/\r\n?|\n/g,Qb=/\0/g,ek=ib.arrayReplaceAt;function ak(e){return/^<\/a\s*>/i.test(e)}var rk=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,nk=/\((c|tm|r)\)/i,ik=/\((c|tm|r)\)/gi,tk={c:"©",r:"®",tm:"™"};function ok(e,a){return tk[a.toLowerCase()]}function sk(e){var a,r,n=0;for(a=e.length-1;a>=0;a--)"text"!==(r=e[a]).type||n||(r.content=r.content.replace(ik,ok)),"link_open"===r.type&&"auto"===r.info&&n--,"link_close"===r.type&&"auto"===r.info&&n++}function lk(e){var a,r,n=0;for(a=e.length-1;a>=0;a--)"text"!==(r=e[a]).type||n||rk.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&n--,"link_close"===r.type&&"auto"===r.info&&n++}var ck=ib.isWhiteSpace,dk=ib.isPunctChar,uk=ib.isMdAsciiPunct,hk=/['"]/,mk=/['"]/g;function gk(e,a,r){return e.slice(0,a)+r+e.slice(a+1)}function pk(e,a){var r,n,i,t,o,s,l,c,d,u,h,m,g,p,b,k,f,y,v,w,z;for(v=[],r=0;r<e.length;r++){for(n=e[r],l=e[r].level,f=v.length-1;f>=0&&!(v[f].level<=l);f--);if(v.length=f+1,"text"===n.type){o=0,s=(i=n.content).length;e:for(;o<s&&(mk.lastIndex=o,t=mk.exec(i));){if(b=k=!0,o=t.index+1,y="'"===t[0],d=32,t.index-1>=0)d=i.charCodeAt(t.index-1);else for(f=r-1;f>=0&&("softbreak"!==e[f].type&&"hardbreak"!==e[f].type);f--)if(e[f].content){d=e[f].content.charCodeAt(e[f].content.length-1);break}if(u=32,o<s)u=i.charCodeAt(o);else for(f=r+1;f<e.length&&("softbreak"!==e[f].type&&"hardbreak"!==e[f].type);f++)if(e[f].content){u=e[f].content.charCodeAt(0);break}if(h=uk(d)||dk(String.fromCharCode(d)),m=uk(u)||dk(String.fromCharCode(u)),g=ck(d),(p=ck(u))?b=!1:m&&(g||h||(b=!1)),g?k=!1:h&&(p||m||(k=!1)),34===u&&'"'===t[0]&&d>=48&&d<=57&&(k=b=!1),b&&k&&(b=h,k=m),b||k){if(k)for(f=v.length-1;f>=0&&(c=v[f],!(v[f].level<l));f--)if(c.single===y&&v[f].level===l){c=v[f],y?(w=a.md.options.quotes[2],z=a.md.options.quotes[3]):(w=a.md.options.quotes[0],z=a.md.options.quotes[1]),n.content=gk(n.content,t.index,z),e[c.token].content=gk(e[c.token].content,c.pos,w),o+=z.length-1,c.token===r&&(o+=w.length-1),s=(i=n.content).length,v.length=f;continue e}b?v.push({token:r,pos:t.index,single:y,level:l}):k&&y&&(n.content=gk(n.content,t.index,"’"))}else y&&(n.content=gk(n.content,t.index,"’"))}}}}function bk(e,a,r){this.type=e,this.tag=a,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}bk.prototype.attrIndex=function(e){var a,r,n;if(!this.attrs)return-1;for(r=0,n=(a=this.attrs).length;r<n;r++)if(a[r][0]===e)return r;return-1},bk.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},bk.prototype.attrSet=function(e,a){var r=this.attrIndex(e),n=[e,a];r<0?this.attrPush(n):this.attrs[r]=n},bk.prototype.attrGet=function(e){var a=this.attrIndex(e),r=null;return a>=0&&(r=this.attrs[a][1]),r},bk.prototype.attrJoin=function(e,a){var r=this.attrIndex(e);r<0?this.attrPush([e,a]):this.attrs[r][1]=this.attrs[r][1]+" "+a};var kk=bk,fk=kk;function yk(e,a,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=a}yk.prototype.Token=fk;var vk=yk,wk=Yb,zk=[["normalize",function(e){var a;a=(a=e.src.replace(Xb,"\n")).replace(Qb,"�"),e.src=a}],["block",function(e){var a;e.inlineMode?((a=new e.Token("inline","",0)).content=e.src,a.map=[0,1],a.children=[],e.tokens.push(a)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){var a,r,n,i=e.tokens;for(r=0,n=i.length;r<n;r++)"inline"===(a=i[r]).type&&e.md.inline.parse(a.content,e.md,e.env,a.children)}],["linkify",function(e){var a,r,n,i,t,o,s,l,c,d,u,h,m,g,p,b,k,f,y=e.tokens;if(e.md.options.linkify)for(r=0,n=y.length;r<n;r++)if("inline"===y[r].type&&e.md.linkify.pretest(y[r].content))for(m=0,a=(i=y[r].children).length-1;a>=0;a--)if("link_close"!==(o=i[a]).type){if("html_inline"===o.type&&(f=o.content,/^<a[>\s]/i.test(f)&&m>0&&m--,ak(o.content)&&m++),!(m>0)&&"text"===o.type&&e.md.linkify.test(o.content)){for(c=o.content,k=e.md.linkify.match(c),s=[],h=o.level,u=0,k.length>0&&0===k[0].index&&a>0&&"text_special"===i[a-1].type&&(k=k.slice(1)),l=0;l<k.length;l++)g=k[l].url,p=e.md.normalizeLink(g),e.md.validateLink(p)&&(b=k[l].text,b=k[l].schema?"mailto:"!==k[l].schema||/^mailto:/i.test(b)?e.md.normalizeLinkText(b):e.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,""),(d=k[l].index)>u&&((t=new e.Token("text","",0)).content=c.slice(u,d),t.level=h,s.push(t)),(t=new e.Token("link_open","a",1)).attrs=[["href",p]],t.level=h++,t.markup="linkify",t.info="auto",s.push(t),(t=new e.Token("text","",0)).content=b,t.level=h,s.push(t),(t=new e.Token("link_close","a",-1)).level=--h,t.markup="linkify",t.info="auto",s.push(t),u=k[l].lastIndex);u<c.length&&((t=new e.Token("text","",0)).content=c.slice(u),t.level=h,s.push(t)),y[r].children=i=ek(i,a,s)}}else for(a--;i[a].level!==o.level&&"link_open"!==i[a].type;)a--}],["replacements",function(e){var a;if(e.md.options.typographer)for(a=e.tokens.length-1;a>=0;a--)"inline"===e.tokens[a].type&&(nk.test(e.tokens[a].content)&&sk(e.tokens[a].children),rk.test(e.tokens[a].content)&&lk(e.tokens[a].children))}],["smartquotes",function(e){var a;if(e.md.options.typographer)for(a=e.tokens.length-1;a>=0;a--)"inline"===e.tokens[a].type&&hk.test(e.tokens[a].content)&&pk(e.tokens[a].children,e)}],["text_join",function(e){var a,r,n,i,t,o,s=e.tokens;for(a=0,r=s.length;a<r;a++)if("inline"===s[a].type){for(t=(n=s[a].children).length,i=0;i<t;i++)"text_special"===n[i].type&&(n[i].type="text");for(i=o=0;i<t;i++)"text"===n[i].type&&i+1<t&&"text"===n[i+1].type?n[i+1].content=n[i].content+n[i+1].content:(i!==o&&(n[o]=n[i]),o++);i!==o&&(n.length=o)}}]];function jk(){this.ruler=new wk;for(var e=0;e<zk.length;e++)this.ruler.push(zk[e][0],zk[e][1])}jk.prototype.process=function(e){var a,r,n;for(a=0,r=(n=this.ruler.getRules("")).length;a<r;a++)n[a](e)},jk.prototype.State=vk;var xk=jk,qk=ib.isSpace;function $k(e,a){var r=e.bMarks[a]+e.tShift[a],n=e.eMarks[a];return e.src.slice(r,n)}function Ck(e){var a,r=[],n=0,i=e.length,t=!1,o=0,s="";for(a=e.charCodeAt(n);n<i;)124===a&&(t?(s+=e.substring(o,n-1),o=n):(r.push(s+e.substring(o,n)),s="",o=n+1)),t=92===a,n++,a=e.charCodeAt(n);return r.push(s+e.substring(o)),r}var _k=ib.isSpace,Sk=ib.isSpace,Ek=ib.isSpace;function Ak(e,a){var r,n,i,t;return n=e.bMarks[a]+e.tShift[a],i=e.eMarks[a],42!==(r=e.src.charCodeAt(n++))&&45!==r&&43!==r||n<i&&(t=e.src.charCodeAt(n),!Ek(t))?-1:n}function Ok(e,a){var r,n=e.bMarks[a]+e.tShift[a],i=n,t=e.eMarks[a];if(i+1>=t)return-1;if((r=e.src.charCodeAt(i++))<48||r>57)return-1;for(;;){if(i>=t)return-1;if(!((r=e.src.charCodeAt(i++))>=48&&r<=57)){if(41===r||46===r)break;return-1}if(i-n>=10)return-1}return i<t&&(r=e.src.charCodeAt(i),!Ek(r))?-1:i}var Dk=ib.normalizeReference,Mk=ib.isSpace,Fk={},Tk="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Nk="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Ik=new RegExp("^(?:"+Tk+"|"+Nk+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),Pk=new RegExp("^(?:"+Tk+"|"+Nk+")");Fk.HTML_TAG_RE=Ik,Fk.HTML_OPEN_CLOSE_TAG_RE=Pk;var Rk=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Lk=Fk.HTML_OPEN_CLOSE_TAG_RE,Bk=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Rk.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Lk.source+"\\s*$"),/^$/,!1]],Vk=ib.isSpace,Uk=kk,Hk=ib.isSpace;function Gk(e,a,r,n){var i,t,o,s,l,c,d,u;for(this.src=e,this.md=a,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",u=!1,o=s=c=d=0,l=(t=this.src).length;s<l;s++){if(i=t.charCodeAt(s),!u){if(Hk(i)){c++,9===i?d+=4-d%4:d++;continue}u=!0}10!==i&&s!==l-1||(10!==i&&s++,this.bMarks.push(o),this.eMarks.push(s),this.tShift.push(c),this.sCount.push(d),this.bsCount.push(0),u=!1,c=0,d=0,o=s+1)}this.bMarks.push(t.length),this.eMarks.push(t.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Gk.prototype.push=function(e,a,r){var n=new Uk(e,a,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},Gk.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Gk.prototype.skipEmptyLines=function(e){for(var a=this.lineMax;e<a&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Gk.prototype.skipSpaces=function(e){for(var a,r=this.src.length;e<r&&(a=this.src.charCodeAt(e),Hk(a));e++);return e},Gk.prototype.skipSpacesBack=function(e,a){if(e<=a)return e;for(;e>a;)if(!Hk(this.src.charCodeAt(--e)))return e+1;return e},Gk.prototype.skipChars=function(e,a){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===a;e++);return e},Gk.prototype.skipCharsBack=function(e,a,r){if(e<=r)return e;for(;e>r;)if(a!==this.src.charCodeAt(--e))return e+1;return e},Gk.prototype.getLines=function(e,a,r,n){var i,t,o,s,l,c,d,u=e;if(e>=a)return"";for(c=new Array(a-e),i=0;u<a;u++,i++){for(t=0,d=s=this.bMarks[u],l=u+1<a||n?this.eMarks[u]+1:this.eMarks[u];s<l&&t<r;){if(o=this.src.charCodeAt(s),Hk(o))9===o?t+=4-(t+this.bsCount[u])%4:t++;else{if(!(s-d<this.tShift[u]))break;t++}s++}c[i]=t>r?new Array(t-r+1).join(" ")+this.src.slice(s,l):this.src.slice(s,l)}return c.join("")},Gk.prototype.Token=Uk;var Wk=Gk,Zk=Yb,Kk=[["table",function(e,a,r,n){var i,t,o,s,l,c,d,u,h,m,g,p,b,k,f,y,v,w;if(a+2>r)return!1;if(c=a+1,e.sCount[c]<e.blkIndent)return!1;if(e.sCount[c]-e.blkIndent>=4)return!1;if((o=e.bMarks[c]+e.tShift[c])>=e.eMarks[c])return!1;if(124!==(v=e.src.charCodeAt(o++))&&45!==v&&58!==v)return!1;if(o>=e.eMarks[c])return!1;if(124!==(w=e.src.charCodeAt(o++))&&45!==w&&58!==w&&!qk(w))return!1;if(45===v&&qk(w))return!1;for(;o<e.eMarks[c];){if(124!==(i=e.src.charCodeAt(o))&&45!==i&&58!==i&&!qk(i))return!1;o++}for(d=(t=$k(e,a+1)).split("|"),m=[],s=0;s<d.length;s++){if(!(g=d[s].trim())){if(0===s||s===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;58===g.charCodeAt(g.length-1)?m.push(58===g.charCodeAt(0)?"center":"right"):58===g.charCodeAt(0)?m.push("left"):m.push("")}if(-1===(t=$k(e,a).trim()).indexOf("|"))return!1;if(e.sCount[a]-e.blkIndent>=4)return!1;if((d=Ck(t)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),0===(u=d.length)||u!==m.length)return!1;if(n)return!0;for(k=e.parentType,e.parentType="table",y=e.md.block.ruler.getRules("blockquote"),(h=e.push("table_open","table",1)).map=p=[a,0],(h=e.push("thead_open","thead",1)).map=[a,a+1],(h=e.push("tr_open","tr",1)).map=[a,a+1],s=0;s<d.length;s++)h=e.push("th_open","th",1),m[s]&&(h.attrs=[["style","text-align:"+m[s]]]),(h=e.push("inline","",0)).content=d[s].trim(),h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),c=a+2;c<r&&!(e.sCount[c]<e.blkIndent);c++){for(f=!1,s=0,l=y.length;s<l;s++)if(y[s](e,c,r,!0)){f=!0;break}if(f)break;if(!(t=$k(e,c).trim()))break;if(e.sCount[c]-e.blkIndent>=4)break;for((d=Ck(t)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),c===a+2&&((h=e.push("tbody_open","tbody",1)).map=b=[a+2,0]),(h=e.push("tr_open","tr",1)).map=[c,c+1],s=0;s<u;s++)h=e.push("td_open","td",1),m[s]&&(h.attrs=[["style","text-align:"+m[s]]]),(h=e.push("inline","",0)).content=d[s]?d[s].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return b&&(h=e.push("tbody_close","tbody",-1),b[1]=c),h=e.push("table_close","table",-1),p[1]=c,e.parentType=k,e.line=c,!0},["paragraph","reference"]],["code",function(e,a,r){var n,i,t;if(e.sCount[a]-e.blkIndent<4)return!1;for(i=n=a+1;n<r;)if(e.isEmpty(n))n++;else{if(!(e.sCount[n]-e.blkIndent>=4))break;i=++n}return e.line=i,(t=e.push("code_block","code",0)).content=e.getLines(a,i,4+e.blkIndent,!1)+"\n",t.map=[a,e.line],!0}],["fence",function(e,a,r,n){var i,t,o,s,l,c,d,u=!1,h=e.bMarks[a]+e.tShift[a],m=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(h+3>m)return!1;if(126!==(i=e.src.charCodeAt(h))&&96!==i)return!1;if(l=h,(t=(h=e.skipChars(h,i))-l)<3)return!1;if(d=e.src.slice(l,h),o=e.src.slice(h,m),96===i&&o.indexOf(String.fromCharCode(i))>=0)return!1;if(n)return!0;for(s=a;!(++s>=r)&&!((h=l=e.bMarks[s]+e.tShift[s])<(m=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(h)===i&&!(e.sCount[s]-e.blkIndent>=4||(h=e.skipChars(h,i))-l<t||(h=e.skipSpaces(h))<m)){u=!0;break}return t=e.sCount[a],e.line=s+(u?1:0),(c=e.push("fence","code",0)).info=o,c.content=e.getLines(a+1,s,t,!0),c.markup=d,c.map=[a,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,a,r,n){var i,t,o,s,l,c,d,u,h,m,g,p,b,k,f,y,v,w,z,j,x=e.lineMax,q=e.bMarks[a]+e.tShift[a],$=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(q))return!1;if(n)return!0;for(m=[],g=[],k=[],f=[],w=e.md.block.ruler.getRules("blockquote"),b=e.parentType,e.parentType="blockquote",u=a;u<r&&(j=e.sCount[u]<e.blkIndent,!((q=e.bMarks[u]+e.tShift[u])>=($=e.eMarks[u])));u++)if(62!==e.src.charCodeAt(q++)||j){if(c)break;for(v=!1,o=0,l=w.length;o<l;o++)if(w[o](e,u,r,!0)){v=!0;break}if(v){e.lineMax=u,0!==e.blkIndent&&(m.push(e.bMarks[u]),g.push(e.bsCount[u]),f.push(e.tShift[u]),k.push(e.sCount[u]),e.sCount[u]-=e.blkIndent);break}m.push(e.bMarks[u]),g.push(e.bsCount[u]),f.push(e.tShift[u]),k.push(e.sCount[u]),e.sCount[u]=-1}else{for(s=e.sCount[u]+1,32===e.src.charCodeAt(q)?(q++,s++,i=!1,y=!0):9===e.src.charCodeAt(q)?(y=!0,(e.bsCount[u]+s)%4==3?(q++,s++,i=!1):i=!0):y=!1,h=s,m.push(e.bMarks[u]),e.bMarks[u]=q;q<$&&(t=e.src.charCodeAt(q),_k(t));)9===t?h+=4-(h+e.bsCount[u]+(i?1:0))%4:h++,q++;c=q>=$,g.push(e.bsCount[u]),e.bsCount[u]=e.sCount[u]+1+(y?1:0),k.push(e.sCount[u]),e.sCount[u]=h-s,f.push(e.tShift[u]),e.tShift[u]=q-e.bMarks[u]}for(p=e.blkIndent,e.blkIndent=0,(z=e.push("blockquote_open","blockquote",1)).markup=">",z.map=d=[a,0],e.md.block.tokenize(e,a,u),(z=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=x,e.parentType=b,d[1]=e.line,o=0;o<f.length;o++)e.bMarks[o+a]=m[o],e.tShift[o+a]=f[o],e.sCount[o+a]=k[o],e.bsCount[o+a]=g[o];return e.blkIndent=p,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,a,r,n){var i,t,o,s,l=e.bMarks[a]+e.tShift[a],c=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(t=1;l<c;){if((o=e.src.charCodeAt(l++))!==i&&!Sk(o))return!1;o===i&&t++}return!(t<3)&&(n||(e.line=a+1,(s=e.push("hr","hr",0)).map=[a,e.line],s.markup=Array(t+1).join(String.fromCharCode(i))),!0)},["paragraph","reference","blockquote","list"]],["list",function(e,a,r,n){var i,t,o,s,l,c,d,u,h,m,g,p,b,k,f,y,v,w,z,j,x,q,$,C,_,S,E,A=a,O=!1,D=!0;if(e.sCount[A]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[A]-e.listIndent>=4&&e.sCount[A]<e.blkIndent)return!1;if(n&&"paragraph"===e.parentType&&e.sCount[A]>=e.blkIndent&&(O=!0),(q=Ok(e,A))>=0){if(d=!0,C=e.bMarks[A]+e.tShift[A],b=Number(e.src.slice(C,q-1)),O&&1!==b)return!1}else{if(!((q=Ak(e,A))>=0))return!1;d=!1}if(O&&e.skipSpaces(q)>=e.eMarks[A])return!1;if(n)return!0;for(p=e.src.charCodeAt(q-1),g=e.tokens.length,d?(E=e.push("ordered_list_open","ol",1),1!==b&&(E.attrs=[["start",b]])):E=e.push("bullet_list_open","ul",1),E.map=m=[A,0],E.markup=String.fromCharCode(p),$=!1,S=e.md.block.ruler.getRules("list"),v=e.parentType,e.parentType="list";A<r;){for(x=q,k=e.eMarks[A],c=f=e.sCount[A]+q-(e.bMarks[A]+e.tShift[A]);x<k;){if(9===(i=e.src.charCodeAt(x)))f+=4-(f+e.bsCount[A])%4;else{if(32!==i)break;f++}x++}if((l=(t=x)>=k?1:f-c)>4&&(l=1),s=c+l,(E=e.push("list_item_open","li",1)).markup=String.fromCharCode(p),E.map=u=[A,0],d&&(E.info=e.src.slice(C,q-1)),j=e.tight,z=e.tShift[A],w=e.sCount[A],y=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=s,e.tight=!0,e.tShift[A]=t-e.bMarks[A],e.sCount[A]=f,t>=k&&e.isEmpty(A+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,A,r,!0),e.tight&&!$||(D=!1),$=e.line-A>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=y,e.tShift[A]=z,e.sCount[A]=w,e.tight=j,(E=e.push("list_item_close","li",-1)).markup=String.fromCharCode(p),A=e.line,u[1]=A,A>=r)break;if(e.sCount[A]<e.blkIndent)break;if(e.sCount[A]-e.blkIndent>=4)break;for(_=!1,o=0,h=S.length;o<h;o++)if(S[o](e,A,r,!0)){_=!0;break}if(_)break;if(d){if((q=Ok(e,A))<0)break;C=e.bMarks[A]+e.tShift[A]}else if((q=Ak(e,A))<0)break;if(p!==e.src.charCodeAt(q-1))break}return(E=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(p),m[1]=A,e.line=A,e.parentType=v,D&&function(e,a){var r,n,i=e.level+2;for(r=a+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===i&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,g),!0},["paragraph","reference","blockquote"]],["reference",function(e,a,r,n){var i,t,o,s,l,c,d,u,h,m,g,p,b,k,f,y,v=0,w=e.bMarks[a]+e.tShift[a],z=e.eMarks[a],j=a+1;if(e.sCount[a]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w<z;)if(93===e.src.charCodeAt(w)&&92!==e.src.charCodeAt(w-1)){if(w+1===z)return!1;if(58!==e.src.charCodeAt(w+1))return!1;break}for(s=e.lineMax,f=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";j<s&&!e.isEmpty(j);j++)if(!(e.sCount[j]-e.blkIndent>3||e.sCount[j]<0)){for(k=!1,c=0,d=f.length;c<d;c++)if(f[c](e,j,s,!0)){k=!0;break}if(k)break}for(z=(b=e.getLines(a,j,e.blkIndent,!1).trim()).length,w=1;w<z;w++){if(91===(i=b.charCodeAt(w)))return!1;if(93===i){h=w;break}(10===i||92===i&&++w<z&&10===b.charCodeAt(w))&&v++}if(h<0||58!==b.charCodeAt(h+1))return!1;for(w=h+2;w<z;w++)if(10===(i=b.charCodeAt(w)))v++;else if(!Mk(i))break;if(!(g=e.md.helpers.parseLinkDestination(b,w,z)).ok)return!1;if(l=e.md.normalizeLink(g.str),!e.md.validateLink(l))return!1;for(t=w=g.pos,o=v+=g.lines,p=w;w<z;w++)if(10===(i=b.charCodeAt(w)))v++;else if(!Mk(i))break;for(g=e.md.helpers.parseLinkTitle(b,w,z),w<z&&p!==w&&g.ok?(y=g.str,w=g.pos,v+=g.lines):(y="",w=t,v=o);w<z&&(i=b.charCodeAt(w),Mk(i));)w++;if(w<z&&10!==b.charCodeAt(w)&&y)for(y="",w=t,v=o;w<z&&(i=b.charCodeAt(w),Mk(i));)w++;return!(w<z&&10!==b.charCodeAt(w))&&(!!(u=Dk(b.slice(1,h)))&&(n||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[u]&&(e.env.references[u]={title:y,href:l}),e.parentType=m,e.line=a+v+1),!0))}],["html_block",function(e,a,r,n){var i,t,o,s,l=e.bMarks[a]+e.tShift[a],c=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(s=e.src.slice(l,c),i=0;i<Bk.length&&!Bk[i][0].test(s);i++);if(i===Bk.length)return!1;if(n)return Bk[i][2];if(t=a+1,!Bk[i][1].test(s))for(;t<r&&!(e.sCount[t]<e.blkIndent);t++)if(l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t],s=e.src.slice(l,c),Bk[i][1].test(s)){0!==s.length&&t++;break}return e.line=t,(o=e.push("html_block","",0)).map=[a,t],o.content=e.getLines(a,t,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,a,r,n){var i,t,o,s,l=e.bMarks[a]+e.tShift[a],c=e.eMarks[a];if(e.sCount[a]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=c)return!1;for(t=1,i=e.src.charCodeAt(++l);35===i&&l<c&&t<=6;)t++,i=e.src.charCodeAt(++l);return!(t>6||l<c&&!Vk(i))&&(n||(c=e.skipSpacesBack(c,l),(o=e.skipCharsBack(c,35,l))>l&&Vk(e.src.charCodeAt(o-1))&&(c=o),e.line=a+1,(s=e.push("heading_open","h"+String(t),1)).markup="########".slice(0,t),s.map=[a,e.line],(s=e.push("inline","",0)).content=e.src.slice(l,c).trim(),s.map=[a,e.line],s.children=[],(s=e.push("heading_close","h"+String(t),-1)).markup="########".slice(0,t)),!0)},["paragraph","reference","blockquote"]],["lheading",function(e,a,r){var n,i,t,o,s,l,c,d,u,h,m=a+1,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[a]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";m<r&&!e.isEmpty(m);m++)if(!(e.sCount[m]-e.blkIndent>3)){if(e.sCount[m]>=e.blkIndent&&(l=e.bMarks[m]+e.tShift[m])<(c=e.eMarks[m])&&(45===(u=e.src.charCodeAt(l))||61===u)&&(l=e.skipChars(l,u),(l=e.skipSpaces(l))>=c)){d=61===u?1:2;break}if(!(e.sCount[m]<0)){for(i=!1,t=0,o=g.length;t<o;t++)if(g[t](e,m,r,!0)){i=!0;break}if(i)break}}return!!d&&(n=e.getLines(a,m,e.blkIndent,!1).trim(),e.line=m+1,(s=e.push("heading_open","h"+String(d),1)).markup=String.fromCharCode(u),s.map=[a,e.line],(s=e.push("inline","",0)).content=n,s.map=[a,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(d),-1)).markup=String.fromCharCode(u),e.parentType=h,!0)}],["paragraph",function(e,a,r){var n,i,t,o,s,l,c=a+1,d=e.md.block.ruler.getRules("paragraph");for(l=e.parentType,e.parentType="paragraph";c<r&&!e.isEmpty(c);c++)if(!(e.sCount[c]-e.blkIndent>3||e.sCount[c]<0)){for(i=!1,t=0,o=d.length;t<o;t++)if(d[t](e,c,r,!0)){i=!0;break}if(i)break}return n=e.getLines(a,c,e.blkIndent,!1).trim(),e.line=c,(s=e.push("paragraph_open","p",1)).map=[a,e.line],(s=e.push("inline","",0)).content=n,s.map=[a,e.line],s.children=[],s=e.push("paragraph_close","p",-1),e.parentType=l,!0}]];function Jk(){this.ruler=new Zk;for(var e=0;e<Kk.length;e++)this.ruler.push(Kk[e][0],Kk[e][1],{alt:(Kk[e][2]||[]).slice()})}Jk.prototype.tokenize=function(e,a,r){for(var n,i,t,o=this.ruler.getRules(""),s=o.length,l=a,c=!1,d=e.md.options.maxNesting;l<r&&(e.line=l=e.skipEmptyLines(l),!(l>=r))&&!(e.sCount[l]<e.blkIndent);){if(e.level>=d){e.line=r;break}for(t=e.line,i=0;i<s;i++)if(n=o[i](e,l,r,!1)){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!n)throw new Error("none of the block rules matched");e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),(l=e.line)<r&&e.isEmpty(l)&&(c=!0,l++,e.line=l)}},Jk.prototype.parse=function(e,a,r,n){var i;e&&(i=new this.State(e,a,r,n),this.tokenize(i,i.line,i.lineMax))},Jk.prototype.State=Wk;var Yk=Jk;function Xk(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var Qk=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,ef=ib.isSpace,af=ib.isSpace,rf=[],nf=0;nf<256;nf++)rf.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){rf[e.charCodeAt(0)]=1}));var tf={};function of(e,a){var r,n,i,t,o,s=[],l=a.length;for(r=0;r<l;r++)126===(i=a[r]).marker&&-1!==i.end&&(t=a[i.end],(o=e.tokens[i.token]).type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",(o=e.tokens[t.token]).type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="","text"===e.tokens[t.token-1].type&&"~"===e.tokens[t.token-1].content&&s.push(t.token-1));for(;s.length;){for(n=(r=s.pop())+1;n<e.tokens.length&&"s_close"===e.tokens[n].type;)n++;r!==--n&&(o=e.tokens[n],e.tokens[n]=e.tokens[r],e.tokens[r]=o)}}tf.tokenize=function(e,a){var r,n,i,t,o=e.pos,s=e.src.charCodeAt(o);if(a)return!1;if(126!==s)return!1;if(i=(n=e.scanDelims(e.pos,!0)).length,t=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=t,i--),r=0;r<i;r+=2)e.push("text","",0).content=t+t,e.delimiters.push({marker:s,length:0,token:e.tokens.length-1,end:-1,open:n.can_open,close:n.can_close});return e.pos+=n.length,!0},tf.postProcess=function(e){var a,r=e.tokens_meta,n=e.tokens_meta.length;for(of(e,e.delimiters),a=0;a<n;a++)r[a]&&r[a].delimiters&&of(e,r[a].delimiters)};var sf={};function lf(e,a){var r,n,i,t,o,s;for(r=a.length-1;r>=0;r--)95!==(n=a[r]).marker&&42!==n.marker||-1!==n.end&&(i=a[n.end],s=r>0&&a[r-1].end===n.end+1&&a[r-1].marker===n.marker&&a[r-1].token===n.token-1&&a[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),(t=e.tokens[n.token]).type=s?"strong_open":"em_open",t.tag=s?"strong":"em",t.nesting=1,t.markup=s?o+o:o,t.content="",(t=e.tokens[i.token]).type=s?"strong_close":"em_close",t.tag=s?"strong":"em",t.nesting=-1,t.markup=s?o+o:o,t.content="",s&&(e.tokens[a[r-1].token].content="",e.tokens[a[n.end+1].token].content="",r--))}sf.tokenize=function(e,a){var r,n,i=e.pos,t=e.src.charCodeAt(i);if(a)return!1;if(95!==t&&42!==t)return!1;for(n=e.scanDelims(e.pos,42===t),r=0;r<n.length;r++)e.push("text","",0).content=String.fromCharCode(t),e.delimiters.push({marker:t,length:n.length,token:e.tokens.length-1,end:-1,open:n.can_open,close:n.can_close});return e.pos+=n.length,!0},sf.postProcess=function(e){var a,r=e.tokens_meta,n=e.tokens_meta.length;for(lf(e,e.delimiters),a=0;a<n;a++)r[a]&&r[a].delimiters&&lf(e,r[a].delimiters)};var cf=ib.normalizeReference,df=ib.isSpace,uf=ib.normalizeReference,hf=ib.isSpace,mf=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,gf=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,pf=Fk.HTML_TAG_RE;var bf=tb,kf=ib.has,ff=ib.isValidEntityCode,yf=ib.fromCodePoint,vf=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,wf=/^&([a-z][a-z0-9]{1,31});/i;function zf(e){var a,r,n,i,t,o,s,l,c={},d=e.length;if(d){var u=0,h=-2,m=[];for(a=0;a<d;a++)if(n=e[a],m.push(0),e[u].marker===n.marker&&h===n.token-1||(u=a),h=n.token,n.length=n.length||0,n.close){for(c.hasOwnProperty(n.marker)||(c[n.marker]=[-1,-1,-1,-1,-1,-1]),t=c[n.marker][(n.open?3:0)+n.length%3],o=r=u-m[u]-1;r>t;r-=m[r]+1)if((i=e[r]).marker===n.marker&&i.open&&i.end<0&&(s=!1,(i.close||n.open)&&(i.length+n.length)%3==0&&(i.length%3==0&&n.length%3==0||(s=!0)),!s)){l=r>0&&!e[r-1].open?m[r-1]+1:0,m[a]=a-r+l,m[r]=l,n.open=!1,i.end=a,i.close=!1,o=-1,h=-2;break}-1!==o&&(c[n.marker][(n.open?3:0)+(n.length||0)%3]=o)}}}var jf=kk,xf=ib.isWhiteSpace,qf=ib.isPunctChar,$f=ib.isMdAsciiPunct;function Cf(e,a,r,n){this.src=e,this.env=r,this.md=a,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Cf.prototype.pushPending=function(){var e=new jf("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Cf.prototype.push=function(e,a,r){this.pending&&this.pushPending();var n=new jf(e,a,r),i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n},Cf.prototype.scanDelims=function(e,a){var r,n,i,t,o,s,l,c,d,u=e,h=!0,m=!0,g=this.posMax,p=this.src.charCodeAt(e);for(r=e>0?this.src.charCodeAt(e-1):32;u<g&&this.src.charCodeAt(u)===p;)u++;return i=u-e,n=u<g?this.src.charCodeAt(u):32,l=$f(r)||qf(String.fromCharCode(r)),d=$f(n)||qf(String.fromCharCode(n)),s=xf(r),(c=xf(n))?h=!1:d&&(s||l||(h=!1)),s?m=!1:l&&(c||d||(m=!1)),a?(t=h,o=m):(t=h&&(!m||l),o=m&&(!h||d)),{can_open:t,can_close:o,length:i}},Cf.prototype.Token=jf;var _f=Cf,Sf=Yb,Ef=[["text",function(e,a){for(var r=e.pos;r<e.posMax&&!Xk(e.src.charCodeAt(r));)r++;return r!==e.pos&&(a||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}],["linkify",function(e,a){var r,n,i,t,o,s,l;return!!e.md.options.linkify&&(!(e.linkLevel>0)&&(!((r=e.pos)+3>e.posMax)&&(58===e.src.charCodeAt(r)&&(47===e.src.charCodeAt(r+1)&&(47===e.src.charCodeAt(r+2)&&(!!(n=e.pending.match(Qk))&&(i=n[1],!!(t=e.md.linkify.matchAtStart(e.src.slice(r-i.length)))&&(!((o=t.url).length<=i.length)&&(o=o.replace(/\*+$/,""),s=e.md.normalizeLink(o),!!e.md.validateLink(s)&&(a||(e.pending=e.pending.slice(0,-i.length),(l=e.push("link_open","a",1)).attrs=[["href",s]],l.markup="linkify",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(o),(l=e.push("link_close","a",-1)).markup="linkify",l.info="auto"),e.pos+=o.length-i.length,!0))))))))))}],["newline",function(e,a){var r,n,i,t=e.pos;if(10!==e.src.charCodeAt(t))return!1;if(r=e.pending.length-1,n=e.posMax,!a)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){for(i=r-1;i>=1&&32===e.pending.charCodeAt(i-1);)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(t++;t<n&&ef(e.src.charCodeAt(t));)t++;return e.pos=t,!0}],["escape",function(e,a){var r,n,i,t,o,s=e.pos,l=e.posMax;if(92!==e.src.charCodeAt(s))return!1;if(++s>=l)return!1;if(10===(r=e.src.charCodeAt(s))){for(a||e.push("hardbreak","br",0),s++;s<l&&(r=e.src.charCodeAt(s),af(r));)s++;return e.pos=s,!0}return t=e.src[s],r>=55296&&r<=56319&&s+1<l&&(n=e.src.charCodeAt(s+1))>=56320&&n<=57343&&(t+=e.src[s+1],s++),i="\\"+t,a||(o=e.push("text_special","",0),r<256&&0!==rf[r]?o.content=t:o.content=i,o.markup=i,o.info="escape"),e.pos=s+1,!0}],["backticks",function(e,a){var r,n,i,t,o,s,l,c,d=e.pos;if(96!==e.src.charCodeAt(d))return!1;for(r=d,d++,n=e.posMax;d<n&&96===e.src.charCodeAt(d);)d++;if(l=(i=e.src.slice(r,d)).length,e.backticksScanned&&(e.backticks[l]||0)<=r)return a||(e.pending+=i),e.pos+=l,!0;for(s=d;-1!==(o=e.src.indexOf("`",s));){for(s=o+1;s<n&&96===e.src.charCodeAt(s);)s++;if((c=s-o)===l)return a||((t=e.push("code_inline","code",0)).markup=i,t.content=e.src.slice(d,o).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[c]=o}return e.backticksScanned=!0,a||(e.pending+=i),e.pos+=l,!0}],["strikethrough",tf.tokenize],["emphasis",sf.tokenize],["link",function(e,a){var r,n,i,t,o,s,l,c,d="",u="",h=e.pos,m=e.posMax,g=e.pos,p=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(o=e.pos+1,(t=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((s=t+1)<m&&40===e.src.charCodeAt(s)){for(p=!1,s++;s<m&&(n=e.src.charCodeAt(s),df(n)||10===n);s++);if(s>=m)return!1;if(g=s,(l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok){for(d=e.md.normalizeLink(l.str),e.md.validateLink(d)?s=l.pos:d="",g=s;s<m&&(n=e.src.charCodeAt(s),df(n)||10===n);s++);if(l=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<m&&g!==s&&l.ok)for(u=l.str,s=l.pos;s<m&&(n=e.src.charCodeAt(s),df(n)||10===n);s++);}(s>=m||41!==e.src.charCodeAt(s))&&(p=!0),s++}if(p){if(void 0===e.env.references)return!1;if(s<m&&91===e.src.charCodeAt(s)?(g=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?i=e.src.slice(g,s++):s=t+1):s=t+1,i||(i=e.src.slice(o,t)),!(c=e.env.references[cf(i)]))return e.pos=h,!1;d=c.href,u=c.title}return a||(e.pos=o,e.posMax=t,e.push("link_open","a",1).attrs=r=[["href",d]],u&&r.push(["title",u]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)),e.pos=s,e.posMax=m,!0}],["image",function(e,a){var r,n,i,t,o,s,l,c,d,u,h,m,g,p="",b=e.pos,k=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(s=e.pos+2,(o=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((l=o+1)<k&&40===e.src.charCodeAt(l)){for(l++;l<k&&(n=e.src.charCodeAt(l),hf(n)||10===n);l++);if(l>=k)return!1;for(g=l,(d=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(p=e.md.normalizeLink(d.str),e.md.validateLink(p)?l=d.pos:p=""),g=l;l<k&&(n=e.src.charCodeAt(l),hf(n)||10===n);l++);if(d=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<k&&g!==l&&d.ok)for(u=d.str,l=d.pos;l<k&&(n=e.src.charCodeAt(l),hf(n)||10===n);l++);else u="";if(l>=k||41!==e.src.charCodeAt(l))return e.pos=b,!1;l++}else{if(void 0===e.env.references)return!1;if(l<k&&91===e.src.charCodeAt(l)?(g=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?t=e.src.slice(g,l++):l=o+1):l=o+1,t||(t=e.src.slice(s,o)),!(c=e.env.references[uf(t)]))return e.pos=b,!1;p=c.href,u=c.title}return a||(i=e.src.slice(s,o),e.md.inline.parse(i,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=r=[["src",p],["alt",""]],h.children=m,h.content=i,u&&r.push(["title",u])),e.pos=l,e.posMax=k,!0}],["autolink",function(e,a){var r,n,i,t,o,s,l=e.pos;if(60!==e.src.charCodeAt(l))return!1;for(o=e.pos,s=e.posMax;;){if(++l>=s)return!1;if(60===(t=e.src.charCodeAt(l)))return!1;if(62===t)break}return r=e.src.slice(o+1,l),gf.test(r)?(n=e.md.normalizeLink(r),!!e.md.validateLink(n)&&(a||((i=e.push("link_open","a",1)).attrs=[["href",n]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(r),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=r.length+2,!0)):!!mf.test(r)&&(n=e.md.normalizeLink("mailto:"+r),!!e.md.validateLink(n)&&(a||((i=e.push("link_open","a",1)).attrs=[["href",n]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(r),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=r.length+2,!0))}],["html_inline",function(e,a){var r,n,i,t,o,s=e.pos;return!!e.md.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(s)||s+2>=i)&&(!(33!==(r=e.src.charCodeAt(s+1))&&63!==r&&47!==r&&!function(e){var a=32|e;return a>=97&&a<=122}(r))&&(!!(n=e.src.slice(s).match(pf))&&(a||((t=e.push("html_inline","",0)).content=n[0],o=t.content,/^<a[>\s]/i.test(o)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--),e.pos+=n[0].length,!0))))}],["entity",function(e,a){var r,n,i,t=e.pos,o=e.posMax;if(38!==e.src.charCodeAt(t))return!1;if(t+1>=o)return!1;if(35===e.src.charCodeAt(t+1)){if(n=e.src.slice(t).match(vf))return a||(r="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),(i=e.push("text_special","",0)).content=ff(r)?yf(r):yf(65533),i.markup=n[0],i.info="entity"),e.pos+=n[0].length,!0}else if((n=e.src.slice(t).match(wf))&&kf(bf,n[1]))return a||((i=e.push("text_special","",0)).content=bf[n[1]],i.markup=n[0],i.info="entity"),e.pos+=n[0].length,!0;return!1}]],Af=[["balance_pairs",function(e){var a,r=e.tokens_meta,n=e.tokens_meta.length;for(zf(e.delimiters),a=0;a<n;a++)r[a]&&r[a].delimiters&&zf(r[a].delimiters)}],["strikethrough",tf.postProcess],["emphasis",sf.postProcess],["fragments_join",function(e){var a,r,n=0,i=e.tokens,t=e.tokens.length;for(a=r=0;a<t;a++)i[a].nesting<0&&n--,i[a].level=n,i[a].nesting>0&&n++,"text"===i[a].type&&a+1<t&&"text"===i[a+1].type?i[a+1].content=i[a].content+i[a+1].content:(a!==r&&(i[r]=i[a]),r++);a!==r&&(i.length=r)}]];function Of(){var e;for(this.ruler=new Sf,e=0;e<Ef.length;e++)this.ruler.push(Ef[e][0],Ef[e][1]);for(this.ruler2=new Sf,e=0;e<Af.length;e++)this.ruler2.push(Af[e][0],Af[e][1])}Of.prototype.skipToken=function(e){var a,r,n=e.pos,i=this.ruler.getRules(""),t=i.length,o=e.md.options.maxNesting,s=e.cache;if(void 0===s[n]){if(e.level<o){for(r=0;r<t;r++)if(e.level++,a=i[r](e,!0),e.level--,a){if(n>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,s[n]=e.pos}else e.pos=s[n]},Of.prototype.tokenize=function(e){for(var a,r,n,i=this.ruler.getRules(""),t=i.length,o=e.posMax,s=e.md.options.maxNesting;e.pos<o;){if(n=e.pos,e.level<s)for(r=0;r<t;r++)if(a=i[r](e,!1)){if(n>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(a){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Of.prototype.parse=function(e,a,r,n){var i,t,o,s=new this.State(e,a,r,n);for(this.tokenize(s),o=(t=this.ruler2.getRules("")).length,i=0;i<o;i++)t[i](s)},Of.prototype.State=_f;var Df,Mf,Ff=Of;function Tf(){return Mf?Df:(Mf=1,Df=function(e){var a={};e=e||{},a.src_Any=Nb().source,a.src_Cc=Ib().source,a.src_Z=Pb().source,a.src_P=ob.source,a.src_ZPCc=[a.src_Z,a.src_P,a.src_Cc].join("|"),a.src_ZCc=[a.src_Z,a.src_Cc].join("|");var r="[><|]";return a.src_pseudo_letter="(?:(?![><|]|"+a.src_ZPCc+")"+a.src_Any+")",a.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",a.src_auth="(?:(?:(?!"+a.src_ZCc+"|[@/\\[\\]()]).)+@)?",a.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",a.src_host_terminator="(?=$|[><|]|"+a.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+a.src_ZPCc+"))",a.src_path="(?:[/?#](?:(?!"+a.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+a.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+a.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+a.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+a.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+a.src_ZCc+"|[']).)+\\'|\\'(?="+a.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+a.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+a.src_ZCc+"|$)|;(?!"+a.src_ZCc+"|$)|\\!+(?!"+a.src_ZCc+"|[!]|$)|\\?(?!"+a.src_ZCc+"|[?]|$))+|\\/)?",a.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',a.src_xn="xn--[a-z0-9\\-]{1,59}",a.src_domain_root="(?:"+a.src_xn+"|"+a.src_pseudo_letter+"{1,63})",a.src_domain="(?:"+a.src_xn+"|(?:"+a.src_pseudo_letter+")|(?:"+a.src_pseudo_letter+"(?:-|"+a.src_pseudo_letter+"){0,61}"+a.src_pseudo_letter+"))",a.src_host="(?:(?:(?:(?:"+a.src_domain+")\\.)*"+a.src_domain+"))",a.tpl_host_fuzzy="(?:"+a.src_ip4+"|(?:(?:(?:"+a.src_domain+")\\.)+(?:%TLDS%)))",a.tpl_host_no_ip_fuzzy="(?:(?:(?:"+a.src_domain+")\\.)+(?:%TLDS%))",a.src_host_strict=a.src_host+a.src_host_terminator,a.tpl_host_fuzzy_strict=a.tpl_host_fuzzy+a.src_host_terminator,a.src_host_port_strict=a.src_host+a.src_port+a.src_host_terminator,a.tpl_host_port_fuzzy_strict=a.tpl_host_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_port_no_ip_fuzzy_strict=a.tpl_host_no_ip_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+a.src_ZPCc+"|>|$))",a.tpl_email_fuzzy='(^|[><|]|"|\\(|'+a.src_ZCc+")("+a.src_email_name+"@"+a.tpl_host_fuzzy_strict+")",a.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+a.src_ZPCc+"))((?![$+<=>^`||])"+a.tpl_host_port_fuzzy_strict+a.src_path+")",a.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+a.src_ZPCc+"))((?![$+<=>^`||])"+a.tpl_host_port_no_ip_fuzzy_strict+a.src_path+")",a})}function Nf(e){return Array.prototype.slice.call(arguments,1).forEach((function(a){a&&Object.keys(a).forEach((function(r){e[r]=a[r]}))})),e}function If(e){return Object.prototype.toString.call(e)}function Pf(e){return"[object Function]"===If(e)}function Rf(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Lf={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var Bf={"http:":{validate:function(e,a,r){var n=e.slice(a);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,a,r){var n=e.slice(a);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?a>=3&&":"===e[a-3]||a>=3&&"/"===e[a-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,a,r){var n=e.slice(a);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},Vf="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Uf(e){var a=e.re=Tf()(e.__opts__),r=e.__tlds__.slice();function n(e){return e.replace("%TLDS%",a.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(a.src_xn),a.src_tlds=r.join("|"),a.email_fuzzy=RegExp(n(a.tpl_email_fuzzy),"i"),a.link_fuzzy=RegExp(n(a.tpl_link_fuzzy),"i"),a.link_no_ip_fuzzy=RegExp(n(a.tpl_link_no_ip_fuzzy),"i"),a.host_fuzzy_test=RegExp(n(a.tpl_host_fuzzy_test),"i");var i=[];function t(e,a){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+a)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(a){var r=e.__schemas__[a];if(null!==r){var n={validate:null,link:null};if(e.__compiled__[a]=n,"[object Object]"===If(r))return!function(e){return"[object RegExp]"===If(e)}(r.validate)?Pf(r.validate)?n.validate=r.validate:t(a,r):n.validate=function(e){return function(a,r){var n=a.slice(r);return e.test(n)?n.match(e)[0].length:0}}(r.validate),void(Pf(r.normalize)?n.normalize=r.normalize:r.normalize?t(a,r):n.normalize=function(e,a){a.normalize(e)});!function(e){return"[object String]"===If(e)}(r)?t(a,r):i.push(a)}})),i.forEach((function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,a){a.normalize(e)}};var o=Object.keys(e.__compiled__).filter((function(a){return a.length>0&&e.__compiled__[a]})).map(Rf).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+a.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+a.src_ZPCc+"))("+o+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function Hf(e,a){var r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+a,this.lastIndex=n+a,this.raw=i,this.text=i,this.url=i}function Gf(e,a){var r=new Hf(e,a);return e.__compiled__[r.schema].normalize(r,e),r}function Wf(e,a){if(!(this instanceof Wf))return new Wf(e,a);var r;a||(r=e,Object.keys(r||{}).reduce((function(e,a){return e||Lf.hasOwnProperty(a)}),!1)&&(a=e,e={})),this.__opts__=Nf({},Lf,a),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Nf({},Bf,e),this.__compiled__={},this.__tlds__=Vf,this.__tlds_replaced__=!1,this.re={},Uf(this)}Wf.prototype.add=function(e,a){return this.__schemas__[e]=a,Uf(this),this},Wf.prototype.set=function(e){return this.__opts__=Nf(this.__opts__,e),this},Wf.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var a,r,n,i,t,o,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(a=s.exec(e));)if(i=this.testSchemaAt(e,a[2],s.lastIndex)){this.__schema__=a[2],this.__index__=a.index+a[1].length,this.__last_index__=a.index+a[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(t=r.index+r[1].length,(this.__index__<0||t<this.__index__)&&(this.__schema__="",this.__index__=t,this.__last_index__=r.index+r[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(n=e.match(this.re.email_fuzzy))&&(t=n.index+n[1].length,o=n.index+n[0].length,(this.__index__<0||t<this.__index__||t===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=t,this.__last_index__=o)),this.__index__>=0},Wf.prototype.pretest=function(e){return this.re.pretest.test(e)},Wf.prototype.testSchemaAt=function(e,a,r){return this.__compiled__[a.toLowerCase()]?this.__compiled__[a.toLowerCase()].validate(e,r,this):0},Wf.prototype.match=function(e){var a=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(Gf(this,a)),a=this.__last_index__);for(var n=a?e.slice(a):e;this.test(n);)r.push(Gf(this,a)),n=n.slice(this.__last_index__),a+=this.__last_index__;return r.length?r:null},Wf.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var a=this.re.schema_at_start.exec(e);if(!a)return null;var r=this.testSchemaAt(e,a[2],a[0].length);return r?(this.__schema__=a[2],this.__index__=a.index+a[1].length,this.__last_index__=a.index+a[0].length+r,Gf(this,0)):null},Wf.prototype.tlds=function(e,a){return e=Array.isArray(e)?e:[e],a?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,a,r){return e!==r[a-1]})).reverse(),Uf(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Uf(this),this)},Wf.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},Wf.prototype.onCompile=function(){};var Zf=ib,Kf=Lb,Jf=Kb,Yf=xk,Xf=Yk,Qf=Ff,ey=Wf,ay=sb,ry=u,ny={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},iy=/^(vbscript|javascript|file|data):/,ty=/^data:image\/(gif|png|jpeg|webp);/;function oy(e){var a=e.trim().toLowerCase();return!iy.test(a)||!!ty.test(a)}var sy=["http:","https:","mailto:"];function ly(e){var a=ay.parse(e,!0);if(a.hostname&&(!a.protocol||sy.indexOf(a.protocol)>=0))try{a.hostname=ry.toASCII(a.hostname)}catch(e){}return ay.encode(ay.format(a))}function cy(e){var a=ay.parse(e,!0);if(a.hostname&&(!a.protocol||sy.indexOf(a.protocol)>=0))try{a.hostname=ry.toUnicode(a.hostname)}catch(e){}return ay.decode(ay.format(a),ay.decode.defaultChars+"%")}function dy(e,a){if(!(this instanceof dy))return new dy(e,a);a||Zf.isString(e)||(a=e||{},e="default"),this.inline=new Qf,this.block=new Xf,this.core=new Yf,this.renderer=new Jf,this.linkify=new ey,this.validateLink=oy,this.normalizeLink=ly,this.normalizeLinkText=cy,this.utils=Zf,this.helpers=Zf.assign({},Kf),this.options={},this.configure(e),a&&this.set(a)}dy.prototype.set=function(e){return Zf.assign(this.options,e),this},dy.prototype.configure=function(e){var a,r=this;if(Zf.isString(e)&&!(e=ny[a=e]))throw new Error('Wrong `markdown-it` preset "'+a+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&r.set(e.options),e.components&&Object.keys(e.components).forEach((function(a){e.components[a].rules&&r[a].ruler.enableOnly(e.components[a].rules),e.components[a].rules2&&r[a].ruler2.enableOnly(e.components[a].rules2)})),this},dy.prototype.enable=function(e,a){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(a){r=r.concat(this[a].ruler.enable(e,!0))}),this),r=r.concat(this.inline.ruler2.enable(e,!0));var n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!a)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},dy.prototype.disable=function(e,a){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(a){r=r.concat(this[a].ruler.disable(e,!0))}),this),r=r.concat(this.inline.ruler2.disable(e,!0));var n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!a)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},dy.prototype.use=function(e){var a=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,a),this},dy.prototype.parse=function(e,a){if("string"!=typeof e)throw new Error("Input data should be a String");var r=new this.core.State(e,this,a);return this.core.process(r),r.tokens},dy.prototype.render=function(e,a){return a=a||{},this.renderer.render(this.parse(e,a),this.options,a)},dy.prototype.parseInline=function(e,a){var r=new this.core.State(e,this,a);return r.inlineMode=!0,this.core.process(r),r.tokens},dy.prototype.renderInline=function(e,a){return a=a||{},this.renderer.render(this.parseInline(e,a),this.options,a)};var uy=g(dy),hy=!0,my=!1,gy=!1,py=function(e,a){a&&(hy=!a.enabled,my=!!a.label,gy=!!a.labelAfter),e.core.ruler.after("inline","github-task-lists",(function(e){for(var a=e.tokens,r=2;r<a.length;r++)fy(a,r)&&(yy(a[r],e.Token),by(a[r-2],"class","task-list-item"+(hy?"":" enabled")),by(a[ky(a,r-2)],"class","contains-task-list"))}))};function by(e,a,r){var n=e.attrIndex(a),i=[a,r];n<0?e.attrPush(i):e.attrs[n]=i}function ky(e,a){for(var r=e[a].level-1,n=a-1;n>=0;n--)if(e[n].level===r)return n;return-1}function fy(e,a){return function(e){return"inline"===e.type}(e[a])&&function(e){return"paragraph_open"===e.type}(e[a-1])&&function(e){return"list_item_open"===e.type}(e[a-2])&&function(e){return 0===e.content.indexOf("[ ] ")||0===e.content.indexOf("[x] ")||0===e.content.indexOf("[X] ")}(e[a])}function yy(e,a){if(e.children.unshift(function(e,a){var r=new a("html_inline","",0),n=hy?' disabled="" ':"";0===e.content.indexOf("[ ] ")?r.content='<input class="task-list-item-checkbox"'+n+'type="checkbox">':0!==e.content.indexOf("[x] ")&&0!==e.content.indexOf("[X] ")||(r.content='<input class="task-list-item-checkbox" checked=""'+n+'type="checkbox">');return r}(e,a)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),my)if(gy){e.children.pop();var r="task-item-"+Math.ceil(1e7*Math.random()-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+r+'">',e.children.push(function(e,a,r){var n=new r("html_inline","",0);return n.content='<label class="task-list-item-label" for="'+a+'">'+e+"</label>",n.attrs=[{for:a}],n}(e.content,r,a))}else e.children.unshift(function(e){var a=new e("html_inline","",0);return a.content="<label>",a}(a)),e.children.push(function(e){var a=new e("html_inline","",0);return a.content="</label>",a}(a))}var vy=g(py);function wy(e,a){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.push.apply(r,n)}return r}function zy(e){for(var a=1;a<arguments.length;a++){var r=null!=arguments[a]?arguments[a]:{};a%2?wy(Object(r),!0).forEach((function(a){qy(e,a,r[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wy(Object(r)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))}))}return e}function jy(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function xy(e,a,r){return a&&function(e,a){for(var r=0;r<a.length;r++){var n=a[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dy(n.key),n)}}(e.prototype,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function qy(e,a,r){return(a=Dy(a))in e?Object.defineProperty(e,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[a]=r,e}function $y(e){return($y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Cy(e,a){return(Cy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,a){return e.__proto__=a,e})(e,a)}function _y(e,a){if(a&&("object"==typeof a||"function"==typeof a))return a;if(void 0!==a)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Sy(e){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=$y(e);if(a){var i=$y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _y(this,r)}}function Ey(){return Ey="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,a,r){var n=function(e,a){for(;!Object.prototype.hasOwnProperty.call(e,a)&&null!==(e=$y(e)););return e}(e,a);if(n){var i=Object.getOwnPropertyDescriptor(n,a);return i.get?i.get.call(arguments.length<3?e:r):i.value}},Ey.apply(this,arguments)}function Ay(e){return function(e){if(Array.isArray(e))return Oy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,a){if(!e)return;if("string"==typeof e)return Oy(e,a);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oy(e,a)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oy(e,a){(null==a||a>e.length)&&(a=e.length);for(var r=0,n=new Array(a);r<a;r++)n[r]=e[r];return n}function Dy(e){var a=function(e,a){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,a||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)}(e,"string");return"symbol"==typeof a?a:String(a)}var My=jh.create({name:"markdownTightLists",addOptions:function(){return{tight:!0,tightClass:"tight",listTypes:["bulletList","orderedList"]}},addGlobalAttributes:function(){var e=this;return[{types:this.options.listTypes,attributes:{tight:{default:this.options.tight,parseHTML:function(e){return"true"===e.getAttribute("data-tight")||!e.querySelector("p")},renderHTML:function(a){return{class:a.tight?e.options.tightClass:null,"data-tight":a.tight?"true":null}}}}}]},addCommands:function(){var e=this;return{toggleTight:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(r){var n=r.editor,i=r.commands;return e.options.listTypes.some((function(e){return function(e){if(!n.isActive(e))return!1;var r=n.getAttributes(e);return i.updateAttributes(e,{tight:null!=a?a:!(null!=r&&r.tight)})}(e)}))}}}}}),Fy=uy();function Ty(e,a){return Fy.inline.State.prototype.scanDelims.call({src:e,posMax:e.length}),new Fy.inline.State(e,null,null,[]).scanDelims(a,!0)}function Ny(e,a,r,n){var i=e.substring(0,r)+e.substring(r+a.length);return i=i.substring(0,r+n)+a+i.substring(r+n)}function Iy(e,a,r,n){var i={text:e,from:r,to:n};return i=function(e,a,r,n){for(var i=r,t=e;i<n&&!Ty(t,i).can_open;)t=Ny(t,a,i,1),i++;return{text:t,from:i,to:n}}(i.text,a,i.from,i.to),i=function(e,a,r,n){for(var i=n,t=e;i>r&&!Ty(t,i).can_close;)t=Ny(t,a,i,-1),i--;return{text:t,from:r,to:i}}(i.text,a,i.from,i.to),i.to-i.from<a.length+1&&(i.text=i.text.substring(0,i.from)+i.text.substring(i.to+a.length)),i.text}var Py=function(){!function(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),Cy(e,a)}(a,nb);var e=Sy(a);function a(r,n,i){var t;return jy(this,a),(t=e.call(this,r,n,null!=i?i:{})).inlines=[],t}return xy(a,[{key:"render",value:function(e,r,n){Ey($y(a.prototype),"render",this).call(this,e,r,n);var i=this.inlines[this.inlines.length-1];if(null!=i&&i.start&&null!=i&&i.end){var t=this.normalizeInline(i),o=t.delimiter,s=t.start,l=t.end;this.out=Iy(this.out,o,s,l),this.inlines.pop()}}},{key:"markString",value:function(e,r,n,i){var t=this.marks[e.type.name];if(t.expelEnclosingWhitespace)if(r)this.inlines.push({start:this.out.length,delimiter:t.open});else{var o=this.inlines.pop();this.inlines.push(zy(zy({},o),{},{end:this.out.length}))}return Ey($y(a.prototype),"markString",this).call(this,e,r,n,i)}},{key:"normalizeInline",value:function(e){var a=e.start;for(e.end;this.out.charAt(a).match(/\s/);)a++;return zy(zy({},e),{},{start:a})}}]),a}();const Ry=zh.create({name:"markdownHTMLMark",addStorage:function(){return{markdown:{serialize:{open:function(e,a){var r,n;return this.editor.storage.markdown.options.html?null!==(r=null===(n=Ly(a))||void 0===n?void 0:n[0])&&void 0!==r?r:"":(console.warn('Tiptap Markdown: "'.concat(a.type.name,'" mark is only available in html mode')),"")},close:function(e,a){var r,n;return this.editor.storage.markdown.options.html&&null!==(r=null===(n=Ly(a))||void 0===n?void 0:n[1])&&void 0!==r?r:""}},parse:{}}}}});function Ly(e){var a=e.type.schema,r=a.text(" ",[e]),n=yh(al.from(r),a).match(/^(<.*?>) (<\/.*?>)$/);return n?[n[1],n[2]]:null}function By(e){var a="<body>".concat(e,"</body>");return(new window.DOMParser).parseFromString(a,"text/html").body}const Vy=rm.create({name:"markdownHTMLNode",addStorage:function(){return{markdown:{serialize:function(e,a,r){this.editor.storage.markdown.options.html?e.write(function(e,a){var r=e.type.schema,n=yh(al.from(e),r);if(e.isBlock&&(a instanceof al||a.type.name===r.topNodeType.name))return function(e){var a=By(e),r=a.firstElementChild;return r.innerHTML=r.innerHTML.trim()?"\n".concat(r.innerHTML,"\n"):"\n",r.outerHTML}(n);return n}(a,r)):(console.warn('Tiptap Markdown: "'.concat(a.type.name,'" node is only available in html mode')),e.write("[".concat(a.type.name,"]"))),a.isBlock&&e.closeBlock(a)},parse:{}}}}});const Uy=rm.create({name:"blockquote"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.blockquote,parse:{}}}}});const Hy=rm.create({name:"bulletList"}).extend({addStorage:function(){return{markdown:{serialize:function(e,a){var r=this;return e.renderList(a," ",(function(){return(r.editor.storage.markdown.options.bulletListMarker||"-")+" "}))},parse:{}}}}});const Gy=rm.create({name:"codeBlock"}).extend({addStorage:function(){return{markdown:{serialize:function(e,a){e.write("```"+(a.attrs.language||"")+"\n"),e.text(a.textContent,!1),e.ensureNewLine(),e.write("```"),e.closeBlock(a)},parse:{setup:function(e){var a;e.set({langPrefix:null!==(a=this.options.languageClassPrefix)&&void 0!==a?a:"language-"})},updateDOM:function(e){e.innerHTML=e.innerHTML.replace(/\n<\/code><\/pre>/g,"</code></pre>")}}}}}});const Wy=rm.create({name:"hardBreak"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.hard_break,parse:{}}}}});const Zy=rm.create({name:"heading"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.heading,parse:{}}}}});const Ky=rm.create({name:"horizontalRule"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.horizontal_rule,parse:{}}}}});const Jy=rm.create({name:"image"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.image,parse:{}}}}});const Yy=rm.create({name:"listItem"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.list_item,parse:{}}}}});const Xy=rm.create({name:"orderedList"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.ordered_list,parse:{}}}}});const Qy=rm.create({name:"paragraph"}).extend({addStorage:function(){return{markdown:{serialize:ab.nodes.paragraph,parse:{}}}}});function ev(e){var a,r;return null!==(a=null==e||null===(r=e.content)||void 0===r?void 0:r.content)&&void 0!==a?a:[]}const av=rm.create({name:"table"}).extend({addStorage:function(){return{markdown:{serialize:function(e,a,r){!function(e){var a=ev(e),r=a[0],n=a.slice(1);if(ev(r).some((function(e){return"tableHeader"!==e.type.name||rv(e)||e.childCount>1})))return!1;if(n.some((function(e){return ev(e).some((function(e){return"tableHeader"===e.type.name||rv(e)||e.childCount>1}))})))return!1;return!0}(a)?Vy.storage.markdown.serialize.call(this,e,a,r):(a.forEach((function(a,r,n){if(e.write("| "),a.forEach((function(a,r,n){n&&e.write(" | ");var i=a.firstChild;i.textContent.trim()&&e.renderInline(i)})),e.write(" |"),e.ensureNewLine(),!n){var i=Array.from({length:a.childCount}).map((function(){return"---"})).join(" | ");e.write("| ".concat(i," |")),e.ensureNewLine()}})),e.closeBlock(a))},parse:{}}}}});function rv(e){return e.attrs.colspan>1||e.attrs.rowspan>1}const nv=rm.create({name:"taskItem"}).extend({addStorage:function(){return{markdown:{serialize:function(e,a){var r=a.attrs.checked?"[x]":"[ ]";e.write("".concat(r," ")),e.renderContent(a)},parse:{updateDOM:function(e){Ay(e.querySelectorAll(".task-list-item")).forEach((function(e){var a=e.querySelector("input");e.setAttribute("data-type","taskItem"),a&&(e.setAttribute("data-checked",a.checked),a.remove())}))}}}}}});const iv=rm.create({name:"taskList"}).extend({addStorage:function(){return{markdown:{serialize:Hy.storage.markdown.serialize,parse:{setup:function(e){e.use(vy)},updateDOM:function(e){Ay(e.querySelectorAll(".contains-task-list")).forEach((function(e){e.setAttribute("data-type","taskList")}))}}}}}});const tv=rm.create({name:"text"}).extend({addStorage:function(){return{markdown:{serialize:function(e,a){var r;e.text(null==(r=a.text)?void 0:r.replace(/</g,"<").replace(/>/g,">"))},parse:{}}}}});const ov=zh.create({name:"bold"}).extend({addStorage:function(){return{markdown:{serialize:ab.marks.strong,parse:{}}}}});const sv=zh.create({name:"code"}).extend({addStorage:function(){return{markdown:{serialize:ab.marks.code,parse:{}}}}});const lv=zh.create({name:"italic"}).extend({addStorage:function(){return{markdown:{serialize:ab.marks.em,parse:{}}}}});const cv=zh.create({name:"link"}).extend({addStorage:function(){return{markdown:{serialize:ab.marks.link,parse:{}}}}});const dv=zh.create({name:"strike"}).extend({addStorage:function(){return{markdown:{serialize:{open:"~~",close:"~~",expelEnclosingWhitespace:!0},parse:{}}}}}),uv=[Uy,Hy,Gy,Wy,Zy,Ky,Vy,Jy,Yy,Xy,Qy,av,nv,iv,tv,ov,sv,Ry,lv,cv,dv];function hv(e){var a,r,n=null===(a=e.storage)||void 0===a?void 0:a.markdown,i=null===(r=uv.find((function(a){return a.name===e.name})))||void 0===r?void 0:r.storage.markdown;return n||i?zy(zy({},i),n):null}var mv=function(){function e(a){jy(this,e),qy(this,"editor",null),this.editor=a}return xy(e,[{key:"serialize",value:function(e){var a=new Py(this.nodes,this.marks,{hardBreakNodeName:Wy.name});return a.renderContent(e),a.out}},{key:"nodes",get:function(){var e,a=this;return zy(zy({},Object.fromEntries(Object.keys(this.editor.schema.nodes).map((function(e){return[e,a.serializeNode(Vy)]})))),Object.fromEntries(null!==(e=this.editor.extensionManager.extensions.filter((function(e){return"node"===e.type&&a.serializeNode(e)})).map((function(e){return[e.name,a.serializeNode(e)]})))&&void 0!==e?e:[]))}},{key:"marks",get:function(){var e,a=this;return zy(zy({},Object.fromEntries(Object.keys(this.editor.schema.marks).map((function(e){return[e,a.serializeMark(Ry)]})))),Object.fromEntries(null!==(e=this.editor.extensionManager.extensions.filter((function(e){return"mark"===e.type&&a.serializeMark(e)})).map((function(e){return[e.name,a.serializeMark(e)]})))&&void 0!==e?e:[]))}},{key:"serializeNode",value:function(e){var a,r;return null===(a=hv(e))||void 0===a||null===(r=a.serialize)||void 0===r?void 0:r.bind({editor:this.editor,options:e.options})}},{key:"serializeMark",value:function(e){var a,r=null===(a=hv(e))||void 0===a?void 0:a.serialize;return r?zy(zy({},r),{},{open:"function"==typeof r.open?r.open.bind({editor:this.editor,options:e.options}):r.open,close:"function"==typeof r.close?r.close.bind({editor:this.editor,options:e.options}):r.close}):null}}]),e}(),gv=function(){function e(a,r){var n=r.html,i=r.linkify,t=r.breaks;jy(this,e),qy(this,"editor",null),qy(this,"md",null),this.editor=a,this.md=uy({html:n,linkify:i,breaks:t})}return xy(e,[{key:"parse",value:function(e){var a=this,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).inline;if("string"==typeof e){var n=this.md;this.editor.extensionManager.extensions.forEach((function(e){var r,i,t;return null===(r=hv(e))||void 0===r||null===(i=r.parse)||void 0===i||null===(t=i.setup)||void 0===t?void 0:t.call({editor:a.editor,options:e.options},n)}));var i=By(n.render(e));return this.editor.extensionManager.extensions.forEach((function(e){var r,n,t;return null===(r=hv(e))||void 0===r||null===(n=r.parse)||void 0===n||null===(t=n.updateDOM)||void 0===t?void 0:t.call({editor:a.editor,options:e.options},i)})),this.normalizeDOM(i,{inline:r,content:e}),i.innerHTML}return e}},{key:"normalizeDOM",value:function(e,a){var r=a.inline,n=a.content;return this.normalizeBlocks(e),e.querySelectorAll("*").forEach((function(e){var a;(null===(a=e.nextSibling)||void 0===a?void 0:a.nodeType)!==Node.TEXT_NODE||e.closest("pre")||(e.nextSibling.textContent=e.nextSibling.textContent.replace(/^\n/,""))})),r&&this.normalizeInline(e,n),e}},{key:"normalizeBlocks",value:function(e){var a=Object.values(this.editor.schema.nodes).filter((function(e){return e.isBlock})).map((function(e){var a;return null===(a=e.spec.parseDOM)||void 0===a?void 0:a.map((function(e){return e.tag}))})).flat().filter(Boolean).join(",");a&&Ay(e.querySelectorAll(a)).forEach((function(e){e.parentElement.matches("p")&&function(e){for(var a=e.parentElement,r=a.cloneNode();a.firstChild&&a.firstChild!==e;)r.appendChild(a.firstChild);r.childNodes.length>0&&a.parentElement.insertBefore(r,a),a.parentElement.insertBefore(e,a),0===a.childNodes.length&&a.remove()}(e)}))}},{key:"normalizeInline",value:function(e,a){var r;if(null!==(r=e.firstElementChild)&&void 0!==r&&r.matches("p")){var n,i,t,o,s=e.firstElementChild;s.nextSibling;var l=s.nextElementSibling,c=null!==(n=null===(i=a.match(/^\s+/))||void 0===i?void 0:i[0])&&void 0!==n?n:"",d=l?"":null!==(t=null===(o=a.match(/\s+$/))||void 0===o?void 0:o[0])&&void 0!==t?t:"";if(a.match(/^\n\n/))return void(s.innerHTML="".concat(s.innerHTML).concat(d));!function(e){for(var a=e.parentNode;e.firstChild;)a.insertBefore(e.firstChild,e);a.removeChild(e)}(s),e.innerHTML="".concat(c).concat(e.innerHTML).concat(d)}}}]),e}(),pv=jh.create({name:"markdownClipboard",addOptions:function(){return{transformPastedText:!1,transformCopiedText:!1}},addProseMirrorPlugins:function(){var e=this;return[new id({key:new sd("markdownClipboard"),props:{clipboardTextParser:function(a,r,n){if(n||!e.options.transformPastedText)return null;var i=e.editor.storage.markdown.parser.parse(a,{inline:!0});return Gl.fromSchema(e.editor.schema).parseSlice(By(i),{preserveWhitespace:!0,context:r})},clipboardTextSerializer:function(a){return e.options.transformCopiedText?e.editor.storage.markdown.serializer.serialize(a.content):null}}})]}}),bv=jh.create({name:"markdown",priority:50,addOptions:function(){return{html:!0,tightLists:!0,tightListClass:"tight",bulletListMarker:"-",linkify:!1,breaks:!1,transformPastedText:!1,transformCopiedText:!1}},addCommands:function(){var e=am.Commands.config.addCommands();return{setContent:function(a,r,n){return function(i){return e.setContent(i.editor.storage.markdown.parser.parse(a),r,n)(i)}},insertContentAt:function(a,r,n){return function(i){return e.insertContentAt(a,i.editor.storage.markdown.parser.parse(r,{inline:!0}),n)(i)}}}},onBeforeCreate:function(){var e=this;this.editor.storage.markdown={options:zy({},this.options),parser:new gv(this.editor,this.options),serializer:new mv(this.editor),getMarkdown:function(){return e.editor.storage.markdown.serializer.serialize(e.editor.state.doc)}},this.editor.options.initialContent=this.editor.options.content,this.editor.options.content=this.editor.storage.markdown.parser.parse(this.editor.options.content)},onCreate:function(){this.editor.options.content=this.editor.options.initialContent,delete this.editor.options.initialContent},addStorage:function(){return{}},addExtensions:function(){return[My.configure({tight:this.options.tightLists,tightClass:this.options.tightListClass}),pv.configure({transformPastedText:this.options.transformPastedText,transformCopiedText:this.options.transformCopiedText})]}});const kv=a.styled(d.RichTextEditor)((({theme:e})=>({"&.MuiTiptap-FieldContainer-root":{backgroundColor:e.custom.palette.input.default,"&:hover":{".MuiTiptap-FieldContainer-notchedOutline":{borderSize:1,backgroundColor:e.custom.palette.interaction.hover,borderColor:e.custom.palette.stroke.default}}},"&.MuiTiptap-FieldContainer-focused":{".MuiTiptap-FieldContainer-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.focus}!important`,boxShadow:e.custom.boxShadow.input.focus}},".MuiTiptap-RichTextField-menuBar":{padding:0,borderRadius:e.spacing(e.custom.radius.md),background:e.custom.palette.surface.default,margin:e.spacing(e.custom.margin.sm),border:`1px solid ${e.custom.palette.stroke.default}`,marginBottom:0,".MuiTiptap-RichTextField-content":{padding:e.spacing(e.custom.padding.xs)}}}))),fv=({onChange:n,value:i,internalChange:t,minWidth:o=100,minHeight:s=100,maxHeight:l,placeholder:u})=>{const h=e.useRef(null),m=a.useTheme();return w.jsx(kv,{sx:{"& .ProseMirror":{overflowY:"auto",minHeight:s,minWidth:o,maxHeight:l}},ref:h,onUpdate:({editor:e})=>{n&&n(e.storage.markdown.getMarkdown()),t&&t()},extensions:[c.StarterKit.configure({strike:!1,code:!1,heading:!1,listItem:!1,bulletList:!1,orderedList:!1,blockquote:!1,horizontalRule:!1,codeBlock:!1}),nm.configure({placeholder:u}),bv],content:i,renderControls:()=>w.jsxs(a.Stack,{gap:m.custom.margin.xs,direction:"row",children:[w.jsx(d.MenuButtonBold,{component:mt,icon:w.jsx(r.FormatBold,{}),sizing:"md"}),w.jsx(d.MenuButtonItalic,{component:mt,icon:w.jsx(r.FormatItalic,{}),sizing:"md"})]})})},yv=e=>({"& .MuiSlider-thumb":{width:_,height:_,backgroundColor:e.custom.palette.text.primary,boxShadow:e.custom.boxShadow.input.handle,"&:after":{content:'""',position:"absolute",top:"50%",left:"50%",width:q,height:q,backgroundColor:e.custom.palette.icon.primaryInverted}}}),vv=e=>Array.isArray(e),wv=(e,a)=>({height:$,padding:`${$}px 0`,"& .MuiSlider-rail":{width:`calc(100% + ${S}px)`,left:`-${C}px`,backgroundColor:e.custom.palette.icon.disabled,opacity:1},"& .MuiSlider-track":{position:"relative",border:"none",backgroundColor:e.custom.palette.purple[500],"&:before":{content:'""',position:"absolute",top:0,left:a&&vv(a)?`-${$+1}px`:`-${C+1}px`,width:`calc(100% + ${C}px)`,height:"100%",borderRadius:"inherit",backgroundColor:"inherit"}},"& .MuiSlider-mark":{height:q,width:q,borderRadius:e.custom.radius.round,backgroundColor:e.custom.palette.text.primaryInverted,"&.MuiSlider-markActive":{backgroundColor:e.custom.palette.text.primaryInverted}}}),zv=e=>({"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.purple[500],borderRadius:e.spacing(e.custom.radius.sm),padding:q,minWidth:S,"&.MuiSlider-valueLabelOpen":{top:"-9px"},"& .MuiSlider-valueLabelLabel":{padding:`0 ${e.spacing(e.custom.padding.xs)}`,fontSize:`${Se.lg.body.sm}`,color:e.custom.palette.text.lockedWhite,fontWeight:500,lineHeight:"140%"}}}),jv=a.styled(a.Slider)((({theme:e,value:a})=>({"&.MuiSlider-root":{width:`calc(100% - ${S}px)`,marginLeft:S/2,...{...wv(e,a)},...{...yv(e)},...{...zv(e)},"&.Mui-disabled":{"& .MuiSlider-rail, & .MuiSlider-track":{backgroundColor:e.custom.palette.icon.secondary},"& .MuiSlider-rail":{backgroundColor:e.custom.palette.icon.disabled},"& .MuiSlider-thumb":{backgroundColor:e.custom.palette.icon.disabled,"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.icon.disabled}}},"& .MuiSlider-markLabel":{color:e.custom.palette.text.secondary,"&.MuiSlider-markLabelActive":{color:e.custom.palette.text.secondary}}}}))),xv=[1,2,5,10],qv=(e,a)=>{if(e>=a)return console.warn("Min value must be less than max value"),1;const r=(a-e)/9;if(r<=1)return 1;const n=Math.floor(Math.log10(r)),i=r/Math.pow(10,n);return t=i,(xv.find((e=>t<=e))??xv[xv.length-1])*Math.pow(10,n);var t},$v=({labelLeft:e,labelMiddle:r,labelRight:n,labelRightProps:i,labelLeftProps:t,disabled:o,onChange:s,internalChange:l,defaultValue:c,max:d,min:u,step:h,...m})=>{const g=h??qv(u,d),p=((e,a,r)=>{const n=[];for(let i=e;i<=a;i+=r)n.push({value:i,label:i===e||i===a||i+r<=a?i.toString():void 0});return n[n.length-1].value!==a&&n.push({value:a,label:a.toString()}),n})(u,d,g);return w.jsxs(a.Box,{sx:{minWidth:300},children:[w.jsx(a.Box,{height:24,children:w.jsx(jv,{valueLabelDisplay:o?"on":"auto",disabled:o,marks:p,step:g,max:d,min:u,onChangeCommitted:()=>{l&&l()},onChange:(e,a,r)=>{s&&s(e,a,r)},...m})}),w.jsxs(a.Box,{sx:{display:"flex",justifyContent:"space-between",pt:M.lg,gap:1},children:[e&&w.jsx(a.Box,{sx:{flex:1},children:w.jsx(ia,{disabled:o,showicon:!1,...t,children:e})}),r&&w.jsx(a.Box,{sx:{flex:1,textAlign:"center"},children:w.jsx(ia,{showicon:!1,disabled:o,children:r})}),n&&w.jsx(a.Box,{sx:{flex:1,textAlign:"right"},children:w.jsx(ia,{...i,showicon:!1,disabled:o,children:n})})]})]})},Cv=a.styled(a.Rating)((({theme:e})=>({"&.MuiRating-root":{"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.secondary},"& .MuiRating-iconFilled":{color:e.custom.palette.yellow[600]},".MuiRating-iconHover":{fontSize:"inherit",transform:"none"},"&.Mui-disabled":{opacity:1,color:e.custom.palette.icon.disabled,"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.disabled},"& .MuiRating-iconFilled":{color:e.custom.palette.icon.disabled}}}}))),_v=({internalChange:e,onChange:r,...n})=>w.jsx(Cv,{...n,onChange:(a,n)=>{r&&r(a,n),e&&e()},icon:w.jsx(a.SvgIcon,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M24.114 35.395L32.414 40.415C33.934 41.335 35.794 39.975 35.394 38.255L33.194 28.815L40.534 22.455C41.874 21.295 41.154 19.095 39.394 18.955L29.734 18.135L25.954 9.21499C25.274 7.59499 22.954 7.59499 22.274 9.21499L18.494 18.115L8.83396 18.935C7.07396 19.075 6.35396 21.275 7.69396 22.435L15.034 28.795L12.834 38.235C12.434 39.955 14.294 41.315 15.814 40.395L24.114 35.395Z"})}),emptyIcon:w.jsx(a.SvgIcon,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.1047 20.58L30.8559 27.7274L33.3274 38.3549L23.9992 32.713L14.6668 38.335L17.1388 27.7279L8.89132 20.5816L19.748 19.66L23.9966 9.63416L28.2463 19.6377L39.1047 20.58ZM12.7171 37.8892L14.9171 28.4492L7.57709 22.0892C6.23709 20.9292 6.95709 18.7292 8.71709 18.5892L18.3771 17.7692L22.1571 8.84916C22.8371 7.22916 25.1571 7.22916 25.8371 8.84916L29.6171 17.7492L39.2971 18.5892C41.0571 18.7292 41.7571 20.9292 40.4171 22.0892L33.0771 28.4492L35.2771 37.9092C35.6771 39.6292 33.8171 40.9892 32.2971 40.0692L23.9971 35.0492L15.6971 40.0492C14.1771 40.9692 12.3171 39.6092 12.7171 37.8892Z"})})}),Sv=e=>({boxShadow:e.custom.elevation.raised}),Ev=e=>({boxShadow:e.custom.elevation.overlay}),Av=(e,a)=>{switch(e){case"sunken":return a.custom.palette.surface.sunken;case"raised":return a.custom.palette.surface.raised;case"overlay":return a.custom.palette.surface.overlay;default:return a.custom.palette.surface.default}},Ov=(e,a)=>{switch(a){case"xs":return e.spacing(e.custom.radius.xs);case"sm":return e.spacing(e.custom.radius.sm);case"md":return e.spacing(e.custom.radius.md);case"lg":return e.spacing(e.custom.radius.lg);default:return e.spacing(e.custom.radius.xl)}},Dv=a.styled(a.Paper)((({theme:e,variation:a="default",borderradius:r})=>({boxShadow:"unset",borderRadius:Ov(e,r),background:Av(a,e),..."overlay"===a&&{...Ev(e)},..."raised"===a&&{...Sv(e)}}))),Mv=a.styled((e=>w.jsx(a.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e})))((({theme:e})=>({width:36,height:20,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:e.custom.palette.green[500],opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:e.custom.palette.neutral[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===e.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,boxShadow:"none",filter:"drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.1))"},"& .MuiSwitch-track":{borderRadius:10,backgroundColor:e.custom.palette.neutral[100],opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}))),Fv=a.styled(Je)((({theme:e})=>({"& .MuiInputBase-root":{paddingTop:0,paddingBottom:0,minHeight:E,alignItems:"baseline","& .MuiInputBase-input":{},"& .MuiInputAdornment-root.MuiInputAdornment-positionStart":{alignSelf:"self-end",height:R.xl,marginTop:e.spacing(1),marginBottom:e.spacing(1),"&:first-of-type":{alignSelf:"self-start"}}}}))),Tv=({startAdornment:e,endAdornment:r,onChange:n,internalChange:i,inputRef:t,...o})=>w.jsx(Fv,{multiline:!0,inputRef:t,InputProps:{startAdornment:e?w.jsx(a.InputAdornment,{position:"start",children:e}):null,endAdornment:r?w.jsx(a.InputAdornment,{position:"start",children:r}):null},onChange:e=>{n&&n(e),i&&i()},...o}),Nv=({status:e})=>{const r=a.useTheme();switch(e){case"neutral":return null;case"success":return w.jsx(Iv,{backgroundColor:r.custom.palette.green[500],name:"check-circle"});case"warning":return w.jsx(Iv,{backgroundColor:r.custom.palette.yellow[500],name:"error-outline"});case"danger":return w.jsx(Iv,{backgroundColor:r.custom.palette.red[500],name:"warning-amber"});case"discover":return w.jsx(Iv,{backgroundColor:r.custom.palette.purple[500],name:"lightbulb"})}},Iv=({backgroundColor:e,name:r})=>{const n=a.useTheme();return w.jsx(a.Box,{sx:{display:"flex",alignItems:"flex-start",pt:.25},children:w.jsx(a.Box,{sx:{backgroundColor:e,borderRadius:n.custom.radius.round,color:n.custom.palette.white,display:"flex",p:.5},children:w.jsx(L,{name:r,size:20})})})},Pv=({children:e,message:r,variation:n="primary"})=>{const i=a.useTheme();if("primary"===n)return w.jsx(a.Tooltip,{componentsProps:{popper:{sx:{"& .MuiTooltip-tooltip":{borderRadius:i.spacing(i.custom.radius.sm)}}}},title:r,arrow:!0,sx:{maxWidth:300},role:"tooltip",children:w.jsx(a.Box,{sx:{cursor:"pointer",display:"flex",alignItems:"center"},children:e})})};var Rv=e=>"checkbox"===e.type,Lv=e=>e instanceof Date,Bv=e=>null==e;const Vv=e=>"object"==typeof e;var Uv=e=>!Bv(e)&&!Array.isArray(e)&&Vv(e)&&!Lv(e),Hv=e=>Uv(e)&&e.target?Rv(e.target)?e.target.checked:e.target.value:e,Gv=(e,a)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(a)),Wv="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Zv(e){let a;const r=Array.isArray(e),n="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)a=new Date(e);else if(e instanceof Set)a=new Set(e);else{if(Wv&&(e instanceof Blob||n)||!r&&!Uv(e))return e;if(a=r?[]:{},r||(e=>{const a=e.constructor&&e.constructor.prototype;return Uv(a)&&a.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)e.hasOwnProperty(r)&&(a[r]=Zv(e[r]));else a=e}return a}var Kv=e=>Array.isArray(e)?e.filter(Boolean):[],Jv=e=>void 0===e,Yv=(e,a,r)=>{if(!a||!Uv(e))return r;const n=Kv(a.split(/[,[\].]+?/)).reduce(((e,a)=>Bv(e)?e:e[a]),e);return Jv(n)||n===e?Jv(e[a])?r:e[a]:n},Xv=e=>"boolean"==typeof e,Qv=e=>/^\w*$/.test(e),ew=e=>Kv(e.replace(/["|']|\]/g,"").split(/\.|\[/)),aw=(e,a,r)=>{let n=-1;const i=Qv(a)?[a]:ew(a),t=i.length,o=t-1;for(;++n<t;){const a=i[n];let t=r;if(n!==o){const r=e[a];t=Uv(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===a||"constructor"===a||"prototype"===a)return;e[a]=t,e=e[a]}return e};const rw="blur",nw="focusout",iw="change",tw="onBlur",ow="onChange",sw="onSubmit",lw="onTouched",cw="all",dw="max",uw="min",hw="maxLength",mw="minLength",gw="pattern",pw="required",bw="validate",kw=e.createContext(null),fw=()=>e.useContext(kw);var yw=(e,a,r,n=!0)=>{const i={defaultValues:a._defaultValues};for(const t in e)Object.defineProperty(i,t,{get:()=>{const i=t;return a._proxyFormState[i]!==cw&&(a._proxyFormState[i]=!n||cw),r&&(r[i]=!0),e[i]}});return i},vw=e=>Uv(e)&&!Object.keys(e).length,ww=(e,a,r,n)=>{r(e);const{name:i,...t}=e;return vw(t)||Object.keys(t).length>=Object.keys(a).length||Object.keys(t).find((e=>a[e]===(!n||cw)))},zw=e=>Array.isArray(e)?e:[e],jw=(e,a,r)=>!e||!a||e===a||zw(e).some((e=>e&&(r?e===a:e.startsWith(a)||a.startsWith(e))));function xw(a){const r=e.useRef(a);r.current=a,e.useEffect((()=>{const e=!a.disabled&&r.current.subject&&r.current.subject.subscribe({next:r.current.next});return()=>{e&&e.unsubscribe()}}),[a.disabled])}var qw=e=>"string"==typeof e,$w=(e,a,r,n,i)=>qw(e)?(n&&a.watch.add(e),Yv(r,e,i)):Array.isArray(e)?e.map((e=>(n&&a.watch.add(e),Yv(r,e)))):(n&&(a.watchAll=!0),r);function Cw(a){const r=fw(),{name:n,disabled:i,control:t=r.control,shouldUnregister:o}=a,s=Gv(t._names.array,n),l=function(a){const r=fw(),{control:n=r.control,name:i,defaultValue:t,disabled:o,exact:s}=a,l=e.useRef(i);l.current=i,xw({disabled:o,subject:n._subjects.values,next:e=>{jw(l.current,e.name,s)&&d(Zv($w(l.current,n._names,e.values||n._formValues,!1,t)))}});const[c,d]=e.useState(n._getWatch(i,t));return e.useEffect((()=>n._removeUnmounted())),c}({control:t,name:n,defaultValue:Yv(t._formValues,n,Yv(t._defaultValues,n,a.defaultValue)),exact:!0}),c=function(a){const r=fw(),{control:n=r.control,disabled:i,name:t,exact:o}=a,[s,l]=e.useState(n._formState),c=e.useRef(!0),d=e.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=e.useRef(t);return u.current=t,xw({disabled:i,next:e=>c.current&&jw(u.current,e.name,o)&&ww(e,d.current,n._updateFormState)&&l({...n._formState,...e}),subject:n._subjects.state}),e.useEffect((()=>(c.current=!0,d.current.isValid&&n._updateValid(!0),()=>{c.current=!1})),[n]),e.useMemo((()=>yw(s,n,d.current,!1)),[s,n])}({control:t,name:n,exact:!0}),d=e.useRef(t.register(n,{...a.rules,value:l,...Xv(a.disabled)?{disabled:a.disabled}:{}})),u=e.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Yv(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Yv(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Yv(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Yv(c.validatingFields,n)},error:{enumerable:!0,get:()=>Yv(c.errors,n)}})),[c,n]),h=e.useMemo((()=>({name:n,value:l,...Xv(i)||c.disabled?{disabled:c.disabled||i}:{},onChange:e=>d.current.onChange({target:{value:Hv(e),name:n},type:iw}),onBlur:()=>d.current.onBlur({target:{value:Yv(t._formValues,n),name:n},type:rw}),ref:e=>{const a=Yv(t._fields,n);a&&e&&(a._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:a=>e.setCustomValidity(a),reportValidity:()=>e.reportValidity()})}})),[n,t._formValues,i,c.disabled,l,t._fields]);return e.useEffect((()=>{const e=t._options.shouldUnregister||o,a=(e,a)=>{const r=Yv(t._fields,e);r&&r._f&&(r._f.mount=a)};if(a(n,!0),e){const e=Zv(Yv(t._options.defaultValues,n));aw(t._defaultValues,n,e),Jv(Yv(t._formValues,n))&&aw(t._formValues,n,e)}return!s&&t.register(n),()=>{(s?e&&!t._state.action:e)?t.unregister(n):a(n,!1)}}),[n,t,s,o]),e.useEffect((()=>{t._updateDisabledField({disabled:i,fields:t._fields,name:n})}),[i,n,t]),e.useMemo((()=>({field:h,formState:c,fieldState:u})),[h,c,u])}const _w=e=>e.render(Cw(e));var Sw=(e,a,r,n,i)=>a?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},Ew=e=>({isOnSubmit:!e||e===sw,isOnBlur:e===tw,isOnChange:e===ow,isOnAll:e===cw,isOnTouch:e===lw}),Aw=(e,a,r)=>!r&&(a.watchAll||a.watch.has(e)||[...a.watch].some((a=>e.startsWith(a)&&/^\.\w+/.test(e.slice(a.length)))));const Ow=(e,a,r,n)=>{for(const i of r||Object.keys(e)){const r=Yv(e,i);if(r){const{_f:e,...t}=r;if(e){if(e.refs&&e.refs[0]&&a(e.refs[0],i)&&!n)return!0;if(e.ref&&a(e.ref,e.name)&&!n)return!0;if(Ow(t,a))break}else if(Uv(t)&&Ow(t,a))break}}};var Dw=(e,a,r)=>{const n=zw(Yv(e,r));return aw(n,"root",a[r]),aw(e,r,n),e},Mw=e=>"file"===e.type,Fw=e=>"function"==typeof e,Tw=e=>{if(!Wv)return!1;const a=e?e.ownerDocument:0;return e instanceof(a&&a.defaultView?a.defaultView.HTMLElement:HTMLElement)},Nw=e=>qw(e),Iw=e=>"radio"===e.type,Pw=e=>e instanceof RegExp;const Rw={value:!1,isValid:!1},Lw={value:!0,isValid:!0};var Bw=e=>{if(Array.isArray(e)){if(e.length>1){const a=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:a,isValid:!!a.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Jv(e[0].attributes.value)?Jv(e[0].value)||""===e[0].value?Lw:{value:e[0].value,isValid:!0}:Lw:Rw}return Rw};const Vw={isValid:!1,value:null};var Uw=e=>Array.isArray(e)?e.reduce(((e,a)=>a&&a.checked&&!a.disabled?{isValid:!0,value:a.value}:e),Vw):Vw;function Hw(e,a,r="validate"){if(Nw(e)||Array.isArray(e)&&e.every(Nw)||Xv(e)&&!e)return{type:r,message:Nw(e)?e:"",ref:a}}var Gw=e=>Uv(e)&&!Pw(e)?e:{value:e,message:""},Ww=async(e,a,r,n,i,t)=>{const{ref:o,refs:s,required:l,maxLength:c,minLength:d,min:u,max:h,pattern:m,validate:g,name:p,valueAsNumber:b,mount:k}=e._f,f=Yv(r,p);if(!k||a.has(p))return{};const y=s?s[0]:o,v=e=>{i&&y.reportValidity&&(y.setCustomValidity(Xv(e)?"":e||""),y.reportValidity())},w={},z=Iw(o),j=Rv(o),x=z||j,q=(b||Mw(o))&&Jv(o.value)&&Jv(f)||Tw(o)&&""===o.value||""===f||Array.isArray(f)&&!f.length,$=Sw.bind(null,p,n,w),C=(e,a,r,n=hw,i=mw)=>{const t=e?a:r;w[p]={type:e?n:i,message:t,ref:o,...$(e?n:i,t)}};if(t?!Array.isArray(f)||!f.length:l&&(!x&&(q||Bv(f))||Xv(f)&&!f||j&&!Bw(s).isValid||z&&!Uw(s).isValid)){const{value:e,message:a}=Nw(l)?{value:!!l,message:l}:Gw(l);if(e&&(w[p]={type:pw,message:a,ref:y,...$(pw,a)},!n))return v(a),w}if(!(q||Bv(u)&&Bv(h))){let e,a;const r=Gw(h),i=Gw(u);if(Bv(f)||isNaN(f)){const n=o.valueAsDate||new Date(f),t=e=>new Date((new Date).toDateString()+" "+e),s="time"==o.type,l="week"==o.type;qw(r.value)&&f&&(e=s?t(f)>t(r.value):l?f>r.value:n>new Date(r.value)),qw(i.value)&&f&&(a=s?t(f)<t(i.value):l?f<i.value:n<new Date(i.value))}else{const n=o.valueAsNumber||(f?+f:f);Bv(r.value)||(e=n>r.value),Bv(i.value)||(a=n<i.value)}if((e||a)&&(C(!!e,r.message,i.message,dw,uw),!n))return v(w[p].message),w}if((c||d)&&!q&&(qw(f)||t&&Array.isArray(f))){const e=Gw(c),a=Gw(d),r=!Bv(e.value)&&f.length>+e.value,i=!Bv(a.value)&&f.length<+a.value;if((r||i)&&(C(r,e.message,a.message),!n))return v(w[p].message),w}if(m&&!q&&qw(f)){const{value:e,message:a}=Gw(m);if(Pw(e)&&!f.match(e)&&(w[p]={type:gw,message:a,ref:o,...$(gw,a)},!n))return v(a),w}if(g)if(Fw(g)){const e=Hw(await g(f,r),y);if(e&&(w[p]={...e,...$(bw,e.message)},!n))return v(e.message),w}else if(Uv(g)){let e={};for(const a in g){if(!vw(e)&&!n)break;const i=Hw(await g[a](f,r),y,a);i&&(e={...i,...$(a,i.message)},v(i.message),n&&(w[p]=e))}if(!vw(e)&&(w[p]={ref:y,...e},!n))return w}return v(!0),w};function Zw(e,a){const r=Array.isArray(a)?a:Qv(a)?[a]:ew(a),n=1===r.length?e:function(e,a){const r=a.slice(0,-1).length;let n=0;for(;n<r;)e=Jv(e)?n++:e[a[n++]];return e}(e,r),i=r.length-1,t=r[i];return n&&delete n[t],0!==i&&(Uv(n)&&vw(n)||Array.isArray(n)&&function(e){for(const a in e)if(e.hasOwnProperty(a)&&!Jv(e[a]))return!1;return!0}(n))&&Zw(e,r.slice(0,-1)),e}var Kw=()=>{let e=[];return{get observers(){return e},next:a=>{for(const r of e)r.next&&r.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter((e=>e!==a))}}),unsubscribe:()=>{e=[]}}},Jw=e=>Bv(e)||!Vv(e);function Yw(e,a){if(Jw(e)||Jw(a))return e===a;if(Lv(e)&&Lv(a))return e.getTime()===a.getTime();const r=Object.keys(e),n=Object.keys(a);if(r.length!==n.length)return!1;for(const i of r){const r=e[i];if(!n.includes(i))return!1;if("ref"!==i){const e=a[i];if(Lv(r)&&Lv(e)||Uv(r)&&Uv(e)||Array.isArray(r)&&Array.isArray(e)?!Yw(r,e):r!==e)return!1}}return!0}var Xw=e=>"select-multiple"===e.type,Qw=e=>Tw(e)&&e.isConnected,ez=e=>{for(const a in e)if(Fw(e[a]))return!0;return!1};function az(e,a={}){const r=Array.isArray(e);if(Uv(e)||r)for(const r in e)Array.isArray(e[r])||Uv(e[r])&&!ez(e[r])?(a[r]=Array.isArray(e[r])?[]:{},az(e[r],a[r])):Bv(e[r])||(a[r]=!0);return a}function rz(e,a,r){const n=Array.isArray(e);if(Uv(e)||n)for(const n in e)Array.isArray(e[n])||Uv(e[n])&&!ez(e[n])?Jv(a)||Jw(r[n])?r[n]=Array.isArray(e[n])?az(e[n],[]):{...az(e[n])}:rz(e[n],Bv(a)?{}:a[n],r[n]):r[n]=!Yw(e[n],a[n]);return r}var nz=(e,a)=>rz(e,a,az(a)),iz=(e,{valueAsNumber:a,valueAsDate:r,setValueAs:n})=>Jv(e)?e:a?""===e?NaN:e?+e:e:r&&qw(e)?new Date(e):n?n(e):e;function tz(e){const a=e.ref;return Mw(a)?a.files:Iw(a)?Uw(e.refs).value:Xw(a)?[...a.selectedOptions].map((({value:e})=>e)):Rv(a)?Bw(e.refs).value:iz(Jv(a.value)?e.ref.value:a.value,e)}var oz=e=>Jv(e)?e:Pw(e)?e.source:Uv(e)?Pw(e.value)?e.value.source:e.value:e;const sz="AsyncFunction";function lz(e,a,r){const n=Yv(e,r);if(n||Qv(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const n=i.join("."),t=Yv(a,n),o=Yv(e,n);if(t&&!Array.isArray(t)&&r!==n)return{name:r};if(o&&o.type)return{name:n,error:o};i.pop()}return{name:r}}const cz={mode:sw,reValidateMode:ow,shouldFocusError:!0};function dz(e={}){let a,r={...cz,...e},n={submitCount:0,isDirty:!1,isLoading:Fw(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},i={},t=(Uv(r.defaultValues)||Uv(r.values))&&Zv(r.defaultValues||r.values)||{},o=r.shouldUnregister?{}:Zv(t),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},u={values:Kw(),array:Kw(),state:Kw()},h=Ew(r.mode),m=Ew(r.reValidateMode),g=r.criteriaMode===cw,p=async e=>{if(!r.disabled&&(d.isValid||e)){const e=r.resolver?vw((await v()).errors):await w(i,!0);e!==n.isValid&&u.state.next({isValid:e})}},b=(e,a)=>{r.disabled||!d.isValidating&&!d.validatingFields||((e||Array.from(l.mount)).forEach((e=>{e&&(a?aw(n.validatingFields,e,a):Zw(n.validatingFields,e))})),u.state.next({validatingFields:n.validatingFields,isValidating:!vw(n.validatingFields)}))},k=(e,a,r,n)=>{const l=Yv(i,e);if(l){const i=Yv(o,e,Jv(r)?Yv(t,e):r);Jv(i)||n&&n.defaultChecked||a?aw(o,e,a?i:tz(l._f)):x(e,i),s.mount&&p()}},f=(e,a,o,s,l)=>{let c=!1,h=!1;const m={name:e};if(!r.disabled){const r=!!(Yv(i,e)&&Yv(i,e)._f&&Yv(i,e)._f.disabled);if(!o||s){d.isDirty&&(h=n.isDirty,n.isDirty=m.isDirty=z(),c=h!==m.isDirty);const i=r||Yw(Yv(t,e),a);h=!(r||!Yv(n.dirtyFields,e)),i||r?Zw(n.dirtyFields,e):aw(n.dirtyFields,e,!0),m.dirtyFields=n.dirtyFields,c=c||d.dirtyFields&&h!==!i}if(o){const a=Yv(n.touchedFields,e);a||(aw(n.touchedFields,e,o),m.touchedFields=n.touchedFields,c=c||d.touchedFields&&a!==o)}c&&l&&u.state.next(m)}return c?m:{}},y=(e,i,t,o)=>{const s=Yv(n.errors,e),l=d.isValid&&Xv(i)&&n.isValid!==i;var h;if(r.delayError&&t?(h=()=>((e,a)=>{aw(n.errors,e,a),u.state.next({errors:n.errors})})(e,t),a=e=>{clearTimeout(c),c=setTimeout(h,e)},a(r.delayError)):(clearTimeout(c),a=null,t?aw(n.errors,e,t):Zw(n.errors,e)),(t?!Yw(s,t):s)||!vw(o)||l){const a={...o,...l&&Xv(i)?{isValid:i}:{},errors:n.errors,name:e};n={...n,...a},u.state.next(a)}},v=async e=>{b(e,!0);const a=await r.resolver(o,r.context,((e,a,r,n)=>{const i={};for(const r of e){const e=Yv(a,r);e&&aw(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}})(e||l.mount,i,r.criteriaMode,r.shouldUseNativeValidation));return b(e),a},w=async(e,a,i={valid:!0})=>{for(const s in e){const c=e[s];if(c){const{_f:e,...u}=c;if(e){const u=l.array.has(e.name),h=c._f&&(!!(t=c._f)&&!!t.validate&&!!(Fw(t.validate)&&t.validate.constructor.name===sz||Uv(t.validate)&&Object.values(t.validate).find((e=>e.constructor.name===sz))));h&&d.validatingFields&&b([s],!0);const m=await Ww(c,l.disabled,o,g,r.shouldUseNativeValidation&&!a,u);if(h&&d.validatingFields&&b([s]),m[e.name]&&(i.valid=!1,a))break;!a&&(Yv(m,e.name)?u?Dw(n.errors,m,e.name):aw(n.errors,e.name,m[e.name]):Zw(n.errors,e.name))}!vw(u)&&await w(u,a,i)}}var t;return i.valid},z=(e,a)=>!r.disabled&&(e&&a&&aw(o,e,a),!Yw(E(),t)),j=(e,a,r)=>$w(e,l,{...s.mount?o:Jv(a)?t:qw(e)?{[e]:a}:a},r,a),x=(e,a,r={})=>{const n=Yv(i,e);let t=a;if(n){const r=n._f;r&&(!r.disabled&&aw(o,e,iz(a,r)),t=Tw(r.ref)&&Bv(a)?"":a,Xw(r.ref)?[...r.ref.options].forEach((e=>e.selected=t.includes(e.value))):r.refs?Rv(r.ref)?r.refs.length>1?r.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(t)?!!t.find((a=>a===e.value)):t===e.value))):r.refs[0]&&(r.refs[0].checked=!!t):r.refs.forEach((e=>e.checked=e.value===t)):Mw(r.ref)?r.ref.value="":(r.ref.value=t,r.ref.type||u.values.next({name:e,values:{...o}})))}(r.shouldDirty||r.shouldTouch)&&f(e,t,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&S(e)},q=(e,a,r)=>{for(const n in a){const t=a[n],o=`${e}.${n}`,s=Yv(i,o);(l.array.has(e)||Uv(t)||s&&!s._f)&&!Lv(t)?q(o,t,r):x(o,t,r)}},$=(e,a,r={})=>{const c=Yv(i,e),h=l.array.has(e),m=Zv(a);aw(o,e,m),h?(u.array.next({name:e,values:{...o}}),(d.isDirty||d.dirtyFields)&&r.shouldDirty&&u.state.next({name:e,dirtyFields:nz(t,o),isDirty:z(e,m)})):!c||c._f||Bv(m)?x(e,m,r):q(e,m,r),Aw(e,l)&&u.state.next({...n}),u.values.next({name:s.mount?e:void 0,values:{...o}})},C=async e=>{s.mount=!0;const t=e.target;let c=t.name,k=!0;const z=Yv(i,c),j=e=>{k=Number.isNaN(e)||Lv(e)&&isNaN(e.getTime())||Yw(e,Yv(o,c,e))};if(z){let s,x;const q=t.type?tz(z._f):Hv(e),$=e.type===rw||e.type===nw,C=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(z._f)&&!r.resolver&&!Yv(n.errors,c)&&!z._f.deps||((e,a,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(a||e):(r?n.isOnBlur:i.isOnBlur)?!e:!(r?n.isOnChange:i.isOnChange)||e))($,Yv(n.touchedFields,c),n.isSubmitted,m,h),_=Aw(c,l,$);aw(o,c,q),$?(z._f.onBlur&&z._f.onBlur(e),a&&a(0)):z._f.onChange&&z._f.onChange(e);const E=f(c,q,$,!1),A=!vw(E)||_;if(!$&&u.values.next({name:c,type:e.type,values:{...o}}),C)return d.isValid&&("onBlur"===r.mode&&$?p():$||p()),A&&u.state.next({name:c,..._?{}:E});if(!$&&_&&u.state.next({...n}),r.resolver){const{errors:e}=await v([c]);if(j(q),k){const a=lz(n.errors,i,c),r=lz(e,i,a.name||c);s=r.error,c=r.name,x=vw(e)}}else b([c],!0),s=(await Ww(z,l.disabled,o,g,r.shouldUseNativeValidation))[c],b([c]),j(q),k&&(s?x=!1:d.isValid&&(x=await w(i,!0)));k&&(z._f.deps&&S(z._f.deps),y(c,x,s,E))}},_=(e,a)=>{if(Yv(n.errors,a)&&e.focus)return e.focus(),1},S=async(e,a={})=>{let t,o;const s=zw(e);if(r.resolver){const a=await(async e=>{const{errors:a}=await v(e);if(e)for(const r of e){const e=Yv(a,r);e?aw(n.errors,r,e):Zw(n.errors,r)}else n.errors=a;return a})(Jv(e)?e:s);t=vw(a),o=e?!s.some((e=>Yv(a,e))):t}else e?(o=(await Promise.all(s.map((async e=>{const a=Yv(i,e);return await w(a&&a._f?{[e]:a}:a)})))).every(Boolean),(o||n.isValid)&&p()):o=t=await w(i);return u.state.next({...!qw(e)||d.isValid&&t!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:t}:{},errors:n.errors}),a.shouldFocus&&!o&&Ow(i,_,e?s:l.mount),o},E=e=>{const a={...s.mount?o:t};return Jv(e)?a:qw(e)?Yv(a,e):e.map((e=>Yv(a,e)))},A=(e,a)=>({invalid:!!Yv((a||n).errors,e),isDirty:!!Yv((a||n).dirtyFields,e),error:Yv((a||n).errors,e),isValidating:!!Yv(n.validatingFields,e),isTouched:!!Yv((a||n).touchedFields,e)}),O=(e,a,r)=>{const t=(Yv(i,e,{_f:{}})._f||{}).ref,o=Yv(n.errors,e)||{},{ref:s,message:l,type:c,...d}=o;aw(n.errors,e,{...d,...a,ref:t}),u.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&t&&t.focus&&t.focus()},D=(e,a={})=>{for(const s of e?zw(e):l.mount)l.mount.delete(s),l.array.delete(s),a.keepValue||(Zw(i,s),Zw(o,s)),!a.keepError&&Zw(n.errors,s),!a.keepDirty&&Zw(n.dirtyFields,s),!a.keepTouched&&Zw(n.touchedFields,s),!a.keepIsValidating&&Zw(n.validatingFields,s),!r.shouldUnregister&&!a.keepDefaultValue&&Zw(t,s);u.values.next({values:{...o}}),u.state.next({...n,...a.keepDirty?{isDirty:z()}:{}}),!a.keepIsValid&&p()},M=({disabled:e,name:a,field:r,fields:n})=>{(Xv(e)&&s.mount||e||l.disabled.has(a))&&(e?l.disabled.add(a):l.disabled.delete(a),f(a,tz(r?r._f:Yv(n,a)._f),!1,!1,!0))},F=(e,a={})=>{let n=Yv(i,e);const o=Xv(a.disabled)||Xv(r.disabled);return aw(i,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...a}}),l.mount.add(e),n?M({field:n,disabled:Xv(a.disabled)?a.disabled:r.disabled,name:e}):k(e,!0,a.value),{...o?{disabled:a.disabled||r.disabled}:{},...r.progressive?{required:!!a.required,min:oz(a.min),max:oz(a.max),minLength:oz(a.minLength),maxLength:oz(a.maxLength),pattern:oz(a.pattern)}:{},name:e,onChange:C,onBlur:C,ref:o=>{if(o){F(e,a),n=Yv(i,e);const r=Jv(o.value)&&o.querySelectorAll&&o.querySelectorAll("input,select,textarea")[0]||o,s=(e=>Iw(e)||Rv(e))(r),l=n._f.refs||[];if(s?l.find((e=>e===r)):r===n._f.ref)return;aw(i,e,{_f:{...n._f,...s?{refs:[...l.filter(Qw),r,...Array.isArray(Yv(t,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),k(e,!1,void 0,r)}else n=Yv(i,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||a.shouldUnregister)&&(!Gv(l.array,e)||!s.action)&&l.unMount.add(e)}}},T=()=>r.shouldFocusError&&Ow(i,_,l.mount),N=(e,a)=>async t=>{let s;t&&(t.preventDefault&&t.preventDefault(),t.persist&&t.persist());let c=Zv(o);if(l.disabled.size)for(const e of l.disabled)aw(c,e,void 0);if(u.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:a}=await v();n.errors=e,c=a}else await w(i);if(Zw(n.errors,"root"),vw(n.errors)){u.state.next({errors:{}});try{await e(c,t)}catch(e){s=e}}else a&&await a({...n.errors},t),T(),setTimeout(T);if(u.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:vw(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},I=(e,a={})=>{const c=e?Zv(e):t,h=Zv(c),m=vw(e),g=m?t:h;if(a.keepDefaultValues||(t=c),!a.keepValues){if(a.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(nz(t,o))]);for(const a of Array.from(e))Yv(n.dirtyFields,a)?aw(g,a,Yv(o,a)):$(a,Yv(g,a))}else{if(Wv&&Jv(e))for(const e of l.mount){const a=Yv(i,e);if(a&&a._f){const e=Array.isArray(a._f.refs)?a._f.refs[0]:a._f.ref;if(Tw(e)){const a=e.closest("form");if(a){a.reset();break}}}}i={}}o=r.shouldUnregister?a.keepDefaultValues?Zv(t):{}:Zv(g),u.array.next({values:{...g}}),u.values.next({values:{...g}})}l={mount:a.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!a.keepIsValid||!!a.keepDirtyValues,s.watch=!!r.shouldUnregister,u.state.next({submitCount:a.keepSubmitCount?n.submitCount:0,isDirty:!m&&(a.keepDirty?n.isDirty:!(!a.keepDefaultValues||Yw(e,t))),isSubmitted:!!a.keepIsSubmitted&&n.isSubmitted,dirtyFields:m?{}:a.keepDirtyValues?a.keepDefaultValues&&o?nz(t,o):n.dirtyFields:a.keepDefaultValues&&e?nz(t,e):a.keepDirty?n.dirtyFields:{},touchedFields:a.keepTouched?n.touchedFields:{},errors:a.keepErrors?n.errors:{},isSubmitSuccessful:!!a.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},P=(e,a)=>I(Fw(e)?e(o):e,a);return{control:{register:F,unregister:D,getFieldState:A,handleSubmit:N,setError:O,_executeSchema:v,_getWatch:j,_getDirty:z,_updateValid:p,_removeUnmounted:()=>{for(const e of l.unMount){const a=Yv(i,e);a&&(a._f.refs?a._f.refs.every((e=>!Qw(e))):!Qw(a._f.ref))&&D(e)}l.unMount=new Set},_updateFieldArray:(e,a=[],l,c,h=!0,m=!0)=>{if(c&&l&&!r.disabled){if(s.action=!0,m&&Array.isArray(Yv(i,e))){const a=l(Yv(i,e),c.argA,c.argB);h&&aw(i,e,a)}if(m&&Array.isArray(Yv(n.errors,e))){const a=l(Yv(n.errors,e),c.argA,c.argB);h&&aw(n.errors,e,a),((e,a)=>{!Kv(Yv(e,a)).length&&Zw(e,a)})(n.errors,e)}if(d.touchedFields&&m&&Array.isArray(Yv(n.touchedFields,e))){const a=l(Yv(n.touchedFields,e),c.argA,c.argB);h&&aw(n.touchedFields,e,a)}d.dirtyFields&&(n.dirtyFields=nz(t,o)),u.state.next({name:e,isDirty:z(e,a),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else aw(o,e,a)},_updateDisabledField:M,_getFieldArray:e=>Kv(Yv(s.mount?o:t,e,r.shouldUnregister?Yv(t,e,[]):[])),_reset:I,_resetDefaultValues:()=>Fw(r.defaultValues)&&r.defaultValues().then((e=>{P(e,r.resetOptions),u.state.next({isLoading:!1})})),_updateFormState:e=>{n={...n,...e}},_disableForm:e=>{Xv(e)&&(u.state.next({disabled:e}),Ow(i,((a,r)=>{const n=Yv(i,r);n&&(a.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach((a=>{a.disabled=n._f.disabled||e})))}),0,!1))},_subjects:u,_proxyFormState:d,_setErrors:e=>{n.errors=e,u.state.next({errors:n.errors,isValid:!1})},get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(e){s=e},get _defaultValues(){return t},get _names(){return l},set _names(e){l=e},get _formState(){return n},set _formState(e){n=e},get _options(){return r},set _options(e){r={...r,...e}}},trigger:S,register:F,handleSubmit:N,watch:(e,a)=>Fw(e)?u.values.subscribe({next:r=>e(j(void 0,a),r)}):j(e,a,!0),setValue:$,getValues:E,reset:P,resetField:(e,a={})=>{Yv(i,e)&&(Jv(a.defaultValue)?$(e,Zv(Yv(t,e))):($(e,a.defaultValue),aw(t,e,Zv(a.defaultValue))),a.keepTouched||Zw(n.touchedFields,e),a.keepDirty||(Zw(n.dirtyFields,e),n.isDirty=a.defaultValue?z(e,Zv(Yv(t,e))):z()),a.keepError||(Zw(n.errors,e),d.isValid&&p()),u.state.next({...n}))},clearErrors:e=>{e&&zw(e).forEach((e=>Zw(n.errors,e))),u.state.next({errors:e?n.errors:{}})},unregister:D,setError:O,setFocus:(e,a={})=>{const r=Yv(i,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),a.shouldSelect&&Fw(e.select)&&e.select())}},getFieldState:A}}var uz={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468]))\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}},hz={exports:{}};
|
|
24
24
|
/*!
|
|
25
25
|
Copyright (c) 2018 Jed Watson.
|
|
26
26
|
Licensed under the MIT License (MIT), see
|