egora-library-dev 1.84.0 → 1.85.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -26,5 +26,5 @@ object-assign
|
|
|
26
26
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
27
27
|
* @license MIT
|
|
28
28
|
*/var Za=Lu(function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)});function Ka(e){return e&&"object"==typeof e?"position"in e||"type"in e?Ja(e.position):"start"in e||"end"in e?Ja(e):"line"in e||"column"in e?Xa(e):"":""}function Xa(e){return ed(e&&e.line)+":"+ed(e&&e.column)}function Ja(e){return Xa(e&&e.start)+"-"+Xa(e&&e.end)}function ed(e){return e&&"number"==typeof e?e:1}class ld extends Error{constructor(e,l,o){const t=[null,null];let n={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof l&&(o=l,l=void 0),"string"==typeof o){const e=o.indexOf(":");-1===e?t[1]=o:(t[0]=o.slice(0,e),t[1]=o.slice(e+1))}l&&("type"in l||"position"in l?l.position&&(n=l.position):"start"in l||"end"in l?n=l:("line"in l||"column"in l)&&(n.start=l)),this.name=Ka(l)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=n.start.line,this.column=n.start.column,this.position=n,this.source=t[0],this.ruleId=t[1],this.file,this.actual,this.expected,this.url,this.note}}function od(e,l){for(var o=0,t=e.length-1;t>=0;t--){var n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),o++):o&&(e.splice(t,1),o--)}if(l)for(;o--;o)e.unshift("..");return e}ld.prototype.file="",ld.prototype.name="",ld.prototype.reason="",ld.prototype.message="",ld.prototype.stack="",ld.prototype.fatal=null,ld.prototype.column=null,ld.prototype.line=null,ld.prototype.source=null,ld.prototype.ruleId=null,ld.prototype.position=null;var td=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,nd=function(e){return td.exec(e).slice(1)};function id(){for(var e="",l=!1,o=arguments.length-1;o>=-1&&!l;o--){var t=o>=0?arguments[o]:"/";if("string"!=typeof t)throw new TypeError("Arguments to path.resolve must be strings");t&&(e=t+"/"+e,l="/"===t.charAt(0))}return(l?"/":"")+(e=od(dd(e.split("/"),function(e){return!!e}),!l).join("/"))||"."}function rd(e){var l=ud(e),o="/"===vd(e,-1);return(e=od(dd(e.split("/"),function(e){return!!e}),!l).join("/"))||l||(e="."),e&&o&&(e+="/"),(l?"/":"")+e}function ud(e){return"/"===e.charAt(0)}var ad={extname:function(e){return nd(e)[3]},basename:function(e,l){var o=nd(e)[2];return l&&o.substr(-1*l.length)===l&&(o=o.substr(0,o.length-l.length)),o},dirname:function(e){var l=nd(e),o=l[0],t=l[1];return o||t?(t&&(t=t.substr(0,t.length-1)),o+t):"."},sep:"/",delimiter:":",relative:function(e,l){function o(e){for(var l=0;l<e.length&&""===e[l];l++);for(var o=e.length-1;o>=0&&""===e[o];o--);return l>o?[]:e.slice(l,o-l+1)}e=id(e).substr(1),l=id(l).substr(1);for(var t=o(e.split("/")),n=o(l.split("/")),i=Math.min(t.length,n.length),r=i,u=0;u<i;u++)if(t[u]!==n[u]){r=u;break}var a=[];for(u=r;u<t.length;u++)a.push("..");return(a=a.concat(n.slice(r))).join("/")},join:function(){return rd(dd(Array.prototype.slice.call(arguments,0),function(e,l){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},isAbsolute:ud,normalize:rd,resolve:id};function dd(e,l){if(e.filter)return e.filter(l);for(var o=[],t=0;t<e.length;t++)l(e[t],t,e)&&o.push(e[t]);return o}var vd="b"==="ab".substr(-1)?function(e,l,o){return e.substr(l,o)}:function(e,l,o){return l<0&&(l=e.length+l),e.substr(l,o)},sd=2147483647,cd=/[^\x20-\x7E]/,md=/[\x2E\u3002\uFF0E\uFF61]/g,pd={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},yd=Math.floor,gd=String.fromCharCode;
|
|
29
|
-
/*! https://mths.be/punycode v1.4.1 by @mathias */function hd(e){throw new RangeError(pd[e])}function fd(e,l){return e+22+75*(e<26)-((0!=l)<<5)}function xd(e,l,o){var t=0;for(e=o?yd(e/700):e>>1,e+=yd(e/l);e>455;t+=36)e=yd(e/35);return yd(t+36*e/(e+38))}function bd(e){return function(e,l){var o=e.split("@"),t="";o.length>1&&(t=o[0]+"@",e=o[1]);var n=function(e,l){for(var o=e.length,t=[];o--;)t[o]=l(e[o]);return t}((e=e.replace(md,".")).split("."),l).join(".");return t+n}(e,function(e){return cd.test(e)?"xn--"+function(e){var l,o,t,n,i,r,u,a,d,v,s,c,m,p,y,g=[];for(e=function(e){for(var l,o,t=[],n=0,i=e.length;n<i;)(l=e.charCodeAt(n++))>=55296&&l<=56319&&n<i?56320==(64512&(o=e.charCodeAt(n++)))?t.push(((1023&l)<<10)+(1023&o)+65536):(t.push(l),n--):t.push(l);return t}(e),c=e.length,l=128,o=0,i=72,r=0;r<c;++r)(s=e[r])<128&&g.push(gd(s));for(t=n=g.length,n&&g.push("-");t<c;){for(u=sd,r=0;r<c;++r)(s=e[r])>=l&&s<u&&(u=s);for(u-l>yd((sd-o)/(m=t+1))&&hd("overflow"),o+=(u-l)*m,l=u,r=0;r<c;++r)if((s=e[r])<l&&++o>sd&&hd("overflow"),s==l){for(a=o,d=36;!(a<(v=d<=i?1:d>=i+26?26:d-i));d+=36)y=a-v,p=36-v,g.push(gd(fd(v+y%p,0))),a=yd(y/p);g.push(gd(fd(a,0))),i=xd(o,m,t==n),o=0,++t}++o,++l}return g.join("")}(e):e})}function Cd(e){return null===e}function Sd(e){return"string"==typeof e}function Td(e){return"object"==typeof e&&null!==e}function wd(e,l){return Object.prototype.hasOwnProperty.call(e,l)}var kd=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Ld(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function Id(e,l){if(e.map)return e.map(l);for(var o=[],t=0;t<e.length;t++)o.push(l(e[t],t));return o}var Ed=Object.keys||function(e){var l=[];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&l.push(o);return l};function Pd(e,l,o,t){l=l||"&",o=o||"=";var n={};if("string"!=typeof e||0===e.length)return n;var i=/\+/g;e=e.split(l);var r=1e3;t&&"number"==typeof t.maxKeys&&(r=t.maxKeys);var u=e.length;r>0&&u>r&&(u=r);for(var a=0;a<u;++a){var d,v,s,c,m=e[a].replace(i,"%20"),p=m.indexOf(o);p>=0?(d=m.substr(0,p),v=m.substr(p+1)):(d=m,v=""),s=decodeURIComponent(d),c=decodeURIComponent(v),wd(n,s)?kd(n[s])?n[s].push(c):n[s]=[n[s],c]:n[s]=c}return n}function Md(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Dd=/^([a-z0-9.+-]+:)/i,Od=/:[0-9]*$/,Bd=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Fd=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Wd=["'"].concat(Fd),Ad=["%","/","?",";","#"].concat(Wd),zd=["/","?","#"],Rd=/^[+a-z0-9A-Z_-]{0,63}$/,Hd=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,jd={javascript:!0,"javascript:":!0},Nd={javascript:!0,"javascript:":!0},Vd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ud(e){if("string"==typeof e)e=(new Md).parse(e);else if(!(e instanceof Md))throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof e+String(e));if("file:"!==e.protocol)throw new TypeError("The URL must be of scheme file");return function(e){const l=e.pathname;for(let e=0;e<l.length;e++)if("%"===l[e]){const o=32|l.codePointAt(e+2);if("2"===l[e+1]&&102===o)throw new TypeError("must not include encoded / characters")}return decodeURIComponent(l)}(e)}function _d(e){var l=e.auth||"";l&&(l=(l=encodeURIComponent(l)).replace(/%3A/i,":"),l+="@");var o=e.protocol||"",t=e.pathname||"",n=e.hash||"",i=!1,r="";e.host?i=l+e.host:e.hostname&&(i=l+(-1===e.hostname.indexOf(":")?e.hostname:"["+this.hostname+"]"),e.port&&(i+=":"+e.port)),e.query&&Td(e.query)&&Object.keys(e.query).length&&(r=function(e,l,o,t){return l=l||"&",o=o||"=",null===e&&(e=void 0),"object"==typeof e?Id(Ed(e),function(t){var n=encodeURIComponent(Ld(t))+o;return kd(e[t])?Id(e[t],function(e){return n+encodeURIComponent(Ld(e))}).join(l):n+encodeURIComponent(Ld(e[t]))}).join(l):t?encodeURIComponent(Ld(t))+o+encodeURIComponent(Ld(e)):""}(e.query));var u=e.search||r&&"?"+r||"";return o&&":"!==o.substr(-1)&&(o+=":"),e.slashes||(!o||Vd[o])&&!1!==i?(i="//"+(i||""),t&&"/"!==t.charAt(0)&&(t="/"+t)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),u&&"?"!==u.charAt(0)&&(u="?"+u),o+i+(t=t.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(u=u.replace("#","%23"))+n}function qd(e){var l=e.host,o=Od.exec(l);o&&(":"!==(o=o[0])&&(e.port=o.substr(1)),l=l.substr(0,l.length-o.length)),l&&(e.hostname=l)}function Gd(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}Md.prototype.parse=function(e,l,o){return function(e,l,o,t){if(!Sd(l))throw new TypeError("Parameter 'url' must be a string, not "+typeof l);var n=l.indexOf("?"),i=-1!==n&&n<l.indexOf("#")?"?":"#",r=l.split(i),u=/\\/g;r[0]=r[0].replace(u,"/"),l=r.join(i);var a=l;if(a=a.trim(),!t&&1===l.split("#").length){var d=Bd.exec(a);if(d)return e.path=a,e.href=a,e.pathname=d[1],d[2]?(e.search=d[2],e.query=o?Pd(e.search.substr(1)):e.search.substr(1)):o&&(e.search="",e.query={}),e}var v,s,c,m,p=Dd.exec(a);if(p){var y=(p=p[0]).toLowerCase();e.protocol=y,a=a.substr(p.length)}if(t||p||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===a.substr(0,2);!g||p&&Nd[p]||(a=a.substr(2),e.slashes=!0)}if(!Nd[p]&&(g||p&&!Vd[p])){var h,f,x=-1;for(v=0;v<zd.length;v++)-1!==(s=a.indexOf(zd[v]))&&(-1===x||s<x)&&(x=s);for(-1!==(f=-1===x?a.lastIndexOf("@"):a.lastIndexOf("@",x))&&(h=a.slice(0,f),a=a.slice(f+1),e.auth=decodeURIComponent(h)),x=-1,v=0;v<Ad.length;v++)-1!==(s=a.indexOf(Ad[v]))&&(-1===x||s<x)&&(x=s);-1===x&&(x=a.length),e.host=a.slice(0,x),a=a.slice(x),qd(e),e.hostname=e.hostname||"";var b="["===e.hostname[0]&&"]"===e.hostname[e.hostname.length-1];if(!b){var C=e.hostname.split(/\./);for(v=0,c=C.length;v<c;v++){var S=C[v];if(S&&!S.match(Rd)){for(var T="",w=0,k=S.length;w<k;w++)S.charCodeAt(w)>127?T+="x":T+=S[w];if(!T.match(Rd)){var L=C.slice(0,v),I=C.slice(v+1),E=S.match(Hd);E&&(L.push(E[1]),I.unshift(E[2])),I.length&&(a="/"+I.join(".")+a),e.hostname=L.join(".");break}}}}e.hostname.length>255?e.hostname="":e.hostname=e.hostname.toLowerCase(),b||(e.hostname=bd(e.hostname)),m=e.port?":"+e.port:"";var P=e.hostname||"";e.host=P+m,e.href+=e.host,b&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!jd[y])for(v=0,c=Wd.length;v<c;v++){var M=Wd[v];if(-1!==a.indexOf(M)){var D=encodeURIComponent(M);D===M&&(D=escape(M)),a=a.split(M).join(D)}}var O=a.indexOf("#");-1!==O&&(e.hash=a.substr(O),a=a.slice(0,O));var B=a.indexOf("?");-1!==B?(e.search=a.substr(B),e.query=a.substr(B+1),o&&(e.query=Pd(e.query)),a=a.slice(0,B)):o&&(e.search="",e.query={});a&&(e.pathname=a);Vd[y]&&e.hostname&&!e.pathname&&(e.pathname="/");if(e.pathname||e.search){m=e.pathname||"";var F=e.search||"";e.path=m+F}return e.href=_d(e),e}(this,e,l,o)},Md.prototype.format=function(){return _d(this)},Md.prototype.resolve=function(e){return this.resolveObject(function(e,l,o){if(e&&Td(e)&&e instanceof Md)return e;var t=new Md;return t.parse(e,l,o),t}(e,!1,!0)).format()},Md.prototype.resolveObject=function(e){if(Sd(e)){var l=new Md;l.parse(e,!1,!0),e=l}for(var o,t=new Md,n=Object.keys(this),i=0;i<n.length;i++){var r=n[i];t[r]=this[r]}if(t.hash=e.hash,""===e.href)return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),a=0;a<u.length;a++){var d=u[a];"protocol"!==d&&(t[d]=e[d])}return Vd[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!Vd[e.protocol]){for(var v=Object.keys(e),s=0;s<v.length;s++){var c=v[s];t[c]=e[c]}return t.href=t.format(),t}if(t.protocol=e.protocol,e.host||Nd[e.protocol])t.pathname=e.pathname;else{for(o=(e.pathname||"").split("/");o.length&&!(e.host=o.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==o[0]&&o.unshift(""),o.length<2&&o.unshift(""),t.pathname=o.join("/")}if(t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,t.pathname||t.search){var m=t.pathname||"",p=t.search||"";t.path=m+p}return t.slashes=t.slashes||e.slashes,t.href=t.format(),t}var y,g=t.pathname&&"/"===t.pathname.charAt(0),h=e.host||e.pathname&&"/"===e.pathname.charAt(0),f=h||g||t.host&&e.pathname,x=f,b=t.pathname&&t.pathname.split("/")||[],C=t.protocol&&!Vd[t.protocol];if(o=e.pathname&&e.pathname.split("/")||[],C&&(t.hostname="",t.port=null,t.host&&(""===b[0]?b[0]=t.host:b.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===o[0]?o[0]=e.host:o.unshift(e.host)),e.host=null),f=f&&(""===o[0]||""===b[0])),h)t.host=e.host||""===e.host?e.host:t.host,t.hostname=e.hostname||""===e.hostname?e.hostname:t.hostname,t.search=e.search,t.query=e.query,b=o;else if(o.length)b||(b=[]),b.pop(),b=b.concat(o),t.search=e.search,t.query=e.query;else if(null!=e.search)return C&&(t.hostname=t.host=b.shift(),(y=!!(t.host&&t.host.indexOf("@")>0)&&t.host.split("@"))&&(t.auth=y.shift(),t.host=t.hostname=y.shift())),t.search=e.search,t.query=e.query,Cd(t.pathname)&&Cd(t.search)||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t;if(!b.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var S=b.slice(-1)[0],T=(t.host||e.host||b.length>1)&&("."===S||".."===S)||""===S,w=0,k=b.length;k>=0;k--)"."===(S=b[k])?b.splice(k,1):".."===S?(b.splice(k,1),w++):w&&(b.splice(k,1),w--);if(!f&&!x)for(;w--;w)b.unshift("..");!f||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),T&&"/"!==b.join("/").substr(-1)&&b.push("");var L=""===b[0]||b[0]&&"/"===b[0].charAt(0);return C&&(t.hostname=t.host=L?"":b.length?b.shift():"",(y=!!(t.host&&t.host.indexOf("@")>0)&&t.host.split("@"))&&(t.auth=y.shift(),t.host=t.hostname=y.shift())),(f=f||t.host&&b.length)&&!L&&b.unshift(""),b.length?t.pathname=b.join("/"):(t.pathname=null,t.path=null),Cd(t.pathname)&&Cd(t.search)||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=t.format(),t},Md.prototype.parseHost=function(){return qd(this)};const Qd=["history","path","basename","stem","extname","dirname"];class Yd{constructor(e){let l;l=e?"string"==typeof e||function(e){return Za(e)}(e)?{value:e}:Gd(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=hn.cwd(),this.value,this.stored,this.result,this.map;let o,t=-1;for(;++t<Qd.length;){const e=Qd[t];e in l&&void 0!==l[e]&&null!==l[e]&&(this[e]="history"===e?[...l[e]]:l[e])}for(o in l)Qd.includes(o)||(this[o]=l[o])}get path(){return this.history[this.history.length-1]}set path(e){Gd(e)&&(e=Ud(e)),Zd(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?ad.dirname(this.path):void 0}set dirname(e){Kd(this.basename,"dirname"),this.path=ad.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?ad.basename(this.path):void 0}set basename(e){Zd(e,"basename"),$d(e,"basename"),this.path=ad.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?ad.extname(this.path):void 0}set extname(e){if($d(e,"extname"),Kd(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ad.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?ad.basename(this.path,this.extname):void 0}set stem(e){Zd(e,"stem"),$d(e,"stem"),this.path=ad.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,l,o){const t=new ld(e,l,o);return this.path&&(t.name=this.path+":"+t.name,t.file=this.path),t.fatal=!1,this.messages.push(t),t}info(e,l,o){const t=this.message(e,l,o);return t.fatal=null,t}fail(e,l,o){const t=this.message(e,l,o);throw t.fatal=!0,t}}function $d(e,l){if(e&&e.includes(ad.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+ad.sep+"`")}function Zd(e,l){if(!e)throw new Error("`"+l+"` cannot be empty")}function Kd(e,l){if(!e)throw new Error("Setting `"+l+"` requires `path` to be set too")}function Xd(e){if(e)throw e}var Jd=Object.prototype.hasOwnProperty,ev=Object.prototype.toString,lv=Object.defineProperty,ov=Object.getOwnPropertyDescriptor,tv=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ev.call(e)},nv=function(e){if(!e||"[object Object]"!==ev.call(e))return!1;var l,o=Jd.call(e,"constructor"),t=e.constructor&&e.constructor.prototype&&Jd.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!t)return!1;for(l in e);return void 0===l||Jd.call(e,l)},iv=function(e,l){lv&&"__proto__"===l.name?lv(e,l.name,{enumerable:!0,configurable:!0,value:l.newValue,writable:!0}):e[l.name]=l.newValue},rv=function(e,l){if("__proto__"===l){if(!Jd.call(e,l))return;if(ov)return ov(e,l).value}return e[l]},uv=function e(){var l,o,t,n,i,r,u=arguments[0],a=1,d=arguments.length,v=!1;for("boolean"==typeof u&&(v=u,u=arguments[1]||{},a=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});a<d;++a)if(null!=(l=arguments[a]))for(o in l)t=rv(u,o),u!==(n=rv(l,o))&&(v&&n&&(nv(n)||(i=tv(n)))?(i?(i=!1,r=t&&tv(t)?t:[]):r=t&&nv(t)?t:{},iv(u,{name:o,newValue:e(v,r,n)})):void 0!==n&&iv(u,{name:o,newValue:n}));return u},av=Lu(uv);function dv(e){if("object"!=typeof e||null===e)return!1;const l=Object.getPrototypeOf(e);return!(null!==l&&l!==Object.prototype&&null!==Object.getPrototypeOf(l)||Symbol.toStringTag in e||Symbol.iterator in e)}function vv(){const e=[],l={run:function(...l){let o=-1;const t=l.pop();if("function"!=typeof t)throw new TypeError("Expected function as last argument, not "+t);!function n(i,...r){const u=e[++o];let a=-1;if(i)t(i);else{for(;++a<l.length;)null!==r[a]&&void 0!==r[a]||(r[a]=l[a]);l=r,u?function(e,l){let o;return t;function t(...l){const t=e.length>l.length;let r;t&&l.push(n);try{r=e.apply(this,l)}catch(e){if(t&&o)throw e;return n(e)}t||(r&&r.then&&"function"==typeof r.then?r.then(i,n):r instanceof Error?n(r):i(r))}function n(e,...t){o||(o=!0,l(e,...t))}function i(e){n(null,e)}}(u,n)(...r):t(null,...r)}}(null,...l)},use:function(o){if("function"!=typeof o)throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),l}};return l}const sv=function e(){const l=vv(),o=[];let t,n={},i=-1;return r.data=function(e,l){if("string"==typeof e)return 2===arguments.length?(gv("data",t),n[e]=l,r):cv.call(n,e)&&n[e]||null;if(e)return gv("data",t),n=e,r;return n},r.Parser=void 0,r.Compiler=void 0,r.freeze=function(){if(t)return r;for(;++i<o.length;){const[e,...t]=o[i];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);const n=e.call(r,...t);"function"==typeof n&&l.use(n)}return t=!0,i=Number.POSITIVE_INFINITY,r},r.attachers=o,r.use=function(e,...l){let i;if(gv("use",t),null==e);else if("function"==typeof e)v(e,...l);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?d(e):a(e)}i&&(n.settings=Object.assign(n.settings||{},i));return r;function u(e){if("function"==typeof e)v(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[l,...o]=e;v(l,...o)}else a(e)}}function a(e){d(e.plugins),e.settings&&(i=Object.assign(i||{},e.settings))}function d(e){let l=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++l<e.length;){u(e[l])}}}function v(e,l){let t,n=-1;for(;++n<o.length;)if(o[n][0]===e){t=o[n];break}t?(dv(t[1])&&dv(l)&&(l=av(!0,t[1],l)),t[1]=l):o.push([...arguments])}},r.parse=function(e){r.freeze();const l=xv(e),o=r.Parser;if(pv("parse",o),mv(o,"parse"))return new o(String(l),l).parse();return o(String(l),l)},r.stringify=function(e,l){r.freeze();const o=xv(l),t=r.Compiler;if(yv("stringify",t),hv(e),mv(t,"compile"))return new t(e,o).compile();return t(e,o)},r.run=function(e,o,t){hv(e),r.freeze(),t||"function"!=typeof o||(t=o,o=void 0);if(!t)return new Promise(n);function n(n,i){function r(l,o,r){o=o||e,l?i(l):n?n(o):t(null,o,r)}l.run(e,xv(o),r)}n(null,t)},r.runSync=function(e,l){let o,t;return r.run(e,l,n),fv("runSync","run",t),o;function n(e,l){Xd(e),o=l,t=!0}},r.process=function(e,l){if(r.freeze(),pv("process",r.Parser),yv("process",r.Compiler),!l)return new Promise(o);function o(o,t){const n=xv(e);function i(e,n){e||!n?t(e):o?o(n):l(null,n)}r.run(r.parse(n),n,(e,l,o)=>{if(!e&&l&&o){const n=r.stringify(l,o);null==n||("string"==typeof(t=n)||Za(t)?o.value=n:o.result=n),i(e,o)}else i(e);var t})}o(null,l)},r.processSync=function(e){let l;r.freeze(),pv("processSync",r.Parser),yv("processSync",r.Compiler);const o=xv(e);return r.process(o,t),fv("processSync","process",l),o;function t(e){l=!0,Xd(e)}},r;function r(){const l=e();let t=-1;for(;++t<o.length;)l.use(...o[t]);return l.data(av(!0,{},n)),l}}().freeze(),cv={}.hasOwnProperty;function mv(e,l){return"function"==typeof e&&e.prototype&&(function(e){let l;for(l in e)if(cv.call(e,l))return!0;return!1}(e.prototype)||l in e.prototype)}function pv(e,l){if("function"!=typeof l)throw new TypeError("Cannot `"+e+"` without `Parser`")}function yv(e,l){if("function"!=typeof l)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function gv(e,l){if(l)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function hv(e){if(!dv(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function fv(e,l,o){if(!o)throw new Error("`"+e+"` finished async. Use `"+l+"` instead")}function xv(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Yd(e)}const bv={};function Cv(e,l,o){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||o?e.value:"";if(l&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Sv(e.children,l,o)}return Array.isArray(e)?Sv(e,l,o):""}function Sv(e,l,o){const t=[];let n=-1;for(;++n<e.length;)t[n]=Cv(e[n],l,o);return t.join("")}function Tv(e,l,o,t){const n=e.length;let i,r=0;if(l=l<0?-l>n?0:n+l:l>n?n:l,o=o>0?o:0,t.length<1e4)i=Array.from(t),i.unshift(l,o),e.splice(...i);else for(o&&e.splice(l,o);r<t.length;)i=t.slice(r,r+1e4),i.unshift(l,0),e.splice(...i),r+=1e4,l+=1e4}function wv(e,l){return e.length>0?(Tv(e,e.length,0,l),e):l}const kv={}.hasOwnProperty;function Lv(e,l){let o;for(o in l){const t=(kv.call(e,o)?e[o]:void 0)||(e[o]={}),n=l[o];let i;if(n)for(i in n){kv.call(t,i)||(t[i]=[]);const e=n[i];Iv(t[i],Array.isArray(e)?e:e?[e]:[])}}}function Iv(e,l){let o=-1;const t=[];for(;++o<l.length;)("after"===l[o].add?e:t).push(l[o]);Tv(e,0,0,t)}const Ev=jv(/[A-Za-z]/),Pv=jv(/[\dA-Za-z]/),Mv=jv(/[#-'*+\--9=?A-Z^-~]/);function Dv(e){return null!==e&&(e<32||127===e)}const Ov=jv(/\d/),Bv=jv(/[\dA-Fa-f]/),Fv=jv(/[!-/:-@[-`{-~]/);function Wv(e){return null!==e&&e<-2}function Av(e){return null!==e&&(e<0||32===e)}function zv(e){return-2===e||-1===e||32===e}const Rv=jv(/[!-\/:-@\[-`\{-~\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]/),Hv=jv(/\s/);function jv(e){return function(l){return null!==l&&e.test(String.fromCharCode(l))}}function Nv(e,l,o,t){const n=t?t-1:Number.POSITIVE_INFINITY;let i=0;return function(t){if(zv(t))return e.enter(o),r(t);return l(t)};function r(t){return zv(t)&&i++<n?(e.consume(t),r):(e.exit(o),l(t))}}const Vv={tokenize:function(e){const l=e.attempt(this.parser.constructs.contentInitial,function(o){if(null===o)return void e.consume(o);return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Nv(e,l,"linePrefix")},function(l){return e.enter("paragraph"),t(l)});let o;return l;function t(l){const t=e.enter("chunkText",{contentType:"text",previous:o});return o&&(o.next=t),o=t,n(l)}function n(l){return null===l?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(l)):Wv(l)?(e.consume(l),e.exit("chunkText"),t):(e.consume(l),n)}}};const Uv={tokenize:function(e){const l=this,o=[];let t,n,i,r=0;return u;function u(t){if(r<o.length){const n=o[r];return l.containerState=n[1],e.attempt(n[0].continuation,a,d)(t)}return d(t)}function a(e){if(r++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,t&&f();const o=l.events.length;let n,i=o;for(;i--;)if("exit"===l.events[i][0]&&"chunkFlow"===l.events[i][1].type){n=l.events[i][1].end;break}h(r);let u=o;for(;u<l.events.length;)l.events[u][1].end=Object.assign({},n),u++;return Tv(l.events,i+1,0,l.events.slice(o)),l.events.length=u,d(e)}return u(e)}function d(n){if(r===o.length){if(!t)return c(n);if(t.currentConstruct&&t.currentConstruct.concrete)return p(n);l.interrupt=Boolean(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return l.containerState={},e.check(_v,v,s)(n)}function v(e){return t&&f(),h(r),c(e)}function s(e){return l.parser.lazy[l.now().line]=r!==o.length,i=l.now().offset,p(e)}function c(o){return l.containerState={},e.attempt(_v,m,p)(o)}function m(e){return r++,o.push([l.currentConstruct,l.containerState]),c(e)}function p(o){return null===o?(t&&f(),h(0),void e.consume(o)):(t=t||l.parser.flow(l.now()),e.enter("chunkFlow",{contentType:"flow",previous:n,_tokenizer:t}),y(o))}function y(o){return null===o?(g(e.exit("chunkFlow"),!0),h(0),void e.consume(o)):Wv(o)?(e.consume(o),g(e.exit("chunkFlow")),r=0,l.interrupt=void 0,u):(e.consume(o),y)}function g(e,o){const u=l.sliceStream(e);if(o&&u.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(u),l.parser.lazy[e.start.line]){let e=t.events.length;for(;e--;)if(t.events[e][1].start.offset<i&&(!t.events[e][1].end||t.events[e][1].end.offset>i))return;const o=l.events.length;let n,u,a=o;for(;a--;)if("exit"===l.events[a][0]&&"chunkFlow"===l.events[a][1].type){if(n){u=l.events[a][1].end;break}n=!0}for(h(r),e=o;e<l.events.length;)l.events[e][1].end=Object.assign({},u),e++;Tv(l.events,a+1,0,l.events.slice(o)),l.events.length=e}}function h(t){let n=o.length;for(;n-- >t;){const t=o[n];l.containerState=t[1],t[0].exit.call(l,e)}o.length=t}function f(){t.write([null]),n=void 0,t=void 0,l.containerState._closeFlow=void 0}}},_v={tokenize:function(e,l,o){return Nv(e,e.attempt(this.parser.constructs.document,l,o),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function qv(e){return null===e||Av(e)||Hv(e)?1:Rv(e)?2:void 0}function Gv(e,l,o){const t=[];let n=-1;for(;++n<e.length;){const i=e[n].resolveAll;i&&!t.includes(i)&&(l=i(l,o),t.push(i))}return l}const Qv={name:"attention",tokenize:function(e,l){const o=this.parser.constructs.attentionMarkers.null,t=this.previous,n=qv(t);let i;return function(l){return i=l,e.enter("attentionSequence"),r(l)};function r(u){if(u===i)return e.consume(u),r;const a=e.exit("attentionSequence"),d=qv(u),v=!d||2===d&&n||o.includes(u),s=!n||2===n&&d||o.includes(t);return a._open=Boolean(42===i?v:v&&(n||!s)),a._close=Boolean(42===i?s:s&&(d||!v)),l(u)}},resolveAll:function(e,l){let o,t,n,i,r,u,a,d,v=-1;for(;++v<e.length;)if("enter"===e[v][0]&&"attentionSequence"===e[v][1].type&&e[v][1]._close)for(o=v;o--;)if("exit"===e[o][0]&&"attentionSequence"===e[o][1].type&&e[o][1]._open&&l.sliceSerialize(e[o][1]).charCodeAt(0)===l.sliceSerialize(e[v][1]).charCodeAt(0)){if((e[o][1]._close||e[v][1]._open)&&(e[v][1].end.offset-e[v][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[v][1].end.offset-e[v][1].start.offset)%3))continue;u=e[o][1].end.offset-e[o][1].start.offset>1&&e[v][1].end.offset-e[v][1].start.offset>1?2:1;const s=Object.assign({},e[o][1].end),c=Object.assign({},e[v][1].start);Yv(s,-u),Yv(c,u),i={type:u>1?"strongSequence":"emphasisSequence",start:s,end:Object.assign({},e[o][1].end)},r={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[v][1].start),end:c},n={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[o][1].end),end:Object.assign({},e[v][1].start)},t={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},r.end)},e[o][1].end=Object.assign({},i.start),e[v][1].start=Object.assign({},r.end),a=[],e[o][1].end.offset-e[o][1].start.offset&&(a=wv(a,[["enter",e[o][1],l],["exit",e[o][1],l]])),a=wv(a,[["enter",t,l],["enter",i,l],["exit",i,l],["enter",n,l]]),a=wv(a,Gv(l.parser.constructs.insideSpan.null,e.slice(o+1,v),l)),a=wv(a,[["exit",n,l],["enter",r,l],["exit",r,l],["exit",t,l]]),e[v][1].end.offset-e[v][1].start.offset?(d=2,a=wv(a,[["enter",e[v][1],l],["exit",e[v][1],l]])):d=0,Tv(e,o-1,v-o+3,a),v=o+a.length-d-2;break}v=-1;for(;++v<e.length;)"attentionSequence"===e[v][1].type&&(e[v][1].type="data");return e}};function Yv(e,l){e.column+=l,e.offset+=l,e._bufferIndex+=l}const $v={name:"autolink",tokenize:function(e,l,o){let t=0;return function(l){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),n};function n(l){return Ev(l)?(e.consume(l),i):a(l)}function i(e){return 43===e||45===e||46===e||Pv(e)?(t=1,r(e)):a(e)}function r(l){return 58===l?(e.consume(l),t=0,u):(43===l||45===l||46===l||Pv(l))&&t++<32?(e.consume(l),r):(t=0,a(l))}function u(t){return 62===t?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.exit("autolink"),l):null===t||32===t||60===t||Dv(t)?o(t):(e.consume(t),u)}function a(l){return 64===l?(e.consume(l),d):Mv(l)?(e.consume(l),a):o(l)}function d(e){return Pv(e)?v(e):o(e)}function v(o){return 46===o?(e.consume(o),t=0,d):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),l):s(o)}function s(l){if((45===l||Pv(l))&&t++<63){const o=45===l?s:v;return e.consume(l),o}return o(l)}}};const Zv={tokenize:function(e,l,o){return function(l){return zv(l)?Nv(e,t,"linePrefix")(l):t(l)};function t(e){return null===e||Wv(e)?l(e):o(e)}},partial:!0};const Kv={name:"blockQuote",tokenize:function(e,l,o){const t=this;return function(l){if(62===l){const o=t.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),n}return o(l)};function n(o){return zv(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),l):(e.exit("blockQuotePrefix"),l(o))}},continuation:{tokenize:function(e,l,o){const t=this;return function(l){if(zv(l))return Nv(e,n,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l);return n(l)};function n(t){return e.attempt(Kv,l,o)(t)}}},exit:function(e){e.exit("blockQuote")}};const Xv={name:"characterEscape",tokenize:function(e,l,o){return function(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),t};function t(t){return Fv(t)?(e.enter("characterEscapeValue"),e.consume(t),e.exit("characterEscapeValue"),e.exit("characterEscape"),l):o(t)}}};const Jv={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",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:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",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:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},es={}.hasOwnProperty;function ls(e){return!!es.call(Jv,e)&&Jv[e]}const os={name:"characterReference",tokenize:function(e,l,o){const t=this;let n,i,r=0;return function(l){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),u};function u(l){return 35===l?(e.enter("characterReferenceMarkerNumeric"),e.consume(l),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),n=31,i=Pv,d(l))}function a(l){return 88===l||120===l?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(l),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,i=Bv,d):(e.enter("characterReferenceValue"),n=7,i=Ov,d(l))}function d(u){if(59===u&&r){const n=e.exit("characterReferenceValue");return i!==Pv||ls(t.sliceSerialize(n))?(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),l):o(u)}return i(u)&&r++<n?(e.consume(u),d):o(u)}}};const ts={tokenize:function(e,l,o){const t=this;return function(l){if(null===l)return o(l);return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n};function n(e){return t.parser.lazy[t.now().line]?o(e):l(e)}},partial:!0},ns={name:"codeFenced",tokenize:function(e,l,o){const t=this,n={tokenize:function(e,l,o){let n=0;return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a}function a(l){return e.enter("codeFencedFence"),zv(l)?Nv(e,d,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):d(l)}function d(l){return l===i?(e.enter("codeFencedFenceSequence"),v(l)):o(l)}function v(l){return l===i?(n++,e.consume(l),v):n>=u?(e.exit("codeFencedFenceSequence"),zv(l)?Nv(e,s,"whitespace")(l):s(l)):o(l)}function s(t){return null===t||Wv(t)?(e.exit("codeFencedFence"),l(t)):o(t)}},partial:!0};let i,r=0,u=0;return function(l){return function(l){const o=t.events[t.events.length-1];return r=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=l,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(l)}(l)};function a(l){return l===i?(u++,e.consume(l),a):u<3?o(l):(e.exit("codeFencedFenceSequence"),zv(l)?Nv(e,d,"whitespace")(l):d(l))}function d(o){return null===o||Wv(o)?(e.exit("codeFencedFence"),t.interrupt?l(o):e.check(ts,m,f)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(o))}function v(l){return null===l||Wv(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(l)):zv(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Nv(e,s,"whitespace")(l)):96===l&&l===i?o(l):(e.consume(l),v)}function s(l){return null===l||Wv(l)?d(l):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(l))}function c(l){return null===l||Wv(l)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(l)):96===l&&l===i?o(l):(e.consume(l),c)}function m(l){return e.attempt(n,f,p)(l)}function p(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),y}function y(l){return r>0&&zv(l)?Nv(e,g,"linePrefix",r+1)(l):g(l)}function g(l){return null===l||Wv(l)?e.check(ts,m,f)(l):(e.enter("codeFlowValue"),h(l))}function h(l){return null===l||Wv(l)?(e.exit("codeFlowValue"),g(l)):(e.consume(l),h)}function f(o){return e.exit("codeFenced"),l(o)}},concrete:!0};const is={name:"codeIndented",tokenize:function(e,l,o){const t=this;return function(l){return e.enter("codeIndented"),Nv(e,n,"linePrefix",5)(l)};function n(e){const l=t.events[t.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?i(e):o(e)}function i(l){return null===l?u(l):Wv(l)?e.attempt(rs,i,u)(l):(e.enter("codeFlowValue"),r(l))}function r(l){return null===l||Wv(l)?(e.exit("codeFlowValue"),i(l)):(e.consume(l),r)}function u(o){return e.exit("codeIndented"),l(o)}}},rs={tokenize:function(e,l,o){const t=this;return n;function n(l){return t.parser.lazy[t.now().line]?o(l):Wv(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n):Nv(e,i,"linePrefix",5)(l)}function i(e){const i=t.events[t.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?l(e):Wv(e)?n(e):o(e)}},partial:!0};const us={name:"codeText",tokenize:function(e,l,o){let t,n,i=0;return function(l){return e.enter("codeText"),e.enter("codeTextSequence"),r(l)};function r(l){return 96===l?(e.consume(l),i++,r):(e.exit("codeTextSequence"),u(l))}function u(l){return null===l?o(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),u):96===l?(n=e.enter("codeTextSequence"),t=0,d(l)):Wv(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),u):(e.enter("codeTextData"),a(l))}function a(l){return null===l||32===l||96===l||Wv(l)?(e.exit("codeTextData"),u(l)):(e.consume(l),a)}function d(o){return 96===o?(e.consume(o),t++,d):t===i?(e.exit("codeTextSequence"),e.exit("codeText"),l(o)):(n.type="codeTextData",a(o))}},resolve:function(e){let l,o,t=e.length-4,n=3;if(!("lineEnding"!==e[n][1].type&&"space"!==e[n][1].type||"lineEnding"!==e[t][1].type&&"space"!==e[t][1].type))for(l=n;++l<t;)if("codeTextData"===e[l][1].type){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}l=n-1,t++;for(;++l<=t;)void 0===o?l!==t&&"lineEnding"!==e[l][1].type&&(o=l):l!==t&&"lineEnding"!==e[l][1].type||(e[o][1].type="codeTextData",l!==o+2&&(e[o][1].end=e[l-1][1].end,e.splice(o+2,l-o-2),t-=l-o-2,l=o+2),o=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function as(e){const l={};let o,t,n,i,r,u,a,d=-1;for(;++d<e.length;){for(;d in l;)d=l[d];if(o=e[d],d&&"chunkFlow"===o[1].type&&"listItemPrefix"===e[d-1][1].type&&(u=o[1]._tokenizer.events,n=0,n<u.length&&"lineEndingBlank"===u[n][1].type&&(n+=2),n<u.length&&"content"===u[n][1].type))for(;++n<u.length&&"content"!==u[n][1].type;)"chunkText"===u[n][1].type&&(u[n][1]._isInFirstContentOfListItem=!0,n++);if("enter"===o[0])o[1].contentType&&(Object.assign(l,ds(e,d)),d=l[d],a=!0);else if(o[1]._container){for(n=d,t=void 0;n--&&(i=e[n],"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(t&&(e[t][1].type="lineEndingBlank"),i[1].type="lineEnding",t=n);t&&(o[1].end=Object.assign({},e[t][1].start),r=e.slice(t,d),r.unshift(o),Tv(e,t,d-t+1,r))}}return!a}function ds(e,l){const o=e[l][1],t=e[l][2];let n=l-1;const i=[],r=o._tokenizer||t.parser[o.contentType](o.start),u=r.events,a=[],d={};let v,s,c=-1,m=o,p=0,y=0;const g=[y];for(;m;){for(;e[++n][1]!==m;);i.push(n),m._tokenizer||(v=t.sliceStream(m),m.next||v.push(null),s&&r.defineSkip(m.start),m._isInFirstContentOfListItem&&(r._gfmTasklistFirstContentOfListItem=!0),r.write(v),m._isInFirstContentOfListItem&&(r._gfmTasklistFirstContentOfListItem=void 0)),s=m,m=m.next}for(m=o;++c<u.length;)"exit"===u[c][0]&&"enter"===u[c-1][0]&&u[c][1].type===u[c-1][1].type&&u[c][1].start.line!==u[c][1].end.line&&(y=c+1,g.push(y),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(r.events=[],m?(m._tokenizer=void 0,m.previous=void 0):g.pop(),c=g.length;c--;){const l=u.slice(g[c],g[c+1]),o=i.pop();a.unshift([o,o+l.length-1]),Tv(e,o,2,l)}for(c=-1;++c<a.length;)d[p+a[c][0]]=p+a[c][1],p+=a[c][1]-a[c][0]-1;return d}const vs={tokenize:function(e,l){let o;return function(l){return e.enter("content"),o=e.enter("chunkContent",{contentType:"content"}),t(l)};function t(l){return null===l?n(l):Wv(l)?e.check(ss,i,n)(l):(e.consume(l),t)}function n(o){return e.exit("chunkContent"),e.exit("content"),l(o)}function i(l){return e.consume(l),e.exit("chunkContent"),o.next=e.enter("chunkContent",{contentType:"content",previous:o}),o=o.next,t}},resolve:function(e){return as(e),e}},ss={tokenize:function(e,l,o){const t=this;return function(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Nv(e,n,"linePrefix")};function n(n){if(null===n||Wv(n))return o(n);const i=t.events[t.events.length-1];return!t.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?l(n):e.interrupt(t.parser.constructs.flow,o,l)(n)}},partial:!0};function cs(e,l,o,t,n,i,r,u,a){const d=a||Number.POSITIVE_INFINITY;let v=0;return function(l){if(60===l)return e.enter(t),e.enter(n),e.enter(i),e.consume(l),e.exit(i),s;if(null===l||32===l||41===l||Dv(l))return o(l);return e.enter(t),e.enter(r),e.enter(u),e.enter("chunkString",{contentType:"string"}),p(l)};function s(o){return 62===o?(e.enter(i),e.consume(o),e.exit(i),e.exit(n),e.exit(t),l):(e.enter(u),e.enter("chunkString",{contentType:"string"}),c(o))}function c(l){return 62===l?(e.exit("chunkString"),e.exit(u),s(l)):null===l||60===l||Wv(l)?o(l):(e.consume(l),92===l?m:c)}function m(l){return 60===l||62===l||92===l?(e.consume(l),c):c(l)}function p(n){return v||null!==n&&41!==n&&!Av(n)?v<d&&40===n?(e.consume(n),v++,p):41===n?(e.consume(n),v--,p):null===n||32===n||40===n||Dv(n)?o(n):(e.consume(n),92===n?y:p):(e.exit("chunkString"),e.exit(u),e.exit(r),e.exit(t),l(n))}function y(l){return 40===l||41===l||92===l?(e.consume(l),p):p(l)}}function ms(e,l,o,t,n,i){const r=this;let u,a=0;return function(l){return e.enter(t),e.enter(n),e.consume(l),e.exit(n),e.enter(i),d};function d(s){return a>999||null===s||91===s||93===s&&!u||94===s&&!a&&"_hiddenFootnoteSupport"in r.parser.constructs?o(s):93===s?(e.exit(i),e.enter(n),e.consume(s),e.exit(n),e.exit(t),l):Wv(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),v(s))}function v(l){return null===l||91===l||93===l||Wv(l)||a++>999?(e.exit("chunkString"),d(l)):(e.consume(l),u||(u=!zv(l)),92===l?s:v)}function s(l){return 91===l||92===l||93===l?(e.consume(l),a++,v):v(l)}}function ps(e,l,o,t,n,i){let r;return function(l){if(34===l||39===l||40===l)return e.enter(t),e.enter(n),e.consume(l),e.exit(n),r=40===l?41:l,u;return o(l)};function u(o){return o===r?(e.enter(n),e.consume(o),e.exit(n),e.exit(t),l):(e.enter(i),a(o))}function a(l){return l===r?(e.exit(i),u(r)):null===l?o(l):Wv(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Nv(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(l))}function d(l){return l===r||null===l||Wv(l)?(e.exit("chunkString"),a(l)):(e.consume(l),92===l?v:d)}function v(l){return l===r||92===l?(e.consume(l),d):d(l)}}function ys(e,l){let o;return function t(n){if(Wv(n))return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o=!0,t;if(zv(n))return Nv(e,t,o?"linePrefix":"lineSuffix")(n);return l(n)}}function gs(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const hs={name:"definition",tokenize:function(e,l,o){const t=this;let n;return function(l){return e.enter("definition"),function(l){return ms.call(t,e,i,o,"definitionLabel","definitionLabelMarker","definitionLabelString")(l)}(l)};function i(l){return n=gs(t.sliceSerialize(t.events[t.events.length-1][1]).slice(1,-1)),58===l?(e.enter("definitionMarker"),e.consume(l),e.exit("definitionMarker"),r):o(l)}function r(l){return Av(l)?ys(e,u)(l):u(l)}function u(l){return cs(e,a,o,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(l)}function a(l){return e.attempt(fs,d,d)(l)}function d(l){return zv(l)?Nv(e,v,"whitespace")(l):v(l)}function v(i){return null===i||Wv(i)?(e.exit("definition"),t.parser.defined.push(n),l(i)):o(i)}}},fs={tokenize:function(e,l,o){return function(l){return Av(l)?ys(e,t)(l):o(l)};function t(l){return ps(e,n,o,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function n(l){return zv(l)?Nv(e,i,"whitespace")(l):i(l)}function i(e){return null===e||Wv(e)?l(e):o(e)}},partial:!0};const xs={name:"hardBreakEscape",tokenize:function(e,l,o){return function(l){return e.enter("hardBreakEscape"),e.consume(l),t};function t(t){return Wv(t)?(e.exit("hardBreakEscape"),l(t)):o(t)}}};const bs={name:"headingAtx",tokenize:function(e,l,o){let t=0;return function(l){return e.enter("atxHeading"),function(l){return e.enter("atxHeadingSequence"),n(l)}(l)};function n(l){return 35===l&&t++<6?(e.consume(l),n):null===l||Av(l)?(e.exit("atxHeadingSequence"),i(l)):o(l)}function i(o){return 35===o?(e.enter("atxHeadingSequence"),r(o)):null===o||Wv(o)?(e.exit("atxHeading"),l(o)):zv(o)?Nv(e,i,"whitespace")(o):(e.enter("atxHeadingText"),u(o))}function r(l){return 35===l?(e.consume(l),r):(e.exit("atxHeadingSequence"),i(l))}function u(l){return null===l||35===l||Av(l)?(e.exit("atxHeadingText"),i(l)):(e.consume(l),u)}},resolve:function(e,l){let o,t,n=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);n-2>i&&"whitespace"===e[n][1].type&&(n-=2);"atxHeadingSequence"===e[n][1].type&&(i===n-1||n-4>i&&"whitespace"===e[n-2][1].type)&&(n-=i+1===n?2:4);n>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},t={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Tv(e,i,n-i+1,[["enter",o,l],["enter",t,l],["exit",t,l],["exit",o,l]]));return e}};const Cs=["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"],Ss=["pre","script","style","textarea"],Ts={name:"htmlFlow",tokenize:function(e,l,o){const t=this;let n,i,r,u,a;return function(l){return function(l){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(l),d}(l)};function d(u){return 33===u?(e.consume(u),v):47===u?(e.consume(u),i=!0,m):63===u?(e.consume(u),n=3,t.interrupt?l:F):Ev(u)?(e.consume(u),r=String.fromCharCode(u),p):o(u)}function v(i){return 45===i?(e.consume(i),n=2,s):91===i?(e.consume(i),n=5,u=0,c):Ev(i)?(e.consume(i),n=4,t.interrupt?l:F):o(i)}function s(n){return 45===n?(e.consume(n),t.interrupt?l:F):o(n)}function c(n){const i="CDATA[";return n===i.charCodeAt(u++)?(e.consume(n),6===u?t.interrupt?l:L:c):o(n)}function m(l){return Ev(l)?(e.consume(l),r=String.fromCharCode(l),p):o(l)}function p(u){if(null===u||47===u||62===u||Av(u)){const a=47===u,d=r.toLowerCase();return a||i||!Ss.includes(d)?Cs.includes(r.toLowerCase())?(n=6,a?(e.consume(u),y):t.interrupt?l(u):L(u)):(n=7,t.interrupt&&!t.parser.lazy[t.now().line]?o(u):i?g(u):h(u)):(n=1,t.interrupt?l(u):L(u))}return 45===u||Pv(u)?(e.consume(u),r+=String.fromCharCode(u),p):o(u)}function y(n){return 62===n?(e.consume(n),t.interrupt?l:L):o(n)}function g(l){return zv(l)?(e.consume(l),g):w(l)}function h(l){return 47===l?(e.consume(l),w):58===l||95===l||Ev(l)?(e.consume(l),f):zv(l)?(e.consume(l),h):w(l)}function f(l){return 45===l||46===l||58===l||95===l||Pv(l)?(e.consume(l),f):x(l)}function x(l){return 61===l?(e.consume(l),b):zv(l)?(e.consume(l),x):h(l)}function b(l){return null===l||60===l||61===l||62===l||96===l?o(l):34===l||39===l?(e.consume(l),a=l,C):zv(l)?(e.consume(l),b):S(l)}function C(l){return l===a?(e.consume(l),a=null,T):null===l||Wv(l)?o(l):(e.consume(l),C)}function S(l){return null===l||34===l||39===l||47===l||60===l||61===l||62===l||96===l||Av(l)?x(l):(e.consume(l),S)}function T(e){return 47===e||62===e||zv(e)?h(e):o(e)}function w(l){return 62===l?(e.consume(l),k):o(l)}function k(l){return null===l||Wv(l)?L(l):zv(l)?(e.consume(l),k):o(l)}function L(l){return 45===l&&2===n?(e.consume(l),M):60===l&&1===n?(e.consume(l),D):62===l&&4===n?(e.consume(l),W):63===l&&3===n?(e.consume(l),F):93===l&&5===n?(e.consume(l),B):!Wv(l)||6!==n&&7!==n?null===l||Wv(l)?(e.exit("htmlFlowData"),I(l)):(e.consume(l),L):(e.exit("htmlFlowData"),e.check(ws,A,I)(l))}function I(l){return e.check(ks,E,A)(l)}function E(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),P}function P(l){return null===l||Wv(l)?I(l):(e.enter("htmlFlowData"),L(l))}function M(l){return 45===l?(e.consume(l),F):L(l)}function D(l){return 47===l?(e.consume(l),r="",O):L(l)}function O(l){if(62===l){const o=r.toLowerCase();return Ss.includes(o)?(e.consume(l),W):L(l)}return Ev(l)&&r.length<8?(e.consume(l),r+=String.fromCharCode(l),O):L(l)}function B(l){return 93===l?(e.consume(l),F):L(l)}function F(l){return 62===l?(e.consume(l),W):45===l&&2===n?(e.consume(l),F):L(l)}function W(l){return null===l||Wv(l)?(e.exit("htmlFlowData"),A(l)):(e.consume(l),W)}function A(o){return e.exit("htmlFlow"),l(o)}},resolveTo:function(e){let l=e.length;for(;l--&&("enter"!==e[l][0]||"htmlFlow"!==e[l][1].type););l>1&&"linePrefix"===e[l-2][1].type&&(e[l][1].start=e[l-2][1].start,e[l+1][1].start=e[l-2][1].start,e.splice(l-2,2));return e},concrete:!0},ws={tokenize:function(e,l,o){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(Zv,l,o)}},partial:!0},ks={tokenize:function(e,l,o){const t=this;return function(l){if(Wv(l))return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n;return o(l)};function n(e){return t.parser.lazy[t.now().line]?o(e):l(e)}},partial:!0};const Ls={name:"htmlText",tokenize:function(e,l,o){const t=this;let n,i,r;return function(l){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(l),u};function u(l){return 33===l?(e.consume(l),a):47===l?(e.consume(l),b):63===l?(e.consume(l),f):Ev(l)?(e.consume(l),T):o(l)}function a(l){return 45===l?(e.consume(l),d):91===l?(e.consume(l),i=0,m):Ev(l)?(e.consume(l),h):o(l)}function d(l){return 45===l?(e.consume(l),c):o(l)}function v(l){return null===l?o(l):45===l?(e.consume(l),s):Wv(l)?(r=v,O(l)):(e.consume(l),v)}function s(l){return 45===l?(e.consume(l),c):v(l)}function c(e){return 62===e?D(e):45===e?s(e):v(e)}function m(l){const t="CDATA[";return l===t.charCodeAt(i++)?(e.consume(l),6===i?p:m):o(l)}function p(l){return null===l?o(l):93===l?(e.consume(l),y):Wv(l)?(r=p,O(l)):(e.consume(l),p)}function y(l){return 93===l?(e.consume(l),g):p(l)}function g(l){return 62===l?D(l):93===l?(e.consume(l),g):p(l)}function h(l){return null===l||62===l?D(l):Wv(l)?(r=h,O(l)):(e.consume(l),h)}function f(l){return null===l?o(l):63===l?(e.consume(l),x):Wv(l)?(r=f,O(l)):(e.consume(l),f)}function x(e){return 62===e?D(e):f(e)}function b(l){return Ev(l)?(e.consume(l),C):o(l)}function C(l){return 45===l||Pv(l)?(e.consume(l),C):S(l)}function S(l){return Wv(l)?(r=S,O(l)):zv(l)?(e.consume(l),S):D(l)}function T(l){return 45===l||Pv(l)?(e.consume(l),T):47===l||62===l||Av(l)?w(l):o(l)}function w(l){return 47===l?(e.consume(l),D):58===l||95===l||Ev(l)?(e.consume(l),k):Wv(l)?(r=w,O(l)):zv(l)?(e.consume(l),w):D(l)}function k(l){return 45===l||46===l||58===l||95===l||Pv(l)?(e.consume(l),k):L(l)}function L(l){return 61===l?(e.consume(l),I):Wv(l)?(r=L,O(l)):zv(l)?(e.consume(l),L):w(l)}function I(l){return null===l||60===l||61===l||62===l||96===l?o(l):34===l||39===l?(e.consume(l),n=l,E):Wv(l)?(r=I,O(l)):zv(l)?(e.consume(l),I):(e.consume(l),P)}function E(l){return l===n?(e.consume(l),n=void 0,M):null===l?o(l):Wv(l)?(r=E,O(l)):(e.consume(l),E)}function P(l){return null===l||34===l||39===l||60===l||61===l||96===l?o(l):47===l||62===l||Av(l)?w(l):(e.consume(l),P)}function M(e){return 47===e||62===e||Av(e)?w(e):o(e)}function D(t){return 62===t?(e.consume(t),e.exit("htmlTextData"),e.exit("htmlText"),l):o(t)}function O(l){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),B}function B(l){return zv(l)?Nv(e,F,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):F(l)}function F(l){return e.enter("htmlTextData"),r(l)}}};const Is={name:"labelEnd",tokenize:function(e,l,o){const t=this;let n,i,r=t.events.length;for(;r--;)if(("labelImage"===t.events[r][1].type||"labelLink"===t.events[r][1].type)&&!t.events[r][1]._balanced){n=t.events[r][1];break}return function(l){if(!n)return o(l);if(n._inactive)return v(l);return i=t.parser.defined.includes(gs(t.sliceSerialize({start:n.end,end:t.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelEnd"),u};function u(l){return 40===l?e.attempt(Es,d,i?d:v)(l):91===l?e.attempt(Ps,d,i?a:v)(l):i?d(l):v(l)}function a(l){return e.attempt(Ms,d,v)(l)}function d(e){return l(e)}function v(e){return n._balanced=!0,o(e)}},resolveTo:function(e,l){let o,t,n,i,r=e.length,u=0;for(;r--;)if(o=e[r][1],t){if("link"===o.type||"labelLink"===o.type&&o._inactive)break;"enter"===e[r][0]&&"labelLink"===o.type&&(o._inactive=!0)}else if(n){if("enter"===e[r][0]&&("labelImage"===o.type||"labelLink"===o.type)&&!o._balanced&&(t=r,"labelLink"!==o.type)){u=2;break}}else"labelEnd"===o.type&&(n=r);const a={type:"labelLink"===e[t][1].type?"link":"image",start:Object.assign({},e[t][1].start),end:Object.assign({},e[e.length-1][1].end)},d={type:"label",start:Object.assign({},e[t][1].start),end:Object.assign({},e[n][1].end)},v={type:"labelText",start:Object.assign({},e[t+u+2][1].end),end:Object.assign({},e[n-2][1].start)};return i=[["enter",a,l],["enter",d,l]],i=wv(i,e.slice(t+1,t+u+3)),i=wv(i,[["enter",v,l]]),i=wv(i,Gv(l.parser.constructs.insideSpan.null,e.slice(t+u+4,n-3),l)),i=wv(i,[["exit",v,l],e[n-2],e[n-1],["exit",d,l]]),i=wv(i,e.slice(n+1)),i=wv(i,[["exit",a,l]]),Tv(e,t,e.length,i),e},resolveAll:function(e){let l=-1;for(;++l<e.length;){const o=e[l][1];"labelImage"!==o.type&&"labelLink"!==o.type&&"labelEnd"!==o.type||(e.splice(l+1,"labelImage"===o.type?4:2),o.type="data",l++)}return e}},Es={tokenize:function(e,l,o){return function(l){return e.enter("resource"),e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),t};function t(l){return Av(l)?ys(e,n)(l):n(l)}function n(l){return 41===l?d(l):cs(e,i,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(l)}function i(l){return Av(l)?ys(e,u)(l):d(l)}function r(e){return o(e)}function u(l){return 34===l||39===l||40===l?ps(e,a,o,"resourceTitle","resourceTitleMarker","resourceTitleString")(l):d(l)}function a(l){return Av(l)?ys(e,d)(l):d(l)}function d(t){return 41===t?(e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),e.exit("resource"),l):o(t)}}},Ps={tokenize:function(e,l,o){const t=this;return function(l){return ms.call(t,e,n,i,"reference","referenceMarker","referenceString")(l)};function n(e){return t.parser.defined.includes(gs(t.sliceSerialize(t.events[t.events.length-1][1]).slice(1,-1)))?l(e):o(e)}function i(e){return o(e)}}},Ms={tokenize:function(e,l,o){return function(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),t};function t(t){return 93===t?(e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),e.exit("reference"),l):o(t)}}};const Ds={name:"labelStartImage",tokenize:function(e,l,o){const t=this;return function(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),n};function n(l){return 91===l?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),i):o(l)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in t.parser.constructs?o(e):l(e)}},resolveAll:Is.resolveAll};const Os={name:"labelStartLink",tokenize:function(e,l,o){const t=this;return function(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),n};function n(e){return 94===e&&"_hiddenFootnoteSupport"in t.parser.constructs?o(e):l(e)}},resolveAll:Is.resolveAll};const Bs={name:"lineEnding",tokenize:function(e,l){return function(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Nv(e,l,"linePrefix")}}};const Fs={name:"thematicBreak",tokenize:function(e,l,o){let t,n=0;return function(l){return e.enter("thematicBreak"),function(e){return t=e,i(e)}(l)};function i(i){return i===t?(e.enter("thematicBreakSequence"),r(i)):n>=3&&(null===i||Wv(i))?(e.exit("thematicBreak"),l(i)):o(i)}function r(l){return l===t?(e.consume(l),n++,r):(e.exit("thematicBreakSequence"),zv(l)?Nv(e,i,"whitespace")(l):i(l))}}};const Ws={name:"list",tokenize:function(e,l,o){const t=this,n=t.events[t.events.length-1];let i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,r=0;return function(l){const n=t.containerState.type||(42===l||43===l||45===l?"listUnordered":"listOrdered");if("listUnordered"===n?!t.containerState.marker||l===t.containerState.marker:Ov(l)){if(t.containerState.type||(t.containerState.type=n,e.enter(n,{_container:!0})),"listUnordered"===n)return e.enter("listItemPrefix"),42===l||45===l?e.check(Fs,o,a)(l):a(l);if(!t.interrupt||49===l)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(l)}return o(l)};function u(l){return Ov(l)&&++r<10?(e.consume(l),u):(!t.interrupt||r<2)&&(t.containerState.marker?l===t.containerState.marker:41===l||46===l)?(e.exit("listItemValue"),a(l)):o(l)}function a(l){return e.enter("listItemMarker"),e.consume(l),e.exit("listItemMarker"),t.containerState.marker=t.containerState.marker||l,e.check(Zv,t.interrupt?o:d,e.attempt(As,s,v))}function d(e){return t.containerState.initialBlankLine=!0,i++,s(e)}function v(l){return zv(l)?(e.enter("listItemPrefixWhitespace"),e.consume(l),e.exit("listItemPrefixWhitespace"),s):o(l)}function s(o){return t.containerState.size=i+t.sliceSerialize(e.exit("listItemPrefix"),!0).length,l(o)}},continuation:{tokenize:function(e,l,o){const t=this;return t.containerState._closeFlow=void 0,e.check(Zv,n,i);function n(o){return t.containerState.furtherBlankLines=t.containerState.furtherBlankLines||t.containerState.initialBlankLine,Nv(e,l,"listItemIndent",t.containerState.size+1)(o)}function i(o){return t.containerState.furtherBlankLines||!zv(o)?(t.containerState.furtherBlankLines=void 0,t.containerState.initialBlankLine=void 0,r(o)):(t.containerState.furtherBlankLines=void 0,t.containerState.initialBlankLine=void 0,e.attempt(zs,l,r)(o))}function r(n){return t.containerState._closeFlow=!0,t.interrupt=void 0,Nv(e,e.attempt(Ws,l,o),"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n)}}},exit:function(e){e.exit(this.containerState.type)}},As={tokenize:function(e,l,o){const t=this;return Nv(e,function(e){const n=t.events[t.events.length-1];return!zv(e)&&n&&"listItemPrefixWhitespace"===n[1].type?l(e):o(e)},"listItemPrefixWhitespace",t.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},zs={tokenize:function(e,l,o){const t=this;return Nv(e,function(e){const n=t.events[t.events.length-1];return n&&"listItemIndent"===n[1].type&&n[2].sliceSerialize(n[1],!0).length===t.containerState.size?l(e):o(e)},"listItemIndent",t.containerState.size+1)},partial:!0};const Rs={name:"setextUnderline",tokenize:function(e,l,o){const t=this;let n;return function(l){let r,u=t.events.length;for(;u--;)if("lineEnding"!==t.events[u][1].type&&"linePrefix"!==t.events[u][1].type&&"content"!==t.events[u][1].type){r="paragraph"===t.events[u][1].type;break}if(!t.parser.lazy[t.now().line]&&(t.interrupt||r))return e.enter("setextHeadingLine"),n=l,function(l){return e.enter("setextHeadingLineSequence"),i(l)}(l);return o(l)};function i(l){return l===n?(e.consume(l),i):(e.exit("setextHeadingLineSequence"),zv(l)?Nv(e,r,"lineSuffix")(l):r(l))}function r(t){return null===t||Wv(t)?(e.exit("setextHeadingLine"),l(t)):o(t)}},resolveTo:function(e,l){let o,t,n,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){o=i;break}"paragraph"===e[i][1].type&&(t=i)}else"content"===e[i][1].type&&e.splice(i,1),n||"definition"!==e[i][1].type||(n=i);const r={type:"setextHeading",start:Object.assign({},e[t][1].start),end:Object.assign({},e[e.length-1][1].end)};e[t][1].type="setextHeadingText",n?(e.splice(t,0,["enter",r,l]),e.splice(n+1,0,["exit",e[o][1],l]),e[o][1].end=Object.assign({},e[n][1].end)):e[o][1]=r;return e.push(["exit",r,l]),e}};const Hs={tokenize:function(e){const l=this,o=e.attempt(Zv,function(t){if(null===t)return void e.consume(t);return e.enter("lineEndingBlank"),e.consume(t),e.exit("lineEndingBlank"),l.currentConstruct=void 0,o},e.attempt(this.parser.constructs.flowInitial,t,Nv(e,e.attempt(this.parser.constructs.flow,t,e.attempt(vs,t)),"linePrefix")));return o;function t(t){if(null!==t)return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l.currentConstruct=void 0,o;e.consume(t)}}};const js={resolveAll:_s()},Ns=Us("string"),Vs=Us("text");function Us(e){return{tokenize:function(l){const o=this,t=this.parser.constructs[e],n=l.attempt(t,i,r);return i;function i(e){return a(e)?n(e):r(e)}function r(e){if(null!==e)return l.enter("data"),l.consume(e),u;l.consume(e)}function u(e){return a(e)?(l.exit("data"),n(e)):(l.consume(e),u)}function a(e){if(null===e)return!0;const l=t[e];let n=-1;if(l)for(;++n<l.length;){const e=l[n];if(!e.previous||e.previous.call(o,o.previous))return!0}return!1}},resolveAll:_s("text"===e?qs:void 0)}}function _s(e){return function(l,o){let t,n=-1;for(;++n<=l.length;)void 0===t?l[n]&&"data"===l[n][1].type&&(t=n,n++):l[n]&&"data"===l[n][1].type||(n!==t+2&&(l[t][1].end=l[n-1][1].end,l.splice(t+2,n-t-2),n=t+2),t=void 0);return e?e(l,o):l}}function qs(e,l){let o=0;for(;++o<=e.length;)if((o===e.length||"lineEnding"===e[o][1].type)&&"data"===e[o-1][1].type){const t=e[o-1][1],n=l.sliceStream(t);let i,r=n.length,u=-1,a=0;for(;r--;){const e=n[r];if("string"==typeof e){for(u=e.length;32===e.charCodeAt(u-1);)a++,u--;if(u)break;u=-1}else if(-2===e)i=!0,a++;else if(-1!==e){r++;break}}if(a){const n={type:o===e.length||i||a<2?"lineSuffix":"hardBreakTrailing",start:{line:t.end.line,column:t.end.column-a,offset:t.end.offset-a,_index:t.start._index+r,_bufferIndex:r?u:t.start._bufferIndex+u},end:Object.assign({},t.end)};t.end=Object.assign({},n.start),t.start.offset===t.end.offset?Object.assign(t,n):(e.splice(o,0,["enter",n,l],["exit",n,l]),o+=2)}o++}return e}function Gs(e,l,o){let t=Object.assign(o?Object.assign({},o):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const n={},i=[];let r=[],u=[];const a={consume:function(e){Wv(e)?(t.line++,t.column=1,t.offset+=-3===e?2:1,f()):-1!==e&&(t.column++,t.offset++);t._bufferIndex<0?t._index++:(t._bufferIndex++,t._bufferIndex===r[t._index].length&&(t._bufferIndex=-1,t._index++));d.previous=e},enter:function(e,l){const o=l||{};return o.type=e,o.start=c(),d.events.push(["enter",o,d]),u.push(o),o},exit:function(e){const l=u.pop();return l.end=c(),d.events.push(["exit",l,d]),l},attempt:g(function(e,l){h(e,l.from)}),check:g(y),interrupt:g(y,{interrupt:!0})},d={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:s,sliceSerialize:function(e,l){return function(e,l){let o=-1;const t=[];let n;for(;++o<e.length;){const i=e[o];let r;if("string"==typeof i)r=i;else switch(i){case-5:r="\r";break;case-4:r="\n";break;case-3:r="\r\n";break;case-2:r=l?" ":"\t";break;case-1:if(!l&&n)continue;r=" ";break;default:r=String.fromCharCode(i)}n=-2===i,t.push(r)}return t.join("")}(s(e),l)},now:c,defineSkip:function(e){n[e.line]=e.column,f()},write:function(e){if(r=wv(r,e),m(),null!==r[r.length-1])return[];return h(l,0),d.events=Gv(i,d.events,d),d.events}};let v=l.tokenize.call(d,a);return l.resolveAll&&i.push(l),d;function s(e){return function(e,l){const o=l.start._index,t=l.start._bufferIndex,n=l.end._index,i=l.end._bufferIndex;let r;if(o===n)r=[e[o].slice(t,i)];else{if(r=e.slice(o,n),t>-1){const e=r[0];"string"==typeof e?r[0]=e.slice(t):r.shift()}i>0&&r.push(e[n].slice(0,i))}return r}(r,e)}function c(){const{line:e,column:l,offset:o,_index:n,_bufferIndex:i}=t;return{line:e,column:l,offset:o,_index:n,_bufferIndex:i}}function m(){let e;for(;t._index<r.length;){const l=r[t._index];if("string"==typeof l)for(e=t._index,t._bufferIndex<0&&(t._bufferIndex=0);t._index===e&&t._bufferIndex<l.length;)p(l.charCodeAt(t._bufferIndex));else p(l)}}function p(e){v=v(e)}function y(e,l){l.restore()}function g(e,l){return function(o,n,i){let r,v,s,m;return Array.isArray(o)?p(o):"tokenize"in o?p([o]):function(e){return l;function l(l){const o=null!==l&&e[l],t=null!==l&&e.null;return p([...Array.isArray(o)?o:o?[o]:[],...Array.isArray(t)?t:t?[t]:[]])(l)}}(o);function p(e){return r=e,v=0,0===e.length?i:y(e[v])}function y(e){return function(o){m=function(){const e=c(),l=d.previous,o=d.currentConstruct,n=d.events.length,i=Array.from(u);return{restore:r,from:n};function r(){t=e,d.previous=l,d.currentConstruct=o,d.events.length=n,u=i,f()}}(),s=e,e.partial||(d.currentConstruct=e);if(e.name&&d.parser.constructs.disable.null.includes(e.name))return h();return e.tokenize.call(l?Object.assign(Object.create(d),l):d,a,g,h)(o)}}function g(l){return e(s,m),n}function h(e){return m.restore(),++v<r.length?y(r[v]):i}}}function h(e,l){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Tv(d.events,l,d.events.length-l,e.resolve(d.events.slice(l),d)),e.resolveTo&&(d.events=e.resolveTo(d.events,d))}function f(){t.line in n&&t.column<2&&(t.column=n[t.line],t.offset+=n[t.line]-1)}}const Qs={42:Ws,43:Ws,45:Ws,48:Ws,49:Ws,50:Ws,51:Ws,52:Ws,53:Ws,54:Ws,55:Ws,56:Ws,57:Ws,62:Kv},Ys={91:hs},$s={[-2]:is,[-1]:is,32:is},Zs={35:bs,42:Fs,45:[Rs,Fs],60:Ts,61:Rs,95:Fs,96:ns,126:ns},Ks={38:os,92:Xv},Xs={[-5]:Bs,[-4]:Bs,[-3]:Bs,33:Ds,38:os,42:Qv,60:[$v,Ls],91:Os,92:[xs,Xv],93:Is,95:Qv,96:us},Js={null:[Qv,js]};var ec=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:Ys,disable:{null:[]},document:Qs,flow:Zs,flowInitial:$s,insideSpan:Js,string:Ks,text:Xs});function lc(e){const l=function(e){const l={};let o=-1;for(;++o<e.length;)Lv(l,e[o]);return l}([ec,...(e||{}).extensions||[]]),o={defined:[],lazy:{},constructs:l,content:t(Vv),document:t(Uv),flow:t(Hs),string:t(Ns),text:t(Vs)};return o;function t(e){return function(l){return Gs(o,e,l)}}}const oc=/[\0\t\n\r]/g;function tc(e,l){const o=Number.parseInt(e,l);return o<9||11===o||o>13&&o<32||o>126&&o<160||o>55295&&o<57344||o>64975&&o<65008||!(65535&~o)||65534==(65535&o)||o>1114111?"�":String.fromCharCode(o)}const nc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ic(e,l,o){if(l)return l;if(35===o.charCodeAt(0)){const e=o.charCodeAt(1),l=120===e||88===e;return tc(o.slice(l?2:1),l?16:10)}return ls(o)||e}const rc={}.hasOwnProperty,uc=function(e,l,o){return"string"!=typeof l&&(o=l,l=void 0),function(e){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(oe),autolinkProtocol:I,autolinkEmail:I,atxHeading:u(X),blockQuote:u(Q),characterEscape:I,characterReference:I,codeFenced:u(Y),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:u(Y,a),codeText:u($,a),codeTextData:I,data:I,codeFlowValue:I,definition:u(Z),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:u(K),hardBreakEscape:u(J),hardBreakTrailing:u(J),htmlFlow:u(ee,a),htmlFlowData:I,htmlText:u(ee,a),htmlTextData:I,image:u(le),label:a,link:u(oe),listItem:u(ne),listItemValue:p,listOrdered:u(te,m),listUnordered:u(te),paragraph:u(ie),reference:N,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:u(X),strong:u(re),thematicBreak:u(ae)},exit:{atxHeading:v(),atxHeadingSequence:T,autolink:v(),autolinkEmail:G,autolinkProtocol:q,blockQuote:v(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:_,codeFenced:v(f),codeFencedFence:h,codeFencedFenceInfo:y,codeFencedFenceMeta:g,codeFlowValue:E,codeIndented:v(x),codeText:v(B),codeTextData:E,data:E,definition:v(),definitionDestinationString:S,definitionLabelString:b,definitionTitleString:C,emphasis:v(),hardBreakEscape:v(M),hardBreakTrailing:v(M),htmlFlow:v(D),htmlFlowData:E,htmlText:v(O),htmlTextData:E,image:v(W),label:z,labelText:A,lineEnding:P,link:v(F),listItem:v(),listOrdered:v(),listUnordered:v(),paragraph:v(),referenceString:V,resourceDestinationString:R,resourceTitleString:H,resource:j,setextHeading:v(L),setextHeadingLineSequence:k,setextHeadingText:w,strong:v(),thematicBreak:v()}};dc(l,(e||{}).mdastExtensions||[]);const o={};return t;function t(e){let o={type:"root",children:[]};const t={stack:[o],tokenStack:[],config:l,enter:d,exit:s,buffer:a,resume:c,setData:i,getData:r},u=[];let v=-1;for(;++v<e.length;)if("listOrdered"===e[v][1].type||"listUnordered"===e[v][1].type)if("enter"===e[v][0])u.push(v);else{v=n(e,u.pop(),v)}for(v=-1;++v<e.length;){const o=l[e[v][0]];rc.call(o,e[v][1].type)&&o[e[v][1].type].call(Object.assign({sliceSerialize:e[v][2].sliceSerialize},t),e[v][1])}if(t.tokenStack.length>0){const e=t.tokenStack[t.tokenStack.length-1];(e[1]||sc).call(t,void 0,e[0])}for(o.position={start:ac(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ac(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},v=-1;++v<l.transforms.length;)o=l.transforms[v](o)||o;return o}function n(e,l,o){let t,n,i,r,u=l-1,a=-1,d=!1;for(;++u<=o;){const l=e[u];if("listUnordered"===l[1].type||"listOrdered"===l[1].type||"blockQuote"===l[1].type?("enter"===l[0]?a++:a--,r=void 0):"lineEndingBlank"===l[1].type?"enter"===l[0]&&(!t||r||a||i||(i=u),r=void 0):"linePrefix"===l[1].type||"listItemValue"===l[1].type||"listItemMarker"===l[1].type||"listItemPrefix"===l[1].type||"listItemPrefixWhitespace"===l[1].type||(r=void 0),!a&&"enter"===l[0]&&"listItemPrefix"===l[1].type||-1===a&&"exit"===l[0]&&("listUnordered"===l[1].type||"listOrdered"===l[1].type)){if(t){let r=u;for(n=void 0;r--;){const l=e[r];if("lineEnding"===l[1].type||"lineEndingBlank"===l[1].type){if("exit"===l[0])continue;n&&(e[n][1].type="lineEndingBlank",d=!0),l[1].type="lineEnding",n=r}else if("linePrefix"!==l[1].type&&"blockQuotePrefix"!==l[1].type&&"blockQuotePrefixWhitespace"!==l[1].type&&"blockQuoteMarker"!==l[1].type&&"listItemIndent"!==l[1].type)break}i&&(!n||i<n)&&(t._spread=!0),t.end=Object.assign({},n?e[n][1].start:l[1].end),e.splice(n||u,0,["exit",t,l[2]]),u++,o++}"listItemPrefix"===l[1].type&&(t={type:"listItem",_spread:!1,start:Object.assign({},l[1].start),end:void 0},e.splice(u,0,["enter",t,l[2]]),u++,o++,i=void 0,r=!0)}}return e[l][1]._spread=d,o}function i(e,l){o[e]=l}function r(e){return o[e]}function u(e,l){return o;function o(o){d.call(this,e(o),o),l&&l.call(this,o)}}function a(){this.stack.push({type:"fragment",children:[]})}function d(e,l,o){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([l,o]),e.position={start:ac(l.start)},e}function v(e){return l;function l(l){e&&e.call(this,l),s.call(this,l)}}function s(e,l){const o=this.stack.pop(),t=this.tokenStack.pop();if(!t)throw new Error("Cannot close `"+e.type+"` ("+Ka({start:e.start,end:e.end})+"): it’s not open");if(t[0].type!==e.type)if(l)l.call(this,e,t[0]);else{(t[1]||sc).call(this,e,t[0])}return o.position.end=ac(e.end),o}function c(){return function(e){return Cv(e,"boolean"!=typeof bv.includeImageAlt||bv.includeImageAlt,"boolean"!=typeof bv.includeHtml||bv.includeHtml)}(this.stack.pop())}function m(){i("expectingFirstListItemValue",!0)}function p(e){if(r("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),i("expectingFirstListItemValue")}}function y(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function h(){r("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function f(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function x(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function b(e){const l=this.resume(),o=this.stack[this.stack.length-1];o.label=l,o.identifier=gs(this.sliceSerialize(e)).toLowerCase()}function C(){const e=this.resume();this.stack[this.stack.length-1].title=e}function S(){const e=this.resume();this.stack[this.stack.length-1].url=e}function T(e){const l=this.stack[this.stack.length-1];if(!l.depth){const o=this.sliceSerialize(e).length;l.depth=o}}function w(){i("setextHeadingSlurpLineEnding",!0)}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function L(){i("setextHeadingSlurpLineEnding")}function I(e){const l=this.stack[this.stack.length-1];let o=l.children[l.children.length-1];o&&"text"===o.type||(o=ue(),o.position={start:ac(e.start)},l.children.push(o)),this.stack.push(o)}function E(e){const l=this.stack.pop();l.value+=this.sliceSerialize(e),l.position.end=ac(e.end)}function P(e){const o=this.stack[this.stack.length-1];if(r("atHardBreak")){return o.children[o.children.length-1].position.end=ac(e.end),void i("atHardBreak")}!r("setextHeadingSlurpLineEnding")&&l.canContainEols.includes(o.type)&&(I.call(this,e),E.call(this,e))}function M(){i("atHardBreak",!0)}function D(){const e=this.resume();this.stack[this.stack.length-1].value=e}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function B(){const e=this.resume();this.stack[this.stack.length-1].value=e}function F(){const e=this.stack[this.stack.length-1];if(r("inReference")){const l=r("referenceType")||"shortcut";e.type+="Reference",e.referenceType=l,delete e.url,delete e.title}else delete e.identifier,delete e.label;i("referenceType")}function W(){const e=this.stack[this.stack.length-1];if(r("inReference")){const l=r("referenceType")||"shortcut";e.type+="Reference",e.referenceType=l,delete e.url,delete e.title}else delete e.identifier,delete e.label;i("referenceType")}function A(e){const l=this.sliceSerialize(e),o=this.stack[this.stack.length-2];o.label=function(e){return e.replace(nc,ic)}(l),o.identifier=gs(l).toLowerCase()}function z(){const e=this.stack[this.stack.length-1],l=this.resume(),o=this.stack[this.stack.length-1];if(i("inReference",!0),"link"===o.type){const l=e.children;o.children=l}else o.alt=l}function R(){const e=this.resume();this.stack[this.stack.length-1].url=e}function H(){const e=this.resume();this.stack[this.stack.length-1].title=e}function j(){i("inReference")}function N(){i("referenceType","collapsed")}function V(e){const l=this.resume(),o=this.stack[this.stack.length-1];o.label=l,o.identifier=gs(this.sliceSerialize(e)).toLowerCase(),i("referenceType","full")}function U(e){i("characterReferenceType",e.type)}function _(e){const l=this.sliceSerialize(e),o=r("characterReferenceType");let t;if(o)t=tc(l,"characterReferenceMarkerNumeric"===o?10:16),i("characterReferenceType");else{t=ls(l)}const n=this.stack.pop();n.value+=t,n.position.end=ac(e.end)}function q(e){E.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){E.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function Q(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function $(){return{type:"inlineCode",value:""}}function Z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function K(){return{type:"emphasis",children:[]}}function X(){return{type:"heading",depth:void 0,children:[]}}function J(){return{type:"break"}}function ee(){return{type:"html",value:""}}function le(){return{type:"image",title:null,url:"",alt:null}}function oe(){return{type:"link",title:null,url:"",children:[]}}function te(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ne(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function re(){return{type:"strong",children:[]}}function ue(){return{type:"text",value:""}}function ae(){return{type:"thematicBreak"}}}(o)(function(e){for(;!as(e););return e}(lc(o).document().write(function(){let e,l=1,o="",t=!0;return function(n,i,r){const u=[];let a,d,v,s,c;for(n=o+n.toString(i),v=0,o="",t&&(65279===n.charCodeAt(0)&&v++,t=void 0);v<n.length;){if(oc.lastIndex=v,a=oc.exec(n),s=a&&void 0!==a.index?a.index:n.length,c=n.charCodeAt(s),!a){o=n.slice(v);break}if(10===c&&v===s&&e)u.push(-3),e=void 0;else switch(e&&(u.push(-5),e=void 0),v<s&&(u.push(n.slice(v,s)),l+=s-v),c){case 0:u.push(65533),l++;break;case 9:for(d=4*Math.ceil(l/4),u.push(-2);l++<d;)u.push(-1);break;case 10:u.push(-4),l=1;break;default:e=!0,l=1}v=s+1}return r&&(e&&u.push(-5),o&&u.push(o),u.push(null)),u}}()(e,l,!0))))};function ac(e){return{line:e.line,column:e.column,offset:e.offset}}function dc(e,l){let o=-1;for(;++o<l.length;){const t=l[o];Array.isArray(t)?dc(e,t):vc(e,t)}}function vc(e,l){let o;for(o in l)if(rc.call(l,o))if("canContainEols"===o){const t=l[o];t&&e[o].push(...t)}else if("transforms"===o){const t=l[o];t&&e[o].push(...t)}else if("enter"===o||"exit"===o){const t=l[o];t&&Object.assign(e[o],t)}}function sc(e,l){throw e?new Error("Cannot close `"+e.type+"` ("+Ka({start:e.start,end:e.end})+"): a different token (`"+l.type+"`, "+Ka({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+Ka({start:l.start,end:l.end})+") is still open")}function cc(e){Object.assign(this,{Parser:l=>{const o=this.data("settings");return uc(l,Object.assign({},o,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function mc(e){const l=[];let o=-1,t=0,n=0;for(;++o<e.length;){const i=e.charCodeAt(o);let r="";if(37===i&&Pv(e.charCodeAt(o+1))&&Pv(e.charCodeAt(o+2)))n=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(r=String.fromCharCode(i));else if(i>55295&&i<57344){const l=e.charCodeAt(o+1);i<56320&&l>56319&&l<57344?(r=String.fromCharCode(i,l),n=1):r="�"}else r=String.fromCharCode(i);r&&(l.push(e.slice(t,o),encodeURIComponent(r)),t=o+n+1,r=""),n&&(o+=n,n=0)}return l.join("")+e.slice(t)}function pc(e,l){const o=String(l.identifier).toUpperCase(),t=mc(o.toLowerCase()),n=e.footnoteOrder.indexOf(o);let i;-1===n?(e.footnoteOrder.push(o),e.footnoteCounts[o]=1,i=e.footnoteOrder.length):(e.footnoteCounts[o]++,i=n+1);const r=e.footnoteCounts[o],u={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+t,id:e.clobberPrefix+"fnref-"+t+(r>1?"-"+r:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(l,u);const a={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(l,a),e.applyData(l,a)}function yc(e,l){const o=l.referenceType;let t="]";if("collapsed"===o?t+="[]":"full"===o&&(t+="["+(l.label||l.identifier)+"]"),"imageReference"===l.type)return{type:"text",value:"!["+l.alt+t};const n=e.all(l),i=n[0];i&&"text"===i.type?i.value="["+i.value:n.unshift({type:"text",value:"["});const r=n[n.length-1];return r&&"text"===r.type?r.value+=t:n.push({type:"text",value:t}),n}function gc(e){const l=e.spread;return null==l?e.children.length>1:l}const hc=xc("start"),fc=xc("end");function xc(e){return function(l){const o=l&&l.position&&l.position[e]||{};return{line:o.line||null,column:o.column||null,offset:o.offset>-1?o.offset:null}}}function bc(e){const l=String(e),o=/\r?\n|\r/g;let t=o.exec(l),n=0;const i=[];for(;t;)i.push(Cc(l.slice(n,t.index),n>0,!0),t[0]),n=t.index+t[0].length,t=o.exec(l);return i.push(Cc(l.slice(n),n>0,!1)),i.join("")}function Cc(e,l,o){let t=0,n=e.length;if(l){let l=e.codePointAt(t);for(;9===l||32===l;)t++,l=e.codePointAt(t)}if(o){let l=e.codePointAt(n-1);for(;9===l||32===l;)n--,l=e.codePointAt(n-1)}return n>t?e.slice(t,n):""}const Sc={blockquote:function(e,l){const o={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(l),!0)};return e.patch(l,o),e.applyData(l,o)},break:function(e,l){const o={type:"element",tagName:"br",properties:{},children:[]};return e.patch(l,o),[e.applyData(l,o),{type:"text",value:"\n"}]},code:function(e,l){const o=l.value?l.value+"\n":"",t=l.lang?l.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,n={};t&&(n.className=["language-"+t]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:o}]};return l.meta&&(i.data={meta:l.meta}),e.patch(l,i),i=e.applyData(l,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(l,i),i},delete:function(e,l){const o={type:"element",tagName:"del",properties:{},children:e.all(l)};return e.patch(l,o),e.applyData(l,o)},emphasis:function(e,l){const o={type:"element",tagName:"em",properties:{},children:e.all(l)};return e.patch(l,o),e.applyData(l,o)},footnoteReference:pc,footnote:function(e,l){const o=e.footnoteById;let t=1;for(;t in o;)t++;const n=String(t);return o[n]={type:"footnoteDefinition",identifier:n,children:[{type:"paragraph",children:l.children}],position:l.position},pc(e,{type:"footnoteReference",identifier:n,position:l.position})},heading:function(e,l){const o={type:"element",tagName:"h"+l.depth,properties:{},children:e.all(l)};return e.patch(l,o),e.applyData(l,o)},html:function(e,l){if(e.dangerous){const o={type:"raw",value:l.value};return e.patch(l,o),e.applyData(l,o)}return null},imageReference:function(e,l){const o=e.definition(l.identifier);if(!o)return yc(e,l);const t={src:mc(o.url||""),alt:l.alt};null!==o.title&&void 0!==o.title&&(t.title=o.title);const n={type:"element",tagName:"img",properties:t,children:[]};return e.patch(l,n),e.applyData(l,n)},image:function(e,l){const o={src:mc(l.url)};null!==l.alt&&void 0!==l.alt&&(o.alt=l.alt),null!==l.title&&void 0!==l.title&&(o.title=l.title);const t={type:"element",tagName:"img",properties:o,children:[]};return e.patch(l,t),e.applyData(l,t)},inlineCode:function(e,l){const o={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};e.patch(l,o);const t={type:"element",tagName:"code",properties:{},children:[o]};return e.patch(l,t),e.applyData(l,t)},linkReference:function(e,l){const o=e.definition(l.identifier);if(!o)return yc(e,l);const t={href:mc(o.url||"")};null!==o.title&&void 0!==o.title&&(t.title=o.title);const n={type:"element",tagName:"a",properties:t,children:e.all(l)};return e.patch(l,n),e.applyData(l,n)},link:function(e,l){const o={href:mc(l.url)};null!==l.title&&void 0!==l.title&&(o.title=l.title);const t={type:"element",tagName:"a",properties:o,children:e.all(l)};return e.patch(l,t),e.applyData(l,t)},listItem:function(e,l,o){const t=e.all(l),n=o?function(e){let l=!1;if("list"===e.type){l=e.spread||!1;const o=e.children;let t=-1;for(;!l&&++t<o.length;)l=gc(o[t])}return l}(o):gc(l),i={},r=[];if("boolean"==typeof l.checked){const e=t[0];let o;e&&"element"===e.type&&"p"===e.tagName?o=e:(o={type:"element",tagName:"p",properties:{},children:[]},t.unshift(o)),o.children.length>0&&o.children.unshift({type:"text",value:" "}),o.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let u=-1;for(;++u<t.length;){const e=t[u];(n||0!==u||"element"!==e.type||"p"!==e.tagName)&&r.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||n?r.push(e):r.push(...e.children)}const a=t[t.length-1];a&&(n||"element"!==a.type||"p"!==a.tagName)&&r.push({type:"text",value:"\n"});const d={type:"element",tagName:"li",properties:i,children:r};return e.patch(l,d),e.applyData(l,d)},list:function(e,l){const o={},t=e.all(l);let n=-1;for("number"==typeof l.start&&1!==l.start&&(o.start=l.start);++n<t.length;){const e=t[n];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){o.className=["contains-task-list"];break}}const i={type:"element",tagName:l.ordered?"ol":"ul",properties:o,children:e.wrap(t,!0)};return e.patch(l,i),e.applyData(l,i)},paragraph:function(e,l){const o={type:"element",tagName:"p",properties:{},children:e.all(l)};return e.patch(l,o),e.applyData(l,o)},root:function(e,l){const o={type:"root",children:e.wrap(e.all(l))};return e.patch(l,o),e.applyData(l,o)},strong:function(e,l){const o={type:"element",tagName:"strong",properties:{},children:e.all(l)};return e.patch(l,o),e.applyData(l,o)},table:function(e,l){const o=e.all(l),t=o.shift(),n=[];if(t){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([t],!0)};e.patch(l.children[0],o),n.push(o)}if(o.length>0){const t={type:"element",tagName:"tbody",properties:{},children:e.wrap(o,!0)},i=hc(l.children[1]),r=fc(l.children[l.children.length-1]);i.line&&r.line&&(t.position={start:i,end:r}),n.push(t)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(l,i),e.applyData(l,i)},tableCell:function(e,l){const o={type:"element",tagName:"td",properties:{},children:e.all(l)};return e.patch(l,o),e.applyData(l,o)},tableRow:function(e,l,o){const t=o?o.children:void 0,n=0===(t?t.indexOf(l):1)?"th":"td",i=o&&"table"===o.type?o.align:void 0,r=i?i.length:l.children.length;let u=-1;const a=[];for(;++u<r;){const o=l.children[u],t={},r=i?i[u]:void 0;r&&(t.align=r);let d={type:"element",tagName:n,properties:t,children:[]};o&&(d.children=e.all(o),e.patch(o,d),d=e.applyData(l,d)),a.push(d)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(l,d),e.applyData(l,d)},text:function(e,l){const o={type:"text",value:bc(String(l.value))};return e.patch(l,o),e.applyData(l,o)},thematicBreak:function(e,l){const o={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(l,o),e.applyData(l,o)},toml:Tc,yaml:Tc,definition:Tc,footnoteDefinition:Tc};function Tc(){return null}const wc=function(e){if(null==e)return Lc;if("string"==typeof e)return function(e){return kc(l);function l(l){return l&&l.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const l=[];let o=-1;for(;++o<e.length;)l[o]=wc(e[o]);return kc(t);function t(...e){let o=-1;for(;++o<l.length;)if(l[o].call(this,...e))return!0;return!1}}(e):function(e){return kc(l);function l(l){let o;for(o in e)if(l[o]!==e[o])return!1;return!0}}(e);if("function"==typeof e)return kc(e);throw new Error("Expected function, string, or object as test")};function kc(e){return function(l,...o){return Boolean(l&&"object"==typeof l&&"type"in l&&Boolean(e.call(this,l,...o)))}}function Lc(){return!0}const Ic=!0,Ec=!1,Pc=function(e,l,o,t){"function"==typeof l&&"function"!=typeof o&&(t=o,o=l,l=null);const n=wc(l),i=t?-1:1;!function e(r,u,a){const d=r&&"object"==typeof r?r:{};if("string"==typeof d.type){const e="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0;Object.defineProperty(s,"name",{value:"node ("+(v=r.type+(e?"<"+e+">":""),"[33m"+v+"[39m)")})}var v;return s;function s(){let d,v,s,c=[];if((!l||n(r,u,a[a.length-1]||null))&&(c=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Ic,e];return[e]}(o(r,a)),c[0]===Ec))return c;if(r.children&&"skip"!==c[0])for(v=(t?r.children.length:-1)+i,s=a.concat(r);v>-1&&v<r.children.length;){if(d=e(r.children[v],v,s)(),d[0]===Ec)return d;v="number"==typeof d[1]?d[1]:v+i}return c}}(e,void 0,[])()};const Mc=function(e,l,o,t){"function"==typeof l&&"function"!=typeof o&&(t=o,o=l,l=null),Pc(e,l,function(e,l){const t=l[l.length-1];return o(e,t?t.children.indexOf(e):null,t)},t)};const Dc={}.hasOwnProperty;function Oc(e){return String(e||"").toUpperCase()}const Bc={}.hasOwnProperty;function Fc(e,l){const o=l||{},t=o.allowDangerousHtml||!1,n={};return r.dangerous=t,r.clobberPrefix=void 0===o.clobberPrefix||null===o.clobberPrefix?"user-content-":o.clobberPrefix,r.footnoteLabel=o.footnoteLabel||"Footnotes",r.footnoteLabelTagName=o.footnoteLabelTagName||"h2",r.footnoteLabelProperties=o.footnoteLabelProperties||{className:["sr-only"]},r.footnoteBackLabel=o.footnoteBackLabel||"Back to content",r.unknownHandler=o.unknownHandler,r.passThrough=o.passThrough,r.handlers={...Sc,...o.handlers},r.definition=function(e){const l=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Mc(e,"definition",e=>{const o=Oc(e.identifier);o&&!Dc.call(l,o)&&(l[o]=e)}),function(e){const o=Oc(e);return o&&Dc.call(l,o)?l[o]:null}}(e),r.footnoteById=n,r.footnoteOrder=[],r.footnoteCounts={},r.patch=Wc,r.applyData=Ac,r.one=function(e,l){return zc(r,e,l)},r.all=function(e){return Rc(r,e)},r.wrap=Hc,r.augment=i,Mc(e,"footnoteDefinition",e=>{const l=String(e.identifier).toUpperCase();Bc.call(n,l)||(n[l]=e)}),r;function i(e,l){if(e&&"data"in e&&e.data){const o=e.data;o.hName&&("element"!==l.type&&(l={type:"element",tagName:"",properties:{},children:[]}),l.tagName=o.hName),"element"===l.type&&o.hProperties&&(l.properties={...l.properties,...o.hProperties}),"children"in l&&l.children&&o.hChildren&&(l.children=o.hChildren)}if(e){const o="type"in e?e:{position:e};(function(e){return!(e&&e.position&&e.position.start&&e.position.start.line&&e.position.start.column&&e.position.end&&e.position.end.line&&e.position.end.column)})(o)||(l.position={start:hc(o),end:fc(o)})}return l}function r(e,l,o,t){return Array.isArray(o)&&(t=o,o={}),i(e,{type:"element",tagName:l,properties:o||{},children:t||[]})}}function Wc(e,l){e.position&&(l.position=function(e){return{start:hc(e),end:fc(e)}}(e))}function Ac(e,l){let o=l;if(e&&e.data){const l=e.data.hName,t=e.data.hChildren,n=e.data.hProperties;"string"==typeof l&&("element"===o.type?o.tagName=l:o={type:"element",tagName:l,properties:{},children:[]}),"element"===o.type&&n&&(o.properties={...o.properties,...n}),"children"in o&&o.children&&null!=t&&(o.children=t)}return o}function zc(e,l,o){const t=l&&l.type;if(!t)throw new Error("Expected node, got `"+l+"`");return Bc.call(e.handlers,t)?e.handlers[t](e,l,o):e.passThrough&&e.passThrough.includes(t)?"children"in l?{...l,children:Rc(e,l)}:l:e.unknownHandler?e.unknownHandler(e,l,o):function(e,l){const o=l.data||{},t=!("value"in l)||Bc.call(o,"hProperties")||Bc.call(o,"hChildren")?{type:"element",tagName:"div",properties:{},children:Rc(e,l)}:{type:"text",value:l.value};return e.patch(l,t),e.applyData(l,t)}(e,l)}function Rc(e,l){const o=[];if("children"in l){const t=l.children;let n=-1;for(;++n<t.length;){const i=zc(e,t[n],l);if(i){if(n&&"break"===t[n-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(i)?o.push(...i):o.push(i)}}}return o}function Hc(e,l){const o=[];let t=-1;for(l&&o.push({type:"text",value:"\n"});++t<e.length;)t&&o.push({type:"text",value:"\n"}),o.push(e[t]);return l&&e.length>0&&o.push({type:"text",value:"\n"}),o}function jc(e,l){const o=Fc(e,l),t=o.one(e,null),n=function(e){const l=[];let o=-1;for(;++o<e.footnoteOrder.length;){const t=e.footnoteById[e.footnoteOrder[o]];if(!t)continue;const n=e.all(t),i=String(t.identifier).toUpperCase(),r=mc(i.toLowerCase());let u=0;const a=[];for(;++u<=e.footnoteCounts[i];){const l={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+r+(u>1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};u>1&&l.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),a.length>0&&a.push({type:"text",value:" "}),a.push(l)}const d=n[n.length-1];if(d&&"element"===d.type&&"p"===d.tagName){const e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...a)}else n.push(...a);const v={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+r},children:e.wrap(n,!0)};e.patch(t,v),l.push(v)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(o);return n&&t.children.push({type:"text",value:"\n"},n),Array.isArray(t)?{type:"root",children:t}:t}const Nc=function(e,l){return e&&"run"in e?function(e,l){return(o,t,n)=>{e.run(jc(o,l),t,e=>{n(e)})}}(e,l):function(e){return l=>jc(l,e)}(e||l)};class Vc{constructor(e,l,o){this.property=e,this.normal=l,o&&(this.space=o)}}function Uc(e,l){const o={},t={};let n=-1;for(;++n<e.length;)Object.assign(o,e[n].property),Object.assign(t,e[n].normal);return new Vc(o,t,l)}function _c(e){return e.toLowerCase()}Vc.prototype.property={},Vc.prototype.normal={},Vc.prototype.space=null;class qc{constructor(e,l){this.property=e,this.attribute=l}}qc.prototype.space=null,qc.prototype.boolean=!1,qc.prototype.booleanish=!1,qc.prototype.overloadedBoolean=!1,qc.prototype.number=!1,qc.prototype.commaSeparated=!1,qc.prototype.spaceSeparated=!1,qc.prototype.commaOrSpaceSeparated=!1,qc.prototype.mustUseProperty=!1,qc.prototype.defined=!1;let Gc=0;const Qc=em(),Yc=em(),$c=em(),Zc=em(),Kc=em(),Xc=em(),Jc=em();function em(){return 2**++Gc}var lm=Object.freeze({__proto__:null,boolean:Qc,booleanish:Yc,commaOrSpaceSeparated:Jc,commaSeparated:Xc,number:Zc,overloadedBoolean:$c,spaceSeparated:Kc});const om=Object.keys(lm);class tm extends qc{constructor(e,l,o,t){let n=-1;if(super(e,l),nm(this,"space",t),"number"==typeof o)for(;++n<om.length;){const e=om[n];nm(this,om[n],(o&lm[e])===lm[e])}}}function nm(e,l,o){o&&(e[l]=o)}tm.prototype.defined=!0;const im={}.hasOwnProperty;function rm(e){const l={},o={};let t;for(t in e.properties)if(im.call(e.properties,t)){const n=e.properties[t],i=new tm(t,e.transform(e.attributes||{},t),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(i.mustUseProperty=!0),l[t]=i,o[_c(t)]=t,o[_c(i.attribute)]=t}return new Vc(l,o,e.space)}const um=rm({space:"xlink",transform:(e,l)=>"xlink:"+l.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),am=rm({space:"xml",transform:(e,l)=>"xml:"+l.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function dm(e,l){return l in e?e[l]:l}function vm(e,l){return dm(e,l.toLowerCase())}const sm=rm({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:vm,properties:{xmlns:null,xmlnsXLink:null}}),cm=rm({transform:(e,l)=>"role"===l?l:"aria-"+l.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Yc,ariaAutoComplete:null,ariaBusy:Yc,ariaChecked:Yc,ariaColCount:Zc,ariaColIndex:Zc,ariaColSpan:Zc,ariaControls:Kc,ariaCurrent:null,ariaDescribedBy:Kc,ariaDetails:null,ariaDisabled:Yc,ariaDropEffect:Kc,ariaErrorMessage:null,ariaExpanded:Yc,ariaFlowTo:Kc,ariaGrabbed:Yc,ariaHasPopup:null,ariaHidden:Yc,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Kc,ariaLevel:Zc,ariaLive:null,ariaModal:Yc,ariaMultiLine:Yc,ariaMultiSelectable:Yc,ariaOrientation:null,ariaOwns:Kc,ariaPlaceholder:null,ariaPosInSet:Zc,ariaPressed:Yc,ariaReadOnly:Yc,ariaRelevant:null,ariaRequired:Yc,ariaRoleDescription:Kc,ariaRowCount:Zc,ariaRowIndex:Zc,ariaRowSpan:Zc,ariaSelected:Yc,ariaSetSize:Zc,ariaSort:null,ariaValueMax:Zc,ariaValueMin:Zc,ariaValueNow:Zc,ariaValueText:null,role:null}}),mm=rm({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:vm,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xc,acceptCharset:Kc,accessKey:Kc,action:null,allow:null,allowFullScreen:Qc,allowPaymentRequest:Qc,allowUserMedia:Qc,alt:null,as:null,async:Qc,autoCapitalize:null,autoComplete:Kc,autoFocus:Qc,autoPlay:Qc,blocking:Kc,capture:null,charSet:null,checked:Qc,cite:null,className:Kc,cols:Zc,colSpan:null,content:null,contentEditable:Yc,controls:Qc,controlsList:Kc,coords:Zc|Xc,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qc,defer:Qc,dir:null,dirName:null,disabled:Qc,download:$c,draggable:Yc,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qc,formTarget:null,headers:Kc,height:Zc,hidden:Qc,high:Zc,href:null,hrefLang:null,htmlFor:Kc,httpEquiv:Kc,id:null,imageSizes:null,imageSrcSet:null,inert:Qc,inputMode:null,integrity:null,is:null,isMap:Qc,itemId:null,itemProp:Kc,itemRef:Kc,itemScope:Qc,itemType:Kc,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qc,low:Zc,manifest:null,max:null,maxLength:Zc,media:null,method:null,min:null,minLength:Zc,multiple:Qc,muted:Qc,name:null,nonce:null,noModule:Qc,noValidate:Qc,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qc,optimum:Zc,pattern:null,ping:Kc,placeholder:null,playsInline:Qc,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qc,referrerPolicy:null,rel:Kc,required:Qc,reversed:Qc,rows:Zc,rowSpan:Zc,sandbox:Kc,scope:null,scoped:Qc,seamless:Qc,selected:Qc,shadowRootClonable:Qc,shadowRootDelegatesFocus:Qc,shadowRootMode:null,shape:null,size:Zc,sizes:null,slot:null,span:Zc,spellCheck:Yc,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Zc,step:null,style:null,tabIndex:Zc,target:null,title:null,translate:null,type:null,typeMustMatch:Qc,useMap:null,value:Yc,width:Zc,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Kc,axis:null,background:null,bgColor:null,border:Zc,borderColor:null,bottomMargin:Zc,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qc,declare:Qc,event:null,face:null,frame:null,frameBorder:null,hSpace:Zc,leftMargin:Zc,link:null,longDesc:null,lowSrc:null,marginHeight:Zc,marginWidth:Zc,noResize:Qc,noHref:Qc,noShade:Qc,noWrap:Qc,object:null,profile:null,prompt:null,rev:null,rightMargin:Zc,rules:null,scheme:null,scrolling:Yc,standby:null,summary:null,text:null,topMargin:Zc,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Zc,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qc,disableRemotePlayback:Qc,prefix:null,property:null,results:Zc,security:null,unselectable:null}}),pm=rm({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:dm,properties:{about:Jc,accentHeight:Zc,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Zc,amplitude:Zc,arabicForm:null,ascent:Zc,attributeName:null,attributeType:null,azimuth:Zc,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Zc,by:null,calcMode:null,capHeight:Zc,className:Kc,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Zc,diffuseConstant:Zc,direction:null,display:null,dur:null,divisor:Zc,dominantBaseline:null,download:Qc,dx:null,dy:null,edgeMode:null,editable:null,elevation:Zc,enableBackground:null,end:null,event:null,exponent:Zc,externalResourcesRequired:null,fill:null,fillOpacity:Zc,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Xc,g2:Xc,glyphName:Xc,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Zc,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Zc,horizOriginX:Zc,horizOriginY:Zc,id:null,ideographic:Zc,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Zc,k:Zc,k1:Zc,k2:Zc,k3:Zc,k4:Zc,kernelMatrix:Jc,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Zc,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Zc,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Zc,overlineThickness:Zc,paintOrder:null,panose1:null,path:null,pathLength:Zc,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Kc,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Zc,pointsAtY:Zc,pointsAtZ:Zc,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Jc,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Jc,rev:Jc,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Jc,requiredFeatures:Jc,requiredFonts:Jc,requiredFormats:Jc,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Zc,specularExponent:Zc,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Zc,strikethroughThickness:Zc,string:null,stroke:null,strokeDashArray:Jc,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Zc,strokeOpacity:Zc,strokeWidth:null,style:null,surfaceScale:Zc,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Jc,tabIndex:Zc,tableValues:null,target:null,targetX:Zc,targetY:Zc,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Jc,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Zc,underlineThickness:Zc,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Zc,values:null,vAlphabetic:Zc,vMathematical:Zc,vectorEffect:null,vHanging:Zc,vIdeographic:Zc,version:null,vertAdvY:Zc,vertOriginX:Zc,vertOriginY:Zc,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Zc,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ym=/^data[-\w.:]+$/i,gm=/-[a-z]/g,hm=/[A-Z]/g;function fm(e){return"-"+e.toLowerCase()}function xm(e){return e.charAt(1).toUpperCase()}const bm={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Cm=Uc([am,um,sm,cm,mm],"html"),Sm=Uc([am,um,sm,cm,pm],"svg");function Tm(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return l=>{Mc(l,"element",(l,o,t)=>{const n=t;let i;if(e.allowedElements?i=!e.allowedElements.includes(l.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(l.tagName)),!i&&e.allowElement&&"number"==typeof o&&(i=!e.allowElement(l,o,n)),i&&"number"==typeof o)return e.unwrapDisallowed&&l.children?n.children.splice(o,1,...l.children):n.children.splice(o,1),o})}}var wm,km={exports:{}},Lm={};var Im,Em={};"production"===hn.env.NODE_ENV?km.exports=function(){if(wm)return Lm;wm=1;var e,l=Symbol.for("react.element"),o=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),u=Symbol.for("react.context"),a=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case l:switch(e=e.type){case t:case i:case n:case v:case s:return e;default:switch(e=e&&e.$$typeof){case a:case u:case d:case m:case c:case r:return e;default:return p}}case o:return p}}}return e=Symbol.for("react.module.reference"),Lm.ContextConsumer=u,Lm.ContextProvider=r,Lm.Element=l,Lm.ForwardRef=d,Lm.Fragment=t,Lm.Lazy=m,Lm.Memo=c,Lm.Portal=o,Lm.Profiler=i,Lm.StrictMode=n,Lm.Suspense=v,Lm.SuspenseList=s,Lm.isAsyncMode=function(){return!1},Lm.isConcurrentMode=function(){return!1},Lm.isContextConsumer=function(e){return y(e)===u},Lm.isContextProvider=function(e){return y(e)===r},Lm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===l},Lm.isForwardRef=function(e){return y(e)===d},Lm.isFragment=function(e){return y(e)===t},Lm.isLazy=function(e){return y(e)===m},Lm.isMemo=function(e){return y(e)===c},Lm.isPortal=function(e){return y(e)===o},Lm.isProfiler=function(e){return y(e)===i},Lm.isStrictMode=function(e){return y(e)===n},Lm.isSuspense=function(e){return y(e)===v},Lm.isSuspenseList=function(e){return y(e)===s},Lm.isValidElementType=function(l){return"string"==typeof l||"function"==typeof l||l===t||l===i||l===n||l===v||l===s||l===p||"object"==typeof l&&null!==l&&(l.$$typeof===m||l.$$typeof===c||l.$$typeof===r||l.$$typeof===u||l.$$typeof===d||l.$$typeof===e||void 0!==l.getModuleId)},Lm.typeOf=y,Lm}():km.exports=(Im||(Im=1,"production"!==hn.env.NODE_ENV&&function(){var e,l=Symbol.for("react.element"),o=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),u=Symbol.for("react.context"),a=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case l:var y=e.type;switch(y){case t:case i:case n:case v:case s:return y;default:var g=y&&y.$$typeof;switch(g){case a:case u:case d:case m:case c:case r:return g;default:return p}}case o:return p}}}e=Symbol.for("react.module.reference");var g=u,h=r,f=l,x=d,b=t,C=m,S=c,T=o,w=i,k=n,L=v,I=s,E=!1,P=!1;Em.ContextConsumer=g,Em.ContextProvider=h,Em.Element=f,Em.ForwardRef=x,Em.Fragment=b,Em.Lazy=C,Em.Memo=S,Em.Portal=T,Em.Profiler=w,Em.StrictMode=k,Em.Suspense=L,Em.SuspenseList=I,Em.isAsyncMode=function(e){return E||(E=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Em.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Em.isContextConsumer=function(e){return y(e)===u},Em.isContextProvider=function(e){return y(e)===r},Em.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===l},Em.isForwardRef=function(e){return y(e)===d},Em.isFragment=function(e){return y(e)===t},Em.isLazy=function(e){return y(e)===m},Em.isMemo=function(e){return y(e)===c},Em.isPortal=function(e){return y(e)===o},Em.isProfiler=function(e){return y(e)===i},Em.isStrictMode=function(e){return y(e)===n},Em.isSuspense=function(e){return y(e)===v},Em.isSuspenseList=function(e){return y(e)===s},Em.isValidElementType=function(l){return"string"==typeof l||"function"==typeof l||l===t||l===i||l===n||l===v||l===s||l===p||"object"==typeof l&&null!==l&&(l.$$typeof===m||l.$$typeof===c||l.$$typeof===r||l.$$typeof===u||l.$$typeof===d||l.$$typeof===e||void 0!==l.getModuleId)},Em.typeOf=y}()),Em);var Pm=Lu(km.exports);function Mm(e){const l=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof l&&""===l.replace(/[ \t\n\f\r]/g,"")}var Dm={exports:{}},Om=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Bm=/\n/g,Fm=/^\s*/,Wm=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Am=/^:\s*/,zm=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Rm=/^[;\s]*/,Hm=/^\s+|\s+$/g,jm="";function Nm(e){return e?e.replace(Hm,jm):jm}var Vm=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var o=1,t=1;function n(e){var l=e.match(Bm);l&&(o+=l.length);var n=e.lastIndexOf("\n");t=~n?e.length-n:t+e.length}function i(){var e={line:o,column:t};return function(l){return l.position=new r(e),d(),l}}function r(e){this.start=e,this.end={line:o,column:t},this.source=l.source}function u(n){var i=new Error(l.source+":"+o+":"+t+": "+n);if(i.reason=n,i.filename=l.source,i.line=o,i.column=t,i.source=e,!l.silent)throw i}function a(l){var o=l.exec(e);if(o){var t=o[0];return n(t),e=e.slice(t.length),o}}function d(){a(Fm)}function v(e){var l;for(e=e||[];l=s();)!1!==l&&e.push(l);return e}function s(){var l=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var o=2;jm!=e.charAt(o)&&("*"!=e.charAt(o)||"/"!=e.charAt(o+1));)++o;if(o+=2,jm===e.charAt(o-1))return u("End of comment missing");var r=e.slice(2,o-2);return t+=2,n(r),e=e.slice(o),t+=2,l({type:"comment",comment:r})}}function c(){var e=i(),l=a(Wm);if(l){if(s(),!a(Am))return u("property missing ':'");var o=a(zm),t=e({type:"declaration",property:Nm(l[0].replace(Om,jm)),value:o?Nm(o[0].replace(Om,jm)):jm});return a(Rm),t}}return r.prototype.content=e,d(),function(){var e,l=[];for(v(l);e=c();)!1!==e&&(l.push(e),v(l));return l}()};function Um(e,l){var o,t=null;if(!e||"string"!=typeof e)return t;for(var n,i,r=Vm(e),u="function"==typeof l,a=0,d=r.length;a<d;a++)n=(o=r[a]).property,i=o.value,u?l(n,i,o):i&&(t||(t={}),t[n]=i);return t}Dm.exports=Um,Dm.exports.default=Um;var _m=Lu(Dm.exports);const qm={}.hasOwnProperty,Gm=new Set(["table","thead","tbody","tfoot","tr"]);function Qm(e,l){const o=[];let t,n=-1;for(;++n<l.children.length;)t=l.children[n],"element"===t.type?o.push(Ym(e,t,n,l)):"text"===t.type?"element"===l.type&&Gm.has(l.tagName)&&Mm(t)||o.push(t.value):"raw"!==t.type||e.options.skipHtml||o.push(t.value);return o}function Ym(l,o,t,n){const i=l.options,r=void 0===i.transformLinkUri?$a:i.transformLinkUri,u=l.schema,a=o.tagName,d={};let v,s=u;if("html"===u.space&&"svg"===a&&(s=Sm,l.schema=s),o.properties)for(v in o.properties)qm.call(o.properties,v)&&Zm(d,v,o.properties[v],l);"ol"!==a&&"ul"!==a||l.listDepth++;const c=Qm(l,o);"ol"!==a&&"ul"!==a||l.listDepth--,l.schema=u;const m=o.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},p=i.components&&qm.call(i.components,a)?i.components[a]:a,y="string"==typeof p||p===e.Fragment;if(!Pm.isValidElementType(p))throw new TypeError(`Component for name \`${a}\` not defined or is not renderable`);if(d.key=t,"a"===a&&i.linkTarget&&(d.target="function"==typeof i.linkTarget?i.linkTarget(String(d.href||""),o.children,"string"==typeof d.title?d.title:null):i.linkTarget),"a"===a&&r&&(d.href=r(String(d.href||""),o.children,"string"==typeof d.title?d.title:null)),y||"code"!==a||"element"!==n.type||"pre"===n.tagName||(d.inline=!0),y||"h1"!==a&&"h2"!==a&&"h3"!==a&&"h4"!==a&&"h5"!==a&&"h6"!==a||(d.level=Number.parseInt(a.charAt(1),10)),"img"===a&&i.transformImageUri&&(d.src=i.transformImageUri(String(d.src||""),String(d.alt||""),"string"==typeof d.title?d.title:null)),!y&&"li"===a&&"element"===n.type){const e=function(e){let l=-1;for(;++l<e.children.length;){const o=e.children[l];if("element"===o.type&&"input"===o.tagName)return o}return null}(o);d.checked=e&&e.properties?Boolean(e.properties.checked):null,d.index=$m(n,o),d.ordered="ol"===n.tagName}var g;return y||"ol"!==a&&"ul"!==a||(d.ordered="ol"===a,d.depth=l.listDepth),"td"!==a&&"th"!==a||(d.align&&(d.style||(d.style={}),d.style.textAlign=d.align,delete d.align),y||(d.isHeader="th"===a)),y||"tr"!==a||"element"!==n.type||(d.isHeader=Boolean("thead"===n.tagName)),i.sourcePos&&(d["data-sourcepos"]=[(g=m).start.line,":",g.start.column,"-",g.end.line,":",g.end.column].map(String).join("")),!y&&i.rawSourcePos&&(d.sourcePosition=o.position),!y&&i.includeElementIndex&&(d.index=$m(n,o),d.siblingCount=$m(n)),y||(d.node=o),c.length>0?e.createElement(p,d,c):e.createElement(p,d)}function $m(e,l){let o=-1,t=0;for(;++o<e.children.length&&e.children[o]!==l;)"element"===e.children[o].type&&t++;return t}function Zm(e,l,o,t){const n=function(e,l){const o=_c(l);let t=l,n=qc;if(o in e.normal)return e.property[e.normal[o]];if(o.length>4&&"data"===o.slice(0,4)&&ym.test(l)){if("-"===l.charAt(4)){const e=l.slice(5).replace(gm,xm);t="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=l.slice(4);if(!gm.test(e)){let o=e.replace(hm,fm);"-"!==o.charAt(0)&&(o="-"+o),l="data"+o}}n=tm}return new n(t,l)}(t.schema,l);let i=o;null!=i&&i==i&&(Array.isArray(i)&&(i=n.commaSeparated?function(e){const l={};return(""===e[e.length-1]?[...e,""]:e).join((l.padRight?" ":"")+","+(!1===l.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===n.property&&"string"==typeof i&&(i=function(e){const l={};try{_m(e,o)}catch{}return l;function o(e,o){const t="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;l[t.replace(/-([a-z])/g,Km)]=o}}(i)),n.space&&n.property?e[qm.call(bm,n.property)?bm[n.property]:n.property]=i:n.attribute&&(e[n.attribute]=i))}function Km(e,l){return l.toUpperCase()}const Xm={}.hasOwnProperty,Jm={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function ep(l){for(const e in Jm)if(Xm.call(Jm,e)&&Xm.call(l,e)){const l=Jm[e];console.warn(`[react-markdown] Warning: please ${l.to?`use \`${l.to}\` instead of`:"remove"} \`${e}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${l.id}> for more info)`),delete Jm[e]}const o=sv().use(cc).use(l.remarkPlugins||[]).use(Nc,{...l.remarkRehypeOptions,allowDangerousHtml:!0}).use(l.rehypePlugins||[]).use(Tm,l),t=new Yd;"string"==typeof l.children?t.value=l.children:void 0!==l.children&&null!==l.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${l.children}\`)`);const n=o.runSync(o.parse(t),t);if("root"!==n.type)throw new TypeError("Expected a `root` node");let i=e.createElement(e.Fragment,{},Qm({options:l,schema:Cm,listDepth:0},n));return l.className&&(i=e.createElement("div",{className:l.className},i)),i}ep.propTypes={children:Ku.string,className:Ku.string,allowElement:Ku.func,allowedElements:Ku.arrayOf(Ku.string),disallowedElements:Ku.arrayOf(Ku.string),unwrapDisallowed:Ku.bool,remarkPlugins:Ku.arrayOf(Ku.oneOfType([Ku.object,Ku.func,Ku.arrayOf(Ku.oneOfType([Ku.bool,Ku.string,Ku.object,Ku.func,Ku.arrayOf(Ku.any)]))])),rehypePlugins:Ku.arrayOf(Ku.oneOfType([Ku.object,Ku.func,Ku.arrayOf(Ku.oneOfType([Ku.bool,Ku.string,Ku.object,Ku.func,Ku.arrayOf(Ku.any)]))])),sourcePos:Ku.bool,rawSourcePos:Ku.bool,skipHtml:Ku.bool,includeElementIndex:Ku.bool,transformLinkUri:Ku.oneOfType([Ku.func,Ku.bool]),linkTarget:Ku.oneOfType([Ku.func,Ku.string]),transformImageUri:Ku.func,components:Ku.object};var lp=ge("div")(function(e){var l=e.theme,o="light"===l.palette.mode;return{"& ul, & ol":Cl(Cl({},l.typography.body1),{},{paddingLeft:l.spacing(5),"& li":{lineHeight:2}}),"& blockquote":hl(hl(hl({lineHeight:1.5,fontSize:"1.5em",margin:"40px auto",position:"relative",fontFamily:"Georgia, serif",padding:l.spacing(3,3,3,8),borderRadius:2*Number(l.shape.borderRadius),backgroundColor:l.palette.background.neutral,color:"".concat(l.palette.text.secondary," !important")},l.breakpoints.up("md"),{width:"80%"}),"& p, & span",{marginBottom:"0 !important",fontSize:"inherit !important",fontFamily:"Georgia, serif !important",color:"".concat(l.palette.text.secondary," !important")}),"&:before",{left:16,top:-8,display:"block",fontSize:"3em",content:'"\\201C"',position:"absolute",color:l.palette.text.disabled}),"& pre, & pre > code":{fontSize:16,overflowX:"auto",whiteSpace:"pre",padding:l.spacing(2),color:l.palette.common.white,borderRadius:l.shape.borderRadius,backgroundColor:o?l.palette.grey[900]:he(l.palette.grey[500],.16)},"& code":{fontSize:14,borderRadius:4,whiteSpace:"pre",padding:l.spacing(.2,.5),color:l.palette.warning[o?"darker":"lighter"],backgroundColor:l.palette.warning[o?"lighter":"darker"],"&.hljs":{padding:0,backgroundColor:"transparent"}},table:{width:"100%",borderCollapse:"collapse",border:"1px solid ".concat(l.palette.divider),"th, td":{padding:l.spacing(1),border:"1px solid ".concat(l.palette.divider)},"tbody tr:nth-of-type(odd)":{backgroundColor:l.palette.background.neutral}},input:{"&[type=checkbox]":{position:"relative",cursor:"pointer","&:before":{content:'""',top:-2,left:-2,width:17,height:17,borderRadius:3,position:"absolute",backgroundColor:l.palette.grey[o?300:700]},"&:checked":{"&:before":{backgroundColor:l.palette.primary.main},"&:after":{content:'""',top:1,left:5,width:4,height:9,position:"absolute",transform:"rotate(45deg)",msTransform:"rotate(45deg)",WebkitTransform:"rotate(45deg)",border:"solid ".concat(l.palette.common.white),borderWidth:"0 2px 2px 0"}}}}}}),op=["sx"];function tp(l){var o=l.sx,t=Sl(l,op);return e.createElement(lp,{sx:o},e.createElement(ep,fl({rehypePlugins:[Qe,$e,[Ye,{singleTilde:!1}]],components:np},t)))}tp.propTypes={sx:Ku.object};var np={h1:function(l){var o=fl({},(xl(l),l));return e.createElement(x,fl({variant:"h1",gutterBottom:!0},o))},h2:function(l){var o=fl({},(xl(l),l));return e.createElement(x,fl({variant:"h2",gutterBottom:!0},o))},h3:function(l){var o=fl({},(xl(l),l));return e.createElement(x,fl({variant:"h3",gutterBottom:!0},o))},h4:function(l){var o=fl({},(xl(l),l));return e.createElement(x,fl({variant:"h4",gutterBottom:!0},o))},h5:function(l){var o=fl({},(xl(l),l));return e.createElement(x,fl({variant:"h5",gutterBottom:!0},o))},h6:function(l){var o=fl({},(xl(l),l));return e.createElement(x,fl({variant:"h6",gutterBottom:!0},o))},p:function(l){var o=fl({},(xl(l),l));return e.createElement(x,fl({paragraph:!0},o))},hr:function(l){var o=fl({},(xl(l),l));return e.createElement(S,fl({sx:{my:3}},o))},a:function(l){var o=fl({},(xl(l),l));return o.href.includes("http")?e.createElement(U,fl({target:"_blank",rel:"noopener"},o)):e.createElement(U,fl({component:Ge,to:o.href},o),o.children)}},ip=function(e){if(!e)return e;var l=document.createElement("textarea");return l.innerHTML=e,l.value};function rp(l){var o,t,n=l.themeColors;l.actions;var i=l.prop,r=l.styles;return l.states,l.globalComponentStyles,e.createElement(g,{sx:{width:"100%",py:"50px",px:{xs:"20px",md:"40px"},fontSize:"14px",margin:"0 auto",overflowY:"hidden",display:"flex",backgroundColor:(null==r||null===(o=r.EditorTextBlockBackgroundColor)||void 0===o?void 0:o.value)||(null==n||null===(t=n.EditorTextBlockBackgroundColor)||void 0===t?void 0:t.value)}},e.createElement(x,null,e.createElement(tp,{children:ip(i.editable.text.value)})))}var up={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},ap={common:{black:"#000",white:"#fff"},primary:{lighter:"#C8FACD",light:"#5BE584",main:"#00AB55",dark:"#007B55",darker:"#005249",contrastText:"#fff"},secondary:{lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},info:{lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},success:{lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},warning:{lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:up[800]},error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#fff"},grey:up,divider:he(up[500],.24),action:{hover:he(up[500],.08),selected:he(up[500],.16),disabled:he(up[500],.8),disabledBackground:he(up[500],.24),focus:he(up[500],.24),hoverOpacity:.08,disabledOpacity:.48}};var dp,vp=(dp=Cl(Cl({},ap),{},{mode:"light",text:{primary:up[800],secondary:up[600],disabled:up[500]},background:{paper:"#fff",default:"#fff",neutral:up[200]},action:Cl(Cl({},ap.action),{},{active:up[600]})}),Cl(Cl({},ap),{},{mode:"dark",text:{primary:"#fff",secondary:up[500],disabled:up[600]},background:{paper:up[800],default:up[900],neutral:he(up[500],.16)},action:Cl(Cl({},ap.action),{},{active:up[500]})}),dp),sp=[Cl({name:"default"},vp.primary),{name:"cyan",lighter:"#CCF4FE",light:"#68CDF9",main:"#078DEE",dark:"#0351AB",darker:"#012972",contrastText:"#FFFFFF"},{name:"purple",lighter:"#EBD6FD",light:"#B985F4",main:"#7635dc",dark:"#431A9E",darker:"#200A69",contrastText:"#FFFFFF"},{name:"blue",lighter:"#D1E9FC",light:"#76B0F1",main:"#2065D1",dark:"#103996",darker:"#061B64",contrastText:"#FFFFFF"},{name:"orange",lighter:"#FEF4D4",light:"#FED680",main:"#fda92d",dark:"#B66816",darker:"#793908",contrastText:vp.grey[800]},{name:"red",lighter:"#FFE3D5",light:"#FFC1AC",main:"#FF3030",dark:"#B71833",darker:"#7A0930",contrastText:"#FFFFFF"}],cp=sp[0];function mp(l){return e.createElement(ne,l,e.createElement("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"}))}function pp(l){var n,i,r,u,a,d,v,s,c,m,p,y,h,f,b,C,T,w,k,L,I,E,M,D,O,B,F,W,A,z,R,H,j,N,V,U,_,q,G,Q,Y,$,Z,K,X,J,ee,le,oe,ne,ie,re,ue,ae,de,ve,se,ce,me,pe,ye,ge,he,fe,xe,be,Ce,Se,Te,we,ke,Le,Ee,Pe,Me,De,Oe,Be,Fe,We,Ae,ze,Re,He,je,Ne,Ve,Ue,_e,qe,Ge,Qe,Ye,$e,Je,el,ll,ol,tl,nl,il,rl,ul,al,dl,vl,sl,cl,ml,pl,yl,fl,xl,bl,Sl,wl,Il,El,Pl,Ml,Dl,Ol,Bl,Fl,Wl,Al,zl,Rl,Hl,jl,Nl,Vl,Ul,_l,ql,Gl,Ql,Yl,$l,Zl,Kl,Xl,Jl,eo,lo,oo,to,no,io,ro,uo,ao,vo,so,co,mo,po,yo,go,ho,fo,xo,bo,Co,So,To,wo,ko,Lo,Io,Eo,Po,Mo,Do,Oo,Bo,Fo,Wo,Ao,zo,Ro,Ho,jo,No,Vo,Uo,_o,qo,Go,Qo,Yo,$o,Zo,Ko,Xo,Jo,et,lt,ot,tt,nt,it,ut,at,dt,vt,st,ct,pt,gt,ht,ft,xt,bt,Ct,St,Tt,wt,kt,Lt,It,Et,Pt,Mt,Dt,Ot,Bt,Ft,Wt,At,zt,Rt,Ht,jt,Nt,Vt,_t,qt,Gt,Qt,Yt,$t,Zt,Kt,Xt,Jt,en,ln,on,tn,nn,rn,un,an,dn,vn,sn,cn,mn,pn,yn,gn,hn,fn,xn,bn,Cn,Sn,Tn,wn,kn,Ln,In,En,Pn,Mn,Dn,On,Bn,Fn,Wn,An,zn,Rn,Hn,jn,Nn,Vn,Un,_n,qn,Gn,Qn,Yn,$n,Zn,Kn,Xn,Jn,ei,li,oi,ti,ni,ii,ri,ui,ai,di,vi,si,ci,mi,pi,yi,gi,hi,fi,xi,bi,Ci,Si,Ti,wi,ki,Li,Ii,Ei,Pi,Mi,Di,Oi,Bi,Fi,Wi,Ai,zi,Ri,Hi,ji,Ni,Vi,Ui,_i,qi,Gi,Qi,Yi,$i,Zi,Ki,Xi,Ji,er,lr,or,tr,nr,ir,rr,ur,ar,dr,vr,sr,cr,mr,pr,yr,gr,hr,fr,xr,br,Cr,Sr,Tr,wr,kr,Lr,Ir,Er,Pr,Mr,Dr,Or,Br,Fr,Wr,Ar,zr,Rr,Hr,jr,Nr,Vr,Ur,_r,qr,Gr,Qr,Yr,$r,Zr,Kr,Xr,Jr,eu,lu,ou,tu,nu,iu,ru,uu,au,du,vu,su,cu,mu,pu,yu,gu,hu,fu,xu,bu,Cu,Su,Tu,wu,ku,Lu,Iu,Eu,Pu,Mu,Du,Ou,Bu,Fu,Wu,Au,zu,Ru,Hu,ju,Nu,Vu,Uu,_u,qu,Gu,Qu,Yu,$u,Zu,Ku,Xu,Ju,ea,la,oa,ta,na,ia,ra;l.id,l.styles;var ua=l.layout,aa=l.globalComponentStyles,da=l.themeColors,va=l.states,sa=l.previewMode,ca=void 0!==sa&&sa,ma=l.actions,pa={color:""!==(null==ua||null===(n=ua.reviewLayout)||void 0===n||null===(n=n.body[0].styles)||void 0===n||null===(n=n.reviewPageReviewOrderHeadingsTextColor)||void 0===n?void 0:n.value)?"".concat(null==ua||null===(i=ua.reviewLayout)||void 0===i||null===(i=i.body[0].styles)||void 0===i||null===(i=i.reviewPageReviewOrderHeadingsTextColor)||void 0===i?void 0:i.value):""!=(null==aa||null===(r=aa.Text)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.value)?null==aa||null===(u=aa.Text)||void 0===u||null===(u=u.color)||void 0===u?void 0:u.value:"".concat(null==da||null===(a=da.reviewPageReviewOrderHeadingsTextColor)||void 0===a?void 0:a.value),fontSize:0!=(null==ua||null===(d=ua.reviewLayout)||void 0===d||null===(d=d.body[0].styles)||void 0===d||null===(d=d.reviewPageReviewOrderHeadingsTextSize)||void 0===d?void 0:d.value[yt()])?null==ua||null===(v=ua.reviewLayout)||void 0===v||null===(v=v.body[0].styles)||void 0===v||null===(v=v.reviewPageReviewOrderHeadingsTextSize)||void 0===v?void 0:v.value[yt()]:0!=(null==aa||null===(s=aa.Text)||void 0===s||null===(s=s.size)||void 0===s?void 0:s.value[yt()])?null==aa||null===(c=aa.Text)||void 0===c||null===(c=c.size)||void 0===c?void 0:c.value[yt()]:null==da||null===(m=da.reviewPageReviewOrderHeadingsTextSize)||void 0===m?void 0:m.value[yt()],fontWeight:""!=(null==ua||null===(p=ua.reviewLayout)||void 0===p||null===(p=p.body[0].styles)||void 0===p||null===(p=p.reviewPageReviewOrderHeadingsTextWeight)||void 0===p?void 0:p.value)?null==ua||null===(y=ua.reviewLayout)||void 0===y||null===(y=y.body[0].styles)||void 0===y||null===(y=y.reviewPageReviewOrderHeadingsTextWeight)||void 0===y?void 0:y.value:""!=(null==aa||null===(h=aa.Text)||void 0===h||null===(h=h.fontWeight)||void 0===h?void 0:h.value)?null==aa||null===(f=aa.Text)||void 0===f||null===(f=f.fontWeight)||void 0===f?void 0:f.value:null==da||null===(b=da.reviewPageReviewOrderHeadingsTextWeight)||void 0===b?void 0:b.value,fontFamily:""!=(null==ua||null===(C=ua.reviewLayout)||void 0===C||null===(C=C.body[0].styles)||void 0===C||null===(C=C.reviewPageReviewOrderHeadingsTextFont)||void 0===C?void 0:C.value)?null==ua||null===(T=ua.reviewLayout)||void 0===T||null===(T=T.body[0].styles)||void 0===T||null===(T=T.reviewPageReviewOrderHeadingsTextFont)||void 0===T?void 0:T.value:""!=(null==aa||null===(w=aa.Text)||void 0===w||null===(w=w.fontFamily)||void 0===w?void 0:w.value)?null==aa||null===(k=aa.Text)||void 0===k||null===(k=k.fontFamily)||void 0===k?void 0:k.value:null==da||null===(L=da.reviewPageReviewOrderHeadingsTextFont)||void 0===L?void 0:L.value,fontStyle:""!==(null==ua||null===(I=ua.reviewLayout)||void 0===I||null===(I=I.body[0].styles)||void 0===I||null===(I=I.reviewPageReviewOrderHeadingsTextStyle)||void 0===I?void 0:I.value)?null==ua||null===(E=ua.reviewLayout)||void 0===E||null===(E=E.body[0].styles)||void 0===E||null===(E=E.reviewPageReviewOrderHeadingsTextStyle)||void 0===E?void 0:E.value:""!=(null==aa||null===(M=aa.Text)||void 0===M||null===(M=M.fontStyle)||void 0===M?void 0:M.value)?null==aa||null===(D=aa.Text)||void 0===D||null===(D=D.fontStyle)||void 0===D?void 0:D.value:null==da||null===(O=da.reviewPageReviewOrderHeadingsTextStyle)||void 0===O?void 0:O.value},ya={color:""!==(null==ua||null===(B=ua.reviewLayout)||void 0===B||null===(B=B.body[0].styles)||void 0===B||null===(B=B.reviewPageQuestionsTextColor)||void 0===B?void 0:B.value)?"".concat(null==ua||null===(F=ua.reviewLayout)||void 0===F||null===(F=F.body[0].styles)||void 0===F||null===(F=F.reviewPageQuestionsTextColor)||void 0===F?void 0:F.value):""!=(null==aa||null===(W=aa.Text)||void 0===W||null===(W=W.color)||void 0===W?void 0:W.value)?null==aa||null===(A=aa.Text)||void 0===A||null===(A=A.color)||void 0===A?void 0:A.value:"".concat(null==da||null===(z=da.reviewPageQuestionsTextColor)||void 0===z?void 0:z.value),fontSize:0!=(null==ua||null===(R=ua.reviewLayout)||void 0===R||null===(R=R.body[0].styles)||void 0===R||null===(R=R.reviewPageQuestionsTextSize)||void 0===R?void 0:R.value[yt()])?null==ua||null===(H=ua.reviewLayout)||void 0===H||null===(H=H.body[0].styles)||void 0===H||null===(H=H.reviewPageQuestionsTextSize)||void 0===H?void 0:H.value[yt()]:0!=(null==aa||null===(j=aa.Text)||void 0===j||null===(j=j.size)||void 0===j?void 0:j.value[yt()])?null==aa||null===(N=aa.Text)||void 0===N||null===(N=N.size)||void 0===N?void 0:N.value[yt()]:null==da||null===(V=da.reviewPageQuestionsTextSize)||void 0===V?void 0:V.value[yt()],fontWeight:""!=(null==ua||null===(U=ua.reviewLayout)||void 0===U||null===(U=U.body[0].styles)||void 0===U||null===(U=U.reviewPageQuestionsTextWeight)||void 0===U?void 0:U.value)?null==ua||null===(_=ua.reviewLayout)||void 0===_||null===(_=_.body[0].styles)||void 0===_||null===(_=_.reviewPageQuestionsTextWeight)||void 0===_?void 0:_.value:""!=(null==aa||null===(q=aa.Text)||void 0===q||null===(q=q.fontWeight)||void 0===q?void 0:q.value)?null==aa||null===(G=aa.Text)||void 0===G||null===(G=G.fontWeight)||void 0===G?void 0:G.value:null==da||null===(Q=da.reviewPageQuestionsTextWeight)||void 0===Q?void 0:Q.value,fontFamily:""!=(null==ua||null===(Y=ua.reviewLayout)||void 0===Y||null===(Y=Y.body[0].styles)||void 0===Y||null===(Y=Y.reviewPageQuestionsTextFont)||void 0===Y?void 0:Y.value)?null==ua||null===($=ua.reviewLayout)||void 0===$||null===($=$.body[0].styles)||void 0===$||null===($=$.reviewPageQuestionsTextFont)||void 0===$?void 0:$.value:""!=(null==aa||null===(Z=aa.Text)||void 0===Z||null===(Z=Z.fontFamily)||void 0===Z?void 0:Z.value)?null==aa||null===(K=aa.Text)||void 0===K||null===(K=K.fontFamily)||void 0===K?void 0:K.value:null==da||null===(X=da.reviewPageQuestionsTextFont)||void 0===X?void 0:X.value,fontStyle:""!==(null==ua||null===(J=ua.reviewLayout)||void 0===J||null===(J=J.body[0].styles)||void 0===J||null===(J=J.reviewPageQuestionsTextStyle)||void 0===J?void 0:J.value)?null==ua||null===(ee=ua.reviewLayout)||void 0===ee||null===(ee=ee.body[0].styles)||void 0===ee||null===(ee=ee.reviewPageQuestionsTextStyle)||void 0===ee?void 0:ee.value:""!=(null==aa||null===(le=aa.Text)||void 0===le||null===(le=le.fontStyle)||void 0===le?void 0:le.value)?null==aa||null===(oe=aa.Text)||void 0===oe||null===(oe=oe.fontStyle)||void 0===oe?void 0:oe.value:null==da||null===(ne=da.reviewPageQuestionsTextStyle)||void 0===ne?void 0:ne.value},ga={color:""!==(null==ua||null===(ie=ua.reviewLayout)||void 0===ie||null===(ie=ie.body[0].styles)||void 0===ie||null===(ie=ie.reviewEachItemHeadingTextColor)||void 0===ie?void 0:ie.value)?"".concat(null==ua||null===(re=ua.reviewLayout)||void 0===re||null===(re=re.body[0].styles)||void 0===re||null===(re=re.reviewEachItemHeadingTextColor)||void 0===re?void 0:re.value):""!=(null==aa||null===(ue=aa.Text)||void 0===ue||null===(ue=ue.color)||void 0===ue?void 0:ue.value)?null==aa||null===(ae=aa.Text)||void 0===ae||null===(ae=ae.color)||void 0===ae?void 0:ae.value:"".concat(null==da||null===(de=da.reviewEachItemHeadingTextColor)||void 0===de?void 0:de.value),fontSize:0!=(null==ua||null===(ve=ua.reviewLayout)||void 0===ve||null===(ve=ve.body[0].styles)||void 0===ve||null===(ve=ve.reviewEachItemHeadingTextSize)||void 0===ve?void 0:ve.value[yt()])?null==ua||null===(se=ua.reviewLayout)||void 0===se||null===(se=se.body[0].styles)||void 0===se||null===(se=se.reviewEachItemHeadingTextSize)||void 0===se?void 0:se.value[yt()]:0!=(null==aa||null===(ce=aa.Text)||void 0===ce||null===(ce=ce.size)||void 0===ce?void 0:ce.value[yt()])?null==aa||null===(me=aa.Text)||void 0===me||null===(me=me.size)||void 0===me?void 0:me.value[yt()]:null==da||null===(pe=da.reviewEachItemHeadingTextSize)||void 0===pe?void 0:pe.value[yt()],fontWeight:""!=(null==ua||null===(ye=ua.reviewLayout)||void 0===ye||null===(ye=ye.body[0].styles)||void 0===ye||null===(ye=ye.reviewEachItemHeadingTextWeight)||void 0===ye?void 0:ye.value)?null==ua||null===(ge=ua.reviewLayout)||void 0===ge||null===(ge=ge.body[0].styles)||void 0===ge||null===(ge=ge.reviewEachItemHeadingTextWeight)||void 0===ge?void 0:ge.value:""!=(null==aa||null===(he=aa.Text)||void 0===he||null===(he=he.fontWeight)||void 0===he?void 0:he.value)?null==aa||null===(fe=aa.Text)||void 0===fe||null===(fe=fe.fontWeight)||void 0===fe?void 0:fe.value:null==da||null===(xe=da.reviewEachItemHeadingTextWeight)||void 0===xe?void 0:xe.value,fontFamily:""!=(null==ua||null===(be=ua.reviewLayout)||void 0===be||null===(be=be.body[0].styles)||void 0===be||null===(be=be.reviewEachItemHeadingTextFont)||void 0===be?void 0:be.value)?null==ua||null===(Ce=ua.reviewLayout)||void 0===Ce||null===(Ce=Ce.body[0].styles)||void 0===Ce||null===(Ce=Ce.reviewEachItemHeadingTextFont)||void 0===Ce?void 0:Ce.value:""!=(null==aa||null===(Se=aa.Text)||void 0===Se||null===(Se=Se.fontFamily)||void 0===Se?void 0:Se.value)?null==aa||null===(Te=aa.Text)||void 0===Te||null===(Te=Te.fontFamily)||void 0===Te?void 0:Te.value:null==da||null===(we=da.reviewEachItemHeadingTextFont)||void 0===we?void 0:we.value,fontStyle:""!==(null==ua||null===(ke=ua.reviewLayout)||void 0===ke||null===(ke=ke.body[0].styles)||void 0===ke||null===(ke=ke.reviewEachItemHeadingTextStyle)||void 0===ke?void 0:ke.value)?null==ua||null===(Le=ua.reviewLayout)||void 0===Le||null===(Le=Le.body[0].styles)||void 0===Le||null===(Le=Le.reviewEachItemHeadingTextStyle)||void 0===Le?void 0:Le.value:""!=(null==aa||null===(Ee=aa.Text)||void 0===Ee||null===(Ee=Ee.fontStyle)||void 0===Ee?void 0:Ee.value)?null==aa||null===(Pe=aa.Text)||void 0===Pe||null===(Pe=Pe.fontStyle)||void 0===Pe?void 0:Pe.value:null==da||null===(Me=da.reviewEachItemHeadingTextStyle)||void 0===Me?void 0:Me.value},ha={color:""!==(null==ua||null===(De=ua.reviewLayout)||void 0===De||null===(De=De.body[0].styles)||void 0===De||null===(De=De.reviewPageOrderNoTextColor)||void 0===De?void 0:De.value)?"".concat(null==ua||null===(Oe=ua.reviewLayout)||void 0===Oe||null===(Oe=Oe.body[0].styles)||void 0===Oe||null===(Oe=Oe.reviewPageOrderNoTextColor)||void 0===Oe?void 0:Oe.value):""!=(null==aa||null===(Be=aa.Text)||void 0===Be||null===(Be=Be.color)||void 0===Be?void 0:Be.value)?null==aa||null===(Fe=aa.Text)||void 0===Fe||null===(Fe=Fe.color)||void 0===Fe?void 0:Fe.value:"".concat(null==da||null===(We=da.reviewPageOrderNoTextColor)||void 0===We?void 0:We.value),fontSize:0!=(null==ua||null===(Ae=ua.reviewLayout)||void 0===Ae||null===(Ae=Ae.body[0].styles)||void 0===Ae||null===(Ae=Ae.reviewPageOrderNoTextSize)||void 0===Ae?void 0:Ae.value[yt()])?null==ua||null===(ze=ua.reviewLayout)||void 0===ze||null===(ze=ze.body[0].styles)||void 0===ze||null===(ze=ze.reviewPageOrderNoTextSize)||void 0===ze?void 0:ze.value[yt()]:0!=(null==aa||null===(Re=aa.Text)||void 0===Re||null===(Re=Re.size)||void 0===Re?void 0:Re.value[yt()])?null==aa||null===(He=aa.Text)||void 0===He||null===(He=He.size)||void 0===He?void 0:He.value[yt()]:null==da||null===(je=da.reviewPageOrderNoTextSize)||void 0===je?void 0:je.value[yt()],fontWeight:""!=(null==ua||null===(Ne=ua.reviewLayout)||void 0===Ne||null===(Ne=Ne.body[0].styles)||void 0===Ne||null===(Ne=Ne.reviewPageOrderNoTextWeight)||void 0===Ne?void 0:Ne.value)?null==ua||null===(Ve=ua.reviewLayout)||void 0===Ve||null===(Ve=Ve.body[0].styles)||void 0===Ve||null===(Ve=Ve.reviewPageOrderNoTextWeight)||void 0===Ve?void 0:Ve.value:""!=(null==aa||null===(Ue=aa.Text)||void 0===Ue||null===(Ue=Ue.fontWeight)||void 0===Ue?void 0:Ue.value)?null==aa||null===(_e=aa.Text)||void 0===_e||null===(_e=_e.fontWeight)||void 0===_e?void 0:_e.value:null==da||null===(qe=da.reviewPageOrderNoTextWeight)||void 0===qe?void 0:qe.value,fontFamily:""!=(null==ua||null===(Ge=ua.reviewLayout)||void 0===Ge||null===(Ge=Ge.body[0].styles)||void 0===Ge||null===(Ge=Ge.reviewPageOrderNoTextFont)||void 0===Ge?void 0:Ge.value)?null==ua||null===(Qe=ua.reviewLayout)||void 0===Qe||null===(Qe=Qe.body[0].styles)||void 0===Qe||null===(Qe=Qe.reviewPageOrderNoTextFont)||void 0===Qe?void 0:Qe.value:""!=(null==aa||null===(Ye=aa.Text)||void 0===Ye||null===(Ye=Ye.fontFamily)||void 0===Ye?void 0:Ye.value)?null==aa||null===($e=aa.Text)||void 0===$e||null===($e=$e.fontFamily)||void 0===$e?void 0:$e.value:null==da||null===(Je=da.reviewPageOrderNoTextFont)||void 0===Je?void 0:Je.value,fontStyle:""!==(null==ua||null===(el=ua.reviewLayout)||void 0===el||null===(el=el.body[0].styles)||void 0===el||null===(el=el.reviewPageOrderNoTextStyle)||void 0===el?void 0:el.value)?null==ua||null===(ll=ua.reviewLayout)||void 0===ll||null===(ll=ll.body[0].styles)||void 0===ll||null===(ll=ll.reviewPageOrderNoTextStyle)||void 0===ll?void 0:ll.value:""!=(null==aa||null===(ol=aa.Text)||void 0===ol||null===(ol=ol.fontStyle)||void 0===ol?void 0:ol.value)?null==aa||null===(tl=aa.Text)||void 0===tl||null===(tl=tl.fontStyle)||void 0===tl?void 0:tl.value:null==da||null===(nl=da.reviewPageOrderNoTextStyle)||void 0===nl?void 0:nl.value},fa={color:""!==(null==ua||null===(il=ua.reviewLayout)||void 0===il||null===(il=il.body[0].styles)||void 0===il||null===(il=il.reviewPageOrderTotalTextColor)||void 0===il?void 0:il.value)?"".concat(null==ua||null===(rl=ua.reviewLayout)||void 0===rl||null===(rl=rl.body[0].styles)||void 0===rl||null===(rl=rl.reviewPageOrderTotalTextColor)||void 0===rl?void 0:rl.value):""!=(null==aa||null===(ul=aa.Text)||void 0===ul||null===(ul=ul.color)||void 0===ul?void 0:ul.value)?null==aa||null===(al=aa.Text)||void 0===al||null===(al=al.color)||void 0===al?void 0:al.value:"".concat(null==da||null===(dl=da.reviewPageOrderTotalTextColor)||void 0===dl?void 0:dl.value),fontSize:0!=(null==ua||null===(vl=ua.reviewLayout)||void 0===vl||null===(vl=vl.body[0].styles)||void 0===vl||null===(vl=vl.reviewPageOrderTotalTextSize)||void 0===vl?void 0:vl.value[yt()])?null==ua||null===(sl=ua.reviewLayout)||void 0===sl||null===(sl=sl.body[0].styles)||void 0===sl||null===(sl=sl.reviewPageOrderTotalTextSize)||void 0===sl?void 0:sl.value[yt()]:0!=(null==aa||null===(cl=aa.Text)||void 0===cl||null===(cl=cl.size)||void 0===cl?void 0:cl.value[yt()])?null==aa||null===(ml=aa.Text)||void 0===ml||null===(ml=ml.size)||void 0===ml?void 0:ml.value[yt()]:null==da||null===(pl=da.reviewPageOrderTotalTextSize)||void 0===pl?void 0:pl.value[yt()],fontWeight:""!=(null==ua||null===(yl=ua.reviewLayout)||void 0===yl||null===(yl=yl.body[0].styles)||void 0===yl||null===(yl=yl.reviewPageOrderTotalTextWeight)||void 0===yl?void 0:yl.value)?null==ua||null===(fl=ua.reviewLayout)||void 0===fl||null===(fl=fl.body[0].styles)||void 0===fl||null===(fl=fl.reviewPageOrderTotalTextWeight)||void 0===fl?void 0:fl.value:""!=(null==aa||null===(xl=aa.Text)||void 0===xl||null===(xl=xl.fontWeight)||void 0===xl?void 0:xl.value)?null==aa||null===(bl=aa.Text)||void 0===bl||null===(bl=bl.fontWeight)||void 0===bl?void 0:bl.value:null==da||null===(Sl=da.reviewPageOrderTotalTextWeight)||void 0===Sl?void 0:Sl.value,fontFamily:""!=(null==ua||null===(wl=ua.reviewLayout)||void 0===wl||null===(wl=wl.body[0].styles)||void 0===wl||null===(wl=wl.reviewPageOrderTotalTextFont)||void 0===wl?void 0:wl.value)?null==ua||null===(Il=ua.reviewLayout)||void 0===Il||null===(Il=Il.body[0].styles)||void 0===Il||null===(Il=Il.reviewPageOrderTotalTextFont)||void 0===Il?void 0:Il.value:""!=(null==aa||null===(El=aa.Text)||void 0===El||null===(El=El.fontFamily)||void 0===El?void 0:El.value)?null==aa||null===(Pl=aa.Text)||void 0===Pl||null===(Pl=Pl.fontFamily)||void 0===Pl?void 0:Pl.value:null==da||null===(Ml=da.reviewPageOrderTotalTextFont)||void 0===Ml?void 0:Ml.value,fontStyle:""!==(null==ua||null===(Dl=ua.reviewLayout)||void 0===Dl||null===(Dl=Dl.body[0].styles)||void 0===Dl||null===(Dl=Dl.reviewPageOrderTotalTextStyle)||void 0===Dl?void 0:Dl.value)?null==ua||null===(Ol=ua.reviewLayout)||void 0===Ol||null===(Ol=Ol.body[0].styles)||void 0===Ol||null===(Ol=Ol.reviewPageOrderTotalTextStyle)||void 0===Ol?void 0:Ol.value:""!=(null==aa||null===(Bl=aa.Text)||void 0===Bl||null===(Bl=Bl.fontStyle)||void 0===Bl?void 0:Bl.value)?null==aa||null===(Fl=aa.Text)||void 0===Fl||null===(Fl=Fl.fontStyle)||void 0===Fl?void 0:Fl.value:null==da||null===(Wl=da.reviewPageOrderTotalTextStyle)||void 0===Wl?void 0:Wl.value},xa={color:""!==(null==ua||null===(Al=ua.reviewLayout)||void 0===Al||null===(Al=Al.body[0].styles)||void 0===Al||null===(Al=Al.reviewPageVarinatHeadingTextColor)||void 0===Al?void 0:Al.value)?"".concat(null==ua||null===(zl=ua.reviewLayout)||void 0===zl||null===(zl=zl.body[0].styles)||void 0===zl||null===(zl=zl.reviewPageVarinatHeadingTextColor)||void 0===zl?void 0:zl.value):""!=(null==aa||null===(Rl=aa.Text)||void 0===Rl||null===(Rl=Rl.color)||void 0===Rl?void 0:Rl.value)?null==aa||null===(Hl=aa.Text)||void 0===Hl||null===(Hl=Hl.color)||void 0===Hl?void 0:Hl.value:"".concat(null==da||null===(jl=da.reviewPageVarinatHeadingTextColor)||void 0===jl?void 0:jl.value),fontSize:0!=(null==ua||null===(Nl=ua.reviewLayout)||void 0===Nl||null===(Nl=Nl.body[0].styles)||void 0===Nl||null===(Nl=Nl.reviewPageVarinatHeadingTextSize)||void 0===Nl?void 0:Nl.value[yt()])?null==ua||null===(Vl=ua.reviewLayout)||void 0===Vl||null===(Vl=Vl.body[0].styles)||void 0===Vl||null===(Vl=Vl.reviewPageVarinatHeadingTextSize)||void 0===Vl?void 0:Vl.value[yt()]:0!=(null==aa||null===(Ul=aa.Text)||void 0===Ul||null===(Ul=Ul.size)||void 0===Ul?void 0:Ul.value[yt()])?null==aa||null===(_l=aa.Text)||void 0===_l||null===(_l=_l.size)||void 0===_l?void 0:_l.value[yt()]:null==da||null===(ql=da.reviewPageVarinatHeadingTextSize)||void 0===ql?void 0:ql.value[yt()],fontWeight:""!=(null==ua||null===(Gl=ua.reviewLayout)||void 0===Gl||null===(Gl=Gl.body[0].styles)||void 0===Gl||null===(Gl=Gl.reviewPageVarinatHeadingTextWeight)||void 0===Gl?void 0:Gl.value)?null==ua||null===(Ql=ua.reviewLayout)||void 0===Ql||null===(Ql=Ql.body[0].styles)||void 0===Ql||null===(Ql=Ql.reviewPageVarinatHeadingTextWeight)||void 0===Ql?void 0:Ql.value:""!=(null==aa||null===(Yl=aa.Text)||void 0===Yl||null===(Yl=Yl.fontWeight)||void 0===Yl?void 0:Yl.value)?null==aa||null===($l=aa.Text)||void 0===$l||null===($l=$l.fontWeight)||void 0===$l?void 0:$l.value:null==da||null===(Zl=da.reviewPageVarinatHeadingTextWeight)||void 0===Zl?void 0:Zl.value,fontFamily:""!=(null==ua||null===(Kl=ua.reviewLayout)||void 0===Kl||null===(Kl=Kl.body[0].styles)||void 0===Kl||null===(Kl=Kl.reviewPageVarinatHeadingTextFont)||void 0===Kl?void 0:Kl.value)?null==ua||null===(Xl=ua.reviewLayout)||void 0===Xl||null===(Xl=Xl.body[0].styles)||void 0===Xl||null===(Xl=Xl.reviewPageVarinatHeadingTextFont)||void 0===Xl?void 0:Xl.value:""!=(null==aa||null===(Jl=aa.Text)||void 0===Jl||null===(Jl=Jl.fontFamily)||void 0===Jl?void 0:Jl.value)?null==aa||null===(eo=aa.Text)||void 0===eo||null===(eo=eo.fontFamily)||void 0===eo?void 0:eo.value:null==da||null===(lo=da.reviewPageVarinatHeadingTextFont)||void 0===lo?void 0:lo.value,fontStyle:""!==(null==ua||null===(oo=ua.reviewLayout)||void 0===oo||null===(oo=oo.body[0].styles)||void 0===oo||null===(oo=oo.reviewPageVarinatHeadingTextStyle)||void 0===oo?void 0:oo.value)?null==ua||null===(to=ua.reviewLayout)||void 0===to||null===(to=to.body[0].styles)||void 0===to||null===(to=to.reviewPageVarinatHeadingTextStyle)||void 0===to?void 0:to.value:""!=(null==aa||null===(no=aa.Text)||void 0===no||null===(no=no.fontStyle)||void 0===no?void 0:no.value)?null==aa||null===(io=aa.Text)||void 0===io||null===(io=io.fontStyle)||void 0===io?void 0:io.value:null==da||null===(ro=da.reviewPageVarinatHeadingTextStyle)||void 0===ro?void 0:ro.value},ba={color:""!==(null==ua||null===(uo=ua.reviewLayout)||void 0===uo||null===(uo=uo.body[0].styles)||void 0===uo||null===(uo=uo.reviewPageSelectedVarinatHeadingTextColor)||void 0===uo?void 0:uo.value)?"".concat(null==ua||null===(ao=ua.reviewLayout)||void 0===ao||null===(ao=ao.body[0].styles)||void 0===ao||null===(ao=ao.reviewPageSelectedVarinatHeadingTextColor)||void 0===ao?void 0:ao.value):""!=(null==aa||null===(vo=aa.Text)||void 0===vo||null===(vo=vo.color)||void 0===vo?void 0:vo.value)?null==aa||null===(so=aa.Text)||void 0===so||null===(so=so.color)||void 0===so?void 0:so.value:"".concat(null==da||null===(co=da.reviewPageSelectedVarinatHeadingTextColor)||void 0===co?void 0:co.value),fontSize:0!=(null==ua||null===(mo=ua.reviewLayout)||void 0===mo||null===(mo=mo.body[0].styles)||void 0===mo||null===(mo=mo.reviewPageSelectedVarinatHeadingTextSize)||void 0===mo?void 0:mo.value[yt()])?null==ua||null===(po=ua.reviewLayout)||void 0===po||null===(po=po.body[0].styles)||void 0===po||null===(po=po.reviewPageSelectedVarinatHeadingTextSize)||void 0===po?void 0:po.value[yt()]:0!=(null==aa||null===(yo=aa.Text)||void 0===yo||null===(yo=yo.size)||void 0===yo?void 0:yo.value[yt()])?null==aa||null===(go=aa.Text)||void 0===go||null===(go=go.size)||void 0===go?void 0:go.value[yt()]:null==da||null===(ho=da.reviewPageSelectedVarinatHeadingTextSize)||void 0===ho?void 0:ho.value[yt()],fontWeight:""!=(null==ua||null===(fo=ua.reviewLayout)||void 0===fo||null===(fo=fo.body[0].styles)||void 0===fo||null===(fo=fo.reviewPageSelectedVarinatHeadingTextWeight)||void 0===fo?void 0:fo.value)?null==ua||null===(xo=ua.reviewLayout)||void 0===xo||null===(xo=xo.body[0].styles)||void 0===xo||null===(xo=xo.reviewPageSelectedVarinatHeadingTextWeight)||void 0===xo?void 0:xo.value:""!=(null==aa||null===(bo=aa.Text)||void 0===bo||null===(bo=bo.fontWeight)||void 0===bo?void 0:bo.value)?null==aa||null===(Co=aa.Text)||void 0===Co||null===(Co=Co.fontWeight)||void 0===Co?void 0:Co.value:null==da||null===(So=da.reviewPageSelectedVarinatHeadingTextWeight)||void 0===So?void 0:So.value,fontFamily:""!=(null==ua||null===(To=ua.reviewLayout)||void 0===To||null===(To=To.body[0].styles)||void 0===To||null===(To=To.reviewPageSelectedVarinatHeadingTextFont)||void 0===To?void 0:To.value)?null==ua||null===(wo=ua.reviewLayout)||void 0===wo||null===(wo=wo.body[0].styles)||void 0===wo||null===(wo=wo.reviewPageSelectedVarinatHeadingTextFont)||void 0===wo?void 0:wo.value:""!=(null==aa||null===(ko=aa.Text)||void 0===ko||null===(ko=ko.fontFamily)||void 0===ko?void 0:ko.value)?null==aa||null===(Lo=aa.Text)||void 0===Lo||null===(Lo=Lo.fontFamily)||void 0===Lo?void 0:Lo.value:null==da||null===(Io=da.reviewPageSelectedVarinatHeadingTextFont)||void 0===Io?void 0:Io.value,fontStyle:""!==(null==ua||null===(Eo=ua.reviewLayout)||void 0===Eo||null===(Eo=Eo.body[0].styles)||void 0===Eo||null===(Eo=Eo.reviewPageSelectedVarinatHeadingTextStyle)||void 0===Eo?void 0:Eo.value)?null==ua||null===(Po=ua.reviewLayout)||void 0===Po||null===(Po=Po.body[0].styles)||void 0===Po||null===(Po=Po.reviewPageSelectedVarinatHeadingTextStyle)||void 0===Po?void 0:Po.value:""!=(null==aa||null===(Mo=aa.Text)||void 0===Mo||null===(Mo=Mo.fontStyle)||void 0===Mo?void 0:Mo.value)?null==aa||null===(Do=aa.Text)||void 0===Do||null===(Do=Do.fontStyle)||void 0===Do?void 0:Do.value:null==da||null===(Oo=da.reviewPageSelectedVarinatHeadingTextStyle)||void 0===Oo?void 0:Oo.value},Ca={color:""!==(null==ua||null===(Bo=ua.reviewLayout)||void 0===Bo||null===(Bo=Bo.body[0].styles)||void 0===Bo||null===(Bo=Bo.reviewPageSubmitTextColor)||void 0===Bo?void 0:Bo.value)?"".concat(null==ua||null===(Fo=ua.reviewLayout)||void 0===Fo||null===(Fo=Fo.body[0].styles)||void 0===Fo||null===(Fo=Fo.reviewPageSubmitTextColor)||void 0===Fo?void 0:Fo.value):""!=(null==aa||null===(Wo=aa.Button)||void 0===Wo||null===(Wo=Wo.color)||void 0===Wo?void 0:Wo.value)?null==aa||null===(Ao=aa.Button)||void 0===Ao||null===(Ao=Ao.color)||void 0===Ao?void 0:Ao.value:"".concat(null==da||null===(zo=da.reviewPageSubmitTextColor)||void 0===zo?void 0:zo.value),fontSize:0!=(null==ua||null===(Ro=ua.reviewLayout)||void 0===Ro||null===(Ro=Ro.body[0].styles)||void 0===Ro||null===(Ro=Ro.reviewPageSubmitTextSize)||void 0===Ro?void 0:Ro.value[yt()])?null==ua||null===(Ho=ua.reviewLayout)||void 0===Ho||null===(Ho=Ho.body[0].styles)||void 0===Ho||null===(Ho=Ho.reviewPageSubmitTextSize)||void 0===Ho?void 0:Ho.value[yt()]:0!=(null==aa||null===(jo=aa.Button)||void 0===jo||null===(jo=jo.size)||void 0===jo?void 0:jo.value[yt()])?null==aa||null===(No=aa.Button)||void 0===No||null===(No=No.size)||void 0===No?void 0:No.value[yt()]:null==da||null===(Vo=da.reviewPageSubmitTextSize)||void 0===Vo?void 0:Vo.value[yt()],fontWeight:""!=(null==ua||null===(Uo=ua.reviewLayout)||void 0===Uo||null===(Uo=Uo.body[0].styles)||void 0===Uo||null===(Uo=Uo.reviewPageSubmitTextWeight)||void 0===Uo?void 0:Uo.value)?null==ua||null===(_o=ua.reviewLayout)||void 0===_o||null===(_o=_o.body[0].styles)||void 0===_o||null===(_o=_o.reviewPageSubmitTextWeight)||void 0===_o?void 0:_o.value:""!=(null==aa||null===(qo=aa.Button)||void 0===qo||null===(qo=qo.fontWeight)||void 0===qo?void 0:qo.value)?null==aa||null===(Go=aa.Button)||void 0===Go||null===(Go=Go.fontWeight)||void 0===Go?void 0:Go.value:null==da||null===(Qo=da.reviewPageSubmitTextWeight)||void 0===Qo?void 0:Qo.value,fontFamily:""!=(null==ua||null===(Yo=ua.reviewLayout)||void 0===Yo||null===(Yo=Yo.body[0].styles)||void 0===Yo||null===(Yo=Yo.reviewPageSubmitTextFont)||void 0===Yo?void 0:Yo.value)?null==ua||null===($o=ua.reviewLayout)||void 0===$o||null===($o=$o.body[0].styles)||void 0===$o||null===($o=$o.reviewPageSubmitTextFont)||void 0===$o?void 0:$o.value:""!=(null==aa||null===(Zo=aa.Button)||void 0===Zo||null===(Zo=Zo.fontFamily)||void 0===Zo?void 0:Zo.value)?null==aa||null===(Ko=aa.Button)||void 0===Ko||null===(Ko=Ko.fontFamily)||void 0===Ko?void 0:Ko.value:null==da||null===(Xo=da.reviewPageSubmitTextFont)||void 0===Xo?void 0:Xo.value,fontStyle:""!==(null==ua||null===(Jo=ua.reviewLayout)||void 0===Jo||null===(Jo=Jo.body[0].styles)||void 0===Jo||null===(Jo=Jo.reviewPageSubmitTextStyle)||void 0===Jo?void 0:Jo.value)?null==ua||null===(et=ua.reviewLayout)||void 0===et||null===(et=et.body[0].styles)||void 0===et||null===(et=et.reviewPageSubmitTextStyle)||void 0===et?void 0:et.value:""!=(null==aa||null===(lt=aa.Button)||void 0===lt||null===(lt=lt.fontStyle)||void 0===lt?void 0:lt.value)?null==aa||null===(ot=aa.Button)||void 0===ot||null===(ot=ot.fontStyle)||void 0===ot?void 0:ot.value:null==da||null===(tt=da.reviewPageSubmitTextStyle)||void 0===tt?void 0:tt.value,backgroundColor:""!==(null==ua||null===(nt=ua.reviewLayout)||void 0===nt||null===(nt=nt.body[0].styles)||void 0===nt||null===(nt=nt.reviewPageSubmitButtonBackgroundColor)||void 0===nt?void 0:nt.value)?null==ua||null===(it=ua.reviewLayout)||void 0===it||null===(it=it.body[0].styles)||void 0===it||null===(it=it.reviewPageSubmitButtonBackgroundColor)||void 0===it?void 0:it.value:""!=(null==aa||null===(ut=aa.Button)||void 0===ut||null===(ut=ut.backgroundColor)||void 0===ut?void 0:ut.value)?null==aa||null===(at=aa.Button)||void 0===at||null===(at=at.backgroundColor)||void 0===at?void 0:at.value:null==da||null===(dt=da.reviewPageSubmitButtonBackgroundColor)||void 0===dt?void 0:dt.value,borderRadius:""!=(null==ua||null===(vt=ua.reviewLayout)||void 0===vt||null===(vt=vt.body[0].styles)||void 0===vt||null===(vt=vt.reviewPageSubmitBorderRadius)||void 0===vt?void 0:vt.value)?"".concat(null==ua||null===(st=ua.reviewLayout)||void 0===st||null===(st=st.body[0].styles)||void 0===st||null===(st=st.reviewPageSubmitBorderRadius)||void 0===st?void 0:st.value,"px"):"".concat(null==da||null===(ct=da.reviewPageSubmitBorderRadius)||void 0===ct?void 0:ct.value,"px")},Sa={color:""!==(null==ua||null===(pt=ua.reviewLayout)||void 0===pt||null===(pt=pt.body[0].styles)||void 0===pt||null===(pt=pt.reviewPageHomeTextColor)||void 0===pt?void 0:pt.value)?"".concat(null==ua||null===(gt=ua.reviewLayout)||void 0===gt||null===(gt=gt.body[0].styles)||void 0===gt||null===(gt=gt.reviewPageHomeTextColor)||void 0===gt?void 0:gt.value):""!=(null==aa||null===(ht=aa.Button)||void 0===ht||null===(ht=ht.color)||void 0===ht?void 0:ht.value)?null==aa||null===(ft=aa.Button)||void 0===ft||null===(ft=ft.color)||void 0===ft?void 0:ft.value:"".concat(null==da||null===(xt=da.reviewPageHomeTextColor)||void 0===xt?void 0:xt.value),fontSize:0!=(null==ua||null===(bt=ua.reviewLayout)||void 0===bt||null===(bt=bt.body[0].styles)||void 0===bt||null===(bt=bt.reviewPageHomeTextSize)||void 0===bt?void 0:bt.value[yt()])?null==ua||null===(Ct=ua.reviewLayout)||void 0===Ct||null===(Ct=Ct.body[0].styles)||void 0===Ct||null===(Ct=Ct.reviewPageHomeTextSize)||void 0===Ct?void 0:Ct.value[yt()]:0!=(null==aa||null===(St=aa.Button)||void 0===St||null===(St=St.size)||void 0===St?void 0:St.value[yt()])?null==aa||null===(Tt=aa.Button)||void 0===Tt||null===(Tt=Tt.size)||void 0===Tt?void 0:Tt.value[yt()]:null==da||null===(wt=da.reviewPageHomeTextSize)||void 0===wt?void 0:wt.value[yt()],fontWeight:""!=(null==ua||null===(kt=ua.reviewLayout)||void 0===kt||null===(kt=kt.body[0].styles)||void 0===kt||null===(kt=kt.reviewPageHomeTextWeight)||void 0===kt?void 0:kt.value)?null==ua||null===(Lt=ua.reviewLayout)||void 0===Lt||null===(Lt=Lt.body[0].styles)||void 0===Lt||null===(Lt=Lt.reviewPageHomeTextWeight)||void 0===Lt?void 0:Lt.value:""!=(null==aa||null===(It=aa.Button)||void 0===It||null===(It=It.fontWeight)||void 0===It?void 0:It.value)?null==aa||null===(Et=aa.Button)||void 0===Et||null===(Et=Et.fontWeight)||void 0===Et?void 0:Et.value:null==da||null===(Pt=da.reviewPageHomeTextWeight)||void 0===Pt?void 0:Pt.value,fontFamily:""!=(null==ua||null===(Mt=ua.reviewLayout)||void 0===Mt||null===(Mt=Mt.body[0].styles)||void 0===Mt||null===(Mt=Mt.reviewPageHomeTextFont)||void 0===Mt?void 0:Mt.value)?null==ua||null===(Dt=ua.reviewLayout)||void 0===Dt||null===(Dt=Dt.body[0].styles)||void 0===Dt||null===(Dt=Dt.reviewPageHomeTextFont)||void 0===Dt?void 0:Dt.value:""!=(null==aa||null===(Ot=aa.Button)||void 0===Ot||null===(Ot=Ot.fontFamily)||void 0===Ot?void 0:Ot.value)?null==aa||null===(Bt=aa.Button)||void 0===Bt||null===(Bt=Bt.fontFamily)||void 0===Bt?void 0:Bt.value:null==da||null===(Ft=da.reviewPageHomeTextFont)||void 0===Ft?void 0:Ft.value,fontStyle:""!==(null==ua||null===(Wt=ua.reviewLayout)||void 0===Wt||null===(Wt=Wt.body[0].styles)||void 0===Wt||null===(Wt=Wt.reviewPageHomeTextStyle)||void 0===Wt?void 0:Wt.value)?null==ua||null===(At=ua.reviewLayout)||void 0===At||null===(At=At.body[0].styles)||void 0===At||null===(At=At.reviewPageHomeTextStyle)||void 0===At?void 0:At.value:""!=(null==aa||null===(zt=aa.Button)||void 0===zt||null===(zt=zt.fontStyle)||void 0===zt?void 0:zt.value)?null==aa||null===(Rt=aa.Button)||void 0===Rt||null===(Rt=Rt.fontStyle)||void 0===Rt?void 0:Rt.value:null==da||null===(Ht=da.reviewPageHomeTextStyle)||void 0===Ht?void 0:Ht.value,backgroundColor:""!==(null==ua||null===(jt=ua.reviewLayout)||void 0===jt||null===(jt=jt.body[0].styles)||void 0===jt||null===(jt=jt.reviewPageHomeButtonBackgroundColor)||void 0===jt?void 0:jt.value)?null==ua||null===(Nt=ua.reviewLayout)||void 0===Nt||null===(Nt=Nt.body[0].styles)||void 0===Nt||null===(Nt=Nt.reviewPageHomeButtonBackgroundColor)||void 0===Nt?void 0:Nt.value:""!=(null==aa||null===(Vt=aa.Button)||void 0===Vt||null===(Vt=Vt.fontStyle)||void 0===Vt?void 0:Vt.value)?null==aa||null===(_t=aa.Button)||void 0===_t||null===(_t=_t.fontStyle)||void 0===_t?void 0:_t.value:null==da||null===(qt=da.reviewPageHomeButtonBackgroundColor)||void 0===qt?void 0:qt.value,borderRadius:""!=(null==ua||null===(Gt=ua.reviewLayout)||void 0===Gt||null===(Gt=Gt.body[0].styles)||void 0===Gt||null===(Gt=Gt.reviewPageHomeBorderRadius)||void 0===Gt?void 0:Gt.value)?"".concat(null==ua||null===(Qt=ua.reviewLayout)||void 0===Qt||null===(Qt=Qt.body[0].styles)||void 0===Qt||null===(Qt=Qt.reviewPageHomeBorderRadius)||void 0===Qt?void 0:Qt.value,"px"):"".concat(null==da||null===(Yt=da.reviewPageHomeBorderRadius)||void 0===Yt?void 0:Yt.value,"px")},Ta={color:""!==(null==ua||null===($t=ua.reviewLayout)||void 0===$t||null===($t=$t.body[0].styles)||void 0===$t||null===($t=$t.reviewPageVenueNameTextColor)||void 0===$t?void 0:$t.value)?"".concat(null==ua||null===(Zt=ua.reviewLayout)||void 0===Zt||null===(Zt=Zt.body[0].styles)||void 0===Zt||null===(Zt=Zt.reviewPageVenueNameTextColor)||void 0===Zt?void 0:Zt.value):""!=(null==aa||null===(Kt=aa.Text)||void 0===Kt||null===(Kt=Kt.color)||void 0===Kt?void 0:Kt.value)?null==aa||null===(Xt=aa.Text)||void 0===Xt||null===(Xt=Xt.color)||void 0===Xt?void 0:Xt.value:"".concat(null==da||null===(Jt=da.reviewPageVenueNameTextColor)||void 0===Jt?void 0:Jt.value),fontSize:0!=(null==ua||null===(en=ua.reviewLayout)||void 0===en||null===(en=en.body[0].styles)||void 0===en||null===(en=en.reviewPageVenueNameTextSize)||void 0===en?void 0:en.value[yt()])?null==ua||null===(ln=ua.reviewLayout)||void 0===ln||null===(ln=ln.body[0].styles)||void 0===ln||null===(ln=ln.reviewPageVenueNameTextSize)||void 0===ln?void 0:ln.value[yt()]:0!=(null==aa||null===(on=aa.Text)||void 0===on||null===(on=on.size)||void 0===on?void 0:on.value[yt()])?null==aa||null===(tn=aa.Text)||void 0===tn||null===(tn=tn.size)||void 0===tn?void 0:tn.value[yt()]:null==da||null===(nn=da.reviewPageVenueNameTextSize)||void 0===nn?void 0:nn.value[yt()],fontWeight:""!=(null==ua||null===(rn=ua.reviewLayout)||void 0===rn||null===(rn=rn.body[0].styles)||void 0===rn||null===(rn=rn.reviewPageVenueNameTextWeight)||void 0===rn?void 0:rn.value)?null==ua||null===(un=ua.reviewLayout)||void 0===un||null===(un=un.body[0].styles)||void 0===un||null===(un=un.reviewPageVenueNameTextWeight)||void 0===un?void 0:un.value:""!=(null==aa||null===(an=aa.Text)||void 0===an||null===(an=an.fontWeight)||void 0===an?void 0:an.value)?null==aa||null===(dn=aa.Text)||void 0===dn||null===(dn=dn.fontWeight)||void 0===dn?void 0:dn.value:null==da||null===(vn=da.reviewPageVenueNameTextWeight)||void 0===vn?void 0:vn.value,fontFamily:""!=(null==ua||null===(sn=ua.reviewLayout)||void 0===sn||null===(sn=sn.body[0].styles)||void 0===sn||null===(sn=sn.reviewPageVenueNameTextFont)||void 0===sn?void 0:sn.value)?null==ua||null===(cn=ua.reviewLayout)||void 0===cn||null===(cn=cn.body[0].styles)||void 0===cn||null===(cn=cn.reviewPageVenueNameTextFont)||void 0===cn?void 0:cn.value:""!=(null==aa||null===(mn=aa.Text)||void 0===mn||null===(mn=mn.fontFamily)||void 0===mn?void 0:mn.value)?null==aa||null===(pn=aa.Text)||void 0===pn||null===(pn=pn.fontFamily)||void 0===pn?void 0:pn.value:null==da||null===(yn=da.reviewPageVenueNameTextFont)||void 0===yn?void 0:yn.value,fontStyle:""!==(null==ua||null===(gn=ua.reviewLayout)||void 0===gn||null===(gn=gn.body[0].styles)||void 0===gn||null===(gn=gn.reviewPageVenueNameTextStyle)||void 0===gn?void 0:gn.value)?null==ua||null===(hn=ua.reviewLayout)||void 0===hn||null===(hn=hn.body[0].styles)||void 0===hn||null===(hn=hn.reviewPageVenueNameTextStyle)||void 0===hn?void 0:hn.value:""!=(null==aa||null===(fn=aa.Text)||void 0===fn||null===(fn=fn.fontStyle)||void 0===fn?void 0:fn.value)?null==aa||null===(xn=aa.Text)||void 0===xn||null===(xn=xn.fontStyle)||void 0===xn?void 0:xn.value:null==da||null===(bn=da.reviewPageVenueNameTextStyle)||void 0===bn?void 0:bn.value},wa={color:""!==(null==ua||null===(Cn=ua.reviewLayout)||void 0===Cn||null===(Cn=Cn.body[0].styles)||void 0===Cn||null===(Cn=Cn.reviewPageItemNameTextColor)||void 0===Cn?void 0:Cn.value)?"".concat(null==ua||null===(Sn=ua.reviewLayout)||void 0===Sn||null===(Sn=Sn.body[0].styles)||void 0===Sn||null===(Sn=Sn.reviewPageItemNameTextColor)||void 0===Sn?void 0:Sn.value):""!=(null==aa||null===(Tn=aa.Text)||void 0===Tn||null===(Tn=Tn.color)||void 0===Tn?void 0:Tn.value)?null==aa||null===(wn=aa.Text)||void 0===wn||null===(wn=wn.color)||void 0===wn?void 0:wn.value:"".concat(null==da||null===(kn=da.reviewPageItemNameTextColor)||void 0===kn?void 0:kn.value),fontSize:0!=(null==ua||null===(Ln=ua.reviewLayout)||void 0===Ln||null===(Ln=Ln.body[0].styles)||void 0===Ln||null===(Ln=Ln.reviewPageItemNameTextSize)||void 0===Ln?void 0:Ln.value[yt()])?null==ua||null===(In=ua.reviewLayout)||void 0===In||null===(In=In.body[0].styles)||void 0===In||null===(In=In.reviewPageItemNameTextSize)||void 0===In?void 0:In.value[yt()]:0!=(null==aa||null===(En=aa.Text)||void 0===En||null===(En=En.size)||void 0===En?void 0:En.value[yt()])?null==aa||null===(Pn=aa.Text)||void 0===Pn||null===(Pn=Pn.size)||void 0===Pn?void 0:Pn.value[yt()]:null==da||null===(Mn=da.reviewPageItemNameTextSize)||void 0===Mn?void 0:Mn.value[yt()],fontWeight:""!=(null==ua||null===(Dn=ua.reviewLayout)||void 0===Dn||null===(Dn=Dn.body[0].styles)||void 0===Dn||null===(Dn=Dn.reviewPageItemNameTextWeight)||void 0===Dn?void 0:Dn.value)?null==ua||null===(On=ua.reviewLayout)||void 0===On||null===(On=On.body[0].styles)||void 0===On||null===(On=On.reviewPageItemNameTextWeight)||void 0===On?void 0:On.value:""!=(null==aa||null===(Bn=aa.Text)||void 0===Bn||null===(Bn=Bn.fontWeight)||void 0===Bn?void 0:Bn.value)?null==aa||null===(Fn=aa.Text)||void 0===Fn||null===(Fn=Fn.fontWeight)||void 0===Fn?void 0:Fn.value:null==da||null===(Wn=da.reviewPageItemNameTextWeight)||void 0===Wn?void 0:Wn.value,fontFamily:""!=(null==ua||null===(An=ua.reviewLayout)||void 0===An||null===(An=An.body[0].styles)||void 0===An||null===(An=An.reviewPageItemNameTextFont)||void 0===An?void 0:An.value)?null==ua||null===(zn=ua.reviewLayout)||void 0===zn||null===(zn=zn.body[0].styles)||void 0===zn||null===(zn=zn.reviewPageItemNameTextFont)||void 0===zn?void 0:zn.value:""!=(null==aa||null===(Rn=aa.Text)||void 0===Rn||null===(Rn=Rn.fontFamily)||void 0===Rn?void 0:Rn.value)?null==aa||null===(Hn=aa.Text)||void 0===Hn||null===(Hn=Hn.fontFamily)||void 0===Hn?void 0:Hn.value:null==da||null===(jn=da.reviewPageItemNameTextFont)||void 0===jn?void 0:jn.value,fontStyle:""!==(null==ua||null===(Nn=ua.reviewLayout)||void 0===Nn||null===(Nn=Nn.body[0].styles)||void 0===Nn||null===(Nn=Nn.reviewPageItemNameTextStyle)||void 0===Nn?void 0:Nn.value)?null==ua||null===(Vn=ua.reviewLayout)||void 0===Vn||null===(Vn=Vn.body[0].styles)||void 0===Vn||null===(Vn=Vn.reviewPageItemNameTextStyle)||void 0===Vn?void 0:Vn.value:""!=(null==aa||null===(Un=aa.Text)||void 0===Un||null===(Un=Un.fontStyle)||void 0===Un?void 0:Un.value)?null==aa||null===(_n=aa.Text)||void 0===_n||null===(_n=_n.fontStyle)||void 0===_n?void 0:_n.value:null==da||null===(qn=da.reviewPageItemNameTextStyle)||void 0===qn?void 0:qn.value},ka={color:""!==(null==ua||null===(Gn=ua.reviewLayout)||void 0===Gn||null===(Gn=Gn.body[0].styles)||void 0===Gn||null===(Gn=Gn.reviewPageItemHeadingsTextColor)||void 0===Gn?void 0:Gn.value)?"".concat(null==ua||null===(Qn=ua.reviewLayout)||void 0===Qn||null===(Qn=Qn.body[0].styles)||void 0===Qn||null===(Qn=Qn.reviewPageItemHeadingsTextColor)||void 0===Qn?void 0:Qn.value):""!=(null==aa||null===(Yn=aa.Text)||void 0===Yn||null===(Yn=Yn.color)||void 0===Yn?void 0:Yn.value)?null==aa||null===($n=aa.Text)||void 0===$n||null===($n=$n.color)||void 0===$n?void 0:$n.value:"".concat(null==da||null===(Zn=da.reviewPageItemHeadingsTextColor)||void 0===Zn?void 0:Zn.value),fontSize:0!=(null==ua||null===(Kn=ua.reviewLayout)||void 0===Kn||null===(Kn=Kn.body[0].styles)||void 0===Kn||null===(Kn=Kn.reviewPageItemHeadingsTextSize)||void 0===Kn?void 0:Kn.value[yt()])?null==ua||null===(Xn=ua.reviewLayout)||void 0===Xn||null===(Xn=Xn.body[0].styles)||void 0===Xn||null===(Xn=Xn.reviewPageItemHeadingsTextSize)||void 0===Xn?void 0:Xn.value[yt()]:0!=(null==aa||null===(Jn=aa.Text)||void 0===Jn||null===(Jn=Jn.size)||void 0===Jn?void 0:Jn.value[yt()])?null==aa||null===(ei=aa.Text)||void 0===ei||null===(ei=ei.size)||void 0===ei?void 0:ei.value[yt()]:null==da||null===(li=da.reviewPageItemHeadingsTextSize)||void 0===li?void 0:li.value[yt()],fontWeight:""!=(null==ua||null===(oi=ua.reviewLayout)||void 0===oi||null===(oi=oi.body[0].styles)||void 0===oi||null===(oi=oi.reviewPageItemHeadingsTextWeight)||void 0===oi?void 0:oi.value)?null==ua||null===(ti=ua.reviewLayout)||void 0===ti||null===(ti=ti.body[0].styles)||void 0===ti||null===(ti=ti.reviewPageItemHeadingsTextWeight)||void 0===ti?void 0:ti.value:""!=(null==aa||null===(ni=aa.Text)||void 0===ni||null===(ni=ni.fontWeight)||void 0===ni?void 0:ni.value)?null==aa||null===(ii=aa.Text)||void 0===ii||null===(ii=ii.fontWeight)||void 0===ii?void 0:ii.value:null==da||null===(ri=da.reviewPageItemHeadingsTextWeight)||void 0===ri?void 0:ri.value,fontFamily:""!=(null==ua||null===(ui=ua.reviewLayout)||void 0===ui||null===(ui=ui.body[0].styles)||void 0===ui||null===(ui=ui.reviewPageItemHeadingsTextFont)||void 0===ui?void 0:ui.value)?null==ua||null===(ai=ua.reviewLayout)||void 0===ai||null===(ai=ai.body[0].styles)||void 0===ai||null===(ai=ai.reviewPageItemHeadingsTextFont)||void 0===ai?void 0:ai.value:""!=(null==aa||null===(di=aa.Text)||void 0===di||null===(di=di.fontFamily)||void 0===di?void 0:di.value)?null==aa||null===(vi=aa.Text)||void 0===vi||null===(vi=vi.fontFamily)||void 0===vi?void 0:vi.value:null==da||null===(si=da.reviewPageItemHeadingsTextFont)||void 0===si?void 0:si.value,fontStyle:""!==(null==ua||null===(ci=ua.reviewLayout)||void 0===ci||null===(ci=ci.body[0].styles)||void 0===ci||null===(ci=ci.reviewPageItemHeadingsTextStyle)||void 0===ci?void 0:ci.value)?null==ua||null===(mi=ua.reviewLayout)||void 0===mi||null===(mi=mi.body[0].styles)||void 0===mi||null===(mi=mi.reviewPageItemHeadingsTextStyle)||void 0===mi?void 0:mi.value:""!=(null==aa||null===(pi=aa.Text)||void 0===pi||null===(pi=pi.fontStyle)||void 0===pi?void 0:pi.value)?null==aa||null===(yi=aa.Text)||void 0===yi||null===(yi=yi.fontStyle)||void 0===yi?void 0:yi.value:null==da||null===(gi=da.reviewPageItemHeadingsTextStyle)||void 0===gi?void 0:gi.value},La={color:""!==(null==ua||null===(hi=ua.reviewLayout)||void 0===hi||null===(hi=hi.body[0].styles)||void 0===hi||null===(hi=hi.reviewPageItemDescriptionTextColor)||void 0===hi?void 0:hi.value)?"".concat(null==ua||null===(fi=ua.reviewLayout)||void 0===fi||null===(fi=fi.body[0].styles)||void 0===fi||null===(fi=fi.reviewPageItemDescriptionTextColor)||void 0===fi?void 0:fi.value):""!=(null==aa||null===(xi=aa.Text)||void 0===xi||null===(xi=xi.color)||void 0===xi?void 0:xi.value)?null==aa||null===(bi=aa.Text)||void 0===bi||null===(bi=bi.color)||void 0===bi?void 0:bi.value:"".concat(null==da||null===(Ci=da.reviewPageItemDescriptionTextColor)||void 0===Ci?void 0:Ci.value),fontSize:0!=(null==ua||null===(Si=ua.reviewLayout)||void 0===Si||null===(Si=Si.body[0].styles)||void 0===Si||null===(Si=Si.reviewPageItemDescriptionTextSize)||void 0===Si?void 0:Si.value[yt()])?null==ua||null===(Ti=ua.reviewLayout)||void 0===Ti||null===(Ti=Ti.body[0].styles)||void 0===Ti||null===(Ti=Ti.reviewPageItemDescriptionTextSize)||void 0===Ti?void 0:Ti.value[yt()]:0!=(null==aa||null===(wi=aa.Text)||void 0===wi||null===(wi=wi.size)||void 0===wi?void 0:wi.value[yt()])?null==aa||null===(ki=aa.Text)||void 0===ki||null===(ki=ki.size)||void 0===ki?void 0:ki.value[yt()]:null==da||null===(Li=da.reviewPageItemDescriptionTextSize)||void 0===Li?void 0:Li.value[yt()],fontWeight:""!=(null==ua||null===(Ii=ua.reviewLayout)||void 0===Ii||null===(Ii=Ii.body[0].styles)||void 0===Ii||null===(Ii=Ii.reviewPageItemDescriptionTextWeight)||void 0===Ii?void 0:Ii.value)?null==ua||null===(Ei=ua.reviewLayout)||void 0===Ei||null===(Ei=Ei.body[0].styles)||void 0===Ei||null===(Ei=Ei.reviewPageItemDescriptionTextWeight)||void 0===Ei?void 0:Ei.value:""!=(null==aa||null===(Pi=aa.Text)||void 0===Pi||null===(Pi=Pi.fontWeight)||void 0===Pi?void 0:Pi.value)?null==aa||null===(Mi=aa.Text)||void 0===Mi||null===(Mi=Mi.fontWeight)||void 0===Mi?void 0:Mi.value:null==da||null===(Di=da.reviewPageItemDescriptionTextWeight)||void 0===Di?void 0:Di.value,fontFamily:""!=(null==ua||null===(Oi=ua.reviewLayout)||void 0===Oi||null===(Oi=Oi.body[0].styles)||void 0===Oi||null===(Oi=Oi.reviewPageItemDescriptionTextFont)||void 0===Oi?void 0:Oi.value)?null==ua||null===(Bi=ua.reviewLayout)||void 0===Bi||null===(Bi=Bi.body[0].styles)||void 0===Bi||null===(Bi=Bi.reviewPageItemDescriptionTextFont)||void 0===Bi?void 0:Bi.value:""!=(null==aa||null===(Fi=aa.Text)||void 0===Fi||null===(Fi=Fi.fontFamily)||void 0===Fi?void 0:Fi.value)?null==aa||null===(Wi=aa.Text)||void 0===Wi||null===(Wi=Wi.fontFamily)||void 0===Wi?void 0:Wi.value:null==da||null===(Ai=da.reviewPageItemDescriptionTextFont)||void 0===Ai?void 0:Ai.value,fontStyle:""!==(null==ua||null===(zi=ua.reviewLayout)||void 0===zi||null===(zi=zi.body[0].styles)||void 0===zi||null===(zi=zi.reviewPageItemDescriptionTextStyle)||void 0===zi?void 0:zi.value)?null==ua||null===(Ri=ua.reviewLayout)||void 0===Ri||null===(Ri=Ri.body[0].styles)||void 0===Ri||null===(Ri=Ri.reviewPageItemDescriptionTextStyle)||void 0===Ri?void 0:Ri.value:""!=(null==aa||null===(Hi=aa.Text)||void 0===Hi||null===(Hi=Hi.fontStyle)||void 0===Hi?void 0:Hi.value)?null==aa||null===(ji=aa.Text)||void 0===ji||null===(ji=ji.fontStyle)||void 0===ji?void 0:ji.value:null==da||null===(Ni=da.reviewPageItemDescriptionTextStyle)||void 0===Ni?void 0:Ni.value},Ia={color:""!==(null==ua||null===(Vi=ua.reviewLayout)||void 0===Vi||null===(Vi=Vi.body[0].styles)||void 0===Vi||null===(Vi=Vi.reviewPageReviewSubmittedTextColor)||void 0===Vi?void 0:Vi.value)?"".concat(null==ua||null===(Ui=ua.reviewLayout)||void 0===Ui||null===(Ui=Ui.body[0].styles)||void 0===Ui||null===(Ui=Ui.reviewPageReviewSubmittedTextColor)||void 0===Ui?void 0:Ui.value):""!=(null==aa||null===(_i=aa.Text)||void 0===_i||null===(_i=_i.color)||void 0===_i?void 0:_i.value)?null==aa||null===(qi=aa.Text)||void 0===qi||null===(qi=qi.color)||void 0===qi?void 0:qi.value:"".concat(null==da||null===(Gi=da.reviewPageReviewSubmittedTextColor)||void 0===Gi?void 0:Gi.value),fontSize:0!=(null==ua||null===(Qi=ua.reviewLayout)||void 0===Qi||null===(Qi=Qi.body[0].styles)||void 0===Qi||null===(Qi=Qi.reviewPageReviewSubmittedTextSize)||void 0===Qi?void 0:Qi.value[yt()])?null==ua||null===(Yi=ua.reviewLayout)||void 0===Yi||null===(Yi=Yi.body[0].styles)||void 0===Yi||null===(Yi=Yi.reviewPageReviewSubmittedTextSize)||void 0===Yi?void 0:Yi.value[yt()]:0!=(null==aa||null===($i=aa.Text)||void 0===$i||null===($i=$i.size)||void 0===$i?void 0:$i.value[yt()])?null==aa||null===(Zi=aa.Text)||void 0===Zi||null===(Zi=Zi.size)||void 0===Zi?void 0:Zi.value[yt()]:null==da||null===(Ki=da.reviewPageReviewSubmittedTextSize)||void 0===Ki?void 0:Ki.value[yt()],fontWeight:""!=(null==ua||null===(Xi=ua.reviewLayout)||void 0===Xi||null===(Xi=Xi.body[0].styles)||void 0===Xi||null===(Xi=Xi.reviewPageReviewSubmittedTextWeight)||void 0===Xi?void 0:Xi.value)?null==ua||null===(Ji=ua.reviewLayout)||void 0===Ji||null===(Ji=Ji.body[0].styles)||void 0===Ji||null===(Ji=Ji.reviewPageReviewSubmittedTextWeight)||void 0===Ji?void 0:Ji.value:""!=(null==aa||null===(er=aa.Text)||void 0===er||null===(er=er.fontWeight)||void 0===er?void 0:er.value)?null==aa||null===(lr=aa.Text)||void 0===lr||null===(lr=lr.fontWeight)||void 0===lr?void 0:lr.value:null==da||null===(or=da.reviewPageReviewSubmittedTextWeight)||void 0===or?void 0:or.value,fontFamily:""!=(null==ua||null===(tr=ua.reviewLayout)||void 0===tr||null===(tr=tr.body[0].styles)||void 0===tr||null===(tr=tr.reviewPageReviewSubmittedTextFont)||void 0===tr?void 0:tr.value)?null==ua||null===(nr=ua.reviewLayout)||void 0===nr||null===(nr=nr.body[0].styles)||void 0===nr||null===(nr=nr.reviewPageReviewSubmittedTextFont)||void 0===nr?void 0:nr.value:""!=(null==aa||null===(ir=aa.Text)||void 0===ir||null===(ir=ir.fontFamily)||void 0===ir?void 0:ir.value)?null==aa||null===(rr=aa.Text)||void 0===rr||null===(rr=rr.fontFamily)||void 0===rr?void 0:rr.value:null==da||null===(ur=da.reviewPageReviewSubmittedTextFont)||void 0===ur?void 0:ur.value,fontStyle:""!==(null==ua||null===(ar=ua.reviewLayout)||void 0===ar||null===(ar=ar.body[0].styles)||void 0===ar||null===(ar=ar.reviewPageReviewSubmittedTextStyle)||void 0===ar?void 0:ar.value)?null==ua||null===(dr=ua.reviewLayout)||void 0===dr||null===(dr=dr.body[0].styles)||void 0===dr||null===(dr=dr.reviewPageReviewSubmittedTextStyle)||void 0===dr?void 0:dr.value:""!=(null==aa||null===(vr=aa.Text)||void 0===vr||null===(vr=vr.fontStyle)||void 0===vr?void 0:vr.value)?null==aa||null===(sr=aa.Text)||void 0===sr||null===(sr=sr.fontStyle)||void 0===sr?void 0:sr.value:null==da||null===(cr=da.reviewPageReviewSubmittedTextStyle)||void 0===cr?void 0:cr.value},Ea={color:""!==(null==ua||null===(mr=ua.reviewLayout)||void 0===mr||null===(mr=mr.body[0].styles)||void 0===mr||null===(mr=mr.reviewPageNotesTextColor)||void 0===mr?void 0:mr.value)?"".concat(null==ua||null===(pr=ua.reviewLayout)||void 0===pr||null===(pr=pr.body[0].styles)||void 0===pr||null===(pr=pr.reviewPageNotesTextColor)||void 0===pr?void 0:pr.value):""!=(null==aa||null===(yr=aa.Text)||void 0===yr||null===(yr=yr.color)||void 0===yr?void 0:yr.value)?null==aa||null===(gr=aa.Text)||void 0===gr||null===(gr=gr.color)||void 0===gr?void 0:gr.value:"".concat(null==da||null===(hr=da.reviewPageNotesTextColor)||void 0===hr?void 0:hr.value),fontSize:0!=(null==ua||null===(fr=ua.reviewLayout)||void 0===fr||null===(fr=fr.body[0].styles)||void 0===fr||null===(fr=fr.reviewPageNotesTextSize)||void 0===fr?void 0:fr.value[yt()])?null==ua||null===(xr=ua.reviewLayout)||void 0===xr||null===(xr=xr.body[0].styles)||void 0===xr||null===(xr=xr.reviewPageNotesTextSize)||void 0===xr?void 0:xr.value[yt()]:0!=(null==aa||null===(br=aa.Text)||void 0===br||null===(br=br.size)||void 0===br?void 0:br.value[yt()])?null==aa||null===(Cr=aa.Text)||void 0===Cr||null===(Cr=Cr.size)||void 0===Cr?void 0:Cr.value[yt()]:null==da||null===(Sr=da.reviewPageNotesTextSize)||void 0===Sr?void 0:Sr.value[yt()],fontWeight:""!=(null==ua||null===(Tr=ua.reviewLayout)||void 0===Tr||null===(Tr=Tr.body[0].styles)||void 0===Tr||null===(Tr=Tr.reviewPageNotesTextWeight)||void 0===Tr?void 0:Tr.value)?null==ua||null===(wr=ua.reviewLayout)||void 0===wr||null===(wr=wr.body[0].styles)||void 0===wr||null===(wr=wr.reviewPageNotesTextWeight)||void 0===wr?void 0:wr.value:""!=(null==aa||null===(kr=aa.Text)||void 0===kr||null===(kr=kr.fontWeight)||void 0===kr?void 0:kr.value)?null==aa||null===(Lr=aa.Text)||void 0===Lr||null===(Lr=Lr.fontWeight)||void 0===Lr?void 0:Lr.value:null==da||null===(Ir=da.reviewPageNotesTextWeight)||void 0===Ir?void 0:Ir.value,fontFamily:""!=(null==ua||null===(Er=ua.reviewLayout)||void 0===Er||null===(Er=Er.body[0].styles)||void 0===Er||null===(Er=Er.reviewPageNotesTextFont)||void 0===Er?void 0:Er.value)?null==ua||null===(Pr=ua.reviewLayout)||void 0===Pr||null===(Pr=Pr.body[0].styles)||void 0===Pr||null===(Pr=Pr.reviewPageNotesTextFont)||void 0===Pr?void 0:Pr.value:""!=(null==aa||null===(Mr=aa.Text)||void 0===Mr||null===(Mr=Mr.fontFamily)||void 0===Mr?void 0:Mr.value)?null==aa||null===(Dr=aa.Text)||void 0===Dr||null===(Dr=Dr.fontFamily)||void 0===Dr?void 0:Dr.value:null==da||null===(Or=da.reviewPageNotesTextFont)||void 0===Or?void 0:Or.value,fontStyle:""!==(null==ua||null===(Br=ua.reviewLayout)||void 0===Br||null===(Br=Br.body[0].styles)||void 0===Br||null===(Br=Br.reviewPageNotesTextStyle)||void 0===Br?void 0:Br.value)?null==ua||null===(Fr=ua.reviewLayout)||void 0===Fr||null===(Fr=Fr.body[0].styles)||void 0===Fr||null===(Fr=Fr.reviewPageNotesTextStyle)||void 0===Fr?void 0:Fr.value:""!=(null==aa||null===(Wr=aa.Text)||void 0===Wr||null===(Wr=Wr.fontStyle)||void 0===Wr?void 0:Wr.value)?null==aa||null===(Ar=aa.Text)||void 0===Ar||null===(Ar=Ar.fontStyle)||void 0===Ar?void 0:Ar.value:null==da||null===(zr=da.reviewPageNotesTextStyle)||void 0===zr?void 0:zr.value};""!=(null==ua||null===(Rr=ua.reviewLayout)||void 0===Rr||null===(Rr=Rr.body[0].styles)||void 0===Rr||null===(Rr=Rr.reviewPageImageHeightWidth)||void 0===Rr?void 0:Rr.value)?null==ua||null===(Hr=ua.reviewLayout)||void 0===Hr||null===(Hr=Hr.body[0].styles)||void 0===Hr||null===(Hr=Hr.reviewPageImageHeightWidth)||void 0===Hr||Hr.value:null==da||null===(jr=da.reviewPageImageHeightWidth)||void 0===jr||jr.value,""!=(null==ua||null===(Nr=ua.reviewLayout)||void 0===Nr||null===(Nr=Nr.body[0].styles)||void 0===Nr||null===(Nr=Nr.reviewPageImageHeightWidth)||void 0===Nr?void 0:Nr.value)?null==ua||null===(Vr=ua.reviewLayout)||void 0===Vr||null===(Vr=Vr.body[0].styles)||void 0===Vr||null===(Vr=Vr.reviewPageImageHeightWidth)||void 0===Vr||Vr.value:null==da||null===(Ur=da.reviewPageImageHeightWidth)||void 0===Ur||Ur.value,null!=ua&&null!==(_r=ua.reviewLayout)&&void 0!==_r&&null!==(_r=_r.body[0].styles)&&void 0!==_r&&null!==(_r=_r.reviewPageImageBackgroundColor)&&void 0!==_r&&_r.value?null==ua||null===(qr=ua.reviewLayout)||void 0===qr||null===(qr=qr.body[0].styles)||void 0===qr||null===(qr=qr.reviewPageImageBackgroundColor)||void 0===qr||qr.value:null==da||null===(Gr=da.reviewPageImageBackgroundColor)||void 0===Gr||Gr.value,""!=(null==ua||null===(Qr=ua.reviewLayout)||void 0===Qr||null===(Qr=Qr.body[0].styles)||void 0===Qr||null===(Qr=Qr.reviewPageImageBorderRadius)||void 0===Qr?void 0:Qr.value)?"".concat(null==ua||null===(Yr=ua.reviewLayout)||void 0===Yr||null===(Yr=Yr.body[0].styles)||void 0===Yr||null===(Yr=Yr.reviewPageImageBorderRadius)||void 0===Yr?void 0:Yr.value,"px"):"".concat(null==da||null===($r=da.reviewPageImageBorderRadius)||void 0===$r?void 0:$r.value,"px");var Pa=kl(o({ambiance:0,waitTime:0,foodQuality:0,service:0,overAllExperience:0,valueForMoney:0}),2),Ma=Pa[0],Da=Pa[1],Oa=Xe().enqueueSnackbar,Ba=kl(o([]),2);Ba[0],Ba[1];var Fa=kl(o(""),2);Fa[0],Fa[1];var Wa=kl(o(!1),2),Aa=Wa[0],za=Wa[1],Ra=kl(o({}),2),Ha=Ra[0],ja=Ra[1],Na=kl(o(""),2),Va=Na[0],Ua=Na[1],_a=kl(o(va.orderData),2),qa=_a[0],Ga=_a[1],Qa=kl(o(va.reviewAlreadyExists),2),Ya=Qa[0],$a=Qa[1],Za=function(){var e,l="".concat(window.location.protocol,"//").concat(window.location.hostname).concat(window.location.port?":"+window.location.port:"");["http://localhost:3031","http://stores.dev.egora.pk","http://stores.stg.egora.pk","http://stores.test.egora.pk","http://stores.egora.pk"].includes(l)?ma.navigateToHome("".concat(l,"/?").concat(null==va||null===(e=va.orderData)||void 0===e||null===(e=e.venueId)||void 0===e?void 0:e.franchiseId)):ma.navigateToHome("".concat(l))};t(function(){Ga(va.orderData),$a(va.reviewAlreadyExists)},[va]);var Ka={ambiance:" Ambiance",waitTime:"Wait time",foodQuality:"Food quality",service:"Service",overAllExperience:"Overall experience",valueForMoney:"Value for money"},Xa=function(){var e=gl(Tl().m(function e(){var l,o,t,n,i,r,u,a,d;return Tl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(o=null==qa?void 0:qa.id,t=null==qa||null===(l=qa.venueId)||void 0===l?void 0:l.id,n=null==qa?void 0:qa.levelId,i={overallOrderRating:Ma,orderId:o,venueId:t,levelId:n},Aa&&(r=Object.keys(Ha).map(function(e){return{id:e,itemRating:Ha[e]}}),i.itemsRating=r),""!==Va.trim()&&(i.comments=Va),!Aa){e.n=1;break}if(u=qa.items.every(function(e){return Ha[e.id]>0}),u){e.n=1;break}return Oa("Please rate all items before submitting.",{variant:"warning"}),e.a(2);case 1:return e.p=1,e.n=2,Ze.post("".concat(process.env.NEXT_PUBLIC_BACKEND_URL,"/review"),i,{headers:{"Content-Type":"application/json"}});case 2:200===(a=e.v).status||201===a.status?(console.log("Review submitted successfully:",a.data),Oa("Review Submitted successfully!"),Za()):(console.error("Failed to submit review:",a.data),Oa("Failed to submit review. Please try again later.")),e.n=4;break;case 3:e.p=3,(d=e.v).response&&404===d.response.status?Oa("Review for this order already submitted."):(console.error("Error submitting review:",d),Oa("Failed to submit review. Please try again later."));case 4:return e.p=4,e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}(),Ja=function(l){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Ll(Array(5)).map(function(n,i){var r,u,a,d,v=o?Ha[t]>i:Ma[l]>i;return e.createElement(mp,{key:i,onClick:function(){o?function(e,l){ja(function(o){return Cl(Cl({},o),{},hl({},e,o[e]===l?0:l))})}(t,i+1):function(e,l){Da(function(o){return Cl(Cl({},o),{},hl({},e,o[e]===l?0:l))})}(l,i+1)},sx:{cursor:"pointer",color:v?(null==ua||null===(r=ua.reviewLayout)||void 0===r||null===(r=r.body[0].styles)||void 0===r||null===(r=r.starSelectedColor)||void 0===r?void 0:r.value)||(null==da||null===(u=da.starSelectedColor)||void 0===u?void 0:u.value):(null==ua||null===(a=ua.reviewLayout)||void 0===a||null===(a=a.body[0].styles)||void 0===a||null===(a=a.starUnselectedColor)||void 0===a?void 0:a.value)||(null==da||null===(d=da.starUnselectedColor)||void 0===d?void 0:d.value),fontSize:{xs:"20px",sm:"30px",md:"30px"},margin:"0 2px"}})})},ed=["waitTime","foodQuality","service","overAllExperience","valueForMoney"],ld=ed.every(function(e){return Ma[e]>0});return e.createElement(Ke,{maxWidth:"sm",sx:{padding:3,mt:16,backgroundColor:(null==ua||null===(Zr=ua.reviewLayout)||void 0===Zr||null===(Zr=Zr.body[0].styles)||void 0===Zr||null===(Zr=Zr.reviewPageBackgroundColor)||void 0===Zr?void 0:Zr.value)||(null==da||null===(Kr=da.reviewPageBackgroundColor)||void 0===Kr?void 0:Kr.value)}},Ya?e.createElement(g,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}},e.createElement(x,{variant:"subtitle1",sx:Cl({mt:16,mb:2,textAlign:"center"},Ia)},"You have already submitted the review for this order."),e.createElement(Ie,{fullWidth:!0,onClick:function(){ca||Za()},size:"large",type:"submit",variant:"contained",sx:Cl(Cl({mt:3},Sa),{},{"&:hover":{backgroundColor:""!==(null==ua||null===(Xr=ua.reviewLayout)||void 0===Xr||null===(Xr=Xr.body[0].styles)||void 0===Xr||null===(Xr=Xr.reviewPageHomeButtonBackgroundColor)||void 0===Xr?void 0:Xr.value)?null==ua||null===(Jr=ua.reviewLayout)||void 0===Jr||null===(Jr=Jr.body[0].styles)||void 0===Jr||null===(Jr=Jr.reviewPageHomeButtonBackgroundColor)||void 0===Jr?void 0:Jr.value:""!=(null==aa||null===(eu=aa.Button)||void 0===eu||null===(eu=eu.backgroundColor)||void 0===eu?void 0:eu.value)?null==aa||null===(lu=aa.Button)||void 0===lu||null===(lu=lu.backgroundColor)||void 0===lu?void 0:lu.value:null==da||null===(ou=da.reviewPageHomeButtonBackgroundColor)||void 0===ou?void 0:ou.value,color:""!==(null==ua||null===(tu=ua.reviewLayout)||void 0===tu||null===(tu=tu.body[0].styles)||void 0===tu||null===(tu=tu.reviewPageHomeTextColor)||void 0===tu?void 0:tu.value)?"".concat(null==ua||null===(nu=ua.reviewLayout)||void 0===nu||null===(nu=nu.body[0].styles)||void 0===nu||null===(nu=nu.reviewPageHomeTextColor)||void 0===nu?void 0:nu.value):""!=(null==aa||null===(iu=aa.Button)||void 0===iu||null===(iu=iu.color)||void 0===iu?void 0:iu.value)?null==aa||null===(ru=aa.Button)||void 0===ru||null===(ru=ru.color)||void 0===ru?void 0:ru.value:"".concat(null==da||null===(uu=da.reviewPageHomeTextColor)||void 0===uu?void 0:uu.value)}})},"Go to Home")):e.createElement(e.Fragment,null,e.createElement(x,{gutterBottom:!0,sx:Cl({textAlign:"center",mb:4},pa)},"Review your Order"),e.createElement(e.Fragment,null,e.createElement(g,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:2}},e.createElement(Ut,{src:null!=va&&null!==(au=va.orderData)&&void 0!==au&&null!==(au=au.venueId)&&void 0!==au&&au.photoURL?rt(null==va||null===(du=va.orderData)||void 0===du||null===(du=du.venueId)||void 0===du?void 0:du.photoURL):"/assets/placeholder.png",alt:"Venue Image",height:0!=(null==ua||null===(vu=ua.reviewLayout)||void 0===vu||null===(vu=vu.body[0].styles)||void 0===vu||null===(vu=vu.reviewPageVenueImageHeightWidth)||void 0===vu?void 0:vu.value)?null==ua||null===(su=ua.reviewLayout)||void 0===su||null===(su=su.body[0].styles)||void 0===su||null===(su=su.reviewPageVenueImageHeightWidth)||void 0===su?void 0:su.value:null==da||null===(cu=da.reviewPageVenueImageHeightWidth)||void 0===cu?void 0:cu.value,width:0!=(null==ua||null===(mu=ua.reviewLayout)||void 0===mu||null===(mu=mu.body[0].styles)||void 0===mu||null===(mu=mu.reviewPageVenueImageHeightWidth)||void 0===mu?void 0:mu.value)?null==ua||null===(pu=ua.reviewLayout)||void 0===pu||null===(pu=pu.body[0].styles)||void 0===pu||null===(pu=pu.reviewPageVenueImageHeightWidth)||void 0===pu?void 0:pu.value:null==da||null===(yu=da.reviewPageVenueImageHeightWidth)||void 0===yu?void 0:yu.value,backgroundColor:null!=ua&&null!==(gu=ua.reviewLayout)&&void 0!==gu&&null!==(gu=gu.body[0].styles)&&void 0!==gu&&null!==(gu=gu.reviewPageVenueImageBackgroundColor)&&void 0!==gu&&gu.value?null==ua||null===(hu=ua.reviewLayout)||void 0===hu||null===(hu=hu.body[0].styles)||void 0===hu||null===(hu=hu.reviewPageVenueImageBackgroundColor)||void 0===hu?void 0:hu.value:null==da||null===(fu=da.reviewPageVenueImageBackgroundColor)||void 0===fu?void 0:fu.value,borderRadius:0!=(null==ua||null===(xu=ua.reviewLayout)||void 0===xu||null===(xu=xu.body[0].styles)||void 0===xu||null===(xu=xu.reviewPageVenueImageBorderRadius)||void 0===xu?void 0:xu.value)?"".concat(null==ua||null===(bu=ua.reviewLayout)||void 0===bu||null===(bu=bu.body[0].styles)||void 0===bu||null===(bu=bu.reviewPageVenueImageBorderRadius)||void 0===bu?void 0:bu.value,"px"):"".concat(null==da||null===(Cu=da.reviewPageVenueImageBorderRadius)||void 0===Cu?void 0:Cu.value,"px")}),e.createElement(g,null,e.createElement(x,{sx:Cl({},Ta)},null==qa||null===(Su=qa.venueId)||void 0===Su?void 0:Su.name),e.createElement(x,{sx:Cl({},ha)},"Order # ",null==qa?void 0:qa.billNumber),e.createElement(x,{sx:Cl({},fa)},"Total: Rs.",mt(null==qa?void 0:qa.total)))),e.createElement(S,{sx:{marginY:2}}),e.createElement(g,null,ed.map(function(l){return e.createElement(g,{key:l,mb:2,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"10px"}},e.createElement(x,{sx:Cl({},ya)},Ka[l]),e.createElement(g,null,Ja(l)))}),e.createElement(S,null),e.createElement(g,{mb:2,mt:2,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"10px"}},e.createElement(x,{sx:Cl({},ga)},"Want to review each item"),e.createElement(te,{checked:Aa,onChange:function(){return za(!Aa)},sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:""!=(null==ua||null===(Tu=ua.reviewLayout)||void 0===Tu||null===(Tu=Tu.body[0].styles)||void 0===Tu||null===(Tu=Tu.reviewEachItemToggleColor)||void 0===Tu?void 0:Tu.value)?null==ua||null===(wu=ua.reviewLayout)||void 0===wu||null===(wu=wu.body[0].styles)||void 0===wu||null===(wu=wu.reviewEachItemToggleColor)||void 0===wu?void 0:wu.value:null==da||null===(ku=da.reviewEachItemToggleColor)||void 0===ku?void 0:ku.value,"& + .MuiSwitch-track":{backgroundColor:""!=(null==ua||null===(Lu=ua.reviewLayout)||void 0===Lu||null===(Lu=Lu.body[0].styles)||void 0===Lu||null===(Lu=Lu.reviewEachItemToggleColor)||void 0===Lu?void 0:Lu.value)?null==ua||null===(Iu=ua.reviewLayout)||void 0===Iu||null===(Iu=Iu.body[0].styles)||void 0===Iu||null===(Iu=Iu.reviewEachItemToggleColor)||void 0===Iu?void 0:Iu.value:null==da||null===(Eu=da.reviewEachItemToggleColor)||void 0===Eu?void 0:Eu.value}}}})),Aa&&e.createElement(g,null,null==qa||null===(Pu=qa.items)||void 0===Pu?void 0:Pu.map(function(l,o){var t,n,i,r,u,a,d,v,s,c,m,p,y,h,f,b,C;return e.createElement(g,{key:o,sx:{display:"flex",justifyContent:"space-between","@media (max-width: 600px)":{flexDirection:"column",alignItems:"flex-start"},alignItems:"center",gap:"10px",mb:1}},e.createElement(g,{sx:{display:"flex",alignItems:"center",gap:2}},e.createElement(Ut,{src:null!=l&&l.photoURL?rt(l.photoURL):"/assets/placeholder.png",alt:"Item Image",height:0!=(null==ua||null===(t=ua.reviewLayout)||void 0===t||null===(t=t.body[0].styles)||void 0===t||null===(t=t.reviewPageItemImageHeightWidth)||void 0===t?void 0:t.value)?null==ua||null===(n=ua.reviewLayout)||void 0===n||null===(n=n.body[0].styles)||void 0===n||null===(n=n.reviewPageItemImageHeightWidth)||void 0===n?void 0:n.value:null==da||null===(i=da.reviewPageItemImageHeightWidth)||void 0===i?void 0:i.value,width:0!=(null==ua||null===(r=ua.reviewLayout)||void 0===r||null===(r=r.body[0].styles)||void 0===r||null===(r=r.reviewPageItemImageHeightWidth)||void 0===r?void 0:r.value)?null==ua||null===(u=ua.reviewLayout)||void 0===u||null===(u=u.body[0].styles)||void 0===u||null===(u=u.reviewPageItemImageHeightWidth)||void 0===u?void 0:u.value:null==da||null===(a=da.reviewPageItemImageHeightWidth)||void 0===a?void 0:a.value,backgroundColor:null!=ua&&null!==(d=ua.reviewLayout)&&void 0!==d&&null!==(d=d.body[0].styles)&&void 0!==d&&null!==(d=d.reviewPageItemImageBackgroundColor)&&void 0!==d&&d.value?null==ua||null===(v=ua.reviewLayout)||void 0===v||null===(v=v.body[0].styles)||void 0===v||null===(v=v.reviewPageItemImageBackgroundColor)||void 0===v?void 0:v.value:null==da||null===(s=da.reviewPageItemImageBackgroundColor)||void 0===s?void 0:s.value,borderRadius:0!=(null==ua||null===(c=ua.reviewLayout)||void 0===c||null===(c=c.body[0].styles)||void 0===c||null===(c=c.reviewPageItemImageBorderRadius)||void 0===c?void 0:c.value)?"".concat(null==ua||null===(m=ua.reviewLayout)||void 0===m||null===(m=m.body[0].styles)||void 0===m||null===(m=m.reviewPageItemImageBorderRadius)||void 0===m?void 0:m.value,"px"):"".concat(null==da||null===(p=da.reviewPageItemImageBorderRadius)||void 0===p?void 0:p.value,"px")}),e.createElement(g,null,e.createElement(x,{sx:Cl({},wa)},null==l?void 0:l.qty," X",null==(b=null==l?void 0:l.name)||null===(C=b.split(/([^\w]+)/g))||void 0===C?void 0:C.map(function(e){return/^[a-zA-Z]/.test(e)?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e}).join("")),(null==l?void 0:l.groups)&&(null==l||null===(y=l.groups)||void 0===y?void 0:y.length)>0&&e.createElement(e.Fragment,null,(null==l?void 0:l.selectedVariant)&&e.createElement(g,{sx:{display:"flex",alignItems:"center"}},e.createElement(x,{sx:Cl({},xa)},"Variant:"),e.createElement(x,{sx:Cl({},ba)},null==l||null===(h=l.selectedVariant)||void 0===h?void 0:h.name)),e.createElement(e.Fragment,null,null==l||null===(f=l.groups)||void 0===f?void 0:f.map(function(l){var t;return e.createElement(x,{key:o,variant:"caption",sx:Cl({display:"flex",gap:"2px"},ka)},null==l?void 0:l.name," :",e.createElement(x,{variant:"caption",sx:Cl({display:"flex",marginLeft:"5px",gap:"2px"},La)},null==l||null===(t=l.items)||void 0===t?void 0:t.map(function(o,t){return e.createElement("span",{key:t},null==o?void 0:o.item,t!==l.items.length-1&&", ")})))}))),e.createElement(x,{sx:Cl({},Ea)},null==l?void 0:l.notes),e.createElement(g,{sx:{display:{xs:"block",sm:"none"},mt:1,ml:-.5}},e.createElement(g,null,Ja(l.id,!0,l.id))))),e.createElement(g,{sx:{display:{xs:"none",sm:"block"}}},e.createElement(g,null,Ja(l.id,!0,l.id))))})),e.createElement(P,{label:"Add a comment",variant:"outlined",fullWidth:!0,multiline:!0,rows:2,value:Va,onChange:function(e){return Ua(e.target.value)},sx:{mb:2,mt:4,backgroundColor:(null==ua||null===(Mu=ua.reviewLayout)||void 0===Mu||null===(Mu=Mu.body[0].styles)||void 0===Mu||null===(Mu=Mu.reviewPageBackgroundColor)||void 0===Mu?void 0:Mu.value)||(null==da||null===(Du=da.reviewPageBackgroundColor)||void 0===Du?void 0:Du.value),"& .MuiInputBase-input":{color:""!==(null==ua||null===(Ou=ua.reviewLayout)||void 0===Ou||null===(Ou=Ou.body[0].styles)||void 0===Ou||null===(Ou=Ou.reviewPageAddCommentTextColor)||void 0===Ou?void 0:Ou.value)?"".concat(null==ua||null===(Bu=ua.reviewLayout)||void 0===Bu||null===(Bu=Bu.body[0].styles)||void 0===Bu||null===(Bu=Bu.reviewPageAddCommentTextColor)||void 0===Bu?void 0:Bu.value):""!=(null==aa||null===(Fu=aa.Text)||void 0===Fu||null===(Fu=Fu.color)||void 0===Fu?void 0:Fu.value)?null==aa||null===(Wu=aa.Text)||void 0===Wu||null===(Wu=Wu.color)||void 0===Wu?void 0:Wu.value:"".concat(null==da||null===(Au=da.reviewPageAddCommentTextColor)||void 0===Au?void 0:Au.value)},"& .MuiInputLabel-root":{color:""!==(null==ua||null===(zu=ua.reviewLayout)||void 0===zu||null===(zu=zu.body[0].styles)||void 0===zu||null===(zu=zu.reviewPageAddCommentLabelTextStyle)||void 0===zu?void 0:zu.value)?"".concat(null==ua||null===(Ru=ua.reviewLayout)||void 0===Ru||null===(Ru=Ru.body[0].styles)||void 0===Ru||null===(Ru=Ru.reviewPageAddCommentLabelTextStyle)||void 0===Ru?void 0:Ru.value):""!=(null==aa||null===(Hu=aa.Text)||void 0===Hu||null===(Hu=Hu.color)||void 0===Hu?void 0:Hu.value)?null==aa||null===(ju=aa.Text)||void 0===ju||null===(ju=ju.color)||void 0===ju?void 0:ju.value:"".concat(null==da||null===(Nu=da.reviewPageAddCommentLabelTextStyle)||void 0===Nu?void 0:Nu.value)},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:""!==(null==ua||null===(Vu=ua.reviewLayout)||void 0===Vu||null===(Vu=Vu.body[0].styles)||void 0===Vu||null===(Vu=Vu.reviewPageAddCommentBorderColor)||void 0===Vu?void 0:Vu.value)?"".concat(null==ua||null===(Uu=ua.reviewLayout)||void 0===Uu||null===(Uu=Uu.body[0].styles)||void 0===Uu||null===(Uu=Uu.reviewPageAddCommentBorderColor)||void 0===Uu?void 0:Uu.value):"".concat(null==da||null===(_u=da.reviewPageAddCommentBorderColor)||void 0===_u?void 0:_u.value)},"&:hover fieldset":{borderColor:""!==(null==ua||null===(qu=ua.reviewLayout)||void 0===qu||null===(qu=qu.body[0].styles)||void 0===qu||null===(qu=qu.reviewPageAddCommentBorderColor)||void 0===qu?void 0:qu.value)?"".concat(null==ua||null===(Gu=ua.reviewLayout)||void 0===Gu||null===(Gu=Gu.body[0].styles)||void 0===Gu||null===(Gu=Gu.reviewPageAddCommentBorderColor)||void 0===Gu?void 0:Gu.value):"".concat(null==da||null===(Qu=da.reviewPageAddCommentBorderColor)||void 0===Qu?void 0:Qu.value)},"&.Mui-focused fieldset":{borderColor:""!==(null==ua||null===(Yu=ua.reviewLayout)||void 0===Yu||null===(Yu=Yu.body[0].styles)||void 0===Yu||null===(Yu=Yu.reviewPageAddCommentBorderColor)||void 0===Yu?void 0:Yu.value)?"".concat(null==ua||null===($u=ua.reviewLayout)||void 0===$u||null===($u=$u.body[0].styles)||void 0===$u||null===($u=$u.reviewPageAddCommentBorderColor)||void 0===$u?void 0:$u.value):"".concat(null==da||null===(Zu=da.reviewPageAddCommentBorderColor)||void 0===Zu?void 0:Zu.value)}}}}),e.createElement(Ie,{onClick:function(){ca||Xa()},color:"primary",variant:"contained",disabled:!(ca||ld&&qa),sx:Cl(Cl({width:"100%",height:"40px"},Ca),{},{"&:hover":{backgroundColor:""!==(null==ua||null===(Ku=ua.reviewLayout)||void 0===Ku||null===(Ku=Ku.body[0].styles)||void 0===Ku||null===(Ku=Ku.reviewPageSubmitButtonBackgroundColor)||void 0===Ku?void 0:Ku.value)?null==ua||null===(Xu=ua.reviewLayout)||void 0===Xu||null===(Xu=Xu.body[0].styles)||void 0===Xu||null===(Xu=Xu.reviewPageSubmitButtonBackgroundColor)||void 0===Xu?void 0:Xu.value:""!=(null==aa||null===(Ju=aa.Button)||void 0===Ju||null===(Ju=Ju.backgroundColor)||void 0===Ju?void 0:Ju.value)?null==aa||null===(ea=aa.Button)||void 0===ea||null===(ea=ea.backgroundColor)||void 0===ea?void 0:ea.value:null==da||null===(la=da.reviewPageSubmitButtonBackgroundColor)||void 0===la?void 0:la.value,color:""!==(null==ua||null===(oa=ua.reviewLayout)||void 0===oa||null===(oa=oa.body[0].styles)||void 0===oa||null===(oa=oa.reviewPageSubmitTextColor)||void 0===oa?void 0:oa.value)?"".concat(null==ua||null===(ta=ua.reviewLayout)||void 0===ta||null===(ta=ta.body[0].styles)||void 0===ta||null===(ta=ta.reviewPageSubmitTextColor)||void 0===ta?void 0:ta.value):""!=(null==aa||null===(na=aa.Button)||void 0===na||null===(na=na.color)||void 0===na?void 0:na.value)?null==aa||null===(ia=aa.Button)||void 0===ia||null===(ia=ia.color)||void 0===ia?void 0:ia.value:"".concat(null==da||null===(ra=da.reviewPageSubmitTextColor)||void 0===ra?void 0:ra.value)}})},"Submit")))))}sp.map(function(e){return{name:e.name,value:e.main}}),Cl(Cl({},{themeMode:"light",themeDirection:"ltr",themeContrast:"default",themeLayout:"vertical",themeColorPresets:"orange",themeStretch:!1}),{},{onToggleMode:function(){},onChangeMode:function(){},onToggleDirection:function(){},onChangeDirection:function(){},onChangeDirectionByLang:function(){},onToggleLayout:function(){},onChangeLayout:function(){},onToggleContrast:function(){},onChangeContrast:function(){},onChangeColorPresets:function(){},presetsColor:cp,presetsOption:[],onToggleStretch:function(){},onResetSetting:function(){}}),Ku.node,Ku.node,Ku.node,Ku.node,Ku.node,Ku.node,Ku.string,Ku.oneOf(["primary","secondary","info","success","warning","error"]);var yp=500,gp=500,hp="cover",fp=0,xp=[0,0,0,0],bp=[0,0,0,0],Cp=500,Sp=500,Tp="#ffffff",wp=16,kp=[0,0,0,0],Lp="#000000",Ip=.65,Ep=40,Pp="#ffffff",Mp="#000000",Dp=50,Op=12,Bp=12,Fp=["",null,void 0],Wp=function(e){return!Fp.includes(e)},Ap=function(e,l){var o=Number(e);return Number.isFinite(o)?o:l},zp=function(e,l){return"".concat(Math.max(0,Ap(e,l)),"px")},Rp=function(e,l){return"".concat(Ap(e,l),"px")},Hp=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];return(Array.isArray(e)&&4===e.length?e:l).map(function(e){return zp(e,0)}).join(" ")};function jp(l){var t,n,i,r,u=l.states,a=l.previewMode,d=void 0!==a&&a,v=l.prop,s=void 0===v?{}:v,c=l.styles,m=void 0===c?{}:c,p=l.themeColors,y=void 0===p?{}:p,g=kl(o(!0),2),h=g[0],f=g[1],x=(null==s||null===(t=s.editable)||void 0===t||null===(t=t.bannerImage)||void 0===t?void 0:t.value)||"",b=(null==s||null===(n=s.editable)||void 0===n||null===(n=n.bannerAltText)||void 0===n?void 0:n.value)||"Promotional banner",C=null===(i=null==s||null===(r=s.editable)||void 0===r||null===(r=r.popupEnabled)||void 0===r?void 0:r.value)||void 0===i||i,S=function(e,l){var o,t,n=null==m||null===(o=m[e])||void 0===o?void 0:o.value;if(Wp(n))return n;var i=null==y||null===(t=y[e])||void 0===t?void 0:t.value;return Wp(i)?i:l},T="boolean"==typeof(null==u?void 0:u.storeBannerPopupOpen),w=!!d||(T?u.storeBannerPopupOpen:h),k={width:zp(S("StoreBannerPopupWidth",Cp),Cp),height:zp(S("StoreBannerPopupHeight",Sp),Sp),maxWidth:d?"calc(100% - 32px)":"calc(100vw - 32px)",maxHeight:d?"calc(100% - 32px)":"calc(100vh - 32px)",backgroundColor:S("StoreBannerPopupBackgroundColor",Tp),borderRadius:zp(S("StoreBannerPopupBorderRadius",wp),wp),padding:Hp(S("StoreBannerPopupPadding",kp),kp)},L={width:zp(S("StoreBannerPopupImageWidth",yp),yp),height:zp(S("StoreBannerPopupImageHeight",gp),gp),maxWidth:"100%",maxHeight:"100%",objectFit:S("StoreBannerPopupImageFit",hp),borderRadius:zp(S("StoreBannerPopupImageBorderRadius",fp),fp),padding:Hp(S("StoreBannerPopupImagePadding",xp),xp),margin:Hp(S("StoreBannerPopupImageMargin",bp),bp)};if(!C||!w||!x&&!d)return null;var I,E=S("StoreBannerPopupOverlayColor",Lp),P=(I=S("StoreBannerPopupOverlayOpacity",Ip),Math.min(1,Math.max(0,Ap(I,Ip)))),M=Ap(S("StoreBannerPopupCloseButtonSize",Ep),Ep),D={position:d?"relative":"fixed",inset:d?void 0:0,width:"100%",minHeight:d?560:void 0,height:d?"min(70vh, 680px)":"100vh",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent",opacity:1,zIndex:d?1:1500,overflow:"hidden",isolation:"isolate"};return e.createElement("div",{role:"dialog","aria-modal":!d||void 0,"aria-label":b,style:D},e.createElement("div",{"aria-hidden":"true",style:{position:"absolute",inset:0,backgroundColor:E,opacity:P,zIndex:0}}),e.createElement("div",{style:Cl(Cl({},k),{},{position:"relative",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",overflow:"auto",boxShadow:"0 24px 80px rgba(0, 0, 0, 0.28)",zIndex:1})},x?e.createElement("img",{src:x,alt:b,style:Cl(Cl({},L),{},{display:"block",boxSizing:"border-box",flexShrink:0})}):e.createElement("div",{style:Cl(Cl({},L),{},{minWidth:220,minHeight:220,display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",border:"2px dashed rgba(0, 0, 0, 0.2)",color:"#666666",textAlign:"center",fontSize:16,lineHeight:1.5})},"Upload a promotional banner image"),e.createElement("button",{type:"button",onClick:function(){d||("function"!=typeof(null==u?void 0:u.setStoreBannerPopupOpen)?f(!1):u.setStoreBannerPopupOpen(!1))},"aria-label":"Close promotional banner",style:{position:"absolute",top:Rp(S("StoreBannerPopupCloseButtonTop",Op),Op),right:Rp(S("StoreBannerPopupCloseButtonRight",Bp),Bp),width:zp(M,Ep),height:zp(M,Ep),display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,border:0,borderRadius:zp(S("StoreBannerPopupCloseButtonBorderRadius",Dp),Dp),color:S("StoreBannerPopupCloseButtonColor",Pp),backgroundColor:S("StoreBannerPopupCloseButtonBackgroundColor",Mp),fontSize:zp(Math.max(18,.65*M),26),fontWeight:400,lineHeight:1,cursor:d?"default":"pointer",zIndex:2}},"×")))}var Np={enabled:!0,showIcon:!0,prefixText:"Flat",discountValue:"15",suffixText:"% Off",textAnimationEnabled:!0,textAnimationType:"fade-up",textAnimationDuration:650,circleAnimationEnabled:!0,circleAnimationType:"float",circleAnimationDuration:1800,showConfetti:!0,gradientStartColor:"#fffbea",gradientEndColor:"#f2eeee",gradientAngle:90,height:112,borderRadius:20,padding:[0,30,0,30],margin:[24,0,24,0],border:"1px solid rgba(17, 24, 39, 0.08)",boxShadow:"0 2px 7px rgba(17, 24, 39, 0.14)",hoverBoxShadow:"0 8px 24px rgba(17, 24, 39, 0.14)",contentGap:14,alignment:"left",iconColor:"#529168",iconSize:30,prefixColor:"#111827",prefixFont:"Arial",prefixSize:[22,26,31,36],prefixWeight:"700",prefixStyle:"normal",discountCircleSize:42,discountCircleBackgroundColor:"#ffc400",discountCircleTextColor:"#111827",discountCircleFont:"Arial",discountCircleTextSize:[22,25,26,28],discountCircleTextWeight:"700",discountCircleShadow:"0 8px 18px rgba(255, 196, 0, 0.28)",suffixColor:"#111827",suffixFont:"Arial",suffixSize:[20,24,28,32],suffixWeight:"700",suffixStyle:"normal"},Vp=function(e){return""!==e&&null!=e},Up=function(e){return!0===e||"true"===e||!1!==e&&"false"!==e&&(arguments.length>1&&void 0!==arguments[1]&&arguments[1])},_p=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=Number(e);return Number.isFinite(o)?o:l},qp=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"".concat(Math.max(0,_p(e,l)),"px")},Gp=function(e,l){return(Array.isArray(e)&&4===e.length?e:l).map(function(e,o){return Math.max(1,_p(e,l[o]))})},Qp={"fade-up":"promotionTextFadeUp","fade-in":"promotionTextFadeIn","slide-left":"promotionTextSlideLeft","slide-right":"promotionTextSlideRight"},Yp={float:"promotionCircleFloat",bounce:"promotionCircleBounce",pulse:"promotionCirclePulse"},$p=[{x:"-28px",y:"-30px",color:"#ff647c",delay:0},{x:"5px",y:"-36px",color:"#6c63ff",delay:180},{x:"30px",y:"-24px",color:"#20b486",delay:340},{x:"34px",y:"18px",color:"#ff8a00",delay:520},{x:"-28px",y:"24px",color:"#3b82f6",delay:700},{x:"-36px",y:"-2px",color:"#ef4444",delay:880}];function Zp(l){var t=l.prop,n=void 0===t?{}:t,i=l.styles,r=void 0===i?{}:i,u=l.themeColors,a=void 0===u?{}:u,d=kl(o(!1),2),v=d[0],s=d[1],c=function(e,l){return function(e,l,o){var t,n=null==e||null===(t=e.editable)||void 0===t||null===(t=t[l])||void 0===t?void 0:t.value;return Vp(n)?n:o}(n,e,l)},m=function(e,l){return function(e,l,o,t){var n,i,r=null==e||null===(n=e[o])||void 0===n?void 0:n.value;if(Vp(r))return r;var u=null==l||null===(i=l[o])||void 0===i?void 0:i.value;return Vp(u)?u:t}(r,a,e,l)},p=Up(c("promotionEnabled",Np.enabled),Np.enabled),y=Up(c("showIcon",Np.showIcon),Np.showIcon),g=c("prefixText",Np.prefixText),h=c("discountValue",Np.discountValue),f=c("suffixText",Np.suffixText),x=Up(c("textAnimationEnabled",Np.textAnimationEnabled),Np.textAnimationEnabled),b=c("textAnimationType",Np.textAnimationType),C=Math.max(0,_p(c("textAnimationDuration",Np.textAnimationDuration),Np.textAnimationDuration)),S=Up(c("circleAnimationEnabled",Np.circleAnimationEnabled),Np.circleAnimationEnabled),T=c("circleAnimationType",Np.circleAnimationType),w=Math.max(300,_p(c("circleAnimationDuration",Np.circleAnimationDuration),Np.circleAnimationDuration)),k=Up(c("showConfetti",Np.showConfetti),Np.showConfetti);if(!p)return null;var L,I,E=m("PromotionBannerMargin",Np.margin),P=Array.isArray(E)&&4===E.length?E:Np.margin,M=Gp(m("PromotionBannerPrefixSize",Np.prefixSize),Np.prefixSize),D=Gp(m("PromotionBannerDiscountTextSize",Np.discountCircleTextSize),Np.discountCircleTextSize),O=Gp(m("PromotionBannerSuffixSize",Np.suffixSize),Np.suffixSize),B=m("PromotionBannerGradientStartColor",Np.gradientStartColor),F=m("PromotionBannerGradientEndColor",Np.gradientEndColor),A=_p(m("PromotionBannerGradientAngle",Np.gradientAngle),Np.gradientAngle),z=m("PromotionBannerAlignment",Np.alignment),R="center"===z?"center":"right"===z?"flex-end":"flex-start",H=Qp[b],j=Yp[T],N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return x&&H?{animation:"".concat(H," ")+"".concat(C,"ms ")+"cubic-bezier(.22, 1, .36, 1) both",animationDelay:"".concat(e,"ms")}:{animation:"none"}};return e.createElement(W,{component:"section","aria-label":"".concat(g," ")+"".concat(h," ")+"".concat(f),sx:{mt:"".concat(_p(P[0],Np.margin[0]),"px"),mb:"".concat(_p(P[2],Np.margin[2]),"px")}},e.createElement("style",null,"\n @keyframes promotionTextFadeUp {\n from {\n opacity: 0;\n transform: translateY(14px);\n }\n\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n\n @keyframes promotionTextFadeIn {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n\n @keyframes promotionTextSlideLeft {\n from {\n opacity: 0;\n transform: translateX(20px);\n }\n\n to {\n opacity: 1;\n transform: translateX(0);\n }\n }\n\n @keyframes promotionTextSlideRight {\n from {\n opacity: 0;\n transform: translateX(-20px);\n }\n\n to {\n opacity: 1;\n transform: translateX(0);\n }\n }\n\n @keyframes promotionCircleFloat {\n 0%,\n 100% {\n transform:\n translateY(0)\n rotate(0deg);\n }\n\n 50% {\n transform:\n translateY(-8px)\n rotate(-2deg);\n }\n }\n\n @keyframes promotionCircleBounce {\n 0%,\n 100% {\n transform:\n translateY(0)\n scale(1);\n }\n\n 45% {\n transform:\n translateY(-10px)\n scale(1.03);\n }\n\n 65% {\n transform:\n translateY(-3px)\n scale(.99);\n }\n }\n\n @keyframes promotionCirclePulse {\n 0%,\n 100% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(1.09);\n }\n }\n\n @keyframes promotionConfettiPop {\n 0%,\n 100% {\n opacity: 0;\n\n transform:\n translate(0, 0)\n rotate(0deg)\n scale(.5);\n }\n\n 18% {\n opacity: 1;\n }\n\n 55% {\n opacity: .95;\n\n transform:\n translate(\n var(--confetti-x),\n var(--confetti-y)\n )\n rotate(160deg)\n scale(1);\n }\n\n 82% {\n opacity: 0;\n\n transform:\n translate(\n var(--confetti-x),\n var(--confetti-y)\n )\n rotate(260deg)\n scale(.75);\n }\n }\n\n .promotion-offer-card {\n width: 100%;\n box-sizing: border-box;\n\n display: flex;\n align-items: center;\n\n overflow: hidden;\n text-decoration: none;\n\n transition:\n transform 220ms ease,\n box-shadow 220ms ease;\n }\n\n .promotion-offer-card:hover {\n transform: translateY(-2px);\n }\n\n .promotion-offer-content {\n display: flex;\n align-items: center;\n\n min-width: 0;\n white-space: nowrap;\n }\n\n .promotion-offer-prefix,\n .promotion-offer-suffix {\n line-height: 1;\n letter-spacing: -.02em;\n will-change:\n transform,\n opacity;\n }\n\n .promotion-offer-circle-wrapper {\n position: relative;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n\n flex-shrink: 0;\n }\n\n .promotion-offer-circle {\n position: relative;\n z-index: 2;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n\n flex-shrink: 0;\n\n line-height: 1;\n\n will-change: transform;\n }\n\n .promotion-offer-confetti {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 1;\n\n width: 6px;\n height: 10px;\n\n margin-left: -3px;\n margin-top: -5px;\n\n border-radius: 3px;\n\n pointer-events: none;\n\n animation-name:\n promotionConfettiPop;\n\n animation-timing-function:\n ease-in-out;\n\n animation-iteration-count:\n infinite;\n\n will-change:\n transform,\n opacity;\n }\n\n .promotion-offer-prefix {\n font-size: ".concat(M[0],"px;\n }\n\n .promotion-offer-circle {\n font-size: ").concat(D[0],"px;\n }\n\n .promotion-offer-suffix {\n font-size: ").concat(O[0],"px;\n }\n\n @media (min-width: 601px) {\n .promotion-offer-prefix {\n font-size: ").concat(M[1],"px;\n }\n\n .promotion-offer-circle {\n font-size: ").concat(D[1],"px;\n }\n\n .promotion-offer-suffix {\n font-size: ").concat(O[1],"px;\n }\n }\n\n @media (min-width: 901px) {\n .promotion-offer-prefix {\n font-size: ").concat(M[2],"px;\n }\n\n .promotion-offer-circle {\n font-size: ").concat(D[2],"px;\n }\n\n .promotion-offer-suffix {\n font-size: ").concat(O[2],"px;\n }\n }\n\n @media (min-width: 1400px) {\n .promotion-offer-prefix {\n font-size: ").concat(M[3],"px;\n }\n\n .promotion-offer-circle {\n font-size: ").concat(D[3],"px;\n }\n\n .promotion-offer-suffix {\n font-size: ").concat(O[3],"px;\n }\n }\n\n @media (max-width: 600px) {\n .promotion-offer-card {\n min-height: 86px !important;\n\n padding-left: 18px !important;\n padding-right: 18px !important;\n }\n\n .promotion-offer-content {\n gap: 9px !important;\n }\n }\n\n @media (max-width: 390px) {\n .promotion-offer-icon {\n display: none !important;\n }\n }\n\n @media (\n prefers-reduced-motion:\n reduce\n ) {\n .promotion-offer-prefix,\n .promotion-offer-suffix,\n .promotion-offer-circle,\n .promotion-offer-confetti {\n animation: none !important;\n }\n }\n ")),e.createElement("div",{className:"promotion-offer-card",onMouseEnter:function(){return s(!0)},onMouseLeave:function(){return s(!1)},style:{minHeight:qp(m("PromotionBannerHeight",Np.height),Np.height),padding:(L=m("PromotionBannerPadding",Np.padding),I=Np.padding,(Array.isArray(L)&&4===L.length?L:I).map(function(e,l){return qp(e,I[l])}).join(" ")),justifyContent:R,background:"linear-gradient("+"".concat(A,"deg, ")+"".concat(B," 0%, ")+"".concat(F," 100%)"),borderRadius:qp(m("PromotionBannerBorderRadius",Np.borderRadius),Np.borderRadius),border:m("PromotionBannerBorder",Np.border),boxShadow:v?m("PromotionBannerHoverBoxShadow",Np.hoverBoxShadow):m("PromotionBannerBoxShadow",Np.boxShadow),cursor:"default"}},e.createElement("div",{className:"promotion-offer-content",style:{gap:qp(m("PromotionBannerContentGap",Np.contentGap),Np.contentGap)}},y&&e.createElement(el,{className:"promotion-offer-icon","aria-hidden":"true",sx:{flexShrink:0,fontSize:"".concat(_p(m("PromotionBannerIconSize",Np.iconSize),Np.iconSize),"px"),color:m("PromotionBannerIconColor",Np.iconColor)}}),g&&e.createElement("span",{className:"promotion-offer-prefix",style:Cl(Cl({},N(0)),{},{color:m("PromotionBannerPrefixColor",Np.prefixColor),fontFamily:m("PromotionBannerPrefixFont",Np.prefixFont),fontWeight:m("PromotionBannerPrefixWeight",Np.prefixWeight),fontStyle:m("PromotionBannerPrefixStyle",Np.prefixStyle)})},g),h&&e.createElement("span",{className:"promotion-offer-circle-wrapper"},k&&S&&$p.map(function(l,o){return e.createElement("span",{key:o,"aria-hidden":"true",className:"promotion-offer-confetti",style:{"--confetti-x":l.x,"--confetti-y":l.y,backgroundColor:l.color,animationDuration:"".concat(w,"ms"),animationDelay:"".concat(l.delay,"ms")}})}),e.createElement("span",{className:"promotion-offer-circle",style:{width:qp(m("PromotionBannerDiscountCircleSize",Np.discountCircleSize),Np.discountCircleSize),height:qp(m("PromotionBannerDiscountCircleSize",Np.discountCircleSize),Np.discountCircleSize),borderRadius:"50%",color:m("PromotionBannerDiscountTextColor",Np.discountCircleTextColor),backgroundColor:m("PromotionBannerDiscountCircleBackgroundColor",Np.discountCircleBackgroundColor),boxShadow:m("PromotionBannerDiscountCircleShadow",Np.discountCircleShadow),fontFamily:m("PromotionBannerDiscountFont",Np.discountCircleFont),fontWeight:m("PromotionBannerDiscountTextWeight",Np.discountCircleTextWeight),animation:S&&j?"".concat(j," ").concat(w,"ms ease-in-out infinite"):"none"}},h)),f&&e.createElement("span",{className:"promotion-offer-suffix",style:Cl(Cl({},N(140)),{},{color:m("PromotionBannerSuffixColor",Np.suffixColor),fontFamily:m("PromotionBannerSuffixFont",Np.suffixFont),fontWeight:m("PromotionBannerSuffixWeight",Np.suffixWeight),fontStyle:m("PromotionBannerSuffixStyle",Np.suffixStyle)})},f))))}var Kp={facebook:{label:"Facebook",icon:"eva:facebook-fill",color:"#1877f2"},instagram:{label:"Instagram",icon:"ant-design:instagram-filled",color:"#c13584"},linkedin:{label:"LinkedIn",icon:"eva:linkedin-fill",color:"#0a66c2"},whatsapp:{label:"WhatsApp",icon:"mdi:whatsapp",color:"#25d366"},twitter:{label:"Twitter",icon:"mdi:twitter",color:"#1d9bf0"},x:{label:"X",icon:"ri:twitter-x-fill",color:"#111111"},tiktok:{label:"TikTok",icon:"simple-icons:tiktok",color:"#111111"},snapchat:{label:"Snapchat",icon:"mdi:snapchat",color:"#fffc00"},youtube:{label:"YouTube",icon:"mdi:youtube",color:"#ff0000"},website:{label:"Website",icon:"mdi:web",color:"#555555"},email:{label:"Email",icon:"mdi:email",color:"#f08203"}},Xp=function(e,l,o,t,n){var i,r,u,a=null==e||null===(i=e[t])||void 0===i?void 0:i.value;if(""!==a&&null!=a)return a;var d=null==o||null===(r=o.Text)||void 0===r||null===(r=r[t])||void 0===r?void 0:r.value;if(""!==d&&null!=d)return d;var v=null==l||null===(u=l[t])||void 0===u?void 0:u.value;return""!==v&&null!=v?v:n},Jp=function(e,l,o,t){var n,i,r=null==e||null===(n=e[o])||void 0===n?void 0:n.value,u=null==l||null===(i=l[o])||void 0===i?void 0:i.value,a=Array.isArray(r)?r:Array.isArray(u)?u:null;return a?{xs:a[0]||t,sm:a[1]||t,md:a[2]||t,lg:a[3]||t}:t};function ey(l){var o,t,n,i,r=l.themeColors,u=l.prop,a=l.styles,d=l.globalComponentStyles;l.states;var v=(null==u?void 0:u.editable)||{},s=(null===(o=v.title)||void 0===o?void 0:o.value)||"Social Links",c=(null===(t=v.subtitle)||void 0===t?void 0:t.value)||"",m=rt(null===(n=v.backgroundImage)||void 0===n?void 0:n.value)||"",p=((null===(i=v.socialLinks)||void 0===i?void 0:i.value)||[]).filter(function(e){return null==e?void 0:e.url});return e.createElement(g,{component:"main",sx:{position:"relative",minHeight:{xs:"75vh",md:"75vh",lg:"80vh"},display:"flex",alignItems:"center",py:{xs:6,md:9},overflow:"hidden",backgroundColor:Xp(a,r,d,"FollowPageBackgroundColor","#eef1f4"),backgroundImage:m?"url(".concat(m,")"):"none",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}},e.createElement(W,{maxWidth:"sm",sx:{position:"relative",zIndex:1,textAlign:"center"}},e.createElement(x,{component:"h1",sx:{color:Xp(a,r,d,"FollowPageTitleColor","#ffffff"),fontSize:Jp(a,r,"FollowPageTitleSize",48),fontWeight:Xp(a,r,d,"FollowPageTitleWeight",700),fontFamily:Xp(a,r,d,"FollowPageTitleFont","inherit"),lineHeight:1.15,mb:3}},s),c&&e.createElement(x,{sx:{display:"inline-block",mt:2.5,px:3,py:1.25,borderRadius:"".concat(Xp(a,r,d,"FollowPageSubtitleBorderRadius",999),"px"),color:Xp(a,r,d,"FollowPageSubtitleColor","#ffffff"),bgcolor:Xp(a,r,d,"FollowPageSubtitleBackgroundColor","#f08203"),fontSize:Jp(a,r,"FollowPageSubtitleSize",16),fontWeight:Xp(a,r,d,"FollowPageSubtitleWeight",700)}},c),e.createElement(f,{spacing:1.5,sx:{mt:4,alignItems:"center"}},p.map(function(l,o){var t=function(){return String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase().replace(/[^a-z0-9]/g,"")}(l.name),n=Kp[t]||{label:l.name||"Visit link",icon:"mdi:link-variant",color:"#555555"},i=function(e,l){var o=String(e||"").trim();return o?/^(https?:|mailto:|tel:)/i.test(o)?o:"email"===l?"mailto:".concat(o):"whatsapp"===l&&/^\+?[\d\s()-]+$/.test(o)?"https://wa.me/".concat(o.replace(/\D/g,"")):"https://".concat(o):""}(l.url,t);return e.createElement(U,{key:"".concat(t||"social","-").concat(o),href:i,target:"_blank",rel:"noopener noreferrer",underline:"none","aria-label":"Open ".concat(l.name||n.label),sx:{width:"100%",maxWidth:Xp(a,r,d,"FollowPageButtonWidth",320),minHeight:52,px:2.5,display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,borderRadius:"".concat(Xp(a,r,d,"FollowPageButtonBorderRadius",999),"px"),bgcolor:Xp(a,r,d,"FollowPageButtonBackgroundColor","#ffffff"),color:Xp(a,r,d,"FollowPageButtonTextColor","#333333"),boxShadow:"0 4px 14px rgba(0,0,0,0.14)",fontWeight:700,textTransform:"uppercase",transition:"transform 160ms ease, box-shadow 160ms ease","&:hover":{transform:"translateY(-2px)",boxShadow:"0 8px 20px rgba(0,0,0,0.18)"},"&:focus-visible":{outline:"3px solid ".concat(n.color),outlineOffset:3}}},e.createElement(g,{component:"span"},l.name||n.label),l.addCustomIcon&&l.customIcon?e.createElement(g,{component:"img",src:l.customIcon,alt:"",sx:{width:26,height:26,objectFit:"contain"}}):e.createElement(at,{icon:n.icon,width:25,sx:{color:n.color}}))}))))}var ly,oy,ty,ny=function(e){var l=Number(String(null!=e?e:0).replace(/[^0-9.-]/g,""));return Number.isFinite(l)?l:0},iy=function(e){return Number(ny(e).toFixed(2))},ry=function(e){return!1!==e&&"false"!==e},uy=function(e){return"Rs.".concat(ny(e).toLocaleString("en-PK",{maximumFractionDigits:2}))},ay=function(e,l,o){var t,n;return null!==(t=null==e||null===(n=e.editable)||void 0===n||null===(n=n[l])||void 0===n?void 0:n.value)&&void 0!==t?t:o},dy=function(e,l){var o,t,n=(null==e||null===(o=e.static)||void 0===o?void 0:o["display".concat(l)])||(null==e||null===(t=e.static)||void 0===t?void 0:t[l]);return Array.isArray(n)?n:[]},vy=function(e){return null!=e&&""!==e},sy=function(e,l,o){var t=(Array.isArray(l)?l:[l]).map(function(l){var o;return null==e||null===(o=e[l])||void 0===o?void 0:o.value}).find(function(e){return Array.isArray(e)?e.some(function(e){return vy(e)&&0!==e}):vy(e)});if(!vy(t))return o;if(Array.isArray(t)){var n=["xs","sm","md","lg","xl"];return t.map(function(e,l){var t,i;return vy(e)&&0!==e?e:Array.isArray(o)?null!==(t=o[l])&&void 0!==t?t:null:o&&"object"===Il(o)?null!==(i=o[n[l]])&&void 0!==i?i:null:null!=o?o:null})}return t},cy=function(e,l,o){var t=function(e){return Array.isArray(e)?e.map(t):e&&"object"===Il(e)?Object.fromEntries(Object.entries(e).map(function(e){var l=kl(e,2),o=l[0],n=l[1];return[o,t(n)]})):"number"==typeof e||"string"==typeof e&&/^-?\d+(\.\d+)?$/.test(e)?"".concat(e,"px"):e};return t(sy(e,l,o))},my=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Cl({},l);return Object.entries(e||{}).forEach(function(e){var t=kl(e,2),n=t[0],i=t[1],r=null==i?void 0:i.value;if(Array.isArray(r)?r.some(function(e){return vy(e)&&0!==e}):vy(r)){var u,a=null==l||null===(u=l[n])||void 0===u?void 0:u.value;o[n]=Cl(Cl({},i),{},{value:Array.isArray(r)?r.map(function(e,l){var o;return vy(e)&&0!==e?e:null!==(o=Array.isArray(a)?a[l]:a)&&void 0!==o?o:null}):r})}}),o},py=function(e){var l=[],o=new Set,t=function(e){var t,n=(null==e?void 0:e.name)||(null==e?void 0:e.title);if(n){var i=(null==e?void 0:e.id)||(null==e?void 0:e._id)||(null==e||null===(t=e.franchiseCategoryId)||void 0===t?void 0:t.id)||n,r=String(i).trim().toLowerCase();o.has(r)||(o.add(r),l.push(e))}};return Object.values((null==e?void 0:e.defaultLayout)||e||{}).forEach(function(e){Array.isArray(e)&&e.forEach(function(e){var l,o;if("RetailProductGrid"===(null==e?void 0:e.component)){var n=null==e||null===(l=e.props)||void 0===l||null===(l=l.static)||void 0===l?void 0:l.displaycategories,i=null==e||null===(o=e.props)||void 0===o||null===(o=o.static)||void 0===o?void 0:o.categories;(null!=n&&n.length?n:null!=i&&i.length?i:[]).forEach(t)}})}),l},yy=function(e){var l=Number(String(null!=e?e:0).replace(/[^0-9.-]/g,""));return Number.isFinite(l)?l:0},gy=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o="object"===Il(e)?(null==e?void 0:e.url)||(null==e?void 0:e.src)||"":e,t=String(o||"");if(!t)return"";var n=rt(t)||t;return/^(https?:|data:|blob:|\/)/i.test(n)?n:l?"".concat(String(l).replace(/\/$/,""),"/").concat(n.replace(/^\//,"")):n},hy=function(e){return String((null==e?void 0:e.id)||(null==e?void 0:e._id)||e||"")},fy=function(e){return!0===e||"true"===e},xy=function(e){var l=Number(String(null!=e?e:0).replace(/[^0-9.-]/g,""));return Number.isFinite(l)?l:0},by=function(e){var l=Array.isArray(null==e?void 0:e.variants)?e.variants:[],o=hy(null==e?void 0:e.selectedVariant);return l.find(function(e){return hy(e)===o})||l.find(function(e){return fy(null==e?void 0:e.defaultVariant)})||l[0]||null},Cy=function(e,l,o){var t=fy(null==e?void 0:e.hasVariant)&&fy(null==e?void 0:e.associateChoiceGroupWithPriceVariant)?(null==o?void 0:o.choiceGroup)||[]:(null==e?void 0:e.choiceGroup)||[],n=new Set(t.map(hy));return n.size?(l||[]).filter(function(e){return n.has(hy(e))}):[]},Sy=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,l){return e+((null==l?void 0:l.items)||[]).reduce(function(e,l){return e+xy(null==l?void 0:l.price)},0)},0)},Ty=function(e){var l=e.hasVariant,o=e.selectedVariant,t=e.selectedGroups,n=e.applicableChoiceGroups;if(l&&!o)return{ok:!1,error:"Please select a variant before adding this item."};var i=n.find(function(e){var l;if(!fy(null==e?void 0:e.required))return!1;var o=t.find(function(l){return hy(l)===hy(e)}),n=Math.max(1,xy((null==e?void 0:e.quantity)||1));return((null==o||null===(l=o.items)||void 0===l?void 0:l.length)||0)<n});return i?{ok:!1,error:"Please select ".concat(i.name,".")}:{ok:!0,error:""}},wy=function(e,l){var o,t=l.selectedVariant,n=l.selectedGroups,i=l.quantity,r=l.optionsTotal,u=fy(null==e?void 0:e.hasVariant),a=null!=r?r:Sy(n),d=u&&null!==(o=null==t?void 0:t.price)&&void 0!==o?o:e.price;return Cl(Cl(Cl({},e),u?{selectedVariant:t}:{}),{},{isPrepared:!1,isComplimentary:!1,isVoidItem:!1,cartItemId:Array.from({length:24},function(){return Math.floor(16*Math.random()).toString(16)}).join(""),price:d,priceBeforeCompliment:Number(d)+Number(a),priceWithChoiceGroup:Number(d)+Number(a),groups:n,qty:i,notes:""})},ky=function(){var e,l,o,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Cl(Cl({},n),{},{id:n.id||n._id,name:n.name||n.title||"Product",description:n.description||"",price:yy(null!==(e=null!==(l=n.priceWithChoiceGroup)&&void 0!==l?l:n.price)&&void 0!==e?e:n.salePrice),image:gy(n.image||n.img||n.imageUrl||n.photoURL||n.thumbnail,i),category:n.category||n.categoryName||(null===(o=n.franchiseCategoryId)||void 0===o?void 0:o.name)||(null===(t=n.categoryId)||void 0===t?void 0:t.name)||""})},Ly=function(){var e,l,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Math.max(1,yy(null!==(e=null!==(l=o.qty)&&void 0!==l?l:o.quantity)&&void 0!==e?e:1))},Iy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Number(gt(e))||ky(e).price*Ly(e)},Ey=function(){var e,l,o,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cash",r=(null==n?void 0:n.cardItems)||{},u=(null==r?void 0:r.items)||[],a=(null==n?void 0:n.franchise)||{},d=(null==a?void 0:a.configurations)||{},v=(null==a?void 0:a.serviceFeesObject)||{},s="storeDelivery",c=ny(Tt(u)),m=ny(bt(u,r)),p=ny(Ct(u,r)),y=Math.max(c-m-p,0),g=null==v||null===(e=v[s])||void 0===e?void 0:e[i],h=0;null!=d&&d.isServiceFeesApplicableOnStore&&(!0===(t=null==g?void 0:g.applicable)||"true"===t)&&(h="Percentage"===(null==g?void 0:g.type)?y*ny(null==g?void 0:g.amount)/100:ny(null==g?void 0:g.amount));var f=null!=d&&d.isPlatformFeeApplicableOnStore?ny(null==a?void 0:a.platformFees):0,x=0;null!=d&&d.isTaxApplicableOnStore&&(x="cash"===i?ny(null==a?void 0:a.storeTaxOnCash)/100:ny(null==a?void 0:a.storeTaxOnCard)/100);var b={items:u,cartMeta:r,cartSubtotal:c,manualDiscount:m,promotion:p,serviceFee:h,tip:0,platformFee:f,isServiceFeeTaxable:ry(null==d?void 0:d.isServiceFeeTaxableOnStore),isTipTaxable:ry(null==d?void 0:d.isTipTaxableOnStore),isPlatformFeeTaxable:ry(null==d?void 0:d.isPlatformFeeTaxableOnStore)},C=Wt(Ft(Cl(Cl({},b),{},{deliveryFee:0})),x),S=At({states:Cl(Cl({},n),{},{orderType:s}),baseTotal:y+h+f+C}),T=null!=d&&d.isDeliveryFeeApplicableOnStore?ny(null==S?void 0:S.finalDeliveryFee):0,w=Wt(Ft(Cl(Cl({},b),{},{deliveryFee:T,isDeliveryFeeTaxable:ry(null==d?void 0:d.isDeliveryFeeTaxableOnStore)})),x),k=iy(y+h+f+T+w),L={reason:(null==S?void 0:S.reason)||"none",waiveOff:0===T,waiveOffValue:ny(null==a?void 0:a.deliveryFees)};return{items:u,subTotal:iy(c),discount:iy(m),promotion:iy(p),serviceFees:iy(h),platformFees:iy(f),deliveryFees:iy(T),tax:iy(w),total:k,deliveryMessage:(null==S?void 0:S.message)||"",orderPayload:{levelId:null==r?void 0:r.levelId,venueId:(null==r?void 0:r.venueId)||(null==n||null===(l=n.selectedVenue)||void 0===l?void 0:l.id)||(null==n||null===(o=n.selectedVenue)||void 0===o?void 0:o._id),total:k,orderType:s,type:"store",paymentType:i,tax:iy(w),subTotal:iy(c),tip:0,discount:iy(m),discountObject:(null==r?void 0:r.discountObject)||{reason:m>0?"Promotion":"",value:iy(m)},promotion:iy(p),serviceFees:iy(h),serviceFeesObject:h?hl({},s,hl({},i,g)):{},platformFees:iy(f),deliveryFees:iy(T),deliveryFeesObject:L,isDeliveryFeesApplicable:!0,location:(null==n?void 0:n.latLongForDelivery)||""}}},Py=Je(ly||(oy=["\n from { transform: translateX(0); }\n to { transform: translateX(-50%); }\n"],ty||(ty=oy.slice(0)),ly=Object.freeze(Object.defineProperties(oy,{raw:{value:Object.freeze(ty)}}))));function My(l){var o,t=l.prop,n=l.styles,i=l.themeColors,r=fe(),u=my(n,i),a=(o=ay(t,"messages",ay(t,"text",["Egora POS · Faster checkout for every business","Inventory, sales and customer management in one place","Built for growing businesses"])),(Array.isArray(o)?o:[o]).flatMap(function(e){return String(null!=e?e:"").split(/\r?\n|\s*\|\s*/)}).map(function(e){return e.trim()}).filter(Boolean));return a.length?e.createElement(g,{sx:{overflow:"hidden",py:1.25,background:sy(u,["AnnouncementsBannerBackgroundColor","RetailAnnouncementBackgroundColor"],r.palette.primary.main),color:sy(u,["AnnouncementsBannerTextColor","RetailAnnouncementTextColor"],r.palette.primary.contrastText)}},e.createElement(g,{sx:{display:"flex",width:"max-content",minWidth:"200%",animation:"".concat(Py," 35s linear infinite"),"&:hover":{animationPlayState:"paused"},"@media (prefers-reduced-motion: reduce)":{animation:"none",minWidth:0,width:"100%",flexWrap:"wrap"}}},[0,1].map(function(l){return e.createElement(g,{key:l,"aria-hidden":1===l||void 0,sx:{display:"flex",flex:"1 0 auto",justifyContent:"space-around",alignItems:"center","@media (prefers-reduced-motion: reduce)":{display:1===l?"none":"flex",flexWrap:"wrap",flex:"1 1 100%",rowGap:1}}},a.map(function(l,o){return e.createElement(x,{component:"span",variant:"caption",key:"".concat(l,"-").concat(o),sx:{px:{xs:3,md:7},textAlign:"center",fontSize:cy(u,"AnnouncementsBannerTextSize",r.typography.caption.fontSize)}},l)}))}))):null}function Dy(l){var t,n,i=l.actions,r=l.layout,u=l.prop,a=l.states,d=l.styles,v=l.themeColors,s=fe(),c=my(d,v),m=kl(o(!1),2),p=m[0],y=m[1],h=py(r),S=h.length?h:[{name:"Categories"}],T=gy(ay(u,"logoImage",""),null==a?void 0:a.storeImagesBaseUrl),w=Array.isArray(null==a?void 0:a.cardItems)?0:null!==(t=null==a||null===(n=a.cardItems)||void 0===n||null===(n=n.items)||void 0===n?void 0:n.length)&&void 0!==t?t:0,k=sy(c,"RetailHeaderActionIconColor",s.palette.text.primary),L=cy(c,"RetailHeaderActionIconSize",24);return e.createElement(g,{component:"header",sx:{px:{xs:2,md:5},py:2,background:sy(c,"RetailHeaderBackgroundColor",s.palette.background.paper)}},e.createElement(g,{sx:{display:"grid",gridTemplateColumns:{xs:"auto minmax(0, 1fr) auto",md:"1fr auto 1fr"},alignItems:"center",gap:1,minHeight:64}},e.createElement(g,null,e.createElement(b,{"aria-label":"Toggle categories","aria-expanded":p,onClick:function(){return y(function(e){return!e})},sx:{display:{xs:"inline-flex",md:"none"},color:k}},e.createElement(ll,{sx:{fontSize:L}}))),e.createElement(ie,{"aria-label":"Store home",onClick:function(){var e;return null==i||null===(e=i.navigateToHome)||void 0===e?void 0:e.call(i)},sx:{justifySelf:"center",minWidth:0,borderRadius:1,px:1,py:.5}},T?e.createElement(g,{component:"img",src:T,alt:"Store logo",sx:{maxWidth:{xs:110,sm:160},width:"100%",height:58,objectFit:"contain"}}):e.createElement(f,{alignItems:"center",sx:{color:sy(c,"RetailHeaderBrandColor",s.palette.text.primary)}},e.createElement(x,{component:"span",sx:{fontSize:cy(c,"RetailHeaderBrandTextSize",39),fontWeight:700,lineHeight:1}},"EGORA"),e.createElement(x,{component:"span",variant:"caption",sx:{letterSpacing:"0.3em",fontWeight:700,color:sy(c,"RetailHeaderBrandAccentColor",s.palette.primary.main)}},"POS"))),e.createElement(f,{direction:"row",justifyContent:"flex-end",spacing:{xs:0,sm:.5},sx:{color:k,"& .MuiIconButton-root":{color:"inherit"},"& .MuiSvgIcon-root":{fontSize:L}}},e.createElement(b,{component:"a",href:"#account","aria-label":"Account"},e.createElement(ol,null)),e.createElement(b,{"aria-label":"Search",onClick:function(){return window.dispatchEvent(new Event("retail:open-search"))}},e.createElement(tl,null)),e.createElement(b,{"aria-label":"Cart, ".concat(w," items"),onClick:function(){var e;return null==i||null===(e=i.handleOpenCart)||void 0===e?void 0:e.call(i)}},e.createElement(re,{badgeContent:w,showZero:!0,sx:{"& .MuiBadge-badge":{background:sy(c,"RetailHeaderCartBadgeBackgroundColor",s.palette.primary.main),color:sy(c,"RetailHeaderCartBadgeTextColor",s.palette.primary.contrastText),minWidth:cy(c,"RetailHeaderCartBadgeSize",17),height:cy(c,"RetailHeaderCartBadgeSize",17),fontSize:s.typography.pxToRem(10)}}},e.createElement(nl,null))))),S.length>0&&e.createElement(g,{component:"nav","aria-label":"Store categories",sx:{display:{xs:p?"flex":"none",md:"flex"},flexWrap:"wrap",justifyContent:"center",gap:cy(c,"RetailHeaderNavGap",22),mt:1.5}},S.map(function(l,o){var t=(null==l?void 0:l.name)||(null==l?void 0:l.title);return e.createElement(C,{key:(null==l?void 0:l.id)||(null==l?void 0:l._id)||"".concat(t,"-").concat(o),onClick:function(){return function(e){var l,o;null==i||null===(l=i.handleCategoryClick)||void 0===l||l.call(i,e),y(!1),null===(o=document.getElementById("retail-products"))||void 0===o||o.scrollIntoView({behavior:"smooth",block:"start"})}(l)},sx:{minWidth:0,textTransform:"none",color:sy(c,"RetailHeaderNavTextColor",s.palette.text.primary),fontSize:cy(c,"RetailHeaderNavTextSize",s.typography.body2.fontSize)}},t)})))}function Oy(l){var n,i=l.actions,u=l.layout,a=l.prop,d=l.states,v=l.styles,s=l.themeColors,c=fe(),m=my(v,s),p=kl(o(!1),2),y=p[0],h=p[1],S=kl(o(""),2),T=S[0],w=S[1],k=r(null),L=py(u),I=dy(a,"categories"),E=L.length?L:I,D=null!==(n=null==d?void 0:d.query)&&void 0!==n?n:T,O=String(D).trim().toLowerCase(),B=E.filter(function(e){return String((null==e?void 0:e.name)||(null==e?void 0:e.title)||e).toLowerCase().includes(O)}),F=ay(a,"SearchBarBackgroundText","Search our store..."),W=sy(m,"SearchBarTextColor",c.palette.text.secondary),z=sy(m,"SearchBarOutlineColor",c.palette.divider),R=cy(m,"SearchBarBorderRadius",c.shape.borderRadius),H={fontSize:cy(m,"SearchBarIconSize",22),color:sy(m,"SearchBarIconColor",c.palette.text.primary),background:sy(m,"SearchBarIconBackgroundColor","transparent")},j=function(e){var l;w(e),null==i||null===(l=i.handleSearch)||void 0===l||l.call(i,e)},N=function(){var e;h(!1),null===(e=document.getElementById("retail-products"))||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})};return t(function(){var e=function(){return h(!0)};return window.addEventListener("retail:open-search",e),function(){return window.removeEventListener("retail:open-search",e)}},[]),t(function(){if(y){var e=window.setTimeout(function(){var e;return null===(e=k.current)||void 0===e?void 0:e.focus()},0);return function(){return window.clearTimeout(e)}}},[y]),e.createElement(g,{component:"section","aria-label":"Store search",onKeyDown:function(e){"Escape"===e.key&&h(!1)},sx:{px:{xs:2,md:5},py:2,background:sy(m,"SearchBarBackgroundColor",c.palette.background.paper)}},e.createElement(C,{fullWidth:!0,variant:"outlined","aria-expanded":y,startIcon:e.createElement(tl,{sx:H}),onClick:function(){return h(function(e){return!e})},sx:{justifyContent:"flex-start",px:2,py:1.5,color:W,borderColor:z,borderRadius:R,textTransform:"none","&:hover":{borderColor:z}}},F),e.createElement(ue,{in:y,unmountOnExit:!0},e.createElement(A,{variant:"outlined",sx:{mt:1.5,p:{xs:2,md:3},borderColor:z,borderRadius:R,color:W,bgcolor:"background.paper"}},e.createElement(g,{component:"form",onSubmit:function(e){e.preventDefault(),N()}},e.createElement(P,{fullWidth:!0,inputRef:k,value:D,onChange:function(e){return j(e.target.value)},placeholder:F,inputProps:{"aria-label":"Search products"},InputProps:{startAdornment:e.createElement(M,{position:"start"},e.createElement(tl,{sx:H})),endAdornment:e.createElement(M,{position:"end"},e.createElement(b,{"aria-label":"Close search",onClick:function(){return h(!1)}},e.createElement(il,{sx:H})))},sx:{"& .MuiInputBase-root":{color:W,borderRadius:R},"& .MuiOutlinedInput-notchedOutline":{borderColor:z}}}),e.createElement(x,{variant:"overline",component:"p",sx:{mt:3,mb:1}},O?"Suggestions":"Main menu"),e.createElement(f,{alignItems:"flex-start",spacing:.5},B.map(function(l,o){return e.createElement(C,{key:(null==l?void 0:l.id)||(null==l?void 0:l._id)||"".concat((null==l?void 0:l.name)||l,"-").concat(o),onClick:function(){var e;j(""),null==i||null===(e=i.handleCategoryClick)||void 0===e||e.call(i,l),N()},sx:{color:W,textTransform:"none"}},(null==l?void 0:l.name)||(null==l?void 0:l.title)||l)})),O&&e.createElement(C,{type:"submit",variant:"contained",sx:{mt:3}},"Search for “",String(D).trim(),"”")))))}function By(l){var n=l.prop,i=l.states,r=l.styles,u=l.themeColors,a=fe(),d=my(r,u),v=ay(n,"carouselImages",[]),s=(Array.isArray(v)?v:[]).map(function(e){return"object"===Il(e)?(null==e?void 0:e.url)||(null==e?void 0:e.src)||(null==e?void 0:e.image):e}).map(function(e){return gy(e,null==i?void 0:i.storeImagesBaseUrl)}).filter(Boolean),c=gy(ay(n,"backgroundImage","")||"https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1600&q=85",null==i?void 0:i.storeImagesBaseUrl),m=s.length?s:[c],p=m.join("|"),y=Number(ay(n,"carouselSlideInterval",5)),h=Number.isFinite(y)&&y>0?y:5,f=kl(o(0),2),x=f[0],b=f[1];return t(function(){b(0)},[p]),t(function(){if(!(m.length<2)){var e=setInterval(function(){b(function(e){return(e+1)%m.length})},1e3*h);return function(){return clearInterval(e)}}},[m.length,h,p]),e.createElement(g,{component:"section",sx:{display:"block",width:"100%",overflow:"hidden",color:"text.primary",background:sy(d,"HeroCarouselDisplayedImageBackgroundColor",a.palette.background.default),borderRadius:cy(d,"HeroCarouselImageBorderRadius",0)}},e.createElement(g,{sx:{position:"relative",width:"100%",minHeight:cy(d,"HeroCarouselDisplayedImageHeight",{xs:330,md:475}),overflow:"hidden",background:sy(d,"HeroCarouselDisplayedImageBackgroundColor",a.palette.background.default)}},e.createElement(g,{"data-testid":"retail-hero-image-track","aria-hidden":"true",sx:{position:"absolute",inset:0,display:"flex",width:"100%",transition:"transform 0.8s ease-in-out"},style:{transform:"translateX(-".concat(100*x,"%)")}},m.map(function(l,o){return e.createElement(g,{component:"img",key:"".concat(l,"-").concat(o),src:l,alt:"",sx:{width:"100%",height:"100%",flex:"0 0 100%",objectFit:"cover",objectPosition:"center"}})}))))}function Fy(l){var o=l.prop,t=l.actions,n=l.layout,i=l.styles,r=l.themeColors,u=fe(),a=my(i,r),d=py(n),v=dy(o,"categories"),s=v.length?v:d.length?d:[{name:"Face"},{name:"Hair"},{name:"Beard"},{name:"Body"},{name:"Fragrance"}],c=sy(a,"RetailCategoryCarouselTextColor",u.palette.text.secondary);return s.length?e.createElement(g,{component:"section","aria-label":"Shop by category",sx:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"stretch",md:"center"},gap:3,px:{xs:2,md:5},py:3,color:c,background:sy(a,"RetailCategoryCarouselBackgroundColor",u.palette.background.paper),borderBottom:1,borderColor:sy(a,"RetailCategoryCarouselBorderColor",u.palette.divider)}},e.createElement(x,{variant:"overline",sx:{flexShrink:0,fontSize:cy(a,"RetailCategoryCarouselLabelSize",u.typography.overline.fontSize)}},"Shop by category"),e.createElement(g,{sx:{display:"flex",flex:1,minWidth:0,overflowX:"auto",gap:cy(a,"RetailCategoryCarouselItemGap",28),py:.5}},s.map(function(l,o){var n=(null==l?void 0:l.name)||(null==l?void 0:l.title)||l;return e.createElement(C,{key:(null==l?void 0:l.id)||(null==l?void 0:l._id)||"".concat(n,"-").concat(o),onClick:function(){var e;return null==t||null===(e=t.handleCategoryClick)||void 0===e?void 0:e.call(t,l)},sx:{color:c,gap:1,flexShrink:0,whiteSpace:"nowrap",textTransform:"none",fontSize:cy(a,"RetailCategoryCarouselTextSize",u.typography.body2.fontSize),"&:hover":{color:sy(a,"RetailCategoryCarouselHoverColor",u.palette.primary.main)}}},e.createElement(h,{"aria-hidden":"true",sx:{width:cy(a,"RetailCategoryCarouselIconSize",30),height:cy(a,"RetailCategoryCarouselIconSize",30),background:sy(a,"RetailCategoryCarouselIconBackgroundColor",u.palette.action.selected),color:sy(a,"RetailCategoryCarouselIconColor",u.palette.primary.main),fontSize:u.typography.h6.fontSize}},["✦","⌁","⌁","◌","◉"][o%5]),n)}))):null}function Wy(l){var t=l.prop,n=l.actions,r=l.styles,u=l.themeColors,a=l.states,d=l.previewMode,v=void 0!==d&&d,s=l.isEditorPreview,c=v||void 0!==s&&s,m=fe(),p=my(r,u),y=kl(o("featured"),2),h=y[0],b=y[1],S=kl(o({}),2),T=S[0],w=S[1],k=dy(t,"categories"),P=dy(t,"items"),M=ay(t,"title","Curated essentials"),D=ay(t,"description","Curated essentials for your best self."),B=(null==a?void 0:a.storeImagesBaseUrl)||"",F=i(function(){var e=function(e){var l=new Set;return e.flatMap(function(e){return(Array.isArray(null==e?void 0:e.items)?e.items:[]).reduce(function(o,t,n){var i,r,u=(null==t?void 0:t.id)||(null==t?void 0:t._id)||"".concat((null==e?void 0:e.id)||(null==e?void 0:e.name),"-").concat(n);return l.has(String(u))||(l.add(String(u)),o.push(Cl(Cl({},t),{},{category:(null==t||null===(i=t.franchiseCategoryId)||void 0===i?void 0:i.name)||(null==t||null===(r=t.categoryId)||void 0===r?void 0:r.name)||(null==e?void 0:e.name)||""}))),o},[])})}(k);return(e.length?e:P).map(function(e){return ky(e,B)})},[k,B,P]),W=i(function(){return"price-low"===h?Ll(F).sort(function(e,l){return e.price-l.price}):"price-high"===h?Ll(F).sort(function(e,l){return l.price-e.price}):F},[F,h]);if(!W.length&&!v)return null;var z=function(e){var l;c?null==n||null===(l=n.handleOpenCard)||void 0===l||l.call(n,e):null!=n&&n.navigateToProduct&&n.navigateToProduct(e)},R=function(e,l){return Cy(e,(null==a?void 0:a.choiceGroups)||[],l).some(function(e){return fy(null==e?void 0:e.required)})},H=function(){var e=gl(Tl().m(function e(l){var o,t,i,r,u;return Tl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!c){e.n=1;break}return e.a(2);case 1:if(o=l.id||l._id||l.name,t=fy(null==l?void 0:l.hasVariant)?by(l):null,!(fy(null==l?void 0:l.hasVariant)&&!t||R(l,t))){e.n=2;break}return z(l),e.a(2);case 2:return w(function(e){return Cl(Cl({},e),{},hl({},o,"loading"))}),e.p=3,r=wy(l,{selectedVariant:t,selectedGroups:[],quantity:1}),e.n=4,null==n||null===(i=n.handleAddToCart)||void 0===i?void 0:i.call(n,r,[],1,"");case 4:201===(null==(u=e.v)?void 0:u.status)||200===(null==u?void 0:u.status)?(w(function(e){return Cl(Cl({},e),{},hl({},o,"success"))}),window.setTimeout(function(){w(function(e){var l=Cl({},e);return delete l[o],l})},1800)):w(function(e){return Cl(Cl({},e),{},hl({},o,"error"))}),e.n=6;break;case 5:e.p=5,e.v,w(function(e){return Cl(Cl({},e),{},hl({},o,"error"))});case 6:return e.a(2)}},e,null,[[3,5]])}));return function(l){return e.apply(this,arguments)}}(),j=W,N=sy(p,"RetailProductGridHeadingColor",m.palette.text.primary),V=sy(p,"RetailProductGridDescriptionColor",m.palette.text.secondary),U=sy(p,"RetailProductGridProductNameColor",m.palette.text.primary),_=sy(p,"RetailProductGridProductDescriptionColor",m.palette.text.secondary),q={mt:2,py:1.5,px:2,minHeight:48,justifyContent:"space-between",background:sy(p,"RetailProductGridButtonBackgroundColor","transparent"),color:sy(p,"RetailProductGridButtonTextColor",m.palette.primary.main),borderColor:sy(p,"RetailProductGridButtonBorderColor",m.palette.primary.main),borderRadius:cy(p,"RetailProductGridButtonBorderRadius",m.shape.borderRadius),"&:hover":{background:sy(p,"RetailProductGridButtonHoverBackgroundColor",m.palette.primary.main),color:sy(p,"RetailProductGridButtonHoverTextColor",m.palette.primary.contrastText),borderColor:sy(p,"RetailProductGridButtonBorderColor",m.palette.primary.main)}};return e.createElement(g,{component:"section",id:"retail-products",sx:{px:{xs:2,md:5},py:{xs:5,md:8},scrollMarginTop:24,background:sy(p,"RetailProductGridBackgroundColor",m.palette.background.default)}},e.createElement(f,{direction:{xs:"column",md:"row"},alignItems:{xs:"stretch",md:"flex-end"},justifyContent:"space-between",spacing:3,sx:{pb:3,mb:4,borderBottom:1,borderColor:"divider",color:N}},e.createElement(g,{sx:{minWidth:0}},e.createElement(x,{variant:"overline"},"The edit"),e.createElement(x,{component:"h2",variant:"h3",sx:{color:N,overflowWrap:"anywhere",fontSize:cy(p,"RetailProductGridHeadingTextSize",{xs:30,md:42}),mb:1}},M),D&&e.createElement(x,{variant:"body2",sx:{color:V,fontSize:cy(p,"RetailProductGridDescriptionTextSize",m.typography.body2.fontSize)}},D)),e.createElement(f,{direction:"row",alignItems:"center",spacing:2,sx:{flexShrink:0,justifyContent:"space-between",color:V}},e.createElement(x,{variant:"body2",sx:{whiteSpace:"nowrap"}},j.length," products"),e.createElement(L,{size:"small",sx:{minWidth:160}},e.createElement(I,{value:h,onChange:function(e){return b(e.target.value)},inputProps:{"aria-label":"Sort products"},sx:{color:N}},e.createElement(E,{value:"featured"},"Featured"),e.createElement(E,{value:"price-low"},"Price: low to high"),e.createElement(E,{value:"price-high"},"Price: high to low"))))),j.length?e.createElement(g,{sx:{display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",sm:"repeat(2, minmax(0, 1fr))",lg:"repeat(4, minmax(0, 1fr))"},columnGap:cy(p,"RetailProductGridGap",24),rowGap:cy(p,"RetailProductGridRowGap",48)}},j.map(function(l,o){var t=l.id||l._id||l.name,n=T[t];return e.createElement(A,{component:"article",elevation:0,key:l.id||"".concat(l.name,"-").concat(o),sx:{minWidth:0,overflow:"hidden",textAlign:"center",background:sy(p,"RetailProductGridCardBackgroundColor",m.palette.background.paper),borderRadius:cy(p,"RetailProductGridCardBorderRadius",m.shape.borderRadius),"&:hover [data-retail-product-image]":{transform:"scale(1.05)"},"&:hover [data-retail-quick-add], &:focus-within [data-retail-quick-add]":{opacity:1,transform:"none"}}},e.createElement(g,{sx:{position:"relative",overflow:"hidden",height:cy(p,"RetailProductGridImageHeight",{xs:300,md:310}),background:sy(p,"RetailProductGridImageBackgroundColor",m.palette.action.hover),borderRadius:cy(p,"RetailProductGridImageBorderRadius",m.shape.borderRadius)}},e.createElement(ie,{"aria-label":"View ".concat(l.name),onClick:function(){return z(l)},sx:{width:"100%",height:"100%",display:"block"}},e.createElement(g,{component:"img","data-retail-product-image":!0,src:l.image||"/assets/placeholder.png",alt:l.name,sx:{width:"100%",height:"100%",objectFit:"contain",transition:m.transitions.create("transform"),"@media (prefers-reduced-motion: reduce)":{transition:"none"}}})),e.createElement(C,{"data-retail-quick-add":!0,variant:"contained",onClick:function(e){e.stopPropagation(),z(l)},sx:{position:"absolute",bottom:1.5,left:1.5,right:1.5,bgcolor:"background.paper",color:U,opacity:{xs:1,md:0},transform:{xs:"none",md:"translateY(6px)"},transition:m.transitions.create(["opacity","transform"]),"&:hover":{bgcolor:"background.paper"},"@media (hover: none)":{opacity:1,transform:"none"}}},"View product")),e.createElement(g,{sx:{px:1.5,pb:2}},e.createElement(C,{fullWidth:!0,variant:"outlined",onClick:function(){return H(l)},disabled:"loading"===n||"success"===n,"aria-label":"success"===n?"".concat(l.name," added to cart"):"Add ".concat(l.name," to cart"),sx:q},"loading"===n?e.createElement(O,{size:17,color:"inherit",sx:{mx:"auto"}}):"success"===n?e.createElement(rl,{sx:{mx:"auto"}}):e.createElement(e.Fragment,null,"error"===n?"Try again":"Add to cart",e.createElement(ul,{fontSize:"small"}))),e.createElement(x,{component:"h3",variant:"subtitle1",sx:{mt:2,mb:.75,color:U,fontSize:cy(p,"RetailProductGridProductNameTextSize",m.typography.subtitle1.fontSize),overflowWrap:"anywhere"}},l.name),l.description&&e.createElement(x,{variant:"body2",sx:{color:_,fontSize:cy(p,"RetailProductGridProductDescriptionTextSize",m.typography.body2.fontSize),display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden"}},l.description),l.category&&e.createElement(x,{component:"p",variant:"caption",sx:{mt:1,color:_,textTransform:"uppercase",letterSpacing:"0.08em"}},l.category),e.createElement(x,{sx:{mt:1,fontWeight:700,color:sy(p,"RetailProductGridPriceColor",m.palette.text.primary)}},uy(l.price))))})):e.createElement(A,{variant:"outlined",sx:{minHeight:180,p:3,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:1,borderStyle:"dashed",textAlign:"center",color:V}},e.createElement(x,{variant:"subtitle1",sx:{color:N}},"No products selected"),e.createElement(x,{variant:"body2"},"Select one or more categories from the component settings.")))}function Ay(l){var o,t,n=l.states,i=l.actions,r=l.styles,u=l.themeColors,a=l.isEditorPreview,d=void 0!==a&&a,v=l.previewMode,s=d||void 0!==v&&v,c=fe(),m=my(r,u),p=(null==n||null===(o=n.cardItems)||void 0===o?void 0:o.items)||[],y=Ey(n),h=y.subTotal,w=y.total,k=p.reduce(function(e,l){return e+Ly(l)},0),L=function(e,l){return sy(m,"RetailCartDrawer".concat(e),l)},I={color:L("IconColor","text.primary"),"& .MuiSvgIcon-root":{fontSize:cy(m,"RetailCartDrawerIconSize",24)}},E=cy(m,"RetailCartDrawerButtonBorderRadius",c.shape.borderRadius),P=function(){var e;s||null==i||null===(e=i.handleOpenCart)||void 0===e||e.call(i)},M=function(e){s||null==e||e()},D=e.createElement(g,{component:"aside",sx:{display:"flex",flexDirection:"column",height:"100%",minHeight:0,p:{xs:2,sm:3},bgcolor:L("BackgroundColor","background.paper"),color:L("TextColor","text.primary")}},e.createElement(f,{direction:"row",spacing:1,alignItems:"flex-start",justifyContent:"space-between",sx:{mb:3}},e.createElement(g,{sx:{minWidth:0}},e.createElement(x,{variant:"overline",sx:{color:L("MutedTextColor","text.secondary")}},"Your bag"),e.createElement(x,{variant:"h5",component:"h2",sx:{color:L("HeadingColor","text.primary")}},"Shopping cart (",k,")")),e.createElement(b,{"aria-label":"Close cart",onClick:P,sx:I},e.createElement(il,null))),e.createElement(g,{sx:{mb:2}},e.createElement(x,{variant:"body2",sx:{mb:1}},h>=1999?"You unlocked free delivery":"".concat(uy(1999-h)," away from free delivery")),e.createElement(ae,{variant:"determinate",value:Math.min(100,Math.max(0,h/1999*100)),sx:{borderRadius:1,bgcolor:"action.hover","& .MuiLinearProgress-bar":{bgcolor:L("ProgressColor","primary.main")}}})),p.length?e.createElement(g,{sx:{flex:1,minHeight:0,overflowY:"auto"}},p.map(function(l,o){var t=ky(l,(null==n?void 0:n.storeImagesBaseUrl)||"");return e.createElement(f,{key:l.cartItemId||"".concat(t.id||t.name,"-").concat(o),direction:"row",spacing:1.5,alignItems:"center",sx:{py:2,borderBottom:1,borderColor:L("DividerColor","divider")}},e.createElement(g,{sx:{width:64,height:72,flexShrink:0,borderRadius:1,overflow:"hidden",bgcolor:"action.hover",display:"grid",placeItems:"center"}},t.image?e.createElement(g,{component:"img",src:t.image,alt:t.name,sx:{display:"block",width:"100%",height:"100%",objectFit:"contain"}}):e.createElement(nl,{color:"disabled"})),e.createElement(g,{sx:{flex:1,minWidth:0}},e.createElement(x,{variant:"subtitle2",component:"h3",sx:{color:L("HeadingColor","text.primary"),overflowWrap:"anywhere"}},t.name),e.createElement(x,{variant:"body2",sx:{color:L("MutedTextColor","text.secondary"),my:.5}},"Quantity: ",Ly(l)),e.createElement(x,{variant:"subtitle2",sx:{color:L("PriceColor","text.primary")}},uy(Iy(l)))),e.createElement(b,{"aria-label":"Remove ".concat(t.name),disabled:!(null!=l&&l.cartItemId),onClick:function(){var e;!s&&null!=l&&l.cartItemId&&(null==i||null===(e=i.handleRemoveFromCart)||void 0===e||e.call(i,l))},sx:I},e.createElement(al,null)))})):e.createElement(f,{spacing:1,alignItems:"center",justifyContent:"center",sx:{flex:1,minHeight:240,py:4,textAlign:"center"}},e.createElement(nl,{sx:{fontSize:48,color:L("IconColor","text.secondary"),mb:1}}),e.createElement(x,{variant:"h6",component:"h3",sx:{color:L("HeadingColor","text.primary")}},"Your cart is empty"),e.createElement(x,{variant:"body2",sx:{color:L("MutedTextColor","text.secondary")}},"Add a product to begin your order.")),e.createElement(f,{spacing:2,sx:{pt:3,mt:"auto",flexShrink:0}},e.createElement(S,{sx:{borderColor:L("DividerColor","divider")}}),e.createElement(f,{direction:"row",justifyContent:"space-between"},e.createElement(x,null,"Subtotal"),e.createElement(x,{variant:"subtitle1",sx:{color:L("PriceColor","text.primary")}},uy(h))),(null==i?void 0:i.naviagateCart)&&e.createElement(C,{fullWidth:!0,variant:"outlined",onClick:function(){return M(i.naviagateCart)},sx:{borderRadius:E,color:L("TextColor","text.primary"),borderColor:L("DividerColor","divider")}},"View bag"),e.createElement(C,{fullWidth:!0,variant:"contained",disabled:!p.length,onClick:function(){return M(null==i?void 0:i.naviagateCheckout)},sx:{py:1.5,borderRadius:E,bgcolor:L("ButtonBackgroundColor","primary.main"),color:L("ButtonTextColor","primary.contrastText"),"&:hover":{bgcolor:L("ButtonBackgroundColor","primary.dark")}}},"Checkout · ",uy(w))));return s?e.createElement(A,{variant:"outlined",sx:{width:"100%",maxWidth:460,mx:"auto",height:640,maxHeight:"100%",overflow:"hidden"}},D):e.createElement(T,{anchor:"right",open:null===(t=null==n?void 0:n.openCart)||void 0===t||t,onClose:P,PaperProps:{role:"dialog","aria-modal":!0,"aria-label":"Shopping cart",sx:{width:{xs:"100%",sm:460},maxWidth:"100%",height:"100%"}}},D)}var zy=function(e){return JSON.parse(JSON.stringify(e))};function Ry(l){var n=l.rawProduct,r=l.choiceGroups,u=void 0===r?[]:r,a=l.detailStyles,d=void 0===a?{}:a,v=l.disabled,s=void 0!==v&&v,c=l.onAddToCart,m=fe(),p=kl(o(1),2),y=p[0],h=p[1],S=kl(o(null),2),T=S[0],w=S[1],k=kl(o([]),2),L=k[0],I=k[1],E=kl(o(""),2),P=E[0],M=E[1],D=kl(o("idle"),2),B=D[0],F=D[1],W=n||{},A=fy(null==W?void 0:W.hasVariant),z=Array.isArray(null==W?void 0:W.variants)?W.variants:[];t(function(){h(1),M(""),F("idle")},[hy(W)]),t(function(){w(A?by(W):null)},[W,A]);var R=i(function(){return Cy(W,u,T)},[W,u,T]);t(function(){I([]),M("")},[R]);var H=Sy(L),j=xy(A?null==T?void 0:T.price:W.price),N=(j+H)*y,V=function(e,l){return sy(d,"RetailItemDetail".concat(e),l)},U=V("HeadingColor",m.palette.text.primary),_=V("MutedTextColor",m.palette.text.secondary),q=cy(d,"RetailItemDetailButtonBorderRadius","".concat(m.shape.borderRadius,"px")),G={bgcolor:V("QuantityButtonBackgroundColor",m.palette.background.paper),color:V("QuantityIconColor",m.palette.text.primary),borderRadius:"inherit"},Q={py:1.75,minHeight:52,borderRadius:q,bgcolor:V("AddButtonBackgroundColor",m.palette.primary.main),color:V("AddButtonTextColor",m.palette.primary.contrastText),"&:hover":{bgcolor:V("AddButtonBackgroundColor",m.palette.primary.dark),filter:"brightness(0.95)"},"&.Mui-disabled":"idle"===B?{}:{bgcolor:"success"===B?"success.main":V("AddButtonBackgroundColor",m.palette.primary.main),color:"success"===B?"success.contrastText":V("AddButtonTextColor",m.palette.primary.contrastText)}},Y=function(e){return{justifyContent:"space-between",textAlign:"left",gap:2,px:1.75,py:1.5,borderRadius:q,borderColor:V("QuantityButtonBorderColor",m.palette.divider),bgcolor:e?V("AddButtonBackgroundColor",m.palette.primary.main):"transparent",color:e?V("AddButtonTextColor",m.palette.primary.contrastText):V("TextColor",m.palette.text.primary),"&:hover":{borderColor:V("AddButtonBackgroundColor",m.palette.primary.main),bgcolor:e?V("AddButtonBackgroundColor",m.palette.primary.dark):"action.hover"}}},$=function(){var e=gl(Tl().m(function e(){var l,o,t;return Tl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!s&&"loading"!==B&&"success"!==B){e.n=1;break}return e.a(2);case 1:if((l=Ty({hasVariant:A,selectedVariant:T,selectedGroups:L,applicableChoiceGroups:R})).ok){e.n=2;break}return M(l.error),e.a(2);case 2:return M(""),F("loading"),e.p=3,o=wy(W,{selectedVariant:T,selectedGroups:L,quantity:y,optionsTotal:H}),e.n=4,null==c?void 0:c(o,L,y);case 4:if(!1!==(t=e.v)){e.n=5;break}throw new Error("add failed");case 5:if(null==t||!t.status||201===t.status||200===t.status){e.n=6;break}throw new Error("add failed");case 6:F("success"),window.setTimeout(function(){return F("idle")},1800),e.n=8;break;case 7:e.p=7,e.v,F("idle"),M("We could not add this item to the cart. Please try again.");case 8:return e.a(2)}},e,null,[[3,7]])}));return function(){return e.apply(this,arguments)}}();return e.createElement(f,{spacing:2.5},e.createElement(x,{variant:"h5",sx:{color:V("PriceColor",m.palette.text.primary)}},uy(j)),A&&e.createElement(f,{component:"section",spacing:1.5},e.createElement(f,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2},e.createElement(x,{variant:"subtitle1",component:"h2",sx:{color:U}},"Choose a variant"),e.createElement(de,{size:"small",label:"Required"})),e.createElement(f,{spacing:1},z.map(function(l){var o=hy(l)===hy(T);return e.createElement(C,{variant:"outlined",key:hy(l)||l.name,"aria-pressed":o,disabled:s,onClick:function(){return function(e){w(e),I([]),M("")}(l)},sx:Y(o)},e.createElement(g,{component:"span",sx:{overflowWrap:"anywhere"}},l.name),e.createElement(x,{component:"span",variant:"body2",fontWeight:700,sx:{whiteSpace:"nowrap"}},uy(l.price)))}))),R.map(function(l){var o=L.find(function(e){return hy(e)===hy(l)}),t=new Set(((null==o?void 0:o.items)||[]).map(hy)),n=Math.max(1,xy((null==l?void 0:l.quantity)||1));return e.createElement(f,{component:"section",spacing:1.5,key:hy(l)},e.createElement(f,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"start",sm:"center"},spacing:1},e.createElement(x,{variant:"subtitle1",component:"h2",sx:{color:U}},l.name),e.createElement(x,{variant:"caption",sx:{color:_}},"Select up to ",n,fy(l.required)?" · Required":" · Optional")),e.createElement(f,{spacing:1},(l.items||[]).map(function(o){var n=t.has(hy(o));return e.createElement(C,{variant:"outlined",key:hy(o)||o.item,"aria-pressed":n,disabled:s,onClick:function(){return function(e,l){var o=hy(e),t=hy(l),n=Math.max(1,xy((null==e?void 0:e.quantity)||1));I(function(i){var r=zy(i),u=r.findIndex(function(e){return hy(e)===o});if(-1===u)return[Cl(Cl({},zy(e)),{},{items:[zy(l)]})].concat(Ll(r));var a=r[u],d=a.items.findIndex(function(e){return hy(e)===t});return d>=0?(a.items.splice(d,1),a.items.length||r.splice(u,1),r):(a.items.length>=n&&a.items.shift(),a.items.push(zy(l)),r)}),M("")}(l,o)},sx:Y(n)},e.createElement(g,{component:"span",sx:{overflowWrap:"anywhere"}},o.item||o.name),e.createElement(x,{component:"span",variant:"body2",fontWeight:700,sx:{whiteSpace:"nowrap"}},xy(o.price)>0?"+ ".concat(uy(o.price)):"Included"))})))}),e.createElement(f,{spacing:1},e.createElement(x,{variant:"body2",sx:{color:_}},"Quantity"),e.createElement(f,{direction:"row",alignItems:"center",sx:{width:"fit-content",border:1,borderColor:V("QuantityButtonBorderColor",m.palette.divider),borderRadius:q}},e.createElement(b,{onClick:function(){return h(Math.max(1,y-1))},disabled:s||y<=1,"aria-label":"Decrease quantity",sx:G},e.createElement(dl,null)),e.createElement(x,{sx:{minWidth:40,textAlign:"center"}},y),e.createElement(b,{onClick:function(){return h(y+1)},disabled:s,"aria-label":"Increase quantity",sx:G},e.createElement(ul,null)))),P&&e.createElement(Z,{severity:"error"},P),e.createElement(C,{variant:"contained",onClick:$,disabled:s||"loading"===B||"success"===B,"aria-busy":"loading"===B,sx:Q},"loading"===B?e.createElement(O,{color:"inherit",size:18}):"success"===B?e.createElement(rl,null):"Add to cart · ".concat(uy(N))))}function Hy(l){var o,t,n=l.states,i=l.actions,r=l.styles,u=l.themeColors,a=l.isEditorPreview,d=void 0!==a&&a,v=l.previewMode,s=d||void 0!==v&&v;fe();var c=my(r,u),m=(null==n?void 0:n.itemForDetailedModal)||{},p=ky(m,(null==n?void 0:n.storeImagesBaseUrl)||""),y=null!=n&&null!==(o=n.choiceGroups)&&void 0!==o&&o.length?n.choiceGroups:(null==n?void 0:n.allChoiceGroups)||[],h=null===(t=null==n?void 0:n.openCard)||void 0===t||t,C=function(){var e;s||null==i||null===(e=i.handleOpenCard)||void 0===e||e.call(i)},S=function(e,l){return sy(c,"RetailItemDetail".concat(e),l)},T=function(){var e=gl(Tl().m(function e(l,o,t){return Tl().w(function(e){for(;;)switch(e.n){case 0:if(null!=i&&i.handleAddToCart){e.n=1;break}return e.a(2,!1);case 1:return e.a(2,i.handleAddToCart(l,o,t,""))}},e)}));return function(l,o,t){return e.apply(this,arguments)}}(),w=e.createElement(g,{component:"section",sx:{position:"relative",display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",md:"minmax(0, 1fr) minmax(0, 1fr)"},gap:{xs:3,md:4},p:{xs:2,sm:4},minWidth:0,color:S("TextColor","text.primary"),bgcolor:S("BackgroundColor","background.paper")}},e.createElement(b,{"aria-label":"Close product",onClick:C,sx:{position:"absolute",top:8,right:8,zIndex:1,color:S("CloseIconColor","text.primary"),bgcolor:S("BackgroundColor","background.paper")}},e.createElement(il,{sx:{fontSize:cy(c,"RetailItemDetailCloseIconSize",24)}})),e.createElement(g,{sx:{minWidth:0,minHeight:{xs:240,md:400},display:"grid",placeItems:"center",overflow:"hidden",borderRadius:1,bgcolor:S("ImageBackgroundColor","action.hover")}},p.image?e.createElement(g,{component:"img",src:p.image,alt:p.name,sx:{display:"block",width:"100%",height:"100%",maxHeight:520,objectFit:"contain"}}):e.createElement(x,{color:"text.secondary"},"No product image")),e.createElement(f,{spacing:2,sx:{minWidth:0,pt:{xs:0,md:2}}},e.createElement(x,{variant:"overline",sx:{color:S("MutedTextColor","text.secondary")}},"Delivery product"),e.createElement(x,{component:"h1",variant:"h4",sx:{color:S("HeadingColor","text.primary"),overflowWrap:"anywhere"}},p.name),e.createElement(x,{variant:"body2",sx:{color:S("MutedTextColor","text.secondary")}},"Tax included"),e.createElement(Ry,{rawProduct:m,choiceGroups:y,detailStyles:c,disabled:s,onAddToCart:T})),p.description&&e.createElement(ve,{disableGutters:!0,elevation:0,sx:{gridColumn:"1 / -1",bgcolor:"transparent",color:"inherit","&:before":{display:"none"}}},e.createElement(se,{expandIcon:e.createElement(vl,null)},e.createElement(x,{variant:"subtitle1"},"Description")),e.createElement(ce,null,e.createElement(x,{sx:{color:S("MutedTextColor","text.secondary"),whiteSpace:"pre-line",overflowWrap:"anywhere"}},p.description))));return s?e.createElement(A,{variant:"outlined",sx:{width:"100%",maxWidth:980,mx:"auto",overflow:"hidden"}},w):e.createElement(H,{open:h,onClose:C,fullWidth:!0,maxWidth:"md","aria-label":p.name,BackdropProps:{sx:{bgcolor:S("OverlayColor",void 0)}},PaperProps:{sx:{m:{xs:1,sm:4},width:{xs:"calc(100% - 16px)",sm:"calc(100% - 64px)"},maxHeight:"calc(100% - 32px)"}}},w)}function jy(l){var o,t=l.states,n=l.actions,i=l.styles,r=fe(),u=(null==t||null===(o=t.cardItems)||void 0===o?void 0:o.items)||[],a=Ey(t),d=a.subTotal,v=function(e,l){return sy(i,"RetailCartDetails".concat(e),l)},s=v("HeadingColor",r.palette.text.primary),c=v("MutedTextColor",r.palette.text.secondary),m=v("DividerColor",r.palette.divider),p={bgcolor:v("ButtonBackgroundColor",r.palette.primary.main),color:v("ButtonTextColor",r.palette.primary.contrastText),borderRadius:cy(i,"RetailCartDetailsButtonBorderRadius","".concat(r.shape.borderRadius,"px")),py:1.5,"&:hover":{bgcolor:v("ButtonBackgroundColor",r.palette.primary.dark),filter:"brightness(0.95)"}},y={color:v("QuantityIconColor",r.palette.text.primary),bgcolor:v("QuantityButtonBackgroundColor",r.palette.background.paper),borderRadius:"inherit"};return e.createElement(g,{component:"section",sx:{display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",md:"minmax(0, 1fr) minmax(280px, 360px)"},gap:{xs:3,md:5},p:{xs:2,sm:3,md:6},bgcolor:v("BackgroundColor",r.palette.background.default),color:v("TextColor",r.palette.text.primary)}},e.createElement(g,{sx:{minWidth:0}},e.createElement(x,{variant:"overline",sx:{color:c}},"Your bag"),e.createElement(f,{direction:"row",spacing:1.5,alignItems:"baseline",flexWrap:"wrap",useFlexGap:!0},e.createElement(x,{variant:"h3",component:"h1",sx:{color:s,fontSize:{xs:"1.75rem",md:"2.375rem"}}},"Shopping cart"),e.createElement(x,{variant:"body2",sx:{color:c}},"(",u.reduce(function(e,l){return e+Ly(l)},0)," ","items)")),e.createElement(S,{sx:{width:56,borderBottomWidth:3,borderColor:m,my:2.5}}),e.createElement(f,{spacing:1,sx:{mb:2}},e.createElement(x,{variant:"body2"},d>=1999?"Congratulations! You get free shipping.":"Add ".concat(uy(1999-d)," for free shipping.")),e.createElement(ae,{variant:"determinate",value:Math.min(100,d/1999*100),sx:{height:4,borderRadius:1,bgcolor:"action.hover","& .MuiLinearProgress-bar":{bgcolor:v("ProgressColor",r.palette.primary.main)}}})),u.length?u.map(function(l,o){var i=ky(l,null==t?void 0:t.storeImagesBaseUrl);return e.createElement(g,{key:(null==l?void 0:l.cartItemId)||i.id||"".concat(i.name,"-").concat(o),sx:{display:"grid",gridTemplateColumns:{xs:"56px minmax(0, 1fr) auto",sm:"72px minmax(0, 1fr) auto auto"},alignItems:"center",gap:{xs:1.5,sm:2},py:2.5,borderBottom:1,borderColor:m}},e.createElement(g,{sx:{width:{xs:56,sm:72},height:{xs:70,sm:88},bgcolor:"action.hover",borderRadius:1,overflow:"hidden"}},i.image&&e.createElement(g,{component:"img",src:i.image,alt:i.name,sx:{width:"100%",height:"100%",objectFit:"contain"}})),e.createElement(f,{spacing:.75,sx:{minWidth:0}},e.createElement(x,{variant:"subtitle1",component:"h2",sx:{color:s,overflowWrap:"anywhere"}},i.name),e.createElement(x,{variant:"body2",sx:{color:c}},uy(i.price)),e.createElement(f,{direction:"row",alignItems:"center",sx:{width:"fit-content",border:1,borderColor:v("QuantityButtonBorderColor",r.palette.divider),borderRadius:1}},e.createElement(b,{size:"small",onClick:function(){return function(e){var l,o;Ly(e)<=1?null==n||null===(l=n.handleRemoveFromCart)||void 0===l||l.call(n,e):null==n||null===(o=n.updateItemFromCardDecByOne)||void 0===o||o.call(n,e)}(l)},"aria-label":"Decrease ".concat(i.name),sx:y},e.createElement(dl,{fontSize:"small"})),e.createElement(x,{variant:"body2",sx:{minWidth:32,textAlign:"center"}},Ly(l)),e.createElement(b,{size:"small",onClick:function(){var e;return null==n||null===(e=n.updateItemFromCardAddByOne)||void 0===e?void 0:e.call(n,l)},"aria-label":"Increase ".concat(i.name),sx:y},e.createElement(ul,{fontSize:"small"})))),e.createElement(x,{fontWeight:700,sx:{whiteSpace:"nowrap",fontSize:{xs:"0.875rem",sm:"1rem"}}},uy(Iy(l))),e.createElement(b,{onClick:function(){var e;return null==n||null===(e=n.handleRemoveFromCart)||void 0===e?void 0:e.call(n,l)},"aria-label":"Remove ".concat(i.name),sx:{color:c,gridColumn:{xs:3,sm:"auto"},justifySelf:"end"}},e.createElement(al,null)))}):e.createElement(f,{spacing:1.5,alignItems:"center",sx:{py:6,textAlign:"center"}},e.createElement(x,{variant:"h5",component:"h2",sx:{color:s}},"Your cart is empty"),e.createElement(C,{onClick:function(){var e;return null==n||null===(e=n.navigateToHome)||void 0===e?void 0:e.call(n)}},"Continue shopping"))),e.createElement(A,{component:"aside",elevation:0,sx:{alignSelf:"start",minWidth:0,p:3,bgcolor:v("SummaryBackgroundColor",r.palette.background.paper),color:v("SummaryTextColor",r.palette.text.primary)}},e.createElement(f,{spacing:2.5},e.createElement(x,{variant:"h5",component:"h2"},"Order summary"),e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,null,"Subtotal"),e.createElement(x,{fontWeight:700},uy(a.subTotal))),e.createElement(x,{variant:"body2",sx:{color:c}},"Delivery charges and tax are calculated at checkout."),e.createElement(C,{variant:"contained",fullWidth:!0,disabled:!u.length,onClick:function(){var e;return null==n||null===(e=n.naviagateCheckout)||void 0===e?void 0:e.call(n)},sx:p},"Continue to checkout"))))}var Ny={firstName:"",lastName:"",phone:"",email:"",address:"",city:""};function Vy(l){var t,n,i,r,u,a,d,v=l.states,s=l.actions,c=l.styles,m=l.layout,p=l.PaymentComponent,y=kl(o(Ny),2),h=y[0],b=y[1],T=kl(o(""),2),w=T[0],k=T[1],I=kl(o(!1),2),E=I[0],M=I[1],D=kl(o(!1),2),O=D[0],B=D[1],F=(null==v||null===(t=v.cardItems)||void 0===t?void 0:t.items)||[],W=(null==v?void 0:v.paymentMethod)||"cash",z=Ey(v,W),R=(null==v||null===(n=v.franchise)||void 0===n?void 0:n.configurations)||{},H=!1!==(null==R?void 0:R.isCardAvailableOnStore)&&!1!==(null==R?void 0:R.isCardAvailableOnDelivery),j=!0===(null==v||null===(i=v.franchise)||void 0===i||null===(i=i.configurations)||void 0===i?void 0:i.isEnabledDeliveryLocation)||"true"===(null==v||null===(r=v.franchise)||void 0===r||null===(r=r.configurations)||void 0===r?void 0:r.isEnabledDeliveryLocation),N=fe(),V=null==m||null===(u=m.defaultLayout)||void 0===u||null===(u=u.header)||void 0===u?void 0:u.find(function(e){return"RetailHeader"===(null==e?void 0:e.component)}),U=gy(ay(null==V?void 0:V.props,"logoImage","")||(null==v||null===(a=v.franchise)||void 0===a?void 0:a.imageURL),null==v?void 0:v.storeImagesBaseUrl),_=(null==v||null===(d=v.franchise)||void 0===d?void 0:d.name)||"EGORA",q=function(e,l){return sy(c,"RetailCheckout".concat(e),l)},G={color:q("HeadingColor",N.palette.text.primary),mt:2},K=q("DescriptionColor",N.palette.text.secondary),X={"& .MuiOutlinedInput-root":{bgcolor:q("InputBackgroundColor",N.palette.background.paper),color:q("InputTextColor",N.palette.text.primary),borderRadius:cy(c,"RetailCheckoutInputBorderRadius","".concat(N.shape.borderRadius,"px")),"& fieldset":{borderColor:q("InputBorderColor",N.palette.divider)}},"& .MuiInputLabel-root":{color:q("InputTextColor",N.palette.text.secondary)}},J={py:1.75,bgcolor:q("ButtonBackgroundColor",N.palette.primary.main),color:q("ButtonTextColor",N.palette.primary.contrastText),borderRadius:cy(c,"RetailCheckoutButtonBorderRadius","".concat(N.shape.borderRadius,"px")),"&:hover":{bgcolor:q("ButtonBackgroundColor",N.palette.primary.dark),filter:"brightness(0.95)"}},ee={mx:0,mb:1,px:1,py:.5,border:1,bgcolor:q("InputBackgroundColor",N.palette.background.paper),color:q("InputTextColor",N.palette.text.primary),borderColor:q("InputBorderColor",N.palette.divider),borderRadius:cy(c,"RetailCheckoutInputBorderRadius","".concat(N.shape.borderRadius,"px"))},le=function(e){var l=e.target,o=l.name,t=l.value;b(function(e){return Cl(Cl({},e),{},hl({},o,t))})},oe=function(){var e=gl(Tl().m(function e(){var l,o,t;return Tl().w(function(e){for(;;)switch(e.p=e.n){case 0:return k(""),B(!0),e.p=1,e.n=2,null==s||null===(l=s.handleLocateMe)||void 0===l?void 0:l.call(s);case 2:null!=(o=e.v)&&o.address&&b(function(e){return Cl(Cl({},e),{},{address:o.address})}),e.n=4;break;case 3:e.p=3,t=e.v,k((null==t?void 0:t.message)||"We could not get your current location.");case 4:return e.p=4,B(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}(),te=function(){var e=gl(Tl().m(function e(l){var o,t,n,i,r,u,a,d,c,m;return Tl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(l.preventDefault(),k(""),F.length){e.n=1;break}return k("Your cart is empty."),e.a(2);case 1:if(!j||null!=v&&v.latLongForDelivery){e.n=2;break}return k("Use your current location before placing a delivery order."),e.a(2);case 2:if(M(!0),o={firstName:h.firstName.trim(),lastName:h.lastName.trim(),phone:h.phone.trim(),email:h.email.trim(),address:{street:h.address.trim(),area:"",city:h.city.trim()}},e.p=3,r=Cl(Cl({},z.orderPayload),{},{customer:o}),"card"!==W){e.n=5;break}return e.n=4,null==s||null===(u=s.handlePlaceOrderFromCard)||void 0===u?void 0:u.call(s,r);case 4:return e.a(2);case 5:return e.n=6,null==s||null===(t=s.handlePlaceOrder)||void 0===t?void 0:t.call(s,r);case 6:a=e.v,(d=(null==a||null===(n=a.data)||void 0===n?void 0:n.id)||(null==a||null===(i=a.data)||void 0===i?void 0:i._id))?null==s||null===(c=s.naviagateOrderSuccess)||void 0===c||c.call(s,d):k((null==v?void 0:v.errorForPlaceOrder)||"We could not place your order. Please try again."),e.n=8;break;case 7:e.p=7,m=e.v,k((null==m?void 0:m.message)||"We could not place your order. Please try again.");case 8:return e.p=8,M(!1),e.f(8);case 9:return e.a(2)}},e,null,[[3,7,8,9]])}));return function(l){return e.apply(this,arguments)}}();return e.createElement(g,{component:"section",sx:{minHeight:"100%",bgcolor:q("BackgroundColor",N.palette.background.default),color:q("TextColor",N.palette.text.primary)}},e.createElement(f,{component:"header",direction:"row",spacing:1,alignItems:"center",sx:{minHeight:70,px:{xs:2,md:"7%"},bgcolor:q("HeaderBackgroundColor",N.palette.primary.main),color:q("HeaderTextColor",N.palette.primary.contrastText)}},e.createElement(C,{"aria-label":"".concat(_," home"),onClick:function(){var e;return null==s||null===(e=s.navigateToHome)||void 0===e?void 0:e.call(s)},sx:{p:0,minWidth:0,flexGrow:1,justifyContent:"flex-start"}},U?e.createElement(g,{component:"img",src:U,alt:"".concat(_," logo"),sx:{width:"auto",maxWidth:{xs:130,sm:180},height:48,objectFit:"contain"}}):e.createElement(f,{direction:"row",spacing:1,alignItems:"baseline"},e.createElement(x,{variant:"h5",component:"span",color:"inherit"},_),e.createElement(x,{variant:"caption",color:"inherit"},"POS"))),e.createElement(ol,null)),e.createElement(g,{component:"main",sx:{display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",md:"minmax(0, 1fr) minmax(280px, 400px)"},gap:{xs:3,md:6},maxWidth:1100,mx:"auto",px:{xs:2,sm:3},py:{xs:3,md:6}}},e.createElement(f,{component:"form",onSubmit:te,spacing:2,sx:{minWidth:0}},e.createElement(x,{variant:"overline",sx:{color:K}},"Delivery checkout"),e.createElement(x,{variant:"h5",component:"h2",sx:G},"Contact details"),e.createElement(g,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"1fr 1fr"},gap:2}},e.createElement(P,{fullWidth:!0,required:!0,name:"firstName",value:h.firstName,onChange:le,label:"First name",autoComplete:"given-name",sx:X}),e.createElement(P,{fullWidth:!0,required:!0,name:"lastName",value:h.lastName,onChange:le,label:"Last name",autoComplete:"family-name",sx:X})),e.createElement(P,{required:!0,name:"phone",value:h.phone,onChange:le,label:"Phone number",type:"tel",autoComplete:"tel",sx:X}),e.createElement(P,{name:"email",value:h.email,onChange:le,label:"Email (optional)",type:"email",autoComplete:"email",sx:X}),e.createElement(x,{variant:"h5",component:"h2",sx:G},"Delivery address"),j&&e.createElement(C,{variant:"outlined",startIcon:e.createElement(sl,null),onClick:oe,disabled:O,sx:{alignSelf:"start"}},O?"Getting location...":"Use my current location"),e.createElement(P,{required:!0,name:"address",value:h.address,onChange:le,label:"Street address",autoComplete:"street-address",sx:X}),e.createElement(P,{required:!0,name:"city",value:h.city,onChange:le,label:"City",autoComplete:"address-level2",sx:X}),e.createElement(L,{component:"fieldset"},e.createElement(me,{component:"legend",sx:Cl(Cl({},G),{},{typography:"h5",mb:2})},"Payment"),e.createElement(Q,{name:"retail-payment-method",value:W,onChange:function(e){var l;return null==s||null===(l=s.handleSetPaymentMethod)||void 0===l?void 0:l.call(s,e.target.value)}},e.createElement(Y,{value:"cash",control:e.createElement($,null),label:"Cash on delivery",sx:ee}),H&&e.createElement(Y,{value:"card",control:e.createElement($,null),label:"Credit / Debit Card",sx:ee}))),"card"===W&&p&&e.createElement(p,{actions:s,prop:{},styles:c,states:v}),z.deliveryMessage&&e.createElement(x,{variant:"body2",sx:{color:K}},z.deliveryMessage),"card"!==W&&(w||(null==v?void 0:v.errorForPlaceOrder))&&e.createElement(Z,{severity:"error"},w||(null==v?void 0:v.errorForPlaceOrder)),"card"!==W&&e.createElement(C,{variant:"contained",type:"submit",disabled:E||!F.length,sx:J},E?"Placing order...":"Place delivery order · ".concat(uy(z.total)))),e.createElement(A,{component:"aside",elevation:0,sx:{alignSelf:"start",minWidth:0,p:{xs:2,sm:3},bgcolor:q("SummaryBackgroundColor",N.palette.background.paper),color:q("SummaryTextColor",N.palette.text.primary)}},e.createElement(f,{spacing:2.5},e.createElement(x,{variant:"h5",component:"h2"},"Order summary"),e.createElement(f,{spacing:2},F.map(function(l,o){var t=ky(l,null==v?void 0:v.storeImagesBaseUrl);return e.createElement(g,{key:(null==l?void 0:l.cartItemId)||t.id||"".concat(t.name,"-").concat(o),sx:{display:"grid",gridTemplateColumns:"56px minmax(0, 1fr) auto",gap:1.25,alignItems:"center"}},e.createElement(g,{sx:{width:56,height:68,overflow:"hidden",borderRadius:1,bgcolor:"action.hover"}},t.image&&e.createElement(g,{component:"img",src:t.image,alt:t.name,sx:{width:"100%",height:"100%",objectFit:"contain"}})),e.createElement(f,{spacing:.5,sx:{minWidth:0}},e.createElement(x,{variant:"subtitle2",sx:{overflowWrap:"anywhere"}},t.name),e.createElement(x,{variant:"caption",sx:{color:K}},"Qty ",Ly(l))),e.createElement(x,{variant:"body2",fontWeight:700,sx:{whiteSpace:"nowrap"}},uy(Iy(l))))})),e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,null,"Subtotal"),e.createElement(x,{fontWeight:700},uy(z.subTotal))),z.discount>0&&e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,null,"Discount"),e.createElement(x,{fontWeight:700},"-".concat(uy(z.discount)))),z.serviceFees>0&&e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,null,"Service fee"),e.createElement(x,{fontWeight:700},uy(z.serviceFees))),z.platformFees>0&&e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,null,"Platform fee"),e.createElement(x,{fontWeight:700},uy(z.platformFees))),e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,null,"Delivery"),e.createElement(x,{fontWeight:700},uy(z.deliveryFees))),z.tax>0&&e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,null,"Tax"),e.createElement(x,{fontWeight:700},uy(z.tax))),e.createElement(S,{sx:{borderColor:q("InputBorderColor",N.palette.divider)}}),e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,{variant:"h6"},"Total"),e.createElement(x,{variant:"h6"},uy(z.total)))))))}var Uy="#6d7175",_y="#dedede",qy="#f7f7f7";function Gy(l){var o=l.title,t=l.children;return e.createElement(f,{spacing:.75,sx:{minWidth:0,overflowWrap:"anywhere"}},e.createElement(x,{component:"h3",variant:"subtitle2",sx:{fontWeight:600}},o),e.createElement(g,{sx:{fontSize:14,lineHeight:1.65}},t))}function Qy(l){var o=l.label,t=l.children,n=l.total,i=void 0!==n&&n;return e.createElement(f,{direction:"row",justifyContent:"space-between",alignItems:"baseline",spacing:2},e.createElement(x,{sx:{fontSize:i?20:14,fontWeight:i?600:400}},o),e.createElement(x,{component:"div",sx:{fontSize:i?23:14,fontWeight:i?700:500,textAlign:"right"}},t))}function Yy(l){var t=l.src,n=l.name,i=l.quantity,r=kl(o(""),2),u=r[0],a=r[1];return e.createElement(g,{sx:{position:"relative",width:66,height:76,flexShrink:0}},e.createElement(g,{sx:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid ".concat(_y),borderRadius:"10px",bgcolor:"#fff",overflow:"hidden"}},t&&t!==u?e.createElement(g,{component:"img",src:t,alt:n,onError:function(){return a(t)},sx:{width:"100%",height:"100%",objectFit:"contain"}}):e.createElement(nl,{"aria-label":n,sx:{color:"#9a9a9a",fontSize:27}})),e.createElement(g,{component:"span","aria-label":"Quantity: ".concat(i),sx:{position:"absolute",right:-9,top:-9,minWidth:23,height:23,px:.75,display:"flex",justifyContent:"center",alignItems:"center",bgcolor:"#686868",color:"#fff",borderRadius:"20px",fontSize:12,fontWeight:600}},i))}var $y=function(e){return null!=e&&e.isComplimentary?0:Iy(e)};function Zy(l){var t,n,i,r,u,a,d,v=l.order,s=l.actions,c=l.layout,m=l.states,p=kl(o(""),2),y=p[0],h=p[1],b=(null==v?void 0:v.customer)||{},T=(null==b?void 0:b.address)||{},w=(null==m?void 0:m.franchise)||{},k=(null==v?void 0:v.billNumber)||(null==v?void 0:v.id)||(null==v?void 0:v._id)||"",L=Array.isArray(null==v?void 0:v.items)?v.items.filter(function(e){return!(null!=e&&e.isVoidItem)}):[],I=null==c||null===(t=c.defaultLayout)||void 0===t||null===(t=t.header)||void 0===t?void 0:t.find(function(e){return"RetailHeader"===(null==e?void 0:e.component)}),E=null==c||null===(n=c.defaultLayout)||void 0===n||null===(n=n.footer)||void 0===n?void 0:n.find(function(e){return"RetailFooter"===(null==e?void 0:e.component)}),P=null==c||null===(i=c.cartCheckoutSummaryLayout)||void 0===i||null===(i=i.body)||void 0===i?void 0:i.find(function(e){return"RetailCheckout"===(null==e?void 0:e.component)}),M=(null==c?void 0:c.selectedColor)||(null==c?void 0:c.defaultColor)||"Black",D=my(null==P?void 0:P.styles,null==c||null===(r=c.themeColors)||void 0===r?void 0:r[M]),O=sy(D,"RetailCheckoutButtonBackgroundColor","#202a35"),B=sy(D,"RetailCheckoutButtonTextColor","#fff"),F=(null==w?void 0:w.name)||(null==v||null===(u=v.venueId)||void 0===u?void 0:u.name)||"Store",W=gy(ay(null==I?void 0:I.props,"logoImage","")||(null==w?void 0:w.imageURL),null==m?void 0:m.storeImagesBaseUrl),z=ay(null==E?void 0:E.props,"links",[]),R=(Array.isArray(z)?z:[]).filter(function(e){return(null==e?void 0:e.url)&&/^(https?:\/\/|mailto:|tel:|\/)/i.test(e.url)}),H=R.find(function(e){return/contact|support/i.test(e.label||e.name||"")}),j=(null==H?void 0:H.url)||(null!=v&&null!==(a=v.venueId)&&void 0!==a&&a.venuePhoneNumber?"tel:".concat(v.venueId.venuePhoneNumber):""),N=[b.firstName,b.lastName].filter(Boolean).join(" "),V=[T.street,T.area,[T.city,T.postalCode].filter(Boolean).join(", "),T.country].filter(Boolean),_="cash"===(null==v?void 0:v.paymentType),q="card"===(null==v?void 0:v.paymentType),G=_?"Cash on Delivery (COD)":"Card payment",Q=null!==(d=null==v?void 0:v.subTotal)&&void 0!==d?d:L.reduce(function(e,l){return e+$y(l)},0),Y=[["Tax",null==v?void 0:v.tax],["Service fee",null==v?void 0:v.serviceFees],["Platform fee",null==v?void 0:v.platformFees],["Tip",null==v?void 0:v.tip]].filter(function(e){var l=kl(e,2)[1];return xy(l)>0});return e.createElement(g,{sx:{minHeight:"100vh",bgcolor:"#fff",color:"#202223"}},e.createElement(g,{component:"header",sx:{borderBottom:"1px solid ".concat(_y)}},e.createElement(g,{sx:{maxWidth:1150,mx:"auto",px:{xs:2.5,sm:3},py:2.5}},e.createElement(ie,{"aria-label":"".concat(F," home"),onClick:function(){var e;return null==s||null===(e=s.navigateToHome)||void 0===e?void 0:e.call(s)},sx:{borderRadius:1,minHeight:40,"&.Mui-focusVisible":{outline:"2px solid",outlineOffset:4}}},W&&W!==y?e.createElement(g,{component:"img",src:W,alt:"".concat(F," logo"),onError:function(){return h(W)},sx:{display:"block",width:"auto",maxWidth:180,height:42,objectFit:"contain"}}):e.createElement(x,{component:"span",sx:{fontSize:25,fontWeight:800,letterSpacing:"-0.04em"}},F)))),e.createElement(g,{component:"main",sx:{display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",md:"minmax(24px, 1fr) minmax(0, 600px) minmax(0, 500px) minmax(24px, 1fr)"},minHeight:"calc(100vh - 83px)","&::after":{content:{md:'""'},gridColumn:4,gridRow:1,bgcolor:qy}}},e.createElement(f,{component:"section","aria-labelledby":"order-confirmation-heading",spacing:3,sx:{gridColumn:{md:2},gridRow:{md:1},minWidth:0,px:{xs:2.5,sm:3,md:0},pr:{md:5},py:{xs:4,md:5}}},e.createElement(f,{direction:"row",spacing:2,alignItems:"center",sx:{mb:{md:1.5}}},e.createElement(g,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:50,height:50,border:"2px solid",borderColor:O,color:O,borderRadius:"50%",flexShrink:0}},e.createElement(rl,{sx:{fontSize:29}})),e.createElement(g,{sx:{minWidth:0}},e.createElement(x,{sx:{fontSize:13,color:Uy,overflowWrap:"anywhere",mb:.25}},"Confirmation #",k),e.createElement(x,{id:"order-confirmation-heading",variant:"h4",component:"h1",sx:{fontSize:{xs:23,sm:26},fontWeight:600,overflowWrap:"anywhere"}},"Thank you",b.firstName?", ".concat(b.firstName):"","!"))),e.createElement(A,{variant:"outlined",sx:{p:2.25,borderRadius:"10px",borderColor:_y,color:"inherit",bgcolor:"#fff"}},e.createElement(x,{component:"h2",sx:{fontSize:16,fontWeight:600,mb:1}},"Your order is confirmed"),e.createElement(x,{sx:{fontSize:14,lineHeight:1.6}},"Your delivery order has been placed successfully.")),e.createElement(A,{variant:"outlined",sx:{p:2.25,borderRadius:"10px",borderColor:_y,color:"inherit",bgcolor:"#fff"}},e.createElement(x,{component:"h2",sx:{fontSize:16,fontWeight:600,mb:2}},"Order details"),e.createElement(g,{sx:{display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",sm:"repeat(2, minmax(0, 1fr))"},gap:3}},e.createElement(f,{spacing:2.5},(b.email||b.phone)&&e.createElement(Gy,{title:"Contact information"},b.email&&e.createElement(g,null,b.email),b.phone&&e.createElement(g,null,b.phone)),(N||V.length>0)&&e.createElement(Gy,{title:"Shipping address"},N&&e.createElement(g,null,N),V.map(function(l,o){return e.createElement(g,{key:"".concat(l,"-").concat(o)},l)}))),e.createElement(f,{spacing:2.5},(_||q)&&e.createElement(Gy,{title:"Payment method"},e.createElement(f,{direction:"row",spacing:1,alignItems:"center",sx:{mb:.5}},_?e.createElement(cl,{sx:{color:Uy,fontSize:23}}):e.createElement(ml,{sx:{color:Uy,fontSize:23}}),e.createElement(g,null,G)),null!=(null==v?void 0:v.total)&&e.createElement(g,null,uy(v.total))),e.createElement(Gy,{title:"Shipping method"},"Delivery")))),e.createElement(f,{direction:{xs:"column-reverse",sm:"row"},spacing:2.5,alignItems:{xs:"stretch",sm:"center"},justifyContent:j?"space-between":"flex-end",sx:{pt:.5}},j&&e.createElement(x,{sx:{fontSize:14}},"Need help?"," ",e.createElement(U,{href:j,sx:{color:O,textDecoration:"underline"}},"Contact us")),e.createElement(C,{variant:"contained",size:"large",onClick:function(){var e;return null==s||null===(e=s.navigateToHome)||void 0===e?void 0:e.call(s)},sx:{bgcolor:O,color:B,borderRadius:"7px",py:1.75,px:2.5,fontSize:14,boxShadow:"none","&:hover":{bgcolor:O,filter:"brightness(0.9)",boxShadow:"none"}}},"Continue shopping")),R.length>0&&e.createElement(g,{component:"footer",sx:{mt:"auto !important",pt:{xs:3,md:8}}},e.createElement(f,{component:"nav","aria-label":"Store information",direction:"row",flexWrap:"wrap",gap:2},R.map(function(l,o){return e.createElement(U,{key:"".concat(l.url,"-").concat(o),href:l.url,sx:{fontSize:12,color:O,textDecoration:"underline"}},l.label||l.name||"Store information")})))),e.createElement(g,{component:"aside","aria-labelledby":"order-summary-heading",sx:{gridColumn:{md:3},gridRow:{md:1},minWidth:0,bgcolor:qy,borderLeft:{md:"1px solid ".concat(_y)},borderTop:{xs:"1px solid ".concat(_y),md:0},px:{xs:2.5,sm:3,md:5},py:{xs:3,md:5}}},e.createElement(x,{id:"order-summary-heading",component:"h2",sx:{fontSize:16,fontWeight:600,mb:3}},"Order summary"),e.createElement(f,{component:"ul",spacing:2.5,sx:{listStyle:"none",m:0,p:0}},L.map(function(l,o){var t,n=ky(l,null==m?void 0:m.storeImagesBaseUrl),i=(Array.isArray(null==l?void 0:l.groups)?l.groups:[]).flatMap(function(e){return(Array.isArray(null==e?void 0:e.items)?e.items:[]).map(function(e){return(null==e?void 0:e.item)||(null==e?void 0:e.name)})}).filter(Boolean),r=null==l||null===(t=l.selectedVariant)||void 0===t?void 0:t.name;return e.createElement(f,{component:"li",key:(null==l?void 0:l.cartItemId)||"".concat(n.id,"-").concat(o),direction:"row",spacing:2,alignItems:"center"},e.createElement(Yy,{src:n.image,name:n.name,quantity:Ly(l)}),e.createElement(g,{sx:{flex:1,minWidth:0,overflowWrap:"anywhere"}},e.createElement(x,{sx:{fontSize:14,fontWeight:500}},n.name),r&&e.createElement(x,{sx:{fontSize:12,color:Uy,mt:.5}},r),i.length>0&&e.createElement(x,{sx:{fontSize:12,color:Uy,mt:.5}},i.join(", "))),e.createElement(x,{sx:{fontSize:14,fontWeight:500,flexShrink:0}},uy($y(l))))})),!L.length&&e.createElement(x,{sx:{fontSize:14,color:Uy}},"Item details are unavailable."),e.createElement(S,{sx:{my:3,borderColor:_y}}),e.createElement(f,{spacing:1.25},e.createElement(Qy,{label:"Subtotal"},uy(Q)),xy(null==v?void 0:v.discount)>0&&e.createElement(Qy,{label:"Discount"},"−",uy(v.discount)),xy(null==v?void 0:v.promotion)>0&&e.createElement(Qy,{label:"Promotion"},"−",uy(v.promotion)),null!=(null==v?void 0:v.deliveryFees)&&e.createElement(Qy,{label:"Shipping"},0===xy(v.deliveryFees)?"Free":uy(v.deliveryFees)),Y.map(function(l){var o=kl(l,2),t=o[0],n=o[1];return e.createElement(Qy,{key:t,label:t},uy(n))}),0!==xy(null==v?void 0:v.rounding)&&e.createElement(Qy,{label:"Rounding"},uy(v.rounding))),e.createElement(S,{sx:{my:2.5,borderColor:_y}}),e.createElement(Qy,{label:"Total",total:!0},e.createElement(g,{component:"span",sx:{color:Uy,fontSize:12,fontWeight:400,mr:1}},"PKR"),null!=(null==v?void 0:v.total)?uy(v.total):"—"))))}function Ky(l){var o=l.actions,t=l.layout,n=l.prop,i=l.styles,r=l.themeColors,u=fe(),a=my(i,r),d=py(t),v=ay(n,"links",[]),s=Array.isArray(v)?v:[],c=sy(a,"FooterTextColor",u.palette.text.primary),m=sy(a,"FooterLinkColor",c),p=d.length?d:["Categories","Azadi Bundles","Hair","Face","Beard","Build Your Own Bundle","Fragrance","Best Sellers","All Products","Deals","Gifts","Blog","Loyalty Rewards","Order Tracker"];return e.createElement(g,{component:"footer",sx:{px:{xs:3,md:7},pt:7,pb:2.5,color:c,background:sy(a,"FooterBackgroundColor",u.palette.background.paper)}},e.createElement(g,{sx:{display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",sm:"repeat(2, minmax(0, 1fr))",lg:"repeat(4, minmax(0, 1fr))"},gap:4.5}},e.createElement(f,{alignItems:"flex-start",spacing:.5},e.createElement(x,{component:"h3",variant:"subtitle2",sx:{mb:1.5,textTransform:"uppercase"}},"Menu"),p.map(function(l,t){return e.createElement(C,{key:(null==l?void 0:l.id)||(null==l?void 0:l._id)||"".concat((null==l?void 0:l.name)||l,"-").concat(t),onClick:function(){return function(e){var l,t;null==o||null===(l=o.handleCategoryClick)||void 0===l||l.call(o,e),null===(t=document.getElementById("retail-products"))||void 0===t||t.scrollIntoView({behavior:"smooth",block:"start"})}("string"==typeof l?{name:l}:l)},sx:{color:m,p:.5,textTransform:"none",justifyContent:"flex-start"}},(null==l?void 0:l.name)||(null==l?void 0:l.title)||l)})),e.createElement(f,{alignItems:"flex-start",spacing:1},e.createElement(x,{component:"h3",variant:"subtitle2",sx:{mb:.5,textTransform:"uppercase"}},"Menu"),(s.length?s:["Track Your Order","Search","About us","Be Our Distributor","FAQ","Careers","Contact Us","Privacy Policy","Refund Policy","Terms of Service","Other Stores"].map(function(e){return{label:e,url:"#top"}})).map(function(l,o){return e.createElement(U,{key:"".concat((null==l?void 0:l.label)||(null==l?void 0:l.name),"-").concat(o),href:(null==l?void 0:l.url)||"#top",variant:"body2",sx:{color:m}},(null==l?void 0:l.label)||(null==l?void 0:l.name))})),e.createElement(f,{spacing:1.5},e.createElement(x,{component:"h3",variant:"subtitle2",sx:{textTransform:"uppercase"}},"Mini Bio"),e.createElement(x,{variant:"body2"},"Egora POS is a simple solution for sales, inventory and customer management. We help growing businesses spend less time on admin and more time serving customers."),e.createElement(x,{variant:"subtitle2"},"Store locations:")),e.createElement(f,{alignItems:"flex-start",spacing:1},e.createElement(x,{component:"h3",variant:"subtitle2",sx:{mb:.5,textTransform:"uppercase"}},"Contact"),e.createElement(U,{href:"mailto:support@egora.com",variant:"body2",sx:{color:m,overflowWrap:"anywhere"}},"support@egora.com"),e.createElement(U,{href:"tel:+923000000000",variant:"body2",sx:{color:m}},"+92 300 0000000"),e.createElement(x,{variant:"body2"},"◉ ◎ ♪ ▶"))),e.createElement(f,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",spacing:1,sx:{mt:4.5,pt:2,borderTop:1,borderColor:"divider"}},e.createElement(x,{variant:"caption"},"Managed By Zain"),e.createElement(x,{variant:"caption"},"© ",(new Date).getFullYear()," Egora")))}export{ha as AllCategoriesPage,ba as AllCategoriesPageV2,Ga as AnnouncementsBanner,Qa as CartBottomBar,Na as CartCheckoutSummary,Ht as CartDrawer,Pa as CategoryCarousel,Ia as CategoryGrouping,Ma as CustomerInfoModal,rp as EditorTextBlock,Sa as Footer,wa as Footer2,Cu as Header,wu as HeroCarousel,Ca as InfoBlock,da as ItemDetailModal,bu as LocationModal,_a as OrderSuccessPage,sa as PopularMenuSection,ma as PopularMenuSectionV2,Zp as PromotionBanner,My as RetailAnnouncement,jy as RetailCartDetails,Ay as RetailCartDrawer,Fy as RetailCategoryCarousel,Vy as RetailCheckout,Ky as RetailFooter,Dy as RetailHeader,By as RetailHero,Hy as RetailItemDetailModal,Zy as RetailOrderSuccess,Wy as RetailProductGrid,Oy as RetailSearch,pp as Review,Ua as ReviewModal,ku as SearchBar,ey as SocialPage,jp as StoreBannerPopup,qa as TextBlock};
|
|
29
|
+
/*! https://mths.be/punycode v1.4.1 by @mathias */function hd(e){throw new RangeError(pd[e])}function fd(e,l){return e+22+75*(e<26)-((0!=l)<<5)}function xd(e,l,o){var t=0;for(e=o?yd(e/700):e>>1,e+=yd(e/l);e>455;t+=36)e=yd(e/35);return yd(t+36*e/(e+38))}function bd(e){return function(e,l){var o=e.split("@"),t="";o.length>1&&(t=o[0]+"@",e=o[1]);var n=function(e,l){for(var o=e.length,t=[];o--;)t[o]=l(e[o]);return t}((e=e.replace(md,".")).split("."),l).join(".");return t+n}(e,function(e){return cd.test(e)?"xn--"+function(e){var l,o,t,n,i,r,u,a,d,v,s,c,m,p,y,g=[];for(e=function(e){for(var l,o,t=[],n=0,i=e.length;n<i;)(l=e.charCodeAt(n++))>=55296&&l<=56319&&n<i?56320==(64512&(o=e.charCodeAt(n++)))?t.push(((1023&l)<<10)+(1023&o)+65536):(t.push(l),n--):t.push(l);return t}(e),c=e.length,l=128,o=0,i=72,r=0;r<c;++r)(s=e[r])<128&&g.push(gd(s));for(t=n=g.length,n&&g.push("-");t<c;){for(u=sd,r=0;r<c;++r)(s=e[r])>=l&&s<u&&(u=s);for(u-l>yd((sd-o)/(m=t+1))&&hd("overflow"),o+=(u-l)*m,l=u,r=0;r<c;++r)if((s=e[r])<l&&++o>sd&&hd("overflow"),s==l){for(a=o,d=36;!(a<(v=d<=i?1:d>=i+26?26:d-i));d+=36)y=a-v,p=36-v,g.push(gd(fd(v+y%p,0))),a=yd(y/p);g.push(gd(fd(a,0))),i=xd(o,m,t==n),o=0,++t}++o,++l}return g.join("")}(e):e})}function Cd(e){return null===e}function Sd(e){return"string"==typeof e}function Td(e){return"object"==typeof e&&null!==e}function wd(e,l){return Object.prototype.hasOwnProperty.call(e,l)}var kd=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Ld(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function Id(e,l){if(e.map)return e.map(l);for(var o=[],t=0;t<e.length;t++)o.push(l(e[t],t));return o}var Ed=Object.keys||function(e){var l=[];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&l.push(o);return l};function Pd(e,l,o,t){l=l||"&",o=o||"=";var n={};if("string"!=typeof e||0===e.length)return n;var i=/\+/g;e=e.split(l);var r=1e3;t&&"number"==typeof t.maxKeys&&(r=t.maxKeys);var u=e.length;r>0&&u>r&&(u=r);for(var a=0;a<u;++a){var d,v,s,c,m=e[a].replace(i,"%20"),p=m.indexOf(o);p>=0?(d=m.substr(0,p),v=m.substr(p+1)):(d=m,v=""),s=decodeURIComponent(d),c=decodeURIComponent(v),wd(n,s)?kd(n[s])?n[s].push(c):n[s]=[n[s],c]:n[s]=c}return n}function Md(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Dd=/^([a-z0-9.+-]+:)/i,Od=/:[0-9]*$/,Bd=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Fd=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Wd=["'"].concat(Fd),Ad=["%","/","?",";","#"].concat(Wd),zd=["/","?","#"],Rd=/^[+a-z0-9A-Z_-]{0,63}$/,Hd=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,jd={javascript:!0,"javascript:":!0},Nd={javascript:!0,"javascript:":!0},Vd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ud(e){if("string"==typeof e)e=(new Md).parse(e);else if(!(e instanceof Md))throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof e+String(e));if("file:"!==e.protocol)throw new TypeError("The URL must be of scheme file");return function(e){const l=e.pathname;for(let e=0;e<l.length;e++)if("%"===l[e]){const o=32|l.codePointAt(e+2);if("2"===l[e+1]&&102===o)throw new TypeError("must not include encoded / characters")}return decodeURIComponent(l)}(e)}function _d(e){var l=e.auth||"";l&&(l=(l=encodeURIComponent(l)).replace(/%3A/i,":"),l+="@");var o=e.protocol||"",t=e.pathname||"",n=e.hash||"",i=!1,r="";e.host?i=l+e.host:e.hostname&&(i=l+(-1===e.hostname.indexOf(":")?e.hostname:"["+this.hostname+"]"),e.port&&(i+=":"+e.port)),e.query&&Td(e.query)&&Object.keys(e.query).length&&(r=function(e,l,o,t){return l=l||"&",o=o||"=",null===e&&(e=void 0),"object"==typeof e?Id(Ed(e),function(t){var n=encodeURIComponent(Ld(t))+o;return kd(e[t])?Id(e[t],function(e){return n+encodeURIComponent(Ld(e))}).join(l):n+encodeURIComponent(Ld(e[t]))}).join(l):t?encodeURIComponent(Ld(t))+o+encodeURIComponent(Ld(e)):""}(e.query));var u=e.search||r&&"?"+r||"";return o&&":"!==o.substr(-1)&&(o+=":"),e.slashes||(!o||Vd[o])&&!1!==i?(i="//"+(i||""),t&&"/"!==t.charAt(0)&&(t="/"+t)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),u&&"?"!==u.charAt(0)&&(u="?"+u),o+i+(t=t.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(u=u.replace("#","%23"))+n}function qd(e){var l=e.host,o=Od.exec(l);o&&(":"!==(o=o[0])&&(e.port=o.substr(1)),l=l.substr(0,l.length-o.length)),l&&(e.hostname=l)}function Gd(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}Md.prototype.parse=function(e,l,o){return function(e,l,o,t){if(!Sd(l))throw new TypeError("Parameter 'url' must be a string, not "+typeof l);var n=l.indexOf("?"),i=-1!==n&&n<l.indexOf("#")?"?":"#",r=l.split(i),u=/\\/g;r[0]=r[0].replace(u,"/"),l=r.join(i);var a=l;if(a=a.trim(),!t&&1===l.split("#").length){var d=Bd.exec(a);if(d)return e.path=a,e.href=a,e.pathname=d[1],d[2]?(e.search=d[2],e.query=o?Pd(e.search.substr(1)):e.search.substr(1)):o&&(e.search="",e.query={}),e}var v,s,c,m,p=Dd.exec(a);if(p){var y=(p=p[0]).toLowerCase();e.protocol=y,a=a.substr(p.length)}if(t||p||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===a.substr(0,2);!g||p&&Nd[p]||(a=a.substr(2),e.slashes=!0)}if(!Nd[p]&&(g||p&&!Vd[p])){var h,f,x=-1;for(v=0;v<zd.length;v++)-1!==(s=a.indexOf(zd[v]))&&(-1===x||s<x)&&(x=s);for(-1!==(f=-1===x?a.lastIndexOf("@"):a.lastIndexOf("@",x))&&(h=a.slice(0,f),a=a.slice(f+1),e.auth=decodeURIComponent(h)),x=-1,v=0;v<Ad.length;v++)-1!==(s=a.indexOf(Ad[v]))&&(-1===x||s<x)&&(x=s);-1===x&&(x=a.length),e.host=a.slice(0,x),a=a.slice(x),qd(e),e.hostname=e.hostname||"";var b="["===e.hostname[0]&&"]"===e.hostname[e.hostname.length-1];if(!b){var C=e.hostname.split(/\./);for(v=0,c=C.length;v<c;v++){var S=C[v];if(S&&!S.match(Rd)){for(var T="",w=0,k=S.length;w<k;w++)S.charCodeAt(w)>127?T+="x":T+=S[w];if(!T.match(Rd)){var L=C.slice(0,v),I=C.slice(v+1),E=S.match(Hd);E&&(L.push(E[1]),I.unshift(E[2])),I.length&&(a="/"+I.join(".")+a),e.hostname=L.join(".");break}}}}e.hostname.length>255?e.hostname="":e.hostname=e.hostname.toLowerCase(),b||(e.hostname=bd(e.hostname)),m=e.port?":"+e.port:"";var P=e.hostname||"";e.host=P+m,e.href+=e.host,b&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!jd[y])for(v=0,c=Wd.length;v<c;v++){var M=Wd[v];if(-1!==a.indexOf(M)){var D=encodeURIComponent(M);D===M&&(D=escape(M)),a=a.split(M).join(D)}}var O=a.indexOf("#");-1!==O&&(e.hash=a.substr(O),a=a.slice(0,O));var B=a.indexOf("?");-1!==B?(e.search=a.substr(B),e.query=a.substr(B+1),o&&(e.query=Pd(e.query)),a=a.slice(0,B)):o&&(e.search="",e.query={});a&&(e.pathname=a);Vd[y]&&e.hostname&&!e.pathname&&(e.pathname="/");if(e.pathname||e.search){m=e.pathname||"";var F=e.search||"";e.path=m+F}return e.href=_d(e),e}(this,e,l,o)},Md.prototype.format=function(){return _d(this)},Md.prototype.resolve=function(e){return this.resolveObject(function(e,l,o){if(e&&Td(e)&&e instanceof Md)return e;var t=new Md;return t.parse(e,l,o),t}(e,!1,!0)).format()},Md.prototype.resolveObject=function(e){if(Sd(e)){var l=new Md;l.parse(e,!1,!0),e=l}for(var o,t=new Md,n=Object.keys(this),i=0;i<n.length;i++){var r=n[i];t[r]=this[r]}if(t.hash=e.hash,""===e.href)return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),a=0;a<u.length;a++){var d=u[a];"protocol"!==d&&(t[d]=e[d])}return Vd[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!Vd[e.protocol]){for(var v=Object.keys(e),s=0;s<v.length;s++){var c=v[s];t[c]=e[c]}return t.href=t.format(),t}if(t.protocol=e.protocol,e.host||Nd[e.protocol])t.pathname=e.pathname;else{for(o=(e.pathname||"").split("/");o.length&&!(e.host=o.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==o[0]&&o.unshift(""),o.length<2&&o.unshift(""),t.pathname=o.join("/")}if(t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,t.pathname||t.search){var m=t.pathname||"",p=t.search||"";t.path=m+p}return t.slashes=t.slashes||e.slashes,t.href=t.format(),t}var y,g=t.pathname&&"/"===t.pathname.charAt(0),h=e.host||e.pathname&&"/"===e.pathname.charAt(0),f=h||g||t.host&&e.pathname,x=f,b=t.pathname&&t.pathname.split("/")||[],C=t.protocol&&!Vd[t.protocol];if(o=e.pathname&&e.pathname.split("/")||[],C&&(t.hostname="",t.port=null,t.host&&(""===b[0]?b[0]=t.host:b.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===o[0]?o[0]=e.host:o.unshift(e.host)),e.host=null),f=f&&(""===o[0]||""===b[0])),h)t.host=e.host||""===e.host?e.host:t.host,t.hostname=e.hostname||""===e.hostname?e.hostname:t.hostname,t.search=e.search,t.query=e.query,b=o;else if(o.length)b||(b=[]),b.pop(),b=b.concat(o),t.search=e.search,t.query=e.query;else if(null!=e.search)return C&&(t.hostname=t.host=b.shift(),(y=!!(t.host&&t.host.indexOf("@")>0)&&t.host.split("@"))&&(t.auth=y.shift(),t.host=t.hostname=y.shift())),t.search=e.search,t.query=e.query,Cd(t.pathname)&&Cd(t.search)||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t;if(!b.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var S=b.slice(-1)[0],T=(t.host||e.host||b.length>1)&&("."===S||".."===S)||""===S,w=0,k=b.length;k>=0;k--)"."===(S=b[k])?b.splice(k,1):".."===S?(b.splice(k,1),w++):w&&(b.splice(k,1),w--);if(!f&&!x)for(;w--;w)b.unshift("..");!f||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),T&&"/"!==b.join("/").substr(-1)&&b.push("");var L=""===b[0]||b[0]&&"/"===b[0].charAt(0);return C&&(t.hostname=t.host=L?"":b.length?b.shift():"",(y=!!(t.host&&t.host.indexOf("@")>0)&&t.host.split("@"))&&(t.auth=y.shift(),t.host=t.hostname=y.shift())),(f=f||t.host&&b.length)&&!L&&b.unshift(""),b.length?t.pathname=b.join("/"):(t.pathname=null,t.path=null),Cd(t.pathname)&&Cd(t.search)||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=t.format(),t},Md.prototype.parseHost=function(){return qd(this)};const Qd=["history","path","basename","stem","extname","dirname"];class Yd{constructor(e){let l;l=e?"string"==typeof e||function(e){return Za(e)}(e)?{value:e}:Gd(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=hn.cwd(),this.value,this.stored,this.result,this.map;let o,t=-1;for(;++t<Qd.length;){const e=Qd[t];e in l&&void 0!==l[e]&&null!==l[e]&&(this[e]="history"===e?[...l[e]]:l[e])}for(o in l)Qd.includes(o)||(this[o]=l[o])}get path(){return this.history[this.history.length-1]}set path(e){Gd(e)&&(e=Ud(e)),Zd(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?ad.dirname(this.path):void 0}set dirname(e){Kd(this.basename,"dirname"),this.path=ad.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?ad.basename(this.path):void 0}set basename(e){Zd(e,"basename"),$d(e,"basename"),this.path=ad.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?ad.extname(this.path):void 0}set extname(e){if($d(e,"extname"),Kd(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ad.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?ad.basename(this.path,this.extname):void 0}set stem(e){Zd(e,"stem"),$d(e,"stem"),this.path=ad.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,l,o){const t=new ld(e,l,o);return this.path&&(t.name=this.path+":"+t.name,t.file=this.path),t.fatal=!1,this.messages.push(t),t}info(e,l,o){const t=this.message(e,l,o);return t.fatal=null,t}fail(e,l,o){const t=this.message(e,l,o);throw t.fatal=!0,t}}function $d(e,l){if(e&&e.includes(ad.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+ad.sep+"`")}function Zd(e,l){if(!e)throw new Error("`"+l+"` cannot be empty")}function Kd(e,l){if(!e)throw new Error("Setting `"+l+"` requires `path` to be set too")}function Xd(e){if(e)throw e}var Jd=Object.prototype.hasOwnProperty,ev=Object.prototype.toString,lv=Object.defineProperty,ov=Object.getOwnPropertyDescriptor,tv=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ev.call(e)},nv=function(e){if(!e||"[object Object]"!==ev.call(e))return!1;var l,o=Jd.call(e,"constructor"),t=e.constructor&&e.constructor.prototype&&Jd.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!t)return!1;for(l in e);return void 0===l||Jd.call(e,l)},iv=function(e,l){lv&&"__proto__"===l.name?lv(e,l.name,{enumerable:!0,configurable:!0,value:l.newValue,writable:!0}):e[l.name]=l.newValue},rv=function(e,l){if("__proto__"===l){if(!Jd.call(e,l))return;if(ov)return ov(e,l).value}return e[l]},uv=function e(){var l,o,t,n,i,r,u=arguments[0],a=1,d=arguments.length,v=!1;for("boolean"==typeof u&&(v=u,u=arguments[1]||{},a=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});a<d;++a)if(null!=(l=arguments[a]))for(o in l)t=rv(u,o),u!==(n=rv(l,o))&&(v&&n&&(nv(n)||(i=tv(n)))?(i?(i=!1,r=t&&tv(t)?t:[]):r=t&&nv(t)?t:{},iv(u,{name:o,newValue:e(v,r,n)})):void 0!==n&&iv(u,{name:o,newValue:n}));return u},av=Lu(uv);function dv(e){if("object"!=typeof e||null===e)return!1;const l=Object.getPrototypeOf(e);return!(null!==l&&l!==Object.prototype&&null!==Object.getPrototypeOf(l)||Symbol.toStringTag in e||Symbol.iterator in e)}function vv(){const e=[],l={run:function(...l){let o=-1;const t=l.pop();if("function"!=typeof t)throw new TypeError("Expected function as last argument, not "+t);!function n(i,...r){const u=e[++o];let a=-1;if(i)t(i);else{for(;++a<l.length;)null!==r[a]&&void 0!==r[a]||(r[a]=l[a]);l=r,u?function(e,l){let o;return t;function t(...l){const t=e.length>l.length;let r;t&&l.push(n);try{r=e.apply(this,l)}catch(e){if(t&&o)throw e;return n(e)}t||(r&&r.then&&"function"==typeof r.then?r.then(i,n):r instanceof Error?n(r):i(r))}function n(e,...t){o||(o=!0,l(e,...t))}function i(e){n(null,e)}}(u,n)(...r):t(null,...r)}}(null,...l)},use:function(o){if("function"!=typeof o)throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),l}};return l}const sv=function e(){const l=vv(),o=[];let t,n={},i=-1;return r.data=function(e,l){if("string"==typeof e)return 2===arguments.length?(gv("data",t),n[e]=l,r):cv.call(n,e)&&n[e]||null;if(e)return gv("data",t),n=e,r;return n},r.Parser=void 0,r.Compiler=void 0,r.freeze=function(){if(t)return r;for(;++i<o.length;){const[e,...t]=o[i];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);const n=e.call(r,...t);"function"==typeof n&&l.use(n)}return t=!0,i=Number.POSITIVE_INFINITY,r},r.attachers=o,r.use=function(e,...l){let i;if(gv("use",t),null==e);else if("function"==typeof e)v(e,...l);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?d(e):a(e)}i&&(n.settings=Object.assign(n.settings||{},i));return r;function u(e){if("function"==typeof e)v(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[l,...o]=e;v(l,...o)}else a(e)}}function a(e){d(e.plugins),e.settings&&(i=Object.assign(i||{},e.settings))}function d(e){let l=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++l<e.length;){u(e[l])}}}function v(e,l){let t,n=-1;for(;++n<o.length;)if(o[n][0]===e){t=o[n];break}t?(dv(t[1])&&dv(l)&&(l=av(!0,t[1],l)),t[1]=l):o.push([...arguments])}},r.parse=function(e){r.freeze();const l=xv(e),o=r.Parser;if(pv("parse",o),mv(o,"parse"))return new o(String(l),l).parse();return o(String(l),l)},r.stringify=function(e,l){r.freeze();const o=xv(l),t=r.Compiler;if(yv("stringify",t),hv(e),mv(t,"compile"))return new t(e,o).compile();return t(e,o)},r.run=function(e,o,t){hv(e),r.freeze(),t||"function"!=typeof o||(t=o,o=void 0);if(!t)return new Promise(n);function n(n,i){function r(l,o,r){o=o||e,l?i(l):n?n(o):t(null,o,r)}l.run(e,xv(o),r)}n(null,t)},r.runSync=function(e,l){let o,t;return r.run(e,l,n),fv("runSync","run",t),o;function n(e,l){Xd(e),o=l,t=!0}},r.process=function(e,l){if(r.freeze(),pv("process",r.Parser),yv("process",r.Compiler),!l)return new Promise(o);function o(o,t){const n=xv(e);function i(e,n){e||!n?t(e):o?o(n):l(null,n)}r.run(r.parse(n),n,(e,l,o)=>{if(!e&&l&&o){const n=r.stringify(l,o);null==n||("string"==typeof(t=n)||Za(t)?o.value=n:o.result=n),i(e,o)}else i(e);var t})}o(null,l)},r.processSync=function(e){let l;r.freeze(),pv("processSync",r.Parser),yv("processSync",r.Compiler);const o=xv(e);return r.process(o,t),fv("processSync","process",l),o;function t(e){l=!0,Xd(e)}},r;function r(){const l=e();let t=-1;for(;++t<o.length;)l.use(...o[t]);return l.data(av(!0,{},n)),l}}().freeze(),cv={}.hasOwnProperty;function mv(e,l){return"function"==typeof e&&e.prototype&&(function(e){let l;for(l in e)if(cv.call(e,l))return!0;return!1}(e.prototype)||l in e.prototype)}function pv(e,l){if("function"!=typeof l)throw new TypeError("Cannot `"+e+"` without `Parser`")}function yv(e,l){if("function"!=typeof l)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function gv(e,l){if(l)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function hv(e){if(!dv(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function fv(e,l,o){if(!o)throw new Error("`"+e+"` finished async. Use `"+l+"` instead")}function xv(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Yd(e)}const bv={};function Cv(e,l,o){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||o?e.value:"";if(l&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Sv(e.children,l,o)}return Array.isArray(e)?Sv(e,l,o):""}function Sv(e,l,o){const t=[];let n=-1;for(;++n<e.length;)t[n]=Cv(e[n],l,o);return t.join("")}function Tv(e,l,o,t){const n=e.length;let i,r=0;if(l=l<0?-l>n?0:n+l:l>n?n:l,o=o>0?o:0,t.length<1e4)i=Array.from(t),i.unshift(l,o),e.splice(...i);else for(o&&e.splice(l,o);r<t.length;)i=t.slice(r,r+1e4),i.unshift(l,0),e.splice(...i),r+=1e4,l+=1e4}function wv(e,l){return e.length>0?(Tv(e,e.length,0,l),e):l}const kv={}.hasOwnProperty;function Lv(e,l){let o;for(o in l){const t=(kv.call(e,o)?e[o]:void 0)||(e[o]={}),n=l[o];let i;if(n)for(i in n){kv.call(t,i)||(t[i]=[]);const e=n[i];Iv(t[i],Array.isArray(e)?e:e?[e]:[])}}}function Iv(e,l){let o=-1;const t=[];for(;++o<l.length;)("after"===l[o].add?e:t).push(l[o]);Tv(e,0,0,t)}const Ev=jv(/[A-Za-z]/),Pv=jv(/[\dA-Za-z]/),Mv=jv(/[#-'*+\--9=?A-Z^-~]/);function Dv(e){return null!==e&&(e<32||127===e)}const Ov=jv(/\d/),Bv=jv(/[\dA-Fa-f]/),Fv=jv(/[!-/:-@[-`{-~]/);function Wv(e){return null!==e&&e<-2}function Av(e){return null!==e&&(e<0||32===e)}function zv(e){return-2===e||-1===e||32===e}const Rv=jv(/[!-\/:-@\[-`\{-~\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]/),Hv=jv(/\s/);function jv(e){return function(l){return null!==l&&e.test(String.fromCharCode(l))}}function Nv(e,l,o,t){const n=t?t-1:Number.POSITIVE_INFINITY;let i=0;return function(t){if(zv(t))return e.enter(o),r(t);return l(t)};function r(t){return zv(t)&&i++<n?(e.consume(t),r):(e.exit(o),l(t))}}const Vv={tokenize:function(e){const l=e.attempt(this.parser.constructs.contentInitial,function(o){if(null===o)return void e.consume(o);return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Nv(e,l,"linePrefix")},function(l){return e.enter("paragraph"),t(l)});let o;return l;function t(l){const t=e.enter("chunkText",{contentType:"text",previous:o});return o&&(o.next=t),o=t,n(l)}function n(l){return null===l?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(l)):Wv(l)?(e.consume(l),e.exit("chunkText"),t):(e.consume(l),n)}}};const Uv={tokenize:function(e){const l=this,o=[];let t,n,i,r=0;return u;function u(t){if(r<o.length){const n=o[r];return l.containerState=n[1],e.attempt(n[0].continuation,a,d)(t)}return d(t)}function a(e){if(r++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,t&&f();const o=l.events.length;let n,i=o;for(;i--;)if("exit"===l.events[i][0]&&"chunkFlow"===l.events[i][1].type){n=l.events[i][1].end;break}h(r);let u=o;for(;u<l.events.length;)l.events[u][1].end=Object.assign({},n),u++;return Tv(l.events,i+1,0,l.events.slice(o)),l.events.length=u,d(e)}return u(e)}function d(n){if(r===o.length){if(!t)return c(n);if(t.currentConstruct&&t.currentConstruct.concrete)return p(n);l.interrupt=Boolean(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return l.containerState={},e.check(_v,v,s)(n)}function v(e){return t&&f(),h(r),c(e)}function s(e){return l.parser.lazy[l.now().line]=r!==o.length,i=l.now().offset,p(e)}function c(o){return l.containerState={},e.attempt(_v,m,p)(o)}function m(e){return r++,o.push([l.currentConstruct,l.containerState]),c(e)}function p(o){return null===o?(t&&f(),h(0),void e.consume(o)):(t=t||l.parser.flow(l.now()),e.enter("chunkFlow",{contentType:"flow",previous:n,_tokenizer:t}),y(o))}function y(o){return null===o?(g(e.exit("chunkFlow"),!0),h(0),void e.consume(o)):Wv(o)?(e.consume(o),g(e.exit("chunkFlow")),r=0,l.interrupt=void 0,u):(e.consume(o),y)}function g(e,o){const u=l.sliceStream(e);if(o&&u.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(u),l.parser.lazy[e.start.line]){let e=t.events.length;for(;e--;)if(t.events[e][1].start.offset<i&&(!t.events[e][1].end||t.events[e][1].end.offset>i))return;const o=l.events.length;let n,u,a=o;for(;a--;)if("exit"===l.events[a][0]&&"chunkFlow"===l.events[a][1].type){if(n){u=l.events[a][1].end;break}n=!0}for(h(r),e=o;e<l.events.length;)l.events[e][1].end=Object.assign({},u),e++;Tv(l.events,a+1,0,l.events.slice(o)),l.events.length=e}}function h(t){let n=o.length;for(;n-- >t;){const t=o[n];l.containerState=t[1],t[0].exit.call(l,e)}o.length=t}function f(){t.write([null]),n=void 0,t=void 0,l.containerState._closeFlow=void 0}}},_v={tokenize:function(e,l,o){return Nv(e,e.attempt(this.parser.constructs.document,l,o),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function qv(e){return null===e||Av(e)||Hv(e)?1:Rv(e)?2:void 0}function Gv(e,l,o){const t=[];let n=-1;for(;++n<e.length;){const i=e[n].resolveAll;i&&!t.includes(i)&&(l=i(l,o),t.push(i))}return l}const Qv={name:"attention",tokenize:function(e,l){const o=this.parser.constructs.attentionMarkers.null,t=this.previous,n=qv(t);let i;return function(l){return i=l,e.enter("attentionSequence"),r(l)};function r(u){if(u===i)return e.consume(u),r;const a=e.exit("attentionSequence"),d=qv(u),v=!d||2===d&&n||o.includes(u),s=!n||2===n&&d||o.includes(t);return a._open=Boolean(42===i?v:v&&(n||!s)),a._close=Boolean(42===i?s:s&&(d||!v)),l(u)}},resolveAll:function(e,l){let o,t,n,i,r,u,a,d,v=-1;for(;++v<e.length;)if("enter"===e[v][0]&&"attentionSequence"===e[v][1].type&&e[v][1]._close)for(o=v;o--;)if("exit"===e[o][0]&&"attentionSequence"===e[o][1].type&&e[o][1]._open&&l.sliceSerialize(e[o][1]).charCodeAt(0)===l.sliceSerialize(e[v][1]).charCodeAt(0)){if((e[o][1]._close||e[v][1]._open)&&(e[v][1].end.offset-e[v][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[v][1].end.offset-e[v][1].start.offset)%3))continue;u=e[o][1].end.offset-e[o][1].start.offset>1&&e[v][1].end.offset-e[v][1].start.offset>1?2:1;const s=Object.assign({},e[o][1].end),c=Object.assign({},e[v][1].start);Yv(s,-u),Yv(c,u),i={type:u>1?"strongSequence":"emphasisSequence",start:s,end:Object.assign({},e[o][1].end)},r={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[v][1].start),end:c},n={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[o][1].end),end:Object.assign({},e[v][1].start)},t={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},r.end)},e[o][1].end=Object.assign({},i.start),e[v][1].start=Object.assign({},r.end),a=[],e[o][1].end.offset-e[o][1].start.offset&&(a=wv(a,[["enter",e[o][1],l],["exit",e[o][1],l]])),a=wv(a,[["enter",t,l],["enter",i,l],["exit",i,l],["enter",n,l]]),a=wv(a,Gv(l.parser.constructs.insideSpan.null,e.slice(o+1,v),l)),a=wv(a,[["exit",n,l],["enter",r,l],["exit",r,l],["exit",t,l]]),e[v][1].end.offset-e[v][1].start.offset?(d=2,a=wv(a,[["enter",e[v][1],l],["exit",e[v][1],l]])):d=0,Tv(e,o-1,v-o+3,a),v=o+a.length-d-2;break}v=-1;for(;++v<e.length;)"attentionSequence"===e[v][1].type&&(e[v][1].type="data");return e}};function Yv(e,l){e.column+=l,e.offset+=l,e._bufferIndex+=l}const $v={name:"autolink",tokenize:function(e,l,o){let t=0;return function(l){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),n};function n(l){return Ev(l)?(e.consume(l),i):a(l)}function i(e){return 43===e||45===e||46===e||Pv(e)?(t=1,r(e)):a(e)}function r(l){return 58===l?(e.consume(l),t=0,u):(43===l||45===l||46===l||Pv(l))&&t++<32?(e.consume(l),r):(t=0,a(l))}function u(t){return 62===t?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.exit("autolink"),l):null===t||32===t||60===t||Dv(t)?o(t):(e.consume(t),u)}function a(l){return 64===l?(e.consume(l),d):Mv(l)?(e.consume(l),a):o(l)}function d(e){return Pv(e)?v(e):o(e)}function v(o){return 46===o?(e.consume(o),t=0,d):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),l):s(o)}function s(l){if((45===l||Pv(l))&&t++<63){const o=45===l?s:v;return e.consume(l),o}return o(l)}}};const Zv={tokenize:function(e,l,o){return function(l){return zv(l)?Nv(e,t,"linePrefix")(l):t(l)};function t(e){return null===e||Wv(e)?l(e):o(e)}},partial:!0};const Kv={name:"blockQuote",tokenize:function(e,l,o){const t=this;return function(l){if(62===l){const o=t.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),n}return o(l)};function n(o){return zv(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),l):(e.exit("blockQuotePrefix"),l(o))}},continuation:{tokenize:function(e,l,o){const t=this;return function(l){if(zv(l))return Nv(e,n,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l);return n(l)};function n(t){return e.attempt(Kv,l,o)(t)}}},exit:function(e){e.exit("blockQuote")}};const Xv={name:"characterEscape",tokenize:function(e,l,o){return function(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),t};function t(t){return Fv(t)?(e.enter("characterEscapeValue"),e.consume(t),e.exit("characterEscapeValue"),e.exit("characterEscape"),l):o(t)}}};const Jv={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",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:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",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:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},es={}.hasOwnProperty;function ls(e){return!!es.call(Jv,e)&&Jv[e]}const os={name:"characterReference",tokenize:function(e,l,o){const t=this;let n,i,r=0;return function(l){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),u};function u(l){return 35===l?(e.enter("characterReferenceMarkerNumeric"),e.consume(l),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),n=31,i=Pv,d(l))}function a(l){return 88===l||120===l?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(l),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,i=Bv,d):(e.enter("characterReferenceValue"),n=7,i=Ov,d(l))}function d(u){if(59===u&&r){const n=e.exit("characterReferenceValue");return i!==Pv||ls(t.sliceSerialize(n))?(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),l):o(u)}return i(u)&&r++<n?(e.consume(u),d):o(u)}}};const ts={tokenize:function(e,l,o){const t=this;return function(l){if(null===l)return o(l);return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n};function n(e){return t.parser.lazy[t.now().line]?o(e):l(e)}},partial:!0},ns={name:"codeFenced",tokenize:function(e,l,o){const t=this,n={tokenize:function(e,l,o){let n=0;return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a}function a(l){return e.enter("codeFencedFence"),zv(l)?Nv(e,d,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):d(l)}function d(l){return l===i?(e.enter("codeFencedFenceSequence"),v(l)):o(l)}function v(l){return l===i?(n++,e.consume(l),v):n>=u?(e.exit("codeFencedFenceSequence"),zv(l)?Nv(e,s,"whitespace")(l):s(l)):o(l)}function s(t){return null===t||Wv(t)?(e.exit("codeFencedFence"),l(t)):o(t)}},partial:!0};let i,r=0,u=0;return function(l){return function(l){const o=t.events[t.events.length-1];return r=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=l,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(l)}(l)};function a(l){return l===i?(u++,e.consume(l),a):u<3?o(l):(e.exit("codeFencedFenceSequence"),zv(l)?Nv(e,d,"whitespace")(l):d(l))}function d(o){return null===o||Wv(o)?(e.exit("codeFencedFence"),t.interrupt?l(o):e.check(ts,m,f)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(o))}function v(l){return null===l||Wv(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(l)):zv(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Nv(e,s,"whitespace")(l)):96===l&&l===i?o(l):(e.consume(l),v)}function s(l){return null===l||Wv(l)?d(l):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(l))}function c(l){return null===l||Wv(l)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(l)):96===l&&l===i?o(l):(e.consume(l),c)}function m(l){return e.attempt(n,f,p)(l)}function p(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),y}function y(l){return r>0&&zv(l)?Nv(e,g,"linePrefix",r+1)(l):g(l)}function g(l){return null===l||Wv(l)?e.check(ts,m,f)(l):(e.enter("codeFlowValue"),h(l))}function h(l){return null===l||Wv(l)?(e.exit("codeFlowValue"),g(l)):(e.consume(l),h)}function f(o){return e.exit("codeFenced"),l(o)}},concrete:!0};const is={name:"codeIndented",tokenize:function(e,l,o){const t=this;return function(l){return e.enter("codeIndented"),Nv(e,n,"linePrefix",5)(l)};function n(e){const l=t.events[t.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?i(e):o(e)}function i(l){return null===l?u(l):Wv(l)?e.attempt(rs,i,u)(l):(e.enter("codeFlowValue"),r(l))}function r(l){return null===l||Wv(l)?(e.exit("codeFlowValue"),i(l)):(e.consume(l),r)}function u(o){return e.exit("codeIndented"),l(o)}}},rs={tokenize:function(e,l,o){const t=this;return n;function n(l){return t.parser.lazy[t.now().line]?o(l):Wv(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n):Nv(e,i,"linePrefix",5)(l)}function i(e){const i=t.events[t.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?l(e):Wv(e)?n(e):o(e)}},partial:!0};const us={name:"codeText",tokenize:function(e,l,o){let t,n,i=0;return function(l){return e.enter("codeText"),e.enter("codeTextSequence"),r(l)};function r(l){return 96===l?(e.consume(l),i++,r):(e.exit("codeTextSequence"),u(l))}function u(l){return null===l?o(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),u):96===l?(n=e.enter("codeTextSequence"),t=0,d(l)):Wv(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),u):(e.enter("codeTextData"),a(l))}function a(l){return null===l||32===l||96===l||Wv(l)?(e.exit("codeTextData"),u(l)):(e.consume(l),a)}function d(o){return 96===o?(e.consume(o),t++,d):t===i?(e.exit("codeTextSequence"),e.exit("codeText"),l(o)):(n.type="codeTextData",a(o))}},resolve:function(e){let l,o,t=e.length-4,n=3;if(!("lineEnding"!==e[n][1].type&&"space"!==e[n][1].type||"lineEnding"!==e[t][1].type&&"space"!==e[t][1].type))for(l=n;++l<t;)if("codeTextData"===e[l][1].type){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}l=n-1,t++;for(;++l<=t;)void 0===o?l!==t&&"lineEnding"!==e[l][1].type&&(o=l):l!==t&&"lineEnding"!==e[l][1].type||(e[o][1].type="codeTextData",l!==o+2&&(e[o][1].end=e[l-1][1].end,e.splice(o+2,l-o-2),t-=l-o-2,l=o+2),o=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function as(e){const l={};let o,t,n,i,r,u,a,d=-1;for(;++d<e.length;){for(;d in l;)d=l[d];if(o=e[d],d&&"chunkFlow"===o[1].type&&"listItemPrefix"===e[d-1][1].type&&(u=o[1]._tokenizer.events,n=0,n<u.length&&"lineEndingBlank"===u[n][1].type&&(n+=2),n<u.length&&"content"===u[n][1].type))for(;++n<u.length&&"content"!==u[n][1].type;)"chunkText"===u[n][1].type&&(u[n][1]._isInFirstContentOfListItem=!0,n++);if("enter"===o[0])o[1].contentType&&(Object.assign(l,ds(e,d)),d=l[d],a=!0);else if(o[1]._container){for(n=d,t=void 0;n--&&(i=e[n],"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(t&&(e[t][1].type="lineEndingBlank"),i[1].type="lineEnding",t=n);t&&(o[1].end=Object.assign({},e[t][1].start),r=e.slice(t,d),r.unshift(o),Tv(e,t,d-t+1,r))}}return!a}function ds(e,l){const o=e[l][1],t=e[l][2];let n=l-1;const i=[],r=o._tokenizer||t.parser[o.contentType](o.start),u=r.events,a=[],d={};let v,s,c=-1,m=o,p=0,y=0;const g=[y];for(;m;){for(;e[++n][1]!==m;);i.push(n),m._tokenizer||(v=t.sliceStream(m),m.next||v.push(null),s&&r.defineSkip(m.start),m._isInFirstContentOfListItem&&(r._gfmTasklistFirstContentOfListItem=!0),r.write(v),m._isInFirstContentOfListItem&&(r._gfmTasklistFirstContentOfListItem=void 0)),s=m,m=m.next}for(m=o;++c<u.length;)"exit"===u[c][0]&&"enter"===u[c-1][0]&&u[c][1].type===u[c-1][1].type&&u[c][1].start.line!==u[c][1].end.line&&(y=c+1,g.push(y),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(r.events=[],m?(m._tokenizer=void 0,m.previous=void 0):g.pop(),c=g.length;c--;){const l=u.slice(g[c],g[c+1]),o=i.pop();a.unshift([o,o+l.length-1]),Tv(e,o,2,l)}for(c=-1;++c<a.length;)d[p+a[c][0]]=p+a[c][1],p+=a[c][1]-a[c][0]-1;return d}const vs={tokenize:function(e,l){let o;return function(l){return e.enter("content"),o=e.enter("chunkContent",{contentType:"content"}),t(l)};function t(l){return null===l?n(l):Wv(l)?e.check(ss,i,n)(l):(e.consume(l),t)}function n(o){return e.exit("chunkContent"),e.exit("content"),l(o)}function i(l){return e.consume(l),e.exit("chunkContent"),o.next=e.enter("chunkContent",{contentType:"content",previous:o}),o=o.next,t}},resolve:function(e){return as(e),e}},ss={tokenize:function(e,l,o){const t=this;return function(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Nv(e,n,"linePrefix")};function n(n){if(null===n||Wv(n))return o(n);const i=t.events[t.events.length-1];return!t.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?l(n):e.interrupt(t.parser.constructs.flow,o,l)(n)}},partial:!0};function cs(e,l,o,t,n,i,r,u,a){const d=a||Number.POSITIVE_INFINITY;let v=0;return function(l){if(60===l)return e.enter(t),e.enter(n),e.enter(i),e.consume(l),e.exit(i),s;if(null===l||32===l||41===l||Dv(l))return o(l);return e.enter(t),e.enter(r),e.enter(u),e.enter("chunkString",{contentType:"string"}),p(l)};function s(o){return 62===o?(e.enter(i),e.consume(o),e.exit(i),e.exit(n),e.exit(t),l):(e.enter(u),e.enter("chunkString",{contentType:"string"}),c(o))}function c(l){return 62===l?(e.exit("chunkString"),e.exit(u),s(l)):null===l||60===l||Wv(l)?o(l):(e.consume(l),92===l?m:c)}function m(l){return 60===l||62===l||92===l?(e.consume(l),c):c(l)}function p(n){return v||null!==n&&41!==n&&!Av(n)?v<d&&40===n?(e.consume(n),v++,p):41===n?(e.consume(n),v--,p):null===n||32===n||40===n||Dv(n)?o(n):(e.consume(n),92===n?y:p):(e.exit("chunkString"),e.exit(u),e.exit(r),e.exit(t),l(n))}function y(l){return 40===l||41===l||92===l?(e.consume(l),p):p(l)}}function ms(e,l,o,t,n,i){const r=this;let u,a=0;return function(l){return e.enter(t),e.enter(n),e.consume(l),e.exit(n),e.enter(i),d};function d(s){return a>999||null===s||91===s||93===s&&!u||94===s&&!a&&"_hiddenFootnoteSupport"in r.parser.constructs?o(s):93===s?(e.exit(i),e.enter(n),e.consume(s),e.exit(n),e.exit(t),l):Wv(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),v(s))}function v(l){return null===l||91===l||93===l||Wv(l)||a++>999?(e.exit("chunkString"),d(l)):(e.consume(l),u||(u=!zv(l)),92===l?s:v)}function s(l){return 91===l||92===l||93===l?(e.consume(l),a++,v):v(l)}}function ps(e,l,o,t,n,i){let r;return function(l){if(34===l||39===l||40===l)return e.enter(t),e.enter(n),e.consume(l),e.exit(n),r=40===l?41:l,u;return o(l)};function u(o){return o===r?(e.enter(n),e.consume(o),e.exit(n),e.exit(t),l):(e.enter(i),a(o))}function a(l){return l===r?(e.exit(i),u(r)):null===l?o(l):Wv(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Nv(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(l))}function d(l){return l===r||null===l||Wv(l)?(e.exit("chunkString"),a(l)):(e.consume(l),92===l?v:d)}function v(l){return l===r||92===l?(e.consume(l),d):d(l)}}function ys(e,l){let o;return function t(n){if(Wv(n))return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o=!0,t;if(zv(n))return Nv(e,t,o?"linePrefix":"lineSuffix")(n);return l(n)}}function gs(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const hs={name:"definition",tokenize:function(e,l,o){const t=this;let n;return function(l){return e.enter("definition"),function(l){return ms.call(t,e,i,o,"definitionLabel","definitionLabelMarker","definitionLabelString")(l)}(l)};function i(l){return n=gs(t.sliceSerialize(t.events[t.events.length-1][1]).slice(1,-1)),58===l?(e.enter("definitionMarker"),e.consume(l),e.exit("definitionMarker"),r):o(l)}function r(l){return Av(l)?ys(e,u)(l):u(l)}function u(l){return cs(e,a,o,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(l)}function a(l){return e.attempt(fs,d,d)(l)}function d(l){return zv(l)?Nv(e,v,"whitespace")(l):v(l)}function v(i){return null===i||Wv(i)?(e.exit("definition"),t.parser.defined.push(n),l(i)):o(i)}}},fs={tokenize:function(e,l,o){return function(l){return Av(l)?ys(e,t)(l):o(l)};function t(l){return ps(e,n,o,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function n(l){return zv(l)?Nv(e,i,"whitespace")(l):i(l)}function i(e){return null===e||Wv(e)?l(e):o(e)}},partial:!0};const xs={name:"hardBreakEscape",tokenize:function(e,l,o){return function(l){return e.enter("hardBreakEscape"),e.consume(l),t};function t(t){return Wv(t)?(e.exit("hardBreakEscape"),l(t)):o(t)}}};const bs={name:"headingAtx",tokenize:function(e,l,o){let t=0;return function(l){return e.enter("atxHeading"),function(l){return e.enter("atxHeadingSequence"),n(l)}(l)};function n(l){return 35===l&&t++<6?(e.consume(l),n):null===l||Av(l)?(e.exit("atxHeadingSequence"),i(l)):o(l)}function i(o){return 35===o?(e.enter("atxHeadingSequence"),r(o)):null===o||Wv(o)?(e.exit("atxHeading"),l(o)):zv(o)?Nv(e,i,"whitespace")(o):(e.enter("atxHeadingText"),u(o))}function r(l){return 35===l?(e.consume(l),r):(e.exit("atxHeadingSequence"),i(l))}function u(l){return null===l||35===l||Av(l)?(e.exit("atxHeadingText"),i(l)):(e.consume(l),u)}},resolve:function(e,l){let o,t,n=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);n-2>i&&"whitespace"===e[n][1].type&&(n-=2);"atxHeadingSequence"===e[n][1].type&&(i===n-1||n-4>i&&"whitespace"===e[n-2][1].type)&&(n-=i+1===n?2:4);n>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},t={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Tv(e,i,n-i+1,[["enter",o,l],["enter",t,l],["exit",t,l],["exit",o,l]]));return e}};const Cs=["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"],Ss=["pre","script","style","textarea"],Ts={name:"htmlFlow",tokenize:function(e,l,o){const t=this;let n,i,r,u,a;return function(l){return function(l){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(l),d}(l)};function d(u){return 33===u?(e.consume(u),v):47===u?(e.consume(u),i=!0,m):63===u?(e.consume(u),n=3,t.interrupt?l:F):Ev(u)?(e.consume(u),r=String.fromCharCode(u),p):o(u)}function v(i){return 45===i?(e.consume(i),n=2,s):91===i?(e.consume(i),n=5,u=0,c):Ev(i)?(e.consume(i),n=4,t.interrupt?l:F):o(i)}function s(n){return 45===n?(e.consume(n),t.interrupt?l:F):o(n)}function c(n){const i="CDATA[";return n===i.charCodeAt(u++)?(e.consume(n),6===u?t.interrupt?l:L:c):o(n)}function m(l){return Ev(l)?(e.consume(l),r=String.fromCharCode(l),p):o(l)}function p(u){if(null===u||47===u||62===u||Av(u)){const a=47===u,d=r.toLowerCase();return a||i||!Ss.includes(d)?Cs.includes(r.toLowerCase())?(n=6,a?(e.consume(u),y):t.interrupt?l(u):L(u)):(n=7,t.interrupt&&!t.parser.lazy[t.now().line]?o(u):i?g(u):h(u)):(n=1,t.interrupt?l(u):L(u))}return 45===u||Pv(u)?(e.consume(u),r+=String.fromCharCode(u),p):o(u)}function y(n){return 62===n?(e.consume(n),t.interrupt?l:L):o(n)}function g(l){return zv(l)?(e.consume(l),g):w(l)}function h(l){return 47===l?(e.consume(l),w):58===l||95===l||Ev(l)?(e.consume(l),f):zv(l)?(e.consume(l),h):w(l)}function f(l){return 45===l||46===l||58===l||95===l||Pv(l)?(e.consume(l),f):x(l)}function x(l){return 61===l?(e.consume(l),b):zv(l)?(e.consume(l),x):h(l)}function b(l){return null===l||60===l||61===l||62===l||96===l?o(l):34===l||39===l?(e.consume(l),a=l,C):zv(l)?(e.consume(l),b):S(l)}function C(l){return l===a?(e.consume(l),a=null,T):null===l||Wv(l)?o(l):(e.consume(l),C)}function S(l){return null===l||34===l||39===l||47===l||60===l||61===l||62===l||96===l||Av(l)?x(l):(e.consume(l),S)}function T(e){return 47===e||62===e||zv(e)?h(e):o(e)}function w(l){return 62===l?(e.consume(l),k):o(l)}function k(l){return null===l||Wv(l)?L(l):zv(l)?(e.consume(l),k):o(l)}function L(l){return 45===l&&2===n?(e.consume(l),M):60===l&&1===n?(e.consume(l),D):62===l&&4===n?(e.consume(l),W):63===l&&3===n?(e.consume(l),F):93===l&&5===n?(e.consume(l),B):!Wv(l)||6!==n&&7!==n?null===l||Wv(l)?(e.exit("htmlFlowData"),I(l)):(e.consume(l),L):(e.exit("htmlFlowData"),e.check(ws,A,I)(l))}function I(l){return e.check(ks,E,A)(l)}function E(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),P}function P(l){return null===l||Wv(l)?I(l):(e.enter("htmlFlowData"),L(l))}function M(l){return 45===l?(e.consume(l),F):L(l)}function D(l){return 47===l?(e.consume(l),r="",O):L(l)}function O(l){if(62===l){const o=r.toLowerCase();return Ss.includes(o)?(e.consume(l),W):L(l)}return Ev(l)&&r.length<8?(e.consume(l),r+=String.fromCharCode(l),O):L(l)}function B(l){return 93===l?(e.consume(l),F):L(l)}function F(l){return 62===l?(e.consume(l),W):45===l&&2===n?(e.consume(l),F):L(l)}function W(l){return null===l||Wv(l)?(e.exit("htmlFlowData"),A(l)):(e.consume(l),W)}function A(o){return e.exit("htmlFlow"),l(o)}},resolveTo:function(e){let l=e.length;for(;l--&&("enter"!==e[l][0]||"htmlFlow"!==e[l][1].type););l>1&&"linePrefix"===e[l-2][1].type&&(e[l][1].start=e[l-2][1].start,e[l+1][1].start=e[l-2][1].start,e.splice(l-2,2));return e},concrete:!0},ws={tokenize:function(e,l,o){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(Zv,l,o)}},partial:!0},ks={tokenize:function(e,l,o){const t=this;return function(l){if(Wv(l))return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n;return o(l)};function n(e){return t.parser.lazy[t.now().line]?o(e):l(e)}},partial:!0};const Ls={name:"htmlText",tokenize:function(e,l,o){const t=this;let n,i,r;return function(l){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(l),u};function u(l){return 33===l?(e.consume(l),a):47===l?(e.consume(l),b):63===l?(e.consume(l),f):Ev(l)?(e.consume(l),T):o(l)}function a(l){return 45===l?(e.consume(l),d):91===l?(e.consume(l),i=0,m):Ev(l)?(e.consume(l),h):o(l)}function d(l){return 45===l?(e.consume(l),c):o(l)}function v(l){return null===l?o(l):45===l?(e.consume(l),s):Wv(l)?(r=v,O(l)):(e.consume(l),v)}function s(l){return 45===l?(e.consume(l),c):v(l)}function c(e){return 62===e?D(e):45===e?s(e):v(e)}function m(l){const t="CDATA[";return l===t.charCodeAt(i++)?(e.consume(l),6===i?p:m):o(l)}function p(l){return null===l?o(l):93===l?(e.consume(l),y):Wv(l)?(r=p,O(l)):(e.consume(l),p)}function y(l){return 93===l?(e.consume(l),g):p(l)}function g(l){return 62===l?D(l):93===l?(e.consume(l),g):p(l)}function h(l){return null===l||62===l?D(l):Wv(l)?(r=h,O(l)):(e.consume(l),h)}function f(l){return null===l?o(l):63===l?(e.consume(l),x):Wv(l)?(r=f,O(l)):(e.consume(l),f)}function x(e){return 62===e?D(e):f(e)}function b(l){return Ev(l)?(e.consume(l),C):o(l)}function C(l){return 45===l||Pv(l)?(e.consume(l),C):S(l)}function S(l){return Wv(l)?(r=S,O(l)):zv(l)?(e.consume(l),S):D(l)}function T(l){return 45===l||Pv(l)?(e.consume(l),T):47===l||62===l||Av(l)?w(l):o(l)}function w(l){return 47===l?(e.consume(l),D):58===l||95===l||Ev(l)?(e.consume(l),k):Wv(l)?(r=w,O(l)):zv(l)?(e.consume(l),w):D(l)}function k(l){return 45===l||46===l||58===l||95===l||Pv(l)?(e.consume(l),k):L(l)}function L(l){return 61===l?(e.consume(l),I):Wv(l)?(r=L,O(l)):zv(l)?(e.consume(l),L):w(l)}function I(l){return null===l||60===l||61===l||62===l||96===l?o(l):34===l||39===l?(e.consume(l),n=l,E):Wv(l)?(r=I,O(l)):zv(l)?(e.consume(l),I):(e.consume(l),P)}function E(l){return l===n?(e.consume(l),n=void 0,M):null===l?o(l):Wv(l)?(r=E,O(l)):(e.consume(l),E)}function P(l){return null===l||34===l||39===l||60===l||61===l||96===l?o(l):47===l||62===l||Av(l)?w(l):(e.consume(l),P)}function M(e){return 47===e||62===e||Av(e)?w(e):o(e)}function D(t){return 62===t?(e.consume(t),e.exit("htmlTextData"),e.exit("htmlText"),l):o(t)}function O(l){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),B}function B(l){return zv(l)?Nv(e,F,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):F(l)}function F(l){return e.enter("htmlTextData"),r(l)}}};const Is={name:"labelEnd",tokenize:function(e,l,o){const t=this;let n,i,r=t.events.length;for(;r--;)if(("labelImage"===t.events[r][1].type||"labelLink"===t.events[r][1].type)&&!t.events[r][1]._balanced){n=t.events[r][1];break}return function(l){if(!n)return o(l);if(n._inactive)return v(l);return i=t.parser.defined.includes(gs(t.sliceSerialize({start:n.end,end:t.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelEnd"),u};function u(l){return 40===l?e.attempt(Es,d,i?d:v)(l):91===l?e.attempt(Ps,d,i?a:v)(l):i?d(l):v(l)}function a(l){return e.attempt(Ms,d,v)(l)}function d(e){return l(e)}function v(e){return n._balanced=!0,o(e)}},resolveTo:function(e,l){let o,t,n,i,r=e.length,u=0;for(;r--;)if(o=e[r][1],t){if("link"===o.type||"labelLink"===o.type&&o._inactive)break;"enter"===e[r][0]&&"labelLink"===o.type&&(o._inactive=!0)}else if(n){if("enter"===e[r][0]&&("labelImage"===o.type||"labelLink"===o.type)&&!o._balanced&&(t=r,"labelLink"!==o.type)){u=2;break}}else"labelEnd"===o.type&&(n=r);const a={type:"labelLink"===e[t][1].type?"link":"image",start:Object.assign({},e[t][1].start),end:Object.assign({},e[e.length-1][1].end)},d={type:"label",start:Object.assign({},e[t][1].start),end:Object.assign({},e[n][1].end)},v={type:"labelText",start:Object.assign({},e[t+u+2][1].end),end:Object.assign({},e[n-2][1].start)};return i=[["enter",a,l],["enter",d,l]],i=wv(i,e.slice(t+1,t+u+3)),i=wv(i,[["enter",v,l]]),i=wv(i,Gv(l.parser.constructs.insideSpan.null,e.slice(t+u+4,n-3),l)),i=wv(i,[["exit",v,l],e[n-2],e[n-1],["exit",d,l]]),i=wv(i,e.slice(n+1)),i=wv(i,[["exit",a,l]]),Tv(e,t,e.length,i),e},resolveAll:function(e){let l=-1;for(;++l<e.length;){const o=e[l][1];"labelImage"!==o.type&&"labelLink"!==o.type&&"labelEnd"!==o.type||(e.splice(l+1,"labelImage"===o.type?4:2),o.type="data",l++)}return e}},Es={tokenize:function(e,l,o){return function(l){return e.enter("resource"),e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),t};function t(l){return Av(l)?ys(e,n)(l):n(l)}function n(l){return 41===l?d(l):cs(e,i,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(l)}function i(l){return Av(l)?ys(e,u)(l):d(l)}function r(e){return o(e)}function u(l){return 34===l||39===l||40===l?ps(e,a,o,"resourceTitle","resourceTitleMarker","resourceTitleString")(l):d(l)}function a(l){return Av(l)?ys(e,d)(l):d(l)}function d(t){return 41===t?(e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),e.exit("resource"),l):o(t)}}},Ps={tokenize:function(e,l,o){const t=this;return function(l){return ms.call(t,e,n,i,"reference","referenceMarker","referenceString")(l)};function n(e){return t.parser.defined.includes(gs(t.sliceSerialize(t.events[t.events.length-1][1]).slice(1,-1)))?l(e):o(e)}function i(e){return o(e)}}},Ms={tokenize:function(e,l,o){return function(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),t};function t(t){return 93===t?(e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),e.exit("reference"),l):o(t)}}};const Ds={name:"labelStartImage",tokenize:function(e,l,o){const t=this;return function(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),n};function n(l){return 91===l?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),i):o(l)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in t.parser.constructs?o(e):l(e)}},resolveAll:Is.resolveAll};const Os={name:"labelStartLink",tokenize:function(e,l,o){const t=this;return function(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),n};function n(e){return 94===e&&"_hiddenFootnoteSupport"in t.parser.constructs?o(e):l(e)}},resolveAll:Is.resolveAll};const Bs={name:"lineEnding",tokenize:function(e,l){return function(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Nv(e,l,"linePrefix")}}};const Fs={name:"thematicBreak",tokenize:function(e,l,o){let t,n=0;return function(l){return e.enter("thematicBreak"),function(e){return t=e,i(e)}(l)};function i(i){return i===t?(e.enter("thematicBreakSequence"),r(i)):n>=3&&(null===i||Wv(i))?(e.exit("thematicBreak"),l(i)):o(i)}function r(l){return l===t?(e.consume(l),n++,r):(e.exit("thematicBreakSequence"),zv(l)?Nv(e,i,"whitespace")(l):i(l))}}};const Ws={name:"list",tokenize:function(e,l,o){const t=this,n=t.events[t.events.length-1];let i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,r=0;return function(l){const n=t.containerState.type||(42===l||43===l||45===l?"listUnordered":"listOrdered");if("listUnordered"===n?!t.containerState.marker||l===t.containerState.marker:Ov(l)){if(t.containerState.type||(t.containerState.type=n,e.enter(n,{_container:!0})),"listUnordered"===n)return e.enter("listItemPrefix"),42===l||45===l?e.check(Fs,o,a)(l):a(l);if(!t.interrupt||49===l)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(l)}return o(l)};function u(l){return Ov(l)&&++r<10?(e.consume(l),u):(!t.interrupt||r<2)&&(t.containerState.marker?l===t.containerState.marker:41===l||46===l)?(e.exit("listItemValue"),a(l)):o(l)}function a(l){return e.enter("listItemMarker"),e.consume(l),e.exit("listItemMarker"),t.containerState.marker=t.containerState.marker||l,e.check(Zv,t.interrupt?o:d,e.attempt(As,s,v))}function d(e){return t.containerState.initialBlankLine=!0,i++,s(e)}function v(l){return zv(l)?(e.enter("listItemPrefixWhitespace"),e.consume(l),e.exit("listItemPrefixWhitespace"),s):o(l)}function s(o){return t.containerState.size=i+t.sliceSerialize(e.exit("listItemPrefix"),!0).length,l(o)}},continuation:{tokenize:function(e,l,o){const t=this;return t.containerState._closeFlow=void 0,e.check(Zv,n,i);function n(o){return t.containerState.furtherBlankLines=t.containerState.furtherBlankLines||t.containerState.initialBlankLine,Nv(e,l,"listItemIndent",t.containerState.size+1)(o)}function i(o){return t.containerState.furtherBlankLines||!zv(o)?(t.containerState.furtherBlankLines=void 0,t.containerState.initialBlankLine=void 0,r(o)):(t.containerState.furtherBlankLines=void 0,t.containerState.initialBlankLine=void 0,e.attempt(zs,l,r)(o))}function r(n){return t.containerState._closeFlow=!0,t.interrupt=void 0,Nv(e,e.attempt(Ws,l,o),"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n)}}},exit:function(e){e.exit(this.containerState.type)}},As={tokenize:function(e,l,o){const t=this;return Nv(e,function(e){const n=t.events[t.events.length-1];return!zv(e)&&n&&"listItemPrefixWhitespace"===n[1].type?l(e):o(e)},"listItemPrefixWhitespace",t.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},zs={tokenize:function(e,l,o){const t=this;return Nv(e,function(e){const n=t.events[t.events.length-1];return n&&"listItemIndent"===n[1].type&&n[2].sliceSerialize(n[1],!0).length===t.containerState.size?l(e):o(e)},"listItemIndent",t.containerState.size+1)},partial:!0};const Rs={name:"setextUnderline",tokenize:function(e,l,o){const t=this;let n;return function(l){let r,u=t.events.length;for(;u--;)if("lineEnding"!==t.events[u][1].type&&"linePrefix"!==t.events[u][1].type&&"content"!==t.events[u][1].type){r="paragraph"===t.events[u][1].type;break}if(!t.parser.lazy[t.now().line]&&(t.interrupt||r))return e.enter("setextHeadingLine"),n=l,function(l){return e.enter("setextHeadingLineSequence"),i(l)}(l);return o(l)};function i(l){return l===n?(e.consume(l),i):(e.exit("setextHeadingLineSequence"),zv(l)?Nv(e,r,"lineSuffix")(l):r(l))}function r(t){return null===t||Wv(t)?(e.exit("setextHeadingLine"),l(t)):o(t)}},resolveTo:function(e,l){let o,t,n,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){o=i;break}"paragraph"===e[i][1].type&&(t=i)}else"content"===e[i][1].type&&e.splice(i,1),n||"definition"!==e[i][1].type||(n=i);const r={type:"setextHeading",start:Object.assign({},e[t][1].start),end:Object.assign({},e[e.length-1][1].end)};e[t][1].type="setextHeadingText",n?(e.splice(t,0,["enter",r,l]),e.splice(n+1,0,["exit",e[o][1],l]),e[o][1].end=Object.assign({},e[n][1].end)):e[o][1]=r;return e.push(["exit",r,l]),e}};const Hs={tokenize:function(e){const l=this,o=e.attempt(Zv,function(t){if(null===t)return void e.consume(t);return e.enter("lineEndingBlank"),e.consume(t),e.exit("lineEndingBlank"),l.currentConstruct=void 0,o},e.attempt(this.parser.constructs.flowInitial,t,Nv(e,e.attempt(this.parser.constructs.flow,t,e.attempt(vs,t)),"linePrefix")));return o;function t(t){if(null!==t)return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l.currentConstruct=void 0,o;e.consume(t)}}};const js={resolveAll:_s()},Ns=Us("string"),Vs=Us("text");function Us(e){return{tokenize:function(l){const o=this,t=this.parser.constructs[e],n=l.attempt(t,i,r);return i;function i(e){return a(e)?n(e):r(e)}function r(e){if(null!==e)return l.enter("data"),l.consume(e),u;l.consume(e)}function u(e){return a(e)?(l.exit("data"),n(e)):(l.consume(e),u)}function a(e){if(null===e)return!0;const l=t[e];let n=-1;if(l)for(;++n<l.length;){const e=l[n];if(!e.previous||e.previous.call(o,o.previous))return!0}return!1}},resolveAll:_s("text"===e?qs:void 0)}}function _s(e){return function(l,o){let t,n=-1;for(;++n<=l.length;)void 0===t?l[n]&&"data"===l[n][1].type&&(t=n,n++):l[n]&&"data"===l[n][1].type||(n!==t+2&&(l[t][1].end=l[n-1][1].end,l.splice(t+2,n-t-2),n=t+2),t=void 0);return e?e(l,o):l}}function qs(e,l){let o=0;for(;++o<=e.length;)if((o===e.length||"lineEnding"===e[o][1].type)&&"data"===e[o-1][1].type){const t=e[o-1][1],n=l.sliceStream(t);let i,r=n.length,u=-1,a=0;for(;r--;){const e=n[r];if("string"==typeof e){for(u=e.length;32===e.charCodeAt(u-1);)a++,u--;if(u)break;u=-1}else if(-2===e)i=!0,a++;else if(-1!==e){r++;break}}if(a){const n={type:o===e.length||i||a<2?"lineSuffix":"hardBreakTrailing",start:{line:t.end.line,column:t.end.column-a,offset:t.end.offset-a,_index:t.start._index+r,_bufferIndex:r?u:t.start._bufferIndex+u},end:Object.assign({},t.end)};t.end=Object.assign({},n.start),t.start.offset===t.end.offset?Object.assign(t,n):(e.splice(o,0,["enter",n,l],["exit",n,l]),o+=2)}o++}return e}function Gs(e,l,o){let t=Object.assign(o?Object.assign({},o):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const n={},i=[];let r=[],u=[];const a={consume:function(e){Wv(e)?(t.line++,t.column=1,t.offset+=-3===e?2:1,f()):-1!==e&&(t.column++,t.offset++);t._bufferIndex<0?t._index++:(t._bufferIndex++,t._bufferIndex===r[t._index].length&&(t._bufferIndex=-1,t._index++));d.previous=e},enter:function(e,l){const o=l||{};return o.type=e,o.start=c(),d.events.push(["enter",o,d]),u.push(o),o},exit:function(e){const l=u.pop();return l.end=c(),d.events.push(["exit",l,d]),l},attempt:g(function(e,l){h(e,l.from)}),check:g(y),interrupt:g(y,{interrupt:!0})},d={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:s,sliceSerialize:function(e,l){return function(e,l){let o=-1;const t=[];let n;for(;++o<e.length;){const i=e[o];let r;if("string"==typeof i)r=i;else switch(i){case-5:r="\r";break;case-4:r="\n";break;case-3:r="\r\n";break;case-2:r=l?" ":"\t";break;case-1:if(!l&&n)continue;r=" ";break;default:r=String.fromCharCode(i)}n=-2===i,t.push(r)}return t.join("")}(s(e),l)},now:c,defineSkip:function(e){n[e.line]=e.column,f()},write:function(e){if(r=wv(r,e),m(),null!==r[r.length-1])return[];return h(l,0),d.events=Gv(i,d.events,d),d.events}};let v=l.tokenize.call(d,a);return l.resolveAll&&i.push(l),d;function s(e){return function(e,l){const o=l.start._index,t=l.start._bufferIndex,n=l.end._index,i=l.end._bufferIndex;let r;if(o===n)r=[e[o].slice(t,i)];else{if(r=e.slice(o,n),t>-1){const e=r[0];"string"==typeof e?r[0]=e.slice(t):r.shift()}i>0&&r.push(e[n].slice(0,i))}return r}(r,e)}function c(){const{line:e,column:l,offset:o,_index:n,_bufferIndex:i}=t;return{line:e,column:l,offset:o,_index:n,_bufferIndex:i}}function m(){let e;for(;t._index<r.length;){const l=r[t._index];if("string"==typeof l)for(e=t._index,t._bufferIndex<0&&(t._bufferIndex=0);t._index===e&&t._bufferIndex<l.length;)p(l.charCodeAt(t._bufferIndex));else p(l)}}function p(e){v=v(e)}function y(e,l){l.restore()}function g(e,l){return function(o,n,i){let r,v,s,m;return Array.isArray(o)?p(o):"tokenize"in o?p([o]):function(e){return l;function l(l){const o=null!==l&&e[l],t=null!==l&&e.null;return p([...Array.isArray(o)?o:o?[o]:[],...Array.isArray(t)?t:t?[t]:[]])(l)}}(o);function p(e){return r=e,v=0,0===e.length?i:y(e[v])}function y(e){return function(o){m=function(){const e=c(),l=d.previous,o=d.currentConstruct,n=d.events.length,i=Array.from(u);return{restore:r,from:n};function r(){t=e,d.previous=l,d.currentConstruct=o,d.events.length=n,u=i,f()}}(),s=e,e.partial||(d.currentConstruct=e);if(e.name&&d.parser.constructs.disable.null.includes(e.name))return h();return e.tokenize.call(l?Object.assign(Object.create(d),l):d,a,g,h)(o)}}function g(l){return e(s,m),n}function h(e){return m.restore(),++v<r.length?y(r[v]):i}}}function h(e,l){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Tv(d.events,l,d.events.length-l,e.resolve(d.events.slice(l),d)),e.resolveTo&&(d.events=e.resolveTo(d.events,d))}function f(){t.line in n&&t.column<2&&(t.column=n[t.line],t.offset+=n[t.line]-1)}}const Qs={42:Ws,43:Ws,45:Ws,48:Ws,49:Ws,50:Ws,51:Ws,52:Ws,53:Ws,54:Ws,55:Ws,56:Ws,57:Ws,62:Kv},Ys={91:hs},$s={[-2]:is,[-1]:is,32:is},Zs={35:bs,42:Fs,45:[Rs,Fs],60:Ts,61:Rs,95:Fs,96:ns,126:ns},Ks={38:os,92:Xv},Xs={[-5]:Bs,[-4]:Bs,[-3]:Bs,33:Ds,38:os,42:Qv,60:[$v,Ls],91:Os,92:[xs,Xv],93:Is,95:Qv,96:us},Js={null:[Qv,js]};var ec=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:Ys,disable:{null:[]},document:Qs,flow:Zs,flowInitial:$s,insideSpan:Js,string:Ks,text:Xs});function lc(e){const l=function(e){const l={};let o=-1;for(;++o<e.length;)Lv(l,e[o]);return l}([ec,...(e||{}).extensions||[]]),o={defined:[],lazy:{},constructs:l,content:t(Vv),document:t(Uv),flow:t(Hs),string:t(Ns),text:t(Vs)};return o;function t(e){return function(l){return Gs(o,e,l)}}}const oc=/[\0\t\n\r]/g;function tc(e,l){const o=Number.parseInt(e,l);return o<9||11===o||o>13&&o<32||o>126&&o<160||o>55295&&o<57344||o>64975&&o<65008||!(65535&~o)||65534==(65535&o)||o>1114111?"�":String.fromCharCode(o)}const nc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ic(e,l,o){if(l)return l;if(35===o.charCodeAt(0)){const e=o.charCodeAt(1),l=120===e||88===e;return tc(o.slice(l?2:1),l?16:10)}return ls(o)||e}const rc={}.hasOwnProperty,uc=function(e,l,o){return"string"!=typeof l&&(o=l,l=void 0),function(e){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(oe),autolinkProtocol:I,autolinkEmail:I,atxHeading:u(X),blockQuote:u(Q),characterEscape:I,characterReference:I,codeFenced:u(Y),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:u(Y,a),codeText:u($,a),codeTextData:I,data:I,codeFlowValue:I,definition:u(Z),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:u(K),hardBreakEscape:u(J),hardBreakTrailing:u(J),htmlFlow:u(ee,a),htmlFlowData:I,htmlText:u(ee,a),htmlTextData:I,image:u(le),label:a,link:u(oe),listItem:u(ne),listItemValue:p,listOrdered:u(te,m),listUnordered:u(te),paragraph:u(ie),reference:N,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:u(X),strong:u(re),thematicBreak:u(ae)},exit:{atxHeading:v(),atxHeadingSequence:T,autolink:v(),autolinkEmail:G,autolinkProtocol:q,blockQuote:v(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:_,codeFenced:v(f),codeFencedFence:h,codeFencedFenceInfo:y,codeFencedFenceMeta:g,codeFlowValue:E,codeIndented:v(x),codeText:v(B),codeTextData:E,data:E,definition:v(),definitionDestinationString:S,definitionLabelString:b,definitionTitleString:C,emphasis:v(),hardBreakEscape:v(M),hardBreakTrailing:v(M),htmlFlow:v(D),htmlFlowData:E,htmlText:v(O),htmlTextData:E,image:v(W),label:z,labelText:A,lineEnding:P,link:v(F),listItem:v(),listOrdered:v(),listUnordered:v(),paragraph:v(),referenceString:V,resourceDestinationString:R,resourceTitleString:H,resource:j,setextHeading:v(L),setextHeadingLineSequence:k,setextHeadingText:w,strong:v(),thematicBreak:v()}};dc(l,(e||{}).mdastExtensions||[]);const o={};return t;function t(e){let o={type:"root",children:[]};const t={stack:[o],tokenStack:[],config:l,enter:d,exit:s,buffer:a,resume:c,setData:i,getData:r},u=[];let v=-1;for(;++v<e.length;)if("listOrdered"===e[v][1].type||"listUnordered"===e[v][1].type)if("enter"===e[v][0])u.push(v);else{v=n(e,u.pop(),v)}for(v=-1;++v<e.length;){const o=l[e[v][0]];rc.call(o,e[v][1].type)&&o[e[v][1].type].call(Object.assign({sliceSerialize:e[v][2].sliceSerialize},t),e[v][1])}if(t.tokenStack.length>0){const e=t.tokenStack[t.tokenStack.length-1];(e[1]||sc).call(t,void 0,e[0])}for(o.position={start:ac(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ac(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},v=-1;++v<l.transforms.length;)o=l.transforms[v](o)||o;return o}function n(e,l,o){let t,n,i,r,u=l-1,a=-1,d=!1;for(;++u<=o;){const l=e[u];if("listUnordered"===l[1].type||"listOrdered"===l[1].type||"blockQuote"===l[1].type?("enter"===l[0]?a++:a--,r=void 0):"lineEndingBlank"===l[1].type?"enter"===l[0]&&(!t||r||a||i||(i=u),r=void 0):"linePrefix"===l[1].type||"listItemValue"===l[1].type||"listItemMarker"===l[1].type||"listItemPrefix"===l[1].type||"listItemPrefixWhitespace"===l[1].type||(r=void 0),!a&&"enter"===l[0]&&"listItemPrefix"===l[1].type||-1===a&&"exit"===l[0]&&("listUnordered"===l[1].type||"listOrdered"===l[1].type)){if(t){let r=u;for(n=void 0;r--;){const l=e[r];if("lineEnding"===l[1].type||"lineEndingBlank"===l[1].type){if("exit"===l[0])continue;n&&(e[n][1].type="lineEndingBlank",d=!0),l[1].type="lineEnding",n=r}else if("linePrefix"!==l[1].type&&"blockQuotePrefix"!==l[1].type&&"blockQuotePrefixWhitespace"!==l[1].type&&"blockQuoteMarker"!==l[1].type&&"listItemIndent"!==l[1].type)break}i&&(!n||i<n)&&(t._spread=!0),t.end=Object.assign({},n?e[n][1].start:l[1].end),e.splice(n||u,0,["exit",t,l[2]]),u++,o++}"listItemPrefix"===l[1].type&&(t={type:"listItem",_spread:!1,start:Object.assign({},l[1].start),end:void 0},e.splice(u,0,["enter",t,l[2]]),u++,o++,i=void 0,r=!0)}}return e[l][1]._spread=d,o}function i(e,l){o[e]=l}function r(e){return o[e]}function u(e,l){return o;function o(o){d.call(this,e(o),o),l&&l.call(this,o)}}function a(){this.stack.push({type:"fragment",children:[]})}function d(e,l,o){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([l,o]),e.position={start:ac(l.start)},e}function v(e){return l;function l(l){e&&e.call(this,l),s.call(this,l)}}function s(e,l){const o=this.stack.pop(),t=this.tokenStack.pop();if(!t)throw new Error("Cannot close `"+e.type+"` ("+Ka({start:e.start,end:e.end})+"): it’s not open");if(t[0].type!==e.type)if(l)l.call(this,e,t[0]);else{(t[1]||sc).call(this,e,t[0])}return o.position.end=ac(e.end),o}function c(){return function(e){return Cv(e,"boolean"!=typeof bv.includeImageAlt||bv.includeImageAlt,"boolean"!=typeof bv.includeHtml||bv.includeHtml)}(this.stack.pop())}function m(){i("expectingFirstListItemValue",!0)}function p(e){if(r("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),i("expectingFirstListItemValue")}}function y(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function h(){r("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function f(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function x(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function b(e){const l=this.resume(),o=this.stack[this.stack.length-1];o.label=l,o.identifier=gs(this.sliceSerialize(e)).toLowerCase()}function C(){const e=this.resume();this.stack[this.stack.length-1].title=e}function S(){const e=this.resume();this.stack[this.stack.length-1].url=e}function T(e){const l=this.stack[this.stack.length-1];if(!l.depth){const o=this.sliceSerialize(e).length;l.depth=o}}function w(){i("setextHeadingSlurpLineEnding",!0)}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function L(){i("setextHeadingSlurpLineEnding")}function I(e){const l=this.stack[this.stack.length-1];let o=l.children[l.children.length-1];o&&"text"===o.type||(o=ue(),o.position={start:ac(e.start)},l.children.push(o)),this.stack.push(o)}function E(e){const l=this.stack.pop();l.value+=this.sliceSerialize(e),l.position.end=ac(e.end)}function P(e){const o=this.stack[this.stack.length-1];if(r("atHardBreak")){return o.children[o.children.length-1].position.end=ac(e.end),void i("atHardBreak")}!r("setextHeadingSlurpLineEnding")&&l.canContainEols.includes(o.type)&&(I.call(this,e),E.call(this,e))}function M(){i("atHardBreak",!0)}function D(){const e=this.resume();this.stack[this.stack.length-1].value=e}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function B(){const e=this.resume();this.stack[this.stack.length-1].value=e}function F(){const e=this.stack[this.stack.length-1];if(r("inReference")){const l=r("referenceType")||"shortcut";e.type+="Reference",e.referenceType=l,delete e.url,delete e.title}else delete e.identifier,delete e.label;i("referenceType")}function W(){const e=this.stack[this.stack.length-1];if(r("inReference")){const l=r("referenceType")||"shortcut";e.type+="Reference",e.referenceType=l,delete e.url,delete e.title}else delete e.identifier,delete e.label;i("referenceType")}function A(e){const l=this.sliceSerialize(e),o=this.stack[this.stack.length-2];o.label=function(e){return e.replace(nc,ic)}(l),o.identifier=gs(l).toLowerCase()}function z(){const e=this.stack[this.stack.length-1],l=this.resume(),o=this.stack[this.stack.length-1];if(i("inReference",!0),"link"===o.type){const l=e.children;o.children=l}else o.alt=l}function R(){const e=this.resume();this.stack[this.stack.length-1].url=e}function H(){const e=this.resume();this.stack[this.stack.length-1].title=e}function j(){i("inReference")}function N(){i("referenceType","collapsed")}function V(e){const l=this.resume(),o=this.stack[this.stack.length-1];o.label=l,o.identifier=gs(this.sliceSerialize(e)).toLowerCase(),i("referenceType","full")}function U(e){i("characterReferenceType",e.type)}function _(e){const l=this.sliceSerialize(e),o=r("characterReferenceType");let t;if(o)t=tc(l,"characterReferenceMarkerNumeric"===o?10:16),i("characterReferenceType");else{t=ls(l)}const n=this.stack.pop();n.value+=t,n.position.end=ac(e.end)}function q(e){E.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){E.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function Q(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function $(){return{type:"inlineCode",value:""}}function Z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function K(){return{type:"emphasis",children:[]}}function X(){return{type:"heading",depth:void 0,children:[]}}function J(){return{type:"break"}}function ee(){return{type:"html",value:""}}function le(){return{type:"image",title:null,url:"",alt:null}}function oe(){return{type:"link",title:null,url:"",children:[]}}function te(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ne(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function re(){return{type:"strong",children:[]}}function ue(){return{type:"text",value:""}}function ae(){return{type:"thematicBreak"}}}(o)(function(e){for(;!as(e););return e}(lc(o).document().write(function(){let e,l=1,o="",t=!0;return function(n,i,r){const u=[];let a,d,v,s,c;for(n=o+n.toString(i),v=0,o="",t&&(65279===n.charCodeAt(0)&&v++,t=void 0);v<n.length;){if(oc.lastIndex=v,a=oc.exec(n),s=a&&void 0!==a.index?a.index:n.length,c=n.charCodeAt(s),!a){o=n.slice(v);break}if(10===c&&v===s&&e)u.push(-3),e=void 0;else switch(e&&(u.push(-5),e=void 0),v<s&&(u.push(n.slice(v,s)),l+=s-v),c){case 0:u.push(65533),l++;break;case 9:for(d=4*Math.ceil(l/4),u.push(-2);l++<d;)u.push(-1);break;case 10:u.push(-4),l=1;break;default:e=!0,l=1}v=s+1}return r&&(e&&u.push(-5),o&&u.push(o),u.push(null)),u}}()(e,l,!0))))};function ac(e){return{line:e.line,column:e.column,offset:e.offset}}function dc(e,l){let o=-1;for(;++o<l.length;){const t=l[o];Array.isArray(t)?dc(e,t):vc(e,t)}}function vc(e,l){let o;for(o in l)if(rc.call(l,o))if("canContainEols"===o){const t=l[o];t&&e[o].push(...t)}else if("transforms"===o){const t=l[o];t&&e[o].push(...t)}else if("enter"===o||"exit"===o){const t=l[o];t&&Object.assign(e[o],t)}}function sc(e,l){throw e?new Error("Cannot close `"+e.type+"` ("+Ka({start:e.start,end:e.end})+"): a different token (`"+l.type+"`, "+Ka({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+Ka({start:l.start,end:l.end})+") is still open")}function cc(e){Object.assign(this,{Parser:l=>{const o=this.data("settings");return uc(l,Object.assign({},o,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function mc(e){const l=[];let o=-1,t=0,n=0;for(;++o<e.length;){const i=e.charCodeAt(o);let r="";if(37===i&&Pv(e.charCodeAt(o+1))&&Pv(e.charCodeAt(o+2)))n=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(r=String.fromCharCode(i));else if(i>55295&&i<57344){const l=e.charCodeAt(o+1);i<56320&&l>56319&&l<57344?(r=String.fromCharCode(i,l),n=1):r="�"}else r=String.fromCharCode(i);r&&(l.push(e.slice(t,o),encodeURIComponent(r)),t=o+n+1,r=""),n&&(o+=n,n=0)}return l.join("")+e.slice(t)}function pc(e,l){const o=String(l.identifier).toUpperCase(),t=mc(o.toLowerCase()),n=e.footnoteOrder.indexOf(o);let i;-1===n?(e.footnoteOrder.push(o),e.footnoteCounts[o]=1,i=e.footnoteOrder.length):(e.footnoteCounts[o]++,i=n+1);const r=e.footnoteCounts[o],u={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+t,id:e.clobberPrefix+"fnref-"+t+(r>1?"-"+r:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(l,u);const a={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(l,a),e.applyData(l,a)}function yc(e,l){const o=l.referenceType;let t="]";if("collapsed"===o?t+="[]":"full"===o&&(t+="["+(l.label||l.identifier)+"]"),"imageReference"===l.type)return{type:"text",value:"!["+l.alt+t};const n=e.all(l),i=n[0];i&&"text"===i.type?i.value="["+i.value:n.unshift({type:"text",value:"["});const r=n[n.length-1];return r&&"text"===r.type?r.value+=t:n.push({type:"text",value:t}),n}function gc(e){const l=e.spread;return null==l?e.children.length>1:l}const hc=xc("start"),fc=xc("end");function xc(e){return function(l){const o=l&&l.position&&l.position[e]||{};return{line:o.line||null,column:o.column||null,offset:o.offset>-1?o.offset:null}}}function bc(e){const l=String(e),o=/\r?\n|\r/g;let t=o.exec(l),n=0;const i=[];for(;t;)i.push(Cc(l.slice(n,t.index),n>0,!0),t[0]),n=t.index+t[0].length,t=o.exec(l);return i.push(Cc(l.slice(n),n>0,!1)),i.join("")}function Cc(e,l,o){let t=0,n=e.length;if(l){let l=e.codePointAt(t);for(;9===l||32===l;)t++,l=e.codePointAt(t)}if(o){let l=e.codePointAt(n-1);for(;9===l||32===l;)n--,l=e.codePointAt(n-1)}return n>t?e.slice(t,n):""}const Sc={blockquote:function(e,l){const o={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(l),!0)};return e.patch(l,o),e.applyData(l,o)},break:function(e,l){const o={type:"element",tagName:"br",properties:{},children:[]};return e.patch(l,o),[e.applyData(l,o),{type:"text",value:"\n"}]},code:function(e,l){const o=l.value?l.value+"\n":"",t=l.lang?l.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,n={};t&&(n.className=["language-"+t]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:o}]};return l.meta&&(i.data={meta:l.meta}),e.patch(l,i),i=e.applyData(l,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(l,i),i},delete:function(e,l){const o={type:"element",tagName:"del",properties:{},children:e.all(l)};return e.patch(l,o),e.applyData(l,o)},emphasis:function(e,l){const o={type:"element",tagName:"em",properties:{},children:e.all(l)};return e.patch(l,o),e.applyData(l,o)},footnoteReference:pc,footnote:function(e,l){const o=e.footnoteById;let t=1;for(;t in o;)t++;const n=String(t);return o[n]={type:"footnoteDefinition",identifier:n,children:[{type:"paragraph",children:l.children}],position:l.position},pc(e,{type:"footnoteReference",identifier:n,position:l.position})},heading:function(e,l){const o={type:"element",tagName:"h"+l.depth,properties:{},children:e.all(l)};return e.patch(l,o),e.applyData(l,o)},html:function(e,l){if(e.dangerous){const o={type:"raw",value:l.value};return e.patch(l,o),e.applyData(l,o)}return null},imageReference:function(e,l){const o=e.definition(l.identifier);if(!o)return yc(e,l);const t={src:mc(o.url||""),alt:l.alt};null!==o.title&&void 0!==o.title&&(t.title=o.title);const n={type:"element",tagName:"img",properties:t,children:[]};return e.patch(l,n),e.applyData(l,n)},image:function(e,l){const o={src:mc(l.url)};null!==l.alt&&void 0!==l.alt&&(o.alt=l.alt),null!==l.title&&void 0!==l.title&&(o.title=l.title);const t={type:"element",tagName:"img",properties:o,children:[]};return e.patch(l,t),e.applyData(l,t)},inlineCode:function(e,l){const o={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};e.patch(l,o);const t={type:"element",tagName:"code",properties:{},children:[o]};return e.patch(l,t),e.applyData(l,t)},linkReference:function(e,l){const o=e.definition(l.identifier);if(!o)return yc(e,l);const t={href:mc(o.url||"")};null!==o.title&&void 0!==o.title&&(t.title=o.title);const n={type:"element",tagName:"a",properties:t,children:e.all(l)};return e.patch(l,n),e.applyData(l,n)},link:function(e,l){const o={href:mc(l.url)};null!==l.title&&void 0!==l.title&&(o.title=l.title);const t={type:"element",tagName:"a",properties:o,children:e.all(l)};return e.patch(l,t),e.applyData(l,t)},listItem:function(e,l,o){const t=e.all(l),n=o?function(e){let l=!1;if("list"===e.type){l=e.spread||!1;const o=e.children;let t=-1;for(;!l&&++t<o.length;)l=gc(o[t])}return l}(o):gc(l),i={},r=[];if("boolean"==typeof l.checked){const e=t[0];let o;e&&"element"===e.type&&"p"===e.tagName?o=e:(o={type:"element",tagName:"p",properties:{},children:[]},t.unshift(o)),o.children.length>0&&o.children.unshift({type:"text",value:" "}),o.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let u=-1;for(;++u<t.length;){const e=t[u];(n||0!==u||"element"!==e.type||"p"!==e.tagName)&&r.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||n?r.push(e):r.push(...e.children)}const a=t[t.length-1];a&&(n||"element"!==a.type||"p"!==a.tagName)&&r.push({type:"text",value:"\n"});const d={type:"element",tagName:"li",properties:i,children:r};return e.patch(l,d),e.applyData(l,d)},list:function(e,l){const o={},t=e.all(l);let n=-1;for("number"==typeof l.start&&1!==l.start&&(o.start=l.start);++n<t.length;){const e=t[n];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){o.className=["contains-task-list"];break}}const i={type:"element",tagName:l.ordered?"ol":"ul",properties:o,children:e.wrap(t,!0)};return e.patch(l,i),e.applyData(l,i)},paragraph:function(e,l){const o={type:"element",tagName:"p",properties:{},children:e.all(l)};return e.patch(l,o),e.applyData(l,o)},root:function(e,l){const o={type:"root",children:e.wrap(e.all(l))};return e.patch(l,o),e.applyData(l,o)},strong:function(e,l){const o={type:"element",tagName:"strong",properties:{},children:e.all(l)};return e.patch(l,o),e.applyData(l,o)},table:function(e,l){const o=e.all(l),t=o.shift(),n=[];if(t){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([t],!0)};e.patch(l.children[0],o),n.push(o)}if(o.length>0){const t={type:"element",tagName:"tbody",properties:{},children:e.wrap(o,!0)},i=hc(l.children[1]),r=fc(l.children[l.children.length-1]);i.line&&r.line&&(t.position={start:i,end:r}),n.push(t)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(l,i),e.applyData(l,i)},tableCell:function(e,l){const o={type:"element",tagName:"td",properties:{},children:e.all(l)};return e.patch(l,o),e.applyData(l,o)},tableRow:function(e,l,o){const t=o?o.children:void 0,n=0===(t?t.indexOf(l):1)?"th":"td",i=o&&"table"===o.type?o.align:void 0,r=i?i.length:l.children.length;let u=-1;const a=[];for(;++u<r;){const o=l.children[u],t={},r=i?i[u]:void 0;r&&(t.align=r);let d={type:"element",tagName:n,properties:t,children:[]};o&&(d.children=e.all(o),e.patch(o,d),d=e.applyData(l,d)),a.push(d)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(l,d),e.applyData(l,d)},text:function(e,l){const o={type:"text",value:bc(String(l.value))};return e.patch(l,o),e.applyData(l,o)},thematicBreak:function(e,l){const o={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(l,o),e.applyData(l,o)},toml:Tc,yaml:Tc,definition:Tc,footnoteDefinition:Tc};function Tc(){return null}const wc=function(e){if(null==e)return Lc;if("string"==typeof e)return function(e){return kc(l);function l(l){return l&&l.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const l=[];let o=-1;for(;++o<e.length;)l[o]=wc(e[o]);return kc(t);function t(...e){let o=-1;for(;++o<l.length;)if(l[o].call(this,...e))return!0;return!1}}(e):function(e){return kc(l);function l(l){let o;for(o in e)if(l[o]!==e[o])return!1;return!0}}(e);if("function"==typeof e)return kc(e);throw new Error("Expected function, string, or object as test")};function kc(e){return function(l,...o){return Boolean(l&&"object"==typeof l&&"type"in l&&Boolean(e.call(this,l,...o)))}}function Lc(){return!0}const Ic=!0,Ec=!1,Pc=function(e,l,o,t){"function"==typeof l&&"function"!=typeof o&&(t=o,o=l,l=null);const n=wc(l),i=t?-1:1;!function e(r,u,a){const d=r&&"object"==typeof r?r:{};if("string"==typeof d.type){const e="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0;Object.defineProperty(s,"name",{value:"node ("+(v=r.type+(e?"<"+e+">":""),"[33m"+v+"[39m)")})}var v;return s;function s(){let d,v,s,c=[];if((!l||n(r,u,a[a.length-1]||null))&&(c=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Ic,e];return[e]}(o(r,a)),c[0]===Ec))return c;if(r.children&&"skip"!==c[0])for(v=(t?r.children.length:-1)+i,s=a.concat(r);v>-1&&v<r.children.length;){if(d=e(r.children[v],v,s)(),d[0]===Ec)return d;v="number"==typeof d[1]?d[1]:v+i}return c}}(e,void 0,[])()};const Mc=function(e,l,o,t){"function"==typeof l&&"function"!=typeof o&&(t=o,o=l,l=null),Pc(e,l,function(e,l){const t=l[l.length-1];return o(e,t?t.children.indexOf(e):null,t)},t)};const Dc={}.hasOwnProperty;function Oc(e){return String(e||"").toUpperCase()}const Bc={}.hasOwnProperty;function Fc(e,l){const o=l||{},t=o.allowDangerousHtml||!1,n={};return r.dangerous=t,r.clobberPrefix=void 0===o.clobberPrefix||null===o.clobberPrefix?"user-content-":o.clobberPrefix,r.footnoteLabel=o.footnoteLabel||"Footnotes",r.footnoteLabelTagName=o.footnoteLabelTagName||"h2",r.footnoteLabelProperties=o.footnoteLabelProperties||{className:["sr-only"]},r.footnoteBackLabel=o.footnoteBackLabel||"Back to content",r.unknownHandler=o.unknownHandler,r.passThrough=o.passThrough,r.handlers={...Sc,...o.handlers},r.definition=function(e){const l=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Mc(e,"definition",e=>{const o=Oc(e.identifier);o&&!Dc.call(l,o)&&(l[o]=e)}),function(e){const o=Oc(e);return o&&Dc.call(l,o)?l[o]:null}}(e),r.footnoteById=n,r.footnoteOrder=[],r.footnoteCounts={},r.patch=Wc,r.applyData=Ac,r.one=function(e,l){return zc(r,e,l)},r.all=function(e){return Rc(r,e)},r.wrap=Hc,r.augment=i,Mc(e,"footnoteDefinition",e=>{const l=String(e.identifier).toUpperCase();Bc.call(n,l)||(n[l]=e)}),r;function i(e,l){if(e&&"data"in e&&e.data){const o=e.data;o.hName&&("element"!==l.type&&(l={type:"element",tagName:"",properties:{},children:[]}),l.tagName=o.hName),"element"===l.type&&o.hProperties&&(l.properties={...l.properties,...o.hProperties}),"children"in l&&l.children&&o.hChildren&&(l.children=o.hChildren)}if(e){const o="type"in e?e:{position:e};(function(e){return!(e&&e.position&&e.position.start&&e.position.start.line&&e.position.start.column&&e.position.end&&e.position.end.line&&e.position.end.column)})(o)||(l.position={start:hc(o),end:fc(o)})}return l}function r(e,l,o,t){return Array.isArray(o)&&(t=o,o={}),i(e,{type:"element",tagName:l,properties:o||{},children:t||[]})}}function Wc(e,l){e.position&&(l.position=function(e){return{start:hc(e),end:fc(e)}}(e))}function Ac(e,l){let o=l;if(e&&e.data){const l=e.data.hName,t=e.data.hChildren,n=e.data.hProperties;"string"==typeof l&&("element"===o.type?o.tagName=l:o={type:"element",tagName:l,properties:{},children:[]}),"element"===o.type&&n&&(o.properties={...o.properties,...n}),"children"in o&&o.children&&null!=t&&(o.children=t)}return o}function zc(e,l,o){const t=l&&l.type;if(!t)throw new Error("Expected node, got `"+l+"`");return Bc.call(e.handlers,t)?e.handlers[t](e,l,o):e.passThrough&&e.passThrough.includes(t)?"children"in l?{...l,children:Rc(e,l)}:l:e.unknownHandler?e.unknownHandler(e,l,o):function(e,l){const o=l.data||{},t=!("value"in l)||Bc.call(o,"hProperties")||Bc.call(o,"hChildren")?{type:"element",tagName:"div",properties:{},children:Rc(e,l)}:{type:"text",value:l.value};return e.patch(l,t),e.applyData(l,t)}(e,l)}function Rc(e,l){const o=[];if("children"in l){const t=l.children;let n=-1;for(;++n<t.length;){const i=zc(e,t[n],l);if(i){if(n&&"break"===t[n-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(i)?o.push(...i):o.push(i)}}}return o}function Hc(e,l){const o=[];let t=-1;for(l&&o.push({type:"text",value:"\n"});++t<e.length;)t&&o.push({type:"text",value:"\n"}),o.push(e[t]);return l&&e.length>0&&o.push({type:"text",value:"\n"}),o}function jc(e,l){const o=Fc(e,l),t=o.one(e,null),n=function(e){const l=[];let o=-1;for(;++o<e.footnoteOrder.length;){const t=e.footnoteById[e.footnoteOrder[o]];if(!t)continue;const n=e.all(t),i=String(t.identifier).toUpperCase(),r=mc(i.toLowerCase());let u=0;const a=[];for(;++u<=e.footnoteCounts[i];){const l={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+r+(u>1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};u>1&&l.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),a.length>0&&a.push({type:"text",value:" "}),a.push(l)}const d=n[n.length-1];if(d&&"element"===d.type&&"p"===d.tagName){const e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...a)}else n.push(...a);const v={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+r},children:e.wrap(n,!0)};e.patch(t,v),l.push(v)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(o);return n&&t.children.push({type:"text",value:"\n"},n),Array.isArray(t)?{type:"root",children:t}:t}const Nc=function(e,l){return e&&"run"in e?function(e,l){return(o,t,n)=>{e.run(jc(o,l),t,e=>{n(e)})}}(e,l):function(e){return l=>jc(l,e)}(e||l)};class Vc{constructor(e,l,o){this.property=e,this.normal=l,o&&(this.space=o)}}function Uc(e,l){const o={},t={};let n=-1;for(;++n<e.length;)Object.assign(o,e[n].property),Object.assign(t,e[n].normal);return new Vc(o,t,l)}function _c(e){return e.toLowerCase()}Vc.prototype.property={},Vc.prototype.normal={},Vc.prototype.space=null;class qc{constructor(e,l){this.property=e,this.attribute=l}}qc.prototype.space=null,qc.prototype.boolean=!1,qc.prototype.booleanish=!1,qc.prototype.overloadedBoolean=!1,qc.prototype.number=!1,qc.prototype.commaSeparated=!1,qc.prototype.spaceSeparated=!1,qc.prototype.commaOrSpaceSeparated=!1,qc.prototype.mustUseProperty=!1,qc.prototype.defined=!1;let Gc=0;const Qc=em(),Yc=em(),$c=em(),Zc=em(),Kc=em(),Xc=em(),Jc=em();function em(){return 2**++Gc}var lm=Object.freeze({__proto__:null,boolean:Qc,booleanish:Yc,commaOrSpaceSeparated:Jc,commaSeparated:Xc,number:Zc,overloadedBoolean:$c,spaceSeparated:Kc});const om=Object.keys(lm);class tm extends qc{constructor(e,l,o,t){let n=-1;if(super(e,l),nm(this,"space",t),"number"==typeof o)for(;++n<om.length;){const e=om[n];nm(this,om[n],(o&lm[e])===lm[e])}}}function nm(e,l,o){o&&(e[l]=o)}tm.prototype.defined=!0;const im={}.hasOwnProperty;function rm(e){const l={},o={};let t;for(t in e.properties)if(im.call(e.properties,t)){const n=e.properties[t],i=new tm(t,e.transform(e.attributes||{},t),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(i.mustUseProperty=!0),l[t]=i,o[_c(t)]=t,o[_c(i.attribute)]=t}return new Vc(l,o,e.space)}const um=rm({space:"xlink",transform:(e,l)=>"xlink:"+l.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),am=rm({space:"xml",transform:(e,l)=>"xml:"+l.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function dm(e,l){return l in e?e[l]:l}function vm(e,l){return dm(e,l.toLowerCase())}const sm=rm({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:vm,properties:{xmlns:null,xmlnsXLink:null}}),cm=rm({transform:(e,l)=>"role"===l?l:"aria-"+l.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Yc,ariaAutoComplete:null,ariaBusy:Yc,ariaChecked:Yc,ariaColCount:Zc,ariaColIndex:Zc,ariaColSpan:Zc,ariaControls:Kc,ariaCurrent:null,ariaDescribedBy:Kc,ariaDetails:null,ariaDisabled:Yc,ariaDropEffect:Kc,ariaErrorMessage:null,ariaExpanded:Yc,ariaFlowTo:Kc,ariaGrabbed:Yc,ariaHasPopup:null,ariaHidden:Yc,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Kc,ariaLevel:Zc,ariaLive:null,ariaModal:Yc,ariaMultiLine:Yc,ariaMultiSelectable:Yc,ariaOrientation:null,ariaOwns:Kc,ariaPlaceholder:null,ariaPosInSet:Zc,ariaPressed:Yc,ariaReadOnly:Yc,ariaRelevant:null,ariaRequired:Yc,ariaRoleDescription:Kc,ariaRowCount:Zc,ariaRowIndex:Zc,ariaRowSpan:Zc,ariaSelected:Yc,ariaSetSize:Zc,ariaSort:null,ariaValueMax:Zc,ariaValueMin:Zc,ariaValueNow:Zc,ariaValueText:null,role:null}}),mm=rm({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:vm,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xc,acceptCharset:Kc,accessKey:Kc,action:null,allow:null,allowFullScreen:Qc,allowPaymentRequest:Qc,allowUserMedia:Qc,alt:null,as:null,async:Qc,autoCapitalize:null,autoComplete:Kc,autoFocus:Qc,autoPlay:Qc,blocking:Kc,capture:null,charSet:null,checked:Qc,cite:null,className:Kc,cols:Zc,colSpan:null,content:null,contentEditable:Yc,controls:Qc,controlsList:Kc,coords:Zc|Xc,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qc,defer:Qc,dir:null,dirName:null,disabled:Qc,download:$c,draggable:Yc,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qc,formTarget:null,headers:Kc,height:Zc,hidden:Qc,high:Zc,href:null,hrefLang:null,htmlFor:Kc,httpEquiv:Kc,id:null,imageSizes:null,imageSrcSet:null,inert:Qc,inputMode:null,integrity:null,is:null,isMap:Qc,itemId:null,itemProp:Kc,itemRef:Kc,itemScope:Qc,itemType:Kc,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qc,low:Zc,manifest:null,max:null,maxLength:Zc,media:null,method:null,min:null,minLength:Zc,multiple:Qc,muted:Qc,name:null,nonce:null,noModule:Qc,noValidate:Qc,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qc,optimum:Zc,pattern:null,ping:Kc,placeholder:null,playsInline:Qc,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qc,referrerPolicy:null,rel:Kc,required:Qc,reversed:Qc,rows:Zc,rowSpan:Zc,sandbox:Kc,scope:null,scoped:Qc,seamless:Qc,selected:Qc,shadowRootClonable:Qc,shadowRootDelegatesFocus:Qc,shadowRootMode:null,shape:null,size:Zc,sizes:null,slot:null,span:Zc,spellCheck:Yc,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Zc,step:null,style:null,tabIndex:Zc,target:null,title:null,translate:null,type:null,typeMustMatch:Qc,useMap:null,value:Yc,width:Zc,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Kc,axis:null,background:null,bgColor:null,border:Zc,borderColor:null,bottomMargin:Zc,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qc,declare:Qc,event:null,face:null,frame:null,frameBorder:null,hSpace:Zc,leftMargin:Zc,link:null,longDesc:null,lowSrc:null,marginHeight:Zc,marginWidth:Zc,noResize:Qc,noHref:Qc,noShade:Qc,noWrap:Qc,object:null,profile:null,prompt:null,rev:null,rightMargin:Zc,rules:null,scheme:null,scrolling:Yc,standby:null,summary:null,text:null,topMargin:Zc,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Zc,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qc,disableRemotePlayback:Qc,prefix:null,property:null,results:Zc,security:null,unselectable:null}}),pm=rm({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:dm,properties:{about:Jc,accentHeight:Zc,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Zc,amplitude:Zc,arabicForm:null,ascent:Zc,attributeName:null,attributeType:null,azimuth:Zc,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Zc,by:null,calcMode:null,capHeight:Zc,className:Kc,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Zc,diffuseConstant:Zc,direction:null,display:null,dur:null,divisor:Zc,dominantBaseline:null,download:Qc,dx:null,dy:null,edgeMode:null,editable:null,elevation:Zc,enableBackground:null,end:null,event:null,exponent:Zc,externalResourcesRequired:null,fill:null,fillOpacity:Zc,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Xc,g2:Xc,glyphName:Xc,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Zc,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Zc,horizOriginX:Zc,horizOriginY:Zc,id:null,ideographic:Zc,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Zc,k:Zc,k1:Zc,k2:Zc,k3:Zc,k4:Zc,kernelMatrix:Jc,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Zc,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Zc,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Zc,overlineThickness:Zc,paintOrder:null,panose1:null,path:null,pathLength:Zc,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Kc,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Zc,pointsAtY:Zc,pointsAtZ:Zc,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Jc,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Jc,rev:Jc,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Jc,requiredFeatures:Jc,requiredFonts:Jc,requiredFormats:Jc,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Zc,specularExponent:Zc,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Zc,strikethroughThickness:Zc,string:null,stroke:null,strokeDashArray:Jc,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Zc,strokeOpacity:Zc,strokeWidth:null,style:null,surfaceScale:Zc,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Jc,tabIndex:Zc,tableValues:null,target:null,targetX:Zc,targetY:Zc,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Jc,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Zc,underlineThickness:Zc,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Zc,values:null,vAlphabetic:Zc,vMathematical:Zc,vectorEffect:null,vHanging:Zc,vIdeographic:Zc,version:null,vertAdvY:Zc,vertOriginX:Zc,vertOriginY:Zc,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Zc,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ym=/^data[-\w.:]+$/i,gm=/-[a-z]/g,hm=/[A-Z]/g;function fm(e){return"-"+e.toLowerCase()}function xm(e){return e.charAt(1).toUpperCase()}const bm={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Cm=Uc([am,um,sm,cm,mm],"html"),Sm=Uc([am,um,sm,cm,pm],"svg");function Tm(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return l=>{Mc(l,"element",(l,o,t)=>{const n=t;let i;if(e.allowedElements?i=!e.allowedElements.includes(l.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(l.tagName)),!i&&e.allowElement&&"number"==typeof o&&(i=!e.allowElement(l,o,n)),i&&"number"==typeof o)return e.unwrapDisallowed&&l.children?n.children.splice(o,1,...l.children):n.children.splice(o,1),o})}}var wm,km={exports:{}},Lm={};var Im,Em={};"production"===hn.env.NODE_ENV?km.exports=function(){if(wm)return Lm;wm=1;var e,l=Symbol.for("react.element"),o=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),u=Symbol.for("react.context"),a=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case l:switch(e=e.type){case t:case i:case n:case v:case s:return e;default:switch(e=e&&e.$$typeof){case a:case u:case d:case m:case c:case r:return e;default:return p}}case o:return p}}}return e=Symbol.for("react.module.reference"),Lm.ContextConsumer=u,Lm.ContextProvider=r,Lm.Element=l,Lm.ForwardRef=d,Lm.Fragment=t,Lm.Lazy=m,Lm.Memo=c,Lm.Portal=o,Lm.Profiler=i,Lm.StrictMode=n,Lm.Suspense=v,Lm.SuspenseList=s,Lm.isAsyncMode=function(){return!1},Lm.isConcurrentMode=function(){return!1},Lm.isContextConsumer=function(e){return y(e)===u},Lm.isContextProvider=function(e){return y(e)===r},Lm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===l},Lm.isForwardRef=function(e){return y(e)===d},Lm.isFragment=function(e){return y(e)===t},Lm.isLazy=function(e){return y(e)===m},Lm.isMemo=function(e){return y(e)===c},Lm.isPortal=function(e){return y(e)===o},Lm.isProfiler=function(e){return y(e)===i},Lm.isStrictMode=function(e){return y(e)===n},Lm.isSuspense=function(e){return y(e)===v},Lm.isSuspenseList=function(e){return y(e)===s},Lm.isValidElementType=function(l){return"string"==typeof l||"function"==typeof l||l===t||l===i||l===n||l===v||l===s||l===p||"object"==typeof l&&null!==l&&(l.$$typeof===m||l.$$typeof===c||l.$$typeof===r||l.$$typeof===u||l.$$typeof===d||l.$$typeof===e||void 0!==l.getModuleId)},Lm.typeOf=y,Lm}():km.exports=(Im||(Im=1,"production"!==hn.env.NODE_ENV&&function(){var e,l=Symbol.for("react.element"),o=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),u=Symbol.for("react.context"),a=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case l:var y=e.type;switch(y){case t:case i:case n:case v:case s:return y;default:var g=y&&y.$$typeof;switch(g){case a:case u:case d:case m:case c:case r:return g;default:return p}}case o:return p}}}e=Symbol.for("react.module.reference");var g=u,h=r,f=l,x=d,b=t,C=m,S=c,T=o,w=i,k=n,L=v,I=s,E=!1,P=!1;Em.ContextConsumer=g,Em.ContextProvider=h,Em.Element=f,Em.ForwardRef=x,Em.Fragment=b,Em.Lazy=C,Em.Memo=S,Em.Portal=T,Em.Profiler=w,Em.StrictMode=k,Em.Suspense=L,Em.SuspenseList=I,Em.isAsyncMode=function(e){return E||(E=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Em.isConcurrentMode=function(e){return P||(P=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Em.isContextConsumer=function(e){return y(e)===u},Em.isContextProvider=function(e){return y(e)===r},Em.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===l},Em.isForwardRef=function(e){return y(e)===d},Em.isFragment=function(e){return y(e)===t},Em.isLazy=function(e){return y(e)===m},Em.isMemo=function(e){return y(e)===c},Em.isPortal=function(e){return y(e)===o},Em.isProfiler=function(e){return y(e)===i},Em.isStrictMode=function(e){return y(e)===n},Em.isSuspense=function(e){return y(e)===v},Em.isSuspenseList=function(e){return y(e)===s},Em.isValidElementType=function(l){return"string"==typeof l||"function"==typeof l||l===t||l===i||l===n||l===v||l===s||l===p||"object"==typeof l&&null!==l&&(l.$$typeof===m||l.$$typeof===c||l.$$typeof===r||l.$$typeof===u||l.$$typeof===d||l.$$typeof===e||void 0!==l.getModuleId)},Em.typeOf=y}()),Em);var Pm=Lu(km.exports);function Mm(e){const l=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof l&&""===l.replace(/[ \t\n\f\r]/g,"")}var Dm={exports:{}},Om=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Bm=/\n/g,Fm=/^\s*/,Wm=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Am=/^:\s*/,zm=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Rm=/^[;\s]*/,Hm=/^\s+|\s+$/g,jm="";function Nm(e){return e?e.replace(Hm,jm):jm}var Vm=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var o=1,t=1;function n(e){var l=e.match(Bm);l&&(o+=l.length);var n=e.lastIndexOf("\n");t=~n?e.length-n:t+e.length}function i(){var e={line:o,column:t};return function(l){return l.position=new r(e),d(),l}}function r(e){this.start=e,this.end={line:o,column:t},this.source=l.source}function u(n){var i=new Error(l.source+":"+o+":"+t+": "+n);if(i.reason=n,i.filename=l.source,i.line=o,i.column=t,i.source=e,!l.silent)throw i}function a(l){var o=l.exec(e);if(o){var t=o[0];return n(t),e=e.slice(t.length),o}}function d(){a(Fm)}function v(e){var l;for(e=e||[];l=s();)!1!==l&&e.push(l);return e}function s(){var l=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var o=2;jm!=e.charAt(o)&&("*"!=e.charAt(o)||"/"!=e.charAt(o+1));)++o;if(o+=2,jm===e.charAt(o-1))return u("End of comment missing");var r=e.slice(2,o-2);return t+=2,n(r),e=e.slice(o),t+=2,l({type:"comment",comment:r})}}function c(){var e=i(),l=a(Wm);if(l){if(s(),!a(Am))return u("property missing ':'");var o=a(zm),t=e({type:"declaration",property:Nm(l[0].replace(Om,jm)),value:o?Nm(o[0].replace(Om,jm)):jm});return a(Rm),t}}return r.prototype.content=e,d(),function(){var e,l=[];for(v(l);e=c();)!1!==e&&(l.push(e),v(l));return l}()};function Um(e,l){var o,t=null;if(!e||"string"!=typeof e)return t;for(var n,i,r=Vm(e),u="function"==typeof l,a=0,d=r.length;a<d;a++)n=(o=r[a]).property,i=o.value,u?l(n,i,o):i&&(t||(t={}),t[n]=i);return t}Dm.exports=Um,Dm.exports.default=Um;var _m=Lu(Dm.exports);const qm={}.hasOwnProperty,Gm=new Set(["table","thead","tbody","tfoot","tr"]);function Qm(e,l){const o=[];let t,n=-1;for(;++n<l.children.length;)t=l.children[n],"element"===t.type?o.push(Ym(e,t,n,l)):"text"===t.type?"element"===l.type&&Gm.has(l.tagName)&&Mm(t)||o.push(t.value):"raw"!==t.type||e.options.skipHtml||o.push(t.value);return o}function Ym(l,o,t,n){const i=l.options,r=void 0===i.transformLinkUri?$a:i.transformLinkUri,u=l.schema,a=o.tagName,d={};let v,s=u;if("html"===u.space&&"svg"===a&&(s=Sm,l.schema=s),o.properties)for(v in o.properties)qm.call(o.properties,v)&&Zm(d,v,o.properties[v],l);"ol"!==a&&"ul"!==a||l.listDepth++;const c=Qm(l,o);"ol"!==a&&"ul"!==a||l.listDepth--,l.schema=u;const m=o.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},p=i.components&&qm.call(i.components,a)?i.components[a]:a,y="string"==typeof p||p===e.Fragment;if(!Pm.isValidElementType(p))throw new TypeError(`Component for name \`${a}\` not defined or is not renderable`);if(d.key=t,"a"===a&&i.linkTarget&&(d.target="function"==typeof i.linkTarget?i.linkTarget(String(d.href||""),o.children,"string"==typeof d.title?d.title:null):i.linkTarget),"a"===a&&r&&(d.href=r(String(d.href||""),o.children,"string"==typeof d.title?d.title:null)),y||"code"!==a||"element"!==n.type||"pre"===n.tagName||(d.inline=!0),y||"h1"!==a&&"h2"!==a&&"h3"!==a&&"h4"!==a&&"h5"!==a&&"h6"!==a||(d.level=Number.parseInt(a.charAt(1),10)),"img"===a&&i.transformImageUri&&(d.src=i.transformImageUri(String(d.src||""),String(d.alt||""),"string"==typeof d.title?d.title:null)),!y&&"li"===a&&"element"===n.type){const e=function(e){let l=-1;for(;++l<e.children.length;){const o=e.children[l];if("element"===o.type&&"input"===o.tagName)return o}return null}(o);d.checked=e&&e.properties?Boolean(e.properties.checked):null,d.index=$m(n,o),d.ordered="ol"===n.tagName}var g;return y||"ol"!==a&&"ul"!==a||(d.ordered="ol"===a,d.depth=l.listDepth),"td"!==a&&"th"!==a||(d.align&&(d.style||(d.style={}),d.style.textAlign=d.align,delete d.align),y||(d.isHeader="th"===a)),y||"tr"!==a||"element"!==n.type||(d.isHeader=Boolean("thead"===n.tagName)),i.sourcePos&&(d["data-sourcepos"]=[(g=m).start.line,":",g.start.column,"-",g.end.line,":",g.end.column].map(String).join("")),!y&&i.rawSourcePos&&(d.sourcePosition=o.position),!y&&i.includeElementIndex&&(d.index=$m(n,o),d.siblingCount=$m(n)),y||(d.node=o),c.length>0?e.createElement(p,d,c):e.createElement(p,d)}function $m(e,l){let o=-1,t=0;for(;++o<e.children.length&&e.children[o]!==l;)"element"===e.children[o].type&&t++;return t}function Zm(e,l,o,t){const n=function(e,l){const o=_c(l);let t=l,n=qc;if(o in e.normal)return e.property[e.normal[o]];if(o.length>4&&"data"===o.slice(0,4)&&ym.test(l)){if("-"===l.charAt(4)){const e=l.slice(5).replace(gm,xm);t="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=l.slice(4);if(!gm.test(e)){let o=e.replace(hm,fm);"-"!==o.charAt(0)&&(o="-"+o),l="data"+o}}n=tm}return new n(t,l)}(t.schema,l);let i=o;null!=i&&i==i&&(Array.isArray(i)&&(i=n.commaSeparated?function(e){const l={};return(""===e[e.length-1]?[...e,""]:e).join((l.padRight?" ":"")+","+(!1===l.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===n.property&&"string"==typeof i&&(i=function(e){const l={};try{_m(e,o)}catch{}return l;function o(e,o){const t="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;l[t.replace(/-([a-z])/g,Km)]=o}}(i)),n.space&&n.property?e[qm.call(bm,n.property)?bm[n.property]:n.property]=i:n.attribute&&(e[n.attribute]=i))}function Km(e,l){return l.toUpperCase()}const Xm={}.hasOwnProperty,Jm={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function ep(l){for(const e in Jm)if(Xm.call(Jm,e)&&Xm.call(l,e)){const l=Jm[e];console.warn(`[react-markdown] Warning: please ${l.to?`use \`${l.to}\` instead of`:"remove"} \`${e}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${l.id}> for more info)`),delete Jm[e]}const o=sv().use(cc).use(l.remarkPlugins||[]).use(Nc,{...l.remarkRehypeOptions,allowDangerousHtml:!0}).use(l.rehypePlugins||[]).use(Tm,l),t=new Yd;"string"==typeof l.children?t.value=l.children:void 0!==l.children&&null!==l.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${l.children}\`)`);const n=o.runSync(o.parse(t),t);if("root"!==n.type)throw new TypeError("Expected a `root` node");let i=e.createElement(e.Fragment,{},Qm({options:l,schema:Cm,listDepth:0},n));return l.className&&(i=e.createElement("div",{className:l.className},i)),i}ep.propTypes={children:Ku.string,className:Ku.string,allowElement:Ku.func,allowedElements:Ku.arrayOf(Ku.string),disallowedElements:Ku.arrayOf(Ku.string),unwrapDisallowed:Ku.bool,remarkPlugins:Ku.arrayOf(Ku.oneOfType([Ku.object,Ku.func,Ku.arrayOf(Ku.oneOfType([Ku.bool,Ku.string,Ku.object,Ku.func,Ku.arrayOf(Ku.any)]))])),rehypePlugins:Ku.arrayOf(Ku.oneOfType([Ku.object,Ku.func,Ku.arrayOf(Ku.oneOfType([Ku.bool,Ku.string,Ku.object,Ku.func,Ku.arrayOf(Ku.any)]))])),sourcePos:Ku.bool,rawSourcePos:Ku.bool,skipHtml:Ku.bool,includeElementIndex:Ku.bool,transformLinkUri:Ku.oneOfType([Ku.func,Ku.bool]),linkTarget:Ku.oneOfType([Ku.func,Ku.string]),transformImageUri:Ku.func,components:Ku.object};var lp=ge("div")(function(e){var l=e.theme,o="light"===l.palette.mode;return{"& ul, & ol":Cl(Cl({},l.typography.body1),{},{paddingLeft:l.spacing(5),"& li":{lineHeight:2}}),"& blockquote":hl(hl(hl({lineHeight:1.5,fontSize:"1.5em",margin:"40px auto",position:"relative",fontFamily:"Georgia, serif",padding:l.spacing(3,3,3,8),borderRadius:2*Number(l.shape.borderRadius),backgroundColor:l.palette.background.neutral,color:"".concat(l.palette.text.secondary," !important")},l.breakpoints.up("md"),{width:"80%"}),"& p, & span",{marginBottom:"0 !important",fontSize:"inherit !important",fontFamily:"Georgia, serif !important",color:"".concat(l.palette.text.secondary," !important")}),"&:before",{left:16,top:-8,display:"block",fontSize:"3em",content:'"\\201C"',position:"absolute",color:l.palette.text.disabled}),"& pre, & pre > code":{fontSize:16,overflowX:"auto",whiteSpace:"pre",padding:l.spacing(2),color:l.palette.common.white,borderRadius:l.shape.borderRadius,backgroundColor:o?l.palette.grey[900]:he(l.palette.grey[500],.16)},"& code":{fontSize:14,borderRadius:4,whiteSpace:"pre",padding:l.spacing(.2,.5),color:l.palette.warning[o?"darker":"lighter"],backgroundColor:l.palette.warning[o?"lighter":"darker"],"&.hljs":{padding:0,backgroundColor:"transparent"}},table:{width:"100%",borderCollapse:"collapse",border:"1px solid ".concat(l.palette.divider),"th, td":{padding:l.spacing(1),border:"1px solid ".concat(l.palette.divider)},"tbody tr:nth-of-type(odd)":{backgroundColor:l.palette.background.neutral}},input:{"&[type=checkbox]":{position:"relative",cursor:"pointer","&:before":{content:'""',top:-2,left:-2,width:17,height:17,borderRadius:3,position:"absolute",backgroundColor:l.palette.grey[o?300:700]},"&:checked":{"&:before":{backgroundColor:l.palette.primary.main},"&:after":{content:'""',top:1,left:5,width:4,height:9,position:"absolute",transform:"rotate(45deg)",msTransform:"rotate(45deg)",WebkitTransform:"rotate(45deg)",border:"solid ".concat(l.palette.common.white),borderWidth:"0 2px 2px 0"}}}}}}),op=["sx"];function tp(l){var o=l.sx,t=Sl(l,op);return e.createElement(lp,{sx:o},e.createElement(ep,fl({rehypePlugins:[Qe,$e,[Ye,{singleTilde:!1}]],components:np},t)))}tp.propTypes={sx:Ku.object};var np={h1:function(l){var o=fl({},(xl(l),l));return e.createElement(x,fl({variant:"h1",gutterBottom:!0},o))},h2:function(l){var o=fl({},(xl(l),l));return e.createElement(x,fl({variant:"h2",gutterBottom:!0},o))},h3:function(l){var o=fl({},(xl(l),l));return e.createElement(x,fl({variant:"h3",gutterBottom:!0},o))},h4:function(l){var o=fl({},(xl(l),l));return e.createElement(x,fl({variant:"h4",gutterBottom:!0},o))},h5:function(l){var o=fl({},(xl(l),l));return e.createElement(x,fl({variant:"h5",gutterBottom:!0},o))},h6:function(l){var o=fl({},(xl(l),l));return e.createElement(x,fl({variant:"h6",gutterBottom:!0},o))},p:function(l){var o=fl({},(xl(l),l));return e.createElement(x,fl({paragraph:!0},o))},hr:function(l){var o=fl({},(xl(l),l));return e.createElement(S,fl({sx:{my:3}},o))},a:function(l){var o=fl({},(xl(l),l));return o.href.includes("http")?e.createElement(U,fl({target:"_blank",rel:"noopener"},o)):e.createElement(U,fl({component:Ge,to:o.href},o),o.children)}},ip=function(e){if(!e)return e;var l=document.createElement("textarea");return l.innerHTML=e,l.value};function rp(l){var o,t,n=l.themeColors;l.actions;var i=l.prop,r=l.styles;return l.states,l.globalComponentStyles,e.createElement(g,{sx:{width:"100%",py:"50px",px:{xs:"20px",md:"40px"},fontSize:"14px",margin:"0 auto",overflowY:"hidden",display:"flex",backgroundColor:(null==r||null===(o=r.EditorTextBlockBackgroundColor)||void 0===o?void 0:o.value)||(null==n||null===(t=n.EditorTextBlockBackgroundColor)||void 0===t?void 0:t.value)}},e.createElement(x,null,e.createElement(tp,{children:ip(i.editable.text.value)})))}var up={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},ap={common:{black:"#000",white:"#fff"},primary:{lighter:"#C8FACD",light:"#5BE584",main:"#00AB55",dark:"#007B55",darker:"#005249",contrastText:"#fff"},secondary:{lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},info:{lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},success:{lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},warning:{lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:up[800]},error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#fff"},grey:up,divider:he(up[500],.24),action:{hover:he(up[500],.08),selected:he(up[500],.16),disabled:he(up[500],.8),disabledBackground:he(up[500],.24),focus:he(up[500],.24),hoverOpacity:.08,disabledOpacity:.48}};var dp,vp=(dp=Cl(Cl({},ap),{},{mode:"light",text:{primary:up[800],secondary:up[600],disabled:up[500]},background:{paper:"#fff",default:"#fff",neutral:up[200]},action:Cl(Cl({},ap.action),{},{active:up[600]})}),Cl(Cl({},ap),{},{mode:"dark",text:{primary:"#fff",secondary:up[500],disabled:up[600]},background:{paper:up[800],default:up[900],neutral:he(up[500],.16)},action:Cl(Cl({},ap.action),{},{active:up[500]})}),dp),sp=[Cl({name:"default"},vp.primary),{name:"cyan",lighter:"#CCF4FE",light:"#68CDF9",main:"#078DEE",dark:"#0351AB",darker:"#012972",contrastText:"#FFFFFF"},{name:"purple",lighter:"#EBD6FD",light:"#B985F4",main:"#7635dc",dark:"#431A9E",darker:"#200A69",contrastText:"#FFFFFF"},{name:"blue",lighter:"#D1E9FC",light:"#76B0F1",main:"#2065D1",dark:"#103996",darker:"#061B64",contrastText:"#FFFFFF"},{name:"orange",lighter:"#FEF4D4",light:"#FED680",main:"#fda92d",dark:"#B66816",darker:"#793908",contrastText:vp.grey[800]},{name:"red",lighter:"#FFE3D5",light:"#FFC1AC",main:"#FF3030",dark:"#B71833",darker:"#7A0930",contrastText:"#FFFFFF"}],cp=sp[0];function mp(l){return e.createElement(ne,l,e.createElement("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"}))}function pp(l){var n,i,r,u,a,d,v,s,c,m,p,y,h,f,b,C,T,w,k,L,I,E,M,D,O,B,F,W,A,z,R,H,j,N,V,U,_,q,G,Q,Y,$,Z,K,X,J,ee,le,oe,ne,ie,re,ue,ae,de,ve,se,ce,me,pe,ye,ge,he,fe,xe,be,Ce,Se,Te,we,ke,Le,Ee,Pe,Me,De,Oe,Be,Fe,We,Ae,ze,Re,He,je,Ne,Ve,Ue,_e,qe,Ge,Qe,Ye,$e,Je,el,ll,ol,tl,nl,il,rl,ul,al,dl,vl,sl,cl,ml,pl,yl,fl,xl,bl,Sl,wl,Il,El,Pl,Ml,Dl,Ol,Bl,Fl,Wl,Al,zl,Rl,Hl,jl,Nl,Vl,Ul,_l,ql,Gl,Ql,Yl,$l,Zl,Kl,Xl,Jl,eo,lo,oo,to,no,io,ro,uo,ao,vo,so,co,mo,po,yo,go,ho,fo,xo,bo,Co,So,To,wo,ko,Lo,Io,Eo,Po,Mo,Do,Oo,Bo,Fo,Wo,Ao,zo,Ro,Ho,jo,No,Vo,Uo,_o,qo,Go,Qo,Yo,$o,Zo,Ko,Xo,Jo,et,lt,ot,tt,nt,it,ut,at,dt,vt,st,ct,pt,gt,ht,ft,xt,bt,Ct,St,Tt,wt,kt,Lt,It,Et,Pt,Mt,Dt,Ot,Bt,Ft,Wt,At,zt,Rt,Ht,jt,Nt,Vt,_t,qt,Gt,Qt,Yt,$t,Zt,Kt,Xt,Jt,en,ln,on,tn,nn,rn,un,an,dn,vn,sn,cn,mn,pn,yn,gn,hn,fn,xn,bn,Cn,Sn,Tn,wn,kn,Ln,In,En,Pn,Mn,Dn,On,Bn,Fn,Wn,An,zn,Rn,Hn,jn,Nn,Vn,Un,_n,qn,Gn,Qn,Yn,$n,Zn,Kn,Xn,Jn,ei,li,oi,ti,ni,ii,ri,ui,ai,di,vi,si,ci,mi,pi,yi,gi,hi,fi,xi,bi,Ci,Si,Ti,wi,ki,Li,Ii,Ei,Pi,Mi,Di,Oi,Bi,Fi,Wi,Ai,zi,Ri,Hi,ji,Ni,Vi,Ui,_i,qi,Gi,Qi,Yi,$i,Zi,Ki,Xi,Ji,er,lr,or,tr,nr,ir,rr,ur,ar,dr,vr,sr,cr,mr,pr,yr,gr,hr,fr,xr,br,Cr,Sr,Tr,wr,kr,Lr,Ir,Er,Pr,Mr,Dr,Or,Br,Fr,Wr,Ar,zr,Rr,Hr,jr,Nr,Vr,Ur,_r,qr,Gr,Qr,Yr,$r,Zr,Kr,Xr,Jr,eu,lu,ou,tu,nu,iu,ru,uu,au,du,vu,su,cu,mu,pu,yu,gu,hu,fu,xu,bu,Cu,Su,Tu,wu,ku,Lu,Iu,Eu,Pu,Mu,Du,Ou,Bu,Fu,Wu,Au,zu,Ru,Hu,ju,Nu,Vu,Uu,_u,qu,Gu,Qu,Yu,$u,Zu,Ku,Xu,Ju,ea,la,oa,ta,na,ia,ra;l.id,l.styles;var ua=l.layout,aa=l.globalComponentStyles,da=l.themeColors,va=l.states,sa=l.previewMode,ca=void 0!==sa&&sa,ma=l.actions,pa={color:""!==(null==ua||null===(n=ua.reviewLayout)||void 0===n||null===(n=n.body[0].styles)||void 0===n||null===(n=n.reviewPageReviewOrderHeadingsTextColor)||void 0===n?void 0:n.value)?"".concat(null==ua||null===(i=ua.reviewLayout)||void 0===i||null===(i=i.body[0].styles)||void 0===i||null===(i=i.reviewPageReviewOrderHeadingsTextColor)||void 0===i?void 0:i.value):""!=(null==aa||null===(r=aa.Text)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.value)?null==aa||null===(u=aa.Text)||void 0===u||null===(u=u.color)||void 0===u?void 0:u.value:"".concat(null==da||null===(a=da.reviewPageReviewOrderHeadingsTextColor)||void 0===a?void 0:a.value),fontSize:0!=(null==ua||null===(d=ua.reviewLayout)||void 0===d||null===(d=d.body[0].styles)||void 0===d||null===(d=d.reviewPageReviewOrderHeadingsTextSize)||void 0===d?void 0:d.value[yt()])?null==ua||null===(v=ua.reviewLayout)||void 0===v||null===(v=v.body[0].styles)||void 0===v||null===(v=v.reviewPageReviewOrderHeadingsTextSize)||void 0===v?void 0:v.value[yt()]:0!=(null==aa||null===(s=aa.Text)||void 0===s||null===(s=s.size)||void 0===s?void 0:s.value[yt()])?null==aa||null===(c=aa.Text)||void 0===c||null===(c=c.size)||void 0===c?void 0:c.value[yt()]:null==da||null===(m=da.reviewPageReviewOrderHeadingsTextSize)||void 0===m?void 0:m.value[yt()],fontWeight:""!=(null==ua||null===(p=ua.reviewLayout)||void 0===p||null===(p=p.body[0].styles)||void 0===p||null===(p=p.reviewPageReviewOrderHeadingsTextWeight)||void 0===p?void 0:p.value)?null==ua||null===(y=ua.reviewLayout)||void 0===y||null===(y=y.body[0].styles)||void 0===y||null===(y=y.reviewPageReviewOrderHeadingsTextWeight)||void 0===y?void 0:y.value:""!=(null==aa||null===(h=aa.Text)||void 0===h||null===(h=h.fontWeight)||void 0===h?void 0:h.value)?null==aa||null===(f=aa.Text)||void 0===f||null===(f=f.fontWeight)||void 0===f?void 0:f.value:null==da||null===(b=da.reviewPageReviewOrderHeadingsTextWeight)||void 0===b?void 0:b.value,fontFamily:""!=(null==ua||null===(C=ua.reviewLayout)||void 0===C||null===(C=C.body[0].styles)||void 0===C||null===(C=C.reviewPageReviewOrderHeadingsTextFont)||void 0===C?void 0:C.value)?null==ua||null===(T=ua.reviewLayout)||void 0===T||null===(T=T.body[0].styles)||void 0===T||null===(T=T.reviewPageReviewOrderHeadingsTextFont)||void 0===T?void 0:T.value:""!=(null==aa||null===(w=aa.Text)||void 0===w||null===(w=w.fontFamily)||void 0===w?void 0:w.value)?null==aa||null===(k=aa.Text)||void 0===k||null===(k=k.fontFamily)||void 0===k?void 0:k.value:null==da||null===(L=da.reviewPageReviewOrderHeadingsTextFont)||void 0===L?void 0:L.value,fontStyle:""!==(null==ua||null===(I=ua.reviewLayout)||void 0===I||null===(I=I.body[0].styles)||void 0===I||null===(I=I.reviewPageReviewOrderHeadingsTextStyle)||void 0===I?void 0:I.value)?null==ua||null===(E=ua.reviewLayout)||void 0===E||null===(E=E.body[0].styles)||void 0===E||null===(E=E.reviewPageReviewOrderHeadingsTextStyle)||void 0===E?void 0:E.value:""!=(null==aa||null===(M=aa.Text)||void 0===M||null===(M=M.fontStyle)||void 0===M?void 0:M.value)?null==aa||null===(D=aa.Text)||void 0===D||null===(D=D.fontStyle)||void 0===D?void 0:D.value:null==da||null===(O=da.reviewPageReviewOrderHeadingsTextStyle)||void 0===O?void 0:O.value},ya={color:""!==(null==ua||null===(B=ua.reviewLayout)||void 0===B||null===(B=B.body[0].styles)||void 0===B||null===(B=B.reviewPageQuestionsTextColor)||void 0===B?void 0:B.value)?"".concat(null==ua||null===(F=ua.reviewLayout)||void 0===F||null===(F=F.body[0].styles)||void 0===F||null===(F=F.reviewPageQuestionsTextColor)||void 0===F?void 0:F.value):""!=(null==aa||null===(W=aa.Text)||void 0===W||null===(W=W.color)||void 0===W?void 0:W.value)?null==aa||null===(A=aa.Text)||void 0===A||null===(A=A.color)||void 0===A?void 0:A.value:"".concat(null==da||null===(z=da.reviewPageQuestionsTextColor)||void 0===z?void 0:z.value),fontSize:0!=(null==ua||null===(R=ua.reviewLayout)||void 0===R||null===(R=R.body[0].styles)||void 0===R||null===(R=R.reviewPageQuestionsTextSize)||void 0===R?void 0:R.value[yt()])?null==ua||null===(H=ua.reviewLayout)||void 0===H||null===(H=H.body[0].styles)||void 0===H||null===(H=H.reviewPageQuestionsTextSize)||void 0===H?void 0:H.value[yt()]:0!=(null==aa||null===(j=aa.Text)||void 0===j||null===(j=j.size)||void 0===j?void 0:j.value[yt()])?null==aa||null===(N=aa.Text)||void 0===N||null===(N=N.size)||void 0===N?void 0:N.value[yt()]:null==da||null===(V=da.reviewPageQuestionsTextSize)||void 0===V?void 0:V.value[yt()],fontWeight:""!=(null==ua||null===(U=ua.reviewLayout)||void 0===U||null===(U=U.body[0].styles)||void 0===U||null===(U=U.reviewPageQuestionsTextWeight)||void 0===U?void 0:U.value)?null==ua||null===(_=ua.reviewLayout)||void 0===_||null===(_=_.body[0].styles)||void 0===_||null===(_=_.reviewPageQuestionsTextWeight)||void 0===_?void 0:_.value:""!=(null==aa||null===(q=aa.Text)||void 0===q||null===(q=q.fontWeight)||void 0===q?void 0:q.value)?null==aa||null===(G=aa.Text)||void 0===G||null===(G=G.fontWeight)||void 0===G?void 0:G.value:null==da||null===(Q=da.reviewPageQuestionsTextWeight)||void 0===Q?void 0:Q.value,fontFamily:""!=(null==ua||null===(Y=ua.reviewLayout)||void 0===Y||null===(Y=Y.body[0].styles)||void 0===Y||null===(Y=Y.reviewPageQuestionsTextFont)||void 0===Y?void 0:Y.value)?null==ua||null===($=ua.reviewLayout)||void 0===$||null===($=$.body[0].styles)||void 0===$||null===($=$.reviewPageQuestionsTextFont)||void 0===$?void 0:$.value:""!=(null==aa||null===(Z=aa.Text)||void 0===Z||null===(Z=Z.fontFamily)||void 0===Z?void 0:Z.value)?null==aa||null===(K=aa.Text)||void 0===K||null===(K=K.fontFamily)||void 0===K?void 0:K.value:null==da||null===(X=da.reviewPageQuestionsTextFont)||void 0===X?void 0:X.value,fontStyle:""!==(null==ua||null===(J=ua.reviewLayout)||void 0===J||null===(J=J.body[0].styles)||void 0===J||null===(J=J.reviewPageQuestionsTextStyle)||void 0===J?void 0:J.value)?null==ua||null===(ee=ua.reviewLayout)||void 0===ee||null===(ee=ee.body[0].styles)||void 0===ee||null===(ee=ee.reviewPageQuestionsTextStyle)||void 0===ee?void 0:ee.value:""!=(null==aa||null===(le=aa.Text)||void 0===le||null===(le=le.fontStyle)||void 0===le?void 0:le.value)?null==aa||null===(oe=aa.Text)||void 0===oe||null===(oe=oe.fontStyle)||void 0===oe?void 0:oe.value:null==da||null===(ne=da.reviewPageQuestionsTextStyle)||void 0===ne?void 0:ne.value},ga={color:""!==(null==ua||null===(ie=ua.reviewLayout)||void 0===ie||null===(ie=ie.body[0].styles)||void 0===ie||null===(ie=ie.reviewEachItemHeadingTextColor)||void 0===ie?void 0:ie.value)?"".concat(null==ua||null===(re=ua.reviewLayout)||void 0===re||null===(re=re.body[0].styles)||void 0===re||null===(re=re.reviewEachItemHeadingTextColor)||void 0===re?void 0:re.value):""!=(null==aa||null===(ue=aa.Text)||void 0===ue||null===(ue=ue.color)||void 0===ue?void 0:ue.value)?null==aa||null===(ae=aa.Text)||void 0===ae||null===(ae=ae.color)||void 0===ae?void 0:ae.value:"".concat(null==da||null===(de=da.reviewEachItemHeadingTextColor)||void 0===de?void 0:de.value),fontSize:0!=(null==ua||null===(ve=ua.reviewLayout)||void 0===ve||null===(ve=ve.body[0].styles)||void 0===ve||null===(ve=ve.reviewEachItemHeadingTextSize)||void 0===ve?void 0:ve.value[yt()])?null==ua||null===(se=ua.reviewLayout)||void 0===se||null===(se=se.body[0].styles)||void 0===se||null===(se=se.reviewEachItemHeadingTextSize)||void 0===se?void 0:se.value[yt()]:0!=(null==aa||null===(ce=aa.Text)||void 0===ce||null===(ce=ce.size)||void 0===ce?void 0:ce.value[yt()])?null==aa||null===(me=aa.Text)||void 0===me||null===(me=me.size)||void 0===me?void 0:me.value[yt()]:null==da||null===(pe=da.reviewEachItemHeadingTextSize)||void 0===pe?void 0:pe.value[yt()],fontWeight:""!=(null==ua||null===(ye=ua.reviewLayout)||void 0===ye||null===(ye=ye.body[0].styles)||void 0===ye||null===(ye=ye.reviewEachItemHeadingTextWeight)||void 0===ye?void 0:ye.value)?null==ua||null===(ge=ua.reviewLayout)||void 0===ge||null===(ge=ge.body[0].styles)||void 0===ge||null===(ge=ge.reviewEachItemHeadingTextWeight)||void 0===ge?void 0:ge.value:""!=(null==aa||null===(he=aa.Text)||void 0===he||null===(he=he.fontWeight)||void 0===he?void 0:he.value)?null==aa||null===(fe=aa.Text)||void 0===fe||null===(fe=fe.fontWeight)||void 0===fe?void 0:fe.value:null==da||null===(xe=da.reviewEachItemHeadingTextWeight)||void 0===xe?void 0:xe.value,fontFamily:""!=(null==ua||null===(be=ua.reviewLayout)||void 0===be||null===(be=be.body[0].styles)||void 0===be||null===(be=be.reviewEachItemHeadingTextFont)||void 0===be?void 0:be.value)?null==ua||null===(Ce=ua.reviewLayout)||void 0===Ce||null===(Ce=Ce.body[0].styles)||void 0===Ce||null===(Ce=Ce.reviewEachItemHeadingTextFont)||void 0===Ce?void 0:Ce.value:""!=(null==aa||null===(Se=aa.Text)||void 0===Se||null===(Se=Se.fontFamily)||void 0===Se?void 0:Se.value)?null==aa||null===(Te=aa.Text)||void 0===Te||null===(Te=Te.fontFamily)||void 0===Te?void 0:Te.value:null==da||null===(we=da.reviewEachItemHeadingTextFont)||void 0===we?void 0:we.value,fontStyle:""!==(null==ua||null===(ke=ua.reviewLayout)||void 0===ke||null===(ke=ke.body[0].styles)||void 0===ke||null===(ke=ke.reviewEachItemHeadingTextStyle)||void 0===ke?void 0:ke.value)?null==ua||null===(Le=ua.reviewLayout)||void 0===Le||null===(Le=Le.body[0].styles)||void 0===Le||null===(Le=Le.reviewEachItemHeadingTextStyle)||void 0===Le?void 0:Le.value:""!=(null==aa||null===(Ee=aa.Text)||void 0===Ee||null===(Ee=Ee.fontStyle)||void 0===Ee?void 0:Ee.value)?null==aa||null===(Pe=aa.Text)||void 0===Pe||null===(Pe=Pe.fontStyle)||void 0===Pe?void 0:Pe.value:null==da||null===(Me=da.reviewEachItemHeadingTextStyle)||void 0===Me?void 0:Me.value},ha={color:""!==(null==ua||null===(De=ua.reviewLayout)||void 0===De||null===(De=De.body[0].styles)||void 0===De||null===(De=De.reviewPageOrderNoTextColor)||void 0===De?void 0:De.value)?"".concat(null==ua||null===(Oe=ua.reviewLayout)||void 0===Oe||null===(Oe=Oe.body[0].styles)||void 0===Oe||null===(Oe=Oe.reviewPageOrderNoTextColor)||void 0===Oe?void 0:Oe.value):""!=(null==aa||null===(Be=aa.Text)||void 0===Be||null===(Be=Be.color)||void 0===Be?void 0:Be.value)?null==aa||null===(Fe=aa.Text)||void 0===Fe||null===(Fe=Fe.color)||void 0===Fe?void 0:Fe.value:"".concat(null==da||null===(We=da.reviewPageOrderNoTextColor)||void 0===We?void 0:We.value),fontSize:0!=(null==ua||null===(Ae=ua.reviewLayout)||void 0===Ae||null===(Ae=Ae.body[0].styles)||void 0===Ae||null===(Ae=Ae.reviewPageOrderNoTextSize)||void 0===Ae?void 0:Ae.value[yt()])?null==ua||null===(ze=ua.reviewLayout)||void 0===ze||null===(ze=ze.body[0].styles)||void 0===ze||null===(ze=ze.reviewPageOrderNoTextSize)||void 0===ze?void 0:ze.value[yt()]:0!=(null==aa||null===(Re=aa.Text)||void 0===Re||null===(Re=Re.size)||void 0===Re?void 0:Re.value[yt()])?null==aa||null===(He=aa.Text)||void 0===He||null===(He=He.size)||void 0===He?void 0:He.value[yt()]:null==da||null===(je=da.reviewPageOrderNoTextSize)||void 0===je?void 0:je.value[yt()],fontWeight:""!=(null==ua||null===(Ne=ua.reviewLayout)||void 0===Ne||null===(Ne=Ne.body[0].styles)||void 0===Ne||null===(Ne=Ne.reviewPageOrderNoTextWeight)||void 0===Ne?void 0:Ne.value)?null==ua||null===(Ve=ua.reviewLayout)||void 0===Ve||null===(Ve=Ve.body[0].styles)||void 0===Ve||null===(Ve=Ve.reviewPageOrderNoTextWeight)||void 0===Ve?void 0:Ve.value:""!=(null==aa||null===(Ue=aa.Text)||void 0===Ue||null===(Ue=Ue.fontWeight)||void 0===Ue?void 0:Ue.value)?null==aa||null===(_e=aa.Text)||void 0===_e||null===(_e=_e.fontWeight)||void 0===_e?void 0:_e.value:null==da||null===(qe=da.reviewPageOrderNoTextWeight)||void 0===qe?void 0:qe.value,fontFamily:""!=(null==ua||null===(Ge=ua.reviewLayout)||void 0===Ge||null===(Ge=Ge.body[0].styles)||void 0===Ge||null===(Ge=Ge.reviewPageOrderNoTextFont)||void 0===Ge?void 0:Ge.value)?null==ua||null===(Qe=ua.reviewLayout)||void 0===Qe||null===(Qe=Qe.body[0].styles)||void 0===Qe||null===(Qe=Qe.reviewPageOrderNoTextFont)||void 0===Qe?void 0:Qe.value:""!=(null==aa||null===(Ye=aa.Text)||void 0===Ye||null===(Ye=Ye.fontFamily)||void 0===Ye?void 0:Ye.value)?null==aa||null===($e=aa.Text)||void 0===$e||null===($e=$e.fontFamily)||void 0===$e?void 0:$e.value:null==da||null===(Je=da.reviewPageOrderNoTextFont)||void 0===Je?void 0:Je.value,fontStyle:""!==(null==ua||null===(el=ua.reviewLayout)||void 0===el||null===(el=el.body[0].styles)||void 0===el||null===(el=el.reviewPageOrderNoTextStyle)||void 0===el?void 0:el.value)?null==ua||null===(ll=ua.reviewLayout)||void 0===ll||null===(ll=ll.body[0].styles)||void 0===ll||null===(ll=ll.reviewPageOrderNoTextStyle)||void 0===ll?void 0:ll.value:""!=(null==aa||null===(ol=aa.Text)||void 0===ol||null===(ol=ol.fontStyle)||void 0===ol?void 0:ol.value)?null==aa||null===(tl=aa.Text)||void 0===tl||null===(tl=tl.fontStyle)||void 0===tl?void 0:tl.value:null==da||null===(nl=da.reviewPageOrderNoTextStyle)||void 0===nl?void 0:nl.value},fa={color:""!==(null==ua||null===(il=ua.reviewLayout)||void 0===il||null===(il=il.body[0].styles)||void 0===il||null===(il=il.reviewPageOrderTotalTextColor)||void 0===il?void 0:il.value)?"".concat(null==ua||null===(rl=ua.reviewLayout)||void 0===rl||null===(rl=rl.body[0].styles)||void 0===rl||null===(rl=rl.reviewPageOrderTotalTextColor)||void 0===rl?void 0:rl.value):""!=(null==aa||null===(ul=aa.Text)||void 0===ul||null===(ul=ul.color)||void 0===ul?void 0:ul.value)?null==aa||null===(al=aa.Text)||void 0===al||null===(al=al.color)||void 0===al?void 0:al.value:"".concat(null==da||null===(dl=da.reviewPageOrderTotalTextColor)||void 0===dl?void 0:dl.value),fontSize:0!=(null==ua||null===(vl=ua.reviewLayout)||void 0===vl||null===(vl=vl.body[0].styles)||void 0===vl||null===(vl=vl.reviewPageOrderTotalTextSize)||void 0===vl?void 0:vl.value[yt()])?null==ua||null===(sl=ua.reviewLayout)||void 0===sl||null===(sl=sl.body[0].styles)||void 0===sl||null===(sl=sl.reviewPageOrderTotalTextSize)||void 0===sl?void 0:sl.value[yt()]:0!=(null==aa||null===(cl=aa.Text)||void 0===cl||null===(cl=cl.size)||void 0===cl?void 0:cl.value[yt()])?null==aa||null===(ml=aa.Text)||void 0===ml||null===(ml=ml.size)||void 0===ml?void 0:ml.value[yt()]:null==da||null===(pl=da.reviewPageOrderTotalTextSize)||void 0===pl?void 0:pl.value[yt()],fontWeight:""!=(null==ua||null===(yl=ua.reviewLayout)||void 0===yl||null===(yl=yl.body[0].styles)||void 0===yl||null===(yl=yl.reviewPageOrderTotalTextWeight)||void 0===yl?void 0:yl.value)?null==ua||null===(fl=ua.reviewLayout)||void 0===fl||null===(fl=fl.body[0].styles)||void 0===fl||null===(fl=fl.reviewPageOrderTotalTextWeight)||void 0===fl?void 0:fl.value:""!=(null==aa||null===(xl=aa.Text)||void 0===xl||null===(xl=xl.fontWeight)||void 0===xl?void 0:xl.value)?null==aa||null===(bl=aa.Text)||void 0===bl||null===(bl=bl.fontWeight)||void 0===bl?void 0:bl.value:null==da||null===(Sl=da.reviewPageOrderTotalTextWeight)||void 0===Sl?void 0:Sl.value,fontFamily:""!=(null==ua||null===(wl=ua.reviewLayout)||void 0===wl||null===(wl=wl.body[0].styles)||void 0===wl||null===(wl=wl.reviewPageOrderTotalTextFont)||void 0===wl?void 0:wl.value)?null==ua||null===(Il=ua.reviewLayout)||void 0===Il||null===(Il=Il.body[0].styles)||void 0===Il||null===(Il=Il.reviewPageOrderTotalTextFont)||void 0===Il?void 0:Il.value:""!=(null==aa||null===(El=aa.Text)||void 0===El||null===(El=El.fontFamily)||void 0===El?void 0:El.value)?null==aa||null===(Pl=aa.Text)||void 0===Pl||null===(Pl=Pl.fontFamily)||void 0===Pl?void 0:Pl.value:null==da||null===(Ml=da.reviewPageOrderTotalTextFont)||void 0===Ml?void 0:Ml.value,fontStyle:""!==(null==ua||null===(Dl=ua.reviewLayout)||void 0===Dl||null===(Dl=Dl.body[0].styles)||void 0===Dl||null===(Dl=Dl.reviewPageOrderTotalTextStyle)||void 0===Dl?void 0:Dl.value)?null==ua||null===(Ol=ua.reviewLayout)||void 0===Ol||null===(Ol=Ol.body[0].styles)||void 0===Ol||null===(Ol=Ol.reviewPageOrderTotalTextStyle)||void 0===Ol?void 0:Ol.value:""!=(null==aa||null===(Bl=aa.Text)||void 0===Bl||null===(Bl=Bl.fontStyle)||void 0===Bl?void 0:Bl.value)?null==aa||null===(Fl=aa.Text)||void 0===Fl||null===(Fl=Fl.fontStyle)||void 0===Fl?void 0:Fl.value:null==da||null===(Wl=da.reviewPageOrderTotalTextStyle)||void 0===Wl?void 0:Wl.value},xa={color:""!==(null==ua||null===(Al=ua.reviewLayout)||void 0===Al||null===(Al=Al.body[0].styles)||void 0===Al||null===(Al=Al.reviewPageVarinatHeadingTextColor)||void 0===Al?void 0:Al.value)?"".concat(null==ua||null===(zl=ua.reviewLayout)||void 0===zl||null===(zl=zl.body[0].styles)||void 0===zl||null===(zl=zl.reviewPageVarinatHeadingTextColor)||void 0===zl?void 0:zl.value):""!=(null==aa||null===(Rl=aa.Text)||void 0===Rl||null===(Rl=Rl.color)||void 0===Rl?void 0:Rl.value)?null==aa||null===(Hl=aa.Text)||void 0===Hl||null===(Hl=Hl.color)||void 0===Hl?void 0:Hl.value:"".concat(null==da||null===(jl=da.reviewPageVarinatHeadingTextColor)||void 0===jl?void 0:jl.value),fontSize:0!=(null==ua||null===(Nl=ua.reviewLayout)||void 0===Nl||null===(Nl=Nl.body[0].styles)||void 0===Nl||null===(Nl=Nl.reviewPageVarinatHeadingTextSize)||void 0===Nl?void 0:Nl.value[yt()])?null==ua||null===(Vl=ua.reviewLayout)||void 0===Vl||null===(Vl=Vl.body[0].styles)||void 0===Vl||null===(Vl=Vl.reviewPageVarinatHeadingTextSize)||void 0===Vl?void 0:Vl.value[yt()]:0!=(null==aa||null===(Ul=aa.Text)||void 0===Ul||null===(Ul=Ul.size)||void 0===Ul?void 0:Ul.value[yt()])?null==aa||null===(_l=aa.Text)||void 0===_l||null===(_l=_l.size)||void 0===_l?void 0:_l.value[yt()]:null==da||null===(ql=da.reviewPageVarinatHeadingTextSize)||void 0===ql?void 0:ql.value[yt()],fontWeight:""!=(null==ua||null===(Gl=ua.reviewLayout)||void 0===Gl||null===(Gl=Gl.body[0].styles)||void 0===Gl||null===(Gl=Gl.reviewPageVarinatHeadingTextWeight)||void 0===Gl?void 0:Gl.value)?null==ua||null===(Ql=ua.reviewLayout)||void 0===Ql||null===(Ql=Ql.body[0].styles)||void 0===Ql||null===(Ql=Ql.reviewPageVarinatHeadingTextWeight)||void 0===Ql?void 0:Ql.value:""!=(null==aa||null===(Yl=aa.Text)||void 0===Yl||null===(Yl=Yl.fontWeight)||void 0===Yl?void 0:Yl.value)?null==aa||null===($l=aa.Text)||void 0===$l||null===($l=$l.fontWeight)||void 0===$l?void 0:$l.value:null==da||null===(Zl=da.reviewPageVarinatHeadingTextWeight)||void 0===Zl?void 0:Zl.value,fontFamily:""!=(null==ua||null===(Kl=ua.reviewLayout)||void 0===Kl||null===(Kl=Kl.body[0].styles)||void 0===Kl||null===(Kl=Kl.reviewPageVarinatHeadingTextFont)||void 0===Kl?void 0:Kl.value)?null==ua||null===(Xl=ua.reviewLayout)||void 0===Xl||null===(Xl=Xl.body[0].styles)||void 0===Xl||null===(Xl=Xl.reviewPageVarinatHeadingTextFont)||void 0===Xl?void 0:Xl.value:""!=(null==aa||null===(Jl=aa.Text)||void 0===Jl||null===(Jl=Jl.fontFamily)||void 0===Jl?void 0:Jl.value)?null==aa||null===(eo=aa.Text)||void 0===eo||null===(eo=eo.fontFamily)||void 0===eo?void 0:eo.value:null==da||null===(lo=da.reviewPageVarinatHeadingTextFont)||void 0===lo?void 0:lo.value,fontStyle:""!==(null==ua||null===(oo=ua.reviewLayout)||void 0===oo||null===(oo=oo.body[0].styles)||void 0===oo||null===(oo=oo.reviewPageVarinatHeadingTextStyle)||void 0===oo?void 0:oo.value)?null==ua||null===(to=ua.reviewLayout)||void 0===to||null===(to=to.body[0].styles)||void 0===to||null===(to=to.reviewPageVarinatHeadingTextStyle)||void 0===to?void 0:to.value:""!=(null==aa||null===(no=aa.Text)||void 0===no||null===(no=no.fontStyle)||void 0===no?void 0:no.value)?null==aa||null===(io=aa.Text)||void 0===io||null===(io=io.fontStyle)||void 0===io?void 0:io.value:null==da||null===(ro=da.reviewPageVarinatHeadingTextStyle)||void 0===ro?void 0:ro.value},ba={color:""!==(null==ua||null===(uo=ua.reviewLayout)||void 0===uo||null===(uo=uo.body[0].styles)||void 0===uo||null===(uo=uo.reviewPageSelectedVarinatHeadingTextColor)||void 0===uo?void 0:uo.value)?"".concat(null==ua||null===(ao=ua.reviewLayout)||void 0===ao||null===(ao=ao.body[0].styles)||void 0===ao||null===(ao=ao.reviewPageSelectedVarinatHeadingTextColor)||void 0===ao?void 0:ao.value):""!=(null==aa||null===(vo=aa.Text)||void 0===vo||null===(vo=vo.color)||void 0===vo?void 0:vo.value)?null==aa||null===(so=aa.Text)||void 0===so||null===(so=so.color)||void 0===so?void 0:so.value:"".concat(null==da||null===(co=da.reviewPageSelectedVarinatHeadingTextColor)||void 0===co?void 0:co.value),fontSize:0!=(null==ua||null===(mo=ua.reviewLayout)||void 0===mo||null===(mo=mo.body[0].styles)||void 0===mo||null===(mo=mo.reviewPageSelectedVarinatHeadingTextSize)||void 0===mo?void 0:mo.value[yt()])?null==ua||null===(po=ua.reviewLayout)||void 0===po||null===(po=po.body[0].styles)||void 0===po||null===(po=po.reviewPageSelectedVarinatHeadingTextSize)||void 0===po?void 0:po.value[yt()]:0!=(null==aa||null===(yo=aa.Text)||void 0===yo||null===(yo=yo.size)||void 0===yo?void 0:yo.value[yt()])?null==aa||null===(go=aa.Text)||void 0===go||null===(go=go.size)||void 0===go?void 0:go.value[yt()]:null==da||null===(ho=da.reviewPageSelectedVarinatHeadingTextSize)||void 0===ho?void 0:ho.value[yt()],fontWeight:""!=(null==ua||null===(fo=ua.reviewLayout)||void 0===fo||null===(fo=fo.body[0].styles)||void 0===fo||null===(fo=fo.reviewPageSelectedVarinatHeadingTextWeight)||void 0===fo?void 0:fo.value)?null==ua||null===(xo=ua.reviewLayout)||void 0===xo||null===(xo=xo.body[0].styles)||void 0===xo||null===(xo=xo.reviewPageSelectedVarinatHeadingTextWeight)||void 0===xo?void 0:xo.value:""!=(null==aa||null===(bo=aa.Text)||void 0===bo||null===(bo=bo.fontWeight)||void 0===bo?void 0:bo.value)?null==aa||null===(Co=aa.Text)||void 0===Co||null===(Co=Co.fontWeight)||void 0===Co?void 0:Co.value:null==da||null===(So=da.reviewPageSelectedVarinatHeadingTextWeight)||void 0===So?void 0:So.value,fontFamily:""!=(null==ua||null===(To=ua.reviewLayout)||void 0===To||null===(To=To.body[0].styles)||void 0===To||null===(To=To.reviewPageSelectedVarinatHeadingTextFont)||void 0===To?void 0:To.value)?null==ua||null===(wo=ua.reviewLayout)||void 0===wo||null===(wo=wo.body[0].styles)||void 0===wo||null===(wo=wo.reviewPageSelectedVarinatHeadingTextFont)||void 0===wo?void 0:wo.value:""!=(null==aa||null===(ko=aa.Text)||void 0===ko||null===(ko=ko.fontFamily)||void 0===ko?void 0:ko.value)?null==aa||null===(Lo=aa.Text)||void 0===Lo||null===(Lo=Lo.fontFamily)||void 0===Lo?void 0:Lo.value:null==da||null===(Io=da.reviewPageSelectedVarinatHeadingTextFont)||void 0===Io?void 0:Io.value,fontStyle:""!==(null==ua||null===(Eo=ua.reviewLayout)||void 0===Eo||null===(Eo=Eo.body[0].styles)||void 0===Eo||null===(Eo=Eo.reviewPageSelectedVarinatHeadingTextStyle)||void 0===Eo?void 0:Eo.value)?null==ua||null===(Po=ua.reviewLayout)||void 0===Po||null===(Po=Po.body[0].styles)||void 0===Po||null===(Po=Po.reviewPageSelectedVarinatHeadingTextStyle)||void 0===Po?void 0:Po.value:""!=(null==aa||null===(Mo=aa.Text)||void 0===Mo||null===(Mo=Mo.fontStyle)||void 0===Mo?void 0:Mo.value)?null==aa||null===(Do=aa.Text)||void 0===Do||null===(Do=Do.fontStyle)||void 0===Do?void 0:Do.value:null==da||null===(Oo=da.reviewPageSelectedVarinatHeadingTextStyle)||void 0===Oo?void 0:Oo.value},Ca={color:""!==(null==ua||null===(Bo=ua.reviewLayout)||void 0===Bo||null===(Bo=Bo.body[0].styles)||void 0===Bo||null===(Bo=Bo.reviewPageSubmitTextColor)||void 0===Bo?void 0:Bo.value)?"".concat(null==ua||null===(Fo=ua.reviewLayout)||void 0===Fo||null===(Fo=Fo.body[0].styles)||void 0===Fo||null===(Fo=Fo.reviewPageSubmitTextColor)||void 0===Fo?void 0:Fo.value):""!=(null==aa||null===(Wo=aa.Button)||void 0===Wo||null===(Wo=Wo.color)||void 0===Wo?void 0:Wo.value)?null==aa||null===(Ao=aa.Button)||void 0===Ao||null===(Ao=Ao.color)||void 0===Ao?void 0:Ao.value:"".concat(null==da||null===(zo=da.reviewPageSubmitTextColor)||void 0===zo?void 0:zo.value),fontSize:0!=(null==ua||null===(Ro=ua.reviewLayout)||void 0===Ro||null===(Ro=Ro.body[0].styles)||void 0===Ro||null===(Ro=Ro.reviewPageSubmitTextSize)||void 0===Ro?void 0:Ro.value[yt()])?null==ua||null===(Ho=ua.reviewLayout)||void 0===Ho||null===(Ho=Ho.body[0].styles)||void 0===Ho||null===(Ho=Ho.reviewPageSubmitTextSize)||void 0===Ho?void 0:Ho.value[yt()]:0!=(null==aa||null===(jo=aa.Button)||void 0===jo||null===(jo=jo.size)||void 0===jo?void 0:jo.value[yt()])?null==aa||null===(No=aa.Button)||void 0===No||null===(No=No.size)||void 0===No?void 0:No.value[yt()]:null==da||null===(Vo=da.reviewPageSubmitTextSize)||void 0===Vo?void 0:Vo.value[yt()],fontWeight:""!=(null==ua||null===(Uo=ua.reviewLayout)||void 0===Uo||null===(Uo=Uo.body[0].styles)||void 0===Uo||null===(Uo=Uo.reviewPageSubmitTextWeight)||void 0===Uo?void 0:Uo.value)?null==ua||null===(_o=ua.reviewLayout)||void 0===_o||null===(_o=_o.body[0].styles)||void 0===_o||null===(_o=_o.reviewPageSubmitTextWeight)||void 0===_o?void 0:_o.value:""!=(null==aa||null===(qo=aa.Button)||void 0===qo||null===(qo=qo.fontWeight)||void 0===qo?void 0:qo.value)?null==aa||null===(Go=aa.Button)||void 0===Go||null===(Go=Go.fontWeight)||void 0===Go?void 0:Go.value:null==da||null===(Qo=da.reviewPageSubmitTextWeight)||void 0===Qo?void 0:Qo.value,fontFamily:""!=(null==ua||null===(Yo=ua.reviewLayout)||void 0===Yo||null===(Yo=Yo.body[0].styles)||void 0===Yo||null===(Yo=Yo.reviewPageSubmitTextFont)||void 0===Yo?void 0:Yo.value)?null==ua||null===($o=ua.reviewLayout)||void 0===$o||null===($o=$o.body[0].styles)||void 0===$o||null===($o=$o.reviewPageSubmitTextFont)||void 0===$o?void 0:$o.value:""!=(null==aa||null===(Zo=aa.Button)||void 0===Zo||null===(Zo=Zo.fontFamily)||void 0===Zo?void 0:Zo.value)?null==aa||null===(Ko=aa.Button)||void 0===Ko||null===(Ko=Ko.fontFamily)||void 0===Ko?void 0:Ko.value:null==da||null===(Xo=da.reviewPageSubmitTextFont)||void 0===Xo?void 0:Xo.value,fontStyle:""!==(null==ua||null===(Jo=ua.reviewLayout)||void 0===Jo||null===(Jo=Jo.body[0].styles)||void 0===Jo||null===(Jo=Jo.reviewPageSubmitTextStyle)||void 0===Jo?void 0:Jo.value)?null==ua||null===(et=ua.reviewLayout)||void 0===et||null===(et=et.body[0].styles)||void 0===et||null===(et=et.reviewPageSubmitTextStyle)||void 0===et?void 0:et.value:""!=(null==aa||null===(lt=aa.Button)||void 0===lt||null===(lt=lt.fontStyle)||void 0===lt?void 0:lt.value)?null==aa||null===(ot=aa.Button)||void 0===ot||null===(ot=ot.fontStyle)||void 0===ot?void 0:ot.value:null==da||null===(tt=da.reviewPageSubmitTextStyle)||void 0===tt?void 0:tt.value,backgroundColor:""!==(null==ua||null===(nt=ua.reviewLayout)||void 0===nt||null===(nt=nt.body[0].styles)||void 0===nt||null===(nt=nt.reviewPageSubmitButtonBackgroundColor)||void 0===nt?void 0:nt.value)?null==ua||null===(it=ua.reviewLayout)||void 0===it||null===(it=it.body[0].styles)||void 0===it||null===(it=it.reviewPageSubmitButtonBackgroundColor)||void 0===it?void 0:it.value:""!=(null==aa||null===(ut=aa.Button)||void 0===ut||null===(ut=ut.backgroundColor)||void 0===ut?void 0:ut.value)?null==aa||null===(at=aa.Button)||void 0===at||null===(at=at.backgroundColor)||void 0===at?void 0:at.value:null==da||null===(dt=da.reviewPageSubmitButtonBackgroundColor)||void 0===dt?void 0:dt.value,borderRadius:""!=(null==ua||null===(vt=ua.reviewLayout)||void 0===vt||null===(vt=vt.body[0].styles)||void 0===vt||null===(vt=vt.reviewPageSubmitBorderRadius)||void 0===vt?void 0:vt.value)?"".concat(null==ua||null===(st=ua.reviewLayout)||void 0===st||null===(st=st.body[0].styles)||void 0===st||null===(st=st.reviewPageSubmitBorderRadius)||void 0===st?void 0:st.value,"px"):"".concat(null==da||null===(ct=da.reviewPageSubmitBorderRadius)||void 0===ct?void 0:ct.value,"px")},Sa={color:""!==(null==ua||null===(pt=ua.reviewLayout)||void 0===pt||null===(pt=pt.body[0].styles)||void 0===pt||null===(pt=pt.reviewPageHomeTextColor)||void 0===pt?void 0:pt.value)?"".concat(null==ua||null===(gt=ua.reviewLayout)||void 0===gt||null===(gt=gt.body[0].styles)||void 0===gt||null===(gt=gt.reviewPageHomeTextColor)||void 0===gt?void 0:gt.value):""!=(null==aa||null===(ht=aa.Button)||void 0===ht||null===(ht=ht.color)||void 0===ht?void 0:ht.value)?null==aa||null===(ft=aa.Button)||void 0===ft||null===(ft=ft.color)||void 0===ft?void 0:ft.value:"".concat(null==da||null===(xt=da.reviewPageHomeTextColor)||void 0===xt?void 0:xt.value),fontSize:0!=(null==ua||null===(bt=ua.reviewLayout)||void 0===bt||null===(bt=bt.body[0].styles)||void 0===bt||null===(bt=bt.reviewPageHomeTextSize)||void 0===bt?void 0:bt.value[yt()])?null==ua||null===(Ct=ua.reviewLayout)||void 0===Ct||null===(Ct=Ct.body[0].styles)||void 0===Ct||null===(Ct=Ct.reviewPageHomeTextSize)||void 0===Ct?void 0:Ct.value[yt()]:0!=(null==aa||null===(St=aa.Button)||void 0===St||null===(St=St.size)||void 0===St?void 0:St.value[yt()])?null==aa||null===(Tt=aa.Button)||void 0===Tt||null===(Tt=Tt.size)||void 0===Tt?void 0:Tt.value[yt()]:null==da||null===(wt=da.reviewPageHomeTextSize)||void 0===wt?void 0:wt.value[yt()],fontWeight:""!=(null==ua||null===(kt=ua.reviewLayout)||void 0===kt||null===(kt=kt.body[0].styles)||void 0===kt||null===(kt=kt.reviewPageHomeTextWeight)||void 0===kt?void 0:kt.value)?null==ua||null===(Lt=ua.reviewLayout)||void 0===Lt||null===(Lt=Lt.body[0].styles)||void 0===Lt||null===(Lt=Lt.reviewPageHomeTextWeight)||void 0===Lt?void 0:Lt.value:""!=(null==aa||null===(It=aa.Button)||void 0===It||null===(It=It.fontWeight)||void 0===It?void 0:It.value)?null==aa||null===(Et=aa.Button)||void 0===Et||null===(Et=Et.fontWeight)||void 0===Et?void 0:Et.value:null==da||null===(Pt=da.reviewPageHomeTextWeight)||void 0===Pt?void 0:Pt.value,fontFamily:""!=(null==ua||null===(Mt=ua.reviewLayout)||void 0===Mt||null===(Mt=Mt.body[0].styles)||void 0===Mt||null===(Mt=Mt.reviewPageHomeTextFont)||void 0===Mt?void 0:Mt.value)?null==ua||null===(Dt=ua.reviewLayout)||void 0===Dt||null===(Dt=Dt.body[0].styles)||void 0===Dt||null===(Dt=Dt.reviewPageHomeTextFont)||void 0===Dt?void 0:Dt.value:""!=(null==aa||null===(Ot=aa.Button)||void 0===Ot||null===(Ot=Ot.fontFamily)||void 0===Ot?void 0:Ot.value)?null==aa||null===(Bt=aa.Button)||void 0===Bt||null===(Bt=Bt.fontFamily)||void 0===Bt?void 0:Bt.value:null==da||null===(Ft=da.reviewPageHomeTextFont)||void 0===Ft?void 0:Ft.value,fontStyle:""!==(null==ua||null===(Wt=ua.reviewLayout)||void 0===Wt||null===(Wt=Wt.body[0].styles)||void 0===Wt||null===(Wt=Wt.reviewPageHomeTextStyle)||void 0===Wt?void 0:Wt.value)?null==ua||null===(At=ua.reviewLayout)||void 0===At||null===(At=At.body[0].styles)||void 0===At||null===(At=At.reviewPageHomeTextStyle)||void 0===At?void 0:At.value:""!=(null==aa||null===(zt=aa.Button)||void 0===zt||null===(zt=zt.fontStyle)||void 0===zt?void 0:zt.value)?null==aa||null===(Rt=aa.Button)||void 0===Rt||null===(Rt=Rt.fontStyle)||void 0===Rt?void 0:Rt.value:null==da||null===(Ht=da.reviewPageHomeTextStyle)||void 0===Ht?void 0:Ht.value,backgroundColor:""!==(null==ua||null===(jt=ua.reviewLayout)||void 0===jt||null===(jt=jt.body[0].styles)||void 0===jt||null===(jt=jt.reviewPageHomeButtonBackgroundColor)||void 0===jt?void 0:jt.value)?null==ua||null===(Nt=ua.reviewLayout)||void 0===Nt||null===(Nt=Nt.body[0].styles)||void 0===Nt||null===(Nt=Nt.reviewPageHomeButtonBackgroundColor)||void 0===Nt?void 0:Nt.value:""!=(null==aa||null===(Vt=aa.Button)||void 0===Vt||null===(Vt=Vt.fontStyle)||void 0===Vt?void 0:Vt.value)?null==aa||null===(_t=aa.Button)||void 0===_t||null===(_t=_t.fontStyle)||void 0===_t?void 0:_t.value:null==da||null===(qt=da.reviewPageHomeButtonBackgroundColor)||void 0===qt?void 0:qt.value,borderRadius:""!=(null==ua||null===(Gt=ua.reviewLayout)||void 0===Gt||null===(Gt=Gt.body[0].styles)||void 0===Gt||null===(Gt=Gt.reviewPageHomeBorderRadius)||void 0===Gt?void 0:Gt.value)?"".concat(null==ua||null===(Qt=ua.reviewLayout)||void 0===Qt||null===(Qt=Qt.body[0].styles)||void 0===Qt||null===(Qt=Qt.reviewPageHomeBorderRadius)||void 0===Qt?void 0:Qt.value,"px"):"".concat(null==da||null===(Yt=da.reviewPageHomeBorderRadius)||void 0===Yt?void 0:Yt.value,"px")},Ta={color:""!==(null==ua||null===($t=ua.reviewLayout)||void 0===$t||null===($t=$t.body[0].styles)||void 0===$t||null===($t=$t.reviewPageVenueNameTextColor)||void 0===$t?void 0:$t.value)?"".concat(null==ua||null===(Zt=ua.reviewLayout)||void 0===Zt||null===(Zt=Zt.body[0].styles)||void 0===Zt||null===(Zt=Zt.reviewPageVenueNameTextColor)||void 0===Zt?void 0:Zt.value):""!=(null==aa||null===(Kt=aa.Text)||void 0===Kt||null===(Kt=Kt.color)||void 0===Kt?void 0:Kt.value)?null==aa||null===(Xt=aa.Text)||void 0===Xt||null===(Xt=Xt.color)||void 0===Xt?void 0:Xt.value:"".concat(null==da||null===(Jt=da.reviewPageVenueNameTextColor)||void 0===Jt?void 0:Jt.value),fontSize:0!=(null==ua||null===(en=ua.reviewLayout)||void 0===en||null===(en=en.body[0].styles)||void 0===en||null===(en=en.reviewPageVenueNameTextSize)||void 0===en?void 0:en.value[yt()])?null==ua||null===(ln=ua.reviewLayout)||void 0===ln||null===(ln=ln.body[0].styles)||void 0===ln||null===(ln=ln.reviewPageVenueNameTextSize)||void 0===ln?void 0:ln.value[yt()]:0!=(null==aa||null===(on=aa.Text)||void 0===on||null===(on=on.size)||void 0===on?void 0:on.value[yt()])?null==aa||null===(tn=aa.Text)||void 0===tn||null===(tn=tn.size)||void 0===tn?void 0:tn.value[yt()]:null==da||null===(nn=da.reviewPageVenueNameTextSize)||void 0===nn?void 0:nn.value[yt()],fontWeight:""!=(null==ua||null===(rn=ua.reviewLayout)||void 0===rn||null===(rn=rn.body[0].styles)||void 0===rn||null===(rn=rn.reviewPageVenueNameTextWeight)||void 0===rn?void 0:rn.value)?null==ua||null===(un=ua.reviewLayout)||void 0===un||null===(un=un.body[0].styles)||void 0===un||null===(un=un.reviewPageVenueNameTextWeight)||void 0===un?void 0:un.value:""!=(null==aa||null===(an=aa.Text)||void 0===an||null===(an=an.fontWeight)||void 0===an?void 0:an.value)?null==aa||null===(dn=aa.Text)||void 0===dn||null===(dn=dn.fontWeight)||void 0===dn?void 0:dn.value:null==da||null===(vn=da.reviewPageVenueNameTextWeight)||void 0===vn?void 0:vn.value,fontFamily:""!=(null==ua||null===(sn=ua.reviewLayout)||void 0===sn||null===(sn=sn.body[0].styles)||void 0===sn||null===(sn=sn.reviewPageVenueNameTextFont)||void 0===sn?void 0:sn.value)?null==ua||null===(cn=ua.reviewLayout)||void 0===cn||null===(cn=cn.body[0].styles)||void 0===cn||null===(cn=cn.reviewPageVenueNameTextFont)||void 0===cn?void 0:cn.value:""!=(null==aa||null===(mn=aa.Text)||void 0===mn||null===(mn=mn.fontFamily)||void 0===mn?void 0:mn.value)?null==aa||null===(pn=aa.Text)||void 0===pn||null===(pn=pn.fontFamily)||void 0===pn?void 0:pn.value:null==da||null===(yn=da.reviewPageVenueNameTextFont)||void 0===yn?void 0:yn.value,fontStyle:""!==(null==ua||null===(gn=ua.reviewLayout)||void 0===gn||null===(gn=gn.body[0].styles)||void 0===gn||null===(gn=gn.reviewPageVenueNameTextStyle)||void 0===gn?void 0:gn.value)?null==ua||null===(hn=ua.reviewLayout)||void 0===hn||null===(hn=hn.body[0].styles)||void 0===hn||null===(hn=hn.reviewPageVenueNameTextStyle)||void 0===hn?void 0:hn.value:""!=(null==aa||null===(fn=aa.Text)||void 0===fn||null===(fn=fn.fontStyle)||void 0===fn?void 0:fn.value)?null==aa||null===(xn=aa.Text)||void 0===xn||null===(xn=xn.fontStyle)||void 0===xn?void 0:xn.value:null==da||null===(bn=da.reviewPageVenueNameTextStyle)||void 0===bn?void 0:bn.value},wa={color:""!==(null==ua||null===(Cn=ua.reviewLayout)||void 0===Cn||null===(Cn=Cn.body[0].styles)||void 0===Cn||null===(Cn=Cn.reviewPageItemNameTextColor)||void 0===Cn?void 0:Cn.value)?"".concat(null==ua||null===(Sn=ua.reviewLayout)||void 0===Sn||null===(Sn=Sn.body[0].styles)||void 0===Sn||null===(Sn=Sn.reviewPageItemNameTextColor)||void 0===Sn?void 0:Sn.value):""!=(null==aa||null===(Tn=aa.Text)||void 0===Tn||null===(Tn=Tn.color)||void 0===Tn?void 0:Tn.value)?null==aa||null===(wn=aa.Text)||void 0===wn||null===(wn=wn.color)||void 0===wn?void 0:wn.value:"".concat(null==da||null===(kn=da.reviewPageItemNameTextColor)||void 0===kn?void 0:kn.value),fontSize:0!=(null==ua||null===(Ln=ua.reviewLayout)||void 0===Ln||null===(Ln=Ln.body[0].styles)||void 0===Ln||null===(Ln=Ln.reviewPageItemNameTextSize)||void 0===Ln?void 0:Ln.value[yt()])?null==ua||null===(In=ua.reviewLayout)||void 0===In||null===(In=In.body[0].styles)||void 0===In||null===(In=In.reviewPageItemNameTextSize)||void 0===In?void 0:In.value[yt()]:0!=(null==aa||null===(En=aa.Text)||void 0===En||null===(En=En.size)||void 0===En?void 0:En.value[yt()])?null==aa||null===(Pn=aa.Text)||void 0===Pn||null===(Pn=Pn.size)||void 0===Pn?void 0:Pn.value[yt()]:null==da||null===(Mn=da.reviewPageItemNameTextSize)||void 0===Mn?void 0:Mn.value[yt()],fontWeight:""!=(null==ua||null===(Dn=ua.reviewLayout)||void 0===Dn||null===(Dn=Dn.body[0].styles)||void 0===Dn||null===(Dn=Dn.reviewPageItemNameTextWeight)||void 0===Dn?void 0:Dn.value)?null==ua||null===(On=ua.reviewLayout)||void 0===On||null===(On=On.body[0].styles)||void 0===On||null===(On=On.reviewPageItemNameTextWeight)||void 0===On?void 0:On.value:""!=(null==aa||null===(Bn=aa.Text)||void 0===Bn||null===(Bn=Bn.fontWeight)||void 0===Bn?void 0:Bn.value)?null==aa||null===(Fn=aa.Text)||void 0===Fn||null===(Fn=Fn.fontWeight)||void 0===Fn?void 0:Fn.value:null==da||null===(Wn=da.reviewPageItemNameTextWeight)||void 0===Wn?void 0:Wn.value,fontFamily:""!=(null==ua||null===(An=ua.reviewLayout)||void 0===An||null===(An=An.body[0].styles)||void 0===An||null===(An=An.reviewPageItemNameTextFont)||void 0===An?void 0:An.value)?null==ua||null===(zn=ua.reviewLayout)||void 0===zn||null===(zn=zn.body[0].styles)||void 0===zn||null===(zn=zn.reviewPageItemNameTextFont)||void 0===zn?void 0:zn.value:""!=(null==aa||null===(Rn=aa.Text)||void 0===Rn||null===(Rn=Rn.fontFamily)||void 0===Rn?void 0:Rn.value)?null==aa||null===(Hn=aa.Text)||void 0===Hn||null===(Hn=Hn.fontFamily)||void 0===Hn?void 0:Hn.value:null==da||null===(jn=da.reviewPageItemNameTextFont)||void 0===jn?void 0:jn.value,fontStyle:""!==(null==ua||null===(Nn=ua.reviewLayout)||void 0===Nn||null===(Nn=Nn.body[0].styles)||void 0===Nn||null===(Nn=Nn.reviewPageItemNameTextStyle)||void 0===Nn?void 0:Nn.value)?null==ua||null===(Vn=ua.reviewLayout)||void 0===Vn||null===(Vn=Vn.body[0].styles)||void 0===Vn||null===(Vn=Vn.reviewPageItemNameTextStyle)||void 0===Vn?void 0:Vn.value:""!=(null==aa||null===(Un=aa.Text)||void 0===Un||null===(Un=Un.fontStyle)||void 0===Un?void 0:Un.value)?null==aa||null===(_n=aa.Text)||void 0===_n||null===(_n=_n.fontStyle)||void 0===_n?void 0:_n.value:null==da||null===(qn=da.reviewPageItemNameTextStyle)||void 0===qn?void 0:qn.value},ka={color:""!==(null==ua||null===(Gn=ua.reviewLayout)||void 0===Gn||null===(Gn=Gn.body[0].styles)||void 0===Gn||null===(Gn=Gn.reviewPageItemHeadingsTextColor)||void 0===Gn?void 0:Gn.value)?"".concat(null==ua||null===(Qn=ua.reviewLayout)||void 0===Qn||null===(Qn=Qn.body[0].styles)||void 0===Qn||null===(Qn=Qn.reviewPageItemHeadingsTextColor)||void 0===Qn?void 0:Qn.value):""!=(null==aa||null===(Yn=aa.Text)||void 0===Yn||null===(Yn=Yn.color)||void 0===Yn?void 0:Yn.value)?null==aa||null===($n=aa.Text)||void 0===$n||null===($n=$n.color)||void 0===$n?void 0:$n.value:"".concat(null==da||null===(Zn=da.reviewPageItemHeadingsTextColor)||void 0===Zn?void 0:Zn.value),fontSize:0!=(null==ua||null===(Kn=ua.reviewLayout)||void 0===Kn||null===(Kn=Kn.body[0].styles)||void 0===Kn||null===(Kn=Kn.reviewPageItemHeadingsTextSize)||void 0===Kn?void 0:Kn.value[yt()])?null==ua||null===(Xn=ua.reviewLayout)||void 0===Xn||null===(Xn=Xn.body[0].styles)||void 0===Xn||null===(Xn=Xn.reviewPageItemHeadingsTextSize)||void 0===Xn?void 0:Xn.value[yt()]:0!=(null==aa||null===(Jn=aa.Text)||void 0===Jn||null===(Jn=Jn.size)||void 0===Jn?void 0:Jn.value[yt()])?null==aa||null===(ei=aa.Text)||void 0===ei||null===(ei=ei.size)||void 0===ei?void 0:ei.value[yt()]:null==da||null===(li=da.reviewPageItemHeadingsTextSize)||void 0===li?void 0:li.value[yt()],fontWeight:""!=(null==ua||null===(oi=ua.reviewLayout)||void 0===oi||null===(oi=oi.body[0].styles)||void 0===oi||null===(oi=oi.reviewPageItemHeadingsTextWeight)||void 0===oi?void 0:oi.value)?null==ua||null===(ti=ua.reviewLayout)||void 0===ti||null===(ti=ti.body[0].styles)||void 0===ti||null===(ti=ti.reviewPageItemHeadingsTextWeight)||void 0===ti?void 0:ti.value:""!=(null==aa||null===(ni=aa.Text)||void 0===ni||null===(ni=ni.fontWeight)||void 0===ni?void 0:ni.value)?null==aa||null===(ii=aa.Text)||void 0===ii||null===(ii=ii.fontWeight)||void 0===ii?void 0:ii.value:null==da||null===(ri=da.reviewPageItemHeadingsTextWeight)||void 0===ri?void 0:ri.value,fontFamily:""!=(null==ua||null===(ui=ua.reviewLayout)||void 0===ui||null===(ui=ui.body[0].styles)||void 0===ui||null===(ui=ui.reviewPageItemHeadingsTextFont)||void 0===ui?void 0:ui.value)?null==ua||null===(ai=ua.reviewLayout)||void 0===ai||null===(ai=ai.body[0].styles)||void 0===ai||null===(ai=ai.reviewPageItemHeadingsTextFont)||void 0===ai?void 0:ai.value:""!=(null==aa||null===(di=aa.Text)||void 0===di||null===(di=di.fontFamily)||void 0===di?void 0:di.value)?null==aa||null===(vi=aa.Text)||void 0===vi||null===(vi=vi.fontFamily)||void 0===vi?void 0:vi.value:null==da||null===(si=da.reviewPageItemHeadingsTextFont)||void 0===si?void 0:si.value,fontStyle:""!==(null==ua||null===(ci=ua.reviewLayout)||void 0===ci||null===(ci=ci.body[0].styles)||void 0===ci||null===(ci=ci.reviewPageItemHeadingsTextStyle)||void 0===ci?void 0:ci.value)?null==ua||null===(mi=ua.reviewLayout)||void 0===mi||null===(mi=mi.body[0].styles)||void 0===mi||null===(mi=mi.reviewPageItemHeadingsTextStyle)||void 0===mi?void 0:mi.value:""!=(null==aa||null===(pi=aa.Text)||void 0===pi||null===(pi=pi.fontStyle)||void 0===pi?void 0:pi.value)?null==aa||null===(yi=aa.Text)||void 0===yi||null===(yi=yi.fontStyle)||void 0===yi?void 0:yi.value:null==da||null===(gi=da.reviewPageItemHeadingsTextStyle)||void 0===gi?void 0:gi.value},La={color:""!==(null==ua||null===(hi=ua.reviewLayout)||void 0===hi||null===(hi=hi.body[0].styles)||void 0===hi||null===(hi=hi.reviewPageItemDescriptionTextColor)||void 0===hi?void 0:hi.value)?"".concat(null==ua||null===(fi=ua.reviewLayout)||void 0===fi||null===(fi=fi.body[0].styles)||void 0===fi||null===(fi=fi.reviewPageItemDescriptionTextColor)||void 0===fi?void 0:fi.value):""!=(null==aa||null===(xi=aa.Text)||void 0===xi||null===(xi=xi.color)||void 0===xi?void 0:xi.value)?null==aa||null===(bi=aa.Text)||void 0===bi||null===(bi=bi.color)||void 0===bi?void 0:bi.value:"".concat(null==da||null===(Ci=da.reviewPageItemDescriptionTextColor)||void 0===Ci?void 0:Ci.value),fontSize:0!=(null==ua||null===(Si=ua.reviewLayout)||void 0===Si||null===(Si=Si.body[0].styles)||void 0===Si||null===(Si=Si.reviewPageItemDescriptionTextSize)||void 0===Si?void 0:Si.value[yt()])?null==ua||null===(Ti=ua.reviewLayout)||void 0===Ti||null===(Ti=Ti.body[0].styles)||void 0===Ti||null===(Ti=Ti.reviewPageItemDescriptionTextSize)||void 0===Ti?void 0:Ti.value[yt()]:0!=(null==aa||null===(wi=aa.Text)||void 0===wi||null===(wi=wi.size)||void 0===wi?void 0:wi.value[yt()])?null==aa||null===(ki=aa.Text)||void 0===ki||null===(ki=ki.size)||void 0===ki?void 0:ki.value[yt()]:null==da||null===(Li=da.reviewPageItemDescriptionTextSize)||void 0===Li?void 0:Li.value[yt()],fontWeight:""!=(null==ua||null===(Ii=ua.reviewLayout)||void 0===Ii||null===(Ii=Ii.body[0].styles)||void 0===Ii||null===(Ii=Ii.reviewPageItemDescriptionTextWeight)||void 0===Ii?void 0:Ii.value)?null==ua||null===(Ei=ua.reviewLayout)||void 0===Ei||null===(Ei=Ei.body[0].styles)||void 0===Ei||null===(Ei=Ei.reviewPageItemDescriptionTextWeight)||void 0===Ei?void 0:Ei.value:""!=(null==aa||null===(Pi=aa.Text)||void 0===Pi||null===(Pi=Pi.fontWeight)||void 0===Pi?void 0:Pi.value)?null==aa||null===(Mi=aa.Text)||void 0===Mi||null===(Mi=Mi.fontWeight)||void 0===Mi?void 0:Mi.value:null==da||null===(Di=da.reviewPageItemDescriptionTextWeight)||void 0===Di?void 0:Di.value,fontFamily:""!=(null==ua||null===(Oi=ua.reviewLayout)||void 0===Oi||null===(Oi=Oi.body[0].styles)||void 0===Oi||null===(Oi=Oi.reviewPageItemDescriptionTextFont)||void 0===Oi?void 0:Oi.value)?null==ua||null===(Bi=ua.reviewLayout)||void 0===Bi||null===(Bi=Bi.body[0].styles)||void 0===Bi||null===(Bi=Bi.reviewPageItemDescriptionTextFont)||void 0===Bi?void 0:Bi.value:""!=(null==aa||null===(Fi=aa.Text)||void 0===Fi||null===(Fi=Fi.fontFamily)||void 0===Fi?void 0:Fi.value)?null==aa||null===(Wi=aa.Text)||void 0===Wi||null===(Wi=Wi.fontFamily)||void 0===Wi?void 0:Wi.value:null==da||null===(Ai=da.reviewPageItemDescriptionTextFont)||void 0===Ai?void 0:Ai.value,fontStyle:""!==(null==ua||null===(zi=ua.reviewLayout)||void 0===zi||null===(zi=zi.body[0].styles)||void 0===zi||null===(zi=zi.reviewPageItemDescriptionTextStyle)||void 0===zi?void 0:zi.value)?null==ua||null===(Ri=ua.reviewLayout)||void 0===Ri||null===(Ri=Ri.body[0].styles)||void 0===Ri||null===(Ri=Ri.reviewPageItemDescriptionTextStyle)||void 0===Ri?void 0:Ri.value:""!=(null==aa||null===(Hi=aa.Text)||void 0===Hi||null===(Hi=Hi.fontStyle)||void 0===Hi?void 0:Hi.value)?null==aa||null===(ji=aa.Text)||void 0===ji||null===(ji=ji.fontStyle)||void 0===ji?void 0:ji.value:null==da||null===(Ni=da.reviewPageItemDescriptionTextStyle)||void 0===Ni?void 0:Ni.value},Ia={color:""!==(null==ua||null===(Vi=ua.reviewLayout)||void 0===Vi||null===(Vi=Vi.body[0].styles)||void 0===Vi||null===(Vi=Vi.reviewPageReviewSubmittedTextColor)||void 0===Vi?void 0:Vi.value)?"".concat(null==ua||null===(Ui=ua.reviewLayout)||void 0===Ui||null===(Ui=Ui.body[0].styles)||void 0===Ui||null===(Ui=Ui.reviewPageReviewSubmittedTextColor)||void 0===Ui?void 0:Ui.value):""!=(null==aa||null===(_i=aa.Text)||void 0===_i||null===(_i=_i.color)||void 0===_i?void 0:_i.value)?null==aa||null===(qi=aa.Text)||void 0===qi||null===(qi=qi.color)||void 0===qi?void 0:qi.value:"".concat(null==da||null===(Gi=da.reviewPageReviewSubmittedTextColor)||void 0===Gi?void 0:Gi.value),fontSize:0!=(null==ua||null===(Qi=ua.reviewLayout)||void 0===Qi||null===(Qi=Qi.body[0].styles)||void 0===Qi||null===(Qi=Qi.reviewPageReviewSubmittedTextSize)||void 0===Qi?void 0:Qi.value[yt()])?null==ua||null===(Yi=ua.reviewLayout)||void 0===Yi||null===(Yi=Yi.body[0].styles)||void 0===Yi||null===(Yi=Yi.reviewPageReviewSubmittedTextSize)||void 0===Yi?void 0:Yi.value[yt()]:0!=(null==aa||null===($i=aa.Text)||void 0===$i||null===($i=$i.size)||void 0===$i?void 0:$i.value[yt()])?null==aa||null===(Zi=aa.Text)||void 0===Zi||null===(Zi=Zi.size)||void 0===Zi?void 0:Zi.value[yt()]:null==da||null===(Ki=da.reviewPageReviewSubmittedTextSize)||void 0===Ki?void 0:Ki.value[yt()],fontWeight:""!=(null==ua||null===(Xi=ua.reviewLayout)||void 0===Xi||null===(Xi=Xi.body[0].styles)||void 0===Xi||null===(Xi=Xi.reviewPageReviewSubmittedTextWeight)||void 0===Xi?void 0:Xi.value)?null==ua||null===(Ji=ua.reviewLayout)||void 0===Ji||null===(Ji=Ji.body[0].styles)||void 0===Ji||null===(Ji=Ji.reviewPageReviewSubmittedTextWeight)||void 0===Ji?void 0:Ji.value:""!=(null==aa||null===(er=aa.Text)||void 0===er||null===(er=er.fontWeight)||void 0===er?void 0:er.value)?null==aa||null===(lr=aa.Text)||void 0===lr||null===(lr=lr.fontWeight)||void 0===lr?void 0:lr.value:null==da||null===(or=da.reviewPageReviewSubmittedTextWeight)||void 0===or?void 0:or.value,fontFamily:""!=(null==ua||null===(tr=ua.reviewLayout)||void 0===tr||null===(tr=tr.body[0].styles)||void 0===tr||null===(tr=tr.reviewPageReviewSubmittedTextFont)||void 0===tr?void 0:tr.value)?null==ua||null===(nr=ua.reviewLayout)||void 0===nr||null===(nr=nr.body[0].styles)||void 0===nr||null===(nr=nr.reviewPageReviewSubmittedTextFont)||void 0===nr?void 0:nr.value:""!=(null==aa||null===(ir=aa.Text)||void 0===ir||null===(ir=ir.fontFamily)||void 0===ir?void 0:ir.value)?null==aa||null===(rr=aa.Text)||void 0===rr||null===(rr=rr.fontFamily)||void 0===rr?void 0:rr.value:null==da||null===(ur=da.reviewPageReviewSubmittedTextFont)||void 0===ur?void 0:ur.value,fontStyle:""!==(null==ua||null===(ar=ua.reviewLayout)||void 0===ar||null===(ar=ar.body[0].styles)||void 0===ar||null===(ar=ar.reviewPageReviewSubmittedTextStyle)||void 0===ar?void 0:ar.value)?null==ua||null===(dr=ua.reviewLayout)||void 0===dr||null===(dr=dr.body[0].styles)||void 0===dr||null===(dr=dr.reviewPageReviewSubmittedTextStyle)||void 0===dr?void 0:dr.value:""!=(null==aa||null===(vr=aa.Text)||void 0===vr||null===(vr=vr.fontStyle)||void 0===vr?void 0:vr.value)?null==aa||null===(sr=aa.Text)||void 0===sr||null===(sr=sr.fontStyle)||void 0===sr?void 0:sr.value:null==da||null===(cr=da.reviewPageReviewSubmittedTextStyle)||void 0===cr?void 0:cr.value},Ea={color:""!==(null==ua||null===(mr=ua.reviewLayout)||void 0===mr||null===(mr=mr.body[0].styles)||void 0===mr||null===(mr=mr.reviewPageNotesTextColor)||void 0===mr?void 0:mr.value)?"".concat(null==ua||null===(pr=ua.reviewLayout)||void 0===pr||null===(pr=pr.body[0].styles)||void 0===pr||null===(pr=pr.reviewPageNotesTextColor)||void 0===pr?void 0:pr.value):""!=(null==aa||null===(yr=aa.Text)||void 0===yr||null===(yr=yr.color)||void 0===yr?void 0:yr.value)?null==aa||null===(gr=aa.Text)||void 0===gr||null===(gr=gr.color)||void 0===gr?void 0:gr.value:"".concat(null==da||null===(hr=da.reviewPageNotesTextColor)||void 0===hr?void 0:hr.value),fontSize:0!=(null==ua||null===(fr=ua.reviewLayout)||void 0===fr||null===(fr=fr.body[0].styles)||void 0===fr||null===(fr=fr.reviewPageNotesTextSize)||void 0===fr?void 0:fr.value[yt()])?null==ua||null===(xr=ua.reviewLayout)||void 0===xr||null===(xr=xr.body[0].styles)||void 0===xr||null===(xr=xr.reviewPageNotesTextSize)||void 0===xr?void 0:xr.value[yt()]:0!=(null==aa||null===(br=aa.Text)||void 0===br||null===(br=br.size)||void 0===br?void 0:br.value[yt()])?null==aa||null===(Cr=aa.Text)||void 0===Cr||null===(Cr=Cr.size)||void 0===Cr?void 0:Cr.value[yt()]:null==da||null===(Sr=da.reviewPageNotesTextSize)||void 0===Sr?void 0:Sr.value[yt()],fontWeight:""!=(null==ua||null===(Tr=ua.reviewLayout)||void 0===Tr||null===(Tr=Tr.body[0].styles)||void 0===Tr||null===(Tr=Tr.reviewPageNotesTextWeight)||void 0===Tr?void 0:Tr.value)?null==ua||null===(wr=ua.reviewLayout)||void 0===wr||null===(wr=wr.body[0].styles)||void 0===wr||null===(wr=wr.reviewPageNotesTextWeight)||void 0===wr?void 0:wr.value:""!=(null==aa||null===(kr=aa.Text)||void 0===kr||null===(kr=kr.fontWeight)||void 0===kr?void 0:kr.value)?null==aa||null===(Lr=aa.Text)||void 0===Lr||null===(Lr=Lr.fontWeight)||void 0===Lr?void 0:Lr.value:null==da||null===(Ir=da.reviewPageNotesTextWeight)||void 0===Ir?void 0:Ir.value,fontFamily:""!=(null==ua||null===(Er=ua.reviewLayout)||void 0===Er||null===(Er=Er.body[0].styles)||void 0===Er||null===(Er=Er.reviewPageNotesTextFont)||void 0===Er?void 0:Er.value)?null==ua||null===(Pr=ua.reviewLayout)||void 0===Pr||null===(Pr=Pr.body[0].styles)||void 0===Pr||null===(Pr=Pr.reviewPageNotesTextFont)||void 0===Pr?void 0:Pr.value:""!=(null==aa||null===(Mr=aa.Text)||void 0===Mr||null===(Mr=Mr.fontFamily)||void 0===Mr?void 0:Mr.value)?null==aa||null===(Dr=aa.Text)||void 0===Dr||null===(Dr=Dr.fontFamily)||void 0===Dr?void 0:Dr.value:null==da||null===(Or=da.reviewPageNotesTextFont)||void 0===Or?void 0:Or.value,fontStyle:""!==(null==ua||null===(Br=ua.reviewLayout)||void 0===Br||null===(Br=Br.body[0].styles)||void 0===Br||null===(Br=Br.reviewPageNotesTextStyle)||void 0===Br?void 0:Br.value)?null==ua||null===(Fr=ua.reviewLayout)||void 0===Fr||null===(Fr=Fr.body[0].styles)||void 0===Fr||null===(Fr=Fr.reviewPageNotesTextStyle)||void 0===Fr?void 0:Fr.value:""!=(null==aa||null===(Wr=aa.Text)||void 0===Wr||null===(Wr=Wr.fontStyle)||void 0===Wr?void 0:Wr.value)?null==aa||null===(Ar=aa.Text)||void 0===Ar||null===(Ar=Ar.fontStyle)||void 0===Ar?void 0:Ar.value:null==da||null===(zr=da.reviewPageNotesTextStyle)||void 0===zr?void 0:zr.value};""!=(null==ua||null===(Rr=ua.reviewLayout)||void 0===Rr||null===(Rr=Rr.body[0].styles)||void 0===Rr||null===(Rr=Rr.reviewPageImageHeightWidth)||void 0===Rr?void 0:Rr.value)?null==ua||null===(Hr=ua.reviewLayout)||void 0===Hr||null===(Hr=Hr.body[0].styles)||void 0===Hr||null===(Hr=Hr.reviewPageImageHeightWidth)||void 0===Hr||Hr.value:null==da||null===(jr=da.reviewPageImageHeightWidth)||void 0===jr||jr.value,""!=(null==ua||null===(Nr=ua.reviewLayout)||void 0===Nr||null===(Nr=Nr.body[0].styles)||void 0===Nr||null===(Nr=Nr.reviewPageImageHeightWidth)||void 0===Nr?void 0:Nr.value)?null==ua||null===(Vr=ua.reviewLayout)||void 0===Vr||null===(Vr=Vr.body[0].styles)||void 0===Vr||null===(Vr=Vr.reviewPageImageHeightWidth)||void 0===Vr||Vr.value:null==da||null===(Ur=da.reviewPageImageHeightWidth)||void 0===Ur||Ur.value,null!=ua&&null!==(_r=ua.reviewLayout)&&void 0!==_r&&null!==(_r=_r.body[0].styles)&&void 0!==_r&&null!==(_r=_r.reviewPageImageBackgroundColor)&&void 0!==_r&&_r.value?null==ua||null===(qr=ua.reviewLayout)||void 0===qr||null===(qr=qr.body[0].styles)||void 0===qr||null===(qr=qr.reviewPageImageBackgroundColor)||void 0===qr||qr.value:null==da||null===(Gr=da.reviewPageImageBackgroundColor)||void 0===Gr||Gr.value,""!=(null==ua||null===(Qr=ua.reviewLayout)||void 0===Qr||null===(Qr=Qr.body[0].styles)||void 0===Qr||null===(Qr=Qr.reviewPageImageBorderRadius)||void 0===Qr?void 0:Qr.value)?"".concat(null==ua||null===(Yr=ua.reviewLayout)||void 0===Yr||null===(Yr=Yr.body[0].styles)||void 0===Yr||null===(Yr=Yr.reviewPageImageBorderRadius)||void 0===Yr?void 0:Yr.value,"px"):"".concat(null==da||null===($r=da.reviewPageImageBorderRadius)||void 0===$r?void 0:$r.value,"px");var Pa=kl(o({ambiance:0,waitTime:0,foodQuality:0,service:0,overAllExperience:0,valueForMoney:0}),2),Ma=Pa[0],Da=Pa[1],Oa=Xe().enqueueSnackbar,Ba=kl(o([]),2);Ba[0],Ba[1];var Fa=kl(o(""),2);Fa[0],Fa[1];var Wa=kl(o(!1),2),Aa=Wa[0],za=Wa[1],Ra=kl(o({}),2),Ha=Ra[0],ja=Ra[1],Na=kl(o(""),2),Va=Na[0],Ua=Na[1],_a=kl(o(va.orderData),2),qa=_a[0],Ga=_a[1],Qa=kl(o(va.reviewAlreadyExists),2),Ya=Qa[0],$a=Qa[1],Za=function(){var e,l="".concat(window.location.protocol,"//").concat(window.location.hostname).concat(window.location.port?":"+window.location.port:"");["http://localhost:3031","http://stores.dev.egora.pk","http://stores.stg.egora.pk","http://stores.test.egora.pk","http://stores.egora.pk"].includes(l)?ma.navigateToHome("".concat(l,"/?").concat(null==va||null===(e=va.orderData)||void 0===e||null===(e=e.venueId)||void 0===e?void 0:e.franchiseId)):ma.navigateToHome("".concat(l))};t(function(){Ga(va.orderData),$a(va.reviewAlreadyExists)},[va]);var Ka={ambiance:" Ambiance",waitTime:"Wait time",foodQuality:"Food quality",service:"Service",overAllExperience:"Overall experience",valueForMoney:"Value for money"},Xa=function(){var e=gl(Tl().m(function e(){var l,o,t,n,i,r,u,a,d;return Tl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(o=null==qa?void 0:qa.id,t=null==qa||null===(l=qa.venueId)||void 0===l?void 0:l.id,n=null==qa?void 0:qa.levelId,i={overallOrderRating:Ma,orderId:o,venueId:t,levelId:n},Aa&&(r=Object.keys(Ha).map(function(e){return{id:e,itemRating:Ha[e]}}),i.itemsRating=r),""!==Va.trim()&&(i.comments=Va),!Aa){e.n=1;break}if(u=qa.items.every(function(e){return Ha[e.id]>0}),u){e.n=1;break}return Oa("Please rate all items before submitting.",{variant:"warning"}),e.a(2);case 1:return e.p=1,e.n=2,Ze.post("".concat(process.env.NEXT_PUBLIC_BACKEND_URL,"/review"),i,{headers:{"Content-Type":"application/json"}});case 2:200===(a=e.v).status||201===a.status?(console.log("Review submitted successfully:",a.data),Oa("Review Submitted successfully!"),Za()):(console.error("Failed to submit review:",a.data),Oa("Failed to submit review. Please try again later.")),e.n=4;break;case 3:e.p=3,(d=e.v).response&&404===d.response.status?Oa("Review for this order already submitted."):(console.error("Error submitting review:",d),Oa("Failed to submit review. Please try again later."));case 4:return e.p=4,e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}(),Ja=function(l){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Ll(Array(5)).map(function(n,i){var r,u,a,d,v=o?Ha[t]>i:Ma[l]>i;return e.createElement(mp,{key:i,onClick:function(){o?function(e,l){ja(function(o){return Cl(Cl({},o),{},hl({},e,o[e]===l?0:l))})}(t,i+1):function(e,l){Da(function(o){return Cl(Cl({},o),{},hl({},e,o[e]===l?0:l))})}(l,i+1)},sx:{cursor:"pointer",color:v?(null==ua||null===(r=ua.reviewLayout)||void 0===r||null===(r=r.body[0].styles)||void 0===r||null===(r=r.starSelectedColor)||void 0===r?void 0:r.value)||(null==da||null===(u=da.starSelectedColor)||void 0===u?void 0:u.value):(null==ua||null===(a=ua.reviewLayout)||void 0===a||null===(a=a.body[0].styles)||void 0===a||null===(a=a.starUnselectedColor)||void 0===a?void 0:a.value)||(null==da||null===(d=da.starUnselectedColor)||void 0===d?void 0:d.value),fontSize:{xs:"20px",sm:"30px",md:"30px"},margin:"0 2px"}})})},ed=["waitTime","foodQuality","service","overAllExperience","valueForMoney"],ld=ed.every(function(e){return Ma[e]>0});return e.createElement(Ke,{maxWidth:"sm",sx:{padding:3,mt:16,backgroundColor:(null==ua||null===(Zr=ua.reviewLayout)||void 0===Zr||null===(Zr=Zr.body[0].styles)||void 0===Zr||null===(Zr=Zr.reviewPageBackgroundColor)||void 0===Zr?void 0:Zr.value)||(null==da||null===(Kr=da.reviewPageBackgroundColor)||void 0===Kr?void 0:Kr.value)}},Ya?e.createElement(g,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}},e.createElement(x,{variant:"subtitle1",sx:Cl({mt:16,mb:2,textAlign:"center"},Ia)},"You have already submitted the review for this order."),e.createElement(Ie,{fullWidth:!0,onClick:function(){ca||Za()},size:"large",type:"submit",variant:"contained",sx:Cl(Cl({mt:3},Sa),{},{"&:hover":{backgroundColor:""!==(null==ua||null===(Xr=ua.reviewLayout)||void 0===Xr||null===(Xr=Xr.body[0].styles)||void 0===Xr||null===(Xr=Xr.reviewPageHomeButtonBackgroundColor)||void 0===Xr?void 0:Xr.value)?null==ua||null===(Jr=ua.reviewLayout)||void 0===Jr||null===(Jr=Jr.body[0].styles)||void 0===Jr||null===(Jr=Jr.reviewPageHomeButtonBackgroundColor)||void 0===Jr?void 0:Jr.value:""!=(null==aa||null===(eu=aa.Button)||void 0===eu||null===(eu=eu.backgroundColor)||void 0===eu?void 0:eu.value)?null==aa||null===(lu=aa.Button)||void 0===lu||null===(lu=lu.backgroundColor)||void 0===lu?void 0:lu.value:null==da||null===(ou=da.reviewPageHomeButtonBackgroundColor)||void 0===ou?void 0:ou.value,color:""!==(null==ua||null===(tu=ua.reviewLayout)||void 0===tu||null===(tu=tu.body[0].styles)||void 0===tu||null===(tu=tu.reviewPageHomeTextColor)||void 0===tu?void 0:tu.value)?"".concat(null==ua||null===(nu=ua.reviewLayout)||void 0===nu||null===(nu=nu.body[0].styles)||void 0===nu||null===(nu=nu.reviewPageHomeTextColor)||void 0===nu?void 0:nu.value):""!=(null==aa||null===(iu=aa.Button)||void 0===iu||null===(iu=iu.color)||void 0===iu?void 0:iu.value)?null==aa||null===(ru=aa.Button)||void 0===ru||null===(ru=ru.color)||void 0===ru?void 0:ru.value:"".concat(null==da||null===(uu=da.reviewPageHomeTextColor)||void 0===uu?void 0:uu.value)}})},"Go to Home")):e.createElement(e.Fragment,null,e.createElement(x,{gutterBottom:!0,sx:Cl({textAlign:"center",mb:4},pa)},"Review your Order"),e.createElement(e.Fragment,null,e.createElement(g,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:2}},e.createElement(Ut,{src:null!=va&&null!==(au=va.orderData)&&void 0!==au&&null!==(au=au.venueId)&&void 0!==au&&au.photoURL?rt(null==va||null===(du=va.orderData)||void 0===du||null===(du=du.venueId)||void 0===du?void 0:du.photoURL):"/assets/placeholder.png",alt:"Venue Image",height:0!=(null==ua||null===(vu=ua.reviewLayout)||void 0===vu||null===(vu=vu.body[0].styles)||void 0===vu||null===(vu=vu.reviewPageVenueImageHeightWidth)||void 0===vu?void 0:vu.value)?null==ua||null===(su=ua.reviewLayout)||void 0===su||null===(su=su.body[0].styles)||void 0===su||null===(su=su.reviewPageVenueImageHeightWidth)||void 0===su?void 0:su.value:null==da||null===(cu=da.reviewPageVenueImageHeightWidth)||void 0===cu?void 0:cu.value,width:0!=(null==ua||null===(mu=ua.reviewLayout)||void 0===mu||null===(mu=mu.body[0].styles)||void 0===mu||null===(mu=mu.reviewPageVenueImageHeightWidth)||void 0===mu?void 0:mu.value)?null==ua||null===(pu=ua.reviewLayout)||void 0===pu||null===(pu=pu.body[0].styles)||void 0===pu||null===(pu=pu.reviewPageVenueImageHeightWidth)||void 0===pu?void 0:pu.value:null==da||null===(yu=da.reviewPageVenueImageHeightWidth)||void 0===yu?void 0:yu.value,backgroundColor:null!=ua&&null!==(gu=ua.reviewLayout)&&void 0!==gu&&null!==(gu=gu.body[0].styles)&&void 0!==gu&&null!==(gu=gu.reviewPageVenueImageBackgroundColor)&&void 0!==gu&&gu.value?null==ua||null===(hu=ua.reviewLayout)||void 0===hu||null===(hu=hu.body[0].styles)||void 0===hu||null===(hu=hu.reviewPageVenueImageBackgroundColor)||void 0===hu?void 0:hu.value:null==da||null===(fu=da.reviewPageVenueImageBackgroundColor)||void 0===fu?void 0:fu.value,borderRadius:0!=(null==ua||null===(xu=ua.reviewLayout)||void 0===xu||null===(xu=xu.body[0].styles)||void 0===xu||null===(xu=xu.reviewPageVenueImageBorderRadius)||void 0===xu?void 0:xu.value)?"".concat(null==ua||null===(bu=ua.reviewLayout)||void 0===bu||null===(bu=bu.body[0].styles)||void 0===bu||null===(bu=bu.reviewPageVenueImageBorderRadius)||void 0===bu?void 0:bu.value,"px"):"".concat(null==da||null===(Cu=da.reviewPageVenueImageBorderRadius)||void 0===Cu?void 0:Cu.value,"px")}),e.createElement(g,null,e.createElement(x,{sx:Cl({},Ta)},null==qa||null===(Su=qa.venueId)||void 0===Su?void 0:Su.name),e.createElement(x,{sx:Cl({},ha)},"Order # ",null==qa?void 0:qa.billNumber),e.createElement(x,{sx:Cl({},fa)},"Total: Rs.",mt(null==qa?void 0:qa.total)))),e.createElement(S,{sx:{marginY:2}}),e.createElement(g,null,ed.map(function(l){return e.createElement(g,{key:l,mb:2,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"10px"}},e.createElement(x,{sx:Cl({},ya)},Ka[l]),e.createElement(g,null,Ja(l)))}),e.createElement(S,null),e.createElement(g,{mb:2,mt:2,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"10px"}},e.createElement(x,{sx:Cl({},ga)},"Want to review each item"),e.createElement(te,{checked:Aa,onChange:function(){return za(!Aa)},sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:""!=(null==ua||null===(Tu=ua.reviewLayout)||void 0===Tu||null===(Tu=Tu.body[0].styles)||void 0===Tu||null===(Tu=Tu.reviewEachItemToggleColor)||void 0===Tu?void 0:Tu.value)?null==ua||null===(wu=ua.reviewLayout)||void 0===wu||null===(wu=wu.body[0].styles)||void 0===wu||null===(wu=wu.reviewEachItemToggleColor)||void 0===wu?void 0:wu.value:null==da||null===(ku=da.reviewEachItemToggleColor)||void 0===ku?void 0:ku.value,"& + .MuiSwitch-track":{backgroundColor:""!=(null==ua||null===(Lu=ua.reviewLayout)||void 0===Lu||null===(Lu=Lu.body[0].styles)||void 0===Lu||null===(Lu=Lu.reviewEachItemToggleColor)||void 0===Lu?void 0:Lu.value)?null==ua||null===(Iu=ua.reviewLayout)||void 0===Iu||null===(Iu=Iu.body[0].styles)||void 0===Iu||null===(Iu=Iu.reviewEachItemToggleColor)||void 0===Iu?void 0:Iu.value:null==da||null===(Eu=da.reviewEachItemToggleColor)||void 0===Eu?void 0:Eu.value}}}})),Aa&&e.createElement(g,null,null==qa||null===(Pu=qa.items)||void 0===Pu?void 0:Pu.map(function(l,o){var t,n,i,r,u,a,d,v,s,c,m,p,y,h,f,b,C;return e.createElement(g,{key:o,sx:{display:"flex",justifyContent:"space-between","@media (max-width: 600px)":{flexDirection:"column",alignItems:"flex-start"},alignItems:"center",gap:"10px",mb:1}},e.createElement(g,{sx:{display:"flex",alignItems:"center",gap:2}},e.createElement(Ut,{src:null!=l&&l.photoURL?rt(l.photoURL):"/assets/placeholder.png",alt:"Item Image",height:0!=(null==ua||null===(t=ua.reviewLayout)||void 0===t||null===(t=t.body[0].styles)||void 0===t||null===(t=t.reviewPageItemImageHeightWidth)||void 0===t?void 0:t.value)?null==ua||null===(n=ua.reviewLayout)||void 0===n||null===(n=n.body[0].styles)||void 0===n||null===(n=n.reviewPageItemImageHeightWidth)||void 0===n?void 0:n.value:null==da||null===(i=da.reviewPageItemImageHeightWidth)||void 0===i?void 0:i.value,width:0!=(null==ua||null===(r=ua.reviewLayout)||void 0===r||null===(r=r.body[0].styles)||void 0===r||null===(r=r.reviewPageItemImageHeightWidth)||void 0===r?void 0:r.value)?null==ua||null===(u=ua.reviewLayout)||void 0===u||null===(u=u.body[0].styles)||void 0===u||null===(u=u.reviewPageItemImageHeightWidth)||void 0===u?void 0:u.value:null==da||null===(a=da.reviewPageItemImageHeightWidth)||void 0===a?void 0:a.value,backgroundColor:null!=ua&&null!==(d=ua.reviewLayout)&&void 0!==d&&null!==(d=d.body[0].styles)&&void 0!==d&&null!==(d=d.reviewPageItemImageBackgroundColor)&&void 0!==d&&d.value?null==ua||null===(v=ua.reviewLayout)||void 0===v||null===(v=v.body[0].styles)||void 0===v||null===(v=v.reviewPageItemImageBackgroundColor)||void 0===v?void 0:v.value:null==da||null===(s=da.reviewPageItemImageBackgroundColor)||void 0===s?void 0:s.value,borderRadius:0!=(null==ua||null===(c=ua.reviewLayout)||void 0===c||null===(c=c.body[0].styles)||void 0===c||null===(c=c.reviewPageItemImageBorderRadius)||void 0===c?void 0:c.value)?"".concat(null==ua||null===(m=ua.reviewLayout)||void 0===m||null===(m=m.body[0].styles)||void 0===m||null===(m=m.reviewPageItemImageBorderRadius)||void 0===m?void 0:m.value,"px"):"".concat(null==da||null===(p=da.reviewPageItemImageBorderRadius)||void 0===p?void 0:p.value,"px")}),e.createElement(g,null,e.createElement(x,{sx:Cl({},wa)},null==l?void 0:l.qty," X",null==(b=null==l?void 0:l.name)||null===(C=b.split(/([^\w]+)/g))||void 0===C?void 0:C.map(function(e){return/^[a-zA-Z]/.test(e)?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e}).join("")),(null==l?void 0:l.groups)&&(null==l||null===(y=l.groups)||void 0===y?void 0:y.length)>0&&e.createElement(e.Fragment,null,(null==l?void 0:l.selectedVariant)&&e.createElement(g,{sx:{display:"flex",alignItems:"center"}},e.createElement(x,{sx:Cl({},xa)},"Variant:"),e.createElement(x,{sx:Cl({},ba)},null==l||null===(h=l.selectedVariant)||void 0===h?void 0:h.name)),e.createElement(e.Fragment,null,null==l||null===(f=l.groups)||void 0===f?void 0:f.map(function(l){var t;return e.createElement(x,{key:o,variant:"caption",sx:Cl({display:"flex",gap:"2px"},ka)},null==l?void 0:l.name," :",e.createElement(x,{variant:"caption",sx:Cl({display:"flex",marginLeft:"5px",gap:"2px"},La)},null==l||null===(t=l.items)||void 0===t?void 0:t.map(function(o,t){return e.createElement("span",{key:t},null==o?void 0:o.item,t!==l.items.length-1&&", ")})))}))),e.createElement(x,{sx:Cl({},Ea)},null==l?void 0:l.notes),e.createElement(g,{sx:{display:{xs:"block",sm:"none"},mt:1,ml:-.5}},e.createElement(g,null,Ja(l.id,!0,l.id))))),e.createElement(g,{sx:{display:{xs:"none",sm:"block"}}},e.createElement(g,null,Ja(l.id,!0,l.id))))})),e.createElement(P,{label:"Add a comment",variant:"outlined",fullWidth:!0,multiline:!0,rows:2,value:Va,onChange:function(e){return Ua(e.target.value)},sx:{mb:2,mt:4,backgroundColor:(null==ua||null===(Mu=ua.reviewLayout)||void 0===Mu||null===(Mu=Mu.body[0].styles)||void 0===Mu||null===(Mu=Mu.reviewPageBackgroundColor)||void 0===Mu?void 0:Mu.value)||(null==da||null===(Du=da.reviewPageBackgroundColor)||void 0===Du?void 0:Du.value),"& .MuiInputBase-input":{color:""!==(null==ua||null===(Ou=ua.reviewLayout)||void 0===Ou||null===(Ou=Ou.body[0].styles)||void 0===Ou||null===(Ou=Ou.reviewPageAddCommentTextColor)||void 0===Ou?void 0:Ou.value)?"".concat(null==ua||null===(Bu=ua.reviewLayout)||void 0===Bu||null===(Bu=Bu.body[0].styles)||void 0===Bu||null===(Bu=Bu.reviewPageAddCommentTextColor)||void 0===Bu?void 0:Bu.value):""!=(null==aa||null===(Fu=aa.Text)||void 0===Fu||null===(Fu=Fu.color)||void 0===Fu?void 0:Fu.value)?null==aa||null===(Wu=aa.Text)||void 0===Wu||null===(Wu=Wu.color)||void 0===Wu?void 0:Wu.value:"".concat(null==da||null===(Au=da.reviewPageAddCommentTextColor)||void 0===Au?void 0:Au.value)},"& .MuiInputLabel-root":{color:""!==(null==ua||null===(zu=ua.reviewLayout)||void 0===zu||null===(zu=zu.body[0].styles)||void 0===zu||null===(zu=zu.reviewPageAddCommentLabelTextStyle)||void 0===zu?void 0:zu.value)?"".concat(null==ua||null===(Ru=ua.reviewLayout)||void 0===Ru||null===(Ru=Ru.body[0].styles)||void 0===Ru||null===(Ru=Ru.reviewPageAddCommentLabelTextStyle)||void 0===Ru?void 0:Ru.value):""!=(null==aa||null===(Hu=aa.Text)||void 0===Hu||null===(Hu=Hu.color)||void 0===Hu?void 0:Hu.value)?null==aa||null===(ju=aa.Text)||void 0===ju||null===(ju=ju.color)||void 0===ju?void 0:ju.value:"".concat(null==da||null===(Nu=da.reviewPageAddCommentLabelTextStyle)||void 0===Nu?void 0:Nu.value)},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:""!==(null==ua||null===(Vu=ua.reviewLayout)||void 0===Vu||null===(Vu=Vu.body[0].styles)||void 0===Vu||null===(Vu=Vu.reviewPageAddCommentBorderColor)||void 0===Vu?void 0:Vu.value)?"".concat(null==ua||null===(Uu=ua.reviewLayout)||void 0===Uu||null===(Uu=Uu.body[0].styles)||void 0===Uu||null===(Uu=Uu.reviewPageAddCommentBorderColor)||void 0===Uu?void 0:Uu.value):"".concat(null==da||null===(_u=da.reviewPageAddCommentBorderColor)||void 0===_u?void 0:_u.value)},"&:hover fieldset":{borderColor:""!==(null==ua||null===(qu=ua.reviewLayout)||void 0===qu||null===(qu=qu.body[0].styles)||void 0===qu||null===(qu=qu.reviewPageAddCommentBorderColor)||void 0===qu?void 0:qu.value)?"".concat(null==ua||null===(Gu=ua.reviewLayout)||void 0===Gu||null===(Gu=Gu.body[0].styles)||void 0===Gu||null===(Gu=Gu.reviewPageAddCommentBorderColor)||void 0===Gu?void 0:Gu.value):"".concat(null==da||null===(Qu=da.reviewPageAddCommentBorderColor)||void 0===Qu?void 0:Qu.value)},"&.Mui-focused fieldset":{borderColor:""!==(null==ua||null===(Yu=ua.reviewLayout)||void 0===Yu||null===(Yu=Yu.body[0].styles)||void 0===Yu||null===(Yu=Yu.reviewPageAddCommentBorderColor)||void 0===Yu?void 0:Yu.value)?"".concat(null==ua||null===($u=ua.reviewLayout)||void 0===$u||null===($u=$u.body[0].styles)||void 0===$u||null===($u=$u.reviewPageAddCommentBorderColor)||void 0===$u?void 0:$u.value):"".concat(null==da||null===(Zu=da.reviewPageAddCommentBorderColor)||void 0===Zu?void 0:Zu.value)}}}}),e.createElement(Ie,{onClick:function(){ca||Xa()},color:"primary",variant:"contained",disabled:!(ca||ld&&qa),sx:Cl(Cl({width:"100%",height:"40px"},Ca),{},{"&:hover":{backgroundColor:""!==(null==ua||null===(Ku=ua.reviewLayout)||void 0===Ku||null===(Ku=Ku.body[0].styles)||void 0===Ku||null===(Ku=Ku.reviewPageSubmitButtonBackgroundColor)||void 0===Ku?void 0:Ku.value)?null==ua||null===(Xu=ua.reviewLayout)||void 0===Xu||null===(Xu=Xu.body[0].styles)||void 0===Xu||null===(Xu=Xu.reviewPageSubmitButtonBackgroundColor)||void 0===Xu?void 0:Xu.value:""!=(null==aa||null===(Ju=aa.Button)||void 0===Ju||null===(Ju=Ju.backgroundColor)||void 0===Ju?void 0:Ju.value)?null==aa||null===(ea=aa.Button)||void 0===ea||null===(ea=ea.backgroundColor)||void 0===ea?void 0:ea.value:null==da||null===(la=da.reviewPageSubmitButtonBackgroundColor)||void 0===la?void 0:la.value,color:""!==(null==ua||null===(oa=ua.reviewLayout)||void 0===oa||null===(oa=oa.body[0].styles)||void 0===oa||null===(oa=oa.reviewPageSubmitTextColor)||void 0===oa?void 0:oa.value)?"".concat(null==ua||null===(ta=ua.reviewLayout)||void 0===ta||null===(ta=ta.body[0].styles)||void 0===ta||null===(ta=ta.reviewPageSubmitTextColor)||void 0===ta?void 0:ta.value):""!=(null==aa||null===(na=aa.Button)||void 0===na||null===(na=na.color)||void 0===na?void 0:na.value)?null==aa||null===(ia=aa.Button)||void 0===ia||null===(ia=ia.color)||void 0===ia?void 0:ia.value:"".concat(null==da||null===(ra=da.reviewPageSubmitTextColor)||void 0===ra?void 0:ra.value)}})},"Submit")))))}sp.map(function(e){return{name:e.name,value:e.main}}),Cl(Cl({},{themeMode:"light",themeDirection:"ltr",themeContrast:"default",themeLayout:"vertical",themeColorPresets:"orange",themeStretch:!1}),{},{onToggleMode:function(){},onChangeMode:function(){},onToggleDirection:function(){},onChangeDirection:function(){},onChangeDirectionByLang:function(){},onToggleLayout:function(){},onChangeLayout:function(){},onToggleContrast:function(){},onChangeContrast:function(){},onChangeColorPresets:function(){},presetsColor:cp,presetsOption:[],onToggleStretch:function(){},onResetSetting:function(){}}),Ku.node,Ku.node,Ku.node,Ku.node,Ku.node,Ku.node,Ku.string,Ku.oneOf(["primary","secondary","info","success","warning","error"]);var yp=500,gp=500,hp="cover",fp=0,xp=[0,0,0,0],bp=[0,0,0,0],Cp=500,Sp=500,Tp="#ffffff",wp=16,kp=[0,0,0,0],Lp="#000000",Ip=.65,Ep=40,Pp="#ffffff",Mp="#000000",Dp=50,Op=12,Bp=12,Fp=["",null,void 0],Wp=function(e){return!Fp.includes(e)},Ap=function(e,l){var o=Number(e);return Number.isFinite(o)?o:l},zp=function(e,l){return"".concat(Math.max(0,Ap(e,l)),"px")},Rp=function(e,l){return"".concat(Ap(e,l),"px")},Hp=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];return(Array.isArray(e)&&4===e.length?e:l).map(function(e){return zp(e,0)}).join(" ")};function jp(l){var t,n,i,r,u=l.states,a=l.previewMode,d=void 0!==a&&a,v=l.prop,s=void 0===v?{}:v,c=l.styles,m=void 0===c?{}:c,p=l.themeColors,y=void 0===p?{}:p,g=kl(o(!0),2),h=g[0],f=g[1],x=(null==s||null===(t=s.editable)||void 0===t||null===(t=t.bannerImage)||void 0===t?void 0:t.value)||"",b=(null==s||null===(n=s.editable)||void 0===n||null===(n=n.bannerAltText)||void 0===n?void 0:n.value)||"Promotional banner",C=null===(i=null==s||null===(r=s.editable)||void 0===r||null===(r=r.popupEnabled)||void 0===r?void 0:r.value)||void 0===i||i,S=function(e,l){var o,t,n=null==m||null===(o=m[e])||void 0===o?void 0:o.value;if(Wp(n))return n;var i=null==y||null===(t=y[e])||void 0===t?void 0:t.value;return Wp(i)?i:l},T="boolean"==typeof(null==u?void 0:u.storeBannerPopupOpen),w=!!d||(T?u.storeBannerPopupOpen:h),k={width:zp(S("StoreBannerPopupWidth",Cp),Cp),height:zp(S("StoreBannerPopupHeight",Sp),Sp),maxWidth:d?"calc(100% - 32px)":"calc(100vw - 32px)",maxHeight:d?"calc(100% - 32px)":"calc(100vh - 32px)",backgroundColor:S("StoreBannerPopupBackgroundColor",Tp),borderRadius:zp(S("StoreBannerPopupBorderRadius",wp),wp),padding:Hp(S("StoreBannerPopupPadding",kp),kp)},L={width:zp(S("StoreBannerPopupImageWidth",yp),yp),height:zp(S("StoreBannerPopupImageHeight",gp),gp),maxWidth:"100%",maxHeight:"100%",objectFit:S("StoreBannerPopupImageFit",hp),borderRadius:zp(S("StoreBannerPopupImageBorderRadius",fp),fp),padding:Hp(S("StoreBannerPopupImagePadding",xp),xp),margin:Hp(S("StoreBannerPopupImageMargin",bp),bp)};if(!C||!w||!x&&!d)return null;var I,E=S("StoreBannerPopupOverlayColor",Lp),P=(I=S("StoreBannerPopupOverlayOpacity",Ip),Math.min(1,Math.max(0,Ap(I,Ip)))),M=Ap(S("StoreBannerPopupCloseButtonSize",Ep),Ep),D={position:d?"relative":"fixed",inset:d?void 0:0,width:"100%",minHeight:d?560:void 0,height:d?"min(70vh, 680px)":"100vh",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent",opacity:1,zIndex:d?1:1500,overflow:"hidden",isolation:"isolate"};return e.createElement("div",{role:"dialog","aria-modal":!d||void 0,"aria-label":b,style:D},e.createElement("div",{"aria-hidden":"true",style:{position:"absolute",inset:0,backgroundColor:E,opacity:P,zIndex:0}}),e.createElement("div",{style:Cl(Cl({},k),{},{position:"relative",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",overflow:"auto",boxShadow:"0 24px 80px rgba(0, 0, 0, 0.28)",zIndex:1})},x?e.createElement("img",{src:x,alt:b,style:Cl(Cl({},L),{},{display:"block",boxSizing:"border-box",flexShrink:0})}):e.createElement("div",{style:Cl(Cl({},L),{},{minWidth:220,minHeight:220,display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",border:"2px dashed rgba(0, 0, 0, 0.2)",color:"#666666",textAlign:"center",fontSize:16,lineHeight:1.5})},"Upload a promotional banner image"),e.createElement("button",{type:"button",onClick:function(){d||("function"!=typeof(null==u?void 0:u.setStoreBannerPopupOpen)?f(!1):u.setStoreBannerPopupOpen(!1))},"aria-label":"Close promotional banner",style:{position:"absolute",top:Rp(S("StoreBannerPopupCloseButtonTop",Op),Op),right:Rp(S("StoreBannerPopupCloseButtonRight",Bp),Bp),width:zp(M,Ep),height:zp(M,Ep),display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,border:0,borderRadius:zp(S("StoreBannerPopupCloseButtonBorderRadius",Dp),Dp),color:S("StoreBannerPopupCloseButtonColor",Pp),backgroundColor:S("StoreBannerPopupCloseButtonBackgroundColor",Mp),fontSize:zp(Math.max(18,.65*M),26),fontWeight:400,lineHeight:1,cursor:d?"default":"pointer",zIndex:2}},"×")))}var Np={enabled:!0,showIcon:!0,prefixText:"Flat",discountValue:"15",suffixText:"% Off",textAnimationEnabled:!0,textAnimationType:"fade-up",textAnimationDuration:650,circleAnimationEnabled:!0,circleAnimationType:"float",circleAnimationDuration:1800,showConfetti:!0,gradientStartColor:"#fffbea",gradientEndColor:"#f2eeee",gradientAngle:90,height:112,borderRadius:20,padding:[0,30,0,30],margin:[24,0,24,0],border:"1px solid rgba(17, 24, 39, 0.08)",boxShadow:"0 2px 7px rgba(17, 24, 39, 0.14)",hoverBoxShadow:"0 8px 24px rgba(17, 24, 39, 0.14)",contentGap:14,alignment:"left",iconColor:"#529168",iconSize:30,prefixColor:"#111827",prefixFont:"Arial",prefixSize:[22,26,31,36],prefixWeight:"700",prefixStyle:"normal",discountCircleSize:42,discountCircleBackgroundColor:"#ffc400",discountCircleTextColor:"#111827",discountCircleFont:"Arial",discountCircleTextSize:[22,25,26,28],discountCircleTextWeight:"700",discountCircleShadow:"0 8px 18px rgba(255, 196, 0, 0.28)",suffixColor:"#111827",suffixFont:"Arial",suffixSize:[20,24,28,32],suffixWeight:"700",suffixStyle:"normal"},Vp=function(e){return""!==e&&null!=e},Up=function(e){return!0===e||"true"===e||!1!==e&&"false"!==e&&(arguments.length>1&&void 0!==arguments[1]&&arguments[1])},_p=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=Number(e);return Number.isFinite(o)?o:l},qp=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"".concat(Math.max(0,_p(e,l)),"px")},Gp=function(e,l){return(Array.isArray(e)&&4===e.length?e:l).map(function(e,o){return Math.max(1,_p(e,l[o]))})},Qp={"fade-up":"promotionTextFadeUp","fade-in":"promotionTextFadeIn","slide-left":"promotionTextSlideLeft","slide-right":"promotionTextSlideRight"},Yp={float:"promotionCircleFloat",bounce:"promotionCircleBounce",pulse:"promotionCirclePulse"},$p=[{x:"-28px",y:"-30px",color:"#ff647c",delay:0},{x:"5px",y:"-36px",color:"#6c63ff",delay:180},{x:"30px",y:"-24px",color:"#20b486",delay:340},{x:"34px",y:"18px",color:"#ff8a00",delay:520},{x:"-28px",y:"24px",color:"#3b82f6",delay:700},{x:"-36px",y:"-2px",color:"#ef4444",delay:880}];function Zp(l){var t=l.prop,n=void 0===t?{}:t,i=l.styles,r=void 0===i?{}:i,u=l.themeColors,a=void 0===u?{}:u,d=kl(o(!1),2),v=d[0],s=d[1],c=function(e,l){return function(e,l,o){var t,n=null==e||null===(t=e.editable)||void 0===t||null===(t=t[l])||void 0===t?void 0:t.value;return Vp(n)?n:o}(n,e,l)},m=function(e,l){return function(e,l,o,t){var n,i,r=null==e||null===(n=e[o])||void 0===n?void 0:n.value;if(Vp(r))return r;var u=null==l||null===(i=l[o])||void 0===i?void 0:i.value;return Vp(u)?u:t}(r,a,e,l)},p=Up(c("promotionEnabled",Np.enabled),Np.enabled),y=Up(c("showIcon",Np.showIcon),Np.showIcon),g=c("prefixText",Np.prefixText),h=c("discountValue",Np.discountValue),f=c("suffixText",Np.suffixText),x=Up(c("textAnimationEnabled",Np.textAnimationEnabled),Np.textAnimationEnabled),b=c("textAnimationType",Np.textAnimationType),C=Math.max(0,_p(c("textAnimationDuration",Np.textAnimationDuration),Np.textAnimationDuration)),S=Up(c("circleAnimationEnabled",Np.circleAnimationEnabled),Np.circleAnimationEnabled),T=c("circleAnimationType",Np.circleAnimationType),w=Math.max(300,_p(c("circleAnimationDuration",Np.circleAnimationDuration),Np.circleAnimationDuration)),k=Up(c("showConfetti",Np.showConfetti),Np.showConfetti);if(!p)return null;var L,I,E=m("PromotionBannerMargin",Np.margin),P=Array.isArray(E)&&4===E.length?E:Np.margin,M=Gp(m("PromotionBannerPrefixSize",Np.prefixSize),Np.prefixSize),D=Gp(m("PromotionBannerDiscountTextSize",Np.discountCircleTextSize),Np.discountCircleTextSize),O=Gp(m("PromotionBannerSuffixSize",Np.suffixSize),Np.suffixSize),B=m("PromotionBannerGradientStartColor",Np.gradientStartColor),F=m("PromotionBannerGradientEndColor",Np.gradientEndColor),A=_p(m("PromotionBannerGradientAngle",Np.gradientAngle),Np.gradientAngle),z=m("PromotionBannerAlignment",Np.alignment),R="center"===z?"center":"right"===z?"flex-end":"flex-start",H=Qp[b],j=Yp[T],N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return x&&H?{animation:"".concat(H," ")+"".concat(C,"ms ")+"cubic-bezier(.22, 1, .36, 1) both",animationDelay:"".concat(e,"ms")}:{animation:"none"}};return e.createElement(W,{component:"section","aria-label":"".concat(g," ")+"".concat(h," ")+"".concat(f),sx:{mt:"".concat(_p(P[0],Np.margin[0]),"px"),mb:"".concat(_p(P[2],Np.margin[2]),"px")}},e.createElement("style",null,"\n @keyframes promotionTextFadeUp {\n from {\n opacity: 0;\n transform: translateY(14px);\n }\n\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n\n @keyframes promotionTextFadeIn {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n\n @keyframes promotionTextSlideLeft {\n from {\n opacity: 0;\n transform: translateX(20px);\n }\n\n to {\n opacity: 1;\n transform: translateX(0);\n }\n }\n\n @keyframes promotionTextSlideRight {\n from {\n opacity: 0;\n transform: translateX(-20px);\n }\n\n to {\n opacity: 1;\n transform: translateX(0);\n }\n }\n\n @keyframes promotionCircleFloat {\n 0%,\n 100% {\n transform:\n translateY(0)\n rotate(0deg);\n }\n\n 50% {\n transform:\n translateY(-8px)\n rotate(-2deg);\n }\n }\n\n @keyframes promotionCircleBounce {\n 0%,\n 100% {\n transform:\n translateY(0)\n scale(1);\n }\n\n 45% {\n transform:\n translateY(-10px)\n scale(1.03);\n }\n\n 65% {\n transform:\n translateY(-3px)\n scale(.99);\n }\n }\n\n @keyframes promotionCirclePulse {\n 0%,\n 100% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(1.09);\n }\n }\n\n @keyframes promotionConfettiPop {\n 0%,\n 100% {\n opacity: 0;\n\n transform:\n translate(0, 0)\n rotate(0deg)\n scale(.5);\n }\n\n 18% {\n opacity: 1;\n }\n\n 55% {\n opacity: .95;\n\n transform:\n translate(\n var(--confetti-x),\n var(--confetti-y)\n )\n rotate(160deg)\n scale(1);\n }\n\n 82% {\n opacity: 0;\n\n transform:\n translate(\n var(--confetti-x),\n var(--confetti-y)\n )\n rotate(260deg)\n scale(.75);\n }\n }\n\n .promotion-offer-card {\n width: 100%;\n box-sizing: border-box;\n\n display: flex;\n align-items: center;\n\n overflow: hidden;\n text-decoration: none;\n\n transition:\n transform 220ms ease,\n box-shadow 220ms ease;\n }\n\n .promotion-offer-card:hover {\n transform: translateY(-2px);\n }\n\n .promotion-offer-content {\n display: flex;\n align-items: center;\n\n min-width: 0;\n white-space: nowrap;\n }\n\n .promotion-offer-prefix,\n .promotion-offer-suffix {\n line-height: 1;\n letter-spacing: -.02em;\n will-change:\n transform,\n opacity;\n }\n\n .promotion-offer-circle-wrapper {\n position: relative;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n\n flex-shrink: 0;\n }\n\n .promotion-offer-circle {\n position: relative;\n z-index: 2;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n\n flex-shrink: 0;\n\n line-height: 1;\n\n will-change: transform;\n }\n\n .promotion-offer-confetti {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 1;\n\n width: 6px;\n height: 10px;\n\n margin-left: -3px;\n margin-top: -5px;\n\n border-radius: 3px;\n\n pointer-events: none;\n\n animation-name:\n promotionConfettiPop;\n\n animation-timing-function:\n ease-in-out;\n\n animation-iteration-count:\n infinite;\n\n will-change:\n transform,\n opacity;\n }\n\n .promotion-offer-prefix {\n font-size: ".concat(M[0],"px;\n }\n\n .promotion-offer-circle {\n font-size: ").concat(D[0],"px;\n }\n\n .promotion-offer-suffix {\n font-size: ").concat(O[0],"px;\n }\n\n @media (min-width: 601px) {\n .promotion-offer-prefix {\n font-size: ").concat(M[1],"px;\n }\n\n .promotion-offer-circle {\n font-size: ").concat(D[1],"px;\n }\n\n .promotion-offer-suffix {\n font-size: ").concat(O[1],"px;\n }\n }\n\n @media (min-width: 901px) {\n .promotion-offer-prefix {\n font-size: ").concat(M[2],"px;\n }\n\n .promotion-offer-circle {\n font-size: ").concat(D[2],"px;\n }\n\n .promotion-offer-suffix {\n font-size: ").concat(O[2],"px;\n }\n }\n\n @media (min-width: 1400px) {\n .promotion-offer-prefix {\n font-size: ").concat(M[3],"px;\n }\n\n .promotion-offer-circle {\n font-size: ").concat(D[3],"px;\n }\n\n .promotion-offer-suffix {\n font-size: ").concat(O[3],"px;\n }\n }\n\n @media (max-width: 600px) {\n .promotion-offer-card {\n min-height: 86px !important;\n\n padding-left: 18px !important;\n padding-right: 18px !important;\n }\n\n .promotion-offer-content {\n gap: 9px !important;\n }\n }\n\n @media (max-width: 390px) {\n .promotion-offer-icon {\n display: none !important;\n }\n }\n\n @media (\n prefers-reduced-motion:\n reduce\n ) {\n .promotion-offer-prefix,\n .promotion-offer-suffix,\n .promotion-offer-circle,\n .promotion-offer-confetti {\n animation: none !important;\n }\n }\n ")),e.createElement("div",{className:"promotion-offer-card",onMouseEnter:function(){return s(!0)},onMouseLeave:function(){return s(!1)},style:{minHeight:qp(m("PromotionBannerHeight",Np.height),Np.height),padding:(L=m("PromotionBannerPadding",Np.padding),I=Np.padding,(Array.isArray(L)&&4===L.length?L:I).map(function(e,l){return qp(e,I[l])}).join(" ")),justifyContent:R,background:"linear-gradient("+"".concat(A,"deg, ")+"".concat(B," 0%, ")+"".concat(F," 100%)"),borderRadius:qp(m("PromotionBannerBorderRadius",Np.borderRadius),Np.borderRadius),border:m("PromotionBannerBorder",Np.border),boxShadow:v?m("PromotionBannerHoverBoxShadow",Np.hoverBoxShadow):m("PromotionBannerBoxShadow",Np.boxShadow),cursor:"default"}},e.createElement("div",{className:"promotion-offer-content",style:{gap:qp(m("PromotionBannerContentGap",Np.contentGap),Np.contentGap)}},y&&e.createElement(el,{className:"promotion-offer-icon","aria-hidden":"true",sx:{flexShrink:0,fontSize:"".concat(_p(m("PromotionBannerIconSize",Np.iconSize),Np.iconSize),"px"),color:m("PromotionBannerIconColor",Np.iconColor)}}),g&&e.createElement("span",{className:"promotion-offer-prefix",style:Cl(Cl({},N(0)),{},{color:m("PromotionBannerPrefixColor",Np.prefixColor),fontFamily:m("PromotionBannerPrefixFont",Np.prefixFont),fontWeight:m("PromotionBannerPrefixWeight",Np.prefixWeight),fontStyle:m("PromotionBannerPrefixStyle",Np.prefixStyle)})},g),h&&e.createElement("span",{className:"promotion-offer-circle-wrapper"},k&&S&&$p.map(function(l,o){return e.createElement("span",{key:o,"aria-hidden":"true",className:"promotion-offer-confetti",style:{"--confetti-x":l.x,"--confetti-y":l.y,backgroundColor:l.color,animationDuration:"".concat(w,"ms"),animationDelay:"".concat(l.delay,"ms")}})}),e.createElement("span",{className:"promotion-offer-circle",style:{width:qp(m("PromotionBannerDiscountCircleSize",Np.discountCircleSize),Np.discountCircleSize),height:qp(m("PromotionBannerDiscountCircleSize",Np.discountCircleSize),Np.discountCircleSize),borderRadius:"50%",color:m("PromotionBannerDiscountTextColor",Np.discountCircleTextColor),backgroundColor:m("PromotionBannerDiscountCircleBackgroundColor",Np.discountCircleBackgroundColor),boxShadow:m("PromotionBannerDiscountCircleShadow",Np.discountCircleShadow),fontFamily:m("PromotionBannerDiscountFont",Np.discountCircleFont),fontWeight:m("PromotionBannerDiscountTextWeight",Np.discountCircleTextWeight),animation:S&&j?"".concat(j," ").concat(w,"ms ease-in-out infinite"):"none"}},h)),f&&e.createElement("span",{className:"promotion-offer-suffix",style:Cl(Cl({},N(140)),{},{color:m("PromotionBannerSuffixColor",Np.suffixColor),fontFamily:m("PromotionBannerSuffixFont",Np.suffixFont),fontWeight:m("PromotionBannerSuffixWeight",Np.suffixWeight),fontStyle:m("PromotionBannerSuffixStyle",Np.suffixStyle)})},f))))}var Kp={facebook:{label:"Facebook",icon:"eva:facebook-fill",color:"#1877f2"},instagram:{label:"Instagram",icon:"ant-design:instagram-filled",color:"#c13584"},linkedin:{label:"LinkedIn",icon:"eva:linkedin-fill",color:"#0a66c2"},whatsapp:{label:"WhatsApp",icon:"mdi:whatsapp",color:"#25d366"},twitter:{label:"Twitter",icon:"mdi:twitter",color:"#1d9bf0"},x:{label:"X",icon:"ri:twitter-x-fill",color:"#111111"},tiktok:{label:"TikTok",icon:"simple-icons:tiktok",color:"#111111"},snapchat:{label:"Snapchat",icon:"mdi:snapchat",color:"#fffc00"},youtube:{label:"YouTube",icon:"mdi:youtube",color:"#ff0000"},website:{label:"Website",icon:"mdi:web",color:"#555555"},email:{label:"Email",icon:"mdi:email",color:"#f08203"}},Xp=function(e,l,o,t,n){var i,r,u,a=null==e||null===(i=e[t])||void 0===i?void 0:i.value;if(""!==a&&null!=a)return a;var d=null==o||null===(r=o.Text)||void 0===r||null===(r=r[t])||void 0===r?void 0:r.value;if(""!==d&&null!=d)return d;var v=null==l||null===(u=l[t])||void 0===u?void 0:u.value;return""!==v&&null!=v?v:n},Jp=function(e,l,o,t){var n,i,r=null==e||null===(n=e[o])||void 0===n?void 0:n.value,u=null==l||null===(i=l[o])||void 0===i?void 0:i.value,a=Array.isArray(r)?r:Array.isArray(u)?u:null;return a?{xs:a[0]||t,sm:a[1]||t,md:a[2]||t,lg:a[3]||t}:t};function ey(l){var o,t,n,i,r=l.themeColors,u=l.prop,a=l.styles,d=l.globalComponentStyles;l.states;var v=(null==u?void 0:u.editable)||{},s=(null===(o=v.title)||void 0===o?void 0:o.value)||"Social Links",c=(null===(t=v.subtitle)||void 0===t?void 0:t.value)||"",m=rt(null===(n=v.backgroundImage)||void 0===n?void 0:n.value)||"",p=((null===(i=v.socialLinks)||void 0===i?void 0:i.value)||[]).filter(function(e){return null==e?void 0:e.url});return e.createElement(g,{component:"main",sx:{position:"relative",minHeight:{xs:"75vh",md:"75vh",lg:"80vh"},display:"flex",alignItems:"center",py:{xs:6,md:9},overflow:"hidden",backgroundColor:Xp(a,r,d,"FollowPageBackgroundColor","#eef1f4"),backgroundImage:m?"url(".concat(m,")"):"none",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}},e.createElement(W,{maxWidth:"sm",sx:{position:"relative",zIndex:1,textAlign:"center"}},e.createElement(x,{component:"h1",sx:{color:Xp(a,r,d,"FollowPageTitleColor","#ffffff"),fontSize:Jp(a,r,"FollowPageTitleSize",48),fontWeight:Xp(a,r,d,"FollowPageTitleWeight",700),fontFamily:Xp(a,r,d,"FollowPageTitleFont","inherit"),lineHeight:1.15,mb:3}},s),c&&e.createElement(x,{sx:{display:"inline-block",mt:2.5,px:3,py:1.25,borderRadius:"".concat(Xp(a,r,d,"FollowPageSubtitleBorderRadius",999),"px"),color:Xp(a,r,d,"FollowPageSubtitleColor","#ffffff"),bgcolor:Xp(a,r,d,"FollowPageSubtitleBackgroundColor","#f08203"),fontSize:Jp(a,r,"FollowPageSubtitleSize",16),fontWeight:Xp(a,r,d,"FollowPageSubtitleWeight",700)}},c),e.createElement(f,{spacing:1.5,sx:{mt:4,alignItems:"center"}},p.map(function(l,o){var t=function(){return String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase().replace(/[^a-z0-9]/g,"")}(l.name),n=Kp[t]||{label:l.name||"Visit link",icon:"mdi:link-variant",color:"#555555"},i=function(e,l){var o=String(e||"").trim();return o?/^(https?:|mailto:|tel:)/i.test(o)?o:"email"===l?"mailto:".concat(o):"whatsapp"===l&&/^\+?[\d\s()-]+$/.test(o)?"https://wa.me/".concat(o.replace(/\D/g,"")):"https://".concat(o):""}(l.url,t);return e.createElement(U,{key:"".concat(t||"social","-").concat(o),href:i,target:"_blank",rel:"noopener noreferrer",underline:"none","aria-label":"Open ".concat(l.name||n.label),sx:{width:"100%",maxWidth:Xp(a,r,d,"FollowPageButtonWidth",320),minHeight:52,px:2.5,display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,borderRadius:"".concat(Xp(a,r,d,"FollowPageButtonBorderRadius",999),"px"),bgcolor:Xp(a,r,d,"FollowPageButtonBackgroundColor","#ffffff"),color:Xp(a,r,d,"FollowPageButtonTextColor","#333333"),boxShadow:"0 4px 14px rgba(0,0,0,0.14)",fontWeight:700,textTransform:"uppercase",transition:"transform 160ms ease, box-shadow 160ms ease","&:hover":{transform:"translateY(-2px)",boxShadow:"0 8px 20px rgba(0,0,0,0.18)"},"&:focus-visible":{outline:"3px solid ".concat(n.color),outlineOffset:3}}},e.createElement(g,{component:"span"},l.name||n.label),l.addCustomIcon&&l.customIcon?e.createElement(g,{component:"img",src:l.customIcon,alt:"",sx:{width:26,height:26,objectFit:"contain"}}):e.createElement(at,{icon:n.icon,width:25,sx:{color:n.color}}))}))))}var ly,oy,ty,ny=function(e){var l=Number(String(null!=e?e:0).replace(/[^0-9.-]/g,""));return Number.isFinite(l)?l:0},iy=function(e){return Number(ny(e).toFixed(2))},ry=function(e){return!1!==e&&"false"!==e},uy=function(e){return"Rs.".concat(ny(e).toLocaleString("en-PK",{maximumFractionDigits:2}))},ay=function(e,l,o){var t,n;return null!==(t=null==e||null===(n=e.editable)||void 0===n||null===(n=n[l])||void 0===n?void 0:n.value)&&void 0!==t?t:o},dy=function(e,l){var o,t,n=(null==e||null===(o=e.static)||void 0===o?void 0:o["display".concat(l)])||(null==e||null===(t=e.static)||void 0===t?void 0:t[l]);return Array.isArray(n)?n:[]},vy=function(e){return null!=e&&""!==e},sy=function(e,l,o){var t=(Array.isArray(l)?l:[l]).map(function(l){var o;return null==e||null===(o=e[l])||void 0===o?void 0:o.value}).find(function(e){return Array.isArray(e)?e.some(function(e){return vy(e)&&0!==e}):vy(e)});if(!vy(t))return o;if(Array.isArray(t)){var n=["xs","sm","md","lg","xl"];return t.map(function(e,l){var t,i;return vy(e)&&0!==e?e:Array.isArray(o)?null!==(t=o[l])&&void 0!==t?t:null:o&&"object"===Il(o)?null!==(i=o[n[l]])&&void 0!==i?i:null:null!=o?o:null})}return t},cy=function(e,l,o){var t=function(e){return Array.isArray(e)?e.map(t):e&&"object"===Il(e)?Object.fromEntries(Object.entries(e).map(function(e){var l=kl(e,2),o=l[0],n=l[1];return[o,t(n)]})):"number"==typeof e||"string"==typeof e&&/^-?\d+(\.\d+)?$/.test(e)?"".concat(e,"px"):e};return t(sy(e,l,o))},my=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Cl({},l);return Object.entries(e||{}).forEach(function(e){var t=kl(e,2),n=t[0],i=t[1],r=null==i?void 0:i.value;if(Array.isArray(r)?r.some(function(e){return vy(e)&&0!==e}):vy(r)){var u,a=null==l||null===(u=l[n])||void 0===u?void 0:u.value;o[n]=Cl(Cl({},i),{},{value:Array.isArray(r)?r.map(function(e,l){var o;return vy(e)&&0!==e?e:null!==(o=Array.isArray(a)?a[l]:a)&&void 0!==o?o:null}):r})}}),o},py=function(e){var l=[],o=new Set,t=function(e){var t,n=(null==e?void 0:e.name)||(null==e?void 0:e.title);if(n){var i=(null==e?void 0:e.id)||(null==e?void 0:e._id)||(null==e||null===(t=e.franchiseCategoryId)||void 0===t?void 0:t.id)||n,r=String(i).trim().toLowerCase();o.has(r)||(o.add(r),l.push(e))}};return Object.values((null==e?void 0:e.defaultLayout)||e||{}).forEach(function(e){Array.isArray(e)&&e.forEach(function(e){var l,o;if("RetailProductGrid"===(null==e?void 0:e.component)){var n=null==e||null===(l=e.props)||void 0===l||null===(l=l.static)||void 0===l?void 0:l.displaycategories,i=null==e||null===(o=e.props)||void 0===o||null===(o=o.static)||void 0===o?void 0:o.categories;(null!=n&&n.length?n:null!=i&&i.length?i:[]).forEach(t)}})}),l},yy=function(e){var l=Number(String(null!=e?e:0).replace(/[^0-9.-]/g,""));return Number.isFinite(l)?l:0},gy=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o="object"===Il(e)?(null==e?void 0:e.url)||(null==e?void 0:e.src)||"":e,t=String(o||"");if(!t)return"";var n=rt(t)||t;return/^(https?:|data:|blob:|\/)/i.test(n)?n:l?"".concat(String(l).replace(/\/$/,""),"/").concat(n.replace(/^\//,"")):n},hy=function(e){return String((null==e?void 0:e.id)||(null==e?void 0:e._id)||e||"")},fy=function(e){return!0===e||"true"===e},xy=function(e){var l=Number(String(null!=e?e:0).replace(/[^0-9.-]/g,""));return Number.isFinite(l)?l:0},by=function(e){var l=Array.isArray(null==e?void 0:e.variants)?e.variants:[],o=hy(null==e?void 0:e.selectedVariant);return l.find(function(e){return hy(e)===o})||l.find(function(e){return fy(null==e?void 0:e.defaultVariant)})||l[0]||null},Cy=function(e,l,o){var t=fy(null==e?void 0:e.hasVariant)&&fy(null==e?void 0:e.associateChoiceGroupWithPriceVariant)?(null==o?void 0:o.choiceGroup)||[]:(null==e?void 0:e.choiceGroup)||[],n=new Set(t.map(hy));return n.size?(l||[]).filter(function(e){return n.has(hy(e))}):[]},Sy=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,l){return e+((null==l?void 0:l.items)||[]).reduce(function(e,l){return e+xy(null==l?void 0:l.price)},0)},0)},Ty=function(e){var l=e.hasVariant,o=e.selectedVariant,t=e.selectedGroups,n=e.applicableChoiceGroups;if(l&&!o)return{ok:!1,error:"Please select a variant before adding this item."};var i=n.find(function(e){var l;if(!fy(null==e?void 0:e.required))return!1;var o=t.find(function(l){return hy(l)===hy(e)}),n=Math.max(1,xy((null==e?void 0:e.quantity)||1));return((null==o||null===(l=o.items)||void 0===l?void 0:l.length)||0)<n});return i?{ok:!1,error:"Please select ".concat(i.name,".")}:{ok:!0,error:""}},wy=function(e,l){var o,t=l.selectedVariant,n=l.selectedGroups,i=l.quantity,r=l.optionsTotal,u=fy(null==e?void 0:e.hasVariant),a=null!=r?r:Sy(n),d=u&&null!==(o=null==t?void 0:t.price)&&void 0!==o?o:e.price;return Cl(Cl(Cl({},e),u?{selectedVariant:t}:{}),{},{isPrepared:!1,isComplimentary:!1,isVoidItem:!1,cartItemId:Array.from({length:24},function(){return Math.floor(16*Math.random()).toString(16)}).join(""),price:d,priceBeforeCompliment:Number(d)+Number(a),priceWithChoiceGroup:Number(d)+Number(a),groups:n,qty:i,notes:""})},ky=function(){var e,l,o,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Cl(Cl({},n),{},{id:n.id||n._id,name:n.name||n.title||"Product",description:n.description||"",price:yy(null!==(e=null!==(l=n.priceWithChoiceGroup)&&void 0!==l?l:n.price)&&void 0!==e?e:n.salePrice),image:gy(n.image||n.img||n.imageUrl||n.photoURL||n.thumbnail,i),category:n.category||n.categoryName||(null===(o=n.franchiseCategoryId)||void 0===o?void 0:o.name)||(null===(t=n.categoryId)||void 0===t?void 0:t.name)||""})},Ly=function(){var e,l,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Math.max(1,yy(null!==(e=null!==(l=o.qty)&&void 0!==l?l:o.quantity)&&void 0!==e?e:1))},Iy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Number(gt(e))||ky(e).price*Ly(e)},Ey=function(){var e,l,o,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cash",r=(null==n?void 0:n.cardItems)||{},u=(null==r?void 0:r.items)||[],a=(null==n?void 0:n.franchise)||{},d=(null==a?void 0:a.configurations)||{},v=(null==a?void 0:a.serviceFeesObject)||{},s="storeDelivery",c=ny(Tt(u)),m=ny(bt(u,r)),p=ny(Ct(u,r)),y=Math.max(c-m-p,0),g=null==v||null===(e=v[s])||void 0===e?void 0:e[i],h=0;null!=d&&d.isServiceFeesApplicableOnStore&&(!0===(t=null==g?void 0:g.applicable)||"true"===t)&&(h="Percentage"===(null==g?void 0:g.type)?y*ny(null==g?void 0:g.amount)/100:ny(null==g?void 0:g.amount));var f=null!=d&&d.isPlatformFeeApplicableOnStore?ny(null==a?void 0:a.platformFees):0,x=0;null!=d&&d.isTaxApplicableOnStore&&(x="cash"===i?ny(null==a?void 0:a.storeTaxOnCash)/100:ny(null==a?void 0:a.storeTaxOnCard)/100);var b={items:u,cartMeta:r,cartSubtotal:c,manualDiscount:m,promotion:p,serviceFee:h,tip:0,platformFee:f,isServiceFeeTaxable:ry(null==d?void 0:d.isServiceFeeTaxableOnStore),isTipTaxable:ry(null==d?void 0:d.isTipTaxableOnStore),isPlatformFeeTaxable:ry(null==d?void 0:d.isPlatformFeeTaxableOnStore)},C=Wt(Ft(Cl(Cl({},b),{},{deliveryFee:0})),x),S=At({states:Cl(Cl({},n),{},{orderType:s}),baseTotal:y+h+f+C}),T=null!=d&&d.isDeliveryFeeApplicableOnStore?ny(null==S?void 0:S.finalDeliveryFee):0,w=Wt(Ft(Cl(Cl({},b),{},{deliveryFee:T,isDeliveryFeeTaxable:ry(null==d?void 0:d.isDeliveryFeeTaxableOnStore)})),x),k=iy(y+h+f+T+w),L={reason:(null==S?void 0:S.reason)||"none",waiveOff:0===T,waiveOffValue:ny(null==a?void 0:a.deliveryFees)};return{items:u,subTotal:iy(c),discount:iy(m),promotion:iy(p),serviceFees:iy(h),platformFees:iy(f),deliveryFees:iy(T),tax:iy(w),total:k,deliveryMessage:(null==S?void 0:S.message)||"",orderPayload:{levelId:null==r?void 0:r.levelId,venueId:(null==r?void 0:r.venueId)||(null==n||null===(l=n.selectedVenue)||void 0===l?void 0:l.id)||(null==n||null===(o=n.selectedVenue)||void 0===o?void 0:o._id),total:k,orderType:s,type:"store",paymentType:i,tax:iy(w),subTotal:iy(c),tip:0,discount:iy(m),discountObject:(null==r?void 0:r.discountObject)||{reason:m>0?"Promotion":"",value:iy(m)},promotion:iy(p),serviceFees:iy(h),serviceFeesObject:h?hl({},s,hl({},i,g)):{},platformFees:iy(f),deliveryFees:iy(T),deliveryFeesObject:L,isDeliveryFeesApplicable:!0,location:(null==n?void 0:n.latLongForDelivery)||""}}},Py=Je(ly||(oy=["\n from { transform: translateX(0); }\n to { transform: translateX(-50%); }\n"],ty||(ty=oy.slice(0)),ly=Object.freeze(Object.defineProperties(oy,{raw:{value:Object.freeze(ty)}}))));function My(l){var o,t=l.prop,n=l.styles,i=l.themeColors,r=fe(),u=my(n,i),a=(o=ay(t,"messages",ay(t,"text",["Egora POS · Faster checkout for every business","Inventory, sales and customer management in one place","Built for growing businesses"])),(Array.isArray(o)?o:[o]).flatMap(function(e){return String(null!=e?e:"").split(/\r?\n|\s*\|\s*/)}).map(function(e){return e.trim()}).filter(Boolean));return a.length?e.createElement(g,{sx:{overflow:"hidden",py:1.25,background:sy(u,["AnnouncementsBannerBackgroundColor","RetailAnnouncementBackgroundColor"],r.palette.primary.main),color:sy(u,["AnnouncementsBannerTextColor","RetailAnnouncementTextColor"],r.palette.primary.contrastText)}},e.createElement(g,{sx:{display:"flex",width:"max-content",minWidth:"200%",animation:"".concat(Py," 35s linear infinite"),"&:hover":{animationPlayState:"paused"},"@media (prefers-reduced-motion: reduce)":{animation:"none",minWidth:0,width:"100%",flexWrap:"wrap"}}},[0,1].map(function(l){return e.createElement(g,{key:l,"aria-hidden":1===l||void 0,sx:{display:"flex",flex:"1 0 auto",justifyContent:"space-around",alignItems:"center","@media (prefers-reduced-motion: reduce)":{display:1===l?"none":"flex",flexWrap:"wrap",flex:"1 1 100%",rowGap:1}}},a.map(function(l,o){return e.createElement(x,{component:"span",variant:"caption",key:"".concat(l,"-").concat(o),sx:{px:{xs:3,md:7},textAlign:"center",fontSize:cy(u,"AnnouncementsBannerTextSize",r.typography.caption.fontSize)}},l)}))}))):null}function Dy(l){var t,n,i=l.actions,r=l.layout,u=l.prop,a=l.states,d=l.styles,v=l.themeColors,s=fe(),c=my(d,v),m=kl(o(!1),2),p=m[0],y=m[1],h=py(r),S=h.length?h:[{name:"Categories"}],T=gy(ay(u,"logoImage",""),null==a?void 0:a.storeImagesBaseUrl),w=Array.isArray(null==a?void 0:a.cardItems)?0:null!==(t=null==a||null===(n=a.cardItems)||void 0===n||null===(n=n.items)||void 0===n?void 0:n.length)&&void 0!==t?t:0,k=sy(c,"RetailHeaderActionIconColor",s.palette.text.primary),L=cy(c,"RetailHeaderActionIconSize",24);return e.createElement(g,{component:"header",sx:{px:{xs:2,md:5},py:2,background:sy(c,"RetailHeaderBackgroundColor",s.palette.background.paper)}},e.createElement(g,{sx:{display:"grid",gridTemplateColumns:{xs:"auto minmax(0, 1fr) auto",md:"1fr auto 1fr"},alignItems:"center",gap:1,minHeight:64}},e.createElement(g,null,e.createElement(b,{"aria-label":"Toggle categories","aria-expanded":p,onClick:function(){return y(function(e){return!e})},sx:{display:{xs:"inline-flex",md:"none"},color:k}},e.createElement(ll,{sx:{fontSize:L}}))),e.createElement(ie,{"aria-label":"Store home",onClick:function(){var e;return null==i||null===(e=i.navigateToHome)||void 0===e?void 0:e.call(i)},sx:{justifySelf:"center",minWidth:0,borderRadius:1,px:1,py:.5}},T?e.createElement(g,{component:"img",src:T,alt:"Store logo",sx:{maxWidth:{xs:110,sm:160},width:"100%",height:58,objectFit:"contain"}}):e.createElement(f,{alignItems:"center",sx:{color:sy(c,"RetailHeaderBrandColor",s.palette.text.primary)}},e.createElement(x,{component:"span",sx:{fontSize:cy(c,"RetailHeaderBrandTextSize",39),fontWeight:700,lineHeight:1}},"EGORA"),e.createElement(x,{component:"span",variant:"caption",sx:{letterSpacing:"0.3em",fontWeight:700,color:sy(c,"RetailHeaderBrandAccentColor",s.palette.primary.main)}},"POS"))),e.createElement(f,{direction:"row",justifyContent:"flex-end",spacing:{xs:0,sm:.5},sx:{color:k,"& .MuiIconButton-root":{color:"inherit"},"& .MuiSvgIcon-root":{fontSize:L}}},e.createElement(b,{component:"a",href:"#account","aria-label":"Account"},e.createElement(ol,null)),e.createElement(b,{"aria-label":"Search",onClick:function(){return window.dispatchEvent(new Event("retail:open-search"))}},e.createElement(tl,null)),e.createElement(b,{"aria-label":"Cart, ".concat(w," items"),onClick:function(){var e;return null==i||null===(e=i.handleOpenCart)||void 0===e?void 0:e.call(i)}},e.createElement(re,{badgeContent:w,showZero:!0,sx:{"& .MuiBadge-badge":{background:sy(c,"RetailHeaderCartBadgeBackgroundColor",s.palette.primary.main),color:sy(c,"RetailHeaderCartBadgeTextColor",s.palette.primary.contrastText),minWidth:cy(c,"RetailHeaderCartBadgeSize",17),height:cy(c,"RetailHeaderCartBadgeSize",17),fontSize:s.typography.pxToRem(10)}}},e.createElement(nl,null))))),S.length>0&&e.createElement(g,{component:"nav","aria-label":"Store categories",sx:{display:{xs:p?"flex":"none",md:"flex"},flexWrap:"wrap",justifyContent:"center",gap:cy(c,"RetailHeaderNavGap",22),mt:1.5}},S.map(function(l,o){var t=(null==l?void 0:l.name)||(null==l?void 0:l.title);return e.createElement(C,{key:(null==l?void 0:l.id)||(null==l?void 0:l._id)||"".concat(t,"-").concat(o),onClick:function(){return function(e){var l,o;null==i||null===(l=i.handleCategoryClick)||void 0===l||l.call(i,e),y(!1),null===(o=document.getElementById("retail-products"))||void 0===o||o.scrollIntoView({behavior:"smooth",block:"start"})}(l)},sx:{minWidth:0,textTransform:"none",color:sy(c,"RetailHeaderNavTextColor",s.palette.text.primary),fontSize:cy(c,"RetailHeaderNavTextSize",s.typography.body2.fontSize)}},t)})))}function Oy(l){var n,i=l.actions,u=l.layout,a=l.prop,d=l.states,v=l.styles,s=l.themeColors,c=fe(),m=my(v,s),p=kl(o(!1),2),y=p[0],h=p[1],S=kl(o(""),2),T=S[0],w=S[1],k=r(null),L=py(u),I=dy(a,"categories"),E=L.length?L:I,D=null!==(n=null==d?void 0:d.query)&&void 0!==n?n:T,O=String(D).trim().toLowerCase(),B=E.filter(function(e){return String((null==e?void 0:e.name)||(null==e?void 0:e.title)||e).toLowerCase().includes(O)}),F=ay(a,"SearchBarBackgroundText","Search our store..."),W=sy(m,"SearchBarTextColor",c.palette.text.secondary),z=sy(m,"SearchBarOutlineColor",c.palette.divider),R=cy(m,"SearchBarBorderRadius",c.shape.borderRadius),H={fontSize:cy(m,"SearchBarIconSize",22),color:sy(m,"SearchBarIconColor",c.palette.text.primary),background:sy(m,"SearchBarIconBackgroundColor","transparent")},j=function(e){var l;w(e),null==i||null===(l=i.handleSearch)||void 0===l||l.call(i,e)},N=function(){var e;h(!1),null===(e=document.getElementById("retail-products"))||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})};return t(function(){var e=function(){return h(!0)};return window.addEventListener("retail:open-search",e),function(){return window.removeEventListener("retail:open-search",e)}},[]),t(function(){if(y){var e=window.setTimeout(function(){var e;return null===(e=k.current)||void 0===e?void 0:e.focus()},0);return function(){return window.clearTimeout(e)}}},[y]),e.createElement(g,{component:"section","aria-label":"Store search",onKeyDown:function(e){"Escape"===e.key&&h(!1)},sx:{px:{xs:2,md:5},py:2,background:sy(m,"SearchBarBackgroundColor",c.palette.background.paper)}},e.createElement(C,{fullWidth:!0,variant:"outlined","aria-expanded":y,startIcon:e.createElement(tl,{sx:H}),onClick:function(){return h(function(e){return!e})},sx:{justifyContent:"flex-start",px:2,py:1.5,color:W,borderColor:z,borderRadius:R,textTransform:"none","&:hover":{borderColor:z}}},F),e.createElement(ue,{in:y,unmountOnExit:!0},e.createElement(A,{variant:"outlined",sx:{mt:1.5,p:{xs:2,md:3},borderColor:z,borderRadius:R,color:W,bgcolor:"background.paper"}},e.createElement(g,{component:"form",onSubmit:function(e){e.preventDefault(),N()}},e.createElement(P,{fullWidth:!0,inputRef:k,value:D,onChange:function(e){return j(e.target.value)},placeholder:F,inputProps:{"aria-label":"Search products"},InputProps:{startAdornment:e.createElement(M,{position:"start"},e.createElement(tl,{sx:H})),endAdornment:e.createElement(M,{position:"end"},e.createElement(b,{"aria-label":"Close search",onClick:function(){return h(!1)}},e.createElement(il,{sx:H})))},sx:{"& .MuiInputBase-root":{color:W,borderRadius:R},"& .MuiOutlinedInput-notchedOutline":{borderColor:z}}}),e.createElement(x,{variant:"overline",component:"p",sx:{mt:3,mb:1}},O?"Suggestions":"Main menu"),e.createElement(f,{alignItems:"flex-start",spacing:.5},B.map(function(l,o){return e.createElement(C,{key:(null==l?void 0:l.id)||(null==l?void 0:l._id)||"".concat((null==l?void 0:l.name)||l,"-").concat(o),onClick:function(){var e;j(""),null==i||null===(e=i.handleCategoryClick)||void 0===e||e.call(i,l),N()},sx:{color:W,textTransform:"none"}},(null==l?void 0:l.name)||(null==l?void 0:l.title)||l)})),O&&e.createElement(C,{type:"submit",variant:"contained",sx:{mt:3}},"Search for “",String(D).trim(),"”")))))}function By(l){var n=l.prop,i=l.states,r=l.styles,u=l.themeColors,a=fe(),d=my(r,u),v=ay(n,"carouselImages",[]),s=(Array.isArray(v)?v:[]).map(function(e){return"object"===Il(e)?(null==e?void 0:e.url)||(null==e?void 0:e.src)||(null==e?void 0:e.image):e}).map(function(e){return gy(e,null==i?void 0:i.storeImagesBaseUrl)}).filter(Boolean),c=gy(ay(n,"backgroundImage","")||"https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1600&q=85",null==i?void 0:i.storeImagesBaseUrl),m=s.length?s:[c],p=m.join("|"),y=Number(ay(n,"carouselSlideInterval",5)),h=Number.isFinite(y)&&y>0?y:5,f=kl(o(0),2),x=f[0],b=f[1];return t(function(){b(0)},[p]),t(function(){if(!(m.length<2)){var e=setInterval(function(){b(function(e){return(e+1)%m.length})},1e3*h);return function(){return clearInterval(e)}}},[m.length,h,p]),e.createElement(g,{component:"section",sx:{display:"block",width:"100%",overflow:"hidden",color:"text.primary",background:sy(d,"HeroCarouselDisplayedImageBackgroundColor",a.palette.background.default),borderRadius:cy(d,"HeroCarouselImageBorderRadius",0)}},e.createElement(g,{sx:{position:"relative",width:"100%",minHeight:cy(d,"HeroCarouselDisplayedImageHeight",{xs:330,md:475}),overflow:"hidden",background:sy(d,"HeroCarouselDisplayedImageBackgroundColor",a.palette.background.default)}},e.createElement(g,{"data-testid":"retail-hero-image-track","aria-hidden":"true",sx:{position:"absolute",inset:0,display:"flex",width:"100%",transition:"transform 0.8s ease-in-out"},style:{transform:"translateX(-".concat(100*x,"%)")}},m.map(function(l,o){return e.createElement(g,{component:"img",key:"".concat(l,"-").concat(o),src:l,alt:"",sx:{width:"100%",height:"100%",flex:"0 0 100%",objectFit:"cover",objectPosition:"center"}})}))))}function Fy(l){var o=l.prop,t=l.actions,n=l.layout,i=l.styles,r=l.themeColors,u=fe(),a=my(i,r),d=py(n),v=dy(o,"categories"),s=v.length?v:d.length?d:[{name:"Face"},{name:"Hair"},{name:"Beard"},{name:"Body"},{name:"Fragrance"}],c=sy(a,"RetailCategoryCarouselTextColor",u.palette.text.secondary);return s.length?e.createElement(g,{component:"section","aria-label":"Shop by category",sx:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"stretch",md:"center"},gap:3,px:{xs:2,md:5},py:3,color:c,background:sy(a,"RetailCategoryCarouselBackgroundColor",u.palette.background.paper),borderBottom:1,borderColor:sy(a,"RetailCategoryCarouselBorderColor",u.palette.divider)}},e.createElement(x,{variant:"overline",sx:{flexShrink:0,fontSize:cy(a,"RetailCategoryCarouselLabelSize",u.typography.overline.fontSize)}},"Shop by category"),e.createElement(g,{sx:{display:"flex",flex:1,minWidth:0,overflowX:"auto",gap:cy(a,"RetailCategoryCarouselItemGap",28),py:.5}},s.map(function(l,o){var n=(null==l?void 0:l.name)||(null==l?void 0:l.title)||l;return e.createElement(C,{key:(null==l?void 0:l.id)||(null==l?void 0:l._id)||"".concat(n,"-").concat(o),onClick:function(){var e;return null==t||null===(e=t.handleCategoryClick)||void 0===e?void 0:e.call(t,l)},sx:{color:c,gap:1,flexShrink:0,whiteSpace:"nowrap",textTransform:"none",fontSize:cy(a,"RetailCategoryCarouselTextSize",u.typography.body2.fontSize),"&:hover":{color:sy(a,"RetailCategoryCarouselHoverColor",u.palette.primary.main)}}},e.createElement(h,{"aria-hidden":"true",sx:{width:cy(a,"RetailCategoryCarouselIconSize",30),height:cy(a,"RetailCategoryCarouselIconSize",30),background:sy(a,"RetailCategoryCarouselIconBackgroundColor",u.palette.action.selected),color:sy(a,"RetailCategoryCarouselIconColor",u.palette.primary.main),fontSize:u.typography.h6.fontSize}},["✦","⌁","⌁","◌","◉"][o%5]),n)}))):null}function Wy(l){var t=l.prop,n=l.actions,r=l.styles,u=l.themeColors,a=l.states,d=l.previewMode,v=void 0!==d&&d,s=l.isEditorPreview,c=v||void 0!==s&&s,m=fe(),p=my(r,u),y=kl(o("featured"),2),h=y[0],b=y[1],S=kl(o({}),2),T=S[0],w=S[1],k=dy(t,"categories"),P=dy(t,"items"),M=ay(t,"title","Curated essentials"),D=ay(t,"description","Curated essentials for your best self."),B=(null==a?void 0:a.storeImagesBaseUrl)||"",F=i(function(){var e=function(e){var l=new Set;return e.flatMap(function(e){return(Array.isArray(null==e?void 0:e.items)?e.items:[]).reduce(function(o,t,n){var i,r,u=(null==t?void 0:t.id)||(null==t?void 0:t._id)||"".concat((null==e?void 0:e.id)||(null==e?void 0:e.name),"-").concat(n);return l.has(String(u))||(l.add(String(u)),o.push(Cl(Cl({},t),{},{category:(null==t||null===(i=t.franchiseCategoryId)||void 0===i?void 0:i.name)||(null==t||null===(r=t.categoryId)||void 0===r?void 0:r.name)||(null==e?void 0:e.name)||""}))),o},[])})}(k);return(e.length?e:P).map(function(e){return ky(e,B)})},[k,B,P]),W=i(function(){return"price-low"===h?Ll(F).sort(function(e,l){return e.price-l.price}):"price-high"===h?Ll(F).sort(function(e,l){return l.price-e.price}):F},[F,h]);if(!W.length&&!v)return null;var z=function(e){var l;c?null==n||null===(l=n.handleOpenCard)||void 0===l||l.call(n,e):null!=n&&n.navigateToProduct&&n.navigateToProduct(e)},R=function(e,l){return Cy(e,(null==a?void 0:a.choiceGroups)||[],l).some(function(e){return fy(null==e?void 0:e.required)})},H=function(){var e=gl(Tl().m(function e(l){var o,t,i,r,u;return Tl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!c){e.n=1;break}return e.a(2);case 1:if(o=l.id||l._id||l.name,t=fy(null==l?void 0:l.hasVariant)?by(l):null,!(fy(null==l?void 0:l.hasVariant)&&!t||R(l,t))){e.n=2;break}return z(l),e.a(2);case 2:return w(function(e){return Cl(Cl({},e),{},hl({},o,"loading"))}),e.p=3,r=wy(l,{selectedVariant:t,selectedGroups:[],quantity:1}),e.n=4,null==n||null===(i=n.handleAddToCart)||void 0===i?void 0:i.call(n,r,[],1,"");case 4:201===(null==(u=e.v)?void 0:u.status)||200===(null==u?void 0:u.status)?(w(function(e){return Cl(Cl({},e),{},hl({},o,"success"))}),window.setTimeout(function(){w(function(e){var l=Cl({},e);return delete l[o],l})},1800)):w(function(e){return Cl(Cl({},e),{},hl({},o,"error"))}),e.n=6;break;case 5:e.p=5,e.v,w(function(e){return Cl(Cl({},e),{},hl({},o,"error"))});case 6:return e.a(2)}},e,null,[[3,5]])}));return function(l){return e.apply(this,arguments)}}(),j=W,N=sy(p,"RetailProductGridHeadingColor",m.palette.text.primary),V=sy(p,"RetailProductGridDescriptionColor",m.palette.text.secondary),U=sy(p,"RetailProductGridProductNameColor",m.palette.text.primary),_=sy(p,"RetailProductGridProductDescriptionColor",m.palette.text.secondary),q={mt:2,py:1.5,px:2,minHeight:48,justifyContent:"space-between",background:sy(p,"RetailProductGridButtonBackgroundColor","transparent"),color:sy(p,"RetailProductGridButtonTextColor",m.palette.primary.main),borderColor:sy(p,"RetailProductGridButtonBorderColor",m.palette.primary.main),borderRadius:cy(p,"RetailProductGridButtonBorderRadius",m.shape.borderRadius),"&:hover":{background:sy(p,"RetailProductGridButtonHoverBackgroundColor",m.palette.primary.main),color:sy(p,"RetailProductGridButtonHoverTextColor",m.palette.primary.contrastText),borderColor:sy(p,"RetailProductGridButtonBorderColor",m.palette.primary.main)}};return e.createElement(g,{component:"section",id:"retail-products",sx:{px:{xs:2,md:5},py:{xs:5,md:8},scrollMarginTop:24,background:sy(p,"RetailProductGridBackgroundColor",m.palette.background.default)}},e.createElement(f,{direction:{xs:"column",md:"row"},alignItems:{xs:"stretch",md:"flex-end"},justifyContent:"space-between",spacing:3,sx:{pb:3,mb:4,borderBottom:1,borderColor:"divider",color:N}},e.createElement(g,{sx:{minWidth:0}},e.createElement(x,{variant:"overline"},"The edit"),e.createElement(x,{component:"h2",variant:"h3",sx:{color:N,overflowWrap:"anywhere",fontSize:cy(p,"RetailProductGridHeadingTextSize",{xs:30,md:42}),mb:1}},M),D&&e.createElement(x,{variant:"body2",sx:{color:V,fontSize:cy(p,"RetailProductGridDescriptionTextSize",m.typography.body2.fontSize)}},D)),e.createElement(f,{direction:"row",alignItems:"center",spacing:2,sx:{flexShrink:0,justifyContent:"space-between",color:V}},e.createElement(x,{variant:"body2",sx:{whiteSpace:"nowrap"}},j.length," products"),e.createElement(L,{size:"small",sx:{minWidth:160}},e.createElement(I,{value:h,onChange:function(e){return b(e.target.value)},inputProps:{"aria-label":"Sort products"},sx:{color:N}},e.createElement(E,{value:"featured"},"Featured"),e.createElement(E,{value:"price-low"},"Price: low to high"),e.createElement(E,{value:"price-high"},"Price: high to low"))))),j.length?e.createElement(g,{sx:{display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",sm:"repeat(2, minmax(0, 1fr))",lg:"repeat(4, minmax(0, 1fr))"},columnGap:cy(p,"RetailProductGridGap",24),rowGap:cy(p,"RetailProductGridRowGap",48)}},j.map(function(l,o){var t=l.id||l._id||l.name,n=T[t];return e.createElement(A,{component:"article",elevation:0,key:l.id||"".concat(l.name,"-").concat(o),sx:{minWidth:0,overflow:"hidden",textAlign:"center",background:sy(p,"RetailProductGridCardBackgroundColor",m.palette.background.paper),borderRadius:cy(p,"RetailProductGridCardBorderRadius",m.shape.borderRadius),"&:hover [data-retail-product-image]":{transform:"scale(1.05)"},"&:hover [data-retail-quick-add], &:focus-within [data-retail-quick-add]":{opacity:1,transform:"none"}}},e.createElement(g,{sx:{position:"relative",overflow:"hidden",height:cy(p,"RetailProductGridImageHeight",{xs:300,md:310}),background:sy(p,"RetailProductGridImageBackgroundColor",m.palette.action.hover),borderRadius:cy(p,"RetailProductGridImageBorderRadius",m.shape.borderRadius)}},e.createElement(ie,{"aria-label":"View ".concat(l.name),onClick:function(){return z(l)},sx:{width:"100%",height:"100%",display:"block"}},e.createElement(g,{component:"img","data-retail-product-image":!0,src:l.image||"/assets/placeholder.png",alt:l.name,sx:{width:"100%",height:"100%",objectFit:"cover",transition:m.transitions.create("transform"),"@media (prefers-reduced-motion: reduce)":{transition:"none"}}})),e.createElement(C,{"data-retail-quick-add":!0,variant:"contained",onClick:function(e){e.stopPropagation(),z(l)},sx:{position:"absolute",bottom:1.5,left:1.5,right:1.5,bgcolor:"background.paper",color:U,opacity:{xs:1,md:0},transform:{xs:"none",md:"translateY(6px)"},transition:m.transitions.create(["opacity","transform"]),"&:hover":{bgcolor:"background.paper"},"@media (hover: none)":{opacity:1,transform:"none"}}},"View product")),e.createElement(g,{sx:{px:1.5,pb:2}},e.createElement(C,{fullWidth:!0,variant:"outlined",onClick:function(){return H(l)},disabled:"loading"===n||"success"===n,"aria-label":"success"===n?"".concat(l.name," added to cart"):"Add ".concat(l.name," to cart"),sx:q},"loading"===n?e.createElement(O,{size:17,color:"inherit",sx:{mx:"auto"}}):"success"===n?e.createElement(rl,{sx:{mx:"auto"}}):e.createElement(e.Fragment,null,"error"===n?"Try again":"Add to cart",e.createElement(ul,{fontSize:"small"}))),e.createElement(x,{component:"h3",variant:"subtitle1",sx:{mt:2,mb:.75,color:U,fontSize:cy(p,"RetailProductGridProductNameTextSize",m.typography.subtitle1.fontSize),overflowWrap:"anywhere"}},l.name),l.description&&e.createElement(x,{variant:"body2",sx:{color:_,fontSize:cy(p,"RetailProductGridProductDescriptionTextSize",m.typography.body2.fontSize),display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden"}},l.description),l.category&&e.createElement(x,{component:"p",variant:"caption",sx:{mt:1,color:_,textTransform:"uppercase",letterSpacing:"0.08em"}},l.category),e.createElement(x,{sx:{mt:1,fontWeight:700,color:sy(p,"RetailProductGridPriceColor",m.palette.text.primary)}},uy(l.price))))})):e.createElement(A,{variant:"outlined",sx:{minHeight:180,p:3,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:1,borderStyle:"dashed",textAlign:"center",color:V}},e.createElement(x,{variant:"subtitle1",sx:{color:N}},"No products selected"),e.createElement(x,{variant:"body2"},"Select one or more categories from the component settings.")))}function Ay(l){var o,t,n=l.states,i=l.actions,r=l.styles,u=l.themeColors,a=l.isEditorPreview,d=void 0!==a&&a,v=l.previewMode,s=d||void 0!==v&&v,c=fe(),m=my(r,u),p=(null==n||null===(o=n.cardItems)||void 0===o?void 0:o.items)||[],y=Ey(n),h=y.subTotal,w=y.total,k=p.reduce(function(e,l){return e+Ly(l)},0),L=function(e,l){return sy(m,"RetailCartDrawer".concat(e),l)},I={color:L("IconColor","text.primary"),"& .MuiSvgIcon-root":{fontSize:cy(m,"RetailCartDrawerIconSize",24)}},E=cy(m,"RetailCartDrawerButtonBorderRadius",c.shape.borderRadius),P=function(){var e;s||null==i||null===(e=i.handleOpenCart)||void 0===e||e.call(i)},M=function(e){s||null==e||e()},D=e.createElement(g,{component:"aside",sx:{display:"flex",flexDirection:"column",height:"100%",minHeight:0,p:{xs:2,sm:3},bgcolor:L("BackgroundColor","background.paper"),color:L("TextColor","text.primary")}},e.createElement(f,{direction:"row",spacing:1,alignItems:"flex-start",justifyContent:"space-between",sx:{mb:3}},e.createElement(g,{sx:{minWidth:0}},e.createElement(x,{variant:"overline",sx:{color:L("MutedTextColor","text.secondary")}},"Your bag"),e.createElement(x,{variant:"h5",component:"h2",sx:{color:L("HeadingColor","text.primary")}},"Shopping cart (",k,")")),e.createElement(b,{"aria-label":"Close cart",onClick:P,sx:I},e.createElement(il,null))),e.createElement(g,{sx:{mb:2}},e.createElement(x,{variant:"body2",sx:{mb:1}},h>=1999?"You unlocked free delivery":"".concat(uy(1999-h)," away from free delivery")),e.createElement(ae,{variant:"determinate",value:Math.min(100,Math.max(0,h/1999*100)),sx:{borderRadius:1,bgcolor:"action.hover","& .MuiLinearProgress-bar":{bgcolor:L("ProgressColor","primary.main")}}})),p.length?e.createElement(g,{sx:{flex:1,minHeight:0,overflowY:"auto"}},p.map(function(l,o){var t=ky(l,(null==n?void 0:n.storeImagesBaseUrl)||"");return e.createElement(f,{key:l.cartItemId||"".concat(t.id||t.name,"-").concat(o),direction:"row",spacing:1.5,alignItems:"center",sx:{py:2,borderBottom:1,borderColor:L("DividerColor","divider")}},e.createElement(g,{sx:{width:64,height:72,flexShrink:0,borderRadius:1,overflow:"hidden",bgcolor:"action.hover",display:"grid",placeItems:"center"}},t.image?e.createElement(g,{component:"img",src:t.image,alt:t.name,sx:{display:"block",width:"100%",height:"100%",objectFit:"contain"}}):e.createElement(nl,{color:"disabled"})),e.createElement(g,{sx:{flex:1,minWidth:0}},e.createElement(x,{variant:"subtitle2",component:"h3",sx:{color:L("HeadingColor","text.primary"),overflowWrap:"anywhere"}},t.name),e.createElement(x,{variant:"body2",sx:{color:L("MutedTextColor","text.secondary"),my:.5}},"Quantity: ",Ly(l)),e.createElement(x,{variant:"subtitle2",sx:{color:L("PriceColor","text.primary")}},uy(Iy(l)))),e.createElement(b,{"aria-label":"Remove ".concat(t.name),disabled:!(null!=l&&l.cartItemId),onClick:function(){var e;!s&&null!=l&&l.cartItemId&&(null==i||null===(e=i.handleRemoveFromCart)||void 0===e||e.call(i,l))},sx:I},e.createElement(al,null)))})):e.createElement(f,{spacing:1,alignItems:"center",justifyContent:"center",sx:{flex:1,minHeight:240,py:4,textAlign:"center"}},e.createElement(nl,{sx:{fontSize:48,color:L("IconColor","text.secondary"),mb:1}}),e.createElement(x,{variant:"h6",component:"h3",sx:{color:L("HeadingColor","text.primary")}},"Your cart is empty"),e.createElement(x,{variant:"body2",sx:{color:L("MutedTextColor","text.secondary")}},"Add a product to begin your order.")),e.createElement(f,{spacing:2,sx:{pt:3,mt:"auto",flexShrink:0}},e.createElement(S,{sx:{borderColor:L("DividerColor","divider")}}),e.createElement(f,{direction:"row",justifyContent:"space-between"},e.createElement(x,null,"Subtotal"),e.createElement(x,{variant:"subtitle1",sx:{color:L("PriceColor","text.primary")}},uy(h))),(null==i?void 0:i.naviagateCart)&&e.createElement(C,{fullWidth:!0,variant:"outlined",onClick:function(){return M(i.naviagateCart)},sx:{borderRadius:E,color:L("TextColor","text.primary"),borderColor:L("DividerColor","divider")}},"View bag"),e.createElement(C,{fullWidth:!0,variant:"contained",disabled:!p.length,onClick:function(){return M(null==i?void 0:i.naviagateCheckout)},sx:{py:1.5,borderRadius:E,bgcolor:L("ButtonBackgroundColor","primary.main"),color:L("ButtonTextColor","primary.contrastText"),"&:hover":{bgcolor:L("ButtonBackgroundColor","primary.dark")}}},"Checkout · ",uy(w))));return s?e.createElement(A,{variant:"outlined",sx:{width:"100%",maxWidth:460,mx:"auto",height:640,maxHeight:"100%",overflow:"hidden"}},D):e.createElement(T,{anchor:"right",open:null===(t=null==n?void 0:n.openCart)||void 0===t||t,onClose:P,PaperProps:{role:"dialog","aria-modal":!0,"aria-label":"Shopping cart",sx:{width:{xs:"100%",sm:460},maxWidth:"100%",height:"100%"}}},D)}var zy=function(e){return JSON.parse(JSON.stringify(e))};function Ry(l){var n=l.rawProduct,r=l.choiceGroups,u=void 0===r?[]:r,a=l.detailStyles,d=void 0===a?{}:a,v=l.disabled,s=void 0!==v&&v,c=l.onAddToCart,m=fe(),p=kl(o(1),2),y=p[0],h=p[1],S=kl(o(null),2),T=S[0],w=S[1],k=kl(o([]),2),L=k[0],I=k[1],E=kl(o(""),2),P=E[0],M=E[1],D=kl(o("idle"),2),B=D[0],F=D[1],W=n||{},A=fy(null==W?void 0:W.hasVariant),z=Array.isArray(null==W?void 0:W.variants)?W.variants:[];t(function(){h(1),M(""),F("idle")},[hy(W)]),t(function(){w(A?by(W):null)},[W,A]);var R=i(function(){return Cy(W,u,T)},[W,u,T]);t(function(){I([]),M("")},[R]);var H=Sy(L),j=xy(A?null==T?void 0:T.price:W.price),N=(j+H)*y,V=function(e,l){return sy(d,"RetailItemDetail".concat(e),l)},U=V("HeadingColor",m.palette.text.primary),_=V("MutedTextColor",m.palette.text.secondary),q=cy(d,"RetailItemDetailButtonBorderRadius","".concat(m.shape.borderRadius,"px")),G={bgcolor:V("QuantityButtonBackgroundColor",m.palette.background.paper),color:V("QuantityIconColor",m.palette.text.primary),borderRadius:"inherit"},Q={py:1.75,minHeight:52,borderRadius:q,bgcolor:V("AddButtonBackgroundColor",m.palette.primary.main),color:V("AddButtonTextColor",m.palette.primary.contrastText),"&:hover":{bgcolor:V("AddButtonBackgroundColor",m.palette.primary.dark),filter:"brightness(0.95)"},"&.Mui-disabled":"idle"===B?{}:{bgcolor:"success"===B?"success.main":V("AddButtonBackgroundColor",m.palette.primary.main),color:"success"===B?"success.contrastText":V("AddButtonTextColor",m.palette.primary.contrastText)}},Y=function(e){return{justifyContent:"space-between",textAlign:"left",gap:2,px:1.75,py:1.5,borderRadius:q,borderColor:V("QuantityButtonBorderColor",m.palette.divider),bgcolor:e?V("AddButtonBackgroundColor",m.palette.primary.main):"transparent",color:e?V("AddButtonTextColor",m.palette.primary.contrastText):V("TextColor",m.palette.text.primary),"&:hover":{borderColor:V("AddButtonBackgroundColor",m.palette.primary.main),bgcolor:e?V("AddButtonBackgroundColor",m.palette.primary.dark):"action.hover"}}},$=function(){var e=gl(Tl().m(function e(){var l,o,t;return Tl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!s&&"loading"!==B&&"success"!==B){e.n=1;break}return e.a(2);case 1:if((l=Ty({hasVariant:A,selectedVariant:T,selectedGroups:L,applicableChoiceGroups:R})).ok){e.n=2;break}return M(l.error),e.a(2);case 2:return M(""),F("loading"),e.p=3,o=wy(W,{selectedVariant:T,selectedGroups:L,quantity:y,optionsTotal:H}),e.n=4,null==c?void 0:c(o,L,y);case 4:if(!1!==(t=e.v)){e.n=5;break}throw new Error("add failed");case 5:if(null==t||!t.status||201===t.status||200===t.status){e.n=6;break}throw new Error("add failed");case 6:F("success"),window.setTimeout(function(){return F("idle")},1800),e.n=8;break;case 7:e.p=7,e.v,F("idle"),M("We could not add this item to the cart. Please try again.");case 8:return e.a(2)}},e,null,[[3,7]])}));return function(){return e.apply(this,arguments)}}();return e.createElement(f,{spacing:2.5},e.createElement(x,{variant:"h5",sx:{color:V("PriceColor",m.palette.text.primary)}},uy(j)),A&&e.createElement(f,{component:"section",spacing:1.5},e.createElement(f,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:2},e.createElement(x,{variant:"subtitle1",component:"h2",sx:{color:U}},"Choose a variant"),e.createElement(de,{size:"small",label:"Required"})),e.createElement(f,{spacing:1},z.map(function(l){var o=hy(l)===hy(T);return e.createElement(C,{variant:"outlined",key:hy(l)||l.name,"aria-pressed":o,disabled:s,onClick:function(){return function(e){w(e),I([]),M("")}(l)},sx:Y(o)},e.createElement(g,{component:"span",sx:{overflowWrap:"anywhere"}},l.name),e.createElement(x,{component:"span",variant:"body2",fontWeight:700,sx:{whiteSpace:"nowrap"}},uy(l.price)))}))),R.map(function(l){var o=L.find(function(e){return hy(e)===hy(l)}),t=new Set(((null==o?void 0:o.items)||[]).map(hy)),n=Math.max(1,xy((null==l?void 0:l.quantity)||1));return e.createElement(f,{component:"section",spacing:1.5,key:hy(l)},e.createElement(f,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"start",sm:"center"},spacing:1},e.createElement(x,{variant:"subtitle1",component:"h2",sx:{color:U}},l.name),e.createElement(x,{variant:"caption",sx:{color:_}},"Select up to ",n,fy(l.required)?" · Required":" · Optional")),e.createElement(f,{spacing:1},(l.items||[]).map(function(o){var n=t.has(hy(o));return e.createElement(C,{variant:"outlined",key:hy(o)||o.item,"aria-pressed":n,disabled:s,onClick:function(){return function(e,l){var o=hy(e),t=hy(l),n=Math.max(1,xy((null==e?void 0:e.quantity)||1));I(function(i){var r=zy(i),u=r.findIndex(function(e){return hy(e)===o});if(-1===u)return[Cl(Cl({},zy(e)),{},{items:[zy(l)]})].concat(Ll(r));var a=r[u],d=a.items.findIndex(function(e){return hy(e)===t});return d>=0?(a.items.splice(d,1),a.items.length||r.splice(u,1),r):(a.items.length>=n&&a.items.shift(),a.items.push(zy(l)),r)}),M("")}(l,o)},sx:Y(n)},e.createElement(g,{component:"span",sx:{overflowWrap:"anywhere"}},o.item||o.name),e.createElement(x,{component:"span",variant:"body2",fontWeight:700,sx:{whiteSpace:"nowrap"}},xy(o.price)>0?"+ ".concat(uy(o.price)):"Included"))})))}),e.createElement(f,{spacing:1},e.createElement(x,{variant:"body2",sx:{color:_}},"Quantity"),e.createElement(f,{direction:"row",alignItems:"center",sx:{width:"fit-content",border:1,borderColor:V("QuantityButtonBorderColor",m.palette.divider),borderRadius:q}},e.createElement(b,{onClick:function(){return h(Math.max(1,y-1))},disabled:s||y<=1,"aria-label":"Decrease quantity",sx:G},e.createElement(dl,null)),e.createElement(x,{sx:{minWidth:40,textAlign:"center"}},y),e.createElement(b,{onClick:function(){return h(y+1)},disabled:s,"aria-label":"Increase quantity",sx:G},e.createElement(ul,null)))),P&&e.createElement(Z,{severity:"error"},P),e.createElement(C,{variant:"contained",onClick:$,disabled:s||"loading"===B||"success"===B,"aria-busy":"loading"===B,sx:Q},"loading"===B?e.createElement(O,{color:"inherit",size:18}):"success"===B?e.createElement(rl,null):"Add to cart · ".concat(uy(N))))}function Hy(l){var o,t,n=l.states,i=l.actions,r=l.styles,u=l.themeColors,a=l.isEditorPreview,d=void 0!==a&&a,v=l.previewMode,s=d||void 0!==v&&v;fe();var c=my(r,u),m=(null==n?void 0:n.itemForDetailedModal)||{},p=ky(m,(null==n?void 0:n.storeImagesBaseUrl)||""),y=null!=n&&null!==(o=n.choiceGroups)&&void 0!==o&&o.length?n.choiceGroups:(null==n?void 0:n.allChoiceGroups)||[],h=null===(t=null==n?void 0:n.openCard)||void 0===t||t,C=function(){var e;s||null==i||null===(e=i.handleOpenCard)||void 0===e||e.call(i)},S=function(e,l){return sy(c,"RetailItemDetail".concat(e),l)},T=function(){var e=gl(Tl().m(function e(l,o,t){return Tl().w(function(e){for(;;)switch(e.n){case 0:if(null!=i&&i.handleAddToCart){e.n=1;break}return e.a(2,!1);case 1:return e.a(2,i.handleAddToCart(l,o,t,""))}},e)}));return function(l,o,t){return e.apply(this,arguments)}}(),w=e.createElement(g,{component:"section",sx:{position:"relative",display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",md:"minmax(0, 1fr) minmax(0, 1fr)"},gap:{xs:3,md:4},p:{xs:2,sm:4},minWidth:0,color:S("TextColor","text.primary"),bgcolor:S("BackgroundColor","background.paper")}},e.createElement(b,{"aria-label":"Close product",onClick:C,sx:{position:"absolute",top:8,right:8,zIndex:1,color:S("CloseIconColor","text.primary"),bgcolor:S("BackgroundColor","background.paper")}},e.createElement(il,{sx:{fontSize:cy(c,"RetailItemDetailCloseIconSize",24)}})),e.createElement(g,{sx:{minWidth:0,minHeight:{xs:240,md:400},display:"grid",placeItems:"center",overflow:"hidden",borderRadius:1,bgcolor:S("ImageBackgroundColor","action.hover")}},p.image?e.createElement(g,{component:"img",src:p.image,alt:p.name,sx:{display:"block",width:"100%",height:"100%",maxHeight:520,objectFit:"contain"}}):e.createElement(x,{color:"text.secondary"},"No product image")),e.createElement(f,{spacing:2,sx:{minWidth:0,pt:{xs:0,md:2}}},e.createElement(x,{variant:"overline",sx:{color:S("MutedTextColor","text.secondary")}},"Delivery product"),e.createElement(x,{component:"h1",variant:"h4",sx:{color:S("HeadingColor","text.primary"),overflowWrap:"anywhere"}},p.name),e.createElement(x,{variant:"body2",sx:{color:S("MutedTextColor","text.secondary")}},"Tax included"),e.createElement(Ry,{rawProduct:m,choiceGroups:y,detailStyles:c,disabled:s,onAddToCart:T})),p.description&&e.createElement(ve,{disableGutters:!0,elevation:0,sx:{gridColumn:"1 / -1",bgcolor:"transparent",color:"inherit","&:before":{display:"none"}}},e.createElement(se,{expandIcon:e.createElement(vl,null)},e.createElement(x,{variant:"subtitle1"},"Description")),e.createElement(ce,null,e.createElement(x,{sx:{color:S("MutedTextColor","text.secondary"),whiteSpace:"pre-line",overflowWrap:"anywhere"}},p.description))));return s?e.createElement(A,{variant:"outlined",sx:{width:"100%",maxWidth:980,mx:"auto",overflow:"hidden"}},w):e.createElement(H,{open:h,onClose:C,fullWidth:!0,maxWidth:"md","aria-label":p.name,BackdropProps:{sx:{bgcolor:S("OverlayColor",void 0)}},PaperProps:{sx:{m:{xs:1,sm:4},width:{xs:"calc(100% - 16px)",sm:"calc(100% - 64px)"},maxHeight:"calc(100% - 32px)"}}},w)}function jy(l){var o,t=l.states,n=l.actions,i=l.styles,r=fe(),u=(null==t||null===(o=t.cardItems)||void 0===o?void 0:o.items)||[],a=Ey(t),d=a.subTotal,v=function(e,l){return sy(i,"RetailCartDetails".concat(e),l)},s=v("HeadingColor",r.palette.text.primary),c=v("MutedTextColor",r.palette.text.secondary),m=v("DividerColor",r.palette.divider),p={bgcolor:v("ButtonBackgroundColor",r.palette.primary.main),color:v("ButtonTextColor",r.palette.primary.contrastText),borderRadius:cy(i,"RetailCartDetailsButtonBorderRadius","".concat(r.shape.borderRadius,"px")),py:1.5,"&:hover":{bgcolor:v("ButtonBackgroundColor",r.palette.primary.dark),filter:"brightness(0.95)"}},y={color:v("QuantityIconColor",r.palette.text.primary),bgcolor:v("QuantityButtonBackgroundColor",r.palette.background.paper),borderRadius:"inherit"};return e.createElement(g,{component:"section",sx:{display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",md:"minmax(0, 1fr) minmax(280px, 360px)"},gap:{xs:3,md:5},p:{xs:2,sm:3,md:6},bgcolor:v("BackgroundColor",r.palette.background.default),color:v("TextColor",r.palette.text.primary)}},e.createElement(g,{sx:{minWidth:0}},e.createElement(x,{variant:"overline",sx:{color:c}},"Your bag"),e.createElement(f,{direction:"row",spacing:1.5,alignItems:"baseline",flexWrap:"wrap",useFlexGap:!0},e.createElement(x,{variant:"h3",component:"h1",sx:{color:s,fontSize:{xs:"1.75rem",md:"2.375rem"}}},"Shopping cart"),e.createElement(x,{variant:"body2",sx:{color:c}},"(",u.reduce(function(e,l){return e+Ly(l)},0)," ","items)")),e.createElement(S,{sx:{width:56,borderBottomWidth:3,borderColor:m,my:2.5}}),e.createElement(f,{spacing:1,sx:{mb:2}},e.createElement(x,{variant:"body2"},d>=1999?"Congratulations! You get free shipping.":"Add ".concat(uy(1999-d)," for free shipping.")),e.createElement(ae,{variant:"determinate",value:Math.min(100,d/1999*100),sx:{height:4,borderRadius:1,bgcolor:"action.hover","& .MuiLinearProgress-bar":{bgcolor:v("ProgressColor",r.palette.primary.main)}}})),u.length?u.map(function(l,o){var i=ky(l,null==t?void 0:t.storeImagesBaseUrl);return e.createElement(g,{key:(null==l?void 0:l.cartItemId)||i.id||"".concat(i.name,"-").concat(o),sx:{display:"grid",gridTemplateColumns:{xs:"56px minmax(0, 1fr) auto",sm:"72px minmax(0, 1fr) auto auto"},alignItems:"center",gap:{xs:1.5,sm:2},py:2.5,borderBottom:1,borderColor:m}},e.createElement(g,{sx:{width:{xs:56,sm:72},height:{xs:70,sm:88},bgcolor:"action.hover",borderRadius:1,overflow:"hidden"}},i.image&&e.createElement(g,{component:"img",src:i.image,alt:i.name,sx:{width:"100%",height:"100%",objectFit:"contain"}})),e.createElement(f,{spacing:.75,sx:{minWidth:0}},e.createElement(x,{variant:"subtitle1",component:"h2",sx:{color:s,overflowWrap:"anywhere"}},i.name),e.createElement(x,{variant:"body2",sx:{color:c}},uy(i.price)),e.createElement(f,{direction:"row",alignItems:"center",sx:{width:"fit-content",border:1,borderColor:v("QuantityButtonBorderColor",r.palette.divider),borderRadius:1}},e.createElement(b,{size:"small",onClick:function(){return function(e){var l,o;Ly(e)<=1?null==n||null===(l=n.handleRemoveFromCart)||void 0===l||l.call(n,e):null==n||null===(o=n.updateItemFromCardDecByOne)||void 0===o||o.call(n,e)}(l)},"aria-label":"Decrease ".concat(i.name),sx:y},e.createElement(dl,{fontSize:"small"})),e.createElement(x,{variant:"body2",sx:{minWidth:32,textAlign:"center"}},Ly(l)),e.createElement(b,{size:"small",onClick:function(){var e;return null==n||null===(e=n.updateItemFromCardAddByOne)||void 0===e?void 0:e.call(n,l)},"aria-label":"Increase ".concat(i.name),sx:y},e.createElement(ul,{fontSize:"small"})))),e.createElement(x,{fontWeight:700,sx:{whiteSpace:"nowrap",fontSize:{xs:"0.875rem",sm:"1rem"}}},uy(Iy(l))),e.createElement(b,{onClick:function(){var e;return null==n||null===(e=n.handleRemoveFromCart)||void 0===e?void 0:e.call(n,l)},"aria-label":"Remove ".concat(i.name),sx:{color:c,gridColumn:{xs:3,sm:"auto"},justifySelf:"end"}},e.createElement(al,null)))}):e.createElement(f,{spacing:1.5,alignItems:"center",sx:{py:6,textAlign:"center"}},e.createElement(x,{variant:"h5",component:"h2",sx:{color:s}},"Your cart is empty"),e.createElement(C,{onClick:function(){var e;return null==n||null===(e=n.navigateToHome)||void 0===e?void 0:e.call(n)}},"Continue shopping"))),e.createElement(A,{component:"aside",elevation:0,sx:{alignSelf:"start",minWidth:0,p:3,bgcolor:v("SummaryBackgroundColor",r.palette.background.paper),color:v("SummaryTextColor",r.palette.text.primary)}},e.createElement(f,{spacing:2.5},e.createElement(x,{variant:"h5",component:"h2"},"Order summary"),e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,null,"Subtotal"),e.createElement(x,{fontWeight:700},uy(a.subTotal))),e.createElement(x,{variant:"body2",sx:{color:c}},"Delivery charges and tax are calculated at checkout."),e.createElement(C,{variant:"contained",fullWidth:!0,disabled:!u.length,onClick:function(){var e;return null==n||null===(e=n.naviagateCheckout)||void 0===e?void 0:e.call(n)},sx:p},"Continue to checkout"))))}var Ny={firstName:"",lastName:"",phone:"",email:"",address:"",city:""};function Vy(l){var t,n,i,r,u,a,d,v=l.states,s=l.actions,c=l.styles,m=l.layout,p=l.PaymentComponent,y=kl(o(Ny),2),h=y[0],b=y[1],T=kl(o(""),2),w=T[0],k=T[1],I=kl(o(!1),2),E=I[0],M=I[1],D=kl(o(!1),2),O=D[0],B=D[1],F=(null==v||null===(t=v.cardItems)||void 0===t?void 0:t.items)||[],W=(null==v?void 0:v.paymentMethod)||"cash",z=Ey(v,W),R=(null==v||null===(n=v.franchise)||void 0===n?void 0:n.configurations)||{},H=!1!==(null==R?void 0:R.isCardAvailableOnStore)&&!1!==(null==R?void 0:R.isCardAvailableOnDelivery),j=!0===(null==v||null===(i=v.franchise)||void 0===i||null===(i=i.configurations)||void 0===i?void 0:i.isEnabledDeliveryLocation)||"true"===(null==v||null===(r=v.franchise)||void 0===r||null===(r=r.configurations)||void 0===r?void 0:r.isEnabledDeliveryLocation),N=fe(),V=null==m||null===(u=m.defaultLayout)||void 0===u||null===(u=u.header)||void 0===u?void 0:u.find(function(e){return"RetailHeader"===(null==e?void 0:e.component)}),U=gy(ay(null==V?void 0:V.props,"logoImage","")||(null==v||null===(a=v.franchise)||void 0===a?void 0:a.imageURL),null==v?void 0:v.storeImagesBaseUrl),_=(null==v||null===(d=v.franchise)||void 0===d?void 0:d.name)||"EGORA",q=function(e,l){return sy(c,"RetailCheckout".concat(e),l)},G={color:q("HeadingColor",N.palette.text.primary),mt:2},K=q("DescriptionColor",N.palette.text.secondary),X={"& .MuiOutlinedInput-root":{bgcolor:q("InputBackgroundColor",N.palette.background.paper),color:q("InputTextColor",N.palette.text.primary),borderRadius:cy(c,"RetailCheckoutInputBorderRadius","".concat(N.shape.borderRadius,"px")),"& fieldset":{borderColor:q("InputBorderColor",N.palette.divider)}},"& .MuiInputLabel-root":{color:q("InputTextColor",N.palette.text.secondary)}},J={py:1.75,bgcolor:q("ButtonBackgroundColor",N.palette.primary.main),color:q("ButtonTextColor",N.palette.primary.contrastText),borderRadius:cy(c,"RetailCheckoutButtonBorderRadius","".concat(N.shape.borderRadius,"px")),"&:hover":{bgcolor:q("ButtonBackgroundColor",N.palette.primary.dark),filter:"brightness(0.95)"}},ee={mx:0,mb:1,px:1,py:.5,border:1,bgcolor:q("InputBackgroundColor",N.palette.background.paper),color:q("InputTextColor",N.palette.text.primary),borderColor:q("InputBorderColor",N.palette.divider),borderRadius:cy(c,"RetailCheckoutInputBorderRadius","".concat(N.shape.borderRadius,"px"))},le=function(e){var l=e.target,o=l.name,t=l.value;b(function(e){return Cl(Cl({},e),{},hl({},o,t))})},oe=function(){var e=gl(Tl().m(function e(){var l,o,t;return Tl().w(function(e){for(;;)switch(e.p=e.n){case 0:return k(""),B(!0),e.p=1,e.n=2,null==s||null===(l=s.handleLocateMe)||void 0===l?void 0:l.call(s);case 2:null!=(o=e.v)&&o.address&&b(function(e){return Cl(Cl({},e),{},{address:o.address})}),e.n=4;break;case 3:e.p=3,t=e.v,k((null==t?void 0:t.message)||"We could not get your current location.");case 4:return e.p=4,B(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}(),te=function(){var e=gl(Tl().m(function e(l){var o,t,n,i,r,u,a,d,c,m;return Tl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(l.preventDefault(),k(""),F.length){e.n=1;break}return k("Your cart is empty."),e.a(2);case 1:if(!j||null!=v&&v.latLongForDelivery){e.n=2;break}return k("Use your current location before placing a delivery order."),e.a(2);case 2:if(M(!0),o={firstName:h.firstName.trim(),lastName:h.lastName.trim(),phone:h.phone.trim(),email:h.email.trim(),address:{street:h.address.trim(),area:"",city:h.city.trim()}},e.p=3,r=Cl(Cl({},z.orderPayload),{},{customer:o}),"card"!==W){e.n=5;break}return e.n=4,null==s||null===(u=s.handlePlaceOrderFromCard)||void 0===u?void 0:u.call(s,r);case 4:return e.a(2);case 5:return e.n=6,null==s||null===(t=s.handlePlaceOrder)||void 0===t?void 0:t.call(s,r);case 6:a=e.v,(d=(null==a||null===(n=a.data)||void 0===n?void 0:n.id)||(null==a||null===(i=a.data)||void 0===i?void 0:i._id))?null==s||null===(c=s.naviagateOrderSuccess)||void 0===c||c.call(s,d):k((null==v?void 0:v.errorForPlaceOrder)||"We could not place your order. Please try again."),e.n=8;break;case 7:e.p=7,m=e.v,k((null==m?void 0:m.message)||"We could not place your order. Please try again.");case 8:return e.p=8,M(!1),e.f(8);case 9:return e.a(2)}},e,null,[[3,7,8,9]])}));return function(l){return e.apply(this,arguments)}}();return e.createElement(g,{component:"section",sx:{minHeight:"100%",bgcolor:q("BackgroundColor",N.palette.background.default),color:q("TextColor",N.palette.text.primary)}},e.createElement(f,{component:"header",direction:"row",spacing:1,alignItems:"center",sx:{minHeight:70,px:{xs:2,md:"7%"},bgcolor:q("HeaderBackgroundColor",N.palette.primary.main),color:q("HeaderTextColor",N.palette.primary.contrastText)}},e.createElement(C,{"aria-label":"".concat(_," home"),onClick:function(){var e;return null==s||null===(e=s.navigateToHome)||void 0===e?void 0:e.call(s)},sx:{p:0,minWidth:0,flexGrow:1,justifyContent:"flex-start"}},U?e.createElement(g,{component:"img",src:U,alt:"".concat(_," logo"),sx:{width:"auto",maxWidth:{xs:130,sm:180},height:48,objectFit:"contain"}}):e.createElement(f,{direction:"row",spacing:1,alignItems:"baseline"},e.createElement(x,{variant:"h5",component:"span",color:"inherit"},_),e.createElement(x,{variant:"caption",color:"inherit"},"POS"))),e.createElement(ol,null)),e.createElement(g,{component:"main",sx:{display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",md:"minmax(0, 1fr) minmax(280px, 400px)"},gap:{xs:3,md:6},maxWidth:1100,mx:"auto",px:{xs:2,sm:3},py:{xs:3,md:6}}},e.createElement(f,{component:"form",onSubmit:te,spacing:2,sx:{minWidth:0}},e.createElement(x,{variant:"overline",sx:{color:K}},"Delivery checkout"),e.createElement(x,{variant:"h5",component:"h2",sx:G},"Contact details"),e.createElement(g,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"1fr 1fr"},gap:2}},e.createElement(P,{fullWidth:!0,required:!0,name:"firstName",value:h.firstName,onChange:le,label:"First name",autoComplete:"given-name",sx:X}),e.createElement(P,{fullWidth:!0,required:!0,name:"lastName",value:h.lastName,onChange:le,label:"Last name",autoComplete:"family-name",sx:X})),e.createElement(P,{required:!0,name:"phone",value:h.phone,onChange:le,label:"Phone number",type:"tel",autoComplete:"tel",sx:X}),e.createElement(P,{name:"email",value:h.email,onChange:le,label:"Email (optional)",type:"email",autoComplete:"email",sx:X}),e.createElement(x,{variant:"h5",component:"h2",sx:G},"Delivery address"),j&&e.createElement(C,{variant:"outlined",startIcon:e.createElement(sl,null),onClick:oe,disabled:O,sx:{alignSelf:"start"}},O?"Getting location...":"Use my current location"),e.createElement(P,{required:!0,name:"address",value:h.address,onChange:le,label:"Street address",autoComplete:"street-address",sx:X}),e.createElement(P,{required:!0,name:"city",value:h.city,onChange:le,label:"City",autoComplete:"address-level2",sx:X}),e.createElement(L,{component:"fieldset"},e.createElement(me,{component:"legend",sx:Cl(Cl({},G),{},{typography:"h5",mb:2})},"Payment"),e.createElement(Q,{name:"retail-payment-method",value:W,onChange:function(e){var l;return null==s||null===(l=s.handleSetPaymentMethod)||void 0===l?void 0:l.call(s,e.target.value)}},e.createElement(Y,{value:"cash",control:e.createElement($,null),label:"Cash on delivery",sx:ee}),H&&e.createElement(Y,{value:"card",control:e.createElement($,null),label:"Credit / Debit Card",sx:ee}))),"card"===W&&p&&e.createElement(p,{actions:s,prop:{},styles:c,states:v}),z.deliveryMessage&&e.createElement(x,{variant:"body2",sx:{color:K}},z.deliveryMessage),"card"!==W&&(w||(null==v?void 0:v.errorForPlaceOrder))&&e.createElement(Z,{severity:"error"},w||(null==v?void 0:v.errorForPlaceOrder)),"card"!==W&&e.createElement(C,{variant:"contained",type:"submit",disabled:E||!F.length,sx:J},E?"Placing order...":"Place delivery order · ".concat(uy(z.total)))),e.createElement(A,{component:"aside",elevation:0,sx:{alignSelf:"start",minWidth:0,p:{xs:2,sm:3},bgcolor:q("SummaryBackgroundColor",N.palette.background.paper),color:q("SummaryTextColor",N.palette.text.primary)}},e.createElement(f,{spacing:2.5},e.createElement(x,{variant:"h5",component:"h2"},"Order summary"),e.createElement(f,{spacing:2},F.map(function(l,o){var t=ky(l,null==v?void 0:v.storeImagesBaseUrl);return e.createElement(g,{key:(null==l?void 0:l.cartItemId)||t.id||"".concat(t.name,"-").concat(o),sx:{display:"grid",gridTemplateColumns:"56px minmax(0, 1fr) auto",gap:1.25,alignItems:"center"}},e.createElement(g,{sx:{width:56,height:68,overflow:"hidden",borderRadius:1,bgcolor:"action.hover"}},t.image&&e.createElement(g,{component:"img",src:t.image,alt:t.name,sx:{width:"100%",height:"100%",objectFit:"contain"}})),e.createElement(f,{spacing:.5,sx:{minWidth:0}},e.createElement(x,{variant:"subtitle2",sx:{overflowWrap:"anywhere"}},t.name),e.createElement(x,{variant:"caption",sx:{color:K}},"Qty ",Ly(l))),e.createElement(x,{variant:"body2",fontWeight:700,sx:{whiteSpace:"nowrap"}},uy(Iy(l))))})),e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,null,"Subtotal"),e.createElement(x,{fontWeight:700},uy(z.subTotal))),z.discount>0&&e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,null,"Discount"),e.createElement(x,{fontWeight:700},"-".concat(uy(z.discount)))),z.serviceFees>0&&e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,null,"Service fee"),e.createElement(x,{fontWeight:700},uy(z.serviceFees))),z.platformFees>0&&e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,null,"Platform fee"),e.createElement(x,{fontWeight:700},uy(z.platformFees))),e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,null,"Delivery"),e.createElement(x,{fontWeight:700},uy(z.deliveryFees))),z.tax>0&&e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,null,"Tax"),e.createElement(x,{fontWeight:700},uy(z.tax))),e.createElement(S,{sx:{borderColor:q("InputBorderColor",N.palette.divider)}}),e.createElement(f,{direction:"row",justifyContent:"space-between",spacing:2},e.createElement(x,{variant:"h6"},"Total"),e.createElement(x,{variant:"h6"},uy(z.total)))))))}var Uy="#6d7175",_y="#dedede",qy="#f7f7f7";function Gy(l){var o=l.title,t=l.children;return e.createElement(f,{spacing:.75,sx:{minWidth:0,overflowWrap:"anywhere"}},e.createElement(x,{component:"h3",variant:"subtitle2",sx:{fontWeight:600}},o),e.createElement(g,{sx:{fontSize:14,lineHeight:1.65}},t))}function Qy(l){var o=l.label,t=l.children,n=l.total,i=void 0!==n&&n;return e.createElement(f,{direction:"row",justifyContent:"space-between",alignItems:"baseline",spacing:2},e.createElement(x,{sx:{fontSize:i?20:14,fontWeight:i?600:400}},o),e.createElement(x,{component:"div",sx:{fontSize:i?23:14,fontWeight:i?700:500,textAlign:"right"}},t))}function Yy(l){var t=l.src,n=l.name,i=l.quantity,r=kl(o(""),2),u=r[0],a=r[1];return e.createElement(g,{sx:{position:"relative",width:66,height:76,flexShrink:0}},e.createElement(g,{sx:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid ".concat(_y),borderRadius:"10px",bgcolor:"#fff",overflow:"hidden"}},t&&t!==u?e.createElement(g,{component:"img",src:t,alt:n,onError:function(){return a(t)},sx:{width:"100%",height:"100%",objectFit:"contain"}}):e.createElement(nl,{"aria-label":n,sx:{color:"#9a9a9a",fontSize:27}})),e.createElement(g,{component:"span","aria-label":"Quantity: ".concat(i),sx:{position:"absolute",right:-9,top:-9,minWidth:23,height:23,px:.75,display:"flex",justifyContent:"center",alignItems:"center",bgcolor:"#686868",color:"#fff",borderRadius:"20px",fontSize:12,fontWeight:600}},i))}var $y=function(e){return null!=e&&e.isComplimentary?0:Iy(e)};function Zy(l){var t,n,i,r,u,a,d,v=l.order,s=l.actions,c=l.layout,m=l.states,p=kl(o(""),2),y=p[0],h=p[1],b=(null==v?void 0:v.customer)||{},T=(null==b?void 0:b.address)||{},w=(null==m?void 0:m.franchise)||{},k=(null==v?void 0:v.billNumber)||(null==v?void 0:v.id)||(null==v?void 0:v._id)||"",L=Array.isArray(null==v?void 0:v.items)?v.items.filter(function(e){return!(null!=e&&e.isVoidItem)}):[],I=null==c||null===(t=c.defaultLayout)||void 0===t||null===(t=t.header)||void 0===t?void 0:t.find(function(e){return"RetailHeader"===(null==e?void 0:e.component)}),E=null==c||null===(n=c.defaultLayout)||void 0===n||null===(n=n.footer)||void 0===n?void 0:n.find(function(e){return"RetailFooter"===(null==e?void 0:e.component)}),P=null==c||null===(i=c.cartCheckoutSummaryLayout)||void 0===i||null===(i=i.body)||void 0===i?void 0:i.find(function(e){return"RetailCheckout"===(null==e?void 0:e.component)}),M=(null==c?void 0:c.selectedColor)||(null==c?void 0:c.defaultColor)||"Black",D=my(null==P?void 0:P.styles,null==c||null===(r=c.themeColors)||void 0===r?void 0:r[M]),O=sy(D,"RetailCheckoutButtonBackgroundColor","#202a35"),B=sy(D,"RetailCheckoutButtonTextColor","#fff"),F=(null==w?void 0:w.name)||(null==v||null===(u=v.venueId)||void 0===u?void 0:u.name)||"Store",W=gy(ay(null==I?void 0:I.props,"logoImage","")||(null==w?void 0:w.imageURL),null==m?void 0:m.storeImagesBaseUrl),z=ay(null==E?void 0:E.props,"links",[]),R=(Array.isArray(z)?z:[]).filter(function(e){return(null==e?void 0:e.url)&&/^(https?:\/\/|mailto:|tel:|\/)/i.test(e.url)}),H=R.find(function(e){return/contact|support/i.test(e.label||e.name||"")}),j=(null==H?void 0:H.url)||(null!=v&&null!==(a=v.venueId)&&void 0!==a&&a.venuePhoneNumber?"tel:".concat(v.venueId.venuePhoneNumber):""),N=[b.firstName,b.lastName].filter(Boolean).join(" "),V=[T.street,T.area,[T.city,T.postalCode].filter(Boolean).join(", "),T.country].filter(Boolean),_="cash"===(null==v?void 0:v.paymentType),q="card"===(null==v?void 0:v.paymentType),G=_?"Cash on Delivery (COD)":"Card payment",Q=null!==(d=null==v?void 0:v.subTotal)&&void 0!==d?d:L.reduce(function(e,l){return e+$y(l)},0),Y=[["Tax",null==v?void 0:v.tax],["Service fee",null==v?void 0:v.serviceFees],["Platform fee",null==v?void 0:v.platformFees],["Tip",null==v?void 0:v.tip]].filter(function(e){var l=kl(e,2)[1];return xy(l)>0});return e.createElement(g,{sx:{minHeight:"100vh",bgcolor:"#fff",color:"#202223"}},e.createElement(g,{component:"header",sx:{borderBottom:"1px solid ".concat(_y)}},e.createElement(g,{sx:{maxWidth:1150,mx:"auto",px:{xs:2.5,sm:3},py:2.5}},e.createElement(ie,{"aria-label":"".concat(F," home"),onClick:function(){var e;return null==s||null===(e=s.navigateToHome)||void 0===e?void 0:e.call(s)},sx:{borderRadius:1,minHeight:40,"&.Mui-focusVisible":{outline:"2px solid",outlineOffset:4}}},W&&W!==y?e.createElement(g,{component:"img",src:W,alt:"".concat(F," logo"),onError:function(){return h(W)},sx:{display:"block",width:"auto",maxWidth:180,height:42,objectFit:"contain"}}):e.createElement(x,{component:"span",sx:{fontSize:25,fontWeight:800,letterSpacing:"-0.04em"}},F)))),e.createElement(g,{component:"main",sx:{display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",md:"minmax(24px, 1fr) minmax(0, 600px) minmax(0, 500px) minmax(24px, 1fr)"},minHeight:"calc(100vh - 83px)","&::after":{content:{md:'""'},gridColumn:4,gridRow:1,bgcolor:qy}}},e.createElement(f,{component:"section","aria-labelledby":"order-confirmation-heading",spacing:3,sx:{gridColumn:{md:2},gridRow:{md:1},minWidth:0,px:{xs:2.5,sm:3,md:0},pr:{md:5},py:{xs:4,md:5}}},e.createElement(f,{direction:"row",spacing:2,alignItems:"center",sx:{mb:{md:1.5}}},e.createElement(g,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:50,height:50,border:"2px solid",borderColor:O,color:O,borderRadius:"50%",flexShrink:0}},e.createElement(rl,{sx:{fontSize:29}})),e.createElement(g,{sx:{minWidth:0}},e.createElement(x,{sx:{fontSize:13,color:Uy,overflowWrap:"anywhere",mb:.25}},"Confirmation #",k),e.createElement(x,{id:"order-confirmation-heading",variant:"h4",component:"h1",sx:{fontSize:{xs:23,sm:26},fontWeight:600,overflowWrap:"anywhere"}},"Thank you",b.firstName?", ".concat(b.firstName):"","!"))),e.createElement(A,{variant:"outlined",sx:{p:2.25,borderRadius:"10px",borderColor:_y,color:"inherit",bgcolor:"#fff"}},e.createElement(x,{component:"h2",sx:{fontSize:16,fontWeight:600,mb:1}},"Your order is confirmed"),e.createElement(x,{sx:{fontSize:14,lineHeight:1.6}},"Your delivery order has been placed successfully.")),e.createElement(A,{variant:"outlined",sx:{p:2.25,borderRadius:"10px",borderColor:_y,color:"inherit",bgcolor:"#fff"}},e.createElement(x,{component:"h2",sx:{fontSize:16,fontWeight:600,mb:2}},"Order details"),e.createElement(g,{sx:{display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",sm:"repeat(2, minmax(0, 1fr))"},gap:3}},e.createElement(f,{spacing:2.5},(b.email||b.phone)&&e.createElement(Gy,{title:"Contact information"},b.email&&e.createElement(g,null,b.email),b.phone&&e.createElement(g,null,b.phone)),(N||V.length>0)&&e.createElement(Gy,{title:"Shipping address"},N&&e.createElement(g,null,N),V.map(function(l,o){return e.createElement(g,{key:"".concat(l,"-").concat(o)},l)}))),e.createElement(f,{spacing:2.5},(_||q)&&e.createElement(Gy,{title:"Payment method"},e.createElement(f,{direction:"row",spacing:1,alignItems:"center",sx:{mb:.5}},_?e.createElement(cl,{sx:{color:Uy,fontSize:23}}):e.createElement(ml,{sx:{color:Uy,fontSize:23}}),e.createElement(g,null,G)),null!=(null==v?void 0:v.total)&&e.createElement(g,null,uy(v.total))),e.createElement(Gy,{title:"Shipping method"},"Delivery")))),e.createElement(f,{direction:{xs:"column-reverse",sm:"row"},spacing:2.5,alignItems:{xs:"stretch",sm:"center"},justifyContent:j?"space-between":"flex-end",sx:{pt:.5}},j&&e.createElement(x,{sx:{fontSize:14}},"Need help?"," ",e.createElement(U,{href:j,sx:{color:O,textDecoration:"underline"}},"Contact us")),e.createElement(C,{variant:"contained",size:"large",onClick:function(){var e;return null==s||null===(e=s.navigateToHome)||void 0===e?void 0:e.call(s)},sx:{bgcolor:O,color:B,borderRadius:"7px",py:1.75,px:2.5,fontSize:14,boxShadow:"none","&:hover":{bgcolor:O,filter:"brightness(0.9)",boxShadow:"none"}}},"Continue shopping")),R.length>0&&e.createElement(g,{component:"footer",sx:{mt:"auto !important",pt:{xs:3,md:8}}},e.createElement(f,{component:"nav","aria-label":"Store information",direction:"row",flexWrap:"wrap",gap:2},R.map(function(l,o){return e.createElement(U,{key:"".concat(l.url,"-").concat(o),href:l.url,sx:{fontSize:12,color:O,textDecoration:"underline"}},l.label||l.name||"Store information")})))),e.createElement(g,{component:"aside","aria-labelledby":"order-summary-heading",sx:{gridColumn:{md:3},gridRow:{md:1},minWidth:0,bgcolor:qy,borderLeft:{md:"1px solid ".concat(_y)},borderTop:{xs:"1px solid ".concat(_y),md:0},px:{xs:2.5,sm:3,md:5},py:{xs:3,md:5}}},e.createElement(x,{id:"order-summary-heading",component:"h2",sx:{fontSize:16,fontWeight:600,mb:3}},"Order summary"),e.createElement(f,{component:"ul",spacing:2.5,sx:{listStyle:"none",m:0,p:0}},L.map(function(l,o){var t,n=ky(l,null==m?void 0:m.storeImagesBaseUrl),i=(Array.isArray(null==l?void 0:l.groups)?l.groups:[]).flatMap(function(e){return(Array.isArray(null==e?void 0:e.items)?e.items:[]).map(function(e){return(null==e?void 0:e.item)||(null==e?void 0:e.name)})}).filter(Boolean),r=null==l||null===(t=l.selectedVariant)||void 0===t?void 0:t.name;return e.createElement(f,{component:"li",key:(null==l?void 0:l.cartItemId)||"".concat(n.id,"-").concat(o),direction:"row",spacing:2,alignItems:"center"},e.createElement(Yy,{src:n.image,name:n.name,quantity:Ly(l)}),e.createElement(g,{sx:{flex:1,minWidth:0,overflowWrap:"anywhere"}},e.createElement(x,{sx:{fontSize:14,fontWeight:500}},n.name),r&&e.createElement(x,{sx:{fontSize:12,color:Uy,mt:.5}},r),i.length>0&&e.createElement(x,{sx:{fontSize:12,color:Uy,mt:.5}},i.join(", "))),e.createElement(x,{sx:{fontSize:14,fontWeight:500,flexShrink:0}},uy($y(l))))})),!L.length&&e.createElement(x,{sx:{fontSize:14,color:Uy}},"Item details are unavailable."),e.createElement(S,{sx:{my:3,borderColor:_y}}),e.createElement(f,{spacing:1.25},e.createElement(Qy,{label:"Subtotal"},uy(Q)),xy(null==v?void 0:v.discount)>0&&e.createElement(Qy,{label:"Discount"},"−",uy(v.discount)),xy(null==v?void 0:v.promotion)>0&&e.createElement(Qy,{label:"Promotion"},"−",uy(v.promotion)),null!=(null==v?void 0:v.deliveryFees)&&e.createElement(Qy,{label:"Shipping"},0===xy(v.deliveryFees)?"Free":uy(v.deliveryFees)),Y.map(function(l){var o=kl(l,2),t=o[0],n=o[1];return e.createElement(Qy,{key:t,label:t},uy(n))}),0!==xy(null==v?void 0:v.rounding)&&e.createElement(Qy,{label:"Rounding"},uy(v.rounding))),e.createElement(S,{sx:{my:2.5,borderColor:_y}}),e.createElement(Qy,{label:"Total",total:!0},e.createElement(g,{component:"span",sx:{color:Uy,fontSize:12,fontWeight:400,mr:1}},"PKR"),null!=(null==v?void 0:v.total)?uy(v.total):"—"))))}function Ky(l){var o=l.actions,t=l.layout,n=l.prop,i=l.styles,r=l.themeColors,u=fe(),a=my(i,r),d=py(t),v=ay(n,"links",[]),s=Array.isArray(v)?v:[],c=sy(a,"FooterTextColor",u.palette.text.primary),m=sy(a,"FooterLinkColor",c),p=d.length?d:["Categories","Azadi Bundles","Hair","Face","Beard","Build Your Own Bundle","Fragrance","Best Sellers","All Products","Deals","Gifts","Blog","Loyalty Rewards","Order Tracker"];return e.createElement(g,{component:"footer",sx:{px:{xs:3,md:7},pt:7,pb:2.5,color:c,background:sy(a,"FooterBackgroundColor",u.palette.background.paper)}},e.createElement(g,{sx:{display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",sm:"repeat(2, minmax(0, 1fr))",lg:"repeat(4, minmax(0, 1fr))"},gap:4.5}},e.createElement(f,{alignItems:"flex-start",spacing:.5},e.createElement(x,{component:"h3",variant:"subtitle2",sx:{mb:1.5,textTransform:"uppercase"}},"Menu"),p.map(function(l,t){return e.createElement(C,{key:(null==l?void 0:l.id)||(null==l?void 0:l._id)||"".concat((null==l?void 0:l.name)||l,"-").concat(t),onClick:function(){return function(e){var l,t;null==o||null===(l=o.handleCategoryClick)||void 0===l||l.call(o,e),null===(t=document.getElementById("retail-products"))||void 0===t||t.scrollIntoView({behavior:"smooth",block:"start"})}("string"==typeof l?{name:l}:l)},sx:{color:m,p:.5,textTransform:"none",justifyContent:"flex-start"}},(null==l?void 0:l.name)||(null==l?void 0:l.title)||l)})),e.createElement(f,{alignItems:"flex-start",spacing:1},e.createElement(x,{component:"h3",variant:"subtitle2",sx:{mb:.5,textTransform:"uppercase"}},"Menu"),(s.length?s:["Track Your Order","Search","About us","Be Our Distributor","FAQ","Careers","Contact Us","Privacy Policy","Refund Policy","Terms of Service","Other Stores"].map(function(e){return{label:e,url:"#top"}})).map(function(l,o){return e.createElement(U,{key:"".concat((null==l?void 0:l.label)||(null==l?void 0:l.name),"-").concat(o),href:(null==l?void 0:l.url)||"#top",variant:"body2",sx:{color:m}},(null==l?void 0:l.label)||(null==l?void 0:l.name))})),e.createElement(f,{spacing:1.5},e.createElement(x,{component:"h3",variant:"subtitle2",sx:{textTransform:"uppercase"}},"Mini Bio"),e.createElement(x,{variant:"body2"},"Egora POS is a simple solution for sales, inventory and customer management. We help growing businesses spend less time on admin and more time serving customers."),e.createElement(x,{variant:"subtitle2"},"Store locations:")),e.createElement(f,{alignItems:"flex-start",spacing:1},e.createElement(x,{component:"h3",variant:"subtitle2",sx:{mb:.5,textTransform:"uppercase"}},"Contact"),e.createElement(U,{href:"mailto:support@egora.com",variant:"body2",sx:{color:m,overflowWrap:"anywhere"}},"support@egora.com"),e.createElement(U,{href:"tel:+923000000000",variant:"body2",sx:{color:m}},"+92 300 0000000"),e.createElement(x,{variant:"body2"},"◉ ◎ ♪ ▶"))),e.createElement(f,{direction:{xs:"column",sm:"row"},justifyContent:"space-between",spacing:1,sx:{mt:4.5,pt:2,borderTop:1,borderColor:"divider"}},e.createElement(x,{variant:"caption"},"Managed By Zain"),e.createElement(x,{variant:"caption"},"© ",(new Date).getFullYear()," Egora")))}export{ha as AllCategoriesPage,ba as AllCategoriesPageV2,Ga as AnnouncementsBanner,Qa as CartBottomBar,Na as CartCheckoutSummary,Ht as CartDrawer,Pa as CategoryCarousel,Ia as CategoryGrouping,Ma as CustomerInfoModal,rp as EditorTextBlock,Sa as Footer,wa as Footer2,Cu as Header,wu as HeroCarousel,Ca as InfoBlock,da as ItemDetailModal,bu as LocationModal,_a as OrderSuccessPage,sa as PopularMenuSection,ma as PopularMenuSectionV2,Zp as PromotionBanner,My as RetailAnnouncement,jy as RetailCartDetails,Ay as RetailCartDrawer,Fy as RetailCategoryCarousel,Vy as RetailCheckout,Ky as RetailFooter,Dy as RetailHeader,By as RetailHero,Hy as RetailItemDetailModal,Zy as RetailOrderSuccess,Wy as RetailProductGrid,Oy as RetailSearch,pp as Review,Ua as ReviewModal,ku as SearchBar,ey as SocialPage,jp as StoreBannerPopup,qa as TextBlock};
|
|
30
30
|
//# sourceMappingURL=index.esm.js.map
|